/* ============================================
   ZSENIBAGOLY - Official Brand Colors by Ivett
   Design: Playful, Friendly, Professional
   ============================================ */

/* ── WCAG AA Contrast Reference ──────────────────────────
   All text-on-background pairs verified against WCAG 2.1 AA:
   - Normal text (< 18pt): minimum 4.5:1
   - Large text (≥ 18pt / ≥ 14pt bold): minimum 3.0:1

   Key pairs on --cream (#fdfcfa):
     --text      (#2a3f42)  → ~11.3:1 ✓
     --text-muted (#4d6266) →  ~5.3:1 ✓
     --text-light (#4a6a6f) →  ~5.0:1 ✓
     --teal-dark (#1a5f6a)  →  ~7.2:1 ✓
     --teal      (#237a87)  →  ~5.5:1 ✓

   Key pairs on white (#ffffff):
     --text-muted (#4d6266) →  ~5.5:1 ✓
     --text-light (#4a6a6f) →  ~5.2:1 ✓

   Footer text on --teal-dark (#1a5f6a):
     rgba(255,255,255,.92)  →  ~6.8:1 ✓

   Accessible text-on-pastel:
     --text-on-peach   (#7a3a15) on --peach-light  → ~5.5:1 ✓
     --text-on-mint    (#0d4a42) on --mint-light    → ~7.3:1 ✓
     --text-on-lavender(#3d2f52) on --lavender-light→ ~7.0:1 ✓
     --text-on-pink    (#6b2040) on --pink-light    → ~6.5:1 ✓
   ────────────────────────────────────────────────── */

/* --- CSS Custom Properties - OFFICIAL BRAND COLORS --- */
:root {
    /* Primary Teal (from logo) */
    --teal-dark: #1a5f6a;
    /* Main owl body, "BAGOLY" text */
    --teal: #237a87;
    /* Slightly lighter - "zseni" text color */
    --teal-light: #7bccc8;
    /* Very light teal for backgrounds */
    --teal-lightest: #d4efed;

    /* Mint/Seafoam */
    --mint: #8fd4c8;
    --mint-light: #d4f0eb;
    --mint-dark: #5fb8a8;
    /* Kept for contrast if needed, check usage */

    /* Lavender */
    --lavender: #b8a9c9;
    --lavender-light: #e8e2f0;
    --lavender-dark: #9585aa;

    /* Peach/Coral */
    --peach: #f5b88a;
    --peach-light: #fde8d8;
    --peach-dark: #e89a5f;

    /* Pink */
    --pink: #f2c4d0;
    --pink-light: #fce8ed;
    --pink-dark: #e5a3b5;

    /* Orange (beak) */
    --orange: #e8945a;
    --orange-dark: #d47a3f;

    /* Neutrals */
    --cream: #fdfcfa;
    --cream-dark: #f5f2ed;
    --cream-warm: #fffbf7;

    --text: #2a3f42;
    --text-muted: #4d6266;
    --text-light: #4a6a6f;

    /* Accessible text-on-background pairs (WCAG AA validated) */
    --text-on-peach: #7a3a15;
    --text-on-mint: #0d4a42;
    --text-on-lavender: #3d2f52;
    --text-on-pink: #6b2040;
    --color-warning-text: #7a3a15;

    /* Spacing */
    --space-xs: 0.5rem;
    --space-sm: 1rem;
    --space-md: 1.5rem;
    --space-lg: 2.5rem;
    --space-xl: 4rem;
    --space-2xl: 6rem;

    /* Typography - Playful fonts matching logo style */
    --font-display: 'Quicksand', -apple-system, sans-serif;
    --font-body: 'Nunito', -apple-system, sans-serif;

    /* Borders & Shadows */
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --radius-xl: 40px;

    --shadow-soft: 0 4px 20px rgba(26, 95, 106, 0.08);
    --shadow-medium: 0 8px 40px rgba(26, 95, 106, 0.12);
    --shadow-strong: 0 20px 60px rgba(26, 95, 106, 0.15);

    /* Line Heights */
    --lh-tight: 1.2;
    --lh-snug: 1.4;
    --lh-normal: 1.6;
    --lh-relaxed: 1.7;
    --lh-loose: 1.8;

    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-medium: 0.4s ease;
    --transition-slow: 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

/* --- Base Reset & Typography --- */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
    /* Keep the root out of a scrolling overflow context so sticky nav can attach. */
    overflow-x: clip;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

body {
    font-family: var(--font-body);
    font-size: 1rem;
    line-height: 1.7;
    color: var(--text);
    background: var(--cream);
    overflow-x: clip;
    max-width: 100vw;
    -webkit-font-smoothing: antialiased;
    /* Safe-area padding for sticky bottom elements on notched devices */
    padding-bottom: env(safe-area-inset-bottom, 0);
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-display);
    font-weight: 700;
    line-height: 1.2;
    color: var(--teal-dark);
}

h1 {
    font-size: clamp(2.5rem, 6vw, 4rem);
}

h2 {
    font-size: clamp(2rem, 4vw, 3rem);
}

h3 {
    font-size: clamp(1.25rem, 2vw, 1.5rem);
}

p {
    color: var(--text-muted);
}

a {
    color: inherit;
    text-decoration: none;
    transition: var(--transition-fast);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

ul {
    list-style: none;
}

/* --- Global Text Overflow Prevention --- */
h1, h2, h3, h4, h5, h6,
p, li, td, th, dt, dd,
label, span, a, button,
.btn, .section-tag, .hero-title, .hero-subtitle {
    overflow-wrap: break-word;
    hyphens: auto;
    -webkit-hyphens: auto;
}

img, video, iframe, embed, object, table, pre, code {
    max-width: 100%;
}

pre, code {
    overflow-x: auto;
    white-space: pre-wrap;
}

/* --- Global Focus States (Accessibility) --- */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
[tabindex]:focus-visible {
    outline: 3px solid var(--teal-light);
    outline-offset: 2px;
    border-radius: 4px;
}

.btn:focus-visible {
    outline: 3px solid var(--peach);
    outline-offset: 3px;
    box-shadow: 0 0 0 6px rgba(245, 184, 138, 0.25);
}

/* --- Container --- */
.container {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 var(--space-md);
}

/* --- Background Decorative Shapes --- */
.bg-shapes {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -1;
    overflow: hidden;
}

.shape {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    opacity: 0.35;
    will-change: transform;
}

.shape-1 {
    width: 600px;
    height: 600px;
    background: var(--teal-light);
    top: -200px;
    right: -200px;
    animation: float 20s ease-in-out infinite;
}

.shape-2 {
    width: 400px;
    height: 400px;
    background: var(--lavender);
    bottom: 20%;
    left: -100px;
    animation: float 25s ease-in-out infinite reverse;
}

.shape-3 {
    width: 300px;
    height: 300px;
    background: var(--peach);
    bottom: -100px;
    right: 20%;
    animation: float 18s ease-in-out infinite;
}

@keyframes float {

    0%,
    100% {
        transform: translate(0, 0) rotate(0deg);
    }

    33% {
        transform: translate(30px, -30px) rotate(5deg);
    }

    66% {
        transform: translate(-20px, 20px) rotate(-5deg);
    }
}

/* --- Buttons --- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-xs);
    padding: 0.875rem 1.75rem;
    font-family: var(--font-display);
    font-size: 1rem;
    font-weight: 600;
    border-radius: var(--radius-xl);
    border: 2px solid transparent;
    cursor: pointer;
    transition: var(--transition-medium);
    white-space: normal;
    text-align: center;
    line-height: 1.3;
}

.btn svg {
    transition: transform var(--transition-fast);
}

.btn:hover svg {
    transform: translateX(4px);
}

.btn-primary {
    background: var(--teal-dark);
    color: white;
    border-color: var(--teal-dark);
}

.btn-primary:hover {
    background: var(--teal);
    border-color: var(--teal);
    transform: translateY(-2px);
    box-shadow: var(--shadow-medium);
}

.btn-secondary {
    background: var(--peach);
    color: var(--text);
    border-color: var(--peach);
}

.btn-secondary:hover {
    background: var(--peach-dark);
    border-color: var(--peach-dark);
    transform: translateY(-2px);
}

.btn-ghost {
    background: transparent;
    color: var(--teal-dark);
    border: 2px solid var(--teal-dark);
}

.btn-ghost:hover {
    background: var(--teal-lightest);
    color: var(--teal-dark);
}

.btn-outline {
    background: transparent;
    color: var(--teal-dark);
    border-color: var(--teal-light);
}

.btn-outline:hover {
    background: var(--teal-dark);
    color: white;
    border-color: var(--teal-dark);
}

.btn-large {
    padding: 1.125rem 2.5rem;
    font-size: 1.125rem;
}

.btn-full {
    width: 100%;
    justify-content: center;
}

.btn:disabled,
.btn[aria-disabled="true"] {
    opacity: 0.5;
    cursor: not-allowed;
    pointer-events: none;
    transform: none;
    box-shadow: none;
}

/* --- Header & Navigation --- */
/* ============================================
   NAVIGATION SYSTEM
   Single source of truth for all nav behavior.
   Mobile breakpoint: 1199px (hamburger below 1200px)
   ============================================ */
#site-nav {
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(253, 252, 250, 0.92);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(26, 95, 106, 0.08);
}

