/*
Theme Name: AFT Academy
Theme URI: https://accountantsfortomorrow.co.za/
Author: Accountants For Tomorrow
Description: A premium, content-preserving WordPress theme for AFT. Compatible with WooCommerce and Tutor LMS.
Version: 1.0.1
Requires at least: 6.0
Requires PHP: 7.4
Text Domain: aft-academy
Tags: education, e-commerce, blog, custom-logo, featured-images, translation-ready
*/

:root {
    --aft-ink: #0b1530;
    --aft-ink-2: #19284e;
    --aft-muted: #65708a;
    --aft-soft: #f4f7fb;
    --aft-panel: #ffffff;
    --aft-line: #e1e7f0;
    --aft-blue: #3858d6;
    --aft-blue-dark: #1c2e84;
    --aft-cyan: #2bd3dc;
    --aft-yellow: #f6c84a;
    --aft-violet: #6b4ce6;
    --aft-radius: 18px;
    --aft-shadow: 0 22px 65px rgba(21, 35, 80, .11);
    --aft-container: 1180px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    color: var(--aft-ink);
    background: #fff;
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: 16px;
    line-height: 1.7;
    text-rendering: optimizeLegibility;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--aft-blue); text-decoration-thickness: .08em; text-underline-offset: .18em; }
a:hover { color: var(--aft-blue-dark); }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
.screen-reader-text { position: absolute !important; clip: rect(1px, 1px, 1px, 1px); clip-path: inset(50%); width: 1px; height: 1px; overflow: hidden; white-space: nowrap; }
.skip-link { position: fixed; z-index: 999; left: 1rem; top: -5rem; padding: .65rem 1rem; color: #fff; background: var(--aft-ink); }
.skip-link:focus { top: 1rem; }

.container { width: min(calc(100% - 3rem), var(--aft-container)); margin-inline: auto; }
.narrow { max-width: 780px; margin-inline: auto; }
.section { padding: 6rem 0; }
.section-soft { background: var(--aft-soft); }
.section-dark { color: #fff; background: var(--aft-ink); }
.eyebrow { margin: 0 0 .75rem; color: var(--aft-blue); font-size: .76rem; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; }
.section-heading { max-width: 720px; margin-bottom: 2.5rem; }
.section-heading h2, .section-heading h3 { margin: 0; font-size: clamp(2rem, 4vw, 3.5rem); line-height: 1.1; letter-spacing: -.04em; }
.section-heading p:not(.eyebrow) { margin: 1rem 0 0; color: var(--aft-muted); }
.section-dark .section-heading p:not(.eyebrow) { color: #b9c4df; }

.site-header { position: relative; z-index: 20; background: rgba(255,255,255,.94); border-bottom: 1px solid rgba(225,231,240,.85); backdrop-filter: blur(14px); }
.header-top { min-height: 38px; color: #fff; background: var(--aft-ink); font-size: .78rem; }
.header-top .container { display: flex; justify-content: space-between; align-items: center; gap: 1rem; }
.header-top a { color: #fff; text-decoration: none; }
.header-top-links { display: flex; flex-wrap: wrap; gap: 1rem; }
.site-header-main { min-height: 88px; display: flex; align-items: center; justify-content: space-between; gap: 2rem; }
.site-branding { display: flex; align-items: center; min-width: 210px; }
.custom-logo-link { display: inline-flex; align-items: center; }
.custom-logo { width: auto; max-width: 210px; max-height: 66px; }
.site-logo-fallback { display: inline-flex; align-items: center; gap: .65rem; color: var(--aft-ink); font-weight: 850; text-decoration: none; }
.logo-mark { display: grid; place-items: center; width: 38px; height: 38px; color: #fff; border-radius: 12px; background: linear-gradient(135deg, var(--aft-blue), var(--aft-violet)); font-size: 1.25rem; }
.logo-name { max-width: 170px; font-size: .93rem; line-height: 1.1; }
.primary-menu, .primary-menu ul { display: flex; align-items: center; flex-wrap: wrap; gap: .25rem .6rem; margin: 0; padding: 0; list-style: none; }
.primary-menu a { display: block; padding: .6rem .55rem; color: var(--aft-ink); font-size: .91rem; font-weight: 700; text-decoration: none; }
.primary-menu a:hover, .primary-menu .current-menu-item > a { color: var(--aft-blue); }
.header-actions { display: flex; align-items: center; gap: .65rem; }
.menu-toggle { display: none; border: 1px solid var(--aft-line); border-radius: 10px; padding: .55rem .75rem; color: var(--aft-ink); background: #fff; }

.button, .wp-block-button__link, button.button, input[type="submit"], .woocommerce a.button, .woocommerce button.button {
    display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
    min-height: 46px; padding: .7rem 1.15rem; border: 1px solid transparent; border-radius: 999px;
    color: #fff; background: var(--aft-blue); font-size: .9rem; font-weight: 800; line-height: 1.2; text-decoration: none;
    transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}
.button:hover, .wp-block-button__link:hover, input[type="submit"]:hover, .woocommerce a.button:hover, .woocommerce button.button:hover { color: #fff; background: var(--aft-blue-dark); box-shadow: 0 10px 24px rgba(56,88,214,.25); transform: translateY(-2px); }
.button-secondary { color: var(--aft-ink); background: #fff; border-color: var(--aft-line); }
.button-secondary:hover { color: var(--aft-ink); background: var(--aft-soft); }
.button-light { color: var(--aft-ink); background: #fff; }
.button-light:hover { color: var(--aft-ink); background: #e9efff; }

.hero { position: relative; overflow: hidden; color: #fff; background: radial-gradient(circle at 78% 12%, rgba(43,211,220,.24), transparent 26rem), radial-gradient(circle at 18% 0%, rgba(107,76,230,.38), transparent 30rem), linear-gradient(120deg, #0b1530 0%, #172d70 58%, #273f9d 100%); }
.hero::after { position: absolute; right: -8rem; bottom: -10rem; width: 31rem; height: 31rem; content: ""; border: 1px solid rgba(255,255,255,.18); border-radius: 50%; box-shadow: 0 0 0 3rem rgba(255,255,255,.03), 0 0 0 7rem rgba(255,255,255,.02); }
.hero-inner { position: relative; z-index: 1; display: grid; grid-template-columns: 1.02fr .98fr; align-items: center; gap: 4rem; min-height: 620px; padding: 6rem 0; }
.hero h1 { max-width: 760px; margin: 0; font-size: clamp(2.8rem, 6vw, 5.8rem); line-height: .98; letter-spacing: -.07em; }
.hero .hero-text { max-width: 610px; margin: 1.5rem 0 0; color: #d1daf4; font-size: 1.1rem; }
.hero .eyebrow { color: var(--aft-cyan); }
.hero-actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 2rem; }
.hero-visual { position: relative; min-height: 410px; }
.hero-orbit { position: absolute; inset: 8% 8% 5% 5%; border: 1px solid rgba(255,255,255,.2); border-radius: 38% 62% 55% 45% / 45% 40% 60% 55%; transform: rotate(-13deg); }
.hero-card { position: absolute; right: 8%; top: 16%; width: min(360px, 86%); padding: 1.35rem; color: var(--aft-ink); border: 1px solid rgba(255,255,255,.38); border-radius: 22px; background: rgba(255,255,255,.94); box-shadow: 0 30px 70px rgba(0,0,0,.22); transform: rotate(5deg); }
.hero-card img { width: 100%; aspect-ratio: 4/3; object-fit: cover; border-radius: 14px; background: var(--aft-soft); }
.hero-card-label { margin: .9rem 0 .2rem; color: var(--aft-blue); font-size: .72rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
.hero-card h2 { margin: 0; font-size: 1.4rem; line-height: 1.1; }
.hero-badge { position: absolute; left: 2%; bottom: 11%; display: grid; place-items: center; width: 126px; height: 126px; padding: 1rem; color: var(--aft-ink); border: 6px solid rgba(255,255,255,.75); border-radius: 50%; background: var(--aft-yellow); box-shadow: 0 18px 35px rgba(0,0,0,.2); font-size: .75rem; font-weight: 900; line-height: 1.1; text-align: center; transform: rotate(-9deg); }

.trust-strip { color: #fff; background: var(--aft-blue); }
.trust-strip .container { display: grid; grid-template-columns: repeat(3,1fr); gap: 1rem; padding: 1.1rem 0; }
.trust-item { display: flex; align-items: center; gap: .8rem; border-right: 1px solid rgba(255,255,255,.2); }
.trust-item:last-child { border-right: 0; }
.trust-icon { display: grid; place-items: center; width: 35px; height: 35px; color: var(--aft-ink); border-radius: 10px; background: var(--aft-cyan); font-weight: 900; }
.trust-item strong { display: block; font-size: .93rem; }
.trust-item span { display: block; color: #d8e4ff; font-size: .78rem; }

.stats-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 1rem; }
.stat-card { padding: 1.5rem; border: 1px solid var(--aft-line); border-radius: var(--aft-radius); background: var(--aft-panel); box-shadow: 0 12px 34px rgba(21,35,80,.05); }
.stat-number { display: block; color: var(--aft-blue); font-size: 2.8rem; font-weight: 850; line-height: 1; letter-spacing: -.06em; }
.stat-label { display: block; margin-top: .65rem; color: var(--aft-muted); font-size: .86rem; font-weight: 700; }

.card-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 1.4rem; }
.feature-grid { display: grid; grid-template-columns: repeat(2,1fr); gap: 1.4rem; }
.aft-card, .post-card, .course-card { overflow: hidden; border: 1px solid var(--aft-line); border-radius: var(--aft-radius); background: #fff; box-shadow: 0 12px 34px rgba(21,35,80,.05); }
.aft-card:hover, .post-card:hover, .course-card:hover { box-shadow: var(--aft-shadow); }
.card-image { overflow: hidden; aspect-ratio: 16/10; background: linear-gradient(135deg,#dfe7ff,#f4f7fb); }
.card-image img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.aft-card:hover img, .post-card:hover img, .course-card:hover img { transform: scale(1.04); }
.card-body { padding: 1.35rem; }
.card-body h3 { margin: .35rem 0 .55rem; font-size: 1.3rem; line-height: 1.2; letter-spacing: -.025em; }
.card-body p { margin: 0; color: var(--aft-muted); font-size: .92rem; }
.card-link { display: inline-flex; margin-top: 1rem; font-size: .86rem; font-weight: 800; text-decoration: none; }
.course-card .course-meta { display: flex; justify-content: space-between; gap: .5rem; margin-top: 1rem; padding-top: .9rem; border-top: 1px solid var(--aft-line); color: var(--aft-muted); font-size: .8rem; }
.course-card .course-meta strong { color: var(--aft-blue); }

.pathway { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: center; }
.pathway-panel { padding: 2.5rem; color: #fff; border-radius: 26px; background: linear-gradient(135deg, var(--aft-blue), var(--aft-violet)); box-shadow: var(--aft-shadow); }
.pathway-panel h2 { margin: 0; font-size: clamp(2rem, 4vw, 3.3rem); line-height: 1.05; letter-spacing: -.05em; }
.pathway-panel p { color: #e9edff; }
.check-list { display: grid; gap: .85rem; margin: 1.5rem 0 0; padding: 0; list-style: none; }
.check-list li { display: flex; gap: .7rem; align-items: flex-start; }
.check-list li::before { display: grid; flex: 0 0 23px; place-items: center; width: 23px; height: 23px; content: "✓"; color: var(--aft-ink); border-radius: 50%; background: var(--aft-cyan); font-size: .75rem; font-weight: 900; }
.timeline { display: grid; gap: 1.4rem; }
.timeline-item { position: relative; display: grid; grid-template-columns: 52px 1fr; gap: 1rem; }
.timeline-item:not(:last-child)::before { position: absolute; left: 25px; top: 48px; bottom: -24px; width: 1px; content: ""; background: var(--aft-line); }
.timeline-number { position: relative; z-index: 1; display: grid; place-items: center; width: 52px; height: 52px; color: #fff; border-radius: 16px; background: var(--aft-blue); font-weight: 900; }
.timeline-item h3 { margin: .2rem 0 .2rem; font-size: 1.1rem; }
.timeline-item p { margin: 0; color: var(--aft-muted); font-size: .92rem; }

.site-content-shell { padding: 5rem 0; }
.page-header { padding: 4.5rem 0 2rem; background: linear-gradient(180deg, var(--aft-soft), #fff); }
.page-header h1 { max-width: 860px; margin: 0; font-size: clamp(2.3rem, 5vw, 4.4rem); line-height: 1.05; letter-spacing: -.06em; }
.breadcrumbs { display: flex; flex-wrap: wrap; gap: .6rem; margin-bottom: 1.2rem; color: var(--aft-muted); font-size: .8rem; }
.breadcrumbs a { text-decoration: none; }
.entry-content { font-size: 1.04rem; }
.entry-content > * { max-width: 820px; margin-right: auto; margin-left: auto; }
.entry-content > .alignwide { max-width: 1080px; }
.entry-content > .alignfull { max-width: none; }
.entry-content h2, .entry-content h3, .entry-content h4 { margin-top: 2.2rem; color: var(--aft-ink); line-height: 1.15; letter-spacing: -.03em; }
.entry-content h2 { font-size: 2rem; }
.entry-content h3 { font-size: 1.45rem; }
.entry-content p, .entry-content ul, .entry-content ol { margin-top: 1rem; margin-bottom: 1rem; }
.entry-content blockquote { margin: 2rem auto; padding: 1.2rem 1.5rem; border-left: 4px solid var(--aft-blue); color: var(--aft-ink-2); background: var(--aft-soft); font-size: 1.2rem; }
.entry-content table { width: 100%; border-collapse: collapse; }
.entry-content th, .entry-content td { padding: .7rem; border: 1px solid var(--aft-line); text-align: left; }
.entry-content iframe { max-width: 100%; }
.entry-content .wp-block-button { margin-top: 1rem; }

.content-with-sidebar { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 4rem; align-items: start; }
.sidebar { position: sticky; top: 1rem; }
.widget { margin-bottom: 2rem; padding: 1.2rem; border: 1px solid var(--aft-line); border-radius: var(--aft-radius); background: #fff; }
.widget-title { margin: 0 0 .7rem; font-size: 1rem; }
.widget ul { margin: 0; padding-left: 1.1rem; }

.entry-meta { display: flex; flex-wrap: wrap; gap: .65rem; align-items: center; margin: .85rem 0 1.5rem; color: var(--aft-muted); font-size: .82rem; }
.entry-meta a { text-decoration: none; }
.post-card .entry-meta { margin: 0; }
.featured-image { overflow: hidden; margin: 2rem 0; border-radius: 24px; background: var(--aft-soft); }
.featured-image img { width: 100%; max-height: 600px; object-fit: cover; }
.author-box { display: flex; gap: 1rem; align-items: center; margin: 3rem 0; padding: 1.3rem; border: 1px solid var(--aft-line); border-radius: var(--aft-radius); background: var(--aft-soft); }
.author-box .avatar { border-radius: 50%; }
.author-box p { margin: 0; color: var(--aft-muted); font-size: .88rem; }

.aft-toc { max-width: 820px; margin: 0 auto 2rem; border: 1px solid var(--aft-line); border-radius: 14px; background: var(--aft-soft); }
.aft-toc-toggle { display: flex; justify-content: space-between; width: 100%; padding: .9rem 1.1rem; border: 0; color: var(--aft-ink); background: transparent; font-weight: 850; text-align: left; }
.aft-toc-panel { padding: 0 1.1rem 1rem; }
.aft-toc-list { margin: 0; padding-left: 1.25rem; }
.aft-toc-list li { margin: .35rem 0; font-size: .9rem; }
.aft-toc-list .toc-level-3 { margin-left: 1rem; font-size: .84rem; }

.pagination, .nav-links { display: flex; justify-content: center; flex-wrap: wrap; gap: .4rem; margin-top: 3rem; }
.page-numbers { display: inline-flex; align-items: center; justify-content: center; min-width: 38px; height: 38px; padding: 0 .6rem; border: 1px solid var(--aft-line); border-radius: 10px; text-decoration: none; }
.page-numbers.current { color: #fff; background: var(--aft-blue); border-color: var(--aft-blue); }

.comments-area { max-width: 820px; margin: 3rem auto 0; padding-top: 2rem; border-top: 1px solid var(--aft-line); }
.comment-list { padding-left: 0; list-style: none; }
.comment-list li { padding: 1rem 0; border-bottom: 1px solid var(--aft-line); }
.comment-meta { font-size: .8rem; color: var(--aft-muted); }
.comment-content { margin-top: .5rem; }
.comment-form input, .comment-form textarea, .search-form input[type="search"], select { width: 100%; padding: .72rem .85rem; border: 1px solid var(--aft-line); border-radius: 10px; background: #fff; }
.comment-form label { display: block; margin-bottom: .3rem; font-weight: 700; }
.form-submit { margin-top: 1rem; }

.woocommerce .site-main, .woocommerce-page .site-main { padding-top: 3rem; padding-bottom: 5rem; }
.woocommerce ul.products li.product, .woocommerce-page ul.products li.product { border: 1px solid var(--aft-line); border-radius: var(--aft-radius); padding: 1rem; background: #fff; }
.woocommerce div.product div.images img, .woocommerce ul.products li.product img { border-radius: 12px; }
.woocommerce-message, .woocommerce-info, .woocommerce-error { border-top-color: var(--aft-blue); }

.site-footer { padding: 4rem 0 1.5rem; color: #bdc8e2; background: var(--aft-ink); }
.footer-grid { display: grid; grid-template-columns: 1.4fr repeat(3,1fr); gap: 2rem; }
.site-footer h2, .site-footer h3 { margin: 0 0 .9rem; color: #fff; font-size: 1rem; }
.site-footer p { margin: 0 0 .75rem; font-size: .9rem; }
.site-footer a { color: #dce5ff; text-decoration: none; }
.site-footer a:hover { color: var(--aft-cyan); }
.site-footer ul { margin: 0; padding: 0; list-style: none; }
.site-footer li { margin: .35rem 0; font-size: .88rem; }
.footer-bottom { display: flex; justify-content: space-between; gap: 1rem; margin-top: 3rem; padding-top: 1rem; border-top: 1px solid rgba(255,255,255,.14); color: #8e9bbc; font-size: .78rem; }

@media (max-width: 980px) {
    .site-header-main { min-height: 76px; }
    .menu-toggle { display: inline-flex; }
    .primary-navigation { position: absolute; left: 1rem; right: 1rem; top: calc(100% + 1px); display: none; padding: .65rem; border: 1px solid var(--aft-line); border-radius: 14px; background: #fff; box-shadow: var(--aft-shadow); }
    .primary-navigation.is-open { display: block; }
    .primary-menu, .primary-menu ul { display: block; }
    .primary-menu a { padding: .65rem .75rem; }
    .hero-inner { grid-template-columns: 1fr; min-height: 0; padding: 5rem 0; }
    .hero-visual { min-height: 350px; }
    .footer-grid { grid-template-columns: repeat(2,1fr); }
}
@media (max-width: 720px) {
    .container { width: min(calc(100% - 2rem), var(--aft-container)); }
    .header-top { display: none; }
    .header-actions .button-secondary { display: none; }
    .section { padding: 4rem 0; }
    .hero h1 { font-size: clamp(2.7rem, 13vw, 4.5rem); }
    .hero-visual { min-height: 290px; }
    .hero-card { right: 0; width: 76%; }
    .hero-badge { left: 0; bottom: 4%; width: 100px; height: 100px; font-size: .65rem; }
    .trust-strip .container, .stats-grid, .card-grid, .feature-grid, .pathway, .content-with-sidebar { grid-template-columns: 1fr; }
    .trust-item { border-right: 0; border-bottom: 1px solid rgba(255,255,255,.2); padding: .5rem 0; }
    .trust-item:last-child { border-bottom: 0; }
    .sidebar { position: static; }
    .footer-grid { grid-template-columns: 1fr; gap: 1.5rem; }
    .footer-bottom { display: block; }
    .footer-bottom span { display: block; margin-top: .35rem; }
}
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
}

/* Homepage hero carousel */
.aft-hero-carousel { isolation: isolate; }
.aft-hero-carousel .hero-inner { grid-template-columns: minmax(0, 1.08fr) minmax(360px, .92fr); min-height: 650px; gap: 2.5rem; }
.hero-copy-wrap { position: relative; z-index: 3; }
.aft-hero-slides { position: relative; min-height: 305px; }
.aft-hero-slide { display: none; max-width: 700px; animation: aftHeroIn .45s ease both; }
.aft-hero-slide.is-active { display: block; }
.aft-hero-slide h1, .aft-hero-slide h2 { max-width: 720px; margin: 0; color: #fff; font-size: clamp(2.9rem, 6vw, 5.5rem); line-height: .98; letter-spacing: -.07em; }
.aft-slide-kicker { margin: 0 0 .7rem; color: var(--aft-yellow); font-size: .83rem; font-weight: 850; letter-spacing: .14em; text-transform: uppercase; }
.aft-hero-slide .hero-text { max-width: 580px; }
.aft-hero-card-nav { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: .55rem; max-width: 700px; margin-top: 2.15rem; }
.aft-hero-card { min-height: 83px; padding: .75rem .8rem; border: 1px solid rgba(255,255,255,.2); border-radius: 14px; color: #d5def8; background: rgba(8,18,50,.32); text-align: left; transition: background .2s ease, border-color .2s ease, transform .2s ease; }
.aft-hero-card:hover, .aft-hero-card.is-active { color: #fff; border-color: rgba(43,211,220,.75); background: rgba(255,255,255,.12); transform: translateY(-3px); }
.aft-hero-card span { display: block; margin-bottom: .3rem; color: var(--aft-cyan); font-size: .68rem; font-weight: 900; letter-spacing: .12em; }
.aft-hero-card strong, .aft-hero-card small { display: block; }
.aft-hero-card strong { font-size: .76rem; line-height: 1.15; }
.aft-hero-card small { margin-top: .22rem; color: #b6c5e6; font-size: .68rem; line-height: 1.2; }
.aft-hero-person-wrap { min-height: 560px; display: flex; align-items: flex-end; justify-content: center; }
.aft-hero-person { position: relative; z-index: 2; width: min(100%, 550px); max-height: 620px; object-fit: contain; object-position: bottom center; filter: drop-shadow(0 28px 32px rgba(0,0,0,.28)); align-self: flex-end; }
.aft-hero-person-wrap .hero-orbit { inset: 12% -4% 9% 9%; z-index: 0; border-color: rgba(255,255,255,.28); }
.aft-hero-glow { position: absolute; z-index: 1; right: 1%; bottom: 7%; width: 82%; height: 72%; border-radius: 50%; background: radial-gradient(circle, rgba(43,211,220,.48), rgba(107,76,230,.22) 42%, transparent 70%); filter: blur(8px); }
.aft-hero-person-wrap .hero-badge { z-index: 4; left: 0; bottom: 14%; width: 112px; height: 112px; color: var(--aft-ink); border-color: rgba(255,255,255,.8); background: var(--aft-cyan); }
@keyframes aftHeroIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }

.aft-mobile-quick-links { display: none; }
@media (max-width: 720px) {
    .aft-mobile-quick-links { position: fixed; z-index: 9998; right: 0; bottom: 0; left: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; padding: 8px max(10px, env(safe-area-inset-left)) calc(8px + env(safe-area-inset-bottom)) max(10px, env(safe-area-inset-right)); border-top: 1px solid rgba(11,21,48,.12); background: rgba(255,255,255,.96); box-shadow: 0 -10px 28px rgba(11,21,48,.13); backdrop-filter: blur(14px); }
    .aft-mobile-quick-links a { display: flex; align-items: center; justify-content: center; gap: 7px; min-height: 44px; padding: 10px 8px; border-radius: 10px; color: #fff; background: var(--aft-blue); font-size: 13px; font-weight: 800; line-height: 1.1; text-align: center; text-decoration: none; }
    .aft-mobile-quick-links a:last-child { color: var(--aft-ink); background: var(--aft-cyan); }
    .aft-mobile-quick-links a:focus-visible { outline: 3px solid var(--aft-yellow); outline-offset: 2px; }
    body { padding-bottom: 76px; }
}
@media (min-width: 721px) {
    .trust-item strong { white-space: nowrap; }
}
@media (max-width: 980px) {
    .aft-hero-carousel .hero-inner { grid-template-columns: 1fr; }
    .aft-hero-person-wrap { min-height: 430px; max-width: 620px; margin-inline: auto; }
    .aft-hero-slides { min-height: 270px; }
}
@media (max-width: 720px) {
    .aft-hero-carousel .hero-inner { padding: 4.2rem 0 3.5rem; }
    .aft-hero-slides { min-height: 335px; }
    .aft-hero-slide h1, .aft-hero-slide h2 { font-size: clamp(2.65rem, 12vw, 4.2rem); }
    .aft-hero-card-nav { grid-template-columns: repeat(2,1fr); margin-top: 1.4rem; }
    .aft-hero-card { min-height: 75px; }
    .aft-hero-person-wrap { min-height: 360px; }
    .aft-hero-person { width: 94%; }
    .aft-hero-person-wrap .hero-badge { left: 0; bottom: 7%; width: 92px; height: 92px; }
}
