/* ============================================================
   TaxBuddy Umair — Main Stylesheet
   Fonts: Literata (headings) + DM Sans (body)
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Literata:wght@400;500;600;700&family=DM+Sans:wght@300;400;500;600&display=swap');

/* ── CSS VARIABLES ─────────────────────────────────────── */
:root {
  --navy:        #0A2647;
  --navy-mid:    #144272;
  --navy-light:  #1E5F8E;
  --green:       #0D9E72;
  --green-light: #E6F7F2;
  --green-mid:   #0B8A64;
  --gold:        #E8A020;
  --gold-light:  #FEF3DC;
  --text:        #1A202C;
  --text-mid:    #4A5568;
  --text-light:  #718096;
  --border:      #E2E8F0;
  --border-mid:  #CBD5E0;
  --bg:          #F7F9FC;
  --white:       #FFFFFF;
  --red:         #E53E3E;
  --red-light:   #FFF5F5;
  --font-head:   'Literata', Georgia, serif;
  --font-body:   'DM Sans', -apple-system, sans-serif;
  --shadow-sm:   0 1px 3px rgba(10,38,71,0.08);
  --shadow-md:   0 4px 16px rgba(10,38,71,0.10);
  --shadow-lg:   0 8px 32px rgba(10,38,71,0.14);
  --radius:      8px;
  --radius-lg:   12px;
  --radius-xl:   16px;
}

/* ── RESET ─────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  font-size: 15px;
  color: var(--text);
  background: var(--bg);
  line-height: 1.65;
}
a { color: var(--navy-mid); text-decoration: none; }
a:hover { color: var(--green); }
img { max-width: 100%; display: block; }
ul { list-style: none; }

/* ── LAYOUT ─────────────────────────────────────────────── */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}
.content-grid {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 28px;
  align-items: start;
  max-width: 1200px;
  margin: 0 auto;
  padding: 28px 20px;
}
.content-main  { min-width: 0; }
.content-sidebar { position: sticky; top: 80px; }
.section       { padding: 40px 0; }
.section-alt   { background: var(--white); }

