/* =====================================================
   COUNTIES CSS
   Index + Single County + Archive
   ===================================================== */

/* ---------- Shared ---------- */
.counties-page,
.county-page,
.county-archive-page {
  padding: 0.75rem 0 2.5rem;
}

.counties-page .breadcrumbs,
.county-page .breadcrumbs,
.county-archive-page .breadcrumbs {
  margin-bottom: 1rem;
}

/* Page header */
.page-header {
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--gray-200);
}

.page-title {
  font-size: clamp(1.7rem, 3.5vw, 2.3rem);
  font-weight: 800;
  color: #0F172A;
  margin-bottom: 0.4rem;
  line-height: 1.25;
}

.page-description {
  font-size: 1.05rem;
  color: var(--gray-600);
  max-width: 640px;
  line-height: 1.55;
}

/* =====================================================
   1. COUNTIES INDEX (grid of counties)
   ===================================================== */
.counties-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

@media (min-width: 640px) {
  .counties-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1000px) {
  .counties-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (min-width: 1300px) {
  .counties-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 1.6rem;
  }
}

/* County card (from render_county_card) */
.county-card {
  background: #05305A !important;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid #05305A;
  box-shadow: 0 2px 10px rgba(5, 48, 90, 0.10);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.county-card:hover {
  background: #05305A !important;
  transform: translateY(-4px);
  box-shadow: 0 12px 28px rgba(5, 48, 90, 0.18);
}

/* THIS is the actual area behind the county text */
.county-card-content {
  background: #05305A !important;
  padding: 1.15rem 1.2rem 1.3rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.county-card-title,
.county-card-title a {
  color: #fff !important;
}

.county-card-description {
  color: rgba(255, 255, 255, 0.82) !important;
}

.county-card-stats {
  color: rgba(255, 255, 255, 0.70) !important;
}

.county-card-link {
  color: var(--orange) !important;
}

.county-card-link:hover {
  color: #fff !important;
}

/* =====================================================
   2. SINGLE COUNTY PAGE
   ===================================================== */
.county-header {
  margin-bottom: 2.5rem;
}

.county-hero-image {
  border-radius: 14px;
  overflow: hidden;
  margin-bottom: 1.5rem;
  box-shadow: 0 8px 25px rgba(5, 48, 90, 0.12);
}

.county-hero-img {
  width: 100%;
  height: 320px;
  object-fit: cover;
  display: block;
}

@media (min-width: 900px) {
  .county-hero-img {
    height: 380px;
  }
}

.county-title {
  font-size: clamp(1.9rem, 4vw, 2.6rem);
  font-weight: 800;
  color: #0F172A;
  margin-bottom: 0.6rem;
}

.county-description {
  font-size: 1.1rem;
  color: var(--gray-600);
  max-width: 720px;
  line-height: 1.6;
  margin-bottom: 1rem;
}

.county-stats {
  display: flex;
  gap: 1.5rem;
}

.county-stat {
  font-size: 0.95rem;
  color: var(--gray-600);
}

.county-stat strong {
  color: #0F172A;
  font-weight: 800;
  font-size: 1.15rem;
  margin-right: 0.25rem;
}

/* County layout */
.county-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
}

@media (min-width: 1100px) {
  .county-grid {
    grid-template-columns: 1fr 300px;
    gap: 3rem;
    align-items: start;
  }
}

/* Featured stories */
.county-featured {
  margin-bottom: 2.75rem;
}

.featured-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

@media (min-width: 700px) {
  .featured-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.featured-card {
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid #05305A;
  box-shadow: 0 2px 10px rgba(5, 48, 90, 0.06);
  transition: all 0.25s ease;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.featured-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 28px rgba(5, 48, 90, 0.12);
}

.featured-image {
  width: 100%;
  aspect-ratio: 16/10;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.featured-card:hover .featured-image {
  transform: scale(1.04);
}

.featured-content {
  padding: 1.1rem 1.15rem 1.25rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.featured-title {
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.35;
  margin-bottom: 0.5rem;
  color: #0F172A;
}

.featured-title a:hover {
  color: var(--orange);
}

.featured-meta {
  font-size: 0.8rem;
  color: var(--gray-500);
  margin-bottom: 0.6rem;
}

.featured-excerpt {
  font-size: 0.9rem;
  color: var(--gray-600);
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Latest stories list */
.county-latest {
  margin-bottom: 2.5rem;
}

.articles-list {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.article-list-item {
  display: flex;
  gap: 1.15rem;
  background: #05305A;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid #05305A;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.article-list-item:hover {
  background: #05305A;
  border-color: #05305A;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(5, 48, 90, 0.16);
}

.article-image-link {
  flex-shrink: 0;
  width: 160px;
  display: block;
  overflow: hidden;
}

.article-thumb {
  width: 100%;
  height: 100%;
  min-height: 110px;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.article-list-item:hover .article-thumb {
  transform: scale(1.05);
}

.article-list-content {
  padding: 1rem 1.15rem 1rem 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  flex: 1;
  background: #05305A;
}

.article-list-title {
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.35;
  margin-bottom: 0.4rem;
  color: #fff;
}

.article-list-title a {
  color: #fff;
}

.article-list-title a:hover {
  color: var(--orange);
}

.article-list-meta {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.65);
  margin-bottom: 0.4rem;
  display: flex;
  gap: 0.75rem;
}

.article-list-excerpt {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.82);
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

@media (max-width: 600px) {
  .article-list-item {
    flex-direction: column;
  }

  .article-image-link {
    width: 100%;
  }

  .article-thumb {
    aspect-ratio: 16/9;
    min-height: auto;
  }

  .article-list-content {
    padding: 1rem 1.15rem 1.15rem;
    background: #05305A;
  }
}

/* Videos & Podcasts on county page */
.county-videos,
.county-podcasts {
  margin-bottom: 2.5rem;
}

.video-grid,
.podcast-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
}

@media (min-width: 700px) {
  .video-grid {
    grid-template-columns: repeat(4, 1fr);
  }
  .podcast-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.video-card,
.podcast-card {
  background: #fff;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid #E2E8F0;
  transition: all 0.25s ease;
}

.video-card:hover,
.podcast-card:hover {
  border-color: #05305A;
  transform: translateY(-2px);
}

.video-thumb {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
}

.video-duration {
  position: absolute;
  bottom: 8px;
  right: 8px;
  background: rgba(0,0,0,0.8);
  color: #fff;
  font-size: 0.7rem;
  padding: 0.15rem 0.4rem;
  border-radius: 4px;
}

.video-title,
.podcast-title {
  font-size: 0.9rem;
  font-weight: 600;
  padding: 0.75rem 0.85rem;
  color: #0F172A;
  line-height: 1.35;
}

.video-title a:hover,
.podcast-title a:hover {
  color: var(--orange);
}

.podcast-cover {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
}

/* =====================================================
   COUNTY PAGE - NAVY INFORMATION CARDS
   ===================================================== */

.county-sidebar .sidebar-widget {
  background: #05305A;
  border: 1px solid #05305A;
  border-radius: 12px;
  padding: 1.35rem;
  box-shadow: 0 4px 14px rgba(5, 48, 90, 0.10);
}

/* Widget headings */
.county-sidebar .widget-title {
  color: #fff;
  border-bottom-color: rgba(255, 255, 255, 0.25);
}

/* About county text */
.county-sidebar .sidebar-widget p {
  color: rgba(255, 255, 255, 0.82);
  line-height: 1.6;
}

/* More stories */
.county-sidebar .story-list li {
  border-bottom-color: rgba(255, 255, 255, 0.14);
}

.county-sidebar .story-list a {
  color: #fff;
}

.county-sidebar .story-list a:hover {
  color: var(--orange);
}

.county-sidebar .story-date {
  color: rgba(255, 255, 255, 0.62);
}

/* Sidebar */
.county-sidebar {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

@media (min-width: 1100px) {
  .county-sidebar {
    position: sticky;
    top: 100px;
  }
}

.sidebar-widget {
  background: #fff;
  border-radius: 12px;
  padding: 1.35rem;
  border: 1px solid #E2E8F0;
  box-shadow: 0 2px 10px rgba(5, 48, 90, 0.05);
}

.widget-title {
  font-size: 1.05rem;
  font-weight: 800;
  color: #0F172A;
  margin-bottom: 1rem;
  padding-bottom: 0.6rem;
  border-bottom: 2px solid var(--gold);
}

.story-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.story-list li {
  padding: 0.75rem 0;
  border-bottom: 1px solid #F1F5F9;
}

.story-list li:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.story-list a {
  font-size: 0.92rem;
  font-weight: 600;
  color: #0F172A;
  line-height: 1.4;
  display: block;
  margin-bottom: 0.25rem;
}

.story-list a:hover {
  color: var(--orange);
}

.story-date {
  font-size: 0.78rem;
  color: var(--gray-500);
}

/* =====================================================
   3. COUNTY ARCHIVE
   ===================================================== */
.county-archive-page .articles-list {
  margin-bottom: 1.5rem;
}

/* Pagination (shared) */
.pagination,
ul.page-numbers {
  display: flex !important;
  flex-direction: row !important;
  justify-content: center !important;
  align-items: center !important;
  gap: 0.3rem !important;
  margin: 1.5rem auto 0 !important;
  padding: 0 !important;
  list-style: none !important;
}

.pagination a,
.pagination span,
.page-numbers a,
.page-numbers span {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  min-width: 36px !important;
  height: 36px !important;
  padding: 0 0.6rem !important;
  border-radius: 8px !important;
  font-weight: 600 !important;
  font-size: 0.88rem !important;
  color: #0F172A !important;
  background: #fff !important;
  border: 1px solid #E2E8F0 !important;
}

.pagination a:hover {
  background: #05305A !important;
  color: #fff !important;
  border-color: #05305A !important;
}

.pagination .current,
.page-numbers .current {
  background: #05305A !important;
  color: #fff !important;
  border-color: #05305A !important;
}

/* Empty / no content */
.no-content {
  padding: 2rem;
  text-align: center;
  color: var(--gray-600);
  background: #F8FAFC;
  border-radius: 10px;
}