/* Eleventy keeps the header inside #site-nav; let the wrapper own sticky positioning */
#site-nav > .header {
    position: relative;
    top: auto;
}

.nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--space-xs) var(--space-md);
    min-height: 70px;
}

.logo {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    flex-shrink: 0;
}

.logo-image {
    height: 60px;
    width: auto;
    max-width: 250px;
    object-fit: contain;
    transition: transform var(--transition-fast);
}

.logo:hover .logo-image {
    transform: scale(1.02) translateY(-2px);
}

/* Footer logo styles */
.footer-logo-link .logo-image {
    filter: brightness(0) invert(1);
    opacity: 0.8;
}

.footer-logo-link:hover .logo-image {
    opacity: 1;
}

/* --- Nav Menu (desktop default) --- */
.nav-menu {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    margin: 0;
    padding: 0;
    flex-wrap: nowrap;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-shrink: 0;
    margin-left: var(--space-sm);
}

.nav-install {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    min-height: 44px;
    padding: 0.55rem 0.95rem;
    border: 1px solid rgba(26, 95, 106, 0.16);
    border-radius: var(--radius-xl);
    background: rgba(255, 255, 255, 0.98);
    color: var(--teal-dark);
    font-family: var(--font-display);
    font-size: 0.9rem;
    font-weight: 700;
    line-height: 1;
    cursor: pointer;
    box-shadow: 0 2px 10px rgba(26, 95, 106, 0.08);
    transition: transform var(--transition-fast), box-shadow var(--transition-fast), border-color var(--transition-fast), color var(--transition-fast);
}

.nav-install[hidden] {
    display: none !important;
}

.nav-install svg {
    flex-shrink: 0;
}

.nav-install:hover,
.nav-install:focus-visible {
    border-color: rgba(26, 95, 106, 0.3);
    color: var(--teal);
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(26, 95, 106, 0.14);
}

.nav-install-label {
    white-space: nowrap;
}

.nav-link {
    font-family: var(--font-display);
    font-weight: 600;
    color: var(--text);
    position: relative;
    white-space: nowrap;
    font-size: 0.95rem;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--teal-light);
    border-radius: 2px;
    transition: width var(--transition-fast);
}

.nav-link:hover {
    color: var(--teal-dark);
}

.nav-link:hover::after {
    width: 100%;
}

.nav-cta {
    padding: 0.625rem 1.25rem;
    background: var(--teal-dark);
    color: white !important;
    border-radius: var(--radius-xl);
}

.nav-cta::after {
    display: none;
}

.nav-cta:hover {
    background: var(--teal);
}

/* --- Highlighted nav item (ZseniFészek) --- */
.nav-highlight {
    padding: 0.625rem 1.25rem;
    background: linear-gradient(135deg, var(--orange) 0%, var(--peach-dark) 100%);
    color: white !important;
    border-radius: var(--radius-xl);
    font-weight: 700;
    box-shadow: 0 4px 16px rgba(232, 148, 90, 0.3);
    transition: all 0.3s ease;
}

.nav-highlight::after {
    display: none;
}

.nav-highlight:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(232, 148, 90, 0.4);
    filter: brightness(1.05);
}

/* --- Dropdown container (static so mega-menu positions relative to nav) --- */
.dropdown {
    position: static;
}

.dropdown-toggle {
    display: flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
}

.dropdown-icon {
    transition: transform var(--transition-fast);
}

.dropdown:hover .dropdown-icon {
    transform: rotate(180deg);
}

/* --- Mega-menu (desktop: hover-based) --- */
.mega-menu {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    background: white;
    width: 780px;
    max-width: calc(100vw - 2rem);
    padding: 1.25rem 1.25rem 0.75rem;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-strong);
    opacity: 0;
    visibility: hidden;
    transition: opacity var(--transition-medium), visibility var(--transition-medium), transform var(--transition-medium);
    z-index: 100;
    display: grid;
    grid-template-columns: 1fr 1.8fr 1fr;
    gap: 0.75rem;
}

/* Hover bridge: invisible area between nav link and mega-menu */
.dropdown::before {
    content: '';
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    height: 16px;
    display: none;
}

.dropdown:hover::before {
    display: block;
}

.dropdown:hover .mega-menu {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

/* --- Tier columns --- */
.mega-tier {
    border-top: 3px solid var(--teal-lightest);
    padding-top: 0.5rem;
}

.mega-tier ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.mega-tier--mesterkurzus {
    border-top-color: var(--pink);
}

.mega-tier--szarnysegd {
    border-top-color: var(--teal);
}

.mega-tier--bagolypatika {
    border-top-color: var(--lavender);
}

.mega-tier-title {
    font-family: var(--font-display);
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin: 0 0 0.5rem;
    padding: 0 0.25rem;
}

.mega-tier--mesterkurzus .mega-tier-title {
    color: var(--pink-dark);
}

.mega-tier--szarnysegd .mega-tier-title {
    color: var(--teal-dark);
}

.mega-tier--bagolypatika .mega-tier-title {
    color: var(--lavender-dark);
}

/* --- Course items --- */
.mega-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.4rem 0.25rem;
    border-radius: var(--radius-sm);
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 0.82rem;
    color: var(--text-muted);
    transition: background var(--transition-fast), color var(--transition-fast);
    text-decoration: none;
    line-height: 1.3;
}

.mega-item:hover {
    background: var(--teal-lightest);
    color: var(--teal-dark);
}

