#dynamic-content {
  margin: 0;
  padding: 0;
  width: 100%;
}

#left-sidebar {
  left: 0;
}

#left-sidebar,
#right-sidebar {
  background: repeating-linear-gradient(45deg, #ffffff, #ffffff 20px, #fff5d7 20px, #fff5d7 40px);
  bottom: 0;
  min-width: 220px;
  overflow-y: auto;
  padding: 1rem;
  position: fixed;
  top: 100px;
  width: 15%;
  z-index: 10;
}

#right-sidebar {
  box-shadow: -3px 0 10px rgba(0, 0, 0, 0.1);
  right: 0;
}

.about-flag {
  height: 25px;
  vertical-align: middle;
}

.about-us,
#did-you-know,
#newsletter-confirm {
  color: #e96b00;
  font-family: 'Fredoka';
  font-size: 0.8rem;
  line-height: 1.4;
  text-align: center;
}

.article {
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  height: 200px;
  margin: 5px;
  overflow: hidden;
  position: relative;
  width: 250px;
}

.article .image-box {
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  height: 200px;
  position: relative;
  width: 250px;
}

.article .title-overlay {
  background: rgba(255, 255, 255, 0.95);
  bottom: 0;
  left: 0;
  padding: 0.4rem 0.6rem;
  position: absolute;
  text-align: center;
  width: 100%;
}

.article .title-overlay h3 {
  color: #000;
  font-family: 'Fredoka', sans-serif;
  font-size: 0.75rem;
  margin: 0;
}

.article a {
  display: block;
  height: 100%;
  text-decoration: none;
  width: 100%;
}

.article-caption {
  background: rgba(255, 255, 255, 0.95);
  bottom: 0;
  left: 0;
  padding: 0.4rem 0.6rem;
  position: absolute;
  text-align: center;
  width: 100%;
}

.article-caption h3 {
  color: #000;
  font-family: 'Fredoka';
  font-size: 0.75rem;
  margin: 0;
}

.article-content {
  color: #333;
  font-size: 1rem;
  line-height: 1.8;
  margin: 2rem 0;
}

.article-date-badge {
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
  font-family: 'Fredoka';
  height: 40px;
  overflow: hidden;
  position: absolute;
  right: 0.3rem;
  text-align: center;
  top: 0.3rem;
  width: 40px;
  z-index: 2;
}

.article-date-badge .day {
  color: #333;
  font-size: 1rem;
  font-weight: bold;
  padding: 0.05rem 0;
}

.article-date-badge .month {
  background: #e96b00;
  color: #fff;
  font-size: 0.55rem;
  font-weight: bold;
  padding: 0.05rem 0;
}

.article-image {
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  height: 200px;
  position: relative;
  width: 250px;
}

.article-image-wrapper {
  position: relative;
  width: 100%;
}

.article-image-wrapper img {
  border-radius: 12px;
  display: block;
  width: 100%;
}

.article-link {
  display: block;
  height: 100%;
  text-decoration: none;
  width: 100%;
}

.article-paragraph {
  margin: 1.5rem 0;
}

.article-thumbnail {
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  height: 200px;
  position: relative;
  width: 250px;
}

.article-title {
  color: #e96b00;
  font-family: 'Fredoka', sans-serif;
  font-size: 1.5rem;
  font-weight: bold;
  margin: 2rem 0;
  text-align: center;
  text-transform: uppercase;
}

.article-title-wrapper {
  background: rgba(255, 255, 255, 0.95);
  bottom: 0;
  left: 0;
  padding: 0.4rem 0.6rem;
  position: absolute;
  text-align: center;
  width: 100%;
}

.article .calendar-badge {
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
  font-family: 'Fredoka', sans-serif;
  height: 40px;
  overflow: hidden;
  position: absolute;
  right: 0.3rem;
  text-align: center;
  top: 0.3rem;
  width: 40px;
  z-index: 2;
}

.article .calendar-badge div:first-child {
  background: #e96b00;
  color: #fff;
  font-size: 0.55rem;
  font-weight: bold;
  padding: 0.05rem 0;
}

.article .calendar-badge div:last-child {
  color: #333;
  font-size: 1rem;
  font-weight: bold;
  padding: 0.05rem 0;
}

