/* News Sidebar Styles */

/* General sidebar styling */
.news-sidebar {
  padding: 0 0 0 30px;
  border-left: 1px solid #000;
}

/* Section styling */
.sidebar-section {
  margin-bottom: 30px;
}

.sidebar-section h4 {
  font-family: "DIN Condensed", sans-serif;
  font-size: 1.8rem;
  margin-bottom: 15px;
  color: #e21e25;
  text-transform: uppercase;
  font-weight: 600;
}

/* Recent Posts list styling */
.recent-posts-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.recent-posts-list li {
  margin-bottom: 10px;
  padding-bottom: 5px;
}

.recent-posts-list a {
  font-family: "Source Sans 3", sans-serif;
  color: #000;
  text-decoration: none;
  display: block;
  font-size: 1rem;
  line-height: 1.4;
  font-weight: 700;
}

.recent-posts-list a:hover {
  color: #e21e25;
  text-decoration: underline;
}

.recent-posts-list .post-date {
  display: block;
  font-size: 0.85rem;
  color: #777;
  margin-top: 2px;
}

/* Categories list styling */
.categories-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.categories-list li {
  margin-bottom: 8px;
}

.categories-list a {
  font-family: "Source Sans 3", sans-serif;
  color: #000;
  text-decoration: none;
  font-size: 1rem;
  line-height: 1.4;
  font-weight: 700;
}

.categories-list a:hover {
  color: #e21e25;
  text-decoration: underline;
}

/* Archives list styling */
.archives-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.archives-list li {
  margin-bottom: 8px;
}

.archives-list a {
  font-family: "Source Sans 3", sans-serif;
  color: #000;
  text-decoration: none;
  font-size: 1rem;
  line-height: 1.4;
  font-weight: 700;
}

.archives-list a:hover {
  color: #e21e25;
  text-decoration: underline;
}

/* Single news post styling */
.single-news-content {
  padding-top: 150px;
  margin-top: 0;
}

.single-news-content .entry-header {
  margin-bottom: 30px;
}

.single-news-content .entry-header h1 {
  font-family: "Manus", sans-serif !important;
  margin-bottom: 15px;
  color: #e21e25;
  text-transform: none;
  line-height: 1.2;
  text-align: center;
}

.single-news-content .post-credentials {
  font-family: "Source Sans 3", sans-serif;
  color: #000;
  font-size: 1rem;
  margin-bottom: 20px;
  text-align: center;
}

.single-news-content .entry-content {
  font-family: "Source Sans 3", sans-serif;
  color: #000;
  font-size: 1rem;
  line-height: 1.6;
}

.single-news-content .entry-content img {
  max-width: 100%;
  height: auto;
  margin: 20px 0;
}

.single-news-content .entry-content p {
  margin-bottom: 1.2rem;
}

/* Back to News button */
.back-to-news .featured-cta {
  display: inline-block;
  margin-top: 20px;
}

/* Archive title styling */
.archive-title {
  font-family: "Manus", sans-serif !important;
  color: #e21e25;
  text-align: center;
  margin-bottom: 20px;
}

/* Table styling for single posts */
.single-news-content table {
  width: 100%;
  margin-bottom: 30px;
}

.single-news-content table td,
.single-news-content table th {
  padding: 15px;
  vertical-align: top;
}

.single-news-content table img {
  max-width: 100%;
  height: auto;
}

/* Responsive adjustments */
@media (max-width: 991px) {
  .news-sidebar {
    margin-top: 40px;
    padding: 0;
    border-left: none;
    border-top: 1px solid #000;
    padding-top: 30px;
  }

  /* Make tables stack on mobile */
  .single-news-content table tr {
    display: flex;
    flex-direction: column;
  }

  .single-news-content table td,
  .single-news-content table th {
    display: block;
    width: 100% !important;
  }

  /* Ensure images are full width on mobile */
  .single-news-content table img {
    width: 100%;
    margin-bottom: 15px;
  }

  /* Add spacing between stacked cells */
  .single-news-content table td {
    margin-bottom: 20px;
  }
}

@media (max-width: 767px) {
  .single-news-content {
    padding-top: 100px;
  }

  .single-news-content .entry-header h1 {
    font-size: 2rem;
    line-height: 2rem !important;
  }

  /* Improve readability of content on small screens */
  .single-news-content .entry-content p {
    font-size: 1.1rem;
    line-height: 1.6;
  }

  /* Make all images full width on mobile */
  .single-news-content .entry-content img {
    width: 100%;
    height: auto;
    margin: 15px 0;
  }

  /* Add more spacing between paragraphs */
  .single-news-content .entry-content p {
    margin-bottom: 1.5rem;
  }

  /* Improve heading readability */
  .single-news-content .entry-content h3 {
    font-size: 1.6rem;
    margin: 1.5rem 0;
  }
}