/* ── TOPBAR ─────────────────────────────────────────────── */
.topbar {
  background: var(--navy);
  color: rgba(255,255,255,0.7);
  font-size: 12px;
  padding: 6px 0;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.topbar-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.topbar a { color: rgba(255,255,255,0.65); font-size: 12px; }
.topbar a:hover { color: var(--gold); }
.topbar-links, .topbar-contact { display: flex; gap: 16px; align-items: center; }

/* ── NAVIGATION ─────────────────────────────────────────── */
nav {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: var(--shadow-sm);
}
.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 60px;
  gap: 16px;
}
.nav-logo { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.nav-logo-icon {
  width: 36px; height: 36px;
  background: var(--navy);
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  color: var(--white);
  font-family: var(--font-head);
  font-weight: 700; font-size: 16px;
  flex-shrink: 0;
}
.nav-logo-text { font-family: var(--font-head); font-weight: 700; font-size: 18px; color: var(--navy); line-height: 1.1; }
.nav-logo-sub  { font-size: 10px; color: var(--text-light); }

.nav-links { display: flex; align-items: center; gap: 4px; }
.nav-links > li { position: relative; }
.nav-links > li > a {
  display: block;
  padding: 8px 12px;
  font-size: 13.5px; font-weight: 500;
  color: var(--text);
  border-radius: 6px;
  white-space: nowrap;
  transition: color .15s, background .15s;
}
.nav-links > li > a:hover,
.nav-links > li > a.active { color: var(--green); background: var(--green-light); }

.dropdown {
  position: absolute;
  top: calc(100% + 6px); left: 0;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  min-width: 200px;
  padding: 8px;
  display: none;
  z-index: 200;
}
.nav-links > li:hover .dropdown { display: block; }
.dropdown a {
  display: block;
  padding: 8px 12px;
  font-size: 13px;
  color: var(--text-mid);
  border-radius: 6px;
}
.dropdown a:hover { background: var(--bg); color: var(--green); }

.nav-cta {
  background: var(--green) !important;
  color: var(--white) !important;
  padding: 9px 18px !important;
  border-radius: 7px !important;
  font-weight: 600 !important; font-size: 13px !important;
  flex-shrink: 0;
  transition: background .15s !important;
  white-space: nowrap;
}
.nav-cta:hover { background: var(--green-mid) !important; }

/* Mobile hamburger */
.nav-hamburger {
  display: none;
  background: none; border: none; cursor: pointer;
  padding: 6px; border-radius: 6px;
  flex-direction: column; gap: 5px;
}
.nav-hamburger span {
  display: block; width: 22px; height: 2px;
  background: var(--text); border-radius: 2px;
  transition: transform .3s, opacity .3s;
}
.nav-hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-hamburger.open span:nth-child(2) { opacity: 0; }
.nav-hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ── BUTTONS ─────────────────────────────────────────────── */
.btn-primary {
  display: inline-block;
  background: var(--green); color: var(--white);
  padding: 11px 22px;
  border-radius: 8px; font-weight: 600; font-size: 14px;
  border: none; cursor: pointer;
  transition: background .15s;
}
.btn-primary:hover { background: var(--green-mid); color: var(--white); }

.btn-secondary {
  display: inline-block;
  background: rgba(255,255,255,.08); color: rgba(255,255,255,.9);
  padding: 11px 22px;
  border-radius: 8px; font-weight: 500; font-size: 14px;
  border: 1px solid rgba(255,255,255,.18); cursor: pointer;
  transition: background .15s;
}
.btn-secondary:hover { background: rgba(255,255,255,.14); color: var(--white); }

.btn-outline {
  display: inline-block;
  background: transparent; color: var(--green);
  padding: 9px 20px;
  border-radius: 8px; font-weight: 600; font-size: 13.5px;
  border: 1.5px solid var(--green); cursor: pointer;
  transition: background .15s, color .15s;
}
.btn-outline:hover { background: var(--green); color: var(--white); }

.btn-wa {
  display: inline-flex; align-items: center; gap: 8px;
  background: #25D366; color: var(--white);
  padding: 11px 20px;
  border-radius: 8px; font-weight: 600; font-size: 14px;
  border: none; cursor: pointer; white-space: nowrap;
  text-decoration: none;
}
.btn-wa:hover { background: #1ebe5d; color: var(--white); }

.btn-wa-sm {
  background: #25D366; color: var(--white);
  padding: 8px 16px;
  border-radius: 6px; font-size: 13px; font-weight: 600;
  white-space: nowrap; flex-shrink: 0;
  border: none; cursor: pointer; text-decoration: none;
  display: inline-block;
}

.btn-calc {
  display: inline-block;
  background: var(--green-light); color: var(--green);
  padding: 8px 16px;
  border-radius: 6px; font-size: 13px; font-weight: 600;
  border: none; cursor: pointer;
  transition: background .15s;
}
.btn-calc:hover { background: var(--green); color: var(--white); }

/* ── SECTION HEADERS ─────────────────────────────────────── */
.section-tag {
  display: inline-block;
  background: var(--green-light); color: var(--green);
  font-size: 11px; font-weight: 600;
  text-transform: uppercase; letter-spacing: .1em;
  padding: 3px 10px; border-radius: 4px; margin-bottom: 8px;
}
.section-title {
  font-family: var(--font-head);
  font-size: 24px; font-weight: 700; color: var(--navy);
}
.section-header {
  display: flex; align-items: baseline; justify-content: space-between;
  margin-bottom: 20px;
}
.section-link { font-size: 13px; color: var(--green); font-weight: 500; }
.section-link:hover { color: var(--green-mid); }

/* ── HERO ────────────────────────────────────────────────── */
.hero {
  background: var(--navy);
  position: relative; overflow: hidden;
  padding: 60px 0 50px;
}
.hero::before {
  content: '';
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 600px 400px at 80% 50%, rgba(13,158,114,.12) 0%, transparent 70%),
    radial-gradient(ellipse 400px 300px at 10% 80%, rgba(20,66,114,.3) 0%, transparent 60%);
}
.hero-grid {
  max-width: 1200px; margin: 0 auto; padding: 0 20px;
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 40px; align-items: center;
  position: relative; z-index: 1;
}
.hero-badge {
  display: inline-flex; align-items: center; gap: 6px;
  background: rgba(13,158,114,.15);
  border: 1px solid rgba(13,158,114,.3);
  color: #5eded0; font-size: 12px; font-weight: 500;
  padding: 5px 12px; border-radius: 20px; margin-bottom: 16px;
}
.hero-badge span { width: 6px; height: 6px; background: var(--green); border-radius: 50%; display: block; }
.hero h1 {
  font-family: var(--font-head);
  font-size: 38px; font-weight: 700; color: var(--white);
  line-height: 1.2; margin-bottom: 16px;
}
.hero h1 em { color: #4ee8b0; font-style: normal; }
.hero-sub { font-size: 15.5px; color: rgba(255,255,255,.72); line-height: 1.7; margin-bottom: 28px; max-width: 460px; }
.hero-btns { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 32px; }
.hero-stats { display: flex; gap: 24px; flex-wrap: wrap; border-top: 1px solid rgba(255,255,255,.1); padding-top: 20px; }
.hero-stat-num { font-family: var(--font-head); font-size: 24px; font-weight: 700; color: var(--white); }
.hero-stat-lbl { font-size: 12px; color: rgba(255,255,255,.5); margin-top: 2px; }

.hero-card {
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: var(--radius-xl);
  padding: 24px; backdrop-filter: blur(10px);
}
.hero-card-title { font-size: 13px; font-weight: 600; color: rgba(255,255,255,.5); text-transform: uppercase; letter-spacing: .08em; margin-bottom: 16px; }
.hero-quick-links { display: flex; flex-direction: column; gap: 10px; }
.hero-quick-link {
  display: flex; align-items: center; justify-content: space-between;
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: var(--radius);
  padding: 12px 14px;
  color: rgba(255,255,255,.85); font-size: 13.5px; font-weight: 500;
  cursor: pointer; transition: background .15s;
  text-decoration: none;
}
.hero-quick-link:hover { background: rgba(13,158,114,.15); color: #4ee8b0; }
.hero-quick-link-arrow { color: rgba(255,255,255,.3); font-size: 16px; }
.hero-quick-link-icon { font-size: 16px; margin-right: 8px; }

/* ── AD ZONES ────────────────────────────────────────────── */
.ad-zone {
  background: linear-gradient(135deg, #f0f4f8 0%, #e8edf4 100%);
  border: 1.5px dashed var(--border-mid);
  border-radius: var(--radius);
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  color: var(--text-light);
  font-size: 11px; font-weight: 500;
  text-transform: uppercase; letter-spacing: .08em;
  position: relative; overflow: hidden;
}
.ad-zone::before {
  content: '';
  position: absolute; inset: 0;
  background: repeating-linear-gradient(45deg, transparent, transparent 10px, rgba(160,174,192,.06) 10px, rgba(160,174,192,.06) 20px);
}
.ad-zone-label {
  background: var(--white); border: 1px solid var(--border);
  border-radius: 4px; padding: 3px 10px;
  font-size: 10px; letter-spacing: .12em; color: var(--text-light);
  margin-bottom: 6px; position: relative; z-index: 1;
}
.ad-zone-size { font-size: 13px; color: var(--text-mid); font-weight: 500; position: relative; z-index: 1; }
.ad-leaderboard   { width: 100%; max-width: 728px; height: 90px; margin: 0 auto; }
.ad-rectangle     { width: 300px; height: 250px; }
.ad-incontent     { width: 100%; max-width: 468px; height: 60px; margin: 0 auto; }
.ad-large-rect    { width: 336px; height: 280px; margin: 0 auto; }
.ad-responsive    { width: 100%; height: 90px; }
.ad-wrapper       { text-align: center; padding: 12px 0; margin: 20px 0; }
.ad-wrapper-label { font-size: 10px; color: var(--text-light); text-transform: uppercase; letter-spacing: .1em; margin-bottom: 6px; }

/* ── CARDS ───────────────────────────────────────────────── */
.cards-grid   { display: grid; grid-template-columns: repeat(3,1fr); gap: 16px; }
.cards-grid-4 { display: grid; grid-template-columns: repeat(4,1fr); gap: 16px; }
.cards-grid-2 { display: grid; grid-template-columns: repeat(2,1fr); gap: 16px; }

.card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg); overflow: hidden;
  transition: box-shadow .2s, transform .2s; cursor: pointer;
}
.card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.card-img {
  height: 130px;
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-mid) 100%);
  display: flex; align-items: center; justify-content: center;
  font-size: 40px; color: rgba(255,255,255,.6);
  position: relative;
}
.card-img::after {
  content: '';
  position: absolute; bottom: 0; left: 0; right: 0;
  height: 3px; background: var(--green);
}
.card-body { padding: 16px; }
.card-tag { font-size: 10px; font-weight: 600; text-transform: uppercase; letter-spacing: .1em; color: var(--green); margin-bottom: 6px; }
.card-title { font-family: var(--font-head); font-size: 16px; font-weight: 600; color: var(--navy); margin-bottom: 8px; line-height: 1.35; }
.card-excerpt { font-size: 13px; color: var(--text-light); line-height: 1.55; margin-bottom: 12px; }
.card-footer { display: flex; align-items: center; justify-content: space-between; font-size: 12px; color: var(--text-light); border-top: 1px solid var(--border); padding-top: 10px; }
.card-read-more { color: var(--green); font-weight: 500; font-size: 13px; }

