/* ============================================
   overtimepaycalc — Advanced Modern Theme
   ============================================ */

:root {
    --primary: #2563eb;
    --primary-dark: #1d4ed8;
    --primary-light: #dbeafe;
    --accent: #f59e0b;
    --accent-soft: #fbbf24;
    --success: #10b981;
    --purple: #7c3aed;
    --cyan: #06b6d4;
    --text-dark: #0f172a;
    --text-body: #334155;
    --text-muted: #64748b;
    --white: #ffffff;
    --light-bg: #f8fafc;
    /* Header & banner dark (contrasts with blue logo) */
    --header-dark: #0f172a;
    --header-dark-mid: #1e293b;
    --banner-dark: #0f172a;
    --card-shadow: 0 4px 6px -1px rgba(0,0,0,.08), 0 2px 4px -2px rgba(0,0,0,.06);
    --card-shadow-lg: 0 25px 50px -12px rgba(0,0,0,.12);
    --radius: 12px;
    --radius-lg: 20px;
    --transition: .25s ease;
}

*,*::before,*::after { margin:0; padding:0; box-sizing:border-box; }
html { scroll-behavior:smooth; }
html,body { overflow-x:clip; }

body {
    font-family: 'Inter', 'Segoe UI', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
    color: var(--text-body);
    line-height: 1.6;
    background: var(--light-bg);
}

img,svg,video,canvas,iframe { max-width:100%; height:auto; }

.container { max-width:1200px; margin:0 auto; padding:0 1.5rem; }
.container-narrow { max-width:780px; margin:0 auto; }

/* ============ HEADER ============ */
.header {
    background: linear-gradient(90deg, var(--header-dark) 0%, var(--header-dark-mid) 50%, #334155 100%);
    color: var(--white);
    padding: .75rem 1.5rem;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 16px rgba(15,23,42,.4);
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    display: flex;
    align-items: center;
    gap: .5rem;
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--white);
    text-decoration: none;
    letter-spacing: -.02em;
}

.logo-img {
    height: 36px;
    width: auto;
    max-width: 220px;
    object-fit: contain;
    flex-shrink: 0;
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 1.25rem;
}

.main-nav a {
    color: rgba(255,255,255,.95);
    text-decoration: none;
    font-weight: 500;
    font-size: .95rem;
    transition: color var(--transition);
}
.main-nav a:hover { color: var(--accent-soft); }

/* Mobile menu */
.mobile-menu-btn {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: .5rem;
}
.mobile-menu-btn span { display:block; width:24px; height:3px; background:var(--white); border-radius:2px; transition:var(--transition); }
.mobile-menu-btn.active span:nth-child(1) { transform:rotate(45deg) translate(6px,6px); }
.mobile-menu-btn.active span:nth-child(2) { opacity:0; }
.mobile-menu-btn.active span:nth-child(3) { transform:rotate(-45deg) translate(6px,-6px); }

