/* =====================================================
   PNTV AFRICA – ARTICLE PAGE
   Compact / Clean / Responsive
   Font: Montserrat, Arial, sans-serif
   Existing brand colors maintained
   ===================================================== */

.article-page {
  padding: 1.1rem 0 3rem;
  font-family: 'Montserrat', Arial, sans-serif;
}

/* =====================================================
   BREADCRUMBS
   ===================================================== */

.breadcrumbs,
.breadcrumb,
.breadcrumb-list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.78rem;
  line-height: 1.35;
  color: var(--gray-600);
  margin: 0 0 1.15rem;
}

.breadcrumbs a,
.breadcrumb a {
  color: var(--gray-600);
  text-decoration: none;
  transition: color var(--transition);
}

.breadcrumbs a:hover,
.breadcrumb a:hover {
  color: var(--orange);
}

.breadcrumbs span,
.breadcrumb .separator,
.breadcrumbs .separator {
  color: var(--gray-400);
}

.breadcrumbs .separator,
.breadcrumb .separator {
  margin: 0 0.1rem;
}

.breadcrumbs li::marker,
.breadcrumb li::marker {
  content: none;
}

/* =====================================================
   MAIN ARTICLE GRID
   ===================================================== */

.article-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 2rem;
  align-items: start;
}

@media (min-width: 1100px) {
  .article-grid {
    /*
     * The previous 780px max-width on article-main could
     * leave unused space inside the main grid column.
     *
     * This lets the main article properly occupy its column.
     */
    grid-template-columns: minmax(0, 1fr) 300px;
    gap: 2.25rem;
  }
}

/* =====================================================
   MAIN COLUMN
   ===================================================== */

.article-main {
  width: 100%;
  min-width: 0;
}

/* =====================================================
   CATEGORY
   ===================================================== */

.article-category {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-bottom: 0.7rem;
}

.category-label {
  display: inline-flex;
  align-items: center;
  background: linear-gradient(135deg, var(--orange), var(--gold));
  color: var(--navy-dark);
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.045em;
  line-height: 1;
  padding: 0.38rem 0.7rem;
  border-radius: 5px;
}

.editors-pick-badge {
  display: inline-flex;
  align-items: center;
  background: var(--navy);
  color: var(--white);
  font-size: 0.66rem;
  font-weight: 700;
  line-height: 1;
  padding: 0.38rem 0.65rem;
  border-radius: 5px;
  text-transform: uppercase;
}

/* =====================================================
   ARTICLE TITLE
   ===================================================== */

.article-title {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: clamp(1.65rem, 3vw, 2.25rem);
  font-weight: 800;
  line-height: 1.18;
  letter-spacing: -0.025em;
  color: #0F172A;
  margin: 0 0 0.9rem;
  max-width: 950px;
}

/* =====================================================
   ARTICLE META
   ===================================================== */

.article-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1.25rem;
  padding: 0 0 1rem;
  margin: 0 0 1.25rem;
  border-bottom: 1px solid var(--gray-200);
}

.meta-author {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  min-width: 0;
}

.author-avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

.author-info {
  min-width: 0;
}

.author-name {
  display: block;
  font-size: 0.84rem;
  line-height: 1.3;
  font-weight: 700;
  color: #0F172A;
}

.author-name a {
  color: inherit;
  text-decoration: none;
}

.author-name a:hover {
  color: var(--orange);
}

.meta-date {
  display: block;
  margin-top: 0.15rem;
  font-size: 0.72rem;
  line-height: 1.35;
  color: var(--gray-600);
}

.updated-date {
  margin-left: 0.35rem;
  color: var(--gray-500);
}

.meta-stats {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.8rem;
  font-size: 0.72rem;
  color: var(--gray-600);
}

/* =====================================================
   FEATURED IMAGE
   ===================================================== */

.article-featured-image {
  margin: 0 0 1.4rem;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--gray-50);
  box-shadow: var(--shadow);
}

.featured-img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.article-featured-image figcaption {
  padding: 0.55rem 0.8rem 0.15rem;
  background: var(--gray-50);
  color: var(--gray-600);
  font-size: 0.72rem;
  line-height: 1.4;
}

.image-credit {
  display: block;
  padding: 0.1rem 0.8rem 0.65rem;
  background: var(--gray-50);
  color: var(--gray-500);
  font-size: 0.68rem;
  line-height: 1.35;
}

/* =====================================================
   ARTICLE CONTENT
   ===================================================== */