/* Calculator cards */
.calc-card {
  background: var(--white); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 20px;
  transition: box-shadow .2s; cursor: pointer;
}
.calc-card:hover { box-shadow: var(--shadow-md); }
.calc-card-icon {
  width: 48px; height: 48px; background: var(--navy);
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 22px; margin-bottom: 14px;
}
.calc-card-title { font-family: var(--font-head); font-size: 17px; font-weight: 600; color: var(--navy); margin-bottom: 6px; }
.calc-card-desc  { font-size: 13px; color: var(--text-light); margin-bottom: 16px; line-height: 1.5; }

/* ── FEATURES STRIP ──────────────────────────────────────── */
.features-strip { background: var(--white); border-bottom: 1px solid var(--border); }
.features-inner {
  max-width: 1200px; margin: 0 auto; padding: 0 20px;
  display: grid; grid-template-columns: repeat(4,1fr);
}
.feature-item { padding: 18px 16px; display: flex; align-items: center; gap: 12px; border-right: 1px solid var(--border); }
.feature-item:last-child { border-right: none; }
.feature-icon { width: 38px; height: 38px; border-radius: 8px; display: flex; align-items: center; justify-content: center; font-size: 18px; flex-shrink: 0; }
.feature-icon.green { background: var(--green-light); }
.feature-icon.navy  { background: rgba(10,38,71,.07); }
.feature-icon.gold  { background: var(--gold-light); }
.feature-title { font-size: 13px; font-weight: 600; color: var(--text); margin-bottom: 2px; }
.feature-sub   { font-size: 11.5px; color: var(--text-light); }

