/* ==========================================================================
   LOCAL FONTS INFRASTRUCTURE
   ========================================================================== */
@font-face {
    font-family: "Poppins";
    src: url("../fonts/Poppins-Regular.ttf") format("truetype");
    font-weight: 400;
    font-style: normal;
}
@font-face {
    font-family: "Poppins";
    src: url("../fonts/Poppins-Bold.ttf") format("truetype");
    font-weight: 700;
    font-style: normal;
}
@font-face {
    font-family: "Poppins";
    src: url("../fonts/Poppins-Black.ttf") format("truetype");
    font-weight: 900;
    font-style: normal;
}
@font-face {
    font-family: "IRANSans";
    src:
        url("../fonts/IRANSansWeb.woff2") format("woff2"),
        url("../fonts/IRANSansWeb.woff") format("woff"),
        url("../fonts/IRANSansWeb.ttf") format("truetype");
    font-weight: normal;
    font-style: normal;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --accent-neon: #ff5e00;
    --accent-glow: rgba(255, 94, 0, 0.18);
    --font-en: "Poppins", sans-serif;

    /* Dark Theme Properties */
    --bg-dark: #0a0a0c;
    --card-bg: #121216;
    --text-light: #ffffff;
    --text-muted: #a0a0ab;
    --border-line: rgba(255, 255, 255, 0.04);
    --card-shadow: rgba(0, 0, 0, 0.5);
}

[data-theme="light"] {
    --bg-dark: #f4f4f7;
    --card-bg: #ffffff;
    --text-light: #0d0d11;
    --text-muted: #5e5e66;
    --border-line: rgba(0, 0, 0, 0.06);
    --card-shadow: rgba(0, 0, 0, 0.05);
}

/* ==========================================================================
   STRUCTURAL MULTILINGUAL ENGINE (GOOGLE FONTS UPGRADE)
   ========================================================================== */
[dir="rtl"],
[dir="rtl"] body,
[dir="rtl"] h1,
[dir="rtl"] h2,
[dir="rtl"] h3,
[dir="rtl"] p,
[dir="rtl"] a,
[dir="rtl"] span,
[dir="rtl"] button {
    font-family: "Vazirmatn", sans-serif !important;
}

/* Maximize typographic power for Persian sports display titles */
[dir="rtl"] .logo,
[dir="rtl"] .hero-bg-text,
[dir="rtl"] .hero-content h1,
[dir="rtl"] .hero-content h1 .gradient-text,
[dir="rtl"] .section-title h2,
[dir="rtl"] .card h3,
[dir="rtl"] .cta-text h2 {
    font-family: "Vazirmatn", sans-serif !important;
    font-weight: 900 !important;
    letter-spacing: 0 !important;
    line-height: 1.4 !important;
}

[dir="rtl"] p {
    line-height: 1.8 !important;
    font-weight: 400;
}

html {
    scroll-behavior: smooth;
    font-family: var(--font-en);
    background-color: var(--bg-dark);
    color: var(--text-light);
    overflow-x: hidden;
    transition:
        background-color 0.4s ease,
        color 0.4s ease;
}

.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.welcome-consent-open {
    overflow: hidden;
}

.welcome-consent[hidden] {
    display: none;
}

.welcome-consent {
    position: fixed;
    inset: 0;
    z-index: 10000;
    display: grid;
    place-items: center;
    padding: 24px;
    opacity: 0;
    transition: opacity 0.28s ease;
}

.welcome-consent.is-visible {
    opacity: 1;
}

.welcome-consent.is-leaving {
    opacity: 0;
    pointer-events: none;
}

.welcome-consent-backdrop {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 50% 30%, rgba(255, 94, 0, 0.17), transparent 36%),
        rgba(5, 5, 8, 0.82);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
}

.welcome-consent-card {
    position: relative;
    width: min(100%, 520px);
    max-height: calc(100vh - 48px);
    overflow-y: auto;
    padding: 34px;
    border: 1px solid rgba(255, 255, 255, 0.11);
    border-radius: 26px;
    background:
        linear-gradient(145deg, rgba(255, 255, 255, 0.045), transparent 35%),
        #121216;
    color: #fff;
    box-shadow:
        0 30px 90px rgba(0, 0, 0, 0.58),
        0 0 0 1px rgba(255, 94, 0, 0.04);
    transform: translateY(18px) scale(0.97);
    transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}

.welcome-consent.is-visible .welcome-consent-card {
    transform: translateY(0) scale(1);
}

.welcome-consent-brand {
    display: grid;
    place-items: center;
    width: 82px;
    height: 82px;
    margin: -4px auto 14px;
    border-radius: 24px;
    background: rgba(255, 94, 0, 0.08);
    box-shadow: inset 0 0 0 1px rgba(255, 94, 0, 0.16);
}

.welcome-consent-brand img {
    display: block;
    width: 72px;
    height: 72px;
    object-fit: contain;
}

.welcome-consent-eyebrow {
    margin: 0 0 7px;
    color: #ff7b2d;
    font-size: 0.72rem;
    font-weight: 900;
    letter-spacing: 0.22em;
    text-align: center;
}

.welcome-consent-card h2 {
    margin: 0;
    font-size: clamp(1.65rem, 5vw, 2.15rem);
    line-height: 1.2;
    text-align: center;
}

.welcome-consent-card > p:not(.welcome-consent-eyebrow) {
    max-width: 410px;
    margin: 9px auto 24px;
    color: #a9a9b3;
    font-size: 0.92rem;
    line-height: 1.65;
    text-align: center;
}

.welcome-language-options {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin: 0;
    padding: 0;
    border: 0;
}

.welcome-language-option {
    position: relative;
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 9px;
    min-height: 66px;
    padding: 12px 14px;
    border: 1px solid rgba(255, 255, 255, 0.11);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.035);
    cursor: pointer;
    transition:
        border-color 0.2s ease,
        background 0.2s ease,
        transform 0.2s ease;
}

.welcome-language-option:hover {
    border-color: rgba(255, 94, 0, 0.52);
    background: rgba(255, 94, 0, 0.07);
    transform: translateY(-1px);
}

.welcome-language-option:has(input:checked) {
    border-color: #ff5e00;
    background: rgba(255, 94, 0, 0.11);
    box-shadow: 0 0 0 3px rgba(255, 94, 0, 0.1);
}

.welcome-language-option input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.welcome-language-check {
    width: 18px;
    height: 18px;
    border: 2px solid #666670;
    border-radius: 50%;
    box-shadow: inset 0 0 0 4px transparent;
    transition: all 0.2s ease;
}