/* ============ HERO ============ */
.hero {
    position: relative;
    color: var(--white);
    padding: clamp(4rem,8vw,7rem) 2rem clamp(5rem,10vw,8rem);
    overflow: hidden;
    min-height: 540px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.hero-bg-animated {
    position: absolute;
    inset: 0;
    background: linear-gradient(160deg, var(--banner-dark) 0%, var(--header-dark-mid) 25%, #1e3a8a 50%, var(--primary) 75%, #6366f1 100%);
    background-size: 400% 400%;
    animation: gradientShift 10s ease infinite;
}

.hero-bg-shapes { position:absolute; inset:0; pointer-events:none; }

.shape { position:absolute; border-radius:50%; background:rgba(255,255,255,.06); }
.shape-1 { width:350px; height:350px; top:-120px; right:-80px; animation:float 6s ease-in-out infinite; }
.shape-2 { width:220px; height:220px; bottom:-60px; left:-60px; animation:float 8s ease-in-out infinite reverse; }
.shape-3 { width:120px; height:120px; top:40%; left:15%; animation:float 5s ease-in-out infinite 1s; }
.shape-4 { width:80px; height:80px; top:20%; right:25%; animation:float 7s ease-in-out infinite .5s; }
.shape-5 { width:180px; height:180px; bottom:20%; right:20%; animation:float 6.5s ease-in-out infinite 2s; }

@keyframes gradientShift { 0%,100%{background-position:0% 50%} 50%{background-position:100% 50%} }
@keyframes float { 0%,100%{transform:translateY(0) scale(1)} 50%{transform:translateY(-20px) scale(1.05)} }

.hero-grid {
    position: relative;
    z-index: 1;
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 3rem;
    align-items: center;
    text-align: left;
}

.hero-content { max-width:620px; }

.hero-badge {
    display: inline-block;
    background: rgba(255,255,255,.15);
    backdrop-filter: blur(10px);
    padding: .35rem 1.1rem;
    border-radius: 2rem;
    font-size: .85rem;
    font-weight: 600;
    margin-bottom: 1.25rem;
    border: 1px solid rgba(255,255,255,.25);
}

.hero-title {
    font-size: clamp(2.25rem, 5vw, 3.25rem);
    margin-bottom: 1rem;
    font-weight: 800;
    line-height: 1.12;
    letter-spacing: -.03em;
}

.hero-tagline {
    font-size: clamp(1rem, 2vw, 1.2rem);
    opacity: .93;
    margin-bottom: 2rem;
    line-height: 1.65;
    max-width: 520px;
}

.hero-actions { display:flex; gap:1rem; flex-wrap:wrap; }

.hero-cta {
    display: inline-block;
    background: var(--accent);
    color: #1a1a2e;
    padding: .85rem 2rem;
    border-radius: 12px;
    font-weight: 700;
    font-size: 1rem;
    text-decoration: none;
    transition: all .3s ease;
    box-shadow: 0 4px 20px rgba(245,158,11,.35);
}
.hero-cta:hover { background:var(--accent-soft); transform:translateY(-3px); box-shadow:0 8px 30px rgba(245,158,11,.5); }

.hero-cta-outline {
    display: inline-block;
    padding: .85rem 2rem;
    border-radius: 12px;
    font-weight: 600;
    font-size: 1rem;
    text-decoration: none;
    color: var(--white);
    border: 2px solid rgba(255,255,255,.4);
    background: rgba(255,255,255,.08);
    backdrop-filter: blur(6px);
    transition: all .3s ease;
}
.hero-cta-outline:hover { background:rgba(255,255,255,.2); border-color:var(--white); }

.hero-visual { display:flex; justify-content:center; align-items:center; }

.hero-card-stack { display:flex; flex-direction:column; gap:1rem; width:100%; max-width:280px; }

.hero-card {
    background: rgba(255,255,255,.12);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255,255,255,.2);
    padding: 2rem 1.5rem;
    border-radius: 20px;
    text-align: center;
    transition: transform .4s ease;
}
.hero-card:hover { transform:scale(1.03); }

.hero-card-main { background:rgba(255,255,255,.18); }

.hero-card-value { display:block; font-size:2.75rem; font-weight:800; line-height:1; margin-bottom:.25rem; }
.hero-card-sub .hero-card-value { font-size:2rem; }
.hero-card-label { font-size:.85rem; opacity:.9; }

.hero-scroll { position:absolute; bottom:1.5rem; left:50%; transform:translateX(-50%); z-index:2; }
.scroll-indicator { display:block; width:24px; height:40px; border:2px solid rgba(255,255,255,.4); border-radius:12px; position:relative; animation:scrollBounce 2s ease-in-out infinite; }
.scroll-indicator::after { content:''; position:absolute; top:8px; left:50%; transform:translateX(-50%); width:4px; height:8px; background:rgba(255,255,255,.7); border-radius:2px; }
@keyframes scrollBounce { 0%,100%{transform:translateX(-50%) translateY(0)} 50%{transform:translateX(-50%) translateY(8px)} }

.animate-fade-in { animation:fadeInUp .8s ease forwards; }
.animate-slide-up { animation:fadeInUp .8s ease .2s forwards; opacity:0; }
.animate-fade-in-delay { animation:fadeInUp .8s ease .4s forwards; opacity:0; }
.animate-pulse { animation:fadeInUp .8s ease .6s forwards; opacity:0; }
.animate-float { animation:fadeInRight 1s ease .4s forwards; opacity:0; }

@keyframes fadeInUp { from{opacity:0; transform:translateY(24px)} to{opacity:1; transform:translateY(0)} }
@keyframes fadeInRight { from{opacity:0; transform:translateX(30px)} to{opacity:1; transform:translateX(0)} }

/* ============ TRUST BAR ============ */
.trust-bar {
    background: var(--white);
    border-bottom: 1px solid #e2e8f0;
    padding: 1rem 1.5rem;
    position: relative;
    z-index: 2;
    box-shadow: 0 4px 16px rgba(0,0,0,.04);
}

.trust-bar-inner {
    display: flex;
    justify-content: center;
    gap: clamp(1.5rem, 4vw, 3.5rem);
    flex-wrap: wrap;
}

.trust-item {
    display: flex;
    align-items: center;
    gap: .5rem;
    font-weight: 600;
    font-size: .88rem;
    color: var(--text-dark);
    white-space: nowrap;
}

.trust-item svg {
    width: 20px;
    height: 20px;
    color: var(--primary);
    flex-shrink: 0;
}

/* ============ SECTION SHARED ============ */
.section-badge {
    display: inline-block;
    background: var(--primary-light);
    color: var(--primary);
    padding: .3rem 1rem;
    border-radius: 2rem;
    font-size: .8rem;
    font-weight: 700;
    letter-spacing: .04em;
    text-transform: uppercase;
    margin-bottom: .75rem;
}

.section-title {
    text-align: center;
    color: var(--text-dark);
    font-size: clamp(1.5rem, 3vw, 2.15rem);
    margin-bottom: .75rem;
    font-weight: 800;
    letter-spacing: -.02em;
}

.section-title-left {
    color: var(--text-dark);
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 800;
    letter-spacing: -.02em;
    margin-bottom: .75rem;
}

/* ============ CALCULATOR ============ */
.section-calculator {
    padding: clamp(3rem,6vw,5.5rem) 1.5rem;
    background: linear-gradient(180deg, #f0f5ff 0%, var(--light-bg) 100%);
}

.calc-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(2rem, 4vw, 3.5rem);
    align-items: start;
}

.calc-info { padding-top: 1rem; }

.calc-info p {
    font-size: 1.05rem;
    color: var(--text-body);
    line-height: 1.75;
    margin-bottom: 2rem;
}

.calc-how { display:flex; flex-direction:column; gap:1rem; }

.calc-how-step {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: var(--white);
    padding: .9rem 1.25rem;
    border-radius: 14px;
    box-shadow: 0 2px 12px rgba(37,99,235,.06);
    border: 1px solid rgba(37,99,235,.08);
    font-weight: 600;
    color: var(--text-dark);
    font-size: .95rem;
    transition: transform .25s ease, box-shadow .25s ease;
}
.calc-how-step:hover { transform:translateX(6px); box-shadow:0 6px 20px rgba(37,99,235,.1); }

.step-num {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: linear-gradient(135deg, var(--primary), var(--purple));
    color: var(--white);
    font-weight: 800;
    font-size: .95rem;
    flex-shrink: 0;
}

.calculator-card {
    background: var(--white);
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(37,99,235,.12);
    border: 1px solid rgba(37,99,235,.1);
}

.calculator-header {
    background: linear-gradient(135deg, var(--primary), #4f46e5);
    color: var(--white);
    padding: 2rem 2.25rem;
    text-align: center;
}
.calculator-header h2 { font-size:1.4rem; margin-bottom:.35rem; font-weight:700; }
.calculator-header p { opacity:.92; font-size:.9rem; }

.calculator-body { padding: 2.25rem; }

.calc-inputs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.25rem;
    margin-bottom: 1.25rem;
}

.calc-group { display:flex; flex-direction:column; gap:.4rem; }
.calc-group label { font-size:.88rem; font-weight:600; color:var(--text-dark); }
.calc-group input, .calc-group select {
    padding: .8rem 1rem;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    font-size: 1rem;
    font-family: inherit;
    transition: all .2s ease;
    background: var(--light-bg);
}
.calc-group input:focus, .calc-group select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(37,99,235,.08);
    background: var(--white);
}

