/* =========================================================
   Amerieagle Ventures — shared blog-post styles
   Used by every page in /blog/{slug}.html.
   Owns: brand vars, base typography, header, post-hero,
   post-body, callouts, FAQ, in-post CTA, 2-column layout
   with sticky right-rail (TOC + CTA card), related-posts
   grid, bottom CTA, footer.
   ========================================================= */

:root {
    --navy:        #0D1F3C;
    --navy-deep:   #09111F;
    --navy-mid:    #162847;
    --slate:       #1E3A5F;
    --gold:        #B8975A;
    --gold-light:  #D4B483;
    --white:       #FFFFFF;
    --muted:       rgba(255,255,255,0.55);
    --ease:        cubic-bezier(0.22,1,0.36,1);
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    overflow-x: hidden;
    font-family: -apple-system, 'SF Pro Display', 'Inter', 'Helvetica Neue', Arial, sans-serif;
    -webkit-font-smoothing: antialiased;
    color: #1a1a1a;
    margin: 0;
    background: #fff;
}

/* HEADER */
.header-area.header-two-area {
    background: rgba(13,31,60,0.95) !important;
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border-bottom: 1px solid rgba(184,151,90,0.15) !important;
    position: fixed !important; width: 100%; top: 0; z-index: 999;
    transition: box-shadow 0.4s var(--ease); padding: 0 !important;
}
.header-area.header-two-area .header__main {
    height: 76px; display: flex; align-items: center; justify-content: space-between;
}
.header-area .logo { display: flex; align-items: center; gap: 11px; text-decoration: none; }
.header-area .logo img { height: 44px; width: auto; object-fit: contain; }
.ae-brand-name { font-size: 14.5px; font-weight: 700; color: var(--gold); letter-spacing: 0.02em; line-height: 1.2; white-space: nowrap; }
.ae-brand-name span { display: block; font-size: 8.5px; font-weight: 600; letter-spacing: 0.2em; text-transform: uppercase; color: rgba(184,151,90,0.6); margin-top: 2px; }
.main-menu-light nav > ul > li > a {
    color: rgba(200,216,232,0.9) !important;
    font-size: 12px !important; font-weight: 600 !important;
    letter-spacing: 0.07em !important; text-transform: uppercase !important;
    line-height: 76px !important; padding: 0 16px !important;
    transition: color 0.2s !important;
}
.main-menu-light nav > ul > li > a:hover,
.main-menu-light nav > ul > li:hover > a { color: var(--gold) !important; }
.main-menu-light nav ul .sub-menu {
    background: var(--navy) !important; border-top: 2px solid var(--gold) !important;
    border-radius: 0 !important; box-shadow: 0 24px 60px rgba(0,0,0,0.5) !important;
    padding: 8px 0 !important; min-width: 220px;
}
.main-menu-light nav ul .sub-menu li a {
    color: rgba(168,189,207,0.85) !important; font-size: 13px !important;
    padding: 9px 20px !important; transition: color 0.2s, padding-left 0.2s !important;
}
.main-menu-light nav ul .sub-menu li a:hover { color: var(--gold) !important; padding-left: 26px !important; }
.main-menu-light nav ul li:hover > .sub-menu.immigration-dropdown {
    display: grid !important; grid-template-columns: 1fr 1fr !important; min-width: 460px !important;
}
.header-cta-btn {
    background: var(--gold); color: var(--navy) !important;
    font-size: 11px !important; font-weight: 800 !important; letter-spacing: 0.09em !important;
    text-transform: uppercase !important; padding: 11px 22px !important;
    text-decoration: none !important; transition: background 0.2s !important;
}
.header-cta-btn:hover { background: var(--gold-light) !important; }
.menubars-light span { background: var(--white); display: block; height: 1.5px; width: 22px; margin: 5px 0; }
@media (max-width: 480px) {
    .header-area .logo img { height: 36px; }
    .ae-brand-name { font-size: 13px; }
    .ae-brand-name span { display: none; }
}