/* ── TOP AD STRIP ────────────────────────────────────────── */
.top-ad-strip { background: var(--white); border-bottom: 1px solid var(--border); padding: 12px 20px; text-align: center; }

/* ── CTA BANNER ──────────────────────────────────────────── */
.cta-banner {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-mid) 100%);
  border-radius: var(--radius-xl); padding: 32px 36px;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  margin: 32px 0; position: relative; overflow: hidden;
}
.cta-banner::before {
  content: '';
  position: absolute; right: -40px; top: -40px;
  width: 200px; height: 200px; border-radius: 50%;
  background: rgba(13,158,114,.1);
}
.cta-banner-title { font-family: var(--font-head); font-size: 22px; font-weight: 700; color: var(--white); margin-bottom: 6px; }
.cta-banner-sub   { font-size: 14px; color: rgba(255,255,255,.65); }
.cta-banner-btns  { display: flex; gap: 10px; flex-shrink: 0; }

/* ── TESTIMONIALS ────────────────────────────────────────── */
.testi-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 16px; }
.testi-card { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 20px; }
.testi-stars { color: var(--gold); font-size: 14px; margin-bottom: 10px; }
.testi-text  { font-size: 13.5px; color: var(--text-mid); line-height: 1.6; margin-bottom: 14px; font-style: italic; }
.testi-author{ display: flex; align-items: center; gap: 10px; }
.testi-avatar{ width: 36px; height: 36px; border-radius: 50%; background: var(--navy); display: flex; align-items: center; justify-content: center; color: var(--white); font-weight: 700; font-size: 14px; flex-shrink: 0; }
.testi-name  { font-size: 13px; font-weight: 600; color: var(--navy); }
.testi-role  { font-size: 11.5px; color: var(--text-light); }