.calc-btn {
    width: 100%;
    padding: 1rem 2rem;
    background: linear-gradient(135deg, var(--primary), #4f46e5);
    color: var(--white);
    border: none;
    border-radius: 12px;
    font-size: 1.05rem;
    font-weight: 700;
    cursor: pointer;
    transition: all .3s ease;
    margin-bottom: 1.25rem;
}
.calc-btn:hover { transform:translateY(-2px); box-shadow:0 10px 25px rgba(37,99,235,.3); }

.calc-results {
    background: linear-gradient(135deg, #f0f5ff, #f1f5f9);
    border-radius: 16px;
    padding: 1.25rem;
    opacity: 0;
    max-height: 0;
    overflow: hidden;
    transition: all .4s ease;
}
.calc-results.show { opacity:1; max-height:300px; }

.result-row { display:flex; justify-content:space-between; align-items:center; padding:.65rem 0; border-bottom:1px solid #e2e8f0; }
.result-row:last-child { border-bottom:none; }
.result-total { margin-top:.4rem; padding-top:.85rem; border-top:2px solid var(--primary); }
.result-total .result-value { font-size:1.4rem; font-weight:800; color:var(--primary); }
.result-label { font-weight:600; color:var(--text-dark); font-size:.92rem; }
.result-value { font-weight:700; color:var(--text-dark); }

/* ============ FEATURES ============ */
.section-features {
    padding: clamp(3.5rem,6vw,5.5rem) 1.5rem;
    background: var(--white);
    text-align: center;
}

.section-features .section-title { margin-bottom:2.5rem; }

.features-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
}

.feature-card {
    background: var(--light-bg);
    padding: 2.25rem 1.5rem;
    border-radius: 20px;
    text-align: center;
    transition: all .4s cubic-bezier(.4,0,.2,1);
    border: 1px solid transparent;
    position: relative;
}
.feature-card::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 20px;
    padding: 2px;
    background: linear-gradient(135deg, rgba(37,99,235,.15), rgba(124,58,237,.15));
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0;
    transition: opacity .4s ease;
}
.feature-card:hover::before { opacity:1; }
.feature-card:hover { transform:translateY(-6px); box-shadow:0 20px 40px rgba(37,99,235,.1); }

.feature-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    margin: 0 auto 1.25rem;
    background: linear-gradient(135deg, rgba(37,99,235,.1), rgba(99,102,241,.12));
    border-radius: 14px;
    color: var(--primary);
}
.feature-icon svg { width:26px; height:26px; }

.feature-card h3 { color:var(--text-dark); font-size:1.1rem; margin-bottom:.5rem; font-weight:700; }
.feature-card p { color:var(--text-muted); font-size:.9rem; line-height:1.6; }