/* POST HERO */
.post-hero {
    background: linear-gradient(180deg, var(--navy) 0%, var(--navy-mid) 100%);
    padding: 140px 0 70px;
    color: #fff;
}
.post-hero__inner { max-width: 820px; margin: 0 auto; padding: 0 24px; }
.post-crumbs {
    display: flex; align-items: center; gap: 8px;
    font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase;
    color: rgba(255,255,255,0.45); margin-bottom: 28px; flex-wrap: wrap;
}
.post-crumbs a { color: rgba(255,255,255,0.45); text-decoration: none; }
.post-crumbs a:hover { color: var(--gold); }
.post-crumbs__current { color: var(--gold); }
.post-tag {
    display: inline-block;
    background: rgba(184,151,90,0.15); color: var(--gold);
    padding: 5px 12px;
    font-size: 11px; font-weight: 800;
    letter-spacing: 0.14em; text-transform: uppercase;
    margin-bottom: 22px;
}
.post-title {
    font-size: clamp(34px, 4.5vw, 54px) !important;
    font-weight: 900 !important;
    font-family: -apple-system, 'SF Pro Display', 'Inter', 'Helvetica Neue', Arial, sans-serif !important;
    color: #fff !important;
    letter-spacing: -0.02em;
    line-height: 1.1; margin: 0 0 22px;
}
.post-sub {
    font-size: 18px; color: rgba(255,255,255,0.68);
    line-height: 1.6; margin: 0 0 30px;
}
.post-meta {
    display: flex; gap: 20px; flex-wrap: wrap;
    font-size: 13px; color: rgba(255,255,255,0.5);
    padding-top: 22px; border-top: 1px solid rgba(184,151,90,0.2);
}
.post-meta span { display: inline-flex; align-items: center; gap: 6px; }
.post-meta .dot { color: var(--gold); }

/* ===== POST LAYOUT — 2-column wrapper ===== */
.post-layout {
    max-width: 1180px;
    margin: 0 auto;
    padding: 64px 24px 80px;
    display: grid;
    grid-template-columns: minmax(0, 720px) 280px;
    gap: 60px;
    justify-content: center;
    align-items: start;
}

