:root {
    --navy: #0b2545;
    --navy-light: #13315c;
    --teal: #06a77d;
    --coral: #ff6b6b;
    --sand: #fff8f0;
    --ink: #1a1a2e;
    --muted: #6b7280;
    --border: #e8ecf1;
    --radius: 16px;
    --shadow: 0 8px 30px rgba(11, 37, 69, 0.08);
    --shadow-hover: 0 16px 40px rgba(11, 37, 69, 0.14);
    font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
body {
    background: var(--sand);
    color: var(--ink);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img { display: block; }
.container { max-width: 1180px; margin: 0 auto; padding: 0 24px; }

/* ---------- Header ---------- */
.site-header {
    position: sticky; top: 0; z-index: 100;
    background: rgba(255, 248, 240, 0.85);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border);
}
.site-header .container { display: flex; align-items: center; justify-content: space-between; height: 76px; }
.logo { font-weight: 700; font-size: 1.3rem; color: var(--navy); display: flex; align-items: center; gap: 8px; }
.logo span { color: var(--teal); }
.logo-img { height: 32px; width: auto; display: block; max-width: none; }
.nav-links { display: flex; gap: 32px; font-weight: 500; font-size: 0.95rem; }
.nav-links a { position: relative; color: var(--navy); transition: color .2s; }
.nav-links a::after {
    content: ''; position: absolute; left: 0; bottom: -6px; width: 0; height: 2px;
    background: var(--teal); transition: width .25s ease;
}
.nav-links a:hover::after { width: 100%; }
.nav-auth { display: flex; align-items: center; gap: 18px; }
.nav-login {
    font-weight: 600; font-size: 0.9rem; color: var(--navy); position: relative;
}
.nav-login::after {
    content: ''; position: absolute; left: 0; bottom: -6px; width: 0; height: 2px;
    background: var(--teal); transition: width .25s ease;
}
.nav-login:hover::after { width: 100%; }
.nav-cta {
    background: var(--teal); color: #fff !important; padding: 10px 22px; border-radius: 999px;
    font-weight: 600; font-size: 0.9rem; transition: transform .2s, box-shadow .2s;
}
.nav-cta:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(6,167,125,.35); }

/* ---------- Hero ---------- */
.hero {
    position: relative; overflow: hidden;
    padding: 90px 0 110px;
    background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 55%, #1d4e89 100%);
    color: #fff;
}
.hero::before, .hero::after {
    content: ''; position: absolute; border-radius: 50%; filter: blur(60px); opacity: .35;
    animation: float 12s ease-in-out infinite;
}
.hero::before { width: 340px; height: 340px; background: var(--teal); top: -100px; right: -60px; }
.hero::after { width: 260px; height: 260px; background: var(--coral); bottom: -80px; left: -40px; animation-delay: -6s; }
@keyframes float {
    0%, 100% { transform: translateY(0) scale(1); }
    50% { transform: translateY(-25px) scale(1.05); }
}
.hero-content { position: relative; z-index: 2; text-align: center; max-width: 720px; margin: 0 auto; }
.eyebrow {
    display: inline-block; padding: 6px 16px; border-radius: 999px;
    background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.2);
    font-size: 0.8rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase;
    margin-bottom: 22px; opacity: 0; animation: fadeUp .7s ease forwards;
}
.hero h1 {
    font-size: clamp(2.1rem, 4.5vw, 3.2rem); font-weight: 700; line-height: 1.15;
    margin-bottom: 18px; opacity: 0; animation: fadeUp .7s ease .1s forwards;
}
.hero h1 em { font-style: normal; color: #7ee8c8; }
.hero p {
    font-size: 1.1rem; color: rgba(255,255,255,.82); margin-bottom: 34px;
    opacity: 0; animation: fadeUp .7s ease .2s forwards;
}
@keyframes fadeUp {
    from { opacity: 0; transform: translateY(18px); }
    to { opacity: 1; transform: translateY(0); }
}
.search-bar {
    display: flex; gap: 10px; background: #fff; padding: 8px; border-radius: 999px;
    box-shadow: 0 20px 50px rgba(0,0,0,.25); max-width: 560px; margin: 0 auto;
    opacity: 0; animation: fadeUp .7s ease .3s forwards;
}
.search-bar input {
    flex: 1; border: none; outline: none; padding: 12px 18px; font-size: 0.95rem;
    border-radius: 999px; color: var(--ink); font-family: inherit;
}
.search-bar button {
    background: var(--coral); color: #fff; border: none; padding: 12px 28px;
    border-radius: 999px; font-weight: 600; cursor: pointer; transition: transform .2s;
    font-family: inherit;
}
.search-bar button:hover { transform: scale(1.04); }
.hero-tags {
    display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-top: 24px;
    opacity: 0; animation: fadeUp .7s ease .4s forwards;
}
.hero-tags a {
    font-size: 0.82rem; padding: 6px 14px; border-radius: 999px;
    border: 1px solid rgba(255,255,255,.25); color: rgba(255,255,255,.85);
    transition: background .2s, border-color .2s;
}
.hero-tags a:hover { background: rgba(255,255,255,.12); border-color: rgba(255,255,255,.5); }

/* ---------- Section headers ---------- */
.section { padding: 72px 0; }
.section-head {
    display: flex; align-items: flex-end; justify-content: space-between;
    margin-bottom: 36px; flex-wrap: wrap; gap: 12px;
}
.section-head h2 { font-size: 1.8rem; font-weight: 700; color: var(--navy); }
.section-head p { color: var(--muted); font-size: 0.95rem; margin-top: 4px; }
.section-head .view-all { font-weight: 600; color: var(--teal); font-size: 0.9rem; white-space: nowrap; }
.section-head .view-all:hover { text-decoration: underline; }

/* ---------- Reveal-on-scroll ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .6s ease, transform .6s ease; }
.reveal.is-visible { opacity: 1; transform: translateY(0); }

/* ---------- Featured grid (pillar articles) ---------- */
.featured-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 22px; }
.featured-grid .card.large { grid-row: span 2; }
@media (max-width: 860px) { .featured-grid { grid-template-columns: 1fr; } .featured-grid .card.large { grid-row: auto; } }

