/*
Theme Name: July36 Global News
Theme URI: https://july36bd.com
Author: Mamunur Rashid
Description: Ultra Premium news theme for July36 Global News — breaking news, politics, and international coverage in Bengali.
Version: 15.3
Text Domain: july36
*/

/* ==========================================================================
   1. CUSTOM PROPERTIES
   ========================================================================== */
:root{
  --c-brand: #c40000;
  --c-brand-dark: #970000;
  --c-ink: #1a1a1a;
  --c-ink-soft: #4d4d4d;
  --c-bg: #ffffff;
  --c-bg-alt: #f6f6f7;
  --c-border: #e3e3e5;
  --c-top-bar-bg: #16161a;
  --c-top-bar-text: #d9d9dc; /* was too low-contrast before — see section 3 */
  --c-live: #ff3b30;
  --font-bn: "Noto Sans Bengali","SolaimanLipi","Kalpurush",sans-serif;
  --font-ui: var(--font-bn), system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --radius-sm: 4px;
  --radius-md: 8px;
  --shadow-card: 0 1px 3px rgba(0,0,0,.08), 0 1px 2px rgba(0,0,0,.06);
  --transition-fast: .15s ease;
  --transition-med: .3s ease;
  --container-w: 1200px;
}

/* ==========================================================================
   2. RESET / BASE
   ========================================================================== */
*,*::before,*::after{ box-sizing: border-box; }
html{ -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body{
  margin: 0;
  font-family: var(--font-ui);
  font-size: 16px;
  line-height: 1.6;
  color: var(--c-ink);
  background: var(--c-bg);
}
img{ max-width: 100%; height: auto; display: block; }
a{ color: inherit; text-decoration: none; }
ul{ list-style: none; margin: 0; padding: 0; }
button{ font-family: inherit; cursor: pointer; }
.container{
  width: 100%;
  max-width: var(--container-w);
  margin-inline: auto;
  padding-inline: 16px;
}

/* Respect reduced-motion everywhere */
@media (prefers-reduced-motion: reduce){
  *,*::before,*::after{
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
    scroll-behavior: auto !important;
  }
}

/* ==========================================================================
   3. ACCESSIBILITY (skip link, screen-reader-only text)
   ========================================================================== */
.screen-reader-text{
  position: absolute !important;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}
.skip-link.screen-reader-text:focus{
  position: fixed !important;
  top: 8px; left: 8px;
  width: auto; height: auto;
  clip: auto;
  z-index: 10000;
  background: var(--c-brand);
  color: #fff;
  padding: 10px 16px;
  border-radius: var(--radius-sm);
  font-weight: 600;
}

/* ==========================================================================
   4. TOP HEADER BAR
   ========================================================================== */
.top-header{
  background: var(--c-top-bar-bg);
  color: var(--c-top-bar-text);
  font-size: 13px;
}
.top-header-wrap{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-block: 6px;
}
.top-left time{ opacity: .9; }
.top-right{
  display: flex;
  align-items: center;
  gap: 16px;
}
.live-indicator{
  color: var(--c-live);
  font-weight: 700;
  letter-spacing: .04em;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  animation: july36-pulse 1.6s ease-in-out infinite;
}
@keyframes july36-pulse{
  0%,100%{ opacity: 1; }
  50%{ opacity: .45; }
}
.top-social{ display: flex; gap: 10px; }
.top-social a{
  color: var(--c-top-bar-text);
  display: inline-flex;
  width: 26px; height: 26px;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: background var(--transition-fast), color var(--transition-fast);
}
.top-social a:hover,
.top-social a:focus-visible{
  background: var(--c-brand);
  color: #fff;
}

/* ==========================================================================
   5. MAIN HEADER
   ========================================================================== */
.header{
  background: var(--c-bg);
  border-bottom: 3px solid var(--c-brand);
}
.header-wrap{
  display: flex;
  align-items: center;
  gap: 24px;
  padding-block: 14px;
}
.site-branding{ flex-shrink: 0; }
.site-branding .logo-text{
  font-size: 26px;
  font-weight: 800;
  color: var(--c-brand);
}
.site-branding img{ max-height: 56px; width: auto; }

.nav{ flex: 1; }
.nav-menu{
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}
.nav-menu > li > a{
  display: inline-block;
  padding: 10px 14px;
  font-weight: 600;
  font-size: 15px;
  border-radius: var(--radius-sm);
  transition: background var(--transition-fast), color var(--transition-fast);
}
.nav-menu > li > a:hover,
.nav-menu > li > a:focus-visible,
.nav-menu > li.current-menu-item > a{
  background: var(--c-brand);
  color: #fff;
}
/* submenus */
.nav-menu li{ position: relative; }
.nav-menu ul{
  position: absolute;
  top: 100%; left: 0;
  min-width: 220px;
  background: var(--c-bg);
  box-shadow: var(--shadow-card);
  border-radius: var(--radius-sm);
  padding: 6px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(6px);
  transition: opacity var(--transition-fast), transform var(--transition-fast);
  z-index: 50;
}
.nav-menu li:hover > ul,
.nav-menu li:focus-within > ul{
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.nav-menu ul li a{
  display: block;
  padding: 8px 10px;
  color: var(--c-ink);
  border-radius: var(--radius-sm);
}
.nav-menu ul li a:hover{ background: var(--c-bg-alt); }

.header-actions{ flex-shrink: 0; }
.search-toggle{
  background: none;
  border: 1px solid var(--c-border);
  border-radius: 50%;
  width: 40px; height: 40px;
  font-size: 16px;
  transition: background var(--transition-fast), border-color var(--transition-fast);
}
.search-toggle:hover,
.search-toggle:focus-visible{
  background: var(--c-brand);
  border-color: var(--c-brand);
}

/* Mobile toggle (hidden on desktop) */
.mobile-toggle{
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px; height: 40px;
  background: none;
  border: none;
}
.mobile-toggle span{
  display: block;
  width: 100%;
  height: 2px;
  background: var(--c-ink);
  border-radius: 2px;
}

/* ==========================================================================
   6. SEARCH OVERLAY
   ========================================================================== */
.search-overlay{
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.85);
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding-top: 12vh;
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--transition-med);
  z-index: 9999;
}
.search-overlay.is-open{
  opacity: 1;
  visibility: visible;
}
.search-box{
  background: var(--c-bg);
  border-radius: var(--radius-md);
  padding: 32px;
  width: min(90vw, 560px);
  position: relative;
}
.close-search{
  position: absolute;
  top: 10px; right: 14px;
  background: none;
  border: none;
  font-size: 24px;
  line-height: 1;
  color: var(--c-ink-soft);
}
.search-box .search-field{
  width: 100%;
  padding: 12px 14px;
  font-size: 16px;
  border: 1px solid var(--c-border);
  border-radius: var(--radius-sm);
}
.search-box .search-submit{
  margin-top: 12px;
  background: var(--c-brand);
  color: #fff;
  border: none;
  padding: 10px 20px;
  border-radius: var(--radius-sm);
  font-weight: 600;
}