.calendar-badge {
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
  font-family: 'Fredoka', sans-serif;
  height: 60px;
  overflow: hidden;
  position: absolute;
  right: 0.3rem;
  text-align: center;
  top: 0.3rem;
  width: 60px;
  z-index: 2;
}

.calendar-badge div:first-child {
  background: #e96b00;
  color: #fff;
  font-size: 0.55rem;
  font-weight: bold;
  padding: 0.05rem 0;
}

.calendar-badge div:last-child {
  color: #333;
  font-size: 1rem;
  font-weight: bold;
  padding: 0.05rem 0;
}

.calendar-badge div:nth-child(1) {
  background: #f7931e;
  border-bottom: 2px dotted #e67e00;
  color: #fff;
  font-size: 0.65rem;
  font-weight: bold;
  padding: 3px 0;
}

.calendar-badge div:nth-child(2) {
  color: #333;
  font-size: 1.1rem;
  font-weight: bold;
}

.calendar-badge div:nth-child(3) {
  color: #f7931e;
  font-size: 0.75rem;
  font-weight: bold;
  margin-bottom: 10px;
}

.calendar-box {
  background: #fff;
  border-radius: 20px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  font-family: Arial, sans-serif;
  margin: 5px auto;
  overflow: hidden;
  text-align: center;
  width: 125px;
}

.calendar-day {
  color: #333;
  font-size: 2.5rem;
  font-weight: bold;
  margin: 10px 0 5px 0;
}

.calendar-month {
  background: #f7931e;
  border-bottom: 2px dotted #e67e00;
  color: #fff;
  font-size: 1rem;
  font-weight: bold;
  padding: 10px 0;
}

.calendar-weekday {
  color: #f7931e;
  font-size: 0.9rem;
  font-weight: bold;
  margin-bottom: 15px;
}

.card {
  background: #fff;
  border-radius: 8px;
  margin: 1.5rem 0;
  padding: 1rem;
}

.card h4 {
  color: #e96b00;
  font-family: 'Fredoka';
  margin-bottom: 1rem;
  text-align: center;
}

.grid {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
}

.grid.search-results {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  justify-content: center;
  width: 1088px;
}

.grid.search-results.fallback {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  width: 1088px;
}

.highlight-box {
  margin-bottom: 2rem;
  margin-top: 0.5rem;
  width: 1088px;
}

.image-box {
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  height: 200px;
  position: relative;
  width: 250px;
}

.main-section {
  padding: 1rem;
  width: 70%;
}

.newsletter-box {
  background: #fff;
  border-radius: 8px;
  margin: 1.5rem 0;
  padding: 1rem;
  text-align: center;
}

.newsletter-box button {
  background: #e96b00;
  border: none;
  border-radius: 4px;
  color: white;
  cursor: pointer;
  font-family: 'Fredoka';
  font-weight: bold;
  margin: 1rem 0;
  padding: 0.5rem 1rem;
}

.newsletter-box h4 {
  color: #e96b00;
  font-family: 'Fredoka';
  margin-bottom: 0.5rem;
}

.newsletter-box input {
  border: 1px solid #ccc;
  border-radius: 4px;
  font-family: 'Fredoka';
  margin-top: 0.5rem;
  padding: 0.5rem;
  width: 100%;
}

.no-results {
  color: #444;
  font-family: 'Fredoka';
  font-size: 1rem;
  margin-top: 2rem;
  text-align: center;
}

.no-results-message {
  color: #444;
  font-family: 'Fredoka', sans-serif;
  font-size: 1rem;
  margin-top: 2rem;
  text-align: center;
}

.pagination-box {
  color: #e96b00;
  display: flex;
  flex-wrap: wrap;
  font-family: 'Fredoka', sans-serif;
  gap: 0.5rem;
  justify-content: center;
  margin-bottom: 2.5rem;
  margin-top: 2.5rem;
}

.pagination-box a {
  background: #fff5d7;
  border-radius: 20px;
  color: #e96b00;
  font-weight: bold;
  padding: 0.4rem 0.8rem;
  text-decoration: none;
}

.pagination-box a,
.pagination-box span.current-page {
  align-items: center;
  border-radius: 20px;
  display: inline-flex;
  font-weight: bold;
  justify-content: center;
  line-height: 1;
  text-decoration: none;
}