.article-content {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 0.97rem;
  line-height: 1.72;
  color: #0F172A;
}

.article-excerpt {
  font-size: 1.02rem;
  font-weight: 500;
  line-height: 1.6;
  color: #1E293B;
  margin: 0 0 1.35rem;
  padding: 0.1rem 0 0.1rem 0.9rem;
  border-left: 3px solid var(--gold);
}

.article-body {
  width: 100%;
}

.article-body p {
  margin: 0 0 1.05rem;
}

.article-body h2 {
  margin: 1.7rem 0 0.65rem;
  font-size: 1.3rem;
  line-height: 1.3;
  font-weight: 800;
  color: #0F172A;
}

.article-body h3 {
  margin: 1.45rem 0 0.55rem;
  font-size: 1.08rem;
  line-height: 1.35;
  font-weight: 800;
  color: #0F172A;
}

.article-body h4 {
  margin: 1.2rem 0 0.5rem;
  font-size: 0.98rem;
  line-height: 1.4;
  font-weight: 700;
  color: #0F172A;
}

.article-body ul,
.article-body ol {
  margin: 0 0 1.1rem;
  padding-left: 1.35rem;
}

.article-body li {
  margin-bottom: 0.35rem;
}

.article-body blockquote {
  margin: 1.3rem 0;
  padding: 0.8rem 1rem;
  border-left: 3px solid var(--gold);
  background: var(--gray-50);
  color: #1E293B;
}

.article-body img {
  display: block;
  max-width: 100%;
  height: auto;
  margin: 1.2rem 0;
  border-radius: var(--radius-sm);
}

.article-body a {
  color: var(--orange);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.article-body a:hover {
  color: var(--navy);
}

/* Prevent long words / URLs from forcing the layout wider */
.article-content,
.article-body,
.article-body p,
.article-body h2,
.article-body h3 {
  overflow-wrap: break-word;
  word-wrap: break-word;
}

/* =====================================================
   TAGS
   ===================================================== */

.article-tags {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.55rem;
  margin: 1.8rem 0 1.1rem;
  padding-top: 1.1rem;
  border-top: 1px solid var(--gray-200);
}

.tags-label {
  font-size: 0.78rem;
  font-weight: 700;
  color: #0F172A;
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  padding: 0;
  margin: 0;
  list-style: none;
}

.tag-list a {
  display: inline-flex;
  align-items: center;
  background: var(--gray-100);
  color: var(--navy);
  font-size: 0.72rem;
  font-weight: 600;
  line-height: 1;
  padding: 0.4rem 0.65rem;
  border-radius: 999px;
  text-decoration: none;
  transition: all var(--transition);
}

.tag-list a:hover {
  background: var(--gold);
  color: var(--navy-dark);
}

/* =====================================================
   SHARE
   ===================================================== */

.article-share {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.7rem;
  margin: 1.5rem 0;
  padding: 1rem 0;
  border-top: 1px solid var(--gray-200);
  border-bottom: 1px solid var(--gray-200);
}

.share-label {
  font-size: 0.78rem;
  font-weight: 700;
  color: #0F172A;
}

.share-buttons {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem;
  list-style: none;
  padding: 0;
  margin: 0;
}

.share-buttons a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  padding: 0;
  background: var(--gray-100);
  color: #0F172A;
  border-radius: 8px;
  text-decoration: none;
  transition: all 0.25s ease;
}

.share-buttons a:hover {
  background: var(--navy);
  color: var(--white);
  transform: translateY(-1px);
}

.share-buttons svg {
  width: 16px;
  height: 16px;
}

/* =====================================================
   AUTHOR BOX
   ===================================================== */

.author-box {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  background: var(--gray-50);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  padding: 1.15rem;
  margin: 1.8rem 0;
}

