/*
Theme Name: ORSİAD Theme
Theme URI: https://getyayincilik.com.tr
Author: Meander Digital
Author URI: https://meanderdigital.com
Description: ORSİAD Orman Sanayi İş Adamları Gazetesi özel teması.
Version: 1.0.0
Text Domain: orsiad-theme
*/

/* ─── RESET & BASE ─────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
:root {
  --green-900: #0D2818;
  --green-800: #1B4332;
  --green-700: #2D6A4F;
  --green-500: #40916C;
  --green-300: #74C69D;
  --green-100: #D8F3DC;
  --gold:      #C9963A;
  --gold-lt:   #FDF3E0;
  --wood:      #8B5E3C;
  --wood-lt:   #C8A27A;
  --cream:     #FAF7F2;
  --cream-dk:  #F0EBE1;
  --ink:       #1A1A2E;
  --ink-mid:   #3D3D5C;
  --ink-light: #7A7A9A;
  --white:     #FFFFFF;
  --border:    #E0D8CC;
  --shadow:    0 2px 14px rgba(0,0,0,.07);
  --shadow-md: 0 6px 28px rgba(0,0,0,.13);
  --radius:    10px;
  --sans:      'Inter', system-ui, sans-serif;
}

[data-theme="dark"] {
  --cream:     #121212;
  --cream-dk:  #1A1E1C;
  --white:     #1A1A1A;
  --ink:       #E0E0E0;
  --ink-mid:   #A0A0A0;
  --ink-light: #808080;
  --border:    #303030;
  --shadow:    0 2px 14px rgba(0,0,0,.5);
  --shadow-md: 0 6px 28px rgba(0,0,0,.7);
  --gold-lt:   #342813;
}

html { scroll-behavior: smooth; }
body { font-family: var(--sans); background: var(--cream); color: var(--ink); line-height: 1.6; }
a { text-decoration: none; color: inherit; }
img { display: block; max-width: 100%; height: auto; }

/* ─── UTILITIES ────────────────────────────────────── */
.container { max-width: 1280px; margin: 0 auto; padding: 0 24px; }