.welcome-language-option input:checked + .welcome-language-check {
    border-color: #ff5e00;
    background: #ff5e00;
    box-shadow: inset 0 0 0 4px #121216;
}

.welcome-language-option:focus-within {
    outline: 3px solid rgba(255, 94, 0, 0.28);
    outline-offset: 2px;
}

.welcome-language-name {
    font-size: 0.95rem;
    font-weight: 700;
}

.welcome-language-option--fa,
.welcome-language-option--fa .welcome-language-name {
    font-family: "Vazirmatn", "IRANSans", sans-serif !important;
}

.welcome-language-code {
    color: #777781;
    font-size: 0.68rem;
    font-weight: 900;
    letter-spacing: 0.1em;
}

.welcome-site-notes {
    margin-top: 18px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.025);
}

.welcome-site-notes summary {
    position: relative;
    padding: 13px 42px 13px 15px;
    color: #cfcfd5;
    font-size: 0.8rem;
    font-weight: 700;
    cursor: pointer;
    list-style: none;
}

.welcome-site-notes summary::-webkit-details-marker {
    display: none;
}

.welcome-site-notes summary::after {
    content: "+";
    position: absolute;
    top: 50%;
    right: 15px;
    color: #ff7b2d;
    font-size: 1.2rem;
    transform: translateY(-50%);
}

.welcome-consent-card[dir="rtl"] .welcome-site-notes summary {
    padding-right: 15px;
    padding-left: 42px;
}

.welcome-consent-card[dir="rtl"] .welcome-site-notes summary::after {
    right: auto;
    left: 15px;
}

.welcome-site-notes[open] summary::after {
    content: "−";
}

.welcome-site-notes > div {
    padding: 0 15px 13px;
    color: #93939d;
    font-size: 0.75rem;
    line-height: 1.65;
}

.welcome-site-notes p + p {
    margin-top: 7px;
}

.welcome-acceptance {
    display: grid;
    grid-template-columns: auto 1fr;
    align-items: start;
    gap: 10px;
    margin: 17px 1px 20px;
    color: #b8b8c0;
    font-size: 0.79rem;
    line-height: 1.55;
    cursor: pointer;
}

.welcome-acceptance input {
    position: absolute;
    opacity: 0;
}

.welcome-checkbox {
    display: grid;
    place-items: center;
    width: 21px;
    height: 21px;
    margin-top: 1px;
    border: 1px solid #5e5e68;
    border-radius: 6px;
    transition: all 0.2s ease;
}

.welcome-checkbox svg {
    width: 14px;
    height: 14px;
    fill: none;
    stroke: #fff;
    stroke-width: 2.2;
    stroke-linecap: round;
    stroke-linejoin: round;
    opacity: 0;
    transform: scale(0.6);
    transition: all 0.18s ease;
}

.welcome-acceptance input:checked + .welcome-checkbox {
    border-color: #ff5e00;
    background: #ff5e00;
}

.welcome-acceptance input:checked + .welcome-checkbox svg {
    opacity: 1;
    transform: scale(1);
}

.welcome-acceptance:focus-within .welcome-checkbox {
    outline: 3px solid rgba(255, 94, 0, 0.28);
    outline-offset: 2px;
}