/* Internal pages get a subtle left accent */
.mega-item--internal {
    border-left: 2px solid var(--teal-light);
    padding-left: 0.5rem;
}

.mega-item-name {
    flex: 1;
    min-width: 0;
}

/* --- Problem badges --- */
.mega-badge {
    display: inline-block;
    font-size: 0.62rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    padding: 0.15rem 0.4rem;
    border-radius: 999px;
    white-space: nowrap;
    flex-shrink: 0;
    line-height: 1.3;
}

.mega-badge--duhkitoresek {
    background: var(--pink-light);
    color: var(--text-on-pink);
}

.mega-badge--szorongas {
    background: var(--lavender-light);
    color: var(--text-on-lavender);
}

.mega-badge--iskolarettseg {
    background: var(--peach-light);
    color: var(--text-on-peach);
}

.mega-badge--fejlesztes {
    background: var(--mint-light);
    color: var(--text-on-mint);
}

.mega-badge--viselkedes {
    background: #fff3e0;
    color: #7a3a15;
}

.mega-badge--szuloi-jollet {
    background: var(--teal-lightest);
    color: var(--teal-dark);
}

.mega-badge--alvas {
    background: #e8e2f0;
    color: var(--text-on-lavender);
}

.mega-badge--mindennapok {
    background: var(--cream-dark);
    color: var(--text-muted);
}

/* --- Mega-menu footer --- */
.mega-footer {
    grid-column: 1 / -1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-top: 1px solid var(--teal-lightest);
    padding-top: 0.75rem;
    margin-top: 0.25rem;
    padding-bottom: 0.25rem;
}

.mega-footer-cta {
    display: inline-block;
    padding: 0.5rem 1.25rem;
    background: linear-gradient(135deg, var(--orange) 0%, var(--peach-dark) 100%);
    color: white !important;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 0.85rem;
    border-radius: var(--radius-xl);
    text-decoration: none;
    transition: all var(--transition-fast);
    box-shadow: 0 2px 8px rgba(232, 148, 90, 0.3);
}

/* --- Single-tier mega-menu variant (e.g. Hasznos anyagok) --- */
.mega-menu--single {
    grid-template-columns: 1fr;
    width: 380px;
}

.mega-menu--single .mega-tier {
    border-top-color: var(--teal);
}

.mega-menu--single .mega-tier-title {
    color: var(--teal-dark);
}

.mega-footer-cta:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(232, 148, 90, 0.4);
    filter: brightness(1.05);
}

.mega-footer-all {
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 0.85rem;
    color: var(--teal-dark);
    text-decoration: none;
    transition: color var(--transition-fast);
}

.mega-footer-all:hover {
    color: var(--teal);
}

/* --- Cart icon --- */
.nav-cart {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem !important;
    color: var(--teal-dark);
    transition: all var(--transition-fast);
}

.nav-cart:hover {
    color: var(--orange);
    transform: scale(1.1);
}

.nav-cart svg {
    display: block;
}

/* --- Mobile menu close button (hidden on desktop) --- */
.nav-close-wrapper {
    display: none;
}

/* --- Hamburger toggle (hidden on desktop) --- */
.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    padding: 12px;
    min-width: 44px;
    min-height: 44px;
    align-items: center;
    justify-content: center;
    background: none;
    border: none;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
    z-index: 1001;
}

.nav-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--teal-dark);
    border-radius: 2px;
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1),
                opacity 0.25s ease;
}

.nav-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.nav-toggle.active span:nth-child(2) {
    opacity: 0;
}

.nav-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

/* --- Future/Coming Soon Page Indicators --- */
.future-page {
    position: relative;
    background: linear-gradient(135deg, var(--lavender-light) 0%, var(--peach-light) 100%);
    opacity: 0.75;
}