.author-box-avatar {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

.author-box-info {
  min-width: 0;
}

.author-box-info h3 {
  margin: 0 0 0.3rem;
  font-size: 0.98rem;
  line-height: 1.35;
  font-weight: 800;
  color: #0F172A;
}

.author-box-info h3 a {
  color: inherit;
  text-decoration: none;
}

.author-box-info h3 a:hover {
  color: var(--orange);
}

.author-bio {
  margin: 0 0 0.5rem;
  font-size: 0.78rem;
  line-height: 1.55;
  color: var(--gray-700);
}

.more-articles {
  font-size: 0.75rem;
  line-height: 1.4;
  font-weight: 600;
  color: var(--orange);
  text-decoration: none;
}

.more-articles:hover {
  color: var(--navy);
}

/* =====================================================
   NEWSLETTER
   ===================================================== */

.article-main .newsletter-cta {
  background: linear-gradient(145deg, #021F3A 0%, #05305A 100%) !important;
  border-radius: 14px !important;
  padding: 1.65rem 1.5rem !important;
  margin: 1.8rem 0 !important;
  text-align: center !important;
  color: #fff !important;
}

.article-main .newsletter-cta h3 {
  margin: 0 0 0.35rem !important;
  color: #fff !important;
  font-size: 1.15rem !important;
  line-height: 1.3 !important;
  font-weight: 800 !important;
}

.article-main .newsletter-cta p {
  max-width: 430px !important;
  margin: 0 auto 1.1rem !important;
  color: #fff !important;
  opacity: 0.9 !important;
  font-size: 0.78rem !important;
  line-height: 1.5 !important;
}

.article-main .newsletter-form,
.article-main form.newsletter-form,
.article-main .newsletter-form.inline {
  display: flex !important;
  flex-direction: row !important;
  align-items: stretch !important;
  gap: 0.55rem !important;
  width: 100% !important;
  max-width: 430px !important;
  margin: 0 auto !important;
}

.article-main .newsletter-form input[type="email"] {
  flex: 1 1 auto !important;
  min-width: 0 !important;
  width: auto !important;
  height: 42px !important;
  padding: 0 0.9rem !important;
  border: 1px solid rgba(255, 255, 255, 0.25) !important;
  border-radius: 8px !important;
  background: rgba(255, 255, 255, 0.1) !important;
  color: #fff !important;
  font-family: 'Montserrat', Arial, sans-serif !important;
  font-size: 0.78rem !important;
  box-sizing: border-box !important;
}

.article-main .newsletter-form input[type="email"]::placeholder {
  color: rgba(255, 255, 255, 0.55) !important;
}

.article-main .newsletter-form button[type="submit"] {
  flex: 0 0 auto !important;
  width: auto !important;
  min-width: 105px !important;
  height: 42px !important;
  padding: 0 1rem !important;
  border: none !important;
  border-radius: 8px !important;
  background: linear-gradient(135deg, #FF8C1A, #FFCA26) !important;
  color: #021F3A !important;
  font-family: 'Montserrat', Arial, sans-serif !important;
  font-size: 0.78rem !important;
  font-weight: 700 !important;
  cursor: pointer !important;
  white-space: nowrap !important;
  box-shadow: none !important;
}

/* =====================================================
   RELATED ARTICLES
   ===================================================== */

.related-articles {
  margin-top: 2rem;
  padding-top: 1.4rem;
  border-top: 1px solid var(--gray-200);
}

.related-articles .section-title {
  margin: 0 0 1rem;
}

.related-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

@media (min-width: 600px) {
  .related-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 900px) {
  .related-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.related-card {
  min-width: 0;
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: all var(--transition);
}

.related-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-hover);
}

.related-image-link {
  display: block;
  overflow: hidden;
}

.related-image {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.related-card:hover .related-image {
  transform: scale(1.03);
}

.related-title {
  margin: 0;
  padding: 0.75rem 0.8rem 0.25rem;
  font-size: 0.82rem;
  line-height: 1.4;
  font-weight: 700;
  color: #0F172A;
}

.related-title a {
  color: inherit;
  text-decoration: none;
}

.related-title a:hover {
  color: var(--orange);
}

.related-meta {
  padding: 0 0.8rem 0.8rem;
  font-size: 0.68rem;
  line-height: 1.3;
  color: var(--gray-600);
}

/* =====================================================
   SIDEBAR
   ===================================================== */

.article-sidebar {
  display: flex;
  flex-direction: column;
  gap: 1.15rem;
  min-width: 0;
}

.sidebar-widget {
  background: var(--white);
  border: 1px solid var(--gray-100);
  border-radius: var(--radius);
  padding: 1rem;
  box-shadow: var(--shadow);
}

.widget-title {
  margin: 0 0 0.75rem;
  padding: 0 0 0.55rem;
  border-bottom: 2px solid var(--gold);
  color: #0F172A;
  font-size: 0.9rem;
  line-height: 1.3;
  font-weight: 800;
}

/* =====================================================
   TRENDING
   ===================================================== */

.trending-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.trending-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  padding: 0.7rem 0;
  border-bottom: 1px solid var(--gray-100);
}

.trending-list li:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.trending-list li:first-child {
  padding-top: 0.2rem;
}

.trending-number {
  display: none;
}

.trending-list a {
  display: block;
  color: #0F172A;
  font-size: 0.78rem;
  line-height: 1.42;
  font-weight: 600;
  text-decoration: none;
}

.trending-list a:hover {
  color: var(--orange);
}

/* =====================================================
   COUNTY LIST
   ===================================================== */

.county-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.1rem 0.7rem;
  list-style: none;
  padding: 0;
  margin: 0;
}

.county-list a {
  display: block;
  padding: 0.3rem 0;
  color: #0F172A;
  font-size: 0.75rem;
  line-height: 1.35;
  font-weight: 600;
  text-decoration: none;
  transition: color var(--transition);
}

.county-list a:hover {
  color: var(--orange);
}

/* =====================================================
   STICKY SIDEBAR
   ===================================================== */

@media (min-width: 1100px) {
  .article-sidebar {
    position: sticky;
    top: 90px;
    max-height: calc(100vh - 110px);
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: var(--gray-300) transparent;
  }

  .article-sidebar::-webkit-scrollbar {
    width: 4px;
  }

  .article-sidebar::-webkit-scrollbar-track {
    background: transparent;
  }

  .article-sidebar::-webkit-scrollbar-thumb {
    background: var(--gray-300);
    border-radius: 10px;
  }
}

/* =====================================================
   TABLET
   ===================================================== */

@media (max-width: 1099px) {
  .article-sidebar {
    order: 2;
  }
}

/* =====================================================
   MOBILE
   ===================================================== */

@media (max-width: 700px) {
  .article-page {
    padding: 0.9rem 0 2rem;
  }

  .article-title {
    font-size: 1.55rem;
    line-height: 1.2;
    letter-spacing: -0.02em;
  }

  .article-meta {
    align-items: flex-start;
  }

  .meta-stats {
    width: 100%;
  }

  .article-content {
    font-size: 0.92rem;
    line-height: 1.68;
  }

  .article-excerpt {
    font-size: 0.96rem;
    line-height: 1.55;
  }

  .article-body h2 {
    font-size: 1.2rem;
    margin-top: 1.45rem;
  }

  .article-body h3 {
    font-size: 1.02rem;
  }

  .author-box {
    padding: 1rem;
  }

  .article-main .newsletter-form,
  .article-main form.newsletter-form,
  .article-main .newsletter-form.inline {
    flex-direction: column !important;
  }

  .article-main .newsletter-form input[type="email"] {
    width: 100% !important;
  }

  .article-main .newsletter-form button[type="submit"] {
    width: 100% !important;
  }
}

@media (max-width: 520px) {
  .article-category {
    margin-bottom: 0.6rem;
  }

  .article-title {
    font-size: 1.4rem;
  }

  .article-meta {
    flex-direction: column;
    align-items: flex-start;
  }

  .article-featured-image {
    border-radius: 8px;
  }

  .article-share {
    align-items: flex-start;
    flex-direction: column;
  }

  .share-buttons {
    width: 100%;
  }

  .share-buttons a {
    width: 35px;
    height: 35px;
  }

  .author-box {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .author-box-info {
    width: 100%;
  }

  .county-list {
    grid-template-columns: 1fr 1fr;
  }
}

/* =====================================================
   VERY SMALL SCREENS
   ===================================================== */

@media (max-width: 380px) {
  .article-title {
    font-size: 1.3rem;
  }

  .article-content {
    font-size: 0.9rem;
  }

  .category-label,
  .editors-pick-badge {
    font-size: 0.62rem;
  }

  .sidebar-widget {
    padding: 0.85rem;
  }
}

/* =====================================================
   ARTICLE CARD META – proper spacing
   ===================================================== */
.article-card-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem 0.6rem;          /* vertical | horizontal spacing */
  margin-top: 0.5rem;
  font-size: 0.72rem;
  line-height: 1.35;
  color: #64748B;
}

.article-card-meta time {
  color: #64748B;
  white-space: nowrap;
}

.article-card-author {
  color: #64748B;
  white-space: nowrap;
}

/* Optional: make the "By" a bit lighter */
.article-card-author::before {
  /* already has "By " in the PHP, so no need */
}

.article-card-separator {
  color: #94A3B8;
  font-size: 0.65rem;
  line-height: 1;
}