.welcome-continue {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    min-height: 52px;
    padding: 12px 20px;
    border: 0;
    border-radius: 14px;
    background: linear-gradient(135deg, #ff7130, #ff4d00);
    color: #fff;
    font: 800 0.9rem/1 var(--font-en);
    cursor: pointer;
    box-shadow: 0 12px 30px rgba(255, 78, 0, 0.24);
    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease,
        opacity 0.2s ease;
}

.welcome-consent-card[lang="fa"],
.welcome-consent-card[lang="fa"] button {
    font-family: "Vazirmatn", "IRANSans", sans-serif !important;
}

.welcome-continue:not(:disabled):hover {
    transform: translateY(-2px);
    box-shadow: 0 16px 36px rgba(255, 78, 0, 0.34);
}

.welcome-continue:disabled {
    opacity: 0.38;
    cursor: not-allowed;
    box-shadow: none;
}

.welcome-continue svg {
    width: 19px;
    height: 19px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.welcome-consent-card[dir="rtl"] .welcome-continue svg {
    transform: scaleX(-1);
}

[data-theme="light"] .welcome-consent-card {
    border-color: rgba(0, 0, 0, 0.08);
    background:
        linear-gradient(145deg, rgba(255, 94, 0, 0.06), transparent 35%),
        #fff;
    color: #111116;
    box-shadow: 0 30px 90px rgba(0, 0, 0, 0.25);
}

[data-theme="light"] .welcome-consent-card > p:not(.welcome-consent-eyebrow),
[data-theme="light"] .welcome-site-notes > div,
[data-theme="light"] .welcome-acceptance {
    color: #666670;
}

[data-theme="light"] .welcome-language-option,
[data-theme="light"] .welcome-site-notes {
    border-color: rgba(0, 0, 0, 0.1);
    background: rgba(0, 0, 0, 0.025);
}

[data-theme="light"] .welcome-language-option:has(input:checked) {
    border-color: #ff5e00;
    background: rgba(255, 94, 0, 0.08);
}

[data-theme="light"] .welcome-language-option input:checked + .welcome-language-check {
    box-shadow: inset 0 0 0 4px #fff;
}

[data-theme="light"] .welcome-site-notes summary {
    color: #38383e;
}

/* Compact first-visit cookie notice: the page remains visible and interactive. */
.welcome-consent {
    inset: auto clamp(14px, 2vw, 26px) clamp(14px, 2vw, 26px) auto;
    display: block;
    width: min(640px, calc(100% - 28px));
    padding: 0;
    opacity: 0;
    pointer-events: none;
    transform: translateY(12px);
    transition:
        opacity 0.22s ease,
        transform 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}

.welcome-consent.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.welcome-consent.is-leaving {
    opacity: 0;
    transform: translateY(8px);
}

.welcome-consent-card {
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr) auto;
    align-items: center;
    gap: 14px;
    width: 100%;
    max-height: none;
    overflow: visible;
    padding: 14px;
    border-radius: 18px;
    background:
        linear-gradient(135deg, rgba(255, 94, 0, 0.08), transparent 42%),
        rgba(18, 18, 22, 0.96);
    box-shadow: 0 16px 42px rgba(0, 0, 0, 0.38);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    pointer-events: auto;
    transform: none;
    transition: none;
}

.welcome-consent.is-visible .welcome-consent-card {
    transform: none;
}

.welcome-consent-icon {
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    border-radius: 13px;
    background: rgba(255, 94, 0, 0.12);
    color: #ff7b2d;
    box-shadow: inset 0 0 0 1px rgba(255, 94, 0, 0.16);
}

.welcome-consent-icon svg {
    width: 23px;
    height: 23px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.welcome-consent-copy {
    min-width: 0;
}

.welcome-consent-copy h2 {
    margin: 0 0 3px;
    font-size: 0.88rem;
    line-height: 1.45;
    text-align: start;
}

.welcome-consent-copy p {
    margin: 0;
    color: #aaaab4;
    font-size: 0.72rem;
    line-height: 1.65;
    text-align: start;
}

.welcome-continue {
    display: inline-flex;
    width: auto;
    min-height: 40px;
    padding: 9px 16px;
    border-radius: 11px;
    background: #ff5e00;
    font-size: 0.76rem;
    white-space: nowrap;
    box-shadow: 0 8px 20px rgba(255, 78, 0, 0.2);
}

.welcome-continue:hover {
    background: #ff7130;
    transform: translateY(-1px);
    box-shadow: 0 10px 24px rgba(255, 78, 0, 0.28);
}

.welcome-continue:focus-visible {
    outline: 3px solid rgba(255, 94, 0, 0.3);
    outline-offset: 3px;
}

[data-theme="light"] .welcome-consent-card {
    background:
        linear-gradient(135deg, rgba(255, 94, 0, 0.07), transparent 42%),
        rgba(255, 255, 255, 0.96);
    box-shadow: 0 16px 42px rgba(25, 25, 32, 0.14);
}

[data-theme="light"] .welcome-consent-copy p {
    color: #666670;
}

.home-nav-shell {
    position: relative;
    z-index: 500;
    max-width: 1500px;
    margin: 0 auto;
    padding: 14px 20px 0;
}

.home-page .hero {
    min-height: calc(100vh - 102px);
    padding-top: 60px;
}

/* Header UI Elements */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 30px 6%;
    position: absolute;
    width: 100%;
    top: 0;
    z-index: 100;
}

.logo {
    font-family: var(--font-en);
    font-weight: 900;
    font-size: 2rem;
}

.logo span {
    color: var(--accent-neon);
}

.header-controls {
    display: flex;
    align-items: center;
    gap: 20px;
}

nav {
    display: flex;
    align-items: center;
    gap: 25px;
}

nav a {
    color: var(--text-light);
    text-decoration: none;
    font-weight: 700;
    font-size: 0.95rem;
    transition: color 0.2s ease;
}

nav a:hover {
    color: var(--accent-neon);
}

nav .btn-nav {
    background: var(--accent-neon);
    padding: 10px 22px;
    border-radius: 6px;
    color: #fff !important;
}

.user-greeting {
    color: var(--text-muted);
    font-size: 0.85rem;
    font-weight: 600;
}

/* ==========================================================================
   USER DROPDOWN MENU
   ========================================================================== */
.user-dropdown {
    position: relative;
    z-index: 150;
}

.user-dropdown-trigger {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px 8px 10px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    background: #121216;
    color: #ffffff;
    font-family: "Poppins", sans-serif;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    outline: none;
    white-space: nowrap;
}

.user-dropdown-trigger:hover,
.user-dropdown.open .user-dropdown-trigger {
    border-color: #ff5e00;
    box-shadow: 0 0 0 3px rgba(255, 94, 0, 0.15);
}

.user-avatar-icon {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: #ff5e00;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.8rem;
    flex-shrink: 0;
    line-height: 1;
}

.dropdown-arrow {
    transition: transform 0.2s;
    color: #a0a0ab;
    flex-shrink: 0;
}

.user-dropdown.open .dropdown-arrow {
    transform: rotate(180deg);
}

.user-dropdown-menu {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    min-width: 190px;
    background: #1a1a22;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 10px;
    padding: 6px;
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.7);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-6px);
    transition: all 0.2s ease;
    z-index: 200;
}

[dir="rtl"] .user-dropdown-menu {
    right: auto;
    left: 0;
}

.user-dropdown.open .user-dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.user-dropdown-menu a {
    display: block;
    padding: 10px 14px;
    color: #d0d0d8;
    text-decoration: none;
    font-size: 0.82rem;
    font-weight: 600;
    border-radius: 6px;
    transition: all 0.15s;
    white-space: nowrap;
}

.user-dropdown-menu a.support-menu-link,
.support-menu-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.support-nav-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 22px;
    height: 22px;
    padding: 0 7px;
    border-radius: 999px;
    background: #ef394e;
    color: #fff;
    font-size: 0.68rem;
    font-weight: 900;
    line-height: 1;
}

.user-dropdown-menu a:hover {
    background: rgba(255, 94, 0, 0.1);
    color: #ff5e00;
}

.user-dropdown-menu hr {
    border: none;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin: 4px 8px;
}

.user-dropdown-menu a:last-child:hover {
    background: rgba(239, 57, 78, 0.1);
    color: #ef394e;
}

.control-btn {
    background: var(--card-bg);
    border: 1px solid var(--border-line);
    color: var(--text-light);
    width: 42px;
    height: 42px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.control-btn:hover {
    border-color: var(--accent-neon);
    color: var(--accent-neon);
}

.control-btn svg {
    width: 18px;
    height: 18px;
}

[data-theme="dark"] .sun-icon,
[data-theme="light"] .moon-icon {
    display: block;
}
[data-theme="dark"] .moon-icon,
[data-theme="light"] .sun-icon {
    display: none;
}

/* Responsive Hero Architecture Rules */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 120px 8% 60px 8%;
    position: relative;
    perspective: 2000px;
    overflow: hidden;
}

.hero-bg-text {
    position: absolute;
    font-family: var(--font-en);
    font-weight: 900;
    font-size: 16vw;
    color: var(--text-light);
    opacity: 0.025;
    user-select: none;
    z-index: 1;
    left: 4%;
    top: 50%;
    transform: translateY(-50%);
    will-change: transform;
}

[dir="rtl"] .hero-bg-text {
    left: auto;
    right: 4%;
}

.hero-content {
    max-width: 580px;
    z-index: 5;
}

.hero-content h1 {
    font-family: var(--font-en);
    font-weight: 900;
    font-size: 4.2rem;
    line-height: 1.1;
    margin-bottom: 25px;
}