.future-page::after {
    content: "Hamarosan";
    display: inline-block;
    margin-left: 0.5rem;
    padding: 0.125rem 0.5rem;
    font-size: 0.7rem;
    font-weight: 700;
    color: var(--lavender-dark);
    background: white;
    border-radius: 10px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.future-page:hover {
    opacity: 1;
    background: linear-gradient(135deg, var(--lavender) 0%, var(--peach) 100%);
    color: var(--teal-dark);
}

/* ==============================================
   MEDIUM DESKTOP NAV — Tighter spacing (1200–1500px)
   Prevents overflow when hamburger is hidden but
   viewport is not wide enough for full spacing.
   ============================================== */
@media (min-width: 1200px) and (max-width: 1500px) {
    .logo-image {
        height: 48px;
        max-width: 200px;
    }

    .nav-menu {
        gap: 0.75rem;
    }

    .nav-link {
        font-size: 0.875rem;
    }

    .nav-install {
        padding: 0.5rem 0.8rem;
        font-size: 0.84rem;
    }

    .nav-highlight {
        padding: 0.5rem 1rem;
        font-size: 0.875rem;
    }

    .dropdown-toggle {
        gap: 4px;
    }
}

/* ==============================================
   MOBILE NAV — Full-screen overlay (< 1200px)
   Stratos-style immersive mobile menu
   ============================================== */
@media (max-width: 1199px) {
    .nav-actions {
        margin-left: auto;
        gap: 0.5rem;
    }

    .nav-install {
        border-radius: 12px;
        padding: 0.55rem 0.8rem;
        font-size: 0.84rem;
    }

    .nav-toggle {
        display: flex;
    }

    .nav-toggle.active {
        display: none;
    }

    .nav-menu {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        height: 100dvh;
        z-index: 999;
        background: var(--cream);
        flex-direction: column;
        align-items: center;
        justify-content: center;
        padding: 100px var(--space-lg) var(--space-xl);
        padding-bottom: calc(var(--space-xl) + env(safe-area-inset-bottom, 0px));
        gap: 0;
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
        transition: opacity 0.4s cubic-bezier(0.4, 0, 0.2, 1),
                    visibility 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }

    .nav-menu.active {
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
    }

    /* Close button inside mobile menu */
    .nav-close-wrapper {
        display: block;
        position: absolute;
        top: 1.25rem;
        right: 1.25rem;
        list-style: none;
        z-index: 1001;
    }

    .nav-close {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 44px;
        height: 44px;
        background: none;
        border: 2px solid var(--teal-dark);
        border-radius: 50%;
        font-size: 1.75rem;
        line-height: 1;
        color: var(--teal-dark);
        cursor: pointer;
        transition: background 0.2s ease, color 0.2s ease;
        padding: 0;
    }

    .nav-close:hover,
    .nav-close:focus-visible {
        background: var(--teal-dark);
        color: var(--cream);
    }

    /* Staggered entrance animation for menu items (skip close-wrapper) */
    .nav-menu > li:not(.nav-close-wrapper) {
        border-bottom: none;
        padding: 0;
        text-align: center;
        transform: translateY(20px);
        opacity: 0;
        transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1),
                    opacity 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    }

    .nav-menu.active > li:not(.nav-close-wrapper) {
        transform: translateY(0);
        opacity: 1;
    }

    .nav-menu.active > li:nth-child(2) { transition-delay: 0.08s; }
    .nav-menu.active > li:nth-child(3) { transition-delay: 0.14s; }
    .nav-menu.active > li:nth-child(4) { transition-delay: 0.20s; }
    .nav-menu.active > li:nth-child(5) { transition-delay: 0.26s; }
    .nav-menu.active > li:nth-child(6) { transition-delay: 0.32s; }
    .nav-menu.active > li:nth-child(7) { transition-delay: 0.38s; }
    .nav-menu.active > li:nth-child(8) { transition-delay: 0.44s; }

    /* Reset delay on close for clean exit */
    .nav-menu:not(.active) > li {
        transition-delay: 0s;
    }

    .nav-menu .nav-link {
        display: block;
        padding: 0.75rem 0;
        font-size: 1.5rem;
        font-weight: 700;
        letter-spacing: 0.01em;
        white-space: normal;
        color: var(--teal-dark);
        transition: color 0.2s ease, transform 0.2s ease;
    }

    .nav-menu .nav-link:hover {
        color: var(--teal);
        transform: scale(1.05);
    }

    .nav-menu .nav-link::after {
        display: none;
    }

    .nav-menu .nav-highlight {
        text-align: center;
        margin-top: var(--space-sm);
        font-size: 1.5rem;
        padding: 0.75rem 2rem;
    }

    .nav-menu .nav-cart {
        justify-content: center;
        padding: 0.75rem 0 !important;
    }

    .nav-menu .nav-cart svg {
        width: 28px;
        height: 28px;
    }

    /* --- Mobile mega-menu: tap-based accordion --- */
    .dropdown {
        position: relative;
    }

    .mega-menu {
        position: static;
        transform: none !important;
        box-shadow: none;
        background: transparent;
        opacity: 1 !important;
        visibility: visible !important;
        display: none;
        width: 100%;
        max-width: 100%;
        padding: 0.5rem 0;
        grid-template-columns: 1fr;
        gap: 0;
    }

    /* Disable desktop hover entirely on mobile */
    .dropdown:hover .mega-menu {
        display: none;
    }

    .dropdown:hover::before {
        display: none;
    }

    /* Only show via JS .active class */
    .dropdown.active .mega-menu,
    .dropdown.active:hover .mega-menu {
        display: grid;
    }

    .dropdown-toggle .dropdown-icon {
        transition: transform var(--transition-fast);
    }

    .dropdown.active .dropdown-toggle .dropdown-icon {
        transform: rotate(180deg);
    }

    /* Tier accordion: collapsed by default */
    .mega-tier {
        border-top: none;
        padding-top: 0;
        border-radius: var(--radius-md);
        overflow: hidden;
    }

    .mega-tier-title {
        padding: 0.75rem 1rem;
        margin: 0;
        cursor: pointer;
        display: flex;
        align-items: center;
        justify-content: space-between;
        font-size: 0.9rem;
        background: rgba(40, 122, 134, 0.05);
        border-radius: var(--radius-md);
        margin-bottom: 0.25rem;
        user-select: none;
    }

    .mega-tier-title::after {
        content: '';
        display: inline-block;
        width: 8px;
        height: 8px;
        border-right: 2px solid currentcolor;
        border-bottom: 2px solid currentcolor;
        transform: rotate(-45deg);
        transition: transform var(--transition-fast);
        flex-shrink: 0;
    }

    .mega-tier.active .mega-tier-title::after {
        transform: rotate(45deg);
    }

    .mega-tier ul {
        display: none;
        padding: 0.25rem 0 0.5rem;
    }

    .mega-tier.active ul {
        display: block;
    }

    .mega-item {
        justify-content: center;
        font-size: 1rem;
        padding: 0.5rem 1rem;
        text-align: center;
        flex-wrap: wrap;
    }

    .mega-item--internal {
        border-left: none;
        padding-left: 1rem;
    }

    .mega-badge {
        font-size: 0.58rem;
    }

    /* Footer stacked on mobile */
    .mega-footer {
        flex-direction: column;
        gap: 0.75rem;
        text-align: center;
        padding-top: 0.75rem;
        border-top: none;
    }

    .mega-footer-cta {
        width: 100%;
        text-align: center;
        padding: 0.75rem 1.5rem;
        font-size: 1rem;
    }
}

/* Small phones: tighter menu spacing */
@media (max-width: 1199px) and (max-height: 700px) {
    .nav-menu {
        padding-top: 80px;
        padding-bottom: var(--space-md);
    }

    .nav-menu .nav-link {
        padding: 0.5rem 0;
        font-size: 1.25rem;
    }

    .nav-menu .nav-highlight {
        font-size: 1.25rem;
        padding: 0.5rem 1.5rem;
    }

    .mega-item {
        padding: 0.35rem 0.75rem;
        font-size: 0.9rem;
    }

    .mega-tier-title {
        padding: 0.5rem 0.75rem;
        font-size: 0.8rem;
    }
}

/* --- Urgency banner stacking (any viewport) --- */
body.has-urgency-banner .header {
    z-index: 1050;
}

body.has-urgency-banner #site-nav {
    z-index: 1050;
}

@media (max-width: 1199px) {
    body.has-urgency-banner .nav-menu {
        z-index: 1040;
        padding-top: calc(100px + 44px);
    }
}

@media (max-width: 768px) {
    .nav-install {
        width: 44px;
        min-width: 44px;
        padding: 0;
    }

    .nav-install-label {
        display: none;
    }

    body.has-urgency-banner .nav-menu {
        padding-top: calc(100px + 38px);
    }
}

/* V2 Section Title Styles are now in v2-landing.css */

/* (Mobile dropdown + nav-toggle rules consolidated into NAVIGATION SYSTEM above) */

/* (section-tag/title/subtitle canonical definitions are in the Section Headers block below) */

/* (Hero section moved to homepage.css — only homepage uses .hero) */

.text-gradient {
    display: block;
    background: linear-gradient(135deg, var(--teal-light) 0%, var(--teal-dark) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.trust-item {
    display: flex;
    align-items: center;
    gap: var(--space-xs);
    font-size: 0.9rem;
    color: var(--text-muted);
}

/* (Hero visual/floating/owl moved to homepage.css) */

/* --- Features Bar (3 Cols) --- */
.features-bar {
    padding: var(--space-xl) 0;
    background: white;
    /* Clean white background below hero */
    position: relative;
    z-index: 2;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--space-lg);
}

.feature-card {
    background: var(--cream);
    /* Very subtle tint */
    border-radius: var(--radius-lg);
    padding: var(--space-lg);
    text-align: center;
    transition: var(--transition-medium);
}

.feature-card:hover {
    background: white;
    box-shadow: var(--shadow-medium);
    transform: translateY(-5px);
}

.feature-icon-circle {
    width: 80px;
    height: 80px;
    background: var(--mint);
    /* Cyan/Mint tone */
    border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
    /* Blobby shape */
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto var(--space-md);
    box-shadow: 0 4px 12px rgba(143, 212, 200, 0.3);
}

.feature-title {
    color: var(--teal-dark);
    font-size: 1.15rem;
    line-height: 1.3;
    margin-bottom: var(--space-sm);
    font-weight: 700;
}

.feature-desc {
    font-size: 0.9rem;
    line-height: 1.6;
    color: var(--teal-dark);
    opacity: 0.8;
}

/* --- Section Headers --- */
.section-header {
    text-align: center;
    max-width: 640px;
    margin: 0 auto var(--space-xl);
}

.section-tag {
    display: inline-block;
    padding: 0.375rem 1rem;
    background: var(--teal-dark);
    color: white;
    font-family: var(--font-display);
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    border-radius: var(--radius-xl);
    margin-bottom: var(--space-sm);
}

.section-title {
    margin-bottom: var(--space-sm);
    text-align: center;
}

.section-subtitle {
    font-size: 1.125rem;
    color: var(--text-muted);
    line-height: 1.7;
    max-width: 600px;
    margin: 0 auto;
}

/* --- Courses Section --- */
.courses {
    padding: var(--space-2xl) 0;
    background: var(--cream-dark);
    position: relative;
}

.courses-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr));
    gap: var(--space-md);
    margin-bottom: var(--space-xl);
}