/* ============ EXPLAINER ============ */
.section-explainer {
    padding: clamp(3.5rem,6vw,5.5rem) 1.5rem;
    background: linear-gradient(180deg, var(--light-bg) 0%, #eef2ff 100%);
}

.explainer-row {
    display: grid;
    grid-template-columns: 380px 1fr;
    gap: clamp(2rem, 4vw, 4rem);
    align-items: center;
    margin-bottom: clamp(3rem,5vw,4.5rem);
}
.explainer-row:last-child { margin-bottom:0; }

.explainer-row-reverse { grid-template-columns:1fr 380px; }
.explainer-row-reverse .explainer-visual { order:2; }
.explainer-row-reverse .explainer-text { order:1; }

.explainer-visual { display:flex; justify-content:center; }

.explainer-card {
    width: 100%;
    max-width: 320px;
    padding: 3rem 2rem;
    border-radius: 24px;
    text-align: center;
    position: relative;
    overflow: hidden;
}
.explainer-card::after {
    content: '';
    position: absolute;
    width: 140px;
    height: 140px;
    border-radius: 50%;
    background: rgba(255,255,255,.1);
    top: -30px;
    right: -30px;
}

.explainer-card-blue {
    background: linear-gradient(135deg, var(--primary), #4f46e5);
    color: var(--white);
    box-shadow: 0 20px 50px rgba(37,99,235,.25);
}
.explainer-card-amber {
    background: linear-gradient(135deg, var(--accent), #f97316);
    color: var(--white);
    box-shadow: 0 20px 50px rgba(245,158,11,.25);
}

.explainer-big { display:block; font-size:3rem; font-weight:800; line-height:1; margin-bottom:.5rem; }
.explainer-small { font-size:.95rem; opacity:.92; }

.explainer-text h2 {
    color: var(--text-dark);
    font-size: clamp(1.35rem, 2.5vw, 1.75rem);
    margin-bottom: 1rem;
    font-weight: 800;
}
.explainer-text p { color:var(--text-body); line-height:1.75; margin-bottom:1rem; font-size:1.02rem; }
.explainer-text p:last-child { margin-bottom:0; }

/* ============ STATS ============ */
.section-stats {
    padding: clamp(2.5rem,5vw,4rem) 1.5rem;
    background: linear-gradient(135deg, var(--primary) 0%, #4f46e5 50%, var(--purple) 100%);
    color: var(--white);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    text-align: center;
}

.stat-item { padding:1.25rem; transition:transform .3s ease; }
.stat-item:hover { transform:translateY(-5px); }
.stat-value { display:block; font-size:clamp(2rem,4vw,3rem); font-weight:800; line-height:1; margin-bottom:.25rem; }
.stat-label { font-size:.92rem; opacity:.92; }

/* ============ CONTENT / SEO TEXT ============ */
.section-content-seo {
    padding: clamp(3rem,5vw,5rem) 1.5rem;
    background: var(--white);
}

.section-content-seo h2 {
    color: var(--text-dark);
    font-size: clamp(1.4rem, 2.5vw, 1.85rem);
    font-weight: 800;
    margin-bottom: 1.5rem;
    text-align: center;
    letter-spacing: -.02em;
}

.section-content-seo p {
    color: var(--text-body);
    font-size: 1.02rem;
    line-height: 1.85;
    margin-bottom: 1.25rem;
}
.section-content-seo p:last-child { margin-bottom:0; }

/* ============ CTA BANNER ============ */
.section-cta-banner {
    padding: clamp(2.5rem,5vw,4rem) 1.5rem;
    background: linear-gradient(180deg, var(--light-bg) 0%, #eef2ff 100%);
}

.cta-banner-inner {
    max-width: 900px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    background: linear-gradient(135deg, var(--primary), #4f46e5, var(--purple));
    color: var(--white);
    padding: clamp(2rem, 4vw, 3rem) clamp(2rem, 4vw, 3.5rem);
    border-radius: 24px;
    box-shadow: 0 20px 60px rgba(37,99,235,.2);
    position: relative;
    overflow: hidden;
}
.cta-banner-inner::after {
    content: '';
    position: absolute;
    width: 300px;
    height: 300px;
    background: rgba(255,255,255,.06);
    border-radius: 50%;
    top: -100px;
    right: -60px;
    pointer-events: none;
}

.cta-banner-text h2 { font-size:clamp(1.35rem,3vw,1.75rem); font-weight:800; margin-bottom:.5rem; }
.cta-banner-text p { opacity:.92; font-size:1rem; }

.cta-banner-btn {
    display: inline-block;
    background: var(--accent);
    color: #1a1a2e;
    padding: .9rem 2.25rem;
    border-radius: 12px;
    font-weight: 700;
    font-size: 1rem;
    text-decoration: none;
    transition: all .3s ease;
    white-space: nowrap;
    flex-shrink: 0;
    box-shadow: 0 4px 16px rgba(245,158,11,.3);
}
.cta-banner-btn:hover { background:var(--accent-soft); transform:translateY(-2px); box-shadow:0 8px 24px rgba(245,158,11,.45); }

/* ============ FOOTER ============ */
.footer {
    margin-top: 0;
    color: var(--white);
    position: relative;
    overflow: hidden;
}

.footer-container { max-width:1200px; margin:0 auto; padding:0 1.5rem; }

/* CTA Strip at the top of footer */
.footer-cta-strip {
    background: linear-gradient(135deg, var(--primary) 0%, #4f46e5 50%, var(--purple) 100%);
    padding: clamp(1.5rem,3vw,2.5rem) 1.5rem;
    position: relative;
    overflow: hidden;
}
.footer-cta-strip::after {
    content: '';
    position: absolute;
    width: 350px;
    height: 350px;
    background: rgba(255,255,255,.05);
    border-radius: 50%;
    top: -120px;
    right: -60px;
    pointer-events: none;
}
.footer-cta-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    position: relative;
    z-index: 1;
}
.footer-cta-text h3 { font-size:clamp(1.1rem,2.5vw,1.5rem); font-weight:800; margin-bottom:.25rem; }
.footer-cta-text p { opacity:.9; font-size:.95rem; }
.footer-cta-btn {
    display: inline-block;
    background: var(--accent);
    color: #1a1a2e;
    padding: .8rem 2rem;
    border-radius: 12px;
    font-weight: 700;
    font-size: .95rem;
    text-decoration: none;
    white-space: nowrap;
    flex-shrink: 0;
    transition: all .3s ease;
    box-shadow: 0 4px 16px rgba(245,158,11,.3);
}
.footer-cta-btn:hover { background:var(--accent-soft); transform:translateY(-2px); box-shadow:0 8px 24px rgba(245,158,11,.45); }

/* Main footer body */
.footer-main {
    background: linear-gradient(180deg, #0f172a 0%, #1e293b 100%);
    padding: clamp(2.5rem,4vw,3.5rem) 0;
    position: relative;
}
.footer-main::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(99,102,241,.4), rgba(34,211,238,.3), transparent);
}

.footer-top-row {
    display: grid;
    grid-template-columns: 1.3fr 2fr;
    gap: clamp(2rem,4vw,4rem);
    align-items: start;
}

/* Brand column */
.footer-brand-col { max-width:380px; }

.footer-logo {
    display: inline-flex;
    align-items: center;
    gap: .6rem;
    text-decoration: none;
    margin-bottom: 1rem;
}
.footer-logo-img { height:36px; width:auto; max-width:220px; object-fit:contain; flex-shrink:0; }

.footer-brand-desc {
    color: rgba(255,255,255,.7);
    font-size: .9rem;
    line-height: 1.7;
    margin-bottom: 1.25rem;
}

.footer-social { display:flex; gap:.6rem; flex-wrap:wrap; }
.footer-social .social-icon {
    width: 40px; height: 40px;
    border-radius: 12px;
    display: flex; align-items: center; justify-content: center;
    color: var(--white);
    text-decoration: none;
    transition: all .25s ease;
    background: rgba(255,255,255,.06);
    border: 1px solid rgba(255,255,255,.1);
}
.footer-social .social-icon svg { width:18px; height:18px; }
.footer-social .social-icon:hover {
    transform: translateY(-3px);
    background: linear-gradient(135deg,#3b82f6,#6366f1);
    border-color: transparent;
    box-shadow: 0 4px 16px rgba(99,102,241,.3);
}

/* Links columns */
.footer-links-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: clamp(1rem,2vw,2rem);
}

.footer-links-col h4 {
    font-size: .85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .08em;
    margin-bottom: 1rem;
    color: var(--white);
    position: relative;
    padding-bottom: .6rem;
}
.footer-links-col h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 28px;
    height: 2px;
    border-radius: 2px;
}
.footer-links-col:nth-child(1) h4::after { background: #22d3ee; }
.footer-links-col:nth-child(2) h4::after { background: #a78bfa; }
.footer-links-col:nth-child(3) h4::after { background: #f472b6; }

.footer-links-col ul { list-style:none; }
.footer-links-col ul li { margin-bottom:.6rem; }
.footer-links-col a {
    color: rgba(255,255,255,.7);
    text-decoration: none;
    font-size: .9rem;
    transition: color .2s ease, padding-left .2s ease;
    display: inline-block;
}
.footer-links-col a:hover { color:#22d3ee; padding-left:4px; }

/* Footer bottom */
.footer-bottom {
    background: #0b1222;
    padding: 1.1rem 0;
    border-top: 1px solid rgba(255,255,255,.06);
}
.footer-bottom .footer-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: .75rem;
    flex-wrap: wrap;
}
.footer-bottom p { color:rgba(255,255,255,.5); font-size:.8rem; line-height:1.5; margin:0; }
.footer-disclaimer { font-style:italic; }

/* Footer Responsive */
@media (max-width:992px) {
    .footer-top-row { grid-template-columns:1fr; gap:2rem; }
    .footer-brand-col { max-width:100%; text-align:center; }
    .footer-social { justify-content:center; }
    .footer-cta-inner { flex-direction:column; text-align:center; }
}

@media (max-width:768px) {
    .footer-links-row {
        grid-template-columns: 1fr 1fr !important;
        gap: 1.5rem;
    }
    .footer-links-col:last-child {
        grid-column: 1 / -1;
    }
    .footer-links-col {
        text-align: left;
    }
    .footer-links-col h4 { font-size: .82rem; }
    .footer-links-col a { font-size: .85rem; }
    .footer-bottom .footer-container { flex-direction:column; text-align:center; }
    .footer-cta-strip { padding: 1.25rem 1rem; }
    .footer-cta-text h3 { font-size: 1.05rem; }
}

@media (max-width:360px) {
    .footer-links-row {
        grid-template-columns: 1fr !important;
    }
    .footer-links-col:last-child {
        grid-column: auto;
    }
}

/* ============ INNER PAGES ============ */
.page-main { min-height:60vh; }

.page-hero {
    background: linear-gradient(135deg, var(--banner-dark) 0%, var(--header-dark-mid) 35%, var(--primary) 65%, #6366f1 100%);
    color: var(--white);
    padding: 3rem 1.5rem;
    text-align: center;
}
.page-hero-badge {
    display: inline-block;
    background: rgba(255,255,255,.2);
    padding: .35rem 1rem;
    border-radius: 2rem;
    font-size: .85rem;
    font-weight: 600;
    margin-bottom: 1rem;
}
.page-hero h1 { font-size:clamp(1.75rem,4vw,2.5rem); margin-bottom:.5rem; font-weight:700; }
.page-hero p { opacity:.95; font-size:1.05rem; }

.page-content {
    padding: clamp(2rem,3vw,3rem) 1.5rem clamp(2.5rem,4vw,4rem);
    background: linear-gradient(180deg, #f8fafc 0%, #f1f5f9 100%);
}
.page-content h2 { color:var(--primary); font-size:1.35rem; margin-top:2rem; margin-bottom:.75rem; }
.page-content h2:first-of-type { margin-top:0; }
.page-content p { color:var(--text-dark); line-height:1.8; margin-bottom:1rem; }
.page-content a { color:var(--primary); text-decoration:none; font-weight:500; }
.page-content a:hover { text-decoration:underline; }

/* Contact form */
.contact-form-wrap { margin:2rem 0; background:var(--white); padding:2rem; border-radius:16px; box-shadow:0 4px 20px rgba(0,0,0,.06); border:1px solid rgba(15,23,42,.06); }
.contact-form .form-group { margin-bottom:1.25rem; }
.contact-form label { display:block; font-weight:600; color:var(--text-dark); margin-bottom:.4rem; font-size:.95rem; }
.contact-form input, .contact-form textarea { width:100%; padding:.75rem 1rem; border:2px solid #e2e8f0; border-radius:10px; font-size:1rem; font-family:inherit; transition:border-color .2s ease; }
.contact-form input:focus, .contact-form textarea:focus { outline:none; border-color:var(--primary); }
.contact-submit { width:100%; padding:1rem; background:linear-gradient(135deg,var(--primary),#4f46e5); color:var(--white); border:none; border-radius:10px; font-size:1.05rem; font-weight:700; cursor:pointer; transition:all .2s ease; }
.contact-submit:hover { opacity:.95; transform:translateY(-1px); }
.contact-note { margin-top:1.5rem; font-size:.9rem; color:var(--text-muted); }

/* ============ ABOUT PAGE ============ */
.about-intro { padding:2rem 1.5rem; background:var(--white); }
.about-intro-lead { font-size:1.15rem; line-height:1.8; color:var(--text-dark); text-align:center; max-width:640px; margin:0 auto; }
.about-values { padding:3rem 1.5rem; background:linear-gradient(180deg,#f8fafc 0%,#f1f5f9 100%); }
.about-section-title { text-align:center; color:var(--primary); font-size:1.5rem; margin-bottom:2rem; }
.about-values-grid { display:grid; grid-template-columns:repeat(3,1fr); gap:1.5rem; max-width:1000px; margin:0 auto; }
.about-value-card { background:var(--white); padding:2rem; border-radius:16px; text-align:center; box-shadow:0 4px 20px rgba(0,0,0,.06); transition:transform .3s ease, box-shadow .3s ease; }
.about-value-card:hover { transform:translateY(-4px); box-shadow:0 12px 30px rgba(37,99,235,.12); }
.about-value-icon { display:flex; align-items:center; justify-content:center; width:52px; height:52px; margin:0 auto 1rem; background:linear-gradient(135deg,rgba(37,99,235,.1),rgba(99,102,241,.12)); border-radius:14px; color:var(--primary); }
.about-value-icon svg { width:26px; height:26px; }
.about-value-card h3 { color:var(--primary); font-size:1.2rem; margin-bottom:.5rem; }
.about-value-card p { font-size:.9rem; color:var(--text-muted); line-height:1.6; }
.about-content { padding:3rem 1.5rem; background:var(--white); }
.about-content-grid { display:grid; grid-template-columns:repeat(2,1fr); gap:2rem; max-width:1000px; margin:0 auto; }
.about-content-block { background:#f8fafc; padding:2rem; border-radius:16px; border:1px solid rgba(15,23,42,.06); }
.about-content-block h2 { color:var(--primary); font-size:1.2rem; margin-bottom:1rem; }
.about-content-block p { font-size:.95rem; color:var(--text-dark); line-height:1.7; }
.about-content-full { grid-column:1/-1; }
.about-stats { padding:3rem 1.5rem; background:linear-gradient(135deg,var(--primary) 0%,#4f46e5 100%); color:var(--white); }
.about-stats-grid { display:flex; justify-content:center; gap:4rem; flex-wrap:wrap; }
.about-stat { text-align:center; }
.about-stat-num { display:block; font-size:2.5rem; font-weight:800; }
.about-stat-label { font-size:.9rem; opacity:.9; }
.about-cta { padding:3rem 1.5rem; background:linear-gradient(180deg,#f1f5f9 0%,#e2e8f0 100%); }
.about-cta-box { max-width:560px; margin:0 auto; background:var(--white); padding:2.5rem; border-radius:20px; text-align:center; box-shadow:0 10px 40px rgba(0,0,0,.08); }
.about-cta-box h2 { color:var(--primary); font-size:1.4rem; margin-bottom:.5rem; }
.about-cta-box p { margin-bottom:1.5rem; color:var(--text-muted); }
.about-cta-btn { display:inline-block; padding:.9rem 2rem; background:linear-gradient(135deg,var(--primary),#4f46e5); color:var(--white); border-radius:12px; font-weight:700; text-decoration:none; transition:all .2s ease; }
.about-cta-btn:hover { transform:translateY(-2px); box-shadow:0 8px 25px rgba(37,99,235,.35); }

/* ============ CONTACT PAGE ============ */
.contact-section { padding:3rem 1.5rem 4rem; background:linear-gradient(180deg,#f8fafc 0%,#f1f5f9 100%); }
.contact-layout { display:grid; grid-template-columns:1fr 1fr; gap:clamp(1.25rem,3vw,2.5rem); align-items:start; max-width:1000px; margin:0 auto 2rem; }
.contact-info h2, .contact-form-wrap h2 { color:var(--primary); font-size:1.35rem; margin-bottom:1rem; }
.contact-info > p { color:var(--text-dark); line-height:1.7; margin-bottom:1.5rem; }
.contact-info-cards { display:flex; flex-direction:column; gap:1rem; }
.contact-info-card { background:var(--white); padding:1.25rem; border-radius:12px; box-shadow:0 2px 12px rgba(0,0,0,.05); border-left:4px solid var(--primary); border:1px solid rgba(15,23,42,.06); border-left:4px solid var(--primary); }
.contact-info-card-note { border-left-color:var(--accent); }
.contact-info-icon { display:flex; align-items:center; justify-content:center; width:40px; height:40px; margin-bottom:.6rem; background:linear-gradient(135deg,rgba(37,99,235,.1),rgba(99,102,241,.12)); border-radius:10px; color:var(--primary); }
.contact-info-icon svg { width:20px; height:20px; }
.contact-info-card h3 { font-size:1rem; color:var(--text-dark); margin-bottom:.35rem; }
.contact-info-card p { font-size:.875rem; color:var(--text-muted); line-height:1.5; margin:0; }
.contact-form-wrap { background:var(--white); padding:2rem; border-radius:20px; box-shadow:0 8px 30px rgba(0,0,0,.08); }
.contact-form-wrap h2 { margin-bottom:1.25rem; }
.contact-section .contact-note { text-align:center; max-width:600px; margin:0 auto; }

/* ============ RESPONSIVE — Tablet ============ */
@media (max-width:1100px) {
    .hero-grid { grid-template-columns:1fr 300px; gap:2rem; }
    .features-grid { grid-template-columns:repeat(2,1fr); }
    .explainer-row { grid-template-columns:1fr; gap:2rem; }
    .explainer-row-reverse { grid-template-columns:1fr; }
    .explainer-row-reverse .explainer-visual { order:0; }
    .explainer-row-reverse .explainer-text { order:0; }
    .explainer-visual { justify-content:center; }
    .explainer-card { max-width:280px; padding:2.5rem 1.5rem; }
    .explainer-text { text-align:center; }
    .explainer-text .section-badge { display:inline-block; }
}

@media (max-width:992px) {
    .calc-layout { grid-template-columns:1fr; }
    .calc-info { text-align:center; }
    .calc-how-step { justify-content:center; }
    .calculator-card { max-width:560px; margin:0 auto; }
    .stats-grid { grid-template-columns:repeat(2,1fr); }
    .about-values-grid { grid-template-columns:1fr; max-width:420px; }
    .about-content-grid { grid-template-columns:1fr; }
    .contact-layout { grid-template-columns:1fr; }
}

/* ============ RESPONSIVE — Mobile ============ */
@media (max-width:768px) {
    .mobile-menu-btn { display:flex; }

    .main-nav {
        position: fixed;
        top: 58px;
        left: 0; right: 0;
        background: linear-gradient(135deg, var(--primary), #4f46e5);
        flex-direction: column;
        padding: 1.5rem 2rem 2rem;
        gap: .75rem;
        transform: translateY(-150%);
        opacity: 0;
        visibility: hidden;
        transition: all .35s cubic-bezier(.4,0,.2,1);
        box-shadow: 0 16px 40px rgba(0,0,0,.2);
        z-index: 999;
    }
    .main-nav a {
        padding: .6rem .75rem;
        border-radius: 10px;
        transition: background .2s ease;
    }
    .main-nav a:hover { background:rgba(255,255,255,.12); }
    .main-nav.open { transform:translateY(0); opacity:1; visibility:visible; }

    .hero { padding:3rem 1.5rem 4rem; min-height:auto; }
    .hero-grid { grid-template-columns:1fr; text-align:center; }
    .hero-visual { order:-1; }
    .hero-card-stack { max-width:240px; margin:0 auto; }
    .hero-actions { justify-content:center; }
    .hero-tagline { margin-inline:auto; }

    .trust-bar-inner { gap:.75rem; justify-content:center; }
    .trust-item { font-size:.78rem; gap:.35rem; }
    .trust-item svg { width:16px; height:16px; }

    .section-blog-preview { padding-left:1rem; padding-right:1rem; }

    .features-grid { grid-template-columns:1fr; max-width:420px; margin:0 auto; }

    .calc-inputs { grid-template-columns:1fr; }

    .stats-grid { grid-template-columns:1fr 1fr; gap:1rem; }

    .cta-banner-inner { flex-direction:column; text-align:center; }

    .about-values-grid { grid-template-columns:1fr; }
    .about-content-grid { grid-template-columns:1fr; }
    .about-stats-grid { gap:2rem; }
    .about-stat-num { font-size:2rem; }
    .contact-layout { grid-template-columns:1fr; }
}

/* ============ RESPONSIVE — Small Mobile ============ */
@media (max-width:480px) {
    .logo { font-size:1rem; }
    .hero { padding:2.5rem 1rem 3.5rem; }
    .hero-card { padding:1.5rem 1rem; }
    .hero-card-value { font-size:2rem; }
    .hero-card-sub .hero-card-value { font-size:1.5rem; }

    .section-features, .section-explainer, .section-stats, .section-calculator, .section-content-seo, .section-cta-banner { padding-left:1rem; padding-right:1rem; }

    .calculator-body { padding:1.5rem; }
    .calculator-header { padding:1.5rem; }

    .stat-value { font-size:1.75rem; }

    .explainer-big { font-size:2.25rem; }
    .explainer-card { padding:2rem 1.25rem; }

    .cta-banner-inner { padding:1.5rem; border-radius:18px; }

    .footer-cta-strip { padding:1.25rem 1rem; }
    .footer-cta-text h3 { font-size:1rem; }

    .about-intro, .about-values, .about-content, .about-stats, .about-cta { padding-left:1rem; padding-right:1rem; }
    .about-value-card, .about-cta-box { padding:1.5rem; }
    .contact-section { padding-left:1rem; padding-right:1rem; }
    .contact-form-wrap { padding:1.5rem; }
    .section-content-seo .container-narrow { padding:0 .5rem; }

    .blog-page-content { padding-left:1rem; padding-right:1rem; }
    .blog-layout { padding-left:1rem; padding-right:1rem; }
}

@media (max-width:360px) {
    .trust-bar-inner { gap:.5rem; }
    .trust-item span { font-size:.72rem; }
    .hero-actions { flex-direction:column; align-items:center; gap:.75rem; }
    .hero-cta, .hero-cta-outline { width:100%; text-align:center; }
    .stats-grid { grid-template-columns:1fr; }
}

/* ============================================================
   BLOG DETAIL PAGE STYLES
   ============================================================ */

/* Blog Banner */
.blog-banner {
    background: linear-gradient(-45deg, var(--banner-dark), var(--header-dark-mid), var(--primary), #6366f1);
    background-size: 300% 300%;
    animation: gradientShift 10s ease infinite;
    color: var(--white);
    padding: clamp(2.5rem,5vw,4rem) 1.5rem clamp(2rem,4vw,3rem);
    text-align: center;
    position: relative;
    overflow: hidden;
}
.blog-banner::after {
    content: '';
    position: absolute;
    width: 400px;
    height: 400px;
    background: rgba(255,255,255,.04);
    border-radius: 50%;
    top: -150px;
    right: -100px;
    pointer-events: none;
}

.blog-banner-badge {
    display: inline-block;
    background: rgba(255,255,255,.15);
    backdrop-filter: blur(8px);
    padding: .3rem 1rem;
    border-radius: 2rem;
    font-size: .8rem;
    font-weight: 600;
    margin-bottom: 1rem;
    border: 1px solid rgba(255,255,255,.2);
}

.blog-banner h1 {
    font-size: clamp(1.5rem, 3.5vw, 2.25rem);
    font-weight: 800;
    line-height: 1.25;
    max-width: 760px;
    margin: 0 auto .75rem;
    letter-spacing: -.02em;
}

.blog-banner-meta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.25rem;
    font-size: .88rem;
    opacity: .9;
    flex-wrap: wrap;
}
.blog-banner-meta span { display:flex; align-items:center; gap:.35rem; }

.breadcrumb {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: .4rem;
    margin-top: 1rem;
    font-size: .82rem;
    opacity: .85;
}
.breadcrumb a { color:var(--white); text-decoration:none; transition:opacity .2s; }
.breadcrumb a:hover { opacity:1; text-decoration:underline; }
.breadcrumb span { opacity:.7; }

/* Blog Layout — Content + Sidebar */
.blog-layout {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: clamp(1.5rem, 3vw, 2.5rem);
    max-width: 1200px;
    margin: 0 auto;
    padding: clamp(2rem,4vw,3.5rem) 1.5rem clamp(2.5rem,4vw,4rem);
    align-items: start;
}

/* Blog Article */
.blog-article {
    background: var(--white);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 4px 24px rgba(0,0,0,.06);
    border: 1px solid rgba(37,99,235,.06);
}

.blog-featured-img {
    width: 100%;
    height: auto;
    aspect-ratio: 16/9;
    object-fit: cover;
    display: block;
}

.blog-article-body {
    padding: clamp(1.5rem,3vw,2.5rem);
}

.blog-article-body h2 {
    color: var(--text-dark);
    font-size: clamp(1.2rem,2vw,1.5rem);
    font-weight: 700;
    margin: 2rem 0 .75rem;
    letter-spacing: -.01em;
}
.blog-article-body h2:first-child { margin-top:0; }

.blog-article-body h3 {
    color: var(--text-dark);
    font-size: 1.15rem;
    font-weight: 700;
    margin: 1.5rem 0 .6rem;
}

.blog-article-body p {
    color: var(--text-body);
    font-size: 1rem;
    line-height: 1.85;
    margin-bottom: 1rem;
}

.blog-article-body ul,
.blog-article-body ol {
    margin: .75rem 0 1.25rem 1.5rem;
    color: var(--text-body);
    line-height: 1.8;
}
.blog-article-body li { margin-bottom:.4rem; }

.blog-article-body blockquote {
    border-left: 4px solid var(--primary);
    background: var(--primary-light);
    padding: 1rem 1.25rem;
    margin: 1.25rem 0;
    border-radius: 0 12px 12px 0;
    font-style: italic;
    color: var(--text-dark);
}

.blog-article-body strong { color:var(--text-dark); }

.blog-article-body a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 500;
    transition: color .2s;
}
.blog-article-body a:hover { text-decoration:underline; }

/* Info callout box inside blog */
.blog-info-box {
    background: linear-gradient(135deg, #eff6ff, #eef2ff);
    border: 1px solid rgba(37,99,235,.12);
    border-radius: 16px;
    padding: 1.5rem;
    margin: 1.5rem 0;
}
.blog-info-box h4 {
    color: var(--primary);
    font-size: 1rem;
    margin-bottom: .5rem;
    display: flex;
    align-items: center;
    gap: .4rem;
}
.blog-info-box p { margin-bottom:.5rem; font-size:.95rem; }
.blog-info-box p:last-child { margin-bottom:0; }

/* Blog Tags (inside article) */
.blog-article-tags {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem;
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid #e2e8f0;
}
.blog-article-tags a,
.blog-article-tags .tag {
    background: var(--primary-light);
    color: var(--primary);
    padding: .3rem .85rem;
    border-radius: 2rem;
    font-size: .82rem;
    font-weight: 600;
    text-decoration: none;
    transition: all .2s;
    display: inline-block;
}
.blog-article-tags a:hover { background:var(--primary); color:var(--white); }

/* ============ SIDEBAR ============ */
.blog-sidebar {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    position: sticky;
    top: 80px;
}

.sidebar-widget {
    background: var(--white);
    border-radius: 16px;
    padding: 1.5rem;
    box-shadow: 0 4px 18px rgba(0,0,0,.05);
    border: 1px solid rgba(37,99,235,.06);
}

.sidebar-widget-title {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 1rem;
    padding-bottom: .6rem;
    border-bottom: 2px solid var(--primary);
    display: flex;
    align-items: center;
    gap: .4rem;
}

/* Recent Posts Widget */
.recent-posts-list { list-style:none; }
.recent-posts-list li { margin-bottom:.75rem; }
.recent-posts-list li:last-child { margin-bottom:0; }
.recent-posts-list a {
    display: flex;
    align-items: flex-start;
    gap: .6rem;
    color: var(--text-body);
    text-decoration: none;
    font-size: .88rem;
    line-height: 1.45;
    transition: color .2s;
}
.recent-posts-list a:hover { color:var(--primary); }
.recent-posts-list .rp-num {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    background: linear-gradient(135deg, var(--primary), var(--purple));
    color: var(--white);
    border-radius: 8px;
    font-size: .75rem;
    font-weight: 700;
    flex-shrink: 0;
    margin-top: 1px;
}

/* Tags Widget */
.sidebar-tags {
    display: flex;
    flex-wrap: wrap;
    gap: .4rem;
}
.sidebar-tags a,
.sidebar-tags .tag {
    background: var(--light-bg);
    color: var(--text-muted);
    padding: .3rem .75rem;
    border-radius: 2rem;
    font-size: .8rem;
    font-weight: 600;
    text-decoration: none;
    border: 1px solid #e2e8f0;
    transition: all .2s;
    display: inline-block;
}
.sidebar-tags a:hover { background:var(--primary); color:var(--white); border-color:var(--primary); }

/* Info Card Widget */
.sidebar-info-card {
    background: linear-gradient(135deg, var(--primary), #4f46e5);
    color: var(--white);
    border-radius: 16px;
    padding: 1.75rem;
    text-align: center;
    border: none;
}
.sidebar-info-card .sidebar-widget-title {
    color: var(--white);
    border-bottom-color: rgba(255,255,255,.3);
    justify-content: center;
}
.sidebar-info-card p { font-size:.9rem; opacity:.92; line-height:1.6; margin-bottom:1rem; }
.sidebar-info-card .sidebar-cta {
    display: inline-block;
    background: var(--accent);
    color: #1a1a2e;
    padding: .7rem 1.5rem;
    border-radius: 10px;
    font-weight: 700;
    font-size: .9rem;
    text-decoration: none;
    transition: all .25s;
}
.sidebar-info-card .sidebar-cta:hover { background:var(--accent-soft); transform:translateY(-2px); }

/* Sidebar CTA Card */
.sidebar-cta-card {
    background: linear-gradient(135deg, #f97316, var(--accent));
    color: var(--white);
    border-radius: 16px;
    padding: 1.5rem;
    text-align: center;
    border: none;
}
.sidebar-cta-card h4,
.sidebar-cta-card .sidebar-widget-title { font-size:1rem; font-weight:700; margin-bottom:.5rem; color:var(--white); border-bottom-color:rgba(255,255,255,.3); justify-content:center; }
.sidebar-cta-card p { font-size:.88rem; opacity:.92; margin-bottom:1rem; }
.sidebar-cta-card a {
    display: inline-block;
    background: var(--white);
    color: #f97316;
    padding: .6rem 1.25rem;
    border-radius: 10px;
    font-weight: 700;
    font-size: .88rem;
    text-decoration: none;
    transition: all .25s;
}
.sidebar-cta-card a:hover { transform:translateY(-2px); box-shadow:0 4px 12px rgba(0,0,0,.15); }

.sidebar-cta-btn {
    display: inline-block;
    background: var(--white);
    color: #f97316;
    padding: .6rem 1.25rem;
    border-radius: 10px;
    font-weight: 700;
    font-size: .88rem;
    text-decoration: none;
    transition: all .25s;
}
.sidebar-cta-btn:hover { transform:translateY(-2px); box-shadow:0 4px 12px rgba(0,0,0,.15); }

/* Blog Responsive */
@media (max-width:992px) {
    .blog-layout {
        grid-template-columns: 1fr;
    }
    .blog-sidebar {
        position: static;
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
    .sidebar-info-card, .sidebar-cta-card {
        grid-column: 1 / -1;
    }
}

@media (max-width:600px) {
    .blog-sidebar {
        grid-template-columns: 1fr;
    }
    .blog-banner h1 { font-size:1.35rem; }
    .blog-article-body { padding:1.25rem; }
    .blog-article-body h2 { font-size:1.2rem; }
}

/* ============================================================
   BLOG LISTING PAGE — Tabs & Post Cards
   ============================================================ */
.nav-active { color:var(--accent-soft) !important; }

.blog-page-hero {
    background: linear-gradient(-45deg, var(--banner-dark), var(--header-dark-mid), var(--primary), #6366f1);
    background-size: 300% 300%;
    animation: gradientShift 10s ease infinite;
    color: var(--white);
    text-align: center;
    padding: clamp(2.5rem,5vw,4rem) 1.5rem clamp(2rem,4vw,3rem);
}
.blog-page-hero h1 { font-size:clamp(1.75rem,4vw,2.75rem); font-weight:800; margin-bottom:.5rem; letter-spacing:-.02em; }
.blog-page-hero p { opacity:.92; font-size:1.05rem; max-width:540px; margin:0 auto; }

.blog-page-content { padding:clamp(2rem,4vw,3.5rem) 1.5rem clamp(2.5rem,4vw,4rem); background:var(--light-bg); }

/* Tabs */
.blog-tabs {
    display: flex;
    gap: .5rem;
    margin-bottom: 2rem;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding-bottom: .25rem;
}
.blog-tabs::-webkit-scrollbar { display:none; }

.blog-tab {
    padding: .7rem 1.25rem;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    background: var(--white);
    color: var(--text-body);
    font-weight: 600;
    font-size: .9rem;
    cursor: pointer;
    white-space: nowrap;
    transition: all .25s ease;
}
.blog-tab:hover { border-color:var(--primary); color:var(--primary); }
.blog-tab.active {
    background: linear-gradient(135deg, var(--primary), #4f46e5);
    color: var(--white);
    border-color: transparent;
    box-shadow: 0 4px 16px rgba(37,99,235,.25);
}

/* Tab panels */
.blog-tab-panel { display:none; }
.blog-tab-panel.active { display:block; }

/* Post cards grid */
.blog-posts-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.blog-post-card {
    background: var(--white);
    border-radius: 16px;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    box-shadow: 0 2px 12px rgba(0,0,0,.05);
    border: 1px solid rgba(37,99,235,.06);
    transition: all .3s ease;
    display: flex;
    flex-direction: column;
}
.blog-post-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(37,99,235,.12);
    border-color: rgba(37,99,235,.15);
}

.blog-post-card img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    display: block;
}

.blog-post-card-body {
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.blog-post-card-cat {
    display: inline-block;
    background: var(--primary-light);
    color: var(--primary);
    padding: .2rem .65rem;
    border-radius: 2rem;
    font-size: .72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .03em;
    margin-bottom: .6rem;
    align-self: flex-start;
}

.blog-post-card h3 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-dark);
    line-height: 1.4;
    margin-bottom: .5rem;
}

.blog-post-card p {
    font-size: .88rem;
    color: var(--text-muted);
    line-height: 1.55;
    flex: 1;
    margin-bottom: .75rem;
}

.blog-post-card-meta {
    font-size: .78rem;
    color: var(--text-muted);
    opacity: .8;
}

/* Homepage Blog Section */
.section-blog-preview {
    padding: clamp(3rem,5vw,5rem) 1.5rem;
    background: linear-gradient(180deg, #eef2ff 0%, var(--light-bg) 100%);
}
.section-blog-preview .section-title { margin-bottom:.5rem; }
.section-blog-preview .section-subtitle {
    text-align: center;
    color: var(--text-muted);
    font-size: 1.02rem;
    margin-bottom: 2rem;
}

.blog-preview-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.25rem;
    margin-bottom: 2rem;
}

.blog-preview-btn-wrap { text-align:center; }
.blog-preview-btn {
    display: inline-block;
    padding: .85rem 2.5rem;
    background: linear-gradient(135deg, var(--primary), #4f46e5);
    color: var(--white);
    border-radius: 12px;
    font-weight: 700;
    font-size: 1rem;
    text-decoration: none;
    transition: all .3s ease;
    box-shadow: 0 4px 16px rgba(37,99,235,.25);
}
.blog-preview-btn:hover { transform:translateY(-2px); box-shadow:0 8px 24px rgba(37,99,235,.35); }

/* Blog Listing Responsive */
@media (max-width:992px) {
    .blog-posts-grid { grid-template-columns:repeat(2,1fr); }
    .blog-preview-grid { grid-template-columns:repeat(2,1fr); }
}
@media (max-width:600px) {
    .blog-posts-grid { grid-template-columns:1fr; }
    .blog-preview-grid { grid-template-columns:1fr; max-width:400px; margin-inline:auto; }
    .blog-tab { padding:.6rem 1rem; font-size:.82rem; }
}