.pagination-box span.current-page {
  background: #e96b00;
  border-radius: 20px;
  color: #fff;
  font-weight: bold;
  padding: 0.4rem 0.8rem;
}

.search-results.flex {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  width: 1088px;
}

.search-results.grid {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  justify-content: center;
  width: 1088px;
}

.search-wrapper {
  align-items: center;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-bottom: 2rem;
  width: 100%;
}

.sidebar-grid {
  align-items: center;
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(4, 1fr);
  justify-items: center;
  margin-top: 2rem;
}

.sidebar-grid img {
  height: 40px;
  width: 40px;
}

.title-overlay {
  background: rgba(255, 255, 255, 0.95);
  bottom: 0;
  left: 0;
  padding: 0.4rem 0.6rem;
  position: absolute;
  text-align: center;
  width: 100%;
}

.title-overlay h3 {
  color: #000;
  font-family: 'Fredoka', sans-serif;
  font-size: 0.75rem;
  margin: 0;
}

.top-articles {
  list-style: none;
  margin: 0;
  padding: 0;
}

.top-articles li {
  align-items: center;
  border-bottom: 1px solid #ddd;
  display: flex;
  gap: 0.5rem;
  padding: 0.8rem 0;
}

.trending-link {
  align-items: center;
  color: inherit;
  display: flex;
  gap: 0.5rem;
  text-decoration: none;
}

.trending-link img {
  border-radius: 4px;
  height: 60px;
  object-fit: cover;
  width: 60px;
}

.trending-link span {
  color: #000;
  font-family: 'Fredoka', sans-serif;
  font-size: 0.75rem;
}

.trending-thumbnail {
  border-radius: 4px;
  height: 60px;
  object-fit: cover;
  width: 60px;
}

.trending-title {
  color: #000;
  font-family: 'Fredoka', sans-serif;
  font-size: 0.75rem;
}

/* Layout structure */
.layout-container {
  display: flex;
  flex-direction: row;
  justify-content: center;
  margin: 0 auto;
  max-width: 1600px;
  width: 100%;
}

/* Reset and base styles */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html, body {
  background: #fff8f2;
  color: #1a1a1a;
  font-family: 'Fredoka', sans-serif;
  margin: 0;
  overflow-x: hidden;
  padding: 0;
  width: 100%;
}

@media (max-width: 768px) {
  #left-sidebar,
  #right-sidebar {
    display: none;
  }
}

@media (max-width: 768px) {
  .article-image-wrapper {
    margin-top: 0rem;
  }
}

@media (max-width: 768px) {
  #left-sidebar,
  #right-sidebar {
    display: none;
  }
  .layout-container {
    display: block;
    width: 100%;
  }
  .main-section {
    padding: 1rem;
    width: 100% !important;
  }
}

@media (max-width: 768px) {
  .pagination-box a {
    background: #fff5d7;
    color: #e96b00;
    font-size: 0.55rem;
    padding: 0.1rem 0.4rem;
    text-decoration: none;
  }
  .pagination-box span.current-page {
    background: #e96b00;
    color: #fff;
    font-size: 0.55rem;
    padding: 0.1rem 0.4rem;
  }
}

@media (min-width: 769px) {
  .pagination-box a {
    background: #fff5d7;
    color: #e96b00;
    padding: 0.4rem 0.8rem;
    text-decoration: none;
  }
  .pagination-box span.current-page {
    background: #e96b00;
    color: #fff;
    padding: 0.4rem 0.8rem;
  }
}

@media (max-width: 768px) {
  .pagination-box a {
    background: #fff5d7;
    color: #e96b00;
    font-size: 0.55rem;
    padding: 0.1rem 0.4rem;
  }
  .pagination-box span.current-page {
    background: #e96b00;
    color: #fff;
    font-size: 0.55rem;
    padding: 0.1rem 0.4rem;
  }
}

@media (min-width: 769px) {
  .pagination-box a {
    background: #fff5d7;
    color: #e96b00;
    padding: 0.4rem 0.8rem;
  }
  .pagination-box span.current-page {
    background: #e96b00;
    color: #fff;
    padding: 0.4rem 0.8rem;
  }
}