/* ==========================================================================
   7. BREAKING NEWS TICKER
   ========================================================================== */
.breaking-bar{
  display: flex;
  align-items: center;
  background: var(--c-bg-alt);
  border-bottom: 1px solid var(--c-border);
}
.breaking-label{
  background: var(--c-brand);
  color: #fff;
  font-weight: 700;
  font-size: 13px;
  letter-spacing: .03em;
  padding: 8px 14px;
  flex-shrink: 0;
  white-space: nowrap;
}
.breaking-news{
  overflow: hidden;
  white-space: nowrap;
  flex: 1;
}
.breaking-track{
  display: inline-flex;
  gap: 40px;
  padding-inline: 20px;
  animation: july36-ticker 30s linear infinite;
}
@keyframes july36-ticker{
  from{ transform: translateX(0); }
  to{ transform: translateX(-50%); }
}
.breaking-track a{ font-size: 14px; font-weight: 600; }

/* ==========================================================================
   8. CONTENT LAYOUT (main + sidebar)
   ========================================================================== */
.site-main{ padding-block: 24px; }
.content-layout{
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 32px;
  align-items: start;
}
.section-title{
  font-size: 20px;
  font-weight: 800;
  border-left: 4px solid var(--c-brand);
  padding-left: 10px;
  margin: 0 0 16px;
}