.course-card {
    position: relative;
    background: var(--cream);
    border-radius: var(--radius-lg);
    padding: var(--space-lg);
    transition: var(--transition-medium);
    border: 2px solid transparent;
    overflow: hidden;
}

.course-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-strong);
    border-color: var(--teal-light);
}

.course-featured {
    background: linear-gradient(135deg, var(--teal-dark) 0%, var(--teal) 100%);
    color: white;
    grid-row: span 2;
}

.course-featured .course-title,
.course-featured .course-desc {
    color: white;
}

.course-featured .course-desc {
    opacity: 0.9;
}

.course-badge {
    position: absolute;
    top: var(--space-md);
    right: var(--space-md);
    padding: 0.375rem 0.75rem;
    background: var(--peach);
    color: var(--teal-dark);
    font-family: var(--font-display);
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    border-radius: var(--radius-xl);
}

.course-icon {
    margin-bottom: var(--space-md);
}

.course-title {
    margin-bottom: var(--space-sm);
}

.course-desc {
    margin-bottom: var(--space-md);
    font-size: 0.95rem;
}

.course-features {
    margin-bottom: var(--space-lg);
}

.course-features li {
    display: flex;
    align-items: center;
    gap: var(--space-xs);
    margin-bottom: var(--space-xs);
    font-size: 0.9rem;
    color: white;
    opacity: 0.85;
}

.course-features li::before {
    content: '✓';
    font-weight: bold;
    color: var(--teal);
}

.courses-cta {
    text-align: center;
}

/* (Hero image/illustration/owl moved to homepage.css) */

/* --- Course Card Image Styling --- */
.course-image-wrapper {
    position: relative;
    border-radius: var(--radius-md) var(--radius-md) 0 0;
    margin: calc(-1 * var(--space-lg)) calc(-1 * var(--space-lg)) var(--space-md);
    width: calc(100% + 2 * var(--space-lg));
    overflow: hidden;
    background: var(--cream-dark);
}

.course-image-wrapper::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 40px;
    background: linear-gradient(to top, var(--cream) 0%, transparent 100%);
    pointer-events: none;
    z-index: 1;
}

.course-featured .course-image-wrapper::after {
    background: linear-gradient(to top, var(--teal-dark) 0%, transparent 100%);
}

.course-img {
    display: block;
    width: 100%;
    height: 200px;
    object-fit: cover;
    object-position: center;
    transition: transform var(--transition-medium);
}

.course-card:hover .course-img {
    transform: scale(1.05);
}

.course-featured .course-img {
    height: 260px;
}

/* Course icon positioning on top of image */
.course-image-wrapper + .course-icon {
    position: relative;
    margin-top: -28px;
    margin-bottom: var(--space-sm);
    z-index: 2;
}

.course-image-wrapper + .course-icon svg {
    box-shadow: 0 4px 12px rgba(26, 95, 106, 0.15);
    border-radius: 50%;
    background: white;
}

/* (About section moved to rolam.css) */

/* --- Guarantee Section --- */
.guarantee {
    padding: var(--space-2xl) 0;
    background: linear-gradient(135deg, var(--teal-dark) 0%, var(--teal) 100%);
}

.guarantee-card {
    text-align: center;
    max-width: 720px;
    margin: 0 auto;
    padding: var(--space-xl);
}

.guarantee-icon {
    margin-bottom: var(--space-md);
}

.guarantee-title {
    color: white;
    margin-bottom: var(--space-md);
}

.guarantee-text {
    color: white;
    opacity: 0.9;
    font-size: 1.125rem;
    margin-bottom: var(--space-lg);
}

.guarantee-features {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: var(--space-md);
}

.gf-item {
    display: flex;
    align-items: center;
    gap: var(--space-xs);
    color: white;
    font-weight: 500;
}

/* Guarantee card reset (homepage) */
.guarantee .guarantee-card {
    background: transparent;
    display: block;
    border: none;
    box-shadow: none;
    border-radius: 0;
}

.guarantee .guarantee-icon {
    width: auto;
    height: auto;
    background: none;
    border-radius: 0;
    box-shadow: none;
}

/* (Contact section moved to kapcsolat.css) */

/* --- Footer --- */
.footer {
    background: var(--teal-dark);
    color: white;
    padding: var(--space-xl) 0 var(--space-md);
    padding-bottom: calc(var(--space-md) + env(safe-area-inset-bottom, 0px));
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: var(--space-xl);
    margin-bottom: var(--space-xl);
}

.footer-brand .logo {
    margin-bottom: var(--space-sm);
}

.footer-tagline {
    color: rgba(255, 255, 255, 0.92);
    font-size: 0.95rem;
}

.footer-heading {
    color: white;
    font-family: var(--font-display);
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: var(--space-md);
}

.footer-nav ul {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
}

.footer a {
    color: rgba(255, 255, 255, 0.9);
}

.footer-nav a {
    font-size: 0.9rem;
}

.footer a:hover {
    color: var(--teal-light);
}

/* .footer-heading also covers social heading via shared class */

.social-links {
    display: flex;
    gap: var(--space-sm);
}

.social-links a {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-sm);
    color: white;
    transition: var(--transition-fast);
}

.social-links a:hover {
    background: var(--teal-light);
    color: var(--teal-dark);
}