/* ---------- Cards ---------- */
.card {
    background: #fff; border-radius: var(--radius); overflow: hidden;
    box-shadow: var(--shadow); transition: transform .3s ease, box-shadow .3s ease;
    display: flex; flex-direction: column; height: 100%;
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-hover); }
.card-media {
    position: relative; aspect-ratio: 16/9; overflow: hidden;
}
.card.large .card-media { aspect-ratio: 4/3; }
.card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.card:hover .card-media img { transform: scale(1.08); }
.card-media .placeholder-gfx {
    width: 100%; height: 100%;
    background: linear-gradient(135deg, var(--grad-a, #0b2545), var(--grad-b, #06a77d));
    display: flex; align-items: center; justify-content: center; position: relative;
}
.card-media .placeholder-gfx svg { width: 52px; height: 52px; opacity: .85; }
.card-media .placeholder-gfx::after {
    content: ''; position: absolute; inset: 0;
    background: radial-gradient(circle at 30% 20%, rgba(255,255,255,.18), transparent 60%);
}
.category-pill {
    position: absolute; top: 14px; left: 14px; z-index: 2;
    background: rgba(255,255,255,.92); color: var(--navy); font-size: 0.72rem; font-weight: 700;
    text-transform: uppercase; letter-spacing: .04em; padding: 5px 12px; border-radius: 999px;
}
.card-body { padding: 22px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.card-body h3 { font-size: 1.15rem; line-height: 1.35; color: var(--navy); }
.card.large .card-body h3 { font-size: 1.4rem; }
.card-body p { color: var(--muted); font-size: 0.92rem; flex: 1; }
.card-meta {
    display: flex; align-items: center; justify-content: space-between;
    font-size: 0.8rem; color: var(--muted); margin-top: 6px; padding-top: 12px;
    border-top: 1px solid var(--border);
}
.card-meta .read-more { color: var(--teal); font-weight: 600; }

/* ---------- Latest grid ---------- */
.latest-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
@media (max-width: 860px) { .latest-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .latest-grid { grid-template-columns: 1fr; } }

/* ---------- Category strip ---------- */
.category-strip { display: flex; gap: 16px; flex-wrap: wrap; }
.category-chip {
    flex: 1; min-width: 220px; background: #fff; border-radius: var(--radius);
    padding: 24px; box-shadow: var(--shadow); border: 1px solid var(--border);
    transition: transform .25s ease, border-color .25s ease;
}
.category-chip:hover { transform: translateY(-4px); border-color: var(--teal); }
.category-chip .icon {
    width: 44px; height: 44px; border-radius: 12px; display: flex; align-items: center; justify-content: center;
    background: rgba(6,167,125,.1); color: var(--teal); margin-bottom: 14px;
}
.category-chip h4 { color: var(--navy); font-size: 1.05rem; margin-bottom: 6px; }
.category-chip p { color: var(--muted); font-size: 0.85rem; }

/* ---------- CTA banner ---------- */
.cta-banner {
    background: linear-gradient(120deg, var(--teal), #0b8f6a);
    border-radius: 24px; padding: 56px 48px; text-align: center; color: #fff;
    position: relative; overflow: hidden;
}
.cta-banner::before {
    content: ''; position: absolute; width: 400px; height: 400px; border-radius: 50%;
    background: rgba(255,255,255,.08); top: -180px; right: -100px;
}
.cta-banner h2 { font-size: 1.9rem; margin-bottom: 12px; position: relative; }
.cta-banner p { color: rgba(255,255,255,.9); margin-bottom: 26px; position: relative; }
.cta-btn {
    display: inline-block; background: #fff; color: var(--teal); font-weight: 700;
    padding: 14px 34px; border-radius: 999px; position: relative;
    transition: transform .2s, box-shadow .2s;
}
.cta-btn:hover { transform: translateY(-3px) scale(1.02); box-shadow: 0 14px 30px rgba(0,0,0,.2); }

/* ---------- Newsletter ---------- */
.newsletter { background: var(--navy); color: #fff; padding: 60px 0; }
.newsletter .container { display: flex; align-items: center; justify-content: space-between; gap: 30px; flex-wrap: wrap; }
.newsletter h3 { font-size: 1.4rem; margin-bottom: 6px; }
.newsletter p { color: rgba(255,255,255,.75); font-size: 0.9rem; }
.newsletter form { display: flex; gap: 10px; }
.newsletter input {
    padding: 12px 18px; border-radius: 999px; border: none; outline: none; width: 260px;
    font-family: inherit;
}
.newsletter button {
    background: var(--coral); color: #fff; border: none; padding: 12px 26px; border-radius: 999px;
    font-weight: 600; cursor: pointer; font-family: inherit; transition: transform .2s;
}
.newsletter button:hover { transform: translateY(-2px); }

/* ---------- Footer (sitemap-style internal links) ---------- */
footer { background: #081b33; color: rgba(255,255,255,.7); padding: 56px 0 28px; font-size: 0.9rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 32px; margin-bottom: 40px; }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
.footer-grid h5 { color: #fff; font-size: 0.85rem; text-transform: uppercase; letter-spacing: .05em; margin-bottom: 16px; }
.footer-grid ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.footer-grid a:hover { color: #fff; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); padding-top: 22px; text-align: center; font-size: 0.82rem; color: rgba(255,255,255,.5); }

/* ---------- Comparison tables (pillar articles) ---------- */
.article-content-body { overflow-x: auto; }
.article-content-body table {
    width: 100%; border-collapse: collapse; margin: 28px 0;
    border-radius: 12px; overflow: hidden; box-shadow: var(--shadow);
    font-size: 0.92rem; min-width: 480px;
}
.article-content-body th {
    background: var(--navy); color: #fff; text-align: left;
    padding: 12px 16px; font-weight: 600;
}
.article-content-body td {
    padding: 12px 16px; border-bottom: 1px solid var(--border);
}
.article-content-body tr:last-child td { border-bottom: none; }
.article-content-body tr:nth-child(even) td { background: #faf9f6; }
.article-content-body caption {
    caption-side: top; text-align: left; font-size: 0.82rem; color: var(--muted);
    margin-bottom: 8px; font-style: italic;
}
@media (max-width: 600px) {
    .article-content-body table { min-width: 560px; }
}

/* ---------- Inline mid-article CTA (registration-focused) ---------- */
.article-content-body .inline-cta {
    display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap;
    background: linear-gradient(120deg, #eefaf6, #f2f8ff);
    border: 1px solid #d9f0e7; border-radius: 16px; padding: 26px 30px; margin: 36px 0;
}
.article-content-body .inline-cta h4 { color: var(--navy); font-size: 1.1rem; margin-bottom: 4px; }
.article-content-body .inline-cta p { color: var(--muted); font-size: 0.9rem; margin: 0; }
.article-content-body .inline-cta a {
    background: var(--teal); color: #fff; padding: 11px 24px; border-radius: 999px;
    font-weight: 600; font-size: 0.9rem; white-space: nowrap; transition: transform .2s, box-shadow .2s;
}
.article-content-body .inline-cta a:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(6,167,125,.3); }