/* POST BODY (article column) */
.post-body {
    /* In layout grid: fill assigned column, no max-width or auto-margin */
    max-width: none;
    margin: 0;
    padding: 0;
    font-size: 17px;
    line-height: 1.78;
    color: #2a2f3a;
    min-width: 0; /* allow grid to shrink */
}
.post-body h2 {
    font-size: 28px; font-weight: 800;
    color: var(--navy);
    letter-spacing: -0.015em; line-height: 1.2;
    margin: 56px 0 18px; scroll-margin-top: 90px;
}
.post-body h2:first-of-type { margin-top: 0; }
.post-body h3 {
    font-size: 20px; font-weight: 700;
    color: var(--navy);
    margin: 32px 0 12px;
}
.post-body p { margin: 0 0 18px; }
.post-body ul, .post-body ol { margin: 0 0 22px; padding-left: 26px; }
.post-body li { margin-bottom: 10px; }
.post-body a { color: var(--gold); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.post-body a:hover { color: var(--navy); }
.post-body strong { color: var(--navy); font-weight: 700; }
.post-body em { font-style: italic; }
.post-body hr { border: none; border-top: 1px solid #E8EDF3; margin: 56px 0; }

/* Pull quote + callouts */
.post-quick {
    background: #F8F9FA;
    border-left: 3px solid var(--gold);
    padding: 22px 28px;
    margin: 30px 0;
    font-size: 16px;
    line-height: 1.7;
    color: #374151;
}
.post-quick strong { color: var(--navy); }
.post-warn {
    background: #FFF7ED;
    border-left: 3px solid #D97706;
    padding: 22px 28px;
    margin: 30px 0;
    font-size: 15.5px;
    line-height: 1.65;
    color: #374151;
}
.post-profile {
    background: #fff;
    border: 1px solid #E8EDF3;
    border-radius: 10px;
    padding: 24px 26px;
    margin: 22px 0;
}
.post-profile__label {
    font-size: 11px; font-weight: 800; letter-spacing: 0.14em;
    text-transform: uppercase; color: var(--gold); margin-bottom: 10px;
}
.post-profile__title {
    font-size: 17px; font-weight: 700; color: var(--navy);
    margin: 0 0 14px;
}
.post-profile ul { margin-bottom: 12px; }
.post-profile ul li { margin-bottom: 6px; font-size: 15px; }
.post-profile__total {
    font-size: 15px; font-weight: 700; color: var(--navy);
    padding-top: 12px; border-top: 1px solid #E8EDF3;
}

/* In-post CTA */
.post-cta-box {
    background: var(--navy);
    color: #fff;
    padding: 36px 32px;
    border-radius: 10px;
    margin: 40px 0;
    text-align: center;
}
.post-cta-box h3 {
    font-size: 22px; font-weight: 800;
    color: #fff; margin: 0 0 10px;
}
.post-cta-box p {
    font-size: 15px; color: rgba(255,255,255,0.65);
    margin: 0 0 22px; line-height: 1.6;
}
.post-cta-box__btn {
    display: inline-block;
    background: var(--gold);
    font-size: 11px; font-weight: 800;
    letter-spacing: 0.09em; text-transform: uppercase;
    padding: 14px 28px;
    text-decoration: none;
    transition: background 0.2s;
}
.post-cta-box__btn:hover { background: var(--gold-light); }
/* In-body link rule (.post-body a) sets gold + underline; need higher
   specificity to keep the button readable (navy text, no underline). */
.post-body .post-cta-box__btn,
.post-body .post-cta-box__btn:hover {
    color: var(--navy);
    text-decoration: none;
}

/* FAQ */
.post-faq details {
    border-bottom: 1px solid #E8EDF3;
    padding: 14px 0;
}
.post-faq summary {
    cursor: pointer;
    list-style: none;
    font-weight: 700;
    color: var(--navy);
    padding-right: 24px;
    position: relative;
    font-size: 17px;
    line-height: 1.4;
}
.post-faq summary::-webkit-details-marker { display: none; }
.post-faq summary::after {
    content: '+'; position: absolute; right: 0; top: 0;
    color: var(--gold); font-size: 22px; font-weight: 600;
    transition: transform 0.2s;
}
.post-faq details[open] summary::after { content: '−'; }
.post-faq details p {
    margin-top: 14px; font-size: 15.5px; color: #4a5260;
    padding-right: 24px;
}

/* Disclaimer */
.post-disclaimer {
    font-size: 13px; font-style: italic;
    color: #5A6880;
    padding: 20px 0;
    text-align: center;
}

/* ===== STICKY RIGHT RAIL ===== */
.post-rail {
    position: sticky;
    top: 100px;            /* clears the 76px fixed header + breathing room */
    align-self: start;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

/* TOC card */
.post-toc {
    background: #F8F9FA;
    border: 1px solid #E8EDF3;
    border-radius: 8px;
    padding: 22px 22px 14px;
}
.post-toc__title {
    font-size: 11px; font-weight: 800; letter-spacing: 0.14em;
    text-transform: uppercase; color: var(--gold);
    margin-bottom: 14px;
}
.post-toc__list {
    list-style: none; padding: 0; margin: 0;
}
.post-toc__item {
    border-left: 2px solid transparent;
    padding-left: 12px;
    margin-bottom: 8px;
    transition: border-color 0.2s;
}
.post-toc__item a {
    display: block;
    color: #5A6880;
    font-size: 13.5px;
    line-height: 1.5;
    text-decoration: none;
    padding: 4px 0;
    transition: color 0.2s;
}
.post-toc__item a:hover { color: var(--navy); }
.post-toc__item.is-active {
    border-left-color: var(--gold);
}
.post-toc__item.is-active a {
    color: var(--navy);
    font-weight: 700;
}

/* Sticky CTA card in rail */
.post-rail__cta {
    background: var(--navy);
    color: #fff;
    border-radius: 8px;
    padding: 26px 22px;
    text-align: left;
    position: relative;
    overflow: hidden;
}
.post-rail__cta::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse 80% 50% at 100% 0%, rgba(184,151,90,0.18) 0%, transparent 60%);
    pointer-events: none;
}
.post-rail__cta-eyebrow {
    position: relative;
    font-size: 10px; font-weight: 800; letter-spacing: 0.18em;
    text-transform: uppercase; color: var(--gold);
    margin-bottom: 10px;
}
.post-rail__cta-title {
    position: relative;
    font-size: 18px; font-weight: 800;
    color: #fff;
    margin: 0 0 10px;
    line-height: 1.3;
}
.post-rail__cta-text {
    position: relative;
    font-size: 13.5px; color: rgba(255,255,255,0.65);
    margin: 0 0 18px; line-height: 1.6;
}
.post-rail__cta-btn {
    position: relative;
    display: inline-block;
    background: var(--gold); color: var(--navy);
    font-size: 11px; font-weight: 800;
    letter-spacing: 0.09em; text-transform: uppercase;
    padding: 12px 22px;
    text-decoration: none;
    transition: background 0.2s;
}
.post-rail__cta-btn:hover { background: var(--gold-light); }

/* Mobile TOC accordion (hidden on desktop) */
.post-toc-mobile { display: none; }
.post-toc-mobile summary {
    cursor: pointer;
    list-style: none;
    background: #F8F9FA;
    border: 1px solid #E8EDF3;
    border-radius: 6px;
    padding: 14px 18px;
    font-size: 11px; font-weight: 800; letter-spacing: 0.14em;
    text-transform: uppercase; color: var(--gold);
    position: relative;
}
.post-toc-mobile summary::-webkit-details-marker { display: none; }
.post-toc-mobile summary::after {
    content: '+'; position: absolute; right: 16px; top: 50%;
    transform: translateY(-50%);
    color: var(--gold); font-size: 18px; font-weight: 600;
}
.post-toc-mobile[open] summary::after { content: '−'; }
.post-toc-mobile .post-toc {
    margin-top: 10px;
    border-radius: 6px;
}
.post-toc-mobile .post-toc__title { display: none; }

/* Layout breakdown — single column < 1024px */
@media (max-width: 1024px) {
    .post-layout {
        grid-template-columns: minmax(0, 760px);
        max-width: 760px;
        gap: 32px;
        padding: 40px 24px 64px;
    }
    .post-rail { display: none; }
    .post-toc-mobile { display: block; margin-bottom: 8px; }
}

/* ===== "MORE FROM THE BLOG" GRID ===== */
.post-related {
    background: #F8F9FA;
    padding: 70px 0 80px;
    border-top: 1px solid #E8EDF3;
}
.post-related .container { max-width: 1180px; padding: 0 24px; margin: 0 auto; }
.post-related__title {
    font-size: 12px; font-weight: 800; letter-spacing: 0.18em;
    text-transform: uppercase; color: var(--gold);
    margin: 0 0 30px;
    text-align: center;
}
.post-related__grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 28px;
}
.post-related__card {
    background: #fff;
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: inherit;
    border: 1px solid #E8EDF3;
    transition: border-color 0.25s, transform 0.25s, box-shadow 0.25s;
}
.post-related__card:hover {
    border-color: var(--gold);
    transform: translateY(-3px);
    box-shadow: 0 20px 48px rgba(13,31,60,0.08);
}
.post-related__img {
    aspect-ratio: 16/9;
    background: linear-gradient(135deg, var(--navy) 0%, var(--slate) 100%);
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}
.post-related__img::before {
    content: ''; position: absolute; inset: 0;
    background: radial-gradient(ellipse 70% 60% at 50% 50%, rgba(184,151,90,0.25) 0%, transparent 70%);
}
.post-related__img-label {
    position: relative;
    font-family: -apple-system, sans-serif;
    font-size: 15px;
    font-weight: 800;
    color: #fff;
    letter-spacing: 0.04em;
    text-align: center;
    padding: 0 28px;
    line-height: 1.25;
}
.post-related__body {
    padding: 26px 24px;
    display: flex;
    flex-direction: column;
    flex: 1;
}
.post-related__meta {
    display: flex; align-items: center; gap: 10px;
    font-size: 11px; color: #5A6880;
    letter-spacing: 0.06em; text-transform: uppercase;
    margin-bottom: 14px;
}
.post-related__tag {
    background: rgba(184,151,90,0.12); color: var(--gold);
    padding: 4px 10px; border-radius: 3px; font-weight: 700;
    letter-spacing: 0.12em;
}
.post-related__h {
    font-size: 19px; font-weight: 800;
    color: var(--navy); line-height: 1.28;
    letter-spacing: -0.01em; margin: 0 0 12px;
}
.post-related__excerpt {
    font-size: 14px; color: #5A6880;
    line-height: 1.7; margin: 0 0 20px; flex: 1;
}
.post-related__cta {
    display: inline-flex; align-items: center; gap: 6px;
    font-size: 11px; font-weight: 800;
    color: var(--gold); text-transform: uppercase;
    letter-spacing: 0.12em; transition: gap 0.25s;
}
.post-related__card:hover .post-related__cta { gap: 12px; }