.footer-bottom {
    text-align: center;
    padding-top: var(--space-md);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-bottom p {
    color: rgba(255, 255, 255, 0.92);
    font-size: 0.875rem;
}

/* --- Responsive Design --- */

/* Tablet */
@media (max-width: 1024px) {
    .hero-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-content {
        order: 2;
    }

    .hero-visual {
        order: 1;
    }

    .hero-subtitle {
        margin: 0 auto var(--space-lg);
    }

    .hero-cta {
        justify-content: center;
    }

    .hero-trust {
        justify-content: center;
    }

    .hero-image-wrapper {
        max-width: 340px;
    }

    .owl-container {
        bottom: -20px;
        right: -10px;
    }

    .owl-main {
        max-width: 120px;
    }

    .about-grid {
        grid-template-columns: 1fr;
        gap: var(--space-lg);
    }

    .about-image {
        max-width: 400px;
        margin: 0 auto;
    }

    .contact-grid {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: var(--space-lg);
    }
}

/* (Mobile nav rules consolidated into NAVIGATION SYSTEM section above) */

/* Mobile/Tablet layout (< 992px) */
@media (max-width: 991px) {
    :root {
        --space-xl: 3rem;
        --space-2xl: 4rem;
    }

    .logo-icon {
        height: 50px;
    }

    .logo-text {
        font-size: 1.3rem;
    }

    .hero {
        padding-top: var(--space-xl);
        min-height: auto;
    }

    .hero-image-wrapper {
        max-width: 300px;
    }

    .owl-container {
        bottom: -16px;
        right: -5px;
    }

    .owl-main {
        max-width: 100px;
    }

    .courses-grid {
        grid-template-columns: 1fr;
    }

    .course-featured {
        grid-row: auto;
    }

    .course-img {
        height: 180px;
    }

    .course-featured .course-img {
        height: 200px;
    }

    .about-stats {
        flex-wrap: wrap;
        justify-content: center;
    }

    .stat {
        flex: 0 0 calc(50% - var(--space-md));
    }

    .guarantee-features {
        flex-direction: column;
        align-items: center;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .footer-brand .logo {
        justify-content: center;
    }

    .social-links {
        justify-content: center;
    }
}

/* (Urgency banner nav stacking consolidated into NAVIGATION SYSTEM section above) */

/* ============================================
   GLOBAL: Mobile (768px) Enhancements
   ============================================ */
@media (max-width: 768px) {
    /* Reduce spacing on mobile */
    :root {
        --space-lg: 2rem;
    }

    /* Footer grid single column */
    .footer-grid {
        grid-template-columns: 1fr;
        gap: var(--space-md);
        text-align: center;
    }

    .footer-brand .logo {
        justify-content: center;
    }

    .social-links {
        justify-content: center;
    }

    /* Form improvements */
    .form-group textarea {
        min-height: 100px;
    }

    /* Checkbox touch target */
    .form-checkbox input[type="checkbox"] {
        width: 22px;
        height: 22px;
        min-width: 22px;
    }

    /* Button sizing */
    .btn-large {
        padding: 0.95rem 1.8rem;
        font-size: 1rem;
    }

    /* Mobile border-radius: reduce large radii on full-width cards
       to avoid awkward near-edge curves when cards fill the viewport */
    .feature-card,
    .trust-item {
        border-radius: var(--radius-md);
    }

    .features-grid {
        gap: var(--space-md);
    }
}

/* --- Scroll fade hint ---
   Wraps horizontally scrollable pill/tab bars to show a right-edge
   gradient when more content is available. JS adds .scroll-fade-wrap
   around .filter-bar / .faq-tabs on mobile, and toggles .scrolled-end. */
.scroll-fade-wrap {
    position: relative;
}

.scroll-fade-wrap::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    width: 40px;
    background: linear-gradient(to right, rgba(255,255,255,0) 0%, rgba(255,255,255,0.95) 100%);
    pointer-events: none;
    z-index: 2;
    transition: opacity 0.3s ease;
}

.scroll-fade-wrap.scrolled-end::after {
    opacity: 0;
}

/* Dark/cream bg variant */
.scroll-fade-wrap--cream::after {
    background: linear-gradient(to right, rgba(255,255,255,0) 0%, var(--cream) 100%);
}

/* --- Global overflow prevention ---
   Prevent any element from causing horizontal scroll on mobile.
   overflow-x: hidden is the fallback for in-app browsers (Facebook, etc.)
   that don't support overflow-x: clip. */
main,
section,
.footer {
    overflow-x: hidden;
    overflow-x: clip;
}

/* Prevent flex children from overflowing their container */
.instructor-stats,
.v2-instructor-stats,
.expert-stats,
.stats-grid,
.about-stats {
    flex-wrap: wrap;
}

/* Ensure stat labels never overflow */
.stat-label,
.v2-instructor-stat-label,
.v2-metric-label {
    overflow-wrap: break-word;
    min-width: 0;
}

/* Images and media must never exceed their container */
img,
video,
iframe,
svg:not(.dropdown-icon):not(.spinner) {
    max-width: 100%;
}

/* ============================================
   GLOBAL VIDEO EMBED (responsive 16:9 Vimeo / YouTube)
   ============================================ */
.video-embed-wrap {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    border-radius: var(--radius-lg, 12px);
    background: #000;
}

.video-embed-wrap iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

/* Small Mobile */
@media (max-width: 480px) {
    :root {
        --space-lg: 1.75rem;
        --space-xl: 2.5rem;
        --space-2xl: 3rem;
    }

    .hero-cta {
        flex-direction: column;
    }

    .btn {
        width: 100%;
        justify-content: center;
        white-space: normal;
        text-align: center;
    }

    .btn-large {
        padding: 0.85rem 1.4rem;
        font-size: 0.95rem;
    }

    .hero-trust {
        flex-direction: column;
        align-items: center;
    }

    .about-badge {
        position: relative;
        bottom: auto;
        right: auto;
        margin: var(--space-md) auto 0;
    }

    /* Container tighter padding */
    .container {
        padding: 0 var(--space-sm);
    }

    /* Full-width bordered cards: reduce radius to avoid edge-hugging curves */
    .feature-card,
    .trust-item {
        border-radius: var(--radius-sm);
    }

    /* Form compact */
    .form-group textarea {
        min-height: 80px;
    }

    .contact-form {
        padding: var(--space-md);
    }

    /* Persona closing */
    .persona-closing-highlight {
        font-size: 1.05rem;
    }

    /* Section titles */
    .hv2-section-title,
    .fv2-section-title {
        font-size: clamp(1.4rem, 5vw, 1.8rem);
    }
}

/* --- Animations on Scroll --- */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.animate-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Staggered animations for cards */
.course-card:nth-child(1) {
    transition-delay: 0.1s;
}

.course-card:nth-child(2) {
    transition-delay: 0.2s;
}

.course-card:nth-child(3) {
    transition-delay: 0.3s;
}

.course-card:nth-child(4) {
    transition-delay: 0.4s;
}

.course-card:nth-child(5) {
    transition-delay: 0.5s;
}

.course-card:nth-child(6) {
    transition-delay: 0.6s;
}

/* --- Skip Navigation Link --- */
.skip-link {
    position: absolute;
    top: -100px;
    left: 0;
    background: var(--teal-dark);
    color: white;
    padding: var(--space-sm) var(--space-md);
    z-index: 10000;
    border-radius: 0 0 var(--radius-sm) 0;
    font-family: var(--font-display);
    font-weight: 600;
    transition: top var(--transition-fast);
}

.skip-link:focus {
    top: 0;
}

/* --- Reduced Motion --- */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    html {
        scroll-behavior: auto;
    }

    .shape,
    .float-item {
        animation: none !important;
    }

    .animate-on-scroll {
        opacity: 1;
        transform: none;
    }
}

/* ============================================
   GLOBAL IMAGE UTILITIES — Reusable across all pages
   ============================================ */

/* Framed image with border, shadow and rounded corners */
.img-framed {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border-radius: var(--radius-lg);
}

/* Image wrapper with shadow and rounded overflow */
.img-frame-card {
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-medium);
    background: var(--cream-dark);
}

.img-frame-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Circular portrait frame */
.img-circle {
    border-radius: 50%;
    overflow: hidden;
    border: 4px solid white;
    box-shadow: var(--shadow-medium);
    background: var(--cream-dark);
}

.img-circle img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Product card image wrapper */
.product-card-image {
    position: relative;
    border-radius: var(--radius-md);
    overflow: hidden;
    background: var(--cream-dark);
    aspect-ratio: 4 / 3;
    margin-bottom: var(--space-md);
}

.product-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform var(--transition-medium);
}

.product-card-image img[style*="padding"] {
    object-fit: contain;
}

.product-card:hover .product-card-image img {
    transform: scale(1.05);
}

/* Category highlight images */
.category-img-wrapper {
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-soft);
    aspect-ratio: 4 / 3;
    background: var(--cream-dark);
}