.badge {
  display: inline-block; font-size: 10px; font-weight: 700; letter-spacing: .08em;
  text-transform: uppercase; padding: 3px 10px; border-radius: 20px;
  background: var(--green-100); color: var(--green-800);
}
.badge--gold { background: var(--gold-lt); color: var(--gold); }
.badge--wood { background: #F5EDE4; color: var(--wood); }
.badge--gray { background: #EEEEF4; color: var(--ink-mid); }
.badge--red  { background: #FDE8E8; color: #C0392B; }

.section-title {
  font-family: var(--sans); font-size: 16px; font-weight: 700; color: var(--ink);
  text-transform: uppercase; letter-spacing: .06em;
  border-bottom: 3px solid var(--green-800); padding-bottom: 10px; margin-bottom: 22px;
  display: flex; align-items: center; justify-content: space-between;
}
.section-title span { display: flex; align-items: center; gap: 8px; }
.section-title a { font-size: 12px; font-weight: 500; color: var(--green-700); text-transform: none; letter-spacing: 0; }
.section-title a:hover { color: var(--gold); }
.section-title a.section-title-link { font-size: 16px; font-weight: 700; color: var(--ink); text-transform: uppercase; letter-spacing: .06em; display: flex; align-items: center; gap: 8px; }
.section-title a.section-title-link:hover { color: var(--green-700); }

/* ─── TOP BAR ──────────────────────────────────────── */
.topbar { background: #ee1b22; color: rgba(255,255,255,.9); font-size: 12px; padding: 6px 0; }
.topbar .container { display: flex; justify-content: space-between; align-items: center; }
.topbar-links a { color: rgba(255,255,255,.65); margin-right: 16px; transition: color .2s; }
.topbar-links a:hover { color: var(--gold); }
.topbar-right { display: flex; align-items: center; gap: 16px; }
.lang-switch a { padding: 2px 9px; border-radius: 12px; font-weight: 600; color: rgba(255,255,255,.75); transition: all .2s; }
.lang-switch a.active, .lang-switch a:hover { background: var(--gold); color: #fff; }
.theme-toggle svg.icon-moon { display: none; }
[data-theme="dark"] .theme-toggle svg.icon-sun { display: none; }
[data-theme="dark"] .theme-toggle svg.icon-moon { display: block; }


/* ─── HEADER ───────────────────────────────────────── */
.header { background: var(--white); border-bottom: 1px solid var(--border); position: sticky; top: 0; z-index: 100; box-shadow: var(--shadow); }
.header-inner { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 24px; padding: 12px 0; }

/* Logo */
.header-logo { display: flex; align-items: center; }
.header-logo img { height: 72px; width: auto; object-fit: contain; transform: scale(1.4); transform-origin: left center; transition: filter 0.3s ease; }
[data-theme="dark"] .header-logo img { filter: brightness(0) invert(1); }

/* Center: banner ad */
.header-ad { text-align: center; }
.header-ad img { max-height: 90px; width: auto; max-width: 100%; margin: 0 auto; border-radius: 6px; }

/* Right */
.header-actions { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.search-box {
  display: flex; align-items: center; border: 1.5px solid var(--border);
  border-radius: 24px; overflow: hidden; background: var(--cream);
}
.search-box input {
  border: none; background: transparent; padding: 7px 14px; font-size: 13px;
  font-family: var(--sans); color: var(--ink); width: 160px; outline: none;
}
.search-box button {
  background: var(--green-800); border: none; padding: 8px 13px; cursor: pointer;
  display: flex; align-items: center;
}
.search-box button svg { width: 15px; height: 15px; stroke: #fff; fill: none; }
.btn-egazete {
  background: var(--gold); color: #fff; font-weight: 700; font-size: 13px;
  padding: 9px 18px; border-radius: 24px; white-space: nowrap; transition: background .2s; flex-shrink: 0;
}
.btn-egazete:hover { background: var(--wood); }

/* ─── NAV ──────────────────────────────────────────── */
.nav { background: #575757; }
.nav-inner { display: flex; align-items: center; overflow-x: auto; list-style: none; margin: 0; padding: 0; }
.nav-inner li { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; flex-shrink: 0; }
.nav-inner::-webkit-scrollbar { display: none; }
.nav-inner a {
  color: rgba(255,255,255,.8); font-size: 13px; font-weight: 500; padding: 12px 15px;
  white-space: nowrap; transition: all .2s; border-bottom: 3px solid transparent; flex-shrink: 0; display: block;
}
.nav-inner a:hover, .nav-inner a.active, .nav-inner li.current-menu-item > a { color: #fff; background: rgba(255,255,255,.07); border-bottom-color: var(--gold); }
.nav-lang { padding: 8px 11px !important; font-weight: 700 !important; font-size: 12px !important; border-radius: 4px; margin: auto 2px; }
.nav-lang.active { background: var(--gold) !important; border-bottom-color: transparent !important; }

/* ─── TICKER ───────────────────────────────────────── */
.ticker { background: var(--green-700); color: #fff; display: flex; align-items: center; overflow: hidden; }
.ticker-label { background: var(--gold); padding: 7px 14px; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; flex-shrink: 0; white-space: nowrap; }
.ticker-track { flex: 1; overflow: hidden; }
.ticker-items { display: flex; white-space: nowrap; animation: ticker 45s linear infinite; }
.ticker-items span { font-size: 12px; padding: 7px 28px 7px 0; opacity: .9; }
.ticker-items span::after { content: " ◆"; opacity: .4; margin-left: 28px; }
.ticker-items span a { color: #fff; text-decoration: none; font-weight: 500; transition: opacity 0.2s; }
.ticker-items span a:hover { opacity: 0.75; text-decoration: underline; }
@keyframes ticker { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } }

/* ─── TOP AD STRIP ─────────────────────────────────── */
.ad-strip { background: var(--cream-dk); padding: 10px 0; text-align: center; border-bottom: 1px solid var(--border); }
.ad-strip img { max-width: 100%; height: auto; max-height: 100px; margin: 0 auto; border-radius: 6px; cursor: pointer; }

/* ─── E-GAZETE STRIP (Destekçiler Altı) ────────────── */
.egazete-strip { background: #000; padding: 12px 0; text-align: center; }
.egazete-strip img { max-width: 100%; height: auto; border-radius: 8px; display: block; margin: 0 auto; cursor: pointer; }
.egazete-strip .orsiad-ad-wrapper { display:flex; justify-content:center; }


/* ─── HERO ─────────────────────────────────────────── */
.hero { padding: 28px 0 20px; }

/* Top zone: big card + 2x2 grid */
.hero-top { display: grid; grid-template-columns: 1.9fr 1fr 1fr; grid-template-rows: auto auto; gap: 14px; margin-bottom: 14px; }

/* Main feature spans 2 rows */
.hero-main {
  grid-column: 1; grid-row: 1 / 3;
  position: relative; border-radius: 14px; overflow: hidden; min-height: 440px;
  display: flex; flex-direction: column; justify-content: flex-end; cursor: pointer;
  background: #0a1e0f;
}
.hero-main img.hero-bg {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain;
  object-position: center center;
  transition: transform .5s ease;
  background: #0a1e0f;
}
.hero-main:hover img.hero-bg { transform: scale(1.02); }
.hero-main-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(10,30,15,.92) 0%, rgba(10,30,15,.4) 55%, transparent 100%);
}
.hero-main-content { position: relative; padding: 24px 26px; }
.hero-main-content .badge { margin-bottom: 10px; background: var(--gold); color: #fff; }
.hero-main-content h1 { font-family: var(--sans); font-size: 26px; font-weight: 800; color: #fff; line-height: 1.28; margin-bottom: 10px; }
.hero-main-content p { color: rgba(255,255,255,.8); font-size: 13px; line-height: 1.65; margin-bottom: 12px; }
.hero-main-content .meta { font-size: 11px; color: rgba(255,255,255,.55); }
.read-more { display: inline-flex; align-items: center; gap: 5px; color: var(--gold); font-weight: 600; font-size: 13px; margin-top: 8px; }
.read-more svg { width: 13px; height: 13px; stroke: currentColor; fill: none; transition: transform .2s; }
.hero-main:hover .read-more svg { transform: translateX(4px); }

/* Medium card (2x2 side) */
.hero-med {
  position: relative; border-radius: 12px; overflow: hidden; min-height: 200px;
  display: flex; flex-direction: column; justify-content: flex-end; cursor: pointer;
  background: #0a1e0f;
}
.hero-med img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; object-position: center center; transition: transform .4s; }
.hero-med:hover img { transform: scale(1.03); }
.hero-med-overlay { position: absolute; inset: 0; background: linear-gradient(to top, rgba(10,25,15,.88) 0%, rgba(10,25,15,.2) 70%, transparent 100%); }
.hero-med-content { position: relative; padding: 14px 16px; }
.hero-med-content .badge { margin-bottom: 7px; }
.hero-med-content h3 { font-size: 13px; font-weight: 700; color: #fff; line-height: 1.38; }
.hero-med-content .meta { font-size: 10px; color: rgba(255,255,255,.55); margin-top: 5px; }

/* Bottom strip: 5 compact cards */
.hero-bottom { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; }

/* E-Gazete card */
.egazete-card {
  background: linear-gradient(135deg, var(--green-800), var(--green-900));
  border-radius: var(--radius); padding: 20px; color: #fff; cursor: pointer; transition: transform .2s;
}
.egazete-card:hover { transform: translateY(-2px); }
.egazete-card .ikon { font-size: 32px; margin-bottom: 8px; }
.egazete-card .label { font-size: 10px; letter-spacing: .1em; text-transform: uppercase; color: var(--green-300); font-weight: 600; }
.egazete-card .issue { font-family: var(--sans); font-size: 15px; font-weight: 700; margin: 4px 0 8px; line-height: 1.35; }
.egazete-card p { font-size: 12px; opacity: .75; line-height: 1.5; margin-bottom: 12px; }
.egazete-card .btn-rd { display: inline-block; background: var(--gold); color: #fff; padding: 7px 16px; border-radius: 20px; font-size: 12px; font-weight: 700; }

/* Ad slot in hero top grid (replaces hero-med for ad spots) */
.hero-ad-slot {
  display: block; border-radius: 12px; overflow: hidden;
  box-shadow: var(--shadow-md); cursor: pointer; min-height: 200px;
  transition: transform .2s, box-shadow .2s;
}
.hero-ad-slot:hover { transform: translateY(-3px); box-shadow: 0 10px 36px rgba(0,0,0,.18); }
.hero-ad-slot img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* Compact card (bottom strip) */
.hero-compact {
  background: var(--white); border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow); cursor: pointer; transition: transform .2s, box-shadow .2s;
  display: flex; flex-direction: column;
}
.hero-compact:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.hero-compact-img { width: 100%; height: 110px; object-fit: cover; }
.hero-compact-body { padding: 12px 13px; flex: 1; }
.hero-compact-body .badge { margin-bottom: 7px; }
.hero-compact-body h3 { font-size: 12px; font-weight: 600; line-height: 1.42; color: var(--ink); }
.hero-compact-body h3:hover { color: var(--green-700); }
.hero-compact-body .meta { font-size: 10px; color: var(--ink-light); margin-top: 8px; }

/* ─── CAT STRIP ────────────────────────────────────── */
.cat-strip { background: var(--white); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); padding: 14px 0; }
.cat-strip .container { display: flex; gap: 9px; overflow-x: auto; flex-wrap: nowrap; }
.cat-strip .container::-webkit-scrollbar { display: none; }
.cat-tag {
  display: flex; align-items: center; gap: 7px; background: var(--cream);
  border: 1.5px solid var(--border); border-radius: 24px; padding: 6px 15px;
  white-space: nowrap; font-size: 13px; font-weight: 500; color: var(--ink-mid);
  cursor: pointer; transition: all .2s; flex-shrink: 0;
}
.cat-tag:hover, .cat-tag.active { background: var(--green-800); color: #fff; border-color: var(--green-800); }
.cat-tag .dot { width: 7px; height: 7px; border-radius: 50%; }

/* ─── SPONSOR STRIP ────────────────────────────────── */
.sponsors { background: var(--white); border-bottom: 1px solid var(--border); padding: 16px 0; }
.sponsors .container { display: flex; align-items: center; gap: 28px; overflow-x: auto; }
.sponsors .container::-webkit-scrollbar { display: none; }
.sponsor-label { font-size: 10px; text-transform: uppercase; letter-spacing: .08em; color: var(--ink-light); font-weight: 700; white-space: nowrap; flex-shrink: 0; }
.sponsor-logos { display: flex; gap: 28px; align-items: center; }
.sponsor-logo { opacity: .45; filter: grayscale(1); transition: all .25s; font-weight: 800; font-size: 15px; color: var(--ink-mid); letter-spacing: -.3px; white-space: nowrap; cursor: pointer; }
.sponsor-logo:hover { opacity: 1; filter: none; color: var(--green-800); }

/* ─── MAIN LAYOUT ──────────────────────────────────── */
.main-content { padding: 36px 0; }
.content-layout { display: grid; grid-template-columns: 1fr 320px; gap: 40px; }
.content-layout > div:first-child { min-width: 0; }
.content-layout.single-3-col { grid-template-columns: 310px 1fr 320px; }

@media (max-width: 1200px) {
  .content-layout.single-3-col { grid-template-columns: 1fr 320px; }
  .sidebar-left { display: none; }
}

/* ─── NEWS CARDS ───────────────────────────────────── */
.news-section { margin-bottom: 44px; }

/* Standard card */
.news-card {
  background: var(--white); border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow); transition: transform .2s, box-shadow .2s; cursor: pointer;
  display: flex; flex-direction: column;
  height: 100%; min-width: 0;
}
.news-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.news-card-img { width: 100%; aspect-ratio: 16/9; object-fit: cover; }
.news-card-body { padding: 16px; flex: 1; display: flex; flex-direction: column; }
.news-card-body .badge { margin-bottom: 9px; }
.news-card-body h3 { font-size: 15px; font-weight: 700; line-height: 1.4; color: var(--ink); margin-bottom: 8px; }
.news-card-body h3:hover { color: var(--green-700); }
.news-card-body p { font-size: 13px; color: var(--ink-mid); line-height: 1.6; flex: 1; }
.news-card-body .meta { font-size: 11px; color: var(--ink-light); margin-top: 12px; padding-top: 10px; border-top: 1px solid var(--border); display: flex; align-items: center; gap: 6px; }

/* Featured large card */
.news-card--feat .news-card-img { aspect-ratio: 4/3; }
.news-card--feat .news-card-body h3 { font-size: 19px; font-weight: 800; }

/* Grids */
.grid-3 { display: grid; grid-template-columns: repeat(3,1fr); gap: 18px; }
.grid-2 { display: grid; grid-template-columns: repeat(2,1fr); gap: 18px; }
.grid-feat { display: grid; grid-template-columns: 1.5fr 1fr; gap: 18px; margin-bottom: 18px; }

/* Horizontal card */
.news-card-h {
  background: var(--white); border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow); display: flex; transition: transform .2s, box-shadow .2s; cursor: pointer;
}
.news-card-h:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.news-card-h .h-img { width: 128px; flex-shrink: 0; overflow: hidden; }
.news-card-h .h-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.news-card-h:hover .h-img img { transform: scale(1.07); }
.news-card-h .h-body { padding: 14px; flex: 1; }
.news-card-h .h-body .badge { margin-bottom: 7px; }
.news-card-h .h-body h3 { font-size: 13px; font-weight: 600; line-height: 1.45; color: var(--ink); }
.news-card-h .h-body h3:hover { color: var(--green-700); }
.news-card-h .h-body .meta { font-size: 11px; color: var(--ink-light); margin-top: 7px; }

/* Side stack of small h-cards */
.side-stack { display: flex; flex-direction: column; gap: 14px; }

/* ─── AD SYSTEM ─────────────────────────────────────── */
/* Shared label */
.ad-label {
  font-size: 9px; text-transform: uppercase; letter-spacing: .1em;
  color: var(--ink-light); text-align: center; margin-bottom: 4px; display: block;
}
/* Full-width leaderboard strip (728×90 area) */
.ad-leaderboard {
  background: var(--cream-dk); padding: 10px 0;
  border-top: 1px solid var(--border); border-bottom: 1px solid var(--border);
}
.ad-leaderboard .inner { text-align: center; }
.ad-leaderboard img {
  max-width: 100%; height: auto; margin: 0 auto; cursor: pointer;
  border-radius: 5px; box-shadow: var(--shadow); display: block;
}
/* Mid-content leaderboard (inside layout) */
.mid-ad { text-align: center; margin: 0 0 36px; }
.mid-ad img { max-width: 100%; border-radius: 6px; cursor: pointer; box-shadow: var(--shadow); }
/* 300×250 Rectangle — sidebar */
.ad-rect-sidebar {
  width: 100%; border-radius: var(--radius); overflow: hidden;
  cursor: pointer; box-shadow: var(--shadow); display: block;
}
.ad-rect-sidebar img { width: 100%; height: 250px; object-fit: cover; display: block; }
/* 300×250 Rectangle — inline centered (between sections) */
.ad-rect-inline {
  width: 300px; height: 250px; border-radius: var(--radius); overflow: hidden;
  cursor: pointer; box-shadow: var(--shadow-md); margin: 0 auto 36px; display: block;
}
.ad-rect-inline img { width: 100%; height: 100%; object-fit: cover; }
/* Inline wide (fills content column, 250px tall) */
.ad-rect-wide {
  width: 100%; height: 250px; border-radius: var(--radius); overflow: hidden;
  cursor: pointer; box-shadow: var(--shadow); margin-bottom: 36px; display: block;
}
.ad-rect-wide img { width: 100%; height: 100%; object-fit: cover; }

/* ─── SIDEBAR ──────────────────────────────────────── */
.sidebar { }
.sidebar-widget { margin-bottom: 30px; }
.widget-title { font-family: var(--sans); font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--ink); border-left: 4px solid var(--green-700); padding-left: 12px; margin-bottom: 14px; }

/* Popular */
.popular-list { display: flex; flex-direction: column; gap: 14px; }
.popular-item { display: flex; gap: 10px; align-items: flex-start; }
.popular-num { font-family: var(--sans); font-size: 24px; font-weight: 900; color: var(--green-100); line-height: 1; flex-shrink: 0; min-width: 26px; }
.popular-item h4 { font-size: 13px; font-weight: 600; line-height: 1.45; color: var(--ink); cursor: pointer; }
.popular-item h4:hover { color: var(--green-700); }
.popular-item .meta { font-size: 11px; color: var(--ink-light); }

/* Tag cloud */
.tag-cloud { display: flex; flex-wrap: wrap; gap: 7px; }
.tag-cloud .tag { background: var(--cream-dk); color: var(--ink-mid); padding: 5px 12px; border-radius: 20px; font-size: 12px; font-weight: 500; cursor: pointer; transition: all .2s; text-decoration: none; display: inline-block; }
.tag-cloud .tag:hover { background: var(--green-800); color: #fff; }

/* Sidebar ad */
.sidebar-ad { border-radius: var(--radius); overflow: hidden; cursor: pointer; box-shadow: var(--shadow); }
.sidebar-ad img { width: 100%; }

/* Newsletter */
.newsletter-box { background: var(--green-800); border-radius: var(--radius); padding: 22px 18px; color: #fff; }
.newsletter-box h3 { font-family: var(--sans); font-size: 16px; font-weight: 700; margin-bottom: 6px; }
.newsletter-box p { font-size: 13px; opacity: .8; margin-bottom: 14px; }
.newsletter-box input { width: 100%; padding: 9px 13px; border-radius: 7px; border: none; margin-bottom: 9px; font-family: var(--sans); font-size: 13px; background: rgba(255,255,255,.12); color: #fff; outline: none; }
.newsletter-box input::placeholder { color: rgba(255,255,255,.45); }
.newsletter-box button { width: 100%; background: var(--gold); color: #fff; font-weight: 700; font-size: 14px; padding: 10px; border: none; border-radius: 7px; cursor: pointer; transition: background .2s; }
.newsletter-box button:hover { background: var(--wood); }

/* ─── FOOTER ───────────────────────────────────────── */
.footer { background: #1A1A2E; color: rgba(255,255,255,.72); padding: 52px 0 0; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 36px; margin-bottom: 44px; }

.footer-brand img { height: 52px; width: auto; margin-bottom: 16px; }
.footer-brand p { font-size: 13px; color: rgba(255,255,255,.58); line-height: 1.7; margin-bottom: 18px; }
.social-links { display: flex; gap: 8px; }
.social-link { width: 34px; height: 34px; border-radius: 50%; background: rgba(255,255,255,.09); display: flex; align-items: center; justify-content: center; font-size: 13px; cursor: pointer; transition: background .2s; }
.social-link:hover { background: var(--gold); }

.footer-col h4 { color: #fff; font-size: 13px; font-weight: 700; margin-bottom: 14px; padding-bottom: 9px; border-bottom: 1px solid rgba(255,255,255,.1); }
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 8px; }
.footer-col ul li a { font-size: 13px; color: rgba(255,255,255,.58); transition: color .2s; }
.footer-col ul li a:hover { color: var(--gold); }
.footer-contact { font-size: 12.5px; color: rgba(255,255,255,.58); line-height: 1.95; }
.footer-contact strong { color: #fff; }

.footer-bottom { border-top: 1px solid rgba(255,255,255,.08); padding: 18px 0; display: flex; align-items: center; justify-content: space-between; font-size: 12px; }
.footer-bottom a { color: rgba(255,255,255,.45); transition: color .2s; }
.footer-bottom a:hover { color: var(--gold); }
.footer-bottom-links { display: flex; gap: 20px; }

/* ─── SCROLL TOP ───────────────────────────────────── */
.scroll-top { position: fixed; bottom: 105px; right: 39px; width: 42px; height: 42px; background: var(--green-700); color: #fff; border-radius: 50%; border: none; display: flex; align-items: center; justify-content: center; cursor: pointer; box-shadow: 0 4px 14px rgba(0,0,0,.2); transition: background .2s; z-index: 200; }
.scroll-top:hover { background: var(--gold); }
.scroll-top svg { width: 17px; height: 17px; stroke: #fff; fill: none; }

/* ─── RESPONSIVE ───────────────────────────────────── */
@media (max-width: 1024px) {
  .hero-top { grid-template-columns: 1fr 1fr; }
  .hero-main { grid-column: 1 / 3; grid-row: 1; min-height: 340px; }
  .hero-bottom { grid-template-columns: repeat(3, 1fr); }
  .content-layout { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 24px; }
  .grid-3 { grid-template-columns: 1fr 1fr; }
  .grid-feat { grid-template-columns: 1fr; }
  
  .header-inner { grid-template-columns: auto 1fr; gap: 16px; padding-top: 0; padding-bottom: 12px; }
  .header-ad { 
    grid-column: 1 / 3; grid-row: 1; 
    width: calc(100% + 48px); margin-left: -24px; margin-bottom: 8px; 
  }
  .header-ad img { width: 100%; height: auto; max-height: none; border-radius: 0; }
  .header-logo { grid-column: 1; grid-row: 2; padding-left: 24px; }
  .header-actions { grid-column: 2; grid-row: 2; justify-content: flex-end; padding-right: 24px; }
}
@media (max-width: 640px) {
  .hero-top { grid-template-columns: 1fr; }
  .hero-main { grid-column: 1; min-height: 300px; }
  .hero-med { min-height: 160px; }
  .hero-bottom { grid-template-columns: 1fr 1fr; }
  .grid-3, .grid-2, .grid-feat { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .topbar-links { display: none; }
  .news-card-h .h-img { width: 100px; }
  
  .header-actions .search-box input { width: 110px; }
  .header-logo img { height: 50px; }
}

/* ─── SINGLE POST & PROGRESS BAR ───────────────────── */
.single-post-header { margin-bottom: 24px; }
.single-post-title { font-size: 32px; font-weight: 800; line-height: 1.3; margin-bottom: 16px; font-family: var(--sans); }
.single-post-meta { display: flex; flex-wrap: wrap; gap: 16px; font-size: 13px; color: var(--ink-light); margin-bottom: 24px; padding-bottom: 16px; border-bottom: 1px solid var(--border); }
.single-post-content { font-size: 18px; line-height: 1.8; color: var(--ink-dark); font-family: 'Inter', var(--sans); }
.single-post-content p { margin-bottom: 24px; color: var(--ink); letter-spacing: -0.01em; }
.single-post-content h2 { margin: 40px 0 20px; font-size: 26px; font-weight: 800; color: var(--ink-dark); letter-spacing: -0.02em; line-height: 1.3; }
.single-post-content h3 { margin: 36px 0 16px; font-size: 22px; font-weight: 700; color: var(--ink-dark); letter-spacing: -0.01em; line-height: 1.4; }
.single-post-content h4, .single-post-content h5, .single-post-content h6 { margin: 32px 0 16px; font-weight: 700; color: var(--ink-dark); line-height: 1.5; }
.single-post-content a { color: var(--green-700); font-weight: 500; text-decoration: underline; text-underline-offset: 4px; text-decoration-color: rgba(6,128,66,0.3); }
.single-post-content a:hover { text-decoration-color: var(--green-700); }
.single-post-content ul, .single-post-content ol { margin-bottom: 24px; padding-left: 24px; }
.single-post-content li { margin-bottom: 10px; }
.single-post-content blockquote { border-left: 4px solid var(--gold); padding: 16px 24px; margin: 32px 0; background: var(--cream); font-style: italic; font-size: 19px; border-radius: 0 8px 8px 0; }
.single-post-thumb { width: 100%; border-radius: var(--radius); overflow: hidden; margin-bottom: 24px; }
.single-post-thumb img { width: 100%; height: auto; display: block; }

.reading-progress-container { position: sticky; top: 0; width: 100%; height: 4px; background: var(--border); z-index: 1000; }
.reading-progress-bar { height: 100%; background: var(--green-700); width: 0%; transition: width 0.1s; }

/* Curiosity Gap */
.read-more-curiosity { text-align: center; margin: 40px 0; position: relative; padding: 20px; background: linear-gradient(to bottom, rgba(250,247,242,0), rgb(250,247,242) 80%); }
.btn-curiosity { display: inline-flex; align-items: center; justify-content: center; background: var(--gold); color: #fff; padding: 12px 24px; border-radius: 24px; font-weight: 700; font-size: 14px; cursor: pointer; border: none; box-shadow: var(--shadow); transition: all 0.2s; }
.btn-curiosity:hover { background: var(--wood); transform: translateY(-2px); }
.content-hidden { padding-top: 10px; display: none; }

/* ─── DFLIP PDF VIEWER OVERRIDES ───────────────────── */
body .df-container section.linkAnnotation a,
body .df-container a.linkAnnotation,
body .df-container a.customLinkAnnotation {
    background-color: var(--green-500) !important;
    opacity: 0 !important;
    border-radius: 4px !important;
    transition: opacity 0.25s ease !important;
}

body .df-container section.linkAnnotation a:hover,
body .df-container a.linkAnnotation:hover,
body .df-container a.customLinkAnnotation:hover {
}

/* ─── THEME TOGGLE BUTTON ──────────────────────────── */
.theme-toggle {
  background: transparent; border: 1.5px solid var(--border); border-radius: 24px;
  width: 44px; height: 32px; display: flex; align-items: center; justify-content: center;
  cursor: pointer; color: var(--ink); margin-right: 12px; transition: all 0.3s;
}
.theme-toggle:hover { border-color: var(--green-500); color: var(--green-500); }
.theme-toggle svg { width: 18px; height: 18px; fill: currentColor; }
.theme-toggle .icon-moon { display: none; }
[data-theme="dark"] .theme-toggle .icon-sun { display: none; }
[data-theme="dark"] .theme-toggle .icon-moon { display: block; }

/* ─── AI ASSISTANT MODAL & FLOAT BUTTON ────────────── */
.ai-assistant-btn {
  position: fixed; bottom: 30px; right: 30px; width: 60px; height: 60px;
  background: var(--green-700); color: #fff; border-radius: 50%;
  display: flex; align-items: center; justify-content: center; cursor: pointer;
  box-shadow: 0 4px 16px rgba(45, 106, 79, 0.4); z-index: 10000;
  transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275), background 0.3s;
  animation: pulse-ai 2s infinite;
}
.ai-assistant-btn:hover { background: var(--green-500); transform: scale(1.1); animation: none; }
.ai-assistant-btn svg { width: 28px; height: 28px; fill: currentColor; }

@keyframes pulse-ai {
  0% { box-shadow: 0 0 0 0 rgba(45, 106, 79, 0.5); }
  70% { box-shadow: 0 0 0 15px rgba(45, 106, 79, 0); }
  100% { box-shadow: 0 0 0 0 rgba(45, 106, 79, 0); }
}

.ai-modal-overlay {
  position: fixed; inset: 0; background: rgba(0,0,0,0.4); z-index: 20000;
  display: flex; align-items: flex-end; justify-content: flex-end; padding: 20px;
  opacity: 0; visibility: hidden; transition: all 0.3s ease;
}
.ai-modal-overlay.active { opacity: 1; visibility: visible; }

.ai-modal-content {
  background: var(--white); width: 380px; max-width: 100%; height: 600px; max-height: 90vh;
  border-radius: 16px; box-shadow: var(--shadow-md); display: flex; flex-direction: column;
  transform: translateY(20px) scale(0.95); opacity: 0; transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  overflow: hidden; border: 1px solid var(--border);
}
.ai-modal-overlay.active .ai-modal-content { transform: translateY(0) scale(1); opacity: 1; }

.ai-modal-header {
  background: var(--green-900); color: #fff; padding: 16px 20px;
  display: flex; justify-content: space-between; align-items: center; border-bottom: 1px solid rgba(255,255,255,0.1);
}
.ai-modal-header h3 { font-size: 16px; font-weight: 600; margin: 0; display: flex; align-items: center; gap: 8px; }
.ai-modal-header h3 svg { width: 20px; height: 20px; fill: var(--green-300); }
.ai-modal-close {
  background: rgba(255,255,255,0.1); border: none; width: 30px; height: 30px;
  border-radius: 50%; color: #fff; cursor: pointer; display: flex; align-items: center; justify-content: center;
  transition: background 0.2s;
}
.ai-modal-close:hover { background: rgba(255,255,255,0.25); }

.ai-modal-body { flex: 1; overflow-y: auto; background: var(--cream); position: relative; }
.ai-modal-body iframe, .ai-modal-body > div { width: 100%; height: 100%; border: none; }