@media (max-width: 640px) {
    .post-related { padding: 50px 0 60px; }
    .post-related__grid { grid-template-columns: 1fr; gap: 20px; }
}

/* Bottom CTA — distinct from the navy footer below it.
   Uses lighter slate→navy-mid gradient + gold top accent so the
   section reads as its own unit, not as a tall extension of the
   footer (which uses solid var(--navy)). */
.post-bottom-cta {
    background: linear-gradient(180deg, var(--slate) 0%, var(--navy-mid) 100%);
    color: #fff;
    padding: 70px 24px;
    text-align: center;
    border-top: 3px solid var(--gold);
}
.post-bottom-cta h2 {
    font-size: clamp(26px, 3.2vw, 40px);
    font-weight: 900; letter-spacing: -0.02em;
    max-width: 640px; margin: 0 auto 14px;
    color: #fff;
}
.post-bottom-cta p {
    font-size: 15px; color: rgba(255,255,255,0.6);
    max-width: 560px; margin: 0 auto 30px; line-height: 1.7;
}
.post-bottom-cta__btn {
    display: inline-block;
    background: var(--gold); color: var(--navy);
    font-size: 12px; font-weight: 800;
    letter-spacing: 0.09em; text-transform: uppercase;
    padding: 16px 32px;
    text-decoration: none;
    transition: background 0.2s;
}
.post-bottom-cta__btn:hover { background: var(--gold-light); }