/* ── FAQ ─────────────────────────────────────────────────── */
.faq-item   { border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; margin-bottom: 8px; }
.faq-question {
  padding: 14px 18px; font-size: 14.5px; font-weight: 500; color: var(--navy);
  cursor: pointer; display: flex; justify-content: space-between; align-items: center;
  background: var(--white); transition: background .15s; user-select: none;
}
.faq-question:hover { background: var(--bg); }
.faq-answer {
  padding: 0 18px; max-height: 0; overflow: hidden;
  transition: max-height .3s ease, padding .3s;
  font-size: 14px; color: var(--text-mid); line-height: 1.65; background: var(--bg);
}
.faq-answer.open { max-height: 300px; padding: 14px 18px; }
.faq-arrow { font-size: 18px; color: var(--text-light); transition: transform .3s; }
.faq-question.open .faq-arrow { transform: rotate(45deg); }

/* ── SIDEBAR ─────────────────────────────────────────────── */
.sidebar-widget { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; margin-bottom: 20px; }
.sidebar-widget-header { background: var(--navy); padding: 12px 16px; font-size: 13px; font-weight: 600; color: var(--white); text-transform: uppercase; letter-spacing: .07em; }
.sidebar-widget-body { padding: 16px; }
.sidebar-links { display: flex; flex-direction: column; gap: 6px; }
.sidebar-link { display: flex; align-items: center; gap: 8px; padding: 8px 10px; border-radius: 6px; font-size: 13px; color: var(--text-mid); transition: background .15s; cursor: pointer; text-decoration: none; }
.sidebar-link:hover { background: var(--bg); color: var(--green); }
.sidebar-link-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--green); flex-shrink: 0; }
.sidebar-price-row { display: flex; justify-content: space-between; font-size: 12.5px; color: var(--text-mid); }
.sidebar-price-row strong { color: var(--green); }

