/* ============================================================
   FinToolSet — Extra Design Styles (v2)
   ============================================================ */

/* ---------- Base resets & typography ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { background: var(--color-bg); color: var(--color-text); line-height: 1.65; -webkit-font-smoothing: antialiased; }
img  { max-width: 100%; height: auto; display: block; }
a    { color: var(--color-primary-btn); text-decoration: none; transition: color .2s; }
a:hover { color: var(--color-primary-dark); }
h1,h2,h3,h4,h5,h6 { line-height: 1.2; font-weight: 700; color: var(--color-secondary, #0f172a); }
p    { margin-bottom: 1rem; }

/* ---------- Site wrapper ---------- */
.site-wrapper { display: flex; flex-direction: column; min-height: 100vh; }
.site-main    { flex: 1; }

/* ============================================================
   TOP BAR
   ============================================================ */
.site-topbar {
    background: var(--header-bg, #0f172a);
    color: #e2e8f0;
    font-size: .8125rem;
    text-align: center;
    padding: .45rem 1rem;
    letter-spacing: .01em;
}
.site-topbar a { color: var(--color-accent, #f59e0b); }

/* ============================================================
   HEADER
   ============================================================ */
.site-header {
    background: var(--header-bg, #075985);
    color: var(--header-text, #fff);
    padding: 0;
    z-index: 200;
    transition: box-shadow .25s;
}
.site-header.sticky { position: sticky; top: 0; box-shadow: 0 2px 16px rgba(0,0,0,.18); }
.site-header.header-minimal { background: #fff; border-bottom: 1px solid #e5e7eb; }
.site-header.header-minimal .site-branding a,
.site-header.header-minimal .main-navigation ul li a { color: var(--color-secondary, #0f172a); }

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: .9rem 1.5rem;
    max-width: var(--max-width, 1200px);
    margin: 0 auto;
}

.site-branding a {
    font-size: 1.45rem;
    font-weight: 800;
    color: var(--header-text, #fff);
    letter-spacing: -.03em;
    transition: opacity .2s;
    display: flex;
    align-items: center;
    gap: .5rem;
}
.site-branding a:hover { opacity: .85; color: var(--header-text, #fff); }
.site-branding .logo-img { height: var(--logo-height, 40px); width: auto; }
.site-branding .tagline  { display: block; font-size: .7rem; font-weight: 400; opacity: .7; margin-top: -.1rem; }

/* Nav */
.main-navigation ul { list-style: none; display: flex; align-items: center; gap: .25rem; }
.main-navigation ul li a {
    color: var(--header-text, #e0f2fe);
    font-size: .9rem;
    font-weight: 500;
    padding: .45rem .75rem;
    border-radius: .4rem;
    transition: background .15s, color .15s;
    display: block;
    white-space: nowrap;
}
.main-navigation ul li a:hover,
.main-navigation ul li.current-menu-item > a {
    background: rgba(255,255,255,.12);
    color: #fff;
}
.header-minimal .main-navigation ul li a:hover {
    background: var(--color-bg-alt, #f3f4f6);
    color: var(--color-primary);
}

.header-actions { display: flex; align-items: center; gap: .6rem; flex-shrink: 0; }
.header-search-btn { background: none; border: none; cursor: pointer; color: var(--header-text, #fff); opacity: .75; transition: opacity .15s; padding: .3rem; }
.header-search-btn:hover { opacity: 1; }
.header-search-btn svg { width: 20px; height: 20px; }

/* Mobile toggle */
.menu-toggle { display: none; background: none; border: none; cursor: pointer; padding: .35rem; flex-direction: column; gap: 5px; }
.menu-toggle .bar { display: block; width: 22px; height: 2px; background: var(--header-text, #fff); border-radius: 2px; transition: transform .25s, opacity .25s; }
.menu-toggle[aria-expanded="true"] .bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] .bar:nth-child(2) { opacity: 0; }
.menu-toggle[aria-expanded="true"] .bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Dropdown support */
.main-navigation ul li { position: relative; }
.main-navigation ul li ul {
    display: none;
    position: absolute;
    top: calc(100% + .4rem);
    left: 0;
    min-width: 200px;
    background: #fff;
    border-radius: .5rem;
    box-shadow: 0 8px 30px rgba(0,0,0,.15);
    padding: .4rem;
    z-index: 300;
}
.main-navigation ul li:hover > ul,
.main-navigation ul li:focus-within > ul { display: block; }
.main-navigation ul li ul li a { color: var(--color-text, #374151); border-radius: .3rem; }
.main-navigation ul li ul li a:hover { background: var(--color-bg-alt); color: var(--color-primary); }

@media (max-width: 900px) {
    .menu-toggle { display: flex; }
    .main-navigation { display: none; position: absolute; top: 100%; left: 0; right: 0; background: var(--header-bg, #075985); padding: .75rem; box-shadow: 0 8px 24px rgba(0,0,0,.2); z-index: 199; }
    .main-navigation.is-open { display: block; }
    .main-navigation ul { flex-direction: column; gap: 0; }
    .main-navigation ul li ul { position: static; box-shadow: none; background: rgba(0,0,0,.15); margin-top: .25rem; }
    .main-navigation ul li:hover > ul { display: block; }
}

/* ============================================================
   CONTAINER
   ============================================================ */
.container { max-width: var(--max-width, 1200px); margin: 0 auto; padding: 0 1.5rem; }

/* ============================================================
   BREADCRUMBS
   ============================================================ */
.breadcrumbs { background: var(--color-bg-alt, #f8fafc); border-bottom: 1px solid #e5e7eb; padding: .7rem 0; font-size: .82rem; color: #94a3b8; }
.breadcrumb-list { display: flex; flex-wrap: wrap; align-items: center; gap: .2rem; list-style: none; }
.breadcrumb-list li { display: flex; align-items: center; gap: .2rem; }
.breadcrumb-list li a { color: var(--color-primary); }
.breadcrumb-list li span svg { opacity: .45; vertical-align: middle; }

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: .45rem;
    padding: .7rem 1.75rem; border-radius: var(--btn-radius, .5rem);
    font-weight: 600; font-size: .9375rem; cursor: pointer; border: 2px solid transparent;
    transition: background .15s, color .15s, box-shadow .15s, transform .1s;
    white-space: nowrap; text-decoration: none; line-height: 1;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--color-primary-btn); color: #fff; border-color: var(--color-primary-btn); }
.btn-primary:hover { background: var(--color-primary-dark); border-color: var(--color-primary-dark); color: #fff; box-shadow: 0 4px 16px rgba(2,132,199,.35); }
.btn-outline { background: transparent; color: #fff; border-color: rgba(255,255,255,.6); }
.btn-outline:hover { background: rgba(255,255,255,.12); border-color: #fff; color: #fff; }
.btn-outline-dark { background: transparent; color: var(--color-primary); border-color: var(--color-primary); }
.btn-outline-dark:hover { background: var(--color-primary); color: #fff; }
.btn-ghost { background: transparent; color: var(--color-primary); border-color: transparent; padding-left: .5rem; padding-right: .5rem; }
.btn-ghost:hover { background: var(--color-bg-alt); }
.btn-sm { padding: .45rem 1.1rem; font-size: .84rem; }
.btn-lg { padding: .9rem 2.25rem; font-size: 1.05rem; }

/* ============================================================
   SECTION HEADERS
   ============================================================ */
.section-header { text-align: center; margin-bottom: 3rem; }
.section-header h2 { font-size: clamp(1.6rem, 3.5vw, 2.35rem); color: var(--color-secondary, #0f172a); margin-bottom: .65rem; }
.section-header--light h2 { color: #fff; }
.section-header--light .section-sub { color: rgba(255,255,255,.75); }
.section-sub { font-size: 1.0625rem; color: #64748b; max-width: 600px; margin: 0 auto; line-height: 1.65; }

/* ============================================================
   CARDS
   ============================================================ */
.card-grid { display: grid; gap: 1.5rem; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.card-grid--2 { grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); }
.card-grid--4 { grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); }

.card {
    background: #fff; border-radius: var(--radius, .5rem);
    box-shadow: 0 1px 4px rgba(0,0,0,.06), 0 4px 16px rgba(0,0,0,.04);
    overflow: hidden; display: flex; flex-direction: column;
    transition: box-shadow .2s, transform .2s;
    border: 1px solid #f1f5f9;
}
.card:hover { box-shadow: 0 4px 24px rgba(0,0,0,.1), 0 1px 4px rgba(0,0,0,.06); transform: translateY(-3px); }
.card-img img { width: 100%; height: 200px; object-fit: cover; }
.card-body { padding: 1.5rem; flex: 1; display: flex; flex-direction: column; gap: .5rem; }
.card-tag { font-size: .74rem; font-weight: 600; color: var(--color-primary); text-transform: uppercase; letter-spacing: .06em; }
.card-title { font-size: 1.05rem; font-weight: 700; color: var(--color-secondary, #0f172a); line-height: 1.3; }
.card-title a { color: inherit; }
.card-title a:hover { color: var(--color-primary); }
.card-text  { font-size: .9rem; color: #64748b; flex: 1; }
.card-meta  { font-size: .78rem; color: #94a3b8; display: flex; gap: .75rem; flex-wrap: wrap; }
.card-footer { padding: 0 1.5rem 1.35rem; }

/* Calculator card variant */
.calc-card { border-top: 3px solid var(--color-primary); }
.calc-card-icon { width: 48px; height: 48px; background: var(--color-bg-alt); border-radius: .5rem; display: flex; align-items: center; justify-content: center; font-size: 1.5rem; margin-bottom: .75rem; }

/* Deal card variant */
.deal-card { border-left: 4px solid var(--color-accent, #f59e0b); }
.deal-badge { display: inline-block; background: var(--color-accent, #f59e0b); color: #000; font-size: .72rem; font-weight: 700; padding: .2rem .6rem; border-radius: 999px; text-transform: uppercase; letter-spacing: .05em; }

/* ============================================================
   SECTION WRAPPERS
   ============================================================ */
.section      { padding: 5rem 0; }
.section--sm  { padding: 3rem 0; }
.section--lg  { padding: 7rem 0; }
.section-alt  { background: var(--color-bg-alt, #f3f4f6); }
.section-dark { background: var(--color-secondary, #0f172a); color: #e2e8f0; }
.section-dark .section-header h2 { color: #fff; }
.section-dark .section-sub { color: rgba(255,255,255,.65); }

/* ============================================================
   HERO
   ============================================================ */
.hero {
    background: linear-gradient(135deg, var(--hero-from, #075985) 0%, var(--hero-to, #0369a1) 100%);
    color: #fff;
    padding: 6rem 1.5rem 5rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}
.hero::before {
    content: ''; position: absolute; inset: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.04'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    pointer-events: none;
}
.hero__inner { position: relative; max-width: 800px; margin: 0 auto; }
.hero__badge { display: inline-flex; align-items: center; gap: .4rem; background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.2); border-radius: 999px; padding: .35rem 1rem; font-size: .8125rem; font-weight: 600; color: #bae6fd; margin-bottom: 1.5rem; }
.hero h1 { font-size: clamp(2.1rem, 5.5vw, 3.5rem); font-weight: 800; color: #fff; line-height: 1.12; letter-spacing: -.02em; margin-bottom: 1.25rem; }
.hero h1 span { color: #7dd3fc; }
.hero__sub { font-size: 1.125rem; color: rgba(255,255,255,.8); max-width: 560px; margin: 0 auto 2.25rem; line-height: 1.7; }
.hero__actions { display: flex; flex-wrap: wrap; gap: .875rem; justify-content: center; margin-bottom: 3.5rem; }
.hero__stats { display: flex; flex-wrap: wrap; justify-content: center; gap: 0; border-top: 1px solid rgba(255,255,255,.15); padding-top: 2.5rem; }
.hero__stat { padding: 0 2.5rem; text-align: center; border-right: 1px solid rgba(255,255,255,.15); }
.hero__stat:last-child { border-right: none; }
.hero__stat-num   { display: block; font-size: 1.9rem; font-weight: 800; color: #fff; line-height: 1; }
.hero__stat-label { display: block; font-size: .8rem; color: rgba(255,255,255,.65); margin-top: .25rem; }
@media (max-width: 600px) {
    .hero { padding: 4rem 1rem 3.5rem; }
    .hero__stat { padding: .75rem 1.25rem; border-right: none; border-bottom: 1px solid rgba(255,255,255,.15); }
    .hero__stat:last-child { border-bottom: none; }
    .hero__stats { flex-direction: column; align-items: center; }
}

/* ============================================================
   FEATURES GRID
   ============================================================ */
.features-grid { display: grid; gap: 1.5rem; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); }
.feature-item {
    background: #fff; border-radius: var(--radius); padding: 1.75rem 1.35rem;
    text-align: center; box-shadow: 0 1px 4px rgba(0,0,0,.06);
    border: 1px solid #f1f5f9; transition: box-shadow .2s, transform .2s;
}
.feature-item:hover { box-shadow: 0 6px 24px rgba(0,0,0,.1); transform: translateY(-2px); }
.feature-icon { font-size: 2.25rem; display: block; margin-bottom: .875rem; }
.feature-item h3 { font-size: 1rem; color: var(--color-primary); margin-bottom: .4rem; }
.feature-item p { font-size: .875rem; color: #64748b; margin: 0; line-height: 1.55; }

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer { background: var(--footer-bg, #0f172a); color: var(--footer-text, #94a3b8); }
.footer-main { padding: 4rem 0 2.5rem; }
.footer-grid {
    display: grid; gap: 2.5rem;
    grid-template-columns: 2fr 1fr 1fr 1fr;
}
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } }

.footer-brand-name { font-size: 1.35rem; font-weight: 800; color: #f8fafc; margin-bottom: .75rem; display: block; }
.footer-brand-desc { font-size: .875rem; line-height: 1.65; max-width: 280px; margin-bottom: 1.25rem; }
.footer-col-heading { font-size: .75rem; font-weight: 700; color: #f8fafc; text-transform: uppercase; letter-spacing: .1em; margin-bottom: 1rem; }
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: .5rem; }
.footer-col ul li a { font-size: .875rem; color: var(--footer-link, #e2e8f0); opacity: .7; transition: opacity .15s; }
.footer-col ul li a:hover { opacity: 1; }

.social-links { display: flex; flex-wrap: wrap; gap: .5rem; }
.social-link {
    display: flex; align-items: center; justify-content: center;
    width: 36px; height: 36px; border-radius: .4rem;
    background: rgba(255,255,255,.08); color: var(--footer-link, #e2e8f0);
    transition: background .15s, color .15s;
}
.social-link svg { width: 16px; height: 16px; }
.social-link:hover { background: var(--color-primary); color: #fff; }

.footer-divider { border: none; border-top: 1px solid var(--footer-border, #1e293b); margin: 0; }
.footer-bottom {
    padding: 1.25rem 0;
    display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center;
    gap: .75rem; font-size: .8125rem;
}
.footer-bottom-nav { display: flex; gap: 1.25rem; flex-wrap: wrap; }
.footer-bottom-nav a { color: var(--footer-link, #94a3b8); opacity: .65; transition: opacity .15s; }
.footer-bottom-nav a:hover { opacity: 1; }
.footer-disclaimer { font-size: .75rem; color: var(--footer-text, #64748b); opacity: .55; margin-top: .25rem; max-width: 600px; }

/* ============================================================
   SINGLE CONTENT — SHARED
   ============================================================ */
.entry-hero {
    background: linear-gradient(135deg, var(--hero-from, #075985) 0%, var(--hero-to, #0369a1) 100%);
    color: #fff; padding: 4rem 1.5rem 3rem; text-align: center;
}
.entry-hero__tag { display: inline-block; background: rgba(255,255,255,.15); border-radius: 999px; font-size: .78rem; font-weight: 600; padding: .3rem .9rem; color: #bae6fd; margin-bottom: 1rem; text-transform: uppercase; letter-spacing: .07em; }
.entry-hero h1 { font-size: clamp(1.75rem, 4vw, 2.75rem); color: #fff; margin-bottom: .875rem; font-weight: 800; max-width: 760px; margin-left: auto; margin-right: auto; }
.entry-hero__meta { display: flex; flex-wrap: wrap; gap: 1rem; justify-content: center; font-size: .85rem; color: rgba(255,255,255,.7); }
.entry-hero__meta span { display: flex; align-items: center; gap: .3rem; }

.entry-layout { display: grid; gap: 2.5rem; grid-template-columns: 1fr 300px; padding: 3rem 0; align-items: start; }
@media (max-width: 900px) { .entry-layout { grid-template-columns: 1fr; } }
.entry-content-area { min-width: 0; }
.entry-content { font-size: 1.0125rem; line-height: 1.8; color: #334155; }
.entry-content h2 { font-size: 1.5rem; margin: 2.25rem 0 .875rem; color: var(--color-secondary); }
.entry-content h3 { font-size: 1.2rem; margin: 1.75rem 0 .65rem; }
.entry-content p  { margin-bottom: 1.15rem; }
.entry-content ul,
.entry-content ol { margin: 0 0 1.15rem 1.5rem; }
.entry-content li { margin-bottom: .4rem; }
.entry-content blockquote { border-left: 4px solid var(--color-primary); padding: 1rem 1.5rem; margin: 1.75rem 0; background: var(--color-bg-alt); border-radius: 0 .5rem .5rem 0; font-style: italic; color: #475569; }
.entry-content img { border-radius: var(--radius); margin: 1.5rem 0; }
.entry-content a { color: var(--color-primary); text-decoration: underline; text-underline-offset: 3px; }
.entry-content code { background: #f1f5f9; padding: .15em .45em; border-radius: .3rem; font-size: .88em; color: #0f172a; }

/* ============================================================
   SIDEBAR
   ============================================================ */
.entry-sidebar { position: sticky; top: calc(var(--header-height, 70px) + 1.5rem); }
.widget { background: #fff; border-radius: var(--radius); padding: 1.5rem; margin-bottom: 1.5rem; box-shadow: 0 1px 4px rgba(0,0,0,.06); border: 1px solid #f1f5f9; }
.widget-title { font-size: .9rem; font-weight: 700; color: var(--color-secondary); border-bottom: 2px solid var(--color-primary); padding-bottom: .5rem; margin-bottom: 1rem; text-transform: uppercase; letter-spacing: .05em; }
.widget ul { list-style: none; display: flex; flex-direction: column; gap: .5rem; }
.widget ul li a { font-size: .875rem; color: #475569; }
.widget ul li a:hover { color: var(--color-primary); }

/* Sidebar related cards */
.sidebar-calc-list { display: flex; flex-direction: column; gap: .75rem; }
.sidebar-calc-item { display: flex; align-items: center; gap: .75rem; padding: .65rem .875rem; background: var(--color-bg-alt); border-radius: .5rem; border-left: 3px solid var(--color-primary); transition: background .15s; }
.sidebar-calc-item:hover { background: #e0f2fe; }
.sidebar-calc-item-icon { font-size: 1.25rem; flex-shrink: 0; }
.sidebar-calc-item-name { font-size: .875rem; font-weight: 600; color: var(--color-secondary); }

/* ============================================================
   CALCULATOR SINGLE PAGE
   ============================================================ */
.calc-single-hero { background: linear-gradient(120deg, #0f172a 0%, var(--color-primary-dark, #075985) 100%); padding: 3.5rem 1.5rem 3rem; text-align: center; }
.calc-single-hero__icon { width: 68px; height: 68px; background: rgba(255,255,255,.12); border-radius: 1rem; display: flex; align-items: center; justify-content: center; font-size: 2rem; margin: 0 auto 1.25rem; }
.calc-single-hero h1 { font-size: clamp(1.75rem, 4vw, 2.5rem); color: #fff; font-weight: 800; margin-bottom: .75rem; }
.calc-single-hero p { color: rgba(255,255,255,.75); max-width: 520px; margin: 0 auto; font-size: 1.0625rem; }

.calc-single-layout { display: grid; gap: 2.5rem; grid-template-columns: 1fr 320px; padding: 3rem 0; align-items: start; }
@media (max-width: 960px) { .calc-single-layout { grid-template-columns: 1fr; } }

/* ============================================================
   GUIDE SINGLE
   ============================================================ */
.guide-toc { background: #f8fafc; border: 1px solid #e2e8f0; border-radius: var(--radius); padding: 1.25rem 1.5rem; margin-bottom: 2rem; }
.guide-toc summary { font-weight: 700; cursor: pointer; list-style: none; font-size: .9rem; color: var(--color-secondary); }
.guide-toc ol { margin: .75rem 0 0 1.25rem; font-size: .875rem; }
.guide-toc ol li { margin-bottom: .4rem; }
.guide-toc ol li a { color: var(--color-primary); }

/* ============================================================
   DEAL SINGLE
   ============================================================ */
.deal-single-header { background: linear-gradient(135deg, #0f172a, #1e293b); color: #fff; padding: 4rem 1.5rem 3rem; }
.deal-single-header__inner { max-width: 700px; margin: 0 auto; }
.deal-rating { display: flex; align-items: center; gap: .35rem; }
.deal-rating .star { color: #f59e0b; font-size: 1.15rem; }
.deal-rating span { font-size: .85rem; color: #94a3b8; }
.deal-cta-box { background: #fff; border-radius: var(--radius); padding: 2rem; box-shadow: 0 4px 24px rgba(0,0,0,.1); border: 1px solid #e5e7eb; text-align: center; position: sticky; top: calc(var(--header-height, 70px) + 1.5rem); }
.deal-cta-box .deal-price { font-size: 2rem; font-weight: 800; color: var(--color-secondary); }
.deal-cta-box .deal-price-note { font-size: .8rem; color: #94a3b8; }
.deal-cta-box .btn { width: 100%; margin-top: 1rem; }
.deal-cta-box .deal-guarantee { font-size: .78rem; color: #94a3b8; margin-top: .75rem; }
.deal-pros-cons { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; margin: 1.5rem 0; }
@media (max-width: 640px) { .deal-pros-cons { grid-template-columns: 1fr; } }
.deal-pros li::before { content: '✓ '; color: #16a34a; font-weight: 700; }
.deal-cons li::before { content: '✗ '; color: #dc2626; font-weight: 700; }
.deal-pros ul, .deal-cons ul { list-style: none; display: flex; flex-direction: column; gap: .5rem; }
.deal-pros li, .deal-cons li { font-size: .9rem; }
.deal-pros h4, .deal-cons h4 { font-size: .85rem; text-transform: uppercase; letter-spacing: .06em; font-weight: 700; margin-bottom: .65rem; }
.deal-pros h4 { color: #16a34a; }
.deal-cons h4 { color: #dc2626; }

/* ============================================================
   ARCHIVE PAGES
   ============================================================ */
.archive-hero { background: linear-gradient(135deg, var(--hero-from, #075985), var(--hero-to, #0369a1)); padding: 4rem 1.5rem 3.5rem; text-align: center; color: #fff; }
.archive-hero h1 { font-size: clamp(2rem, 4.5vw, 3rem); color: #fff; font-weight: 800; margin-bottom: .75rem; }
.archive-hero p { color: rgba(255,255,255,.8); font-size: 1.0625rem; max-width: 540px; margin: 0 auto; }
.archive-hero__count { display: inline-block; background: rgba(255,255,255,.15); border-radius: 999px; padding: .35rem 1rem; font-size: .82rem; font-weight: 600; margin-bottom: 1rem; color: #bae6fd; }

.archive-filters { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; padding: 1.25rem 0; }
.filter-btn { background: var(--color-bg-alt); border: 1px solid #e2e8f0; border-radius: 999px; padding: .4rem 1rem; font-size: .84rem; font-weight: 500; cursor: pointer; transition: all .15s; color: #475569; }
.filter-btn:hover, .filter-btn.active { background: var(--color-primary); color: #fff; border-color: var(--color-primary); }

/* ============================================================
   SUPPLEMENTARY PAGES (About, Contact, Privacy, Terms)
   ============================================================ */
.page-hero { background: linear-gradient(135deg, var(--hero-from, #075985), var(--hero-to, #0369a1)); padding: 5rem 1.5rem 4rem; text-align: center; color: #fff; }
.page-hero h1 { font-size: clamp(2rem, 5vw, 3.25rem); color: #fff; font-weight: 800; margin-bottom: .75rem; }
.page-hero p { color: rgba(255,255,255,.8); font-size: 1.1rem; max-width: 540px; margin: 0 auto; }

/* About */
.about-team-grid { display: grid; gap: 2rem; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
.team-card { text-align: center; }
.team-card img { width: 100px; height: 100px; border-radius: 50%; object-fit: cover; margin: 0 auto 1rem; border: 3px solid var(--color-primary); }
.team-card h3 { font-size: 1.05rem; color: var(--color-secondary); margin-bottom: .25rem; }
.team-card p { font-size: .875rem; color: #64748b; }
.about-values-grid { display: grid; gap: 1.5rem; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); margin-top: 2rem; }
.value-item { padding: 1.75rem; border-radius: var(--radius); background: #fff; border: 1px solid #f1f5f9; box-shadow: 0 1px 4px rgba(0,0,0,.05); }
.value-icon { font-size: 2rem; margin-bottom: .75rem; }
.value-item h3 { font-size: 1.05rem; color: var(--color-secondary); margin-bottom: .4rem; }
.value-item p { font-size: .875rem; color: #64748b; margin: 0; }

/* Contact */
.contact-grid { display: grid; gap: 3rem; grid-template-columns: 1fr 380px; align-items: start; }
@media (max-width: 880px) { .contact-grid { grid-template-columns: 1fr; } }
.contact-form label { display: block; font-size: .875rem; font-weight: 600; color: var(--color-secondary); margin-bottom: .4rem; }
.contact-form input,
.contact-form textarea,
.contact-form select { width: 100%; padding: .7rem 1rem; border: 1.5px solid #e2e8f0; border-radius: .5rem; font-size: .95rem; color: var(--color-text); background: #fff; transition: border-color .15s, box-shadow .15s; margin-bottom: 1.25rem; }
.contact-form input:focus,
.contact-form textarea:focus { outline: none; border-color: var(--color-primary); box-shadow: 0 0 0 3px rgba(2,132,199,.15); }
.contact-form textarea { min-height: 140px; resize: vertical; }
.contact-info-card { background: var(--color-secondary, #0f172a); color: #e2e8f0; border-radius: var(--radius); padding: 2rem; }
.contact-info-card h3 { color: #fff; margin-bottom: 1.25rem; }
.contact-info-item { display: flex; gap: 1rem; align-items: flex-start; margin-bottom: 1.25rem; }
.contact-info-item-icon { width: 40px; height: 40px; background: rgba(255,255,255,.1); border-radius: .5rem; display: flex; align-items: center; justify-content: center; flex-shrink: 0; font-size: 1.1rem; }
.contact-info-item h4 { font-size: .875rem; color: #f8fafc; margin-bottom: .2rem; }
.contact-info-item p { font-size: .84rem; color: #94a3b8; margin: 0; }

/* Privacy / Terms */
.legal-content { max-width: 780px; margin: 0 auto; }
.legal-toc { background: #f8fafc; border-radius: var(--radius); padding: 1.5rem 2rem; margin-bottom: 2.5rem; border: 1px solid #e2e8f0; }
.legal-toc h3 { font-size: .9rem; font-weight: 700; margin-bottom: .75rem; text-transform: uppercase; letter-spacing: .06em; color: var(--color-secondary); }
.legal-toc ol { margin-left: 1.25rem; }
.legal-toc ol li { font-size: .875rem; margin-bottom: .35rem; }
.legal-toc ol li a { color: var(--color-primary); }
.legal-section { margin-bottom: 2.5rem; padding-bottom: 2.5rem; border-bottom: 1px solid #e5e7eb; }
.legal-section:last-child { border-bottom: none; }
.legal-section h2 { font-size: 1.35rem; color: var(--color-secondary); margin-bottom: 1rem; padding-top: .5rem; }
.legal-section p { color: #475569; font-size: .95rem; line-height: 1.8; margin-bottom: .875rem; }
.legal-section ul { margin: 0 0 .875rem 1.5rem; color: #475569; font-size: .95rem; }
.legal-section ul li { margin-bottom: .4rem; }

/* ============================================================
   PAGINATION
   ============================================================ */
.pagination { display: flex; gap: .4rem; justify-content: center; padding: 3rem 0 1rem; flex-wrap: wrap; }
.pagination .page-numbers {
    display: inline-flex; align-items: center; justify-content: center;
    min-width: 2.4rem; height: 2.4rem; padding: 0 .6rem;
    border-radius: .4rem; background: #fff; border: 1px solid #e2e8f0;
    font-size: .9rem; color: var(--color-text); transition: all .15s;
}
.pagination .page-numbers:hover,
.pagination .current { background: var(--color-primary); color: #fff; border-color: var(--color-primary); }
.pagination .dots { background: transparent; border-color: transparent; cursor: default; }

/* ============================================================
   NOTICE / ALERT BOXES
   ============================================================ */
.notice { border-radius: var(--radius); padding: 1rem 1.25rem; margin: 1.5rem 0; font-size: .9rem; display: flex; gap: .75rem; align-items: flex-start; }
.notice-info    { background: #eff6ff; border-left: 4px solid #3b82f6; color: #1e3a5f; }
.notice-success { background: #f0fdf4; border-left: 4px solid #22c55e; color: #14532d; }
.notice-warning { background: #fffbeb; border-left: 4px solid #f59e0b; color: #78350f; }
.notice-error   { background: #fef2f2; border-left: 4px solid #ef4444; color: #7f1d1d; }
.notice-icon { font-size: 1.1rem; flex-shrink: 0; margin-top: .05rem; }

/* ============================================================
   404
   ============================================================ */
.error-404 { text-align: center; padding: 7rem 1.5rem; }
.error-404 .big-num { font-size: clamp(6rem, 20vw, 12rem); font-weight: 900; color: var(--color-primary); opacity: .15; line-height: 1; display: block; }
.error-404 h1 { font-size: clamp(1.5rem, 3vw, 2.25rem); margin-bottom: .75rem; }
.error-404 p { color: #64748b; margin-bottom: 2rem; max-width: 440px; margin-left: auto; margin-right: auto; }

/* ============================================================
   SEARCH FORM
   ============================================================ */
.search-form { display: flex; gap: .5rem; max-width: 480px; margin: 1.5rem auto 0; }
.search-form input[type="search"] { flex: 1; padding: .7rem 1.1rem; border: 2px solid rgba(255,255,255,.25); border-radius: .5rem; background: rgba(255,255,255,.12); color: #fff; font-size: .95rem; }
.search-form input[type="search"]::placeholder { color: rgba(255,255,255,.55); }
.search-form input[type="search"]:focus { outline: none; border-color: rgba(255,255,255,.6); background: rgba(255,255,255,.18); }
.search-form button { background: var(--color-accent, #f59e0b); color: #000; border: none; padding: .7rem 1.25rem; border-radius: .5rem; font-weight: 700; cursor: pointer; transition: opacity .15s; }
.search-form button:hover { opacity: .9; }

/* ============================================================
   UTILITY
   ============================================================ */
.text-center { text-align: center; }
.text-muted  { color: #64748b; }
.mt-1 { margin-top: .5rem; } .mt-2 { margin-top: 1rem; } .mt-3 { margin-top: 1.5rem; } .mt-4 { margin-top: 2rem; }
.mb-1 { margin-bottom: .5rem; } .mb-2 { margin-bottom: 1rem; } .mb-3 { margin-bottom: 1.5rem; } .mb-4 { margin-bottom: 2rem; }
.screen-reader-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; }
:focus-visible { outline: 2px solid var(--color-primary); outline-offset: 2px; }