/* FOOTER (match homepage) */
.ae-footer { background: var(--navy); padding: 80px 0 0; }
.ae-footer__logo img { height: 46px; width: auto; }
.ae-footer__desc {
    font-size: 14px; color: rgba(255,255,255,0.45);
    line-height: 1.78; margin-top: 20px; max-width: 280px;
}
.ae-footer__heading {
    font-size: 10px; font-weight: 800; letter-spacing: 0.22em;
    text-transform: uppercase; color: var(--gold); margin-bottom: 22px;
    font-family: -apple-system, 'SF Pro Display', 'Inter', sans-serif !important;
}
.ae-footer__list { list-style: none; padding: 0; margin: 0; }
.ae-footer__list li { margin-bottom: 10px; }
.ae-footer__list a {
    font-size: 14px; color: rgba(255,255,255,0.50);
    text-decoration: none; transition: color 0.2s;
}
.ae-footer__list a:hover { color: var(--gold); }
.ae-footer__socials { display: flex; gap: 8px; margin-top: 24px; }
.ae-footer__socials a {
    width: 36px; height: 36px; background: rgba(255,255,255,0.07);
    color: rgba(255,255,255,0.5); display: flex; align-items: center;
    justify-content: center; font-size: 12px; text-decoration: none;
    transition: all 0.2s;
}
.ae-footer__socials a:hover { background: var(--gold); color: var(--navy); }
.ae-footer__bottom {
    border-top: 1px solid rgba(255,255,255,0.07);
    padding: 24px 0; margin-top: 60px;
}
.ae-footer__copy { font-size: 13px; color: rgba(255,255,255,0.30); margin: 0; }
.ae-footer__disclaimer {
    font-size: 12px; color: rgba(255,255,255,0.22);
    font-style: italic; margin: 0;
}