/* ── ARTICLE HERO ────────────────────────────────────────── */
.article-hero { background: var(--navy); padding: 36px 0 28px; }
.article-hero-inner { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.breadcrumb { display: flex; align-items: center; gap: 6px; font-size: 12px; color: rgba(255,255,255,.45); margin-bottom: 14px; flex-wrap: wrap; }
.breadcrumb a { color: rgba(255,255,255,.45); }
.breadcrumb a:hover { color: var(--gold); }
.breadcrumb-sep { font-size: 10px; }
.article-category { display: inline-block; background: rgba(13,158,114,.2); color: #4ee8b0; font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: .1em; padding: 4px 12px; border-radius: 20px; margin-bottom: 12px; }
.article-hero h1 { font-family: var(--font-head); font-size: 30px; font-weight: 700; color: var(--white); line-height: 1.25; max-width: 760px; margin-bottom: 14px; }
.article-meta { display: flex; gap: 20px; font-size: 12.5px; color: rgba(255,255,255,.5); flex-wrap: wrap; }
.article-meta span { display: flex; align-items: center; gap: 5px; }

/* ── ARTICLE CONTENT ─────────────────────────────────────── */
.article-content h2 { font-family: var(--font-head); font-size: 22px; font-weight: 700; color: var(--navy); margin: 28px 0 12px; }
.article-content h3 { font-family: var(--font-head); font-size: 18px; font-weight: 600; color: var(--navy-mid); margin: 22px 0 10px; }
.article-content p  { font-size: 15px; color: var(--text); line-height: 1.75; margin-bottom: 16px; }
.article-content ul, .article-content ol { margin: 0 0 16px 20px; }
.article-content li { font-size: 15px; color: var(--text); line-height: 1.7; margin-bottom: 6px; }
.article-content table { width: 100%; border-collapse: collapse; margin: 20px 0; font-size: 14px; }
.article-content th  { background: var(--navy); color: var(--white); padding: 10px 14px; text-align: left; font-weight: 500; font-size: 13px; }
.article-content td  { padding: 10px 14px; border-bottom: 1px solid var(--border); color: var(--text); }
.article-content tr:last-child td { border-bottom: none; }
.article-content tr:nth-child(even) td { background: var(--bg); }

.highlight-box { background: var(--green-light); border-left: 4px solid var(--green); border-radius: 0 var(--radius) var(--radius) 0; padding: 16px 20px; margin: 20px 0; font-size: 14px; color: var(--navy-mid); line-height: 1.65; }
.warning-box   { background: var(--gold-light); border-left: 4px solid var(--gold); border-radius: 0 var(--radius) var(--radius) 0; padding: 16px 20px; margin: 20px 0; font-size: 14px; color: #7a4a10; line-height: 1.65; }

/* ── FORMS ───────────────────────────────────────────────── */
.form-group  { margin-bottom: 18px; }
.form-label  { display: block; font-size: 13px; font-weight: 600; color: var(--text); margin-bottom: 6px; }
.form-input, .form-select {
  width: 100%; padding: 10px 14px;
  border: 1.5px solid var(--border); border-radius: var(--radius);
  font-size: 14px; font-family: var(--font-body);
  color: var(--text); background: var(--white);
  transition: border-color .15s; outline: none;
}
.form-input:focus, .form-select:focus { border-color: var(--green); }

/* Django messages */
.alert { padding: 12px 16px; border-radius: var(--radius); margin-bottom: 16px; font-size: 14px; }
.alert-success { background: var(--green-light); color: var(--green-mid); border-left: 3px solid var(--green); }
.alert-error   { background: var(--red-light); color: var(--red); border-left: 3px solid var(--red); }
.alert-warning { background: var(--gold-light); color: #854F0B; border-left: 3px solid var(--gold); }

/* ── RATES TABLE ─────────────────────────────────────────── */
.rates-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.rates-table th { background: var(--navy); color: var(--white); padding: 10px 16px; text-align: left; font-weight: 500; }
.rates-table td { padding: 10px 16px; border-bottom: 1px solid var(--border); }
.rates-table tr:last-child td { border-bottom: none; }
.rates-table tr:nth-child(even) td { background: var(--bg); }
.rate-badge { display: inline-block; background: var(--green-light); color: var(--green-mid); padding: 2px 8px; border-radius: 4px; font-weight: 600; font-size: 13px; }

/* ── GUIDE TOC ───────────────────────────────────────────── */
.guide-section-nav { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; margin-bottom: 20px; position: sticky; top: 80px; }
.guide-toc { list-style: none; padding: 8px; }
.guide-toc li a { display: block; padding: 8px 12px; font-size: 13px; color: var(--text-mid); border-radius: 6px; transition: background .15s; line-height: 1.4; }
.guide-toc li a:hover, .guide-toc li a.active { background: var(--green-light); color: var(--green); }

/* ── WA FLOAT BUTTON ─────────────────────────────────────── */
.wa-float {
  position: fixed; bottom: 28px; right: 28px;
  width: 56px; height: 56px;
  background: #25D366; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 20px rgba(37,211,102,.4);
  cursor: pointer; z-index: 999;
  transition: transform .2s;
  text-decoration: none;
}
.wa-float:hover { transform: scale(1.1); }
.wa-float svg { width: 28px; height: 28px; fill: white; }

/* ── FOOTER ──────────────────────────────────────────────── */
footer { background: var(--navy); color: rgba(255,255,255,.65); padding: 48px 0 0; }
.footer-grid {
  max-width: 1200px; margin: 0 auto; padding: 0 20px 40px;
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 32px;
}
.footer-brand p { font-size: 13px; line-height: 1.7; margin: 12px 0 16px; }
.footer-social { display: flex; gap: 8px; }
.footer-social-btn {
  width: 34px; height: 34px; border-radius: 8px;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.12);
  display: flex; align-items: center; justify-content: center;
  font-size: 15px; cursor: pointer;
  transition: background .15s; color: rgba(255,255,255,.7);
  text-decoration: none;
}
.footer-social-btn:hover { background: var(--green); color: var(--white); }
.footer-col-title { font-size: 13px; font-weight: 600; color: var(--white); text-transform: uppercase; letter-spacing: .08em; margin-bottom: 14px; }
.footer-links { display: flex; flex-direction: column; gap: 8px; }
.footer-links a { font-size: 13px; color: rgba(255,255,255,.55); transition: color .15s; }
.footer-links a:hover { color: var(--gold); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.08);
  padding: 16px 20px;
  max-width: 1200px; margin: 0 auto;
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 8px;
  font-size: 12px; color: rgba(255,255,255,.35);
}

/* ── PAGINATION ──────────────────────────────────────────── */
.pagination { display: flex; align-items: center; gap: 6px; justify-content: center; margin: 28px 0; flex-wrap: wrap; }
.pagination a, .pagination span {
  padding: 7px 13px; border-radius: 6px; font-size: 13px;
  border: 1px solid var(--border); background: var(--white); color: var(--text-mid);
  text-decoration: none; transition: background .15s;
}
.pagination a:hover { background: var(--green-light); color: var(--green); border-color: var(--green); }
.pagination .current { background: var(--green); color: var(--white); border-color: var(--green); }
.pagination .disabled { opacity: .4; cursor: default; }

/* ── UTILITIES ───────────────────────────────────────────── */
.text-green  { color: var(--green); }
.text-navy   { color: var(--navy); }
.text-light  { color: var(--text-light); }
.font-head   { font-family: var(--font-head); }
.mt-0  { margin-top: 0; }
.mb-0  { margin-bottom: 0; }
.mt-4  { margin-top: 16px; }
.mb-4  { margin-bottom: 16px; }
.mb-6  { margin-bottom: 24px; }

/* ── RESPONSIVE ──────────────────────────────────────────── */
@media (max-width: 1024px) {
  .cards-grid-4 { grid-template-columns: repeat(2,1fr); }
  .footer-grid  { grid-template-columns: 1fr 1fr; }
  .features-inner { grid-template-columns: repeat(2,1fr); }
  .feature-item:nth-child(2) { border-right: none; }
}

@media (max-width: 900px) {
  .hero-grid    { grid-template-columns: 1fr; }
  .hero-card    { display: none; }
  .content-grid { grid-template-columns: 1fr; }
  .content-sidebar { position: static; }
  .testi-grid   { grid-template-columns: 1fr 1fr; }
  .cta-banner   { flex-direction: column; }
  .nav-links    { display: none; }
  .nav-hamburger{ display: flex; }
  .ad-rectangle { width: 100%; height: 120px; }
}

@media (max-width: 640px) {
  .hero h1      { font-size: 26px; }
  .hero-stats   { gap: 16px; }
  .hero-stat-num{ font-size: 20px; }
  .cards-grid, .cards-grid-2 { grid-template-columns: 1fr; }
  .cards-grid-4 { grid-template-columns: 1fr; }
  .testi-grid   { grid-template-columns: 1fr; }
  .footer-grid  { grid-template-columns: 1fr; }
  .topbar-contact { display: none; }
  .section      { padding: 28px 0; }
  .article-hero h1 { font-size: 22px; }
  .cta-banner   { padding: 20px; }
  .cta-banner-title { font-size: 18px; }
  .wa-float     { bottom: 16px; right: 16px; width: 48px; height: 48px; }
  .features-inner { grid-template-columns: 1fr 1fr; }
  .feature-item { padding: 12px; }
}

/* ── MOBILE NAV ──────────────────────────────────────────── */
.mobile-nav {
  display: none;
  flex-direction: column;
  background: var(--white);
  border-top: 1px solid var(--border);
  padding: 12px 20px;
  box-shadow: var(--shadow-md);
}
.mobile-nav.open { display: flex; }
.mobile-nav a {
  padding: 10px 0;
  font-size: 14px; font-weight: 500;
  color: var(--text);
  border-bottom: 1px solid var(--border);
}
.mobile-nav a:last-child { border-bottom: none; }
.mobile-nav a:hover { color: var(--green); }

/* ── CPANEL STYLES ───────────────────────────────────────── */
.cpanel-wrapper { display: grid; grid-template-columns: 220px 1fr; min-height: 100vh; }
.cpanel-sidebar { background: var(--navy); padding: 0; }
.cpanel-sidebar-brand { padding: 20px; border-bottom: 1px solid rgba(255,255,255,.08); }
.cpanel-sidebar-brand h2 { font-family: var(--font-head); color: var(--white); font-size: 17px; }
.cpanel-sidebar-brand p { font-size: 11px; color: rgba(255,255,255,.4); }
.cpanel-sidebar-nav { padding: 12px; }
.cpanel-nav-link {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 12px; border-radius: 8px;
  font-size: 13.5px; color: rgba(255,255,255,.65);
  margin-bottom: 2px; transition: background .15s, color .15s;
  text-decoration: none;
}
.cpanel-nav-link:hover, .cpanel-nav-link.active { background: rgba(255,255,255,.1); color: var(--white); }
.cpanel-main { background: var(--bg); padding: 28px; }
.cpanel-header { margin-bottom: 24px; }
.cpanel-header h1 { font-family: var(--font-head); font-size: 22px; font-weight: 700; color: var(--navy); }
.stat-card { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 20px; }
.stat-card-num { font-family: var(--font-head); font-size: 28px; font-weight: 700; color: var(--navy); }
.stat-card-label { font-size: 13px; color: var(--text-light); margin-top: 4px; }
.table-wrap { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; }
.data-table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.data-table th { background: var(--bg); padding: 12px 16px; text-align: left; font-weight: 600; color: var(--text-mid); border-bottom: 1px solid var(--border); }
.data-table td { padding: 12px 16px; border-bottom: 1px solid var(--border); color: var(--text); }
.data-table tr:last-child td { border-bottom: none; }
.data-table tr:hover td { background: #fafbfc; }
.badge-pub   { background: var(--green-light); color: var(--green-mid); padding: 2px 8px; border-radius: 4px; font-size: 11px; font-weight: 600; }
.badge-draft { background: var(--gold-light);  color: #854F0B;         padding: 2px 8px; border-radius: 4px; font-size: 11px; font-weight: 600; }
.badge-del   { background: var(--red-light);   color: var(--red);      padding: 2px 8px; border-radius: 4px; font-size: 11px; font-weight: 600; }

@media (max-width: 768px) {
  .cpanel-wrapper { grid-template-columns: 1fr; }
  .cpanel-sidebar { display: none; }
  .cpanel-main    { padding: 16px; }
}