.category-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Featured course card images (akcio page) */
.featured-course-card-image {
    border-radius: var(--radius-md);
    overflow: hidden;
    aspect-ratio: 3 / 2;
    margin-bottom: var(--space-md);
    background: var(--cream-dark);
}

.featured-course-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Workspace gallery grid (kapcsolat) */
.workspace-gallery {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: var(--space-md);
    margin-top: var(--space-xl);
}

.workspace-gallery img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: var(--radius-lg);
    display: block;
}

.workspace-gallery > * {
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-soft);
    aspect-ratio: 4 / 3;
}

/* Team portrait */
.team-photo-wrapper {
    width: 160px;
    height: 160px;
    margin: 0 auto var(--space-md);
}

.team-photo-wrapper .team-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border-radius: 50%;
    border: 4px solid white;
    box-shadow: var(--shadow-medium);
}

/* Composite image pair */
.team-composite {
    display: flex;
    gap: 0;
    height: 100%;
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.team-composite img {
    width: 50%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Downsell and section-level images */
.ds-section-img img,
.mockup-image {
    display: block;
    max-width: 100%;
    height: auto;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-soft);
}

/* Instructor photo (course pages — real photo) */
.instructor-image-wrapper {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(26, 95, 106, 0.12);
    position: relative;
    background: linear-gradient(135deg, var(--teal-lightest) 0%, var(--mint-light) 100%);
}

.instructor-image-wrapper::before {
    content: '';
    position: absolute;
    inset: -6px;
    border-radius: 50%;
    border: 2px dashed var(--teal-light);
    opacity: 0.4;
    animation: instructor-ring-rotate 20s linear infinite;
}

.instructor-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border-radius: 50%;
}

/* Downsell instructor photo */
.ds-instructor-photo {
    width: 140px;
    height: 140px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
    background: var(--cream-dark);
    box-shadow: var(--shadow-medium);
}

.ds-instructor-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border-radius: 50%;
}

/* Story image frame (rolam page) */
.story-img-frame {
    position: relative;
    border-radius: 40px;
    overflow: hidden;
    box-shadow: var(--shadow-medium);
    border: 5px solid white;
}

.story-img-frame .story-img {
    width: 100%;
    height: auto;
    display: block;
}

/* Mission/generic image frame */
.img-wrapper {
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-medium);
}

.img-wrapper img {
    width: 100%;
    height: auto;
    display: block;
}

/* ============================================
   CONTENT IMAGE SYSTEM — Composable classes
   for all inline content images
   ============================================ */

/* Base: centered block image with default max-width */
.content-img {
    display: block;
    width: 100%;
    max-width: 760px;
    height: auto;
    margin: 0 auto;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-soft);
    transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1),
                box-shadow 0.45s ease;
}

/* Size modifiers */
.content-img--sm { max-width: 480px; }
.content-img--md { max-width: 640px; }
.content-img--lg { max-width: 700px; }
.content-img--full { max-width: 100%; }

/* Style modifiers */
.content-img--shadow {
    box-shadow:
        0 2px 4px rgba(0, 0, 0, 0.04),
        0 8px 32px rgba(26, 95, 106, 0.1),
        0 20px 56px rgba(26, 95, 106, 0.07);
}
.content-img--rounded { border-radius: var(--radius-lg); }

/* Hover lift — float on interaction */
.content-img--hover:hover,
.content-img--hover:focus-visible {
    transform: translateY(-6px) scale(1.015);
    box-shadow:
        0 4px 8px rgba(0, 0, 0, 0.05),
        0 16px 48px rgba(26, 95, 106, 0.14),
        0 32px 72px rgba(26, 95, 106, 0.08);
}

/* Elevated — premium layered shadow without hover */
.content-img--elevated {
    box-shadow:
        0 2px 4px rgba(0, 0, 0, 0.04),
        0 8px 24px rgba(0, 0, 0, 0.08),
        0 24px 56px rgba(0, 0, 0, 0.08);
}

/* Warm — neutral/warm shadow tone (for warm-palette pages) */
.content-img--warm {
    box-shadow:
        0 2px 4px rgba(0, 0, 0, 0.04),
        0 8px 32px rgba(180, 100, 40, 0.1),
        0 20px 56px rgba(180, 100, 40, 0.07);
}

/* Wrapper for centering + spacing */
.content-img-wrap {
    text-align: center;
    margin-bottom: var(--space-lg);
}

/* Caption below image */
.content-img-caption {
    display: block;
    margin-top: 0.35rem;
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* 3-column image grid (e.g. scenario thumbnails) */
.content-img-grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.75rem;
    margin: var(--space-md) 0;
}

/* Video card constrained width (replaces inline max-width:700px) */
.video-card-wrap {
    max-width: 800px;
    margin: 0 auto;
}

/* Responsive: content images */
@media (max-width: 768px) {
    .content-img { max-width: 500px; }
    .content-img--sm { max-width: 260px; }
    .content-img--md { max-width: 340px; }
    .content-img--lg { max-width: 560px; }
    .content-img-grid-3 { gap: 0.5rem; }
}

@media (max-width: 480px) {
    .content-img,
    .content-img--lg { max-width: 100%; }
    .content-img--sm { max-width: 220px; }
    .content-img--md { max-width: 100%; }
    .content-img-grid-3 {
        grid-template-columns: 1fr;
        gap: var(--space-sm);
    }
}

/* Responsive image utilities */
@media (max-width: 991px) {
    .workspace-gallery {
        grid-template-columns: 1fr;
        gap: var(--space-sm);
    }

    .instructor-image-wrapper {
        width: 160px;
        height: 160px;
    }

    .team-photo-wrapper {
        width: 120px;
        height: 120px;
    }
}

@media (max-width: 480px) {
    .instructor-image-wrapper {
        width: 130px;
        height: 130px;
    }

    .ds-instructor-photo {
        width: 100px;
        height: 100px;
    }
}

/* ============================================
   IMAGE PLACEHOLDERS — For future AI generation
   ============================================ */