.gradient-text {
    background: linear-gradient(45deg, var(--accent-neon), #ff9e00);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-content p {
    color: var(--text-muted);
    font-size: 1.1rem;
    margin-bottom: 40px;
    line-height: 1.7;
}

.btn-primary {
    display: inline-block;
    background: var(--accent-neon);
    color: white;
    padding: 18px 36px;
    text-decoration: none;
    font-weight: 700;
    border-radius: 6px;
    text-transform: uppercase;
    box-shadow: 0 10px 25px var(--accent-glow);
    transition:
        transform 0.3s,
        box-shadow 0.3s;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 30px rgba(255, 94, 0, 0.4);
}

/* Absolute Anti-Jitter Hero Mechanics Layout */
.hero-image-wrapper {
    position: relative;
    width: 400px;
    height: 560px;
    transform-style: preserve-3d;
    z-index: 3;
    backface-visibility: hidden;
}

.hero-image-wrapper * {
    pointer-events: none;
}

.layer {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
}

.layer-bg {
    background: linear-gradient(
        180deg,
        var(--card-bg) 0%,
        rgba(0, 0, 0, 0.02) 100%
    );
    border: 1px solid var(--border-line);
    border-radius: 24px;
    will-change: transform;
}

.layer-character {
    object-fit: contain;
    width: 100%;
    height: 100%;
    bottom: 0;
    will-change: transform, filter;
    backface-visibility: hidden;
}

.layer-glow {
    background: radial-gradient(
        circle,
        var(--accent-glow) 0%,
        rgba(0, 0, 0, 0) 70%
    );
    transform: translateZ(-10px);
}

/* Card Section Architectures */
.programs {
    padding: 72px 6% 120px;
}

.section-title {
    text-align: center;
    margin-bottom: 80px;
}

.section-title h2 {
    font-family: var(--font-en);
    font-weight: 900;
    font-size: 3.5rem;
}

.section-title h2 span {
    color: var(--accent-neon);
}

.section-title p {
    color: var(--text-muted);
    margin-top: 12px;
}

.grid-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.card-wrapper {
    perspective: 1500px;
    padding: 15px;
}

.card {
    background-color: var(--card-bg);
    border-radius: 24px;
    padding: 50px 30px 40px 30px;
    text-align: center;
    border: 1px solid var(--border-line);
    box-shadow: 0 10px 35px var(--card-shadow);
    transform-style: preserve-3d;
    backface-visibility: hidden;
    will-change: transform;
}

.card * {
    pointer-events: none;
}

.highlighted-card {
    border-color: rgba(255, 94, 0, 0.25);
    background: linear-gradient(
        180deg,
        var(--card-bg) 0%,
        rgba(255, 94, 0, 0.01) 100%
    );
}

.card-img-holder {
    height: 250px;
    margin-top: -85px;
    margin-bottom: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: visible;
    text-decoration: none;
    cursor: pointer;
    pointer-events: auto;
    border-radius: 18px;
    transition: transform 0.25s ease;
}

.card-img-holder:hover {
    transform: translateY(-4px);
}

.card-img-holder:focus-visible {
    outline: 2px solid var(--accent-neon);
    outline-offset: 5px;
}

.card-img-holder img {
    max-height: 115%;
    object-fit: contain;
    will-change: transform, filter;
    backface-visibility: hidden;
}

.card h3 {
    font-family: var(--font-en);
    font-weight: 700;
    font-size: 1.6rem;
    margin-bottom: 12px;
    color: var(--text-light);
}

.card p {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.6;
}

/* Editorial bridge between programs and coaching */
.coaching-bridge {
    position: relative;
    width: min(1100px, calc(100% - 32px));
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 34px;
    overflow: hidden;
    margin: 0 auto 78px;
    padding: 38px 42px;
    border: 1px solid var(--border-line);
    border-radius: 28px;
    background:
        linear-gradient(120deg, rgba(255, 94, 0, 0.11), transparent 48%),
        var(--card-bg);
    box-shadow: 0 22px 56px var(--card-shadow);
}

.coaching-bridge-number {
    color: var(--accent-neon);
    font-family: var(--font-en);
    font-size: clamp(3.4rem, 7vw, 6rem);
    font-weight: 900;
    line-height: 1;
    opacity: 0.88;
}

.coaching-bridge-copy {
    display: grid;
    gap: 11px;
}

.coaching-bridge-kicker {
    color: var(--accent-neon);
    font-size: 0.7rem;
    font-weight: 900;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.coaching-bridge-copy h2 {
    max-width: 760px;
    font-family: var(--font-en);
    font-size: clamp(1.55rem, 3vw, 2.6rem);
    font-weight: 900;
    line-height: 1.2;
}

.coaching-bridge-copy p {
    max-width: 760px;
    color: var(--text-muted);
    font-size: 0.9rem;
    line-height: 1.8;
}

.coaching-bridge-points {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 5px;
}

.coaching-bridge-points span {
    padding: 7px 10px;
    border: 1px solid rgba(255, 94, 0, 0.18);
    border-radius: 999px;
    background: rgba(255, 94, 0, 0.07);
    color: var(--accent-neon);
    font-size: 0.7rem;
    font-weight: 800;
}

.coaching-bridge-link {
    display: inline-flex;
    min-height: 48px;
    align-items: center;
    gap: 10px;
    padding: 0 17px;
    border: 1px solid var(--border-line);
    border-radius: 14px;
    color: var(--text-light);
    font-size: 0.76rem;
    font-weight: 900;
    text-decoration: none;
    white-space: nowrap;
    transition: transform 0.22s ease, border-color 0.22s ease;
}

.coaching-bridge-link:hover {
    transform: translateY(-2px);
    border-color: var(--accent-neon);
}

[dir="rtl"] .coaching-bridge-link b {
    transform: scaleX(-1);
}

/* Compact homepage journal */
.home-journal {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    padding: 28px 0 54px;
}

.home-journal-heading {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 28px;
    margin-bottom: 24px;
}

.home-journal-heading > div {
    max-width: 720px;
}

.home-journal-kicker {
    display: block;
    margin-bottom: 8px;
    color: var(--accent-neon);
    font-size: 0.72rem;
    font-weight: 900;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.home-journal-heading h2 {
    font-family: var(--font-en);
    font-size: clamp(2rem, 4vw, 3.6rem);
    font-weight: 900;
    line-height: 1.05;
    letter-spacing: -0.045em;
}

.home-journal-heading p {
    max-width: 640px;
    margin-top: 12px;
    color: var(--text-muted);
    font-size: 0.92rem;
    line-height: 1.75;
}

.home-journal-all {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    gap: 9px;
    min-height: 44px;
    padding: 0 16px;
    border: 1px solid rgba(255, 94, 0, 0.28);
    border-radius: 999px;
    color: var(--text-light);
    font-size: 0.75rem;
    font-weight: 900;
    text-decoration: none;
    transition: border-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.home-journal-all:hover {
    border-color: var(--accent-neon);
    color: var(--accent-neon);
    transform: translateY(-2px);
}

.home-journal-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
}

.home-journal-card {
    min-width: 0;
    overflow: hidden;
    border: 1px solid var(--border-line);
    border-radius: 18px;
    background: var(--card-bg);
    box-shadow: 0 14px 34px var(--card-shadow);
    transition: transform 0.22s ease, border-color 0.22s ease;
}

.home-journal-card:hover {
    border-color: rgba(255, 94, 0, 0.48);
    transform: translateY(-5px);
}

.home-journal-card > a {
    display: block;
    height: 100%;
    color: var(--text-light);
    text-decoration: none;
}

.home-journal-media {
    position: relative;
    overflow: hidden;
    aspect-ratio: 4 / 3;
    background:
        linear-gradient(145deg, rgba(255, 94, 0, 0.5), transparent 58%),
        linear-gradient(35deg, #111116, #292932);
}

.home-journal-media::after {
    position: absolute;
    inset: 0;
    content: "";
    background: linear-gradient(to top, rgba(10, 10, 12, 0.58), transparent 58%);
}

.home-journal-media.is-placeholder::before {
    position: absolute;
    inset: 20%;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 50%;
    content: "";
    background: rgba(255, 94, 0, 0.1);
    filter: blur(5px);
    box-shadow:
        22px 12px 0 rgba(255, 94, 0, 0.1),
        -14px 20px 0 rgba(255, 255, 255, 0.035);
}

.home-journal-media img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    transition: transform 0.45s ease;
}

.home-journal-card:hover .home-journal-media img {
    transform: scale(1.045);
}

.home-journal-media img.home-journal-logo {
    position: absolute;
    top: 50%;
    left: 50%;
    z-index: 1;
    width: 58%;
    height: auto;
    max-height: 62%;
    object-fit: contain;
    opacity: 0.9;
    filter: drop-shadow(0 10px 18px rgba(0, 0, 0, 0.4));
    transform: translate(-50%, -50%);
}

.home-journal-card:hover .home-journal-media img.home-journal-logo {
    transform: translate(-50%, -50%) scale(1.045);
}

.home-journal-number {
    position: absolute;
    right: 12px;
    bottom: 8px;
    z-index: 1;
    color: #fff;
    font-size: 1.7rem;
    font-weight: 900;
    line-height: 1;
    opacity: 0.9;
}

[dir="rtl"] .home-journal-number {
    right: auto;
    left: 12px;
}

.home-journal-body {
    display: flex;
    min-height: 190px;
    flex-direction: column;
    padding: 16px;
}

.home-journal-body time {
    color: var(--accent-neon);
    font-size: 0.66rem;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.home-journal-body h3 {
    display: -webkit-box;
    margin-top: 8px;
    overflow: hidden;
    font-size: 1rem;
    font-weight: 900;
    line-height: 1.42;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.home-journal-body p {
    display: -webkit-box;
    margin-top: 8px;
    overflow: hidden;
    color: var(--text-muted);
    font-size: 0.77rem;
    line-height: 1.65;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.home-journal-read {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: auto;
    padding-top: 14px;
    color: var(--text-light);
    font-size: 0.7rem;
    font-weight: 900;
}

.home-journal-read b {
    color: var(--accent-neon);
    font-size: 0.9rem;
}

[dir="rtl"] .home-journal-all span,
[dir="rtl"] .home-journal-read b {
    transform: scaleX(-1);
}

[dir="rtl"] .home-journal-heading h2 {
    letter-spacing: 0;
    line-height: 1.35;
}

/* Dynamic Call to Action Segment */
.cta-section {
    padding: 60px 6% 120px 6%;
}

.cta-box {
    max-width: 1100px;
    margin: 0 auto;
    background: var(--card-bg);
    border-radius: 32px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 60px 80px;
    border: 1px solid var(--border-line);
    box-shadow: 0 20px 50px var(--card-shadow);
}

.cta-text {
    max-width: 55%;
}

.cta-title-link {
    display: block;
    color: inherit;
    text-decoration: none;
}

.cta-title-link:hover h2 {
    color: var(--accent-neon);
}

[dir="rtl"] .cta-text {
    text-align: right;
}

.cta-text h2 {
    font-family: var(--font-en);
    font-weight: 900;
    font-size: 3.2rem;
    line-height: 1.1;
    margin-bottom: 25px;
}

.cta-text p {
    color: var(--text-muted);
    margin-bottom: 40px;
    line-height: 1.7;
    font-size: 1.05rem;
}

.cta-image {
    max-width: 40%;
    height: 360px;
    display: flex;
    justify-content: center;
    position: relative;
}

.cta-image img {
    height: 145%;
    transform: translateY(-22%);
    object-fit: contain;
    filter: drop-shadow(0 20px 30px rgba(0, 0, 0, 0.45));
}

footer {
    text-align: center;
    padding: 40px;
    border-top: 1px solid var(--border-line);
    color: var(--text-muted);
}

/* Contact / Coaching Intake Page */
.contact-page {
    min-height: 100vh;
    background:
        radial-gradient(circle at 12% 8%, rgba(255, 94, 0, 0.16), transparent 30rem),
        radial-gradient(circle at 86% 18%, rgba(255, 158, 0, 0.08), transparent 24rem),
        var(--bg-dark);
    color: var(--text-light);
}

.contact-page header {
    position: relative;
}

.contact-page .logo {
    color: var(--text-light);
    text-decoration: none;
}

.contact-shell {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    padding: 48px 0 96px;
}

.contact-hero {
    display: grid;
    grid-template-columns: minmax(0, 1.04fr) minmax(320px, 0.74fr);
    align-items: center;
    gap: 54px;
    min-height: calc(100vh - 190px);
}

.contact-copy {
    display: grid;
    gap: 22px;
}

.contact-kicker {
    color: var(--accent-neon);
    font-size: 0.78rem;
    font-weight: 900;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.contact-copy h1 {
    max-width: 760px;
    font-family: var(--font-en);
    font-size: clamp(2.8rem, 7vw, 6.4rem);
    font-weight: 900;
    line-height: 0.95;
    background: linear-gradient(45deg, var(--accent-neon), #ff9e00);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    -webkit-text-fill-color: transparent;
}

[dir="rtl"] .contact-copy h1 {
    line-height: 1.25 !important;
}

.contact-copy p {
    max-width: 640px;
    color: var(--text-muted);
    font-size: 1.08rem;
    line-height: 1.85;
}

.contact-actions {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
}

.contact-secondary {
    display: inline-flex;
    align-items: center;
    min-height: 58px;
    padding: 0 26px;
    border: 1px solid var(--border-line);
    border-radius: 6px;
    background: var(--card-bg);
    color: var(--text-light);
    font-weight: 800;
    text-decoration: none;
    text-transform: uppercase;
    transition:
        transform 0.25s ease,
        border-color 0.25s ease,
        color 0.25s ease;
}

.contact-secondary:hover {
    transform: translateY(-2px);
    border-color: var(--accent-neon);
    color: var(--accent-neon);
}

.contact-portrait {
    position: relative;
    min-height: 540px;
}

.portrait-slot {
    position: absolute;
    inset: 0 0 54px;
    display: grid;
    place-items: center;
    overflow: hidden;
    border: 1px solid rgba(255, 94, 0, 0.22);
    border-radius: 30px;
    background:
        linear-gradient(160deg, rgba(255, 94, 0, 0.14), transparent 40%),
        linear-gradient(180deg, var(--card-bg), rgba(255, 255, 255, 0.018));
    box-shadow: 0 28px 70px var(--card-shadow);
}

.portrait-slot img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 25%;
    transition: transform 0.6s ease;
}

.contact-portrait:hover .portrait-slot img {
    transform: scale(1.025);
}

.contact-stat-card {
    position: absolute;
    right: 24px;
    bottom: 0;
    width: min(310px, calc(100% - 48px));
    display: grid;
    gap: 8px;
    padding: 22px;
    border: 1px solid var(--border-line);
    border-radius: 18px;
    background: rgba(18, 18, 22, 0.86);
    box-shadow: 0 18px 48px var(--card-shadow);
    backdrop-filter: blur(16px);
}

[data-theme="light"] .contact-stat-card {
    background: rgba(255, 255, 255, 0.88);
}

[dir="rtl"] .contact-stat-card {
    right: auto;
    left: 24px;
}

.contact-stat-card strong {
    color: var(--text-light);
    font-size: 1.22rem;
}

.contact-stat-card span {
    color: var(--text-muted);
    line-height: 1.7;
}

.coach-profile {
    display: grid;
    grid-template-columns: minmax(300px, 0.82fr) minmax(0, 1fr);
    gap: 42px;
    align-items: center;
    margin: 42px 0;
}

.profile-facts {
    display: grid;
    gap: 14px;
}

.profile-fact {
    display: flex;
    align-items: flex-start;
    gap: 18px;
    padding: 22px;
    border: 1px solid var(--border-line);
    border-radius: 18px;
    background:
        linear-gradient(135deg, rgba(255, 94, 0, 0.1), transparent),
        var(--card-bg);
    box-shadow: 0 14px 36px var(--card-shadow);
    transition: transform 0.25s ease, border-color 0.25s ease;
}

.profile-fact:hover {
    transform: translateY(-3px);
    border-color: rgba(255, 94, 0, 0.2);
}

.profile-fact > span {
    flex: 0 0 auto;
    color: var(--accent-neon);
    font-family: var(--font-en);
    font-size: 0.78rem;
    font-weight: 900;
    letter-spacing: 0.12em;
}

.profile-fact div {
    display: grid;
    gap: 7px;
}

.profile-fact strong {
    color: var(--text-light);
    font-size: 1.02rem;
}

.profile-fact p {
    color: var(--text-muted);
    font-size: 0.9rem;
    line-height: 1.7;
}

.profile-story {
    display: grid;
    gap: 18px;
}

.profile-story h2,
.social-panel h2 {
    font-family: var(--font-en);
    font-size: clamp(2rem, 4vw, 3.8rem);
    font-weight: 900;
    line-height: 1.08;
}

.animated-story {
    position: relative;
    padding: 26px;
    border: 1px solid var(--border-line);
    border-radius: 20px;
    background:
        linear-gradient(135deg, rgba(255, 94, 0, 0.08), transparent 38%),
        var(--card-bg);
    color: var(--text-muted);
    line-height: 2;
    text-align: justify;
    text-align-last: start;
    hyphens: auto;
    box-shadow: 0 18px 44px var(--card-shadow);
    overflow: hidden;
}

.animated-story::before {
    content: "";
    position: absolute;
    inset: 0 auto 0 -35%;
    width: 32%;
    background: linear-gradient(90deg, transparent, rgba(255, 94, 0, 0.16), transparent);
    animation: storySweep 4.8s ease-in-out infinite;
}

[dir="rtl"] .animated-story::before {
    right: -35%;
    left: auto;
    animation-name: storySweepRtl;
}

.credential-row {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.credential-row span {
    padding: 9px 12px;
    border: 1px solid rgba(255, 94, 0, 0.22);
    border-radius: 999px;
    background: rgba(255, 94, 0, 0.08);
    color: var(--accent-neon);
    font-size: 0.82rem;
    font-weight: 800;
}

.certificate-showcase {
    display: grid;
    grid-template-columns: minmax(0, 0.86fr) minmax(320px, 1.14fr);
    gap: 48px;
    align-items: center;
    margin: 84px 0 24px;
    padding: 44px;
    border: 1px solid var(--border-line);
    border-radius: 30px;
    background:
        radial-gradient(circle at 90% 10%, rgba(255, 158, 0, 0.12), transparent 22rem),
        linear-gradient(135deg, rgba(255, 94, 0, 0.08), transparent 42%),
        var(--card-bg);
    box-shadow: 0 24px 60px var(--card-shadow);
}

.certificate-copy {
    display: grid;
    gap: 18px;
}

.certificate-copy h2 {
    font-family: var(--font-en);
    font-size: clamp(2.2rem, 4vw, 4rem);
    font-weight: 900;
    line-height: 1.08;
}

.certificate-description {
    display: grid;
    gap: 14px;
}

.certificate-description p {
    color: var(--text-muted);
    line-height: 1.9;
    text-align: justify;
    text-align-last: start;
    hyphens: auto;
}

.certificate-description p + p {
    padding-top: 14px;
    border-top: 1px solid var(--border-line);
}

.certificate-frame {
    margin: 0;
    padding: 14px 14px 12px;
    border: 1px solid var(--border-line);
    border-radius: 22px;
    background:
        linear-gradient(145deg, rgba(255, 94, 0, 0.08), transparent 42%),
        var(--card-bg);
    box-shadow: 0 22px 48px rgba(0, 0, 0, 0.24);
    transform: rotate(1deg);
}

.certificate-image-wrap {
    display: grid;
    place-items: center;
    overflow: hidden;
    border-radius: 14px;
    background: #ececec;
}

.certificate-image-wrap img {
    width: 100%;
    height: auto;
    display: block;
}

.certificate-frame figcaption {
    padding: 12px 8px 2px;
    color: var(--text-muted);
    font-size: 0.8rem;
    font-weight: 800;
    text-align: center;
}

.contact-connect {
    margin-top: 84px;
    scroll-margin-top: 130px;
}

.contact-connect-heading {
    display: grid;
    max-width: 780px;
    gap: 14px;
    margin-bottom: 32px;
}

.contact-connect-heading h2 {
    font-family: var(--font-en);
    font-size: clamp(2.4rem, 5vw, 4.8rem);
    font-weight: 900;
    line-height: 1.05;
}

.contact-connect-heading p {
    color: var(--text-muted);
    font-size: 1rem;
    line-height: 1.8;
}

.contact-detail-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr 0.82fr;
    gap: 14px;
}

.contact-detail-card {
    position: relative;
    display: flex;
    min-height: 210px;
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    overflow: hidden;
    padding: 26px;
    border: 1px solid var(--border-line);
    border-radius: 22px;
    background:
        linear-gradient(145deg, rgba(255, 94, 0, 0.09), transparent 55%),
        var(--card-bg);
    box-shadow: 0 18px 44px var(--card-shadow);
}

.contact-detail-index {
    position: absolute;
    inset-inline-end: 18px;
    top: 12px;
    color: var(--text-light);
    font-family: var(--font-en);
    font-size: 3.6rem;
    font-weight: 900;
    line-height: 1;
    opacity: 0.035;
}

.contact-detail-label {
    color: var(--accent-neon);
    font-size: 0.74rem;
    font-weight: 900;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.contact-detail-card strong {
    max-width: 28ch;
    color: var(--text-light);
    font-size: 1.08rem;
    line-height: 1.65;
}

.contact-detail-card > a {
    margin-top: auto;
    color: var(--text-muted);
    font-size: 0.84rem;
    font-weight: 800;
    text-decoration: none;
    transition: color 0.2s ease;
}

.contact-detail-card > a:hover {
    color: var(--accent-neon);
}

.contact-availability {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    margin-top: auto;
    color: var(--text-muted);
    font-size: 0.8rem;
}

.contact-availability i {
    width: 7px;
    height: 7px;
    flex: 0 0 auto;
    border-radius: 50%;
    background: #47c97b;
    box-shadow: 0 0 0 5px rgba(71, 201, 123, 0.1);
}

.contact-social-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 26px;
    margin-top: 14px;
    padding: 24px 26px;
    border: 1px solid var(--border-line);
    border-radius: 22px;
    background: var(--card-bg);
    box-shadow: 0 18px 44px var(--card-shadow);
}

.contact-social-bar > div {
    display: grid;
    gap: 8px;
}

.contact-social-bar h3 {
    color: var(--text-light);
    font-size: 1.15rem;
}

.contact-social-links {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
}

.contact-social-links a {
    display: inline-flex;
    min-height: 46px;
    align-items: center;
    gap: 9px;
    padding: 6px 14px 6px 7px;
    border: 1px solid var(--border-line);
    border-radius: 999px;
    color: var(--text-light);
    font-size: 0.82rem;
    font-weight: 800;
    text-decoration: none;
    transition: transform 0.2s ease, border-color 0.2s ease;
}

[dir="rtl"] .contact-social-links a {
    padding: 6px 7px 6px 14px;
}

.contact-social-links a:hover {
    transform: translateY(-2px);
    border-color: rgba(255, 94, 0, 0.45);
}

.contact-social-links a span {
    display: grid;
    width: 32px;
    height: 32px;
    place-items: center;
    border-radius: 50%;
    background: rgba(255, 94, 0, 0.11);
    color: var(--accent-neon);
    font-family: var(--font-en);
    font-size: 0.68rem;
    letter-spacing: 0.04em;
}

@keyframes storySweep {
    0%,
    40% {
        transform: translateX(0);
        opacity: 0;
    }

    55% {
        opacity: 1;
    }

    100% {
        transform: translateX(420%);
        opacity: 0;
    }
}

@keyframes storySweepRtl {
    0%,
    40% {
        transform: translateX(0);
        opacity: 0;
    }

    55% {
        opacity: 1;
    }

    100% {
        transform: translateX(-420%);
        opacity: 0;
    }
}

/* ==========================================================================
   ROBUST RESPONSIVE DESIGN ADJUSTMENTS
   ========================================================================== */
@media (max-width: 1024px) {
    .home-page .hero {
        min-height: calc(100vh - 94px);
        padding-top: 80px;
    }

    .contact-hero,
    .coach-profile,
    .certificate-showcase {
        grid-template-columns: 1fr;
    }
    .contact-hero {
        min-height: auto;
        padding-top: 0;
    }
    .contact-portrait {
        min-height: 480px;
    }
    .certificate-showcase {
        gap: 32px;
    }
    .contact-detail-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .contact-detail-card:last-child {
        grid-column: 1 / -1;
        min-height: 170px;
    }
    .contact-social-bar {
        align-items: flex-start;
        flex-direction: column;
    }
    .hero {
        flex-direction: column;
        text-align: center;
        padding-top: 160px;
    }
    .hero-content {
        margin-bottom: 70px;
    }
    .hero-content h1 {
        font-size: 3.5rem;
    }
    .hero-image-wrapper {
        width: 320px;
        height: 450px;
    }
    .cta-box {
        flex-direction: column-reverse;
        padding: 50px 40px;
        text-align: center;
    }
    .coaching-bridge {
        grid-template-columns: auto minmax(0, 1fr);
    }
    .coaching-bridge-link {
        grid-column: 2;
        width: fit-content;
    }
    .home-journal-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .cta-text,
    .cta-image {
        max-width: 100%;
    }
    .cta-text,
    [dir="rtl"] .cta-text {
        width: 100%;
        text-align: center;
    }
    .cta-text h2,
    .cta-text p {
        margin-inline: auto;
    }
    .cta-text .btn-primary {
        margin-inline: auto;
    }
    .cta-image {
        height: 280px;
        margin-bottom: 40px;
    }
    .cta-image img {
        height: 125%;
        transform: translateY(-10%);
    }
}

@media (max-width: 768px) {
    .home-nav-shell {
        padding: 8px 8px 0;
    }

    .home-page .hero {
        padding-top: 50px;
    }

    header {
        flex-direction: column;
        gap: 20px;
        position: relative;
        background: var(--card-bg);
        border-bottom: 1px solid var(--border-line);
        padding: 20px;
    }
    .header-controls {
        width: 100%;
        justify-content: space-between;
    }
    .hero {
        padding-top: 50px;
    }
    .contact-shell {
        width: min(100% - 24px, 1180px);
        padding-top: 32px;
    }
    .coaching-bridge {
        width: min(100% - 24px, 1100px);
        grid-template-columns: 1fr;
        gap: 18px;
        margin-bottom: 54px;
        padding: 26px 22px;
        border-radius: 20px;
    }
    .coaching-bridge-number {
        font-size: 3.4rem;
    }
    .coaching-bridge-link {
        grid-column: auto;
        width: 100%;
        justify-content: center;
        white-space: normal;
        text-align: center;
    }
    .home-journal {
        width: min(100% - 24px, 1180px);
        padding: 0 0 42px;
    }
    .home-journal-heading {
        align-items: start;
        flex-direction: column;
        gap: 18px;
    }
    .home-journal-all {
        min-height: 42px;
    }
    .contact-copy h1 {
        font-size: clamp(2.35rem, 13vw, 4rem);
    }
    .contact-actions,
    .contact-actions .btn-primary,
    .contact-secondary {
        width: 100%;
    }
    .contact-actions .btn-primary,
    .contact-secondary {
        justify-content: center;
        text-align: center;
    }
    .contact-portrait {
        min-height: 390px;
    }
    .portrait-slot {
        bottom: 64px;
        border-radius: 22px;
    }
    .contact-stat-card {
        right: 14px;
        width: calc(100% - 28px);
        gap: 4px;
        padding: 14px 16px;
        border-radius: 14px;
    }
    [dir="rtl"] .contact-stat-card {
        left: 14px;
    }
    .contact-stat-card strong {
        font-size: 0.98rem;
        line-height: 1.35;
    }
    .contact-stat-card span {
        font-size: 0.78rem;
        line-height: 1.45;
    }
    .animated-story,
    .certificate-showcase {
        border-radius: 16px;
        padding: 20px;
    }
    .certificate-frame {
        transform: none;
    }
    .contact-connect {
        margin-top: 64px;
    }
    .contact-detail-grid {
        grid-template-columns: 1fr;
    }
    .contact-detail-card,
    .contact-detail-card:last-child {
        grid-column: auto;
        min-height: 174px;
        padding: 22px;
        border-radius: 16px;
    }
    .contact-social-bar {
        padding: 20px;
        border-radius: 16px;
    }
    .contact-social-links,
    .contact-social-links a {
        width: 100%;
    }
    .contact-social-links a {
        justify-content: flex-start;
    }
    nav {
        gap: 15px;
    }
    nav a {
        font-size: 0.85rem;
    }
    .section-title h2 {
        font-size: 2.6rem;
    }
    .cta-text h2 {
        font-size: 2.2rem;
    }
}

@media (max-width: 560px) {
    .home-journal-grid {
        grid-template-columns: 1fr;
    }
    .home-journal-card > a {
        display: grid;
        grid-template-columns: 116px minmax(0, 1fr);
    }
    .home-journal-media {
        min-height: 164px;
        aspect-ratio: auto;
    }
    .home-journal-media img.home-journal-logo {
        width: 70%;
    }
    .home-journal-number {
        font-size: 1.25rem;
    }
    .home-journal-body {
        min-height: 164px;
        padding: 13px;
    }
    .home-journal-body h3 {
        font-size: 0.92rem;
    }
    .home-journal-body p {
        font-size: 0.71rem;
        -webkit-line-clamp: 2;
    }
    .home-journal-read {
        padding-top: 8px;
    }
    .contact-stat-card {
        bottom: 8px;
        width: calc(100% - 20px);
        padding: 11px 13px;
    }

    [dir="rtl"] .contact-stat-card {
        left: 10px;
    }

    [dir="ltr"] .contact-stat-card {
        right: 10px;
    }

    .contact-stat-card strong {
        font-size: 0.9rem;
    }

    .contact-stat-card span {
        font-size: 0.7rem;
    }

    .welcome-consent {
        align-items: end;
        padding: 10px;
    }

    .welcome-consent-card {
        width: 100%;
        max-height: calc(100vh - 20px);
        padding: 24px 18px 20px;
        border-radius: 24px;
    }

    .welcome-consent-brand {
        width: 68px;
        height: 68px;
        margin-bottom: 10px;
        border-radius: 20px;
    }

    .welcome-consent-brand img {
        width: 60px;
        height: 60px;
    }

    .welcome-consent-card > p:not(.welcome-consent-eyebrow) {
        margin-bottom: 18px;
    }

    .welcome-language-options {
        grid-template-columns: 1fr;
        gap: 9px;
    }

    .welcome-language-option {
        min-height: 56px;
    }
}

@media (max-width: 560px) {
    .welcome-consent {
        inset: auto 10px 10px;
        width: auto;
        padding: 0;
    }

    .welcome-consent-card {
        grid-template-columns: 36px minmax(0, 1fr);
        gap: 10px 12px;
        max-height: none;
        padding: 12px;
        border-radius: 16px;
    }

    .welcome-consent-icon {
        width: 36px;
        height: 36px;
        border-radius: 11px;
    }

    .welcome-consent-icon svg {
        width: 20px;
        height: 20px;
    }

    .welcome-continue {
        grid-column: 1 / -1;
        width: 100%;
        min-height: 40px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .welcome-consent,
    .welcome-consent-card {
        transition: none;
    }
}

/* Light theme overrides for dropdown */
[data-theme="light"] .user-dropdown-trigger {
    background: #ffffff;
    color: #0d0d11;
    border-color: rgba(0, 0, 0, 0.12);
}

[data-theme="light"] .user-dropdown-trigger:hover,
[data-theme="light"] .user-dropdown.open .user-dropdown-trigger {
    border-color: #ff5e00;
    box-shadow: 0 0 0 3px rgba(255, 94, 0, 0.12);
}

[data-theme="light"] .dropdown-arrow {
    color: #6e6e76;
}

[data-theme="light"] .user-dropdown-menu {
    background: #ffffff;
    border-color: rgba(0, 0, 0, 0.08);
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.12);
}

[data-theme="light"] .user-dropdown-menu a {
    color: #4a4a50;
}

[data-theme="light"] .user-dropdown-menu a:hover {
    background: rgba(255, 94, 0, 0.08);
    color: #ff5e00;
}

[data-theme="light"] .user-dropdown-menu hr {
    border-top-color: rgba(0, 0, 0, 0.08);
}

[data-theme="light"] .user-dropdown-menu a:last-child:hover {
    background: rgba(239, 57, 78, 0.08);
    color: #ef394e;
}

.user-avatar-img {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}

[data-theme="light"] .user-avatar-img {
    border: 1px solid rgba(0, 0, 0, 0.1);
}