/* Story cards — equal height, no matter how much text a headline has */
.story-grid{
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 20px;
}
.story-card{
  display: flex;
  flex-direction: column;
  height: 100%;
  background: var(--c-bg);
  border: 1px solid var(--c-border);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}
.story-card:hover{
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(0,0,0,.1);
}
.story-card .thumb{
  aspect-ratio: 16 / 9;
  overflow: hidden;
}
.story-card .thumb img{ width: 100%; height: 100%; object-fit: cover; }
.story-card .body{
  padding: 14px;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.story-card .category-tag{
  font-size: 11px;
  font-weight: 700;
  color: var(--c-brand);
  text-transform: uppercase;
  letter-spacing: .04em;
  margin-bottom: 6px;
}
.story-card h3{
  font-size: 16px;
  line-height: 1.4;
  margin: 0 0 8px;
  /* clamp headline so cards stay equal height regardless of title length */
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.story-card .meta{
  margin-top: auto;
  font-size: 12px;
  color: var(--c-ink-soft);
}

/* Ad slot */
.ad-slot{
  text-align: center;
  margin-block: 24px;
}
.ad-slot .ad-label{
  font-size: 11px;
  color: var(--c-ink-soft);
  margin-bottom: 6px;
}

/* ==========================================================================
   9. SIDEBAR WIDGETS
   ========================================================================== */
.widget{
  background: var(--c-bg);
  border: 1px solid var(--c-border);
  border-radius: var(--radius-md);
  padding: 18px;
  margin-bottom: 20px;
}
.widget-title{
  font-size: 15px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .03em;
  border-bottom: 2px solid var(--c-brand);
  padding-bottom: 8px;
  margin: 0 0 12px;
}
.widget ul li{
  padding: 7px 0;
  border-bottom: 1px dashed var(--c-border);
}
.widget ul li:last-child{ border-bottom: none; }
.widget ul li a:hover{ color: var(--c-brand); }

/* ==========================================================================
   10. FOOTER
   ========================================================================== */
.footer{
  background: var(--c-top-bar-bg);
  color: var(--c-top-bar-text);
  margin-top: 40px;
}
.footer-grid{
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 28px;
  padding-block: 40px;
}
.footer-grid h3{
  color: #fff;
  font-size: 16px;
  margin: 0 0 14px;
}
.footer-grid ul li{ padding: 5px 0; }
.footer-grid ul li a:hover{ color: var(--c-brand); text-decoration: underline; }

.footer-brand p{ font-size: 13px; color: var(--c-top-bar-text); line-height: 1.6; margin: 10px 0; }
.footer-logo{ display: inline-flex; align-items: center; font-size: 22px; font-weight: 800; color: #fff; }
.footer-logo img{ max-height: 40px; width: auto; }
.footer-meta{ display: flex; flex-direction: column; gap: 6px; font-size: 12px; margin-top: 12px; }

.footer-links .footer-menu li{ padding: 5px 0; }
.footer-links .footer-menu li a:hover{ color: var(--c-brand); text-decoration: underline; }

.footer-social{ display: flex; flex-direction: column; }
.social-links{ display: flex; gap: 10px; }
.social-links a{
  width: 32px; height: 32px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,.2);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background var(--transition-fast);
}
.social-links a:hover{ background: var(--c-brand); border-color: var(--c-brand); }

.footer-newsletter p{ font-size: 13px; margin: 6px 0 12px; }

.newsletter-form{ display: flex; gap: 8px; margin-top: 10px; }
.newsletter-form input[type="email"]{
  flex: 1;
  padding: 10px 12px;
  border: none;
  border-radius: var(--radius-sm);
}
.newsletter-form button{
  background: var(--c-brand);
  color: #fff;
  border: none;
  padding: 10px 16px;
  border-radius: var(--radius-sm);
  font-weight: 700;
}

.footer-bottom{
  border-top: 1px solid rgba(255,255,255,.12);
  padding-block: 16px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  font-size: 13px;
}
.footer-bottom a{ opacity: .85; }
.footer-bottom a:hover{ opacity: 1; text-decoration: underline; }
.footer-legal{ display: flex; flex-wrap: wrap; gap: 4px 14px; }

/* ==========================================================================
   12. HERO (homepage top story + sidebar list)
   ========================================================================== */
.hero-section{ padding-block: 24px 0; }
.hero-grid{
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 24px;
  align-items: start;
}
.hero-main{
  position: relative;
  display: block;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-card);
}
.hero-main a{ display: block; position: relative; }
.hero-main .hero-image{
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}
.hero-overlay{
  position: absolute;
  inset: auto 0 0 0;
  padding: 20px;
  background: linear-gradient(to top, rgba(0,0,0,.85), rgba(0,0,0,0));
  color: #fff;
}
.hero-category{
  display: inline-block;
  background: var(--c-brand);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .04em;
  padding: 4px 10px;
  border-radius: 999px;
  margin-bottom: 10px;
}
.hero-overlay h1{
  font-size: 24px;
  line-height: 1.35;
  margin: 0 0 8px;
}
.hero-overlay p{
  font-size: 14px;
  color: rgba(255,255,255,.85);
  margin: 0;
}
.hero-sidebar{ display: flex; flex-direction: column; gap: 14px; }
.sidebar-story{ display: flex; gap: 12px; }
.sidebar-thumb{
  flex-shrink: 0;
  width: 96px;
  aspect-ratio: 4 / 3;
  border-radius: var(--radius-sm);
  overflow: hidden;
}
.sidebar-thumb img{ width: 100%; height: 100%; object-fit: cover; }
.sidebar-content h3,
.sidebar-story-content h3,
.sidebar-post-content h4{
  font-size: 14px;
  line-height: 1.4;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.sidebar-story-content small,
.sidebar-post-content small{
  color: var(--c-ink-soft);
  font-size: 12px;
}

/* ==========================================================================
   13. LATEST STORIES STRIP
   ========================================================================== */
.latest-strip{ padding-block: 28px 8px; }
.section-head{
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}
.section-head h1,
.section-head h2{
  font-size: 20px;
  font-weight: 800;
  border-left: 4px solid var(--c-brand);
  padding-left: 10px;
  margin: 0;
}
.latest-grid{
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

/* ==========================================================================
   14. NEWS CARDS (shared: latest strip, featured, archive, related)
   ========================================================================== */
.news-grid{
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 20px;
}
.news-card{
  display: flex;
  flex-direction: column;
  height: 100%;
  background: var(--c-bg);
  border: 1px solid var(--c-border);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}
.news-card:hover{
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(0,0,0,.1);
}
.news-card > a{
  display: block;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--c-bg-alt);
}
.news-card > a img{ width: 100%; height: 100%; object-fit: cover; }
.news-content{
  padding: 14px;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.news-category{
  align-self: flex-start;
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  color: var(--c-brand);
  background: color-mix(in srgb, var(--c-brand) 12%, #fff);
  text-transform: uppercase;
  letter-spacing: .04em;
  padding: 3px 10px;
  border-radius: 999px;
  margin-bottom: 8px;
}

/* ---- Per-category colors (badge text/bg + hero badge bg) ----
   Slugs match the site's actual WordPress categories. Add more
   cat-<slug> rules here if new categories are created. */
.news-category.cat-bangladesh{ color:#0f6e56; background:#e1f5ee; }
.news-category.cat-international{ color:#185fa5; background:#e6f1fb; }
.news-category.cat-politics{ color:#854f0b; background:#faeeda; }
.news-category.cat-islamic{ color:#3c3489; background:#eeedfe; }
.news-category.cat-breaking-news{ color:#a32d2d; background:#fcebeb; }
.news-category.cat-july-archive{ color:#993c1d; background:#faece7; }

.hero-category.cat-bangladesh{ background:#0f6e56; }
.hero-category.cat-international{ background:#185fa5; }
.hero-category.cat-politics{ background:#854f0b; }
.hero-category.cat-islamic{ background:#3c3489; }
.hero-category.cat-breaking-news{ background:#a32d2d; }
.hero-category.cat-july-archive{ background:#993c1d; }
.news-content h3{
  font-size: 16px;
  line-height: 1.4;
  margin: 0 0 8px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.news-content p{
  font-size: 13px;
  color: var(--c-ink-soft);
  margin: 0;
}
.archive-meta{
  margin-top: auto;
  padding-top: 10px;
  display: flex;
  gap: 14px;
  font-size: 12px;
  color: var(--c-ink-soft);
}
.more-news-link a{
  display: inline-block;
  font-weight: 700;
  color: var(--c-brand);
}
.more-news-link a:hover{ text-decoration: underline; }

/* ==========================================================================
   15. FEATURED NEWS (main + popular sidebar layout)
   ========================================================================== */
.main-news{ padding-block: 8px 32px; }
.main-news-grid{
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 32px;
  align-items: start;
}

/* ==========================================================================
   16. ARCHIVE / CATEGORY / SEARCH LISTING PAGES
   ========================================================================== */
.archive-page{ padding-block: 24px; }
.archive-grid{
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 32px;
  align-items: start;
}
.archive-header{ margin-bottom: 20px; }
.archive-title{
  font-size: 24px;
  font-weight: 800;
  margin: 0 0 6px;
}
.archive-description{
  font-size: 14px;
  color: var(--c-ink-soft);
  margin: 0;
}
.archive-pagination{
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 28px;
}
.archive-pagination .page-numbers{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  height: 36px;
  padding: 0 10px;
  border: 1px solid var(--c-border);
  border-radius: var(--radius-sm);
  font-weight: 600;
}
.archive-pagination .page-numbers.current,
.archive-pagination .page-numbers:hover{
  background: var(--c-brand);
  border-color: var(--c-brand);
  color: #fff;
}
.no-posts{ text-align: center; padding-block: 40px; }
.no-posts h2{ margin-bottom: 8px; }

/* Sidebar widgets shared by archive-sidebar / popular-sidebar / single-sidebar */
.sidebar-widget{
  background: var(--c-bg);
  border: 1px solid var(--c-border);
  border-radius: var(--radius-md);
  padding: 18px;
  margin-bottom: 20px;
}
.popular-item,
.sidebar-post{
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px dashed var(--c-border);
}
.popular-item:last-child,
.sidebar-post:last-child{ border-bottom: none; }
.popular-number,
.sidebar-number{
  flex-shrink: 0;
  width: 26px; height: 26px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--c-brand);
  color: #fff;
  font-weight: 800;
  font-size: 13px;
  border-radius: 50%;
}
.popular-item h4,
.sidebar-post-content h4{ font-size: 14px; margin: 0 0 4px; }
.popular-item small{ color: var(--c-ink-soft); font-size: 12px; }
.sidebar-category{ display: flex; flex-direction: column; gap: 2px; }
.sidebar-category li a{
  display: flex;
  justify-content: space-between;
  padding: 7px 0;
  border-bottom: 1px dashed var(--c-border);
}
.sidebar-category li a:hover{ color: var(--c-brand); }
.sidebar-ad{ text-align: center; }
.sidebar-ad p{ font-size: 11px; color: var(--c-ink-soft); margin: 0 0 8px; }

/* ==========================================================================
   17. SINGLE POST PAGE
   ========================================================================== */
.single-page{ padding-block: 24px; }
.single-layout{
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 32px;
  align-items: start;
}
.breadcrumb{
  font-size: 13px;
  color: var(--c-ink-soft);
  margin-bottom: 12px;
}
.breadcrumb a:hover{ color: var(--c-brand); }
.breadcrumb span{ margin: 0 6px; }
.single-category{
  display: inline-block;
  background: var(--c-brand);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .04em;
  padding: 4px 10px;
  border-radius: var(--radius-sm);
  margin-bottom: 10px;
}
.single-title{
  font-size: 30px;
  line-height: 1.3;
  margin: 0 0 14px;
}
.single-meta{
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 13px;
  color: var(--c-ink-soft);
  padding-bottom: 16px;
  margin-bottom: 20px;
  border-bottom: 1px solid var(--c-border);
}
.single-thumbnail{ margin: 0 0 20px; }
.single-thumbnail img{
  width: 100%;
  border-radius: var(--radius-md);
}
.single-thumbnail figcaption{
  font-size: 12px;
  color: var(--c-ink-soft);
  margin-top: 8px;
}
.single-content{
  font-size: 17px;
  line-height: 1.8;
}
.single-content p{ margin: 0 0 20px; }
.single-content img{ border-radius: var(--radius-sm); margin-block: 12px; }
.page-links{ margin-top: 20px; font-weight: 600; }
.post-actions{ margin-block: 24px; }
.action-btn{
  background: var(--c-bg-alt);
  border: 1px solid var(--c-border);
  border-radius: var(--radius-sm);
  padding: 8px 16px;
  font-weight: 600;
  font-size: 14px;
  transition: background var(--transition-fast);
}
.action-btn:hover{ background: var(--c-brand); border-color: var(--c-brand); color: #fff; }
.author-box{
  display: flex;
  gap: 16px;
  align-items: center;
  background: var(--c-bg-alt);
  border-radius: var(--radius-md);
  padding: 18px;
  margin-block: 24px;
}
.author-avatar img{ border-radius: 50%; }
.author-info h3{ margin: 0 0 4px; font-size: 16px; }
.author-info p{ margin: 0; font-size: 13px; color: var(--c-ink-soft); }
.article-navigation{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  padding-block: 20px;
  border-block: 1px solid var(--c-border);
  margin-bottom: 28px;
}
.article-navigation div:last-child{ text-align: right; }
.article-navigation a:hover{ color: var(--c-brand); }
.related-posts{ margin-top: 32px; }
.single-sidebar{ display: flex; flex-direction: column; }

/* ==========================================================================
   18. RESPONSIVE
   ========================================================================== */
@media (max-width: 960px){
  .content-layout,
  .hero-grid,
  .main-news-grid,
  .archive-grid,
  .single-layout{ grid-template-columns: 1fr; }
  .latest-grid{ grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 782px){
  .nav{
    position: fixed;
    inset: 0 0 0 auto;
    width: min(80vw, 320px);
    height: 100vh;
    background: var(--c-bg);
    box-shadow: -4px 0 16px rgba(0,0,0,.15);
    transform: translateX(100%);
    transition: transform var(--transition-med);
    overflow-y: auto;
    z-index: 999;
  }
  .nav.is-open{ transform: translateX(0); }
  .nav-menu{ flex-direction: column; padding: 20px; }
  .nav-menu ul{
    position: static;
    opacity: 1; visibility: visible; transform: none;
    box-shadow: none;
    padding-left: 14px;
    display: none;
  }
  .nav-menu li.is-expanded > ul{ display: block; }
  .mobile-toggle{ display: flex; }
  .header-wrap{ flex-wrap: wrap; }
}

@media (max-width: 560px){
  .story-grid,
  .news-grid,
  .latest-grid{ grid-template-columns: 1fr; }
  .hero-overlay h1{ font-size: 22px; }
  .top-header-wrap{ font-size: 13px; }
}

/* ==========================================================================
   16. LARGER TYPE PASS
   Bumps the site's reading sizes up a step for better legibility —
   nav, headings, card titles/excerpts, badges, footer. Placed last so
   these win over the matching earlier rules at the same specificity.
   ========================================================================== */
body{ font-size: 18px; line-height: 1.7; }
.top-header-wrap{ font-size: 14px; }
.live-indicator{ font-size: 13px; }
.nav-menu > li > a{ font-size: 17px; }
.site-branding .logo-text{ font-size: 30px; }
.search-toggle{ font-size: 19px; }
.breaking-label{ font-size: 13px; }
.breaking-track a{ font-size: 16px; }
.section-head h1,
.section-head h2{ font-size: 24px; }
.hero-overlay h1{ font-size: 30px; line-height: 1.3; }
.hero-overlay p{ font-size: 16px; }
.hero-category{ font-size: 12px; }
.sidebar-content h3,
.sidebar-story-content h3,
.sidebar-post-content h4{ font-size: 17px; line-height: 1.45; }
.sidebar-story-content small,
.sidebar-post-content small{ font-size: 13px; }
.news-category{ font-size: 12px; }
.news-content h3{ font-size: 19px; line-height: 1.45; }
.news-content p{ font-size: 15px; }
.popular-item small{ font-size: 13px; }
.author-info h3{ font-size: 18px; }
.author-info p{ font-size: 14px; }
.footer-brand p{ font-size: 14px; }
.footer-logo{ font-size: 25px; }
.footer-meta{ font-size: 13px; }
.footer-newsletter p{ font-size: 14px; }

@media (max-width: 560px){
  .hero-overlay h1{ font-size: 24px; }
  body{ font-size: 17px; }
}