.img-placeholder {
    position: relative;
    width: 100%;
    border-radius: var(--radius-md);
    border: 2px dashed var(--teal-light);
    background: linear-gradient(135deg, var(--cream-dark) 0%, var(--teal-lightest) 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: var(--space-md);
    overflow: hidden;
    transition: var(--transition-medium);
}

.img-placeholder:hover {
    border-color: var(--teal);
    box-shadow: var(--shadow-soft);
}

/* Aspect ratio variants */
.img-placeholder--hero { aspect-ratio: 16 / 10; }
.img-placeholder--portrait { aspect-ratio: 3 / 4; }
.img-placeholder--square { aspect-ratio: 1 / 1; }
.img-placeholder--card { aspect-ratio: 3 / 2; }
.img-placeholder--wide { aspect-ratio: 21 / 9; }
.img-placeholder--cover { aspect-ratio: 4 / 3; }

/* Color theme variants */
.img-placeholder--pink {
    border-color: var(--pink-dark);
    background: linear-gradient(135deg, var(--pink-light) 0%, #fce8ed 100%);
}
.img-placeholder--lavender {
    border-color: var(--lavender);
    background: linear-gradient(135deg, var(--lavender-light) 0%, #f0ecf5 100%);
}
.img-placeholder--teal {
    border-color: var(--teal-light);
    background: linear-gradient(135deg, var(--teal-lightest) 0%, #e8f6f5 100%);
}
.img-placeholder--mint {
    border-color: var(--mint);
    background: linear-gradient(135deg, var(--mint-light) 0%, #e8f8f3 100%);
}
.img-placeholder--peach {
    border-color: var(--peach);
    background: linear-gradient(135deg, var(--peach-light) 0%, #fff3eb 100%);
}
.img-placeholder--orange {
    border-color: var(--orange);
    background: linear-gradient(135deg, #fde8d8 0%, #fff0e0 100%);
}

.img-placeholder__icon {
    font-size: 2.5rem;
    margin-bottom: var(--space-xs);
    opacity: 0.6;
    line-height: 1;
}

.img-placeholder__id {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--teal);
    background: rgba(255,255,255,0.7);
    padding: 2px 10px;
    border-radius: 20px;
    margin-bottom: var(--space-xs);
}

.img-placeholder__desc {
    font-family: var(--font-body);
    font-size: 0.78rem;
    line-height: 1.5;
    color: var(--text-muted);
    max-width: 420px;
    margin: 0 auto;
}

.img-placeholder__desc strong {
    color: var(--text);
    font-weight: 600;
}

/* When used inside course cards */
.course-card .img-placeholder {
    border-radius: var(--radius-md) var(--radius-md) 0 0;
    margin: calc(-1 * var(--space-lg)) calc(-1 * var(--space-lg)) var(--space-md);
    width: calc(100% + 2 * var(--space-lg));
    padding: var(--space-sm);
}

/* Responsive */
@media (max-width: 768px) {
    .img-placeholder__desc {
        font-size: 0.7rem;
    }
    .img-placeholder__icon {
        font-size: 2rem;
    }
    .img-placeholder--hero {
        aspect-ratio: 4 / 3;
    }
}

/* Persona cards — fully defined in v2-landing.css (single source of truth) */

/* ============================================
   INSTALL EXPERIENCE + IN-APP BROWSER FALLBACKS
   Shared modal + conservative rendering for ad traffic browsers.
   ============================================ */
.zb-install-overlay {
    position: fixed;
    inset: 0;
    z-index: 1200;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--space-md);
    background: rgba(26, 63, 66, 0.55);
}

.zb-install-overlay[hidden] {
    display: none !important;
}

.zb-install-modal {
    width: min(100%, 420px);
    padding: var(--space-lg) var(--space-md);
    border: 1px solid rgba(26, 95, 106, 0.12);
    border-radius: var(--radius-md);
    background: white;
    box-shadow: var(--shadow-strong);
}

.zb-install-title {
    margin-bottom: 0.5rem;
    font-size: 1.35rem;
}

.zb-install-copy {
    margin-bottom: var(--space-sm);
    color: var(--text-muted);
}

.zb-install-steps {
    margin: 0 0 var(--space-md);
    padding-left: 1.25rem;
    color: var(--text);
}

.zb-install-steps li + li {
    margin-top: 0.45rem;
}

.zb-install-actions {
    display: flex;
    justify-content: flex-end;
    gap: 0.75rem;
}

.zb-install-close {
    min-height: 44px;
    padding: 0.75rem 1.1rem;
}

.zb-in-app-browser .header,
.zb-in-app-browser .nav-menu,
.zb-in-app-browser .zb-install-modal {
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
}

/* ============================================
   GLOBAL: Sticky CTA Bar (Mobile)
   Shared base for all course/subscription pages.
   Page-specific colours override via page CSS.
   ============================================ */
.global-sticky-cta {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 1050;
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 -4px 24px rgba(26, 95, 106, 0.12);
    padding: 0.85rem var(--space-md);
    padding-bottom: calc(0.85rem + env(safe-area-inset-bottom, 0px));
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-md);
    transform: translateY(100%);
    transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

.global-sticky-cta.visible {
    transform: translateY(0);
}

.global-sticky-cta-text {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 0.95rem;
    color: var(--teal-dark);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    min-width: 0;
}

.global-sticky-cta-text .sticky-price {
    color: var(--peach-dark);
    font-weight: 800;
}

.global-sticky-cta .btn {
    padding: 0.8rem 1.6rem;
    font-size: 0.92rem;
    border-radius: 12px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    white-space: nowrap;
}

.global-sticky-cta .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(26, 95, 106, 0.25);
}

@media (max-width: 600px) {
    .global-sticky-cta {
        gap: var(--space-sm);
        padding: 0.5rem var(--space-sm);
        padding-bottom: calc(0.5rem + env(safe-area-inset-bottom, 0px));
    }
    .global-sticky-cta-text {
        font-size: 0.78rem;
        line-height: 1.2;
        min-width: 0;
    }
    .global-sticky-cta-text .v2-sticky-cta-trust {
        display: none;
    }
    .global-sticky-cta .btn {
        white-space: nowrap;
        flex-shrink: 0;
        padding: 0.6rem 1rem;
        font-size: 0.82rem;
    }
}
@media (max-width: 480px) {
    .global-sticky-cta {
        padding: 0.45rem var(--space-xs);
        padding-bottom: calc(0.45rem + env(safe-area-inset-bottom, 0px));
    }
    .global-sticky-cta-text {
        font-size: 0.72rem;
    }
    .global-sticky-cta .btn {
        padding: 0.5rem 0.7rem;
        font-size: 0.75rem;
    }
}

/* Live test: remove sticky bottom CTA bars across the site. */
.global-sticky-cta,
.v2-sticky-cta,
.hv2-sticky-cta,
.fv2-sticky-cta,
.sticky-cta {
    display: none !important;
}

/* ============================================
   GLOBAL: FAQ Accordion Base
   Shared structure; page CSS provides colours.
   ============================================ */
.faq-list {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
}

.faq-item {
    border-radius: var(--radius-md);
    overflow: hidden;
    transition: box-shadow var(--transition-fast);
}

.faq-item summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--space-md) var(--space-lg);
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 1.05rem;
    color: var(--text);
    cursor: pointer;
    list-style: none;
    user-select: none;
    transition: background var(--transition-fast);
}

.faq-item summary::-webkit-details-marker { display: none; }

.faq-item summary::after {
    content: '+';
    font-size: 1.5rem;
    font-weight: 300;
    color: var(--teal);
    transition: transform var(--transition-fast);
    flex-shrink: 0;
    margin-left: var(--space-sm);
}

.faq-item[open] summary::after {
    transform: rotate(45deg);
}

.faq-item .faq-answer {
    padding: 0 var(--space-lg) var(--space-md);
    color: var(--text-muted);
    line-height: 1.7;
}

/* ============================================
   GLOBAL: Reduced Motion (Accessibility)
   ============================================ */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }

    .bg-shapes,
    .floating-elements {
        display: none;
    }

    .animate-on-scroll {
        opacity: 1;
        transform: none;
    }
}

/* --- Print Styles --- */
@media print {

    .header,
    .bg-shapes,
    .floating-elements {
        display: none;
    }

    .hero {
        padding-top: var(--space-lg);
        min-height: auto;
    }

    body {
        background: white;
    }
}

/* (Bagolykaland badge moved to homepage.css) */

/* --- Utility Classes --- */
.text-italic { font-style: italic; }
.text-center { text-align: center; }
.mt-xl { margin-top: var(--space-xl); }
.mt-lg { margin-top: var(--space-lg); }
.mb-0 { margin-bottom: 0; }
