/*
 * GKBooks Professional Homepage
 * Add this stylesheet through your child theme or enqueue it only for the homepage template.
 */

:root {
    --gkb-green-950: #073b2a;
    --gkb-green-900: #0a4a34;
    --gkb-green-800: #0d6244;
    --gkb-green-700: #087a50;
    --gkb-green-600: #0b9562;
    --gkb-green-500: #18ad72;
    --gkb-green-100: #dcf7e9;
    --gkb-green-50: #effbf5;
    --gkb-ink: #17231d;
    --gkb-muted: #5f6e66;
    --gkb-line: #dce7e1;
    --gkb-surface: #ffffff;
    --gkb-soft: #f7faf8;
    --gkb-warm: #fff9ec;
    --gkb-shadow: 0 16px 44px rgba(16, 63, 43, .09);
    --gkb-radius-lg: 24px;
    --gkb-radius-md: 16px;
    --gkb-radius-sm: 11px;
    --gkb-container: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body.gkb-custom-home {
    margin: 0;
    color: var(--gkb-ink);
    background: var(--gkb-surface);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}
body.gkb-custom-home img { max-width: 100%; height: auto; }
body.gkb-custom-home a { color: inherit; text-decoration: none; }
body.gkb-custom-home button,
body.gkb-custom-home input { font: inherit; }
body.gkb-custom-home .screen-reader-text {
    position: absolute !important;
    width: 1px; height: 1px; padding: 0; margin: -1px;
    overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

.gkb-container { width: min(calc(100% - 40px), var(--gkb-container)); margin-inline: auto; }
.gkb-skip-link { position: fixed; top: -100px; left: 16px; z-index: 9999; background: #fff; padding: 10px 16px; border-radius: 8px; box-shadow: var(--gkb-shadow); }
.gkb-skip-link:focus { top: 16px; }

.gkb-site-header {
    position: sticky; top: 0; z-index: 1000;
    background: rgba(255,255,255,.96);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(220,231,225,.9);
}
.gkb-header-inner { min-height: 78px; display: flex; align-items: center; gap: 28px; }
.gkb-brand { display: inline-flex; align-items: center; gap: 11px; flex: 0 0 auto; }
.gkb-brand-logo .custom-logo-link { display: block; }
.gkb-brand-logo img { display: block; max-height: 50px; width: auto; }
.gkb-brand-mark {
    width: 46px; height: 46px; display: grid; place-items: center;
    border-radius: 13px; color: #fff; font-weight: 900; letter-spacing: -.04em;
    background: linear-gradient(145deg, var(--gkb-green-600), var(--gkb-green-900));
    box-shadow: 0 8px 20px rgba(11,149,98,.25);
}
.gkb-brand-copy { display: grid; line-height: 1.1; }
.gkb-brand-copy strong { font-size: 1.12rem; color: var(--gkb-green-950); }
.gkb-brand-copy small { margin-top: 4px; color: var(--gkb-muted); font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; }

.gkb-primary-nav { margin-left: auto; }
.gkb-primary-nav ul { display: flex; align-items: center; gap: 26px; list-style: none; margin: 0; padding: 0; }
.gkb-primary-nav a { font-size: .93rem; font-weight: 650; color: #314139; transition: color .2s ease; }
.gkb-primary-nav a:hover,
.gkb-primary-nav a:focus-visible { color: var(--gkb-green-700); }
.gkb-header-cta { padding: 10px 16px; border-radius: 10px; background: var(--gkb-green-50); color: var(--gkb-green-800) !important; font-size: .9rem; font-weight: 750; }
.gkb-menu-toggle { display: none; width: 44px; height: 42px; padding: 10px; border: 1px solid var(--gkb-line); background: #fff; border-radius: 10px; cursor: pointer; }
.gkb-menu-toggle > span:not(.screen-reader-text) { display: block; width: 21px; height: 2px; margin: 4px auto; background: var(--gkb-green-950); transition: .2s ease; }

.gkb-hero {
    position: relative; overflow: hidden;
    padding: 88px 0 80px;
    background:
        radial-gradient(circle at 88% 18%, rgba(24,173,114,.16), transparent 25%),
        radial-gradient(circle at 10% 80%, rgba(11,149,98,.10), transparent 23%),
        linear-gradient(180deg, #f7fff9 0%, #fff 100%);
}
.gkb-hero::before,
.gkb-hero::after { content: ""; position: absolute; border: 1px solid rgba(11,149,98,.15); border-radius: 50%; }
.gkb-hero::before { width: 420px; height: 420px; right: -225px; top: 25px; }
.gkb-hero::after { width: 220px; height: 220px; left: -125px; bottom: -80px; }
.gkb-hero-grid { position: relative; display: grid; grid-template-columns: minmax(0, 1.18fr) minmax(360px, .82fr); gap: 72px; align-items: center; }
.gkb-hero-content, .gkb-hero-panel { min-width: 0; }
.gkb-eyebrow,
.gkb-kicker { display: inline-flex; align-items: center; gap: 8px; color: var(--gkb-green-700); font-size: .78rem; font-weight: 850; letter-spacing: .12em; text-transform: uppercase; }
.gkb-eyebrow::before,
.gkb-kicker::before { content: ""; width: 26px; height: 2px; border-radius: 2px; background: currentColor; }
.gkb-hero h1 { max-width: 780px; margin: 18px 0 20px; color: var(--gkb-green-950); font-size: clamp(2.55rem, 5.2vw, 4.65rem); line-height: 1.04; letter-spacing: -.052em; }
.gkb-hero-content > p { max-width: 720px; margin: 0 0 28px; color: #516159; font-size: 1.08rem; line-height: 1.75; }
.gkb-search { display: flex; align-items: center; width: 100%; max-width: 690px; padding: 7px; background: #fff; border: 1px solid var(--gkb-line); border-radius: 15px; box-shadow: 0 12px 38px rgba(20,73,51,.08); }
.gkb-search svg { width: 21px; margin-left: 12px; fill: none; stroke: #7a8b82; stroke-width: 2; stroke-linecap: round; }
.gkb-search input { min-width: 0; flex: 1; border: 0; outline: 0; padding: 11px 13px; color: var(--gkb-ink); background: transparent; }
.gkb-search input::placeholder { color: #89968f; }
.gkb-search button { border: 0; padding: 12px 23px; border-radius: 10px; color: #fff; background: var(--gkb-green-700); font-weight: 800; cursor: pointer; }
.gkb-hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 22px; }
.gkb-button { display: inline-flex; justify-content: center; align-items: center; min-height: 48px; padding: 11px 20px; border-radius: 11px; font-weight: 800; transition: transform .2s ease, box-shadow .2s ease, background .2s ease; }
.gkb-button:hover { transform: translateY(-2px); }
.gkb-button-primary { color: #fff !important; background: var(--gkb-green-700); box-shadow: 0 10px 24px rgba(8,122,80,.22); }
.gkb-button-primary:hover { background: var(--gkb-green-800); }
.gkb-button-secondary { color: var(--gkb-green-800) !important; background: #fff; border: 1px solid #bdd9ca; }
.gkb-trust-row { display: flex; flex-wrap: wrap; gap: 18px 26px; margin: 24px 0 0; padding: 0; list-style: none; color: #52645b; font-size: .87rem; font-weight: 650; }
.gkb-trust-row span { display: inline-grid; place-items: center; width: 19px; height: 19px; margin-right: 5px; color: #fff; background: var(--gkb-green-600); border-radius: 50%; font-size: .72rem; }

.gkb-hero-panel { position: relative; padding: 26px; border: 1px solid rgba(191,221,205,.9); border-radius: var(--gkb-radius-lg); background: rgba(255,255,255,.88); box-shadow: var(--gkb-shadow); }
.gkb-panel-badge { display: inline-flex; margin-bottom: 13px; padding: 6px 10px; border-radius: 999px; color: var(--gkb-green-800); background: var(--gkb-green-100); font-size: .72rem; font-weight: 850; text-transform: uppercase; letter-spacing: .07em; }
.gkb-quick-item { display: grid; grid-template-columns: 46px 1fr auto; gap: 13px; align-items: center; padding: 16px 8px; border-bottom: 1px solid var(--gkb-line); }
.gkb-quick-item:last-of-type { border-bottom: 0; }
.gkb-quick-item:hover strong { color: var(--gkb-green-700); }
.gkb-quick-icon { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 12px; color: var(--gkb-green-800); background: var(--gkb-green-50); font-size: .8rem; font-weight: 900; }
.gkb-quick-item > span:nth-child(2) { display: grid; }
.gkb-quick-item strong { font-size: .98rem; line-height: 1.35; transition: color .2s ease; }
.gkb-quick-item small { margin-top: 4px; color: var(--gkb-muted); font-size: .78rem; }
.gkb-quick-item b { color: var(--gkb-green-700); font-size: 1.25rem; }
.gkb-panel-tip { display: flex; gap: 12px; margin-top: 16px; padding: 15px; border-radius: 13px; background: var(--gkb-warm); }
.gkb-panel-tip p { margin: 0; color: #655d44; font-size: .8rem; line-height: 1.55; }

.gkb-section { padding: 82px 0; }
.gkb-category-section { background: #fff; }
.gkb-section-heading { margin-bottom: 34px; }
.gkb-section-heading h2 { margin: 10px 0 10px; color: var(--gkb-green-950); font-size: clamp(1.9rem, 3.2vw, 2.85rem); line-height: 1.16; letter-spacing: -.035em; }
.gkb-section-heading p { margin: 0; color: var(--gkb-muted); }
.gkb-section-heading-centered { max-width: 720px; margin-inline: auto; margin-bottom: 38px; text-align: center; }
.gkb-section-heading-centered .gkb-kicker { justify-content: center; }
.gkb-heading-row { display: flex; justify-content: space-between; align-items: end; gap: 24px; }
.gkb-text-link { color: var(--gkb-green-700) !important; font-weight: 800; white-space: nowrap; }
.gkb-text-link:hover { color: var(--gkb-green-900) !important; }

.gkb-category-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.gkb-category-card { min-height: 250px; padding: 27px; border: 1px solid var(--gkb-line); border-radius: var(--gkb-radius-md); background: #fff; transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease; }
.gkb-category-card:hover { transform: translateY(-5px); border-color: #abd5bd; box-shadow: var(--gkb-shadow); }
.gkb-category-icon { display: grid; place-items: center; width: 50px; height: 50px; margin-bottom: 22px; border-radius: 13px; background: var(--gkb-green-50); font-size: 1.42rem; }
.gkb-category-card h3 { margin: 0 0 8px; color: var(--gkb-green-950); font-size: 1.18rem; }
.gkb-category-card p { min-height: 52px; margin: 0 0 20px; color: var(--gkb-muted); font-size: .91rem; }
.gkb-category-card > span:last-child { color: var(--gkb-green-700); font-size: .85rem; font-weight: 800; }

.gkb-current-section { background: var(--gkb-soft); }
.gkb-current-banner { display: flex; justify-content: space-between; align-items: center; gap: 34px; padding: 38px 42px; color: #fff; border-radius: var(--gkb-radius-lg) var(--gkb-radius-lg) 0 0; background: linear-gradient(125deg, var(--gkb-green-950), var(--gkb-green-700)); }
.gkb-current-banner h2 { margin: 7px 0 7px; color: #fff; font-size: clamp(2rem, 3vw, 3rem); line-height: 1.1; }
.gkb-current-banner p { max-width: 730px; margin: 0; color: rgba(255,255,255,.78); }
.gkb-kicker-light { color: #bdf0d5; }
.gkb-button-white { color: var(--gkb-green-900) !important; background: #fff; }
.gkb-current-list { padding: 8px 32px; border: 1px solid var(--gkb-line); border-top: 0; border-radius: 0 0 var(--gkb-radius-lg) var(--gkb-radius-lg); background: #fff; }
.gkb-current-item { display: grid; grid-template-columns: 58px 1fr 42px; gap: 20px; align-items: center; padding: 22px 6px; border-bottom: 1px solid var(--gkb-line); }
.gkb-current-item:last-child { border-bottom: 0; }
.gkb-current-item time { display: grid; place-items: center; width: 54px; height: 58px; border-radius: 12px; color: var(--gkb-green-900); background: var(--gkb-green-50); line-height: 1; }
.gkb-current-item time strong { font-size: 1.24rem; }
.gkb-current-item time span { margin-top: -5px; font-size: .67rem; font-weight: 800; text-transform: uppercase; }
.gkb-post-label { color: var(--gkb-green-700); font-size: .68rem; font-weight: 850; letter-spacing: .08em; text-transform: uppercase; }
.gkb-current-item h3 { margin: 4px 0 0; font-size: 1rem; line-height: 1.45; }
.gkb-current-item h3 a:hover { color: var(--gkb-green-700); }
.gkb-round-link { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; color: var(--gkb-green-700) !important; background: var(--gkb-green-50); font-weight: 900; }

.gkb-post-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.gkb-post-card { overflow: hidden; border: 1px solid var(--gkb-line); border-radius: var(--gkb-radius-md); background: #fff; transition: transform .2s ease, box-shadow .2s ease; }
.gkb-post-card:hover { transform: translateY(-5px); box-shadow: var(--gkb-shadow); }
.gkb-card-image { display: block; overflow: hidden; aspect-ratio: 16 / 9; background: linear-gradient(135deg, var(--gkb-green-50), #d5f3e4); }
.gkb-card-image img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.gkb-post-card:hover .gkb-card-image img { transform: scale(1.04); }
.gkb-image-fallback { width: 100%; height: 100%; display: grid; place-items: center; color: var(--gkb-green-800); font-size: 2.4rem; font-weight: 950; }
.gkb-card-body { padding: 21px; }
.gkb-card-meta { display: flex; justify-content: space-between; gap: 14px; color: #78877f; font-size: .7rem; }
.gkb-card-meta span { color: var(--gkb-green-700); font-weight: 800; text-transform: uppercase; letter-spacing: .05em; }
.gkb-card-body h3 { margin: 10px 0 9px; color: var(--gkb-green-950); font-size: 1.06rem; line-height: 1.45; }
.gkb-card-body h3 a:hover { color: var(--gkb-green-700); }
.gkb-card-body p { margin: 0 0 17px; color: var(--gkb-muted); font-size: .84rem; line-height: 1.65; }
.gkb-card-link { color: var(--gkb-green-700) !important; font-size: .82rem; font-weight: 850; }
.gkb-card-link span { display: inline-block; transition: transform .2s ease; }
.gkb-card-link:hover span { transform: translateX(4px); }

.gkb-practice-section { background: linear-gradient(180deg, #f5fbf7, #fff); }
.gkb-practice-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 70px; align-items: center; }
.gkb-practice-copy h2 { margin: 11px 0 16px; color: var(--gkb-green-950); font-size: clamp(2rem, 3.5vw, 3.15rem); line-height: 1.13; letter-spacing: -.04em; }
.gkb-practice-copy > p { color: var(--gkb-muted); }
.gkb-practice-copy ul { display: grid; gap: 10px; margin: 24px 0 27px; padding: 0; list-style: none; }
.gkb-practice-copy li { color: #425248; font-weight: 650; }
.gkb-practice-copy li span { display: inline-grid; place-items: center; width: 22px; height: 22px; margin-right: 8px; color: #fff; background: var(--gkb-green-600); border-radius: 50%; font-size: .75rem; }
.gkb-quiz-stack { display: grid; gap: 13px; }
.gkb-quiz-card { display: grid; grid-template-columns: 48px 1fr auto; gap: 16px; align-items: center; padding: 20px; border: 1px solid var(--gkb-line); border-radius: 14px; background: #fff; box-shadow: 0 8px 26px rgba(20,73,51,.05); transition: transform .2s ease, border-color .2s ease; }
.gkb-quiz-card:hover { transform: translateX(5px); border-color: #a8d4ba; }
.gkb-quiz-number { display: grid; place-items: center; width: 45px; height: 45px; border-radius: 12px; color: var(--gkb-green-800); background: var(--gkb-green-50); font-weight: 900; }
.gkb-quiz-card > span:nth-child(2) { display: grid; }
.gkb-quiz-card small { color: var(--gkb-green-700); font-size: .65rem; font-weight: 850; text-transform: uppercase; letter-spacing: .08em; }
.gkb-quiz-card strong { margin-top: 3px; font-size: .93rem; line-height: 1.38; }
.gkb-quiz-card b { color: var(--gkb-green-700); font-size: 1.15rem; }

.gkb-visual-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.gkb-visual-card { overflow: hidden; border-radius: 16px; background: var(--gkb-green-50); }
.gkb-visual-card > a { position: relative; display: block; aspect-ratio: 4 / 5; overflow: hidden; }
.gkb-visual-card img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.gkb-visual-card:hover img { transform: scale(1.045); }
.gkb-visual-placeholder { width: 100%; height: 100%; display: grid; place-items: center; color: var(--gkb-green-800); font-weight: 900; }
.gkb-visual-overlay { position: absolute; inset: auto 0 0; display: grid; padding: 50px 18px 18px; color: #fff; background: linear-gradient(transparent, rgba(4,39,26,.88)); }
.gkb-visual-overlay strong { line-height: 1.35; }
.gkb-visual-overlay small { margin-top: 7px; color: #c4f0d7; font-weight: 700; }

.gkb-why-section { background: var(--gkb-green-950); color: #fff; }
.gkb-why-section .gkb-section-heading h2 { color: #fff; }
.gkb-why-section .gkb-kicker { color: #aee8ca; }
.gkb-feature-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.gkb-feature { padding: 28px; border: 1px solid rgba(255,255,255,.13); border-radius: var(--gkb-radius-md); background: rgba(255,255,255,.055); }
.gkb-feature > span { display: inline-grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; color: var(--gkb-green-950); background: #bff0d5; font-weight: 900; }
.gkb-feature h3 { margin: 20px 0 8px; color: #fff; font-size: 1.08rem; }
.gkb-feature p { margin: 0; color: rgba(255,255,255,.68); font-size: .85rem; }

.gkb-author-section { background: var(--gkb-soft); }
.gkb-author-card { display: grid; grid-template-columns: 150px 1fr 150px; gap: 34px; align-items: center; padding: 38px; border: 1px solid var(--gkb-line); border-radius: var(--gkb-radius-lg); background: #fff; box-shadow: var(--gkb-shadow); }
.gkb-author-photo img { display: block; width: 135px; height: 135px; object-fit: cover; border-radius: 50%; border: 7px solid var(--gkb-green-50); }
.gkb-author-copy h2 { margin: 8px 0 10px; color: var(--gkb-green-950); font-size: clamp(1.6rem, 2.5vw, 2.35rem); line-height: 1.2; }
.gkb-author-copy p { margin: 0 0 13px; color: var(--gkb-muted); }
.gkb-author-stat { min-height: 118px; display: grid; align-content: center; justify-items: center; padding: 18px; text-align: center; border-radius: 16px; background: var(--gkb-green-50); }
.gkb-author-stat strong { color: var(--gkb-green-800); font-size: 1.9rem; }
.gkb-author-stat span { color: var(--gkb-muted); font-size: .74rem; }

.gkb-final-cta { padding: 68px 0; color: #fff; background: linear-gradient(120deg, var(--gkb-green-800), var(--gkb-green-600)); }
.gkb-final-cta-inner { display: flex; justify-content: space-between; align-items: center; gap: 40px; }
.gkb-final-cta h2 { max-width: 740px; margin: 8px 0; color: #fff; font-size: clamp(2rem, 3.2vw, 3rem); line-height: 1.13; }
.gkb-final-cta p { margin: 0; color: rgba(255,255,255,.75); }
.gkb-final-actions { display: flex; gap: 11px; flex: 0 0 auto; }
.gkb-button-outline-white { color: #fff !important; border: 1px solid rgba(255,255,255,.48); background: transparent; }

.gkb-footer { padding: 58px 0 24px; color: #c9d6cf; background: #062f23; }
.gkb-footer-grid { display: grid; grid-template-columns: 1.6fr repeat(3, 1fr); gap: 50px; }
.gkb-brand-footer .gkb-brand-copy strong { color: #fff; }
.gkb-brand-footer .gkb-brand-copy small { color: #a8bbb1; }
.gkb-footer-grid > div:first-child > p { max-width: 300px; color: #9fb2a8; font-size: .86rem; }
.gkb-footer h2 { margin: 0 0 14px; color: #fff; font-size: .88rem; text-transform: uppercase; letter-spacing: .08em; }
.gkb-footer-grid > div:not(:first-child) { display: flex; flex-direction: column; align-items: flex-start; }
.gkb-footer-grid a:not(.gkb-brand) { margin: 5px 0; color: #aebfb6; font-size: .84rem; }
.gkb-footer-grid a:hover { color: #fff; }
.gkb-footer-bottom { display: flex; justify-content: space-between; gap: 20px; margin-top: 42px; padding-top: 20px; border-top: 1px solid rgba(255,255,255,.1); }
.gkb-footer-bottom p,
.gkb-footer-bottom a { margin: 0; color: #91a69b; font-size: .78rem; }

@media (max-width: 1080px) {
    .gkb-header-cta { display: none; }
    .gkb-primary-nav ul { gap: 18px; }
    .gkb-hero-grid { grid-template-columns: 1fr 390px; gap: 42px; }
    .gkb-category-grid, .gkb-post-grid { grid-template-columns: repeat(2, 1fr); }
    .gkb-visual-grid, .gkb-feature-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 860px) {
    .gkb-container { width: min(calc(100% - 30px), var(--gkb-container)); }
    .gkb-header-inner { min-height: 70px; }
    .gkb-menu-toggle { display: block; margin-left: auto; }
    .gkb-primary-nav {
        display: none; position: absolute; left: 15px; right: 15px; top: calc(100% + 1px);
        margin: 0; padding: 13px; border: 1px solid var(--gkb-line); border-radius: 0 0 15px 15px;
        background: #fff; box-shadow: var(--gkb-shadow);
    }
    .gkb-primary-nav.is-open { display: block; }
    .gkb-primary-nav ul { display: grid; gap: 2px; }
    .gkb-primary-nav a { display: block; padding: 11px 12px; border-radius: 8px; }
    .gkb-primary-nav a:hover { background: var(--gkb-green-50); }
    .gkb-menu-toggle[aria-expanded="true"] > span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
    .gkb-menu-toggle[aria-expanded="true"] > span:nth-child(2) { opacity: 0; }
    .gkb-menu-toggle[aria-expanded="true"] > span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

    .gkb-hero { padding: 64px 0; }
    .gkb-hero-grid { grid-template-columns: 1fr; gap: 42px; }
    .gkb-hero-content { text-align: center; }
    .gkb-hero-content > p, .gkb-search { margin-inline: auto; }
    .gkb-hero-actions, .gkb-trust-row { justify-content: center; }
    .gkb-hero-panel { max-width: 600px; width: 100%; margin-inline: auto; }
    .gkb-section { padding: 64px 0; }
    .gkb-practice-grid { grid-template-columns: 1fr; gap: 38px; }
    .gkb-current-banner, .gkb-final-cta-inner { align-items: flex-start; flex-direction: column; }
    .gkb-author-card { grid-template-columns: 120px 1fr; }
    .gkb-author-stat { display: none; }
    .gkb-footer-grid { grid-template-columns: 1.4fr 1fr 1fr; }
    .gkb-footer-grid > div:last-child { display: none; }
}

@media (max-width: 620px) {
    .gkb-container { width: min(calc(100% - 24px), var(--gkb-container)); }
    .gkb-brand-copy small { display: none; }
    .gkb-brand-mark { width: 42px; height: 42px; }
    .gkb-hero { padding: 48px 0 52px; }
    .gkb-hero h1 { margin-top: 14px; font-size: clamp(2.08rem, 10.8vw, 2.78rem); overflow-wrap: break-word; }
    .gkb-hero-content > p { font-size: .98rem; }
    .gkb-search { padding: 5px; }
    .gkb-search button { padding-inline: 15px; }
    .gkb-hero-actions .gkb-button { width: 100%; }
    .gkb-trust-row { gap: 10px 15px; font-size: .78rem; }
    .gkb-hero-panel { padding: 18px; }
    .gkb-quick-item { grid-template-columns: 42px 1fr auto; padding-block: 14px; }
    .gkb-quick-item small { display: none; }

    .gkb-section { padding: 52px 0; }
    .gkb-section-heading { margin-bottom: 26px; }
    .gkb-heading-row { align-items: flex-start; flex-direction: column; }
    .gkb-category-grid, .gkb-post-grid, .gkb-visual-grid, .gkb-feature-grid { grid-template-columns: 1fr; }
    .gkb-category-card { min-height: auto; padding: 23px; }
    .gkb-category-card p { min-height: auto; }
    .gkb-current-banner { padding: 29px 24px; }
    .gkb-current-list { padding: 6px 16px; }
    .gkb-current-item { grid-template-columns: 50px 1fr; gap: 14px; }
    .gkb-round-link { display: none; }
    .gkb-current-item h3 { font-size: .91rem; }
    .gkb-practice-copy h2 { font-size: 2rem; }
    .gkb-quiz-card { grid-template-columns: 42px 1fr auto; padding: 16px; }
    .gkb-visual-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
    .gkb-visual-overlay { padding: 42px 12px 12px; }
    .gkb-visual-overlay strong { font-size: .78rem; }
    .gkb-visual-overlay small { display: none; }
    .gkb-feature { padding: 24px; }
    .gkb-author-card { grid-template-columns: 1fr; justify-items: center; padding: 27px 22px; text-align: center; }
    .gkb-author-photo img { width: 110px; height: 110px; }
    .gkb-final-cta { padding: 52px 0; }
    .gkb-final-actions { width: 100%; flex-direction: column; }
    .gkb-footer-grid { grid-template-columns: 1fr 1fr; gap: 34px 22px; }
    .gkb-footer-grid > div:first-child { grid-column: 1 / -1; }
    .gkb-footer-bottom { align-items: flex-start; flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
