/* =============================================
   CSS VARIABLES
   ============================================= */
:root {
    --primary: #357a1a;
    --primary-light: #a8e063;
    --primary-dark: #3d8a1e;
    --text: #3F3F3F;
    --bg: #f8f9fa;
    --bg-light: #f0f7eb;
    --card: #ffffff;
    --footer: #2c2c2c;
    --shadow: 0 4px 20px rgba(0,0,0,0.08);
    --radius: 16px;
    --transition: 0.3s ease;
}

/* =============================================
   GLOBAL STYLES
   ============================================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    touch-action: manipulation;
}

.container {
    margin-left: auto;
    margin-right: auto;
}

html {
    scroll-behavior: smooth;
    overflow-x: clip;
}

body {
    font-family: 'Varela Round', sans-serif;
    color: var(--text);
    background: var(--bg);
    direction: rtl;
    overflow-x: clip;
    line-height: 1.6;
}

a {
    text-decoration: none;
    color: inherit;
}

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

/* =============================================
   DARK MODE
   ============================================= */
body.dark-mode {
    --bg: #1a1a2e;
    --bg-light: #16213e;
    --card: #1f2937;
    --text: #e0e0e0;
    --footer: #0f0f1a;
}

body.dark-mode .navbar {
    background: #1f2937 !important;
}

body.dark-mode .top-panel {
    background: #16213e !important;
}

body.dark-mode .hero {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #1a2a15 100%);
}

body.dark-mode .flip-card-front {
    background: var(--card);
}

body.dark-mode .stat-item .stat-label {
    opacity: 0.85;
}

body.dark-mode .hero-date {
    background: rgba(79,166,39,0.2);
}

body.dark-mode .nav-link:hover {
    background: rgba(79,166,39,0.15);
}

body.dark-mode .cookie-banner {
    background: #1f2937;
}

/* =============================================
   READING PROGRESS BAR
   ============================================= */
.progress-bar {
    position: fixed;
    top: 0;
    left: 0;
    height: 3px;
    width: 0%;
    background: linear-gradient(90deg, #357a1a, #a8e063);
    z-index: 10000;
    transition: width 0.1s;
}

/* =============================================
   TOP PANEL
   ============================================= */
.top-panel {
    background: #f0f7eb;
    padding: 8px 0;
    overflow: hidden;
}

.top-panel-inner {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0;
    max-width: 900px;
    margin: 0 auto;
    padding-right: 130px;
}

.top-panel-link {
    flex: 1;
    text-align: center;
    padding: 14px 24px;
    font-size: 1.1rem;
    font-weight: 700;
    color: #3F3F3F;
    text-decoration: none;
    position: relative;
    transition: color 0.3s ease, background 0.3s ease;
    border-left: 1px solid #e0e0e0;
}
.top-panel-link:last-child { border-left: none; }
.top-panel-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 3px;
    background: var(--primary);
    border-radius: 2px;
    transition: width 0.3s ease;
}
.top-panel-link:hover {
    color: var(--primary);
    background: rgba(79,166,39,0.05);
}
.top-panel-link:hover::after {
    width: 60%;
}
.top-panel-link i {
    margin-left: 8px;
    font-size: 0.9rem;
}

/* =============================================
   NAVBAR
   ============================================= */
.navbar {
    background: #fff;
    box-shadow: 0 2px 20px rgba(0,0,0,0.06);
    position: sticky;
    top: 0;
    z-index: 1000;
    overflow: visible;
}

.navbar-inner {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    padding: 8px 20px;
    gap: 10px;
    box-sizing: border-box;
}

.logo-wrapper {
    flex-shrink: 0;
    z-index: 1001;
    margin-top: -83px;
    margin-bottom: -60px;
    margin-right: -5px;
    transition: margin-top 0.3s ease, margin-bottom 0.3s ease;
}
.navbar.scrolled .logo-wrapper {
    margin-top: -17px;
    margin-bottom: -139px;
}

.logo-img { height: 142px; width: auto; object-fit: contain;
    transition: transform 0.3s ease;
}

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

.nav-links {
    display: flex;
    align-items: center;
    gap: 6px;
    list-style: none;
}

.nav-link {
    color: var(--text);
    text-decoration: none;
    font-weight: 600;
    padding: 8px 16px;
    border-radius: 8px;
    transition: background 0.3s ease, color 0.3s ease;
    font-size: 0.95rem;
    white-space: nowrap;
}

.nav-link:hover {
    background: var(--bg-light);
    color: var(--primary);
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-right: auto;
}

.btn-register {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 10px 20px; border-radius: 25px;
    background: transparent; color: #357a1a;
    border: 2px solid #357a1a;
    font-weight: 600; font-size: 14px; cursor: pointer;
    transition: all 0.3s; text-decoration: none; white-space: nowrap;
}
.btn-register:hover { background: #357a1a; color: #fff; }
.btn-login {
    background: linear-gradient(135deg, #357a1a, #a8e063);
    color: #fff;
    padding: 10px 24px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 700;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    font-size: 0.95rem;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-login:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(79,166,39,0.35);
}

.theme-toggle {
    background: none;
    border: 2px solid var(--primary);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    color: var(--primary);
    transition: background 0.3s ease, color 0.3s ease, transform 0.3s ease;
    position: relative;
}

.theme-toggle:hover {
    background: var(--primary);
    color: #fff;
}

/* ====== USER BAR (second row inside navbar) ====== */
.user-bar {
    padding: 4px 0 8px;
    border-top: none;
}
.user-bar-inner {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    padding: 0 264px 0 20px;
    gap: 10px;
    direction: rtl;
    position: relative;
}
.user-bar-inner .btn-login {
    margin-left: 281px;
}
.user-bar .user-greeting {
    font-size: 14px;
    color: var(--primary);
    font-weight: 700;
    white-space: nowrap;
}
.user-bar .user-btn {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
    transition: background 0.2s;
    border: none;
    cursor: pointer;
}
.user-btn.green { background: #e8f5e9; color: #2e7d32; }
.user-btn.green:hover { background: #c8e6c9; }
.user-btn.blue { background: #e3f2fd; color: #1565c0; }
.user-btn.blue:hover { background: #bbdefb; }
.user-btn.logout { background: #fce4ec; color: #c62828; }
.user-btn.logout:hover { background: #ffcdd2; }

.user-bar .user-settings {
    background: none;
    border: 2px solid var(--primary);
    border-radius: 50%;
    width: 32px;
    min-width: 32px;
    height: 32px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    color: var(--primary);
    transition: background 0.3s, color 0.3s;
    position: absolute;
    left: 42px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 1;
}
.user-bar .user-settings:hover {
    background: var(--primary);
    color: #fff;
}
.user-bar .user-settings + .user-btn {
    position: absolute !important;
    left: -95px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 1;
}

/* Variation Dropdown */
.variation-dropdown {
    display: none;
    position: absolute;
    top: 50px;
    left: 0;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.2);
    min-width: 240px;
    z-index: 10001;
    overflow: hidden;
}
.variation-dropdown.open { display: block; }
.variation-dropdown a {
    display: block;
    padding: 10px 16px;
    color: #333;
    text-decoration: none;
    font-size: 14px;
    border-bottom: 1px solid #f0f0f0;
    transition: background 0.2s;
}
.variation-dropdown a:hover { background: #f0f7eb; color: var(--primary); }
.variation-dropdown a:last-child { border-bottom: none; }
.variation-dropdown .vd-header {
    padding: 12px 16px;
    font-weight: bold;
    color: var(--primary);
    background: #f8f9fa;
    font-size: 13px;
}

/* Nav Dropdown */
.nav-dropdown {
    position: relative;
}
.nav-dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.15);
    min-width: 180px;
    z-index: 10002;
    overflow: hidden;
    border: 1px solid #e9ecef;
}
.nav-dropdown:hover .nav-dropdown-menu {
    display: block;
}
.nav-dropdown-menu a {
    display: block;
    padding: 10px 18px;
    color: #333;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    border-bottom: 1px solid #f0f0f0;
    transition: background 0.2s, color 0.2s;
    white-space: nowrap;
}
.nav-dropdown-menu a:last-child { border-bottom: none; }
.nav-dropdown-menu a:hover {
    background: #f0f7eb;
    color: var(--primary);
}

/* =============================================
   HERO SECTION
   ============================================= */
.hero {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: visible;
    padding-top: 60px;
    padding-bottom: 120px;
    margin-bottom: 80px;
    background: linear-gradient(135deg, #f8f9fa 0%, #f0f7eb 50%, #e8f5e0 100%);
    background-size: 200% 200%;
    animation: heroGradientShift 8s ease-in-out infinite;
}
@keyframes heroGradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}
@keyframes pulseGlow {
    0%, 100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(255,255,255,0.3); }
    50% { transform: scale(1.08); box-shadow: 0 0 20px 8px rgba(255,255,255,0.15); }
}
@keyframes kenBurns {
    0% { transform: scale(1) translate(0,0); }
    100% { transform: scale(1.15) translate(-2%,-2%); }
}
/* Scroll Progress Bar */
.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 0%;
    height: 3px;
    background: linear-gradient(90deg, var(--primary), #2ecc71);
    z-index: 100001;
    transition: width 0.1s linear;
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 1100px;
    padding: 40px 40px 10px 40px;
    margin-top: -70px;
}

.hero h1 {
    font-size: 4.5rem;
    font-weight: 900;
    color: var(--text);
    margin-bottom: 20px;
    line-height: 1.3;
    min-height: 4.6rem;
    text-align: center;
    width: 100%;
}

.hero h1 .typed-cursor {
    color: var(--primary);
}

.hero-subtitle {
    font-size: 1.5rem;
    color: var(--primary);
    font-weight: 700;
    margin-bottom: 30px;
    display: inline-flex;
    align-items: center;
    gap: 15px;
    direction: rtl;
}
.hero-subtitle .subtitle-logo {
    height: 160px;
    max-width: 100%;
    width: auto;
    filter: drop-shadow(0 2px 8px rgba(79,166,39,0.3));
    vertical-align: middle;
}

.hero-dates {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 0;
    align-items: center;
}

.hero-date {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: rgba(79,166,39,0.1);
    padding: 12px 24px;
    border-radius: 12px;
    font-size: 1.1rem;
    border-right: 4px solid var(--primary);
    transition: transform 0.3s ease, background 0.3s ease;
    min-width: 300px;
    max-width: 630px;
    width: 100%;
    white-space: nowrap;
    text-align: center;
}

.hero-date:hover {
    transform: translateX(-5px);
    background: rgba(79,166,39,0.18);
}

.hero-date-icon {
    font-size: 1.4rem;
}

.hero-cta {
    display: inline-block;
    background: linear-gradient(135deg, #357a1a, #3d8a1e);
    color: #fff;
    padding: 24px 60px;
    border-radius: 30px;
    font-size: 1.6rem;
    font-weight: 700;
    text-decoration: none;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 8px 30px rgba(79,166,39,0.3);
    position: relative;
    overflow: hidden;
    z-index: 3;
    margin-top: 30px;
}

.hero-cta::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s ease;
}

.hero-cta:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 40px rgba(79,166,39,0.4);
}

.hero-cta:hover::before {
    left: 100%;
}

/* =============================================
   STATS BAR
   ============================================= */
.stats-bar {
    background: linear-gradient(135deg, #357a1a, #3d8a1e);
    padding: 20px 0;
    position: absolute;
    bottom: -80px;
    left: 0;
    right: 0;
    width: 100%;
    z-index: 2;
    border-radius: 0;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.stat-item {
    text-align: center;
    color: #fff;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.stat-item svg {
    margin-bottom: 5px;
    width: 200px;
    height: 200px;
    filter: drop-shadow(0 4px 8px rgba(0,0,0,0.15));
}

.stat-track {
    fill: none;
    stroke: rgba(255,255,255,0.2);
    stroke-width: 8;
}

.stat-ring {
    fill: none;
    stroke: rgba(255,255,255,0.85);
    stroke-width: 8;
    stroke-linecap: round;
    stroke-dasharray: 565;
    stroke-dashoffset: 565;
    transition: stroke-dashoffset 2.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.stat-ring.animated {
    stroke-dashoffset: 0;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 900;
    display: block;
    line-height: 1;
}

.stat-suffix {
    font-size: 1.5rem;
    font-weight: 700;
    opacity: 0.9;
    margin-top: -5px;
}

.stat-label {
    font-size: 1.4rem;
    opacity: 0.9;
    text-align: center;
}

/* =============================================
   GLOBAL SECTION UTILITIES
   ============================================= */
.section-padding {
    padding: 10px 0;
}

.section-subtitle {
    font-size: 20px;
    text-align: center;
    color: #555;
    margin-top: -30px;
    margin-bottom: 50px;
    font-weight: 400;
    line-height: 1.5;
}

/* =============================================
   WHY ACADEMY SECTION
   ============================================= */
.why-section {
    padding: 35px 0;
    background: var(--bg);
}
.why-section .section-title {
    margin-bottom: 20px;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 900;
    text-align: center;
    margin-bottom: 50px;
    color: var(--text);
}

.section-title span {
    color: var(--primary);
}

.flip-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 25px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.flip-card {
    perspective: 1000px;
    height: 280px;
    cursor: pointer;
}

.flip-card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    transition: transform 0.6s ease;
    transform-style: preserve-3d;
}

.flip-card:hover .flip-card-inner {
    transform: rotateY(180deg);
}

.flip-card-front,
.flip-card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    border-radius: var(--radius);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 25px;
    text-align: center;
}

.flip-card-front {
    background: var(--card);
    box-shadow: var(--shadow);
    transition: box-shadow 0.3s ease;
}

.flip-card:hover .flip-card-front {
    box-shadow: 0 8px 30px rgba(0,0,0,0.12);
}

.flip-card-back {
    background: linear-gradient(135deg, #357a1a, #a8e063);
    color: #fff;
    transform: rotateY(180deg);
    font-size: 1rem;
    line-height: 1.6;
}

.flip-card-icon {
    font-size: 3rem;
    color: var(--primary);
    margin-bottom: 15px;
}

.flip-card-title {
    font-size: 1.2rem;
    font-weight: 700;
}

.flip-card-back-title {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.flip-card-back-text {
    font-size: 0.95rem;
    line-height: 1.7;
    overflow: visible;
    word-wrap: break-word;
    opacity: 0.95;
}

/* =============================================
   COOKIE CONSENT
   ============================================= */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #333;
    color: #fff;
    padding: 15px 30px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    z-index: 99998;
    direction: rtl;
    font-size: 0.95rem;
    box-shadow: 0 -4px 20px rgba(0,0,0,0.15);
}

.cookie-banner.hidden {
    display: none;
}

.cookie-text {
    flex: 1;
    margin-left: 20px;
}

.cookie-accept {
    background: var(--primary);
    color: #fff;
    border: none;
    padding: 10px 30px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 700;
    font-family: 'Varela Round', sans-serif;
    transition: background 0.3s ease, transform 0.3s ease;
    white-space: nowrap;
}

.cookie-accept:hover {
    background: var(--primary-dark);
    transform: scale(1.03);
}

/* =============================================
   SCROLL TO TOP
   ============================================= */
.scroll-top {
    position: fixed;
    bottom: 80px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--primary);
    color: #fff;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    transition: opacity 0.3s ease, transform 0.3s ease, background 0.3s ease;
    z-index: 9990;
    border: none;
    font-size: 20px;
    box-shadow: 0 4px 15px rgba(79,166,39,0.3);
}

.scroll-top.visible {
    opacity: 1;
}

.scroll-top:hover {
    background: var(--primary-dark);
    transform: translateX(-50%) translateY(-3px);
}

/* =============================================
   ACCESSIBILITY - SKIP LINKS
   ============================================= */
.skip-link {
    position: absolute;
    top: -100%;
    left: 50%;
    transform: translateX(-50%);
    background: var(--primary);
    color: #fff;
    padding: 12px 24px;
    border-radius: 0 0 8px 8px;
    z-index: 100001;
    font-weight: 700;
    transition: top 0.3s ease;
}

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

/* =============================================
   SELECTION STYLE
   ============================================= */
::selection {
    background: rgba(79,166,39,0.2);
    color: var(--text);
}

/* =============================================
   SCROLLBAR
   ============================================= */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg);
}

::-webkit-scrollbar-thumb {
    background: var(--primary);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary-dark);
}

/* ====== PATH CARDS ====== */
.path-card {
    background: #fff;
    border-radius: 16px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.path-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 40px rgba(79,166,39,0.15);
}
.path-icon { font-size: 48px; margin-bottom: 15px; }
.path-card h3 { color: var(--primary); font-size: 22px; margin-bottom: 10px; }
.path-card p { color: #666; font-size: 14px; line-height: 1.7; }
.path-card li { padding: 3px 0; font-size: 14px; color: #555; }
.path-btn {
    display: inline-block;
    padding: 10px 30px;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    color: #fff;
    border-radius: 25px;
    text-decoration: none;
    font-weight: bold;
    margin-top: 15px;
    transition: transform 0.3s ease;
}
.path-btn:hover { transform: translateY(-3px); }

/* ====== LESSON CARDS ====== */
.lesson-card {
    background: #fff;
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    transition: transform 0.3s ease;
}
.lesson-card:hover { transform: translateY(-5px); }
.lesson-card:last-child:nth-child(odd) { grid-column: 1 / -1; max-width: calc(50% - 15px); justify-self: center; }

/* ====== TESTIMONIALS ====== */
.testimonials-slider {
    position: relative;
    overflow: hidden;
    max-width: 1200px;
    margin: 0 auto;
}
.testimonials-track {
    display: flex;
    transition: transform 0.5s ease;
}
.testimonial-card {
    min-width: 380px;
    margin: 0 15px;
    background: #fff;
    border-radius: 16px;
    padding: 30px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}
.testimonial-stars { color: #f5a623; font-size: 22px; margin-bottom: 15px; }
.testimonial-text { color: #555; font-size: 15px; line-height: 1.8; margin-bottom: 20px; font-style: italic; }
.testimonial-author { display: flex; align-items: center; gap: 12px; }
.testimonial-avatar {
    width: 45px; height: 45px; border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    display: flex; align-items: center; justify-content: center;
    font-size: 24px; color: #fff;
}
.testimonial-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: #fff;
    border: 2px solid var(--primary);
    color: var(--primary);
    width: 44px; height: 44px;
    border-radius: 50%;
    font-size: 20px;
    cursor: pointer;
    z-index: 5;
    transition: background 0.3s, color 0.3s;
}
.testimonial-nav:hover { background: var(--primary); color: #fff; }
.testimonial-nav.prev { left: 0; }
.testimonial-nav.next { right: 0; }

/* ====== QUIZ (UPGRADED) ====== */
/* ============================================================
   UPGRADED QUIZ CSS - Replaces old quiz styles (lines ~920-989)
   ============================================================ */

:root {
    --quiz-bg-1: #1a1a2e;
    --quiz-bg-2: #16213e;
    --quiz-bg-3: #0f3460;
    --primary: #357a1a;
    --primary-light: #6ecf3f;
    --primary-glow: rgba(79, 166, 39, 0.4);
    --glass-bg: rgba(255, 255, 255, 0.07);
    --glass-border: rgba(255, 255, 255, 0.12);
    --glass-highlight: rgba(255, 255, 255, 0.15);
    --text-light: #e8e8e8;
    --text-muted: #a0aec0;
    --wrong-red: #e53e3e;
    --wrong-red-glow: rgba(229, 62, 62, 0.4);
    --timer-yellow: #ecc94b;
    --timer-red: #fc8181;
    --streak-gold: #f6ad55;
}

/* --- Section Background --- */
#quiz {
    background: linear-gradient(135deg, var(--quiz-bg-1), var(--quiz-bg-2), var(--quiz-bg-3));
    padding: 80px 0 100px;
    position: relative;
    overflow: hidden;
    font-family: 'Heebo', sans-serif;
    direction: rtl;
}

#quiz::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 600px;
    height: 600px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(79,166,39,0.08) 0%, transparent 70%);
    pointer-events: none;
}

#quiz::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -10%;
    width: 500px;
    height: 500px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(15,52,96,0.3) 0%, transparent 70%);
    pointer-events: none;
}

/* --- Section Title --- */
#quiz .section-title {
    color: #fff;
    font-size: 42px;
    font-weight: 800;
    text-align: center;
    margin-bottom: 10px;
}

#quiz .section-subtitle {
    color: var(--text-muted);
    font-size: 18px;
    text-align: center;
    margin-bottom: 50px;
}

/* --- Domain Selector: Large Cards with Icons --- */
.quiz-domain-selector {
    display: flex;
    gap: 24px;
    justify-content: center;
    margin-bottom: 50px;
    flex-wrap: wrap;
    perspective: 800px;
}

.quiz-domain-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 30px 36px;
    min-width: 220px;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    text-align: center;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.quiz-domain-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--primary), transparent);
    opacity: 0;
    transition: opacity 0.3s;
}

.quiz-domain-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.3), 0 0 30px var(--primary-glow);
    border-color: var(--primary);
}

.quiz-domain-card:hover::before,
.quiz-domain-card.active::before {
    opacity: 1;
}

.quiz-domain-card.active {
    border-color: var(--primary);
    background: rgba(79, 166, 39, 0.12);
    box-shadow: 0 12px 30px rgba(0,0,0,0.2), 0 0 20px var(--primary-glow);
    transform: translateY(-4px);
}

.quiz-domain-icon {
    font-size: 48px;
    margin-bottom: 12px;
    display: block;
    filter: drop-shadow(0 4px 8px rgba(0,0,0,0.3));
}

.quiz-domain-title {
    font-size: 20px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 8px;
}

.quiz-domain-meta {
    display: flex;
    justify-content: center;
    gap: 16px;
    font-size: 13px;
    color: var(--text-muted);
}

.quiz-domain-meta span {
    display: flex;
    align-items: center;
    gap: 4px;
}

.quiz-difficulty-badge {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
    margin-top: 10px;
}

.difficulty-medium {
    background: rgba(236, 201, 75, 0.2);
    color: var(--timer-yellow);
    border: 1px solid rgba(236, 201, 75, 0.3);
}

.difficulty-hard {
    background: rgba(229, 62, 62, 0.15);
    color: var(--timer-red);
    border: 1px solid rgba(229, 62, 62, 0.3);
}

.difficulty-easy {
    background: rgba(79, 166, 39, 0.15);
    color: var(--primary-light);
    border: 1px solid rgba(79, 166, 39, 0.3);
}

/* --- Main Quiz Container: Glassmorphism --- */
.quiz-container {
    max-width: 780px;
    margin: 0 auto;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    padding: 40px;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 8px 32px rgba(0,0,0,0.3);
    position: relative;
    z-index: 1;
}

/* --- Header: Progress + Timer + Streak --- */
.quiz-header {
    margin-bottom: 30px;
}

.quiz-header-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.quiz-info-left {
    display: flex;
    align-items: center;
    gap: 16px;
}

/* Step indicators (dots) */
.quiz-step-indicators {
    display: flex;
    gap: 6px;
    margin-bottom: 16px;
    justify-content: center;
}

.quiz-step-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255,255,255,0.15);
    transition: all 0.3s;
}

.quiz-step-dot.completed {
    background: var(--primary);
    box-shadow: 0 0 6px var(--primary-glow);
}

.quiz-step-dot.current {
    background: var(--primary-light);
    box-shadow: 0 0 10px var(--primary-glow);
    transform: scale(1.3);
}

.quiz-step-dot.wrong-dot {
    background: var(--wrong-red);
    box-shadow: 0 0 6px var(--wrong-red-glow);
}

/* Animated progress bar */
.quiz-progress {
    background: rgba(255,255,255,0.1);
    border-radius: 12px;
    height: 10px;
    overflow: hidden;
    margin-bottom: 12px;
    position: relative;
}

.quiz-progress-bar {
    height: 100%;
    background: linear-gradient(90deg, var(--primary), var(--primary-light), #8ede68);
    border-radius: 12px;
    width: 0;
    transition: width 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.quiz-progress-bar::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    animation: progressShine 2s infinite;
}

@keyframes progressShine {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

.quiz-progress-text {
    text-align: center;
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 8px;
}

.quiz-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 14px;
    color: var(--text-muted);
}

.quiz-question-num {
    font-weight: 500;
    color: var(--text-light);
}

/* --- Circular Timer --- */
.quiz-timer-circle {
    position: relative;
    width: 64px;
    height: 64px;
    flex-shrink: 0;
}

.quiz-timer-circle svg {
    width: 100%;
    height: 100%;
    transform: rotate(-90deg);
}

.quiz-timer-bg {
    fill: none;
    stroke: rgba(255,255,255,0.1);
    stroke-width: 4;
}

.quiz-timer-arc {
    fill: none;
    stroke: var(--primary);
    stroke-width: 4;
    stroke-linecap: round;
    stroke-dasharray: 163.36;
    stroke-dashoffset: 0;
    transition: stroke-dashoffset 1s linear, stroke 0.5s;
}

.quiz-timer-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 13px;
    font-weight: 700;
    color: var(--text-light);
    direction: ltr;
}

/* --- Streak Counter --- */
.quiz-streak {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 700;
    color: var(--streak-gold);
    background: rgba(246, 173, 85, 0.12);
    border: 1px solid rgba(246, 173, 85, 0.25);
    opacity: 0;
    transform: scale(0.8);
    transition: all 0.4s;
}

.quiz-streak.visible {
    opacity: 1;
    transform: scale(1);
}

.quiz-streak.pop {
    animation: streakPop 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes streakPop {
    0% { transform: scale(1); }
    50% { transform: scale(1.3); }
    100% { transform: scale(1); }
}

/* --- Bonus Points Display --- */
.quiz-bonus-popup {
    position: absolute;
    top: 40%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 28px;
    font-weight: 900;
    color: var(--streak-gold);
    text-shadow: 0 2px 10px rgba(246, 173, 85, 0.5);
    opacity: 0;
    pointer-events: none;
    z-index: 10;
}

.quiz-bonus-popup.show {
    animation: bonusFloat 1.2s ease-out forwards;
}

@keyframes bonusFloat {
    0% { opacity: 0; transform: translate(-50%, -50%) scale(0.5); }
    20% { opacity: 1; transform: translate(-50%, -70%) scale(1.2); }
    100% { opacity: 0; transform: translate(-50%, -150%) scale(0.8); }
}

/* --- Question Area: Animated Entrance --- */
.quiz-question {
    font-size: 20px;
    line-height: 1.9;
    margin-bottom: 28px;
    color: #fff;
    font-weight: 500;
    padding: 20px 24px;
    background: rgba(255,255,255,0.04);
    border-radius: 16px;
    border-right: 4px solid var(--primary);
    position: relative;
}

.quiz-question-badge {
    display: inline-block;
    padding: 3px 12px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
    margin-bottom: 10px;
}

/* Slide-in from right for RTL */
.quiz-question.slide-in {
    animation: slideInRight 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}

@keyframes slideInRight {
    0% {
        opacity: 0;
        transform: translateX(60px);
    }
    100% {
        opacity: 1;
        transform: translateX(0);
    }
}

/* --- Answer Options: Large Cards --- */
.quiz-answers {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.quiz-answer {
    padding: 18px 24px;
    border: 2px solid rgba(255,255,255,0.12);
    border-radius: 16px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-size: 16px;
    text-align: right;
    direction: rtl;
    color: var(--text-light);
    background: rgba(255,255,255,0.04);
    display: flex;
    align-items: center;
    gap: 14px;
    position: relative;
    overflow: hidden;
}

.quiz-answer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    opacity: 0;
    transition: opacity 0.3s;
    pointer-events: none;
}

.quiz-answer-letter {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 12px;
    background: rgba(255,255,255,0.08);
    font-size: 18px;
    font-weight: 700;
    color: var(--text-muted);
    flex-shrink: 0;
    transition: all 0.3s;
}

.quiz-answer-text {
    flex: 1;
    font-weight: 500;
}

.quiz-answer:hover {
    border-color: var(--primary);
    background: rgba(79, 166, 39, 0.08);
    box-shadow: 0 0 20px var(--primary-glow), inset 0 0 20px rgba(79, 166, 39, 0.05);
    transform: translateX(-4px);
}

.quiz-answer:hover .quiz-answer-letter {
    background: rgba(79, 166, 39, 0.2);
    color: var(--primary-light);
}

/* Correct answer animation */
.quiz-answer.correct {
    border-color: var(--primary);
    background: rgba(79, 166, 39, 0.15);
    box-shadow: 0 0 30px var(--primary-glow);
    animation: correctPulse 0.6s ease;
}

.quiz-answer.correct .quiz-answer-letter {
    background: var(--primary);
    color: #fff;
}

@keyframes correctPulse {
    0% { transform: scale(1); }
    30% { transform: scale(1.02); }
    60% { transform: scale(0.99); }
    100% { transform: scale(1); }
}

/* Wrong answer animation */
.quiz-answer.wrong {
    border-color: var(--wrong-red);
    background: rgba(229, 62, 62, 0.12);
    animation: wrongShake 0.5s ease;
}

.quiz-answer.wrong .quiz-answer-letter {
    background: var(--wrong-red);
    color: #fff;
}

@keyframes wrongShake {
    0%, 100% { transform: translateX(0); }
    15% { transform: translateX(-8px); }
    30% { transform: translateX(6px); }
    45% { transform: translateX(-4px); }
    60% { transform: translateX(2px); }
}

.quiz-answer.disabled {
    pointer-events: none;
    opacity: 0.6;
}

.quiz-answer.disabled.correct,
.quiz-answer.disabled.wrong {
    opacity: 1;
}

/* --- Feedback --- */
.quiz-feedback {
    margin-top: 24px;
    padding: 18px 22px;
    border-radius: 16px;
    font-size: 15px;
    line-height: 1.8;
    color: var(--text-light);
    animation: fadeInUp 0.4s ease;
}

@keyframes fadeInUp {
    0% { opacity: 0; transform: translateY(12px); }
    100% { opacity: 1; transform: translateY(0); }
}

.quiz-feedback.correct-fb {
    background: rgba(79, 166, 39, 0.12);
    border: 1px solid rgba(79, 166, 39, 0.25);
}

.quiz-feedback.wrong-fb {
    background: rgba(229, 62, 62, 0.12);
    border: 1px solid rgba(229, 62, 62, 0.25);
}

/* --- Rich Explanation Styling --- */
.quiz-explanation {
    direction: rtl;
    text-align: right;
    padding: 4px 0 0;
    line-height: 1.9;
    font-size: 14px;
}
.quiz-feedback.correct-fb .quiz-explanation { color: #c8f7c0; }
.quiz-feedback.wrong-fb .quiz-explanation { color: #ffd4d4; }
.quiz-explanation .exp-title {
    font-weight: 700;
    font-size: 15px;
    margin-bottom: 8px;
}
.quiz-explanation .exp-step {
    margin: 4px 0;
    padding-right: 10px;
    border-right: 2px solid rgba(255,255,255,0.12);
}
.quiz-explanation .math-step {
    direction: ltr;
    text-align: center;
    font-family: 'Courier New', monospace;
    background: rgba(255,255,255,0.06);
    padding: 5px 12px;
    border-radius: 6px;
    margin: 6px 0;
    font-size: 14px;
    letter-spacing: 0.5px;
    color: #fff;
}
.quiz-explanation .exp-conclusion {
    margin-top: 8px;
    padding-top: 8px;
    border-top: 1px solid rgba(255,255,255,0.1);
    font-weight: 600;
}

/* --- Question Grid --- */
.quiz-question-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    justify-content: center;
    margin-bottom: 14px;
    max-width: 100%;
    padding: 4px 0;
}
.quiz-grid-num {
    width: 30px;
    height: 30px;
    border-radius: 6px;
    background: rgba(255,255,255,0.08);
    color: rgba(255,255,255,0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    border: 1px solid transparent;
}
.quiz-grid-num:hover {
    background: rgba(255,255,255,0.15);
    color: #fff;
}
.quiz-grid-num.grid-current {
    background: var(--primary);
    color: #fff;
    box-shadow: 0 0 8px var(--primary-glow);
    transform: scale(1.1);
}
.quiz-grid-num.grid-correct {
    background: rgba(79, 166, 39, 0.3);
    border-color: var(--primary);
    color: var(--primary-light);
}
.quiz-grid-num.grid-wrong {
    background: rgba(229, 62, 62, 0.3);
    border-color: var(--wrong-red);
    color: #ff6b6b;
}
.quiz-grid-section { margin-top: 16px; text-align: center; }
.quiz-grid-title { font-size: 14px; color: #666; margin-bottom: 8px; font-weight: 600; }

/* --- Quiz Nav Row --- */
.quiz-nav-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    margin-top: 16px;
}
.quiz-nav-btn {
    padding: 10px 24px;
    border-radius: 25px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    font-family: 'Heebo', sans-serif;
    border: none;
}
.quiz-nav-btn.nav-prev {
    background: rgba(255,255,255,0.08);
    color: rgba(255,255,255,0.7);
    border: 1px solid rgba(255,255,255,0.15);
}
.quiz-nav-btn.nav-prev:hover {
    background: rgba(255,255,255,0.15);
    color: #fff;
}
.quiz-nav-btn.nav-next {
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    color: #fff;
    box-shadow: 0 4px 15px rgba(79, 166, 39, 0.3);
}
.quiz-nav-btn.nav-next:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(79, 166, 39, 0.4);
}
.quiz-nav-btn:disabled {
    opacity: 0.3;
    cursor: not-allowed;
    transform: none !important;
}

/* --- SVG Diagram Container --- */
.quiz-svg-container {
    text-align: center;
    margin: 14px 0;
    padding: 16px;
    background: rgba(255,255,255,0.05);
    border-radius: 12px;
    border: 1px solid rgba(255,255,255,0.08);
}
.quiz-svg-container svg {
    max-width: 280px;
    width: 100%;
    height: auto;
}

/* --- Action Buttons --- */
.quiz-actions {
    text-align: center;
    margin-top: 20px;
}

.quiz-btn {
    padding: 14px 36px;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    color: #fff;
    border: none;
    border-radius: 30px;
    font-size: 17px;
    font-weight: 700;
    cursor: pointer;
    font-family: 'Heebo', sans-serif;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 15px rgba(79, 166, 39, 0.3);
    position: relative;
    overflow: hidden;
}

.quiz-btn::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -60%;
    width: 200%;
    height: 200%;
    background: linear-gradient(transparent, rgba(255,255,255,0.1), transparent);
    transform: rotate(30deg);
    transition: left 0.5s;
}

.quiz-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(79, 166, 39, 0.4);
}

.quiz-btn:hover::after {
    left: 100%;
}

.quiz-btn-secondary {
    background: transparent;
    border: 2px solid var(--primary);
    color: var(--primary-light);
    box-shadow: none;
}

.quiz-btn-secondary:hover {
    background: rgba(79, 166, 39, 0.1);
    box-shadow: 0 4px 15px rgba(79, 166, 39, 0.2);
}

/* --- Results Screen --- */
.quiz-results {
    max-width: 780px;
    margin: 0 auto;
    text-align: center;
    padding: 50px 40px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.quiz-score-circle {
    position: relative;
    width: 200px;
    height: 200px;
    margin: 0 auto 30px;
}

.quiz-score-circle svg {
    width: 100%;
    height: 100%;
    transform: rotate(-90deg);
}

.quiz-score-bg {
    fill: none;
    stroke: rgba(255,255,255,0.08);
    stroke-width: 10;
}

.quiz-score-arc {
    fill: none;
    stroke: var(--primary);
    stroke-width: 10;
    stroke-linecap: round;
    stroke-dasharray: 502.65;
    stroke-dashoffset: 502.65;
    transition: stroke-dashoffset 1.8s cubic-bezier(0.4, 0, 0.2, 1);
    filter: drop-shadow(0 0 8px var(--primary-glow));
}

.quiz-score-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 48px;
    font-weight: 900;
    color: #fff;
}

.quiz-score-label {
    font-size: 14px;
    color: var(--text-muted);
    display: block;
    margin-top: 4px;
    font-weight: 400;
}

.quiz-results h3 {
    font-size: 32px;
    font-weight: 800;
    color: #fff;
    margin-bottom: 12px;
}

.quiz-results p {
    font-size: 18px;
    color: var(--text-muted);
    margin-bottom: 10px;
}

.quiz-stats-row {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin: 30px 0;
}

.quiz-stat-item {
    text-align: center;
}

.quiz-stat-value {
    font-size: 28px;
    font-weight: 800;
    color: #fff;
}

.quiz-stat-label {
    font-size: 13px;
    color: var(--text-muted);
    margin-top: 4px;
}

.quiz-results-actions {
    display: flex;
    gap: 16px;
    justify-content: center;
    margin-top: 35px;
    flex-wrap: wrap;
}

/* --- Confetti Particles --- */
.confetti-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
}

/* --- Sound Toggle --- */
.quiz-sound-toggle {
    position: absolute;
    top: 16px;
    left: 16px;
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--text-muted);
    font-size: 18px;
    transition: all 0.3s;
    z-index: 5;
}

.quiz-sound-toggle:hover {
    background: rgba(255,255,255,0.15);
    color: #fff;
}

.quiz-sound-toggle.muted {
    opacity: 0.5;
}

/* --- Mobile Responsive --- */
@media (max-width: 768px) {
    #quiz { padding: 50px 0 70px; }
    #quiz .section-title { font-size: 30px; }
    .quiz-domain-selector { gap: 12px; }
    .quiz-domain-card { min-width: 140px; padding: 20px 16px; }
    .quiz-domain-icon { font-size: 36px; }
    .quiz-domain-title { font-size: 16px; }
    .quiz-domain-meta { flex-direction: column; gap: 4px; }
    .quiz-container { padding: 24px 20px; }
    .quiz-question { font-size: 17px; padding: 16px 18px; }
    .quiz-answer { padding: 14px 18px; font-size: 15px; }
    .quiz-timer-circle { width: 52px; height: 52px; }
    .quiz-score-circle { width: 160px; height: 160px; }
    .quiz-results h3 { font-size: 26px; }
    .quiz-stats-row { gap: 20px; }
    .quiz-results-actions { flex-direction: column; align-items: center; }
}

/* ====== SOCIAL GRID ====== */
.social-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    max-width: 1680px;
    margin: 0 auto;
    padding: 0 20px;
}
.social-card {
    position: relative;
    background: #fff;
    border-radius: 20px;
    padding: 15px;
    min-height: 500px;
    box-shadow: 0 6px 30px rgba(0,0,0,0.1);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.social-card:hover {
    box-shadow: 0 8px 30px rgba(79, 166, 39, 0.3);
    border-color: #357a1a;
    transform: scale(1.02);
}
.social-card iframe,
.social-card blockquote {
    flex: 1;
    width: 100% !important;
    min-height: 680px;
}
.social-card:has(blockquote.instagram-media) {
    min-height: 730px;
}
.social-card h3 { text-align: center; margin-bottom: 15px; color: var(--text); font-size: 18px; }
.shorts-dot { display:inline-block;width:10px;height:10px;border-radius:50%;background:#ccc;margin:0 4px;cursor:pointer;transition:background .3s; }
.shorts-dot.active { background:#357a1a; }
.social-section-subtitle {
    text-align: center;
    font-size: 18px;
    color: #666;
    margin-top: -35px;
    margin-bottom: 30px;
}
.hiring-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    background: linear-gradient(135deg, #ff6b6b, #ee5a24);
    color: #fff;
    padding: 8px 16px;
    border-radius: 20px;
    font-weight: 700;
    font-size: 14px;
    z-index: 2;
    animation: pulse-hiring 2s infinite;
    direction: rtl;
}
@keyframes pulse-hiring {
    0%, 100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(255,107,107,0.4); }
    50% { transform: scale(1.05); box-shadow: 0 0 0 10px rgba(255,107,107,0); }
}
@keyframes subtlePulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}
@media (max-width: 900px) {
    .social-grid { grid-template-columns: 1fr; }
}

/* ====== FAQ ====== */
.faq-list { max-width: 1200px; margin: 0 auto; padding: 0 20px; display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; direction: rtl; }
.faq-item { border: 1px solid #e0e0e0; border-radius: 12px; overflow: hidden; text-align: right; background: #fff; transition: box-shadow 0.3s; }
.faq-item:hover { box-shadow: 0 4px 15px rgba(0,0,0,0.08); }
.faq-question {
    width: 100%; padding: 14px 16px; background: #fff; border: none;
    text-align: right; font-size: 13px; font-weight: bold; cursor: pointer;
    display: flex; justify-content: space-between; align-items: center;
    font-family: inherit; color: var(--text); transition: background 0.3s;
    min-height: 60px; line-height: 1.5;
}
.faq-question:hover { background: #f8f9fa; }
.faq-icon { font-size: 20px; color: var(--primary); transition: transform 0.3s; flex-shrink: 0; margin-right: 8px; }
.faq-item.open .faq-icon { transform: rotate(45deg); }
.faq-answer { max-height: 0; overflow: hidden; transition: max-height 0.4s ease, padding 0.4s ease; }
.faq-item.open .faq-answer { max-height: 500px; }
.faq-answer p { padding: 0 16px 14px; color: #666; line-height: 1.7; font-size: 12.5px; }

/* ====== FLOATING FORM ====== */
.floating-form {
    position: fixed;
    bottom: 80px;
    left: 20px;
    width: 300px;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.15);
    z-index: 9990;
    overflow: hidden;
    transition: all 0.4s ease;
}
.floating-form.collapsed .floating-form-content { max-height: 0; padding: 0; overflow: hidden; }
.floating-form-content { max-height: 750px; padding: 20px; transition: max-height 0.4s ease, padding 0.4s ease; overflow: hidden; }
.floating-form-toggle {
    width: 100%;
    padding: 15px;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    color: #fff;
    border: none;
    cursor: pointer;
    font-size: 16px;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-family: inherit;
}

/* Upper chat buttons removed - using production widget set instead */

/* ====== MOBILE CONTACT CIRCLE (hidden on desktop) ====== */
.mobile-contact-circle {
    display: none;
    position: fixed;
    bottom: 85px;
    left: 20px;
    height: 42px;
    padding: 0 14px;
    border-radius: 21px;
    background: linear-gradient(135deg, #2d6b15, #357a1a);
    color: #fff;
    border: none;
    font-size: 14px;
    cursor: pointer;
    z-index: 9991;
    box-shadow: 0 4px 15px rgba(45,107,21,0.4);
    align-items: center;
    justify-content: center;
    gap: 6px;
    white-space: nowrap;
    transition: transform 0.3s, background 0.3s;
}
.mobile-contact-circle i {
    font-size: 18px;
}
.mobile-contact-circle.active {
    background: #dc3545;
}

/* ====== ACCESSIBILITY ====== */
.accessibility-toggle {
    position: fixed;
    bottom: 20px;
    left: 20px;
    width: 55px; height: 55px;
    border-radius: 50%;
    background: #1a73e8;
    color: #fff;
    border: none;
    font-size: 24px;
    cursor: pointer;
    z-index: 99999;
    box-shadow: 0 4px 15px rgba(26,115,232,0.4);
    display: flex; align-items: center; justify-content: center;
    transition: transform 0.3s;
}
.accessibility-toggle:hover { transform: scale(1.1); }
.accessibility-panel {
    position: fixed;
    left: -620px;
    top: 0;
    width: 600px;
    height: 100vh;
    background: #fff;
    z-index: 100000;
    box-shadow: -4px 0 20px rgba(0,0,0,0.15);
    transition: right 0.4s ease;
    overflow-y: auto;
    direction: rtl;
}
.accessibility-panel.open { left: 0; }
.a11y-header {
    padding: 20px; background: #1a73e8; color: #fff;
    display: flex; justify-content: space-between; align-items: center;
}
.a11y-header h3 { margin: 0; font-size: 18px; }
.a11y-close { background: none; border: none; color: #fff; font-size: 28px; cursor: pointer; }
.a11y-content { padding: 20px; }
.a11y-group { margin-bottom: 20px; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.a11y-group h4 { color: #333; margin-bottom: 10px; font-size: 14px; grid-column: 1 / -1; }
.a11y-btn {
    display: block;
    width: 100%;
    padding: 10px 15px;
    background: #f5f5f5;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    cursor: pointer;
    font-family: inherit;
    font-size: 14px;
    text-align: right;
    margin-bottom: 6px;
    transition: background 0.3s;
}
.a11y-btn:hover { background: #e8e8e8; }
.a11y-btn.active { background: #e3f2fd; border-color: #1a73e8; color: #1a73e8; }
.a11y-btn-sm {
    padding: 8px 12px;
    background: #f5f5f5;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    cursor: pointer;
    font-family: inherit;
    font-size: 13px;
    transition: background 0.3s;
}
.a11y-btn-sm:hover { background: #e8e8e8; }

/* ====== ACCESSIBILITY FEATURE CSS CLASSES ====== */
body.big-cursor, body.big-cursor * { cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='32' height='32'%3E%3Cpath d='M5 0l18 14-8 2 5 10-4 2-5-10-6 6z' fill='%23000' stroke='%23fff'/%3E%3C/svg%3E") 5 0, auto !important; }
body.huge-cursor, body.huge-cursor * { cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='48' height='48'%3E%3Cpath d='M7 0l27 21-12 3 7.5 15-6 3-7.5-15-9 9z' fill='%23000' stroke='%23fff' stroke-width='2'/%3E%3C/svg%3E") 7 0, auto !important; }
body.highlight-links a { outline: 3px solid #ff0 !important; background: rgba(255,255,0,0.2) !important; }
body.stop-animations *, body.stop-animations *::before, body.stop-animations *::after { animation: none !important; transition: none !important; }
body.dyslexia-font * { font-family: 'Comic Sans MS', 'OpenDyslexic', cursive !important; }
body.hide-images img { opacity: 0.05 !important; }
body.blue-filter { filter: sepia(40%) saturate(200%) hue-rotate(180deg); }
body.letter-spacing * { letter-spacing: 3px !important; }
body.word-spacing * { word-spacing: 8px !important; }
body.line-height-lg * { line-height: 2.5 !important; }
body.keyboard-nav *:focus { outline: 3px solid #1a73e8 !important; outline-offset: 2px !important; }
body.highlight-headers h1, body.highlight-headers h2, body.highlight-headers h3, body.highlight-headers h4 { background: rgba(26,115,232,0.15) !important; border-right: 4px solid #1a73e8 !important; padding-right: 10px !important; }
body.focus-indicator *:focus { outline: 4px solid #ff6600 !important; outline-offset: 3px !important; box-shadow: 0 0 8px rgba(255,102,0,0.5) !important; }
body.show-tooltips [title]::after { content: attr(title); position: absolute; background: #333; color: #fff; padding: 4px 8px; border-radius: 4px; font-size: 12px; white-space: nowrap; z-index: 99999; }
body.show-tooltips [title] { position: relative; }
body.page-structure section, body.page-structure div[class*="section"], body.page-structure header, body.page-structure footer, body.page-structure nav, body.page-structure main { outline: 2px dashed rgba(26,115,232,0.4) !important; outline-offset: -2px; }
body.readable-font * { font-family: 'Arial', 'Helvetica Neue', sans-serif !important; }
body.text-magnifier * { font-size: 120% !important; }
body.underline-links a { text-decoration: underline !important; text-underline-offset: 3px; }
body.adhd-mode * { transition: none !important; animation: none !important; }
body.adhd-mode { filter: grayscale(30%); }
body.adhd-mode :focus { outline: 4px solid #ff4444 !important; }
body.print-friendly { background: #fff !important; color: #000 !important; }
body.print-friendly * { background: transparent !important; color: #000 !important; box-shadow: none !important; text-shadow: none !important; }
body.print-friendly img { max-width: 300px !important; }
body.show-alt-text img[alt]::after { content: '📷 ' attr(alt); display: block; background: rgba(0,0,0,0.8); color: #fff; padding: 4px 8px; font-size: 11px; border-radius: 4px; margin-top: 2px; }
body.show-alt-text img[alt] { position: relative; }
body.color-blind-mode { filter: saturate(150%) contrast(110%); }
body.no-transparency * { opacity: 1 !important; }
body.no-transparency [style*="rgba"] { background-color: inherit !important; }
body.highlight-hover *:hover { outline: 2px solid #4FA627 !important; outline-offset: 1px; }
body.text-align-right * { text-align: right !important; }
body.text-align-center * { text-align: center !important; }
body.text-align-left * { text-align: left !important; }

/* ====== COOKIE BAR VISIBLE - push bottom elements up ====== */
/* .chat-buttons-container removed */
body.cookie-bar-visible .accessibility-toggle { bottom: 75px; }
body.cookie-bar-visible .floating-form { bottom: 135px; }
/* .chat-popup cookie-bar rule removed */

/* ====== COOKIE BANNER ====== */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #fff;
    padding: 18px 30px;
    box-shadow: 0 -4px 15px rgba(0,0,0,0.1);
    z-index: 9999;
    direction: rtl;
}

/* ====== SCROLL TO TOP ====== */
.scroll-top-btn {
    position: fixed;
    bottom: 85px;
    right: 20px;
    width: 45px; height: 45px;
    border-radius: 50%;
    background: var(--primary);
    color: #fff;
    border: none;
    font-size: 18px;
    cursor: pointer;
    z-index: 9989;
    box-shadow: 0 4px 15px rgba(79,166,39,0.3);
    display: flex; align-items: center; justify-content: center;
    transition: opacity 0.3s, transform 0.3s;
}
.scroll-top-btn:hover { transform: translateY(-3px); }

/* ====== GOOGLE MAPS INFOWINDOW ====== */
.gm-style-iw-c {
    border-radius: 10px !important;
    padding: 0 !important;
    box-shadow: 0 4px 16px rgba(0,0,0,0.18) !important;
}
.gm-style-iw-d {
    overflow: hidden !important;
    padding: 0 !important;
}
.gm-style-iw-t::after {
    background: #fff !important;
}
.branch-iw-content {
    direction: rtl;
    text-align: right;
    padding: 10px 14px 12px 14px;
    min-width: 180px;
    font-family: 'Varela Round', sans-serif;
}
.branch-iw-content h4 {
    color: #357a1a;
    margin: 0 0 5px 0;
    font-size: 15px;
    font-weight: 700;
    line-height: 1.3;
}
.branch-iw-content p {
    margin: 0 0 8px 0;
    font-size: 12px;
    color: #555;
    line-height: 1.4;
}
.branch-iw-waze {
    display: block;
    text-align: center;
    padding: 7px 12px;
    background: #33ccff;
    color: #fff !important;
    border-radius: 8px;
    text-decoration: none !important;
    font-weight: 700;
    font-size: 13px;
    transition: background 0.2s;
}
.branch-iw-waze:hover {
    background: #00aadd;
}
.gm-ui-hover-effect {
    display: none !important;
}

/* ====== COUNTDOWN ====== */
.countdown-container {
    display: flex;
    gap: 20px;
    justify-content: center;
    margin-top: 15px;
}
.countdown-item {
    text-align: center;
    background: rgba(255,255,255,0.15);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 12px;
    padding: 10px 15px;
    min-width: 60px;
}
.countdown-number {
    font-size: 28px;
    font-weight: bold;
    color: #fff;
}
.countdown-label {
    font-size: 12px;
    color: rgba(255,255,255,0.8);
}

/* =============================================
   SECTION ANIMATIONS
   ============================================= */

/* --- Hero: Gradient Shift --- */
@keyframes heroGradientShift {
    0%   { background: linear-gradient(135deg, #f8f9fa 0%, #f0f7eb 50%, #e8f5e0 100%); }
    33%  { background: linear-gradient(135deg, #f0f7eb 0%, #e8f5e0 50%, #d5f0c8 100%); }
    66%  { background: linear-gradient(135deg, #e8f5e0 0%, #d5f0c8 50%, #f0f7eb 100%); }
    100% { background: linear-gradient(135deg, #f8f9fa 0%, #f0f7eb 50%, #e8f5e0 100%); }
}
.hero {
    animation: heroGradientShift 12s ease-in-out infinite;
}
body.dark-mode .hero {
    animation: none;
}

/* --- Stats Bar: Pulse Glow on Numbers --- */
@keyframes statPulseGlow {
    0%, 100% { text-shadow: 0 0 0 transparent; }
    50% { text-shadow: 0 0 20px rgba(255,255,255,0.6), 0 0 40px rgba(168,224,99,0.4); }
}
.stat-number.glow-active {
    animation: statPulseGlow 2s ease-in-out 3;
}

/* --- Why Section: Staggered Slide-in from Sides --- */
@keyframes slideInFromRight {
    from { opacity: 0; transform: translateX(80px); }
    to   { opacity: 1; transform: translateX(0); }
}
@keyframes slideInFromLeft {
    from { opacity: 0; transform: translateX(-80px); }
    to   { opacity: 1; transform: translateX(0); }
}
.flip-card.slide-in-right {
    animation: slideInFromRight 0.7s ease-out forwards;
}
.flip-card.slide-in-left {
    animation: slideInFromLeft 0.7s ease-out forwards;
}
.flip-card.slide-pending {
    opacity: 0;
}

/* --- Paths Section: Card Stack Reveal --- */
@keyframes cardFanOut {
    from { opacity: 0; transform: translateY(30px) scale(0.92) rotate(-2deg); }
    to   { opacity: 1; transform: translateY(0) scale(1) rotate(0deg); }
}
.path-card.fan-pending {
    opacity: 0;
}
.path-card.fan-reveal {
    animation: cardFanOut 0.6s ease-out forwards;
}

/* --- Sample Lessons: Spotlight Sweep on Hover --- */
.lesson-card {
    position: relative;
    overflow: hidden;
}
.lesson-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 60%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.25), transparent);
    transition: none;
    pointer-events: none;
}
.lesson-card:hover::after {
    animation: spotlightSweep 0.6s ease-out forwards;
}
@keyframes spotlightSweep {
    from { left: -60%; }
    to   { left: 120%; }
}

/* --- Testimonials: Auto-scroll Carousel --- */
.testimonials-track.auto-scroll {
    animation: testimonialScroll 30s linear infinite;
}
.testimonials-track.auto-scroll:hover {
    animation-play-state: paused;
}


/* --- Social Cards: Hover Effect --- */
.social-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.12);
}
/* --- TikTok Swiper overrides --- */
.tiktok-swiper .swiper-button-prev,
.tiktok-swiper .swiper-button-next {
    color: var(--primary);
    transform: scale(0.6);
}
.tiktok-swiper .swiper-pagination-bullet-active {
    background: var(--primary);
}

/* --- FAQ: Smooth Accordion + Icon Rotation --- */
.faq-answer {
    transition: max-height 0.5s cubic-bezier(0.4, 0, 0.2, 1), padding 0.4s ease;
}
.faq-icon {
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    display: inline-block;
}
.faq-item.open .faq-icon {
    transform: rotate(45deg);
}
.faq-question {
    transition: background 0.3s ease, padding-right 0.3s ease;
}
.faq-item.open .faq-question {
    background: #f0f7eb;
}

/* --- Map Section: Zoom-in from Center --- */
@keyframes mapZoomIn {
    from { opacity: 0; transform: scale(0.85); }
    to   { opacity: 1; transform: scale(1); }
}
#branchesMap.map-zoom-active {
    animation: mapZoomIn 0.8s ease-out forwards;
}
#branchesMap.map-zoom-pending {
    opacity: 1;
    transform: none;
}


/* ===== V7 MISSING SECTIONS STYLES ===== */
/* ===== COUNTDOWN SECTION ===== */
.countdown-section {
    padding: 10px 0;
    background: var(--primary);
    position: relative;
    overflow: hidden;
}
.countdown-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background: repeating-linear-gradient(45deg, rgba(255,255,255,.02) 0, rgba(255,255,255,.02) 1px, transparent 1px, transparent 8px);
}
.countdown-inner {
    text-align: center;
    position: relative;
    z-index: 1;
}
.countdown-label {
    font-size: .8rem;
    font-weight: 800;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: rgba(255,255,255,.7);
    margin-bottom: 12px;
}
.countdown-title {
    font-family: 'Heebo', sans-serif;
    font-size: 2.5rem;
    font-weight: 900;
    color: #fff;
    margin-bottom: 30px;
    letter-spacing: -1px;
}
.countdown-timer {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
}
.countdown-unit {
    text-align: center;
}
.countdown-num {
    font-family: 'Heebo', sans-serif;
    font-size: 4.5rem;
    font-weight: 900;
    color: #fff;
    line-height: 1;
    letter-spacing: -3px;
}
.countdown-unit-label {
    font-size: .8rem;
    color: rgba(255,255,255,.6);
    font-weight: 300;
    letter-spacing: 1px;
    margin-top: 4px;
}
.countdown-sep {
    font-size: 3rem;
    color: rgba(255,255,255,.4);
    font-weight: 300;
    margin-top: 5px;
    align-self: flex-start;
    padding-top: 10px;
}

/* ===== VIDEO SECTION ===== */
.video-section {
    padding: 10px 0;
    background: var(--bg, #f8f9fa);
    position: relative;
    overflow: hidden;
}
.video-section .container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 70px;
    align-items: center;
    padding: 60px;
    padding-inline: 60px;
}
.video-text-side .section-tag {
    color: var(--primary);
    font-weight: 800;
    font-size: .85rem;
    letter-spacing: 3px;
    text-transform: uppercase;
    margin-bottom: 16px;
}
.video-text-side .section-title-xl {
    margin-bottom: 20px;
}
.video-text-side p {
    color: #666;
    font-size: 1.05rem;
    line-height: 1.8;
    margin-bottom: 30px;
}
.video-stats-row {
    display: flex;
    gap: 40px;
    margin-bottom: 30px;
}
.video-stat-item {
    text-align: center;
}
.video-stat-num {
    font-family: 'Heebo', sans-serif;
    font-size: 2.8rem;
    font-weight: 900;
    color: var(--primary);
    letter-spacing: -2px;
    line-height: 1;
}
.video-stat-label {
    font-size: .8rem;
    color: #666;
    margin-top: 4px;
}
.video-cta-row {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}
.btn-solid {
    background: var(--primary);
    color: #fff;
    padding: 14px 32px;
    border-radius: 8px;
    font-weight: 800;
    font-size: .95rem;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: all .3s;
}
.btn-solid:hover {
    background: var(--primary-dark, #3d8a1e);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(79,166,39,.35);
}
.btn-outline-v7 {
    background: transparent;
    border: 2px solid var(--text);
    color: var(--text);
    padding: 12px 30px;
    border-radius: 8px;
    font-weight: 700;
    font-size: .95rem;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: all .3s;
}
.btn-outline-v7:hover {
    background: var(--text);
    color: #fff;
}
.video-embed-side {
    position: relative;
}
.video-frame-wrap {
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0,0,0,.15);
    position: relative;
    aspect-ratio: 16/9;
}
.video-frame-wrap iframe {
    width: 100%;
    height: 100%;
    display: block;
    border: none;
}
.promo-vid {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 1.5s ease;
}
.promo-vid.active {
    opacity: 1;
}
.video-frame-badge {
    position: absolute;
    top: -15px;
    right: -15px;
    background: var(--primary);
    color: #fff;
    padding: 10px 20px;
    border-radius: 10px;
    font-weight: 800;
    font-size: .85rem;
    box-shadow: 0 4px 16px rgba(79,166,39,.4);
    z-index: 2;
}

/* ===== COMPARISON TABLE ===== */
.comparison-section {
    padding: 10px 0;
    background: linear-gradient(135deg, #2c2c2c 0%, #1a1a1a 100%);
    position: relative;
    overflow: hidden;
}
.comparison-section::before {
    content: '\05D4\05D8\05D5\05D1\000A\05D1\05D9\05D5\05EA\05E8';
    white-space: pre;
    position: absolute;
    top: -40px;
    left: -60px;
    font-family: 'Heebo', sans-serif;
    font-size: 20vw;
    font-weight: 900;
    color: rgba(255,255,255,.03);
    line-height: 1;
    pointer-events: none;
}
.comparison-wrap {
    overflow-x: auto;
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0,0,0,.3);
}
.comparison-table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
}
.comparison-table thead tr {
    background: #2c2c2c;
}
.comparison-table th {
    padding: 20px 24px;
    text-align: center;
    color: #fff;
    font-family: 'Heebo', sans-serif;
    font-weight: 800;
    font-size: 1.05rem;
    letter-spacing: .5px;
}
.comparison-table th:first-child {
    text-align: right;
    background: rgba(0,0,0,.2);
    padding-right: 40px;
}
.comparison-table th.highlight-col {
    background: var(--primary);
}
.comparison-table td {
    padding: 16px 24px;
    text-align: center;
    border-bottom: 1px solid #f0f0f0;
    color: var(--text);
    font-size: .92rem;
    vertical-align: middle;
}
.comparison-table td:first-child {
    text-align: right;
    font-weight: 700;
    color: #2c2c2c;
    background: #fafafa;
    padding-right: 40px;
}
.comparison-table td.highlight-col {
    background: rgba(79,166,39,.07);
    font-weight: 700;
}
.comparison-table tr:last-child td {
    border-bottom: none;
}
.comparison-table tr:hover td {
    background: #f5f9f5;
}
.comparison-table tr:hover td:first-child {
    background: #f0f5f0;
}
.comparison-table tr:hover td.highlight-col {
    background: rgba(79,166,39,.12);
}
.check-yes {
    color: var(--primary);
    font-size: 1.2rem;
}
.check-no {
    color: #ddd;
    font-size: 1.2rem;
}
.comparison-note {
    text-align: center;
    margin-top: 30px;
    color: rgba(255,255,255,.6);
    font-size: .85rem;
}

/* ===== RESULTS SECTION ===== */
.results-section {
    padding: 25px 0;
    background: linear-gradient(135deg, #f0fdf4 0%, #f8fffe 50%, #f0f7ff 100%);
    position: relative;
    overflow: hidden;
}
.results-section::before {
    content: '';
    position: absolute;
    top: -100px;
    right: -100px;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(79,166,39,0.06) 0%, transparent 70%);
    pointer-events: none;
}
.results-intro {
    text-align: center;
    margin-bottom: 5px;
}
.results-intro p {
    margin-bottom: 0;
}
.results-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-bottom: 15px;
}
.result-card {
    text-align: center;
    padding: 20px 20px 16px;
    border-radius: 20px;
    background: #fff;
    transition: all .35s;
    border: 1px solid rgba(79,166,39,0.08);
    box-shadow: 0 4px 20px rgba(0,0,0,0.04);
    opacity: 1;
    transform: none;
    transition: box-shadow 0.35s;
}
.result-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 40px rgba(79,166,39,0.12);
}
.result-icon-wrap {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(79,166,39,.12), rgba(79,166,39,.05));
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 12px;
    border: 2px solid rgba(79,166,39,0.1);
}
.result-icon-wrap i {
    font-size: 1.8rem;
    color: var(--primary);
}
.result-num {
    font-family: 'Heebo', sans-serif;
    font-size: 3.2rem;
    font-weight: 900;
    color: #2c2c2c;
    letter-spacing: -2px;
    line-height: 1;
    margin-bottom: 4px;
}
.results-testimonials {
    max-width: 900px;
    margin: 0 auto 20px;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}
.result-testimonial {
    background: #fff;
    border-radius: 16px;
    padding: 24px;
    border-right: 3px solid var(--primary);
    direction: rtl;
    text-align: right;
    box-shadow: 0 2px 12px rgba(0,0,0,0.04);
}
.result-testimonial q {
    font-size: 15px;
    color: #555;
    line-height: 1.7;
    display: block;
    margin-bottom: 10px;
}
.result-testimonial cite {
    font-size: 13px;
    color: #666;
    font-style: normal;
    font-weight: 600;
}
.result-label {
    font-size: .95rem;
    color: #666;
    font-weight: 500;
}
.results-cta-bar {
    background: linear-gradient(135deg, var(--primary), var(--primary-light, #a8e063));
    border-radius: 16px;
    padding: 50px 60px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
    flex-wrap: wrap;
}
.results-cta-bar h3 {
    font-family: 'Heebo', sans-serif;
    font-size: 2rem;
    font-weight: 900;
    color: #fff;
    letter-spacing: -1px;
    margin-bottom: 8px;
}
.results-cta-bar p {
    color: rgba(255,255,255,.8);
    font-size: .95rem;
}
.results-cta-bar a {
    background: #fff;
    color: var(--primary);
    padding: 14px 36px;
    border-radius: 8px;
    font-weight: 900;
    font-size: 1rem;
    white-space: nowrap;
    transition: all .3s;
    box-shadow: 0 4px 16px rgba(0,0,0,.15);
}
.results-cta-bar a:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0,0,0,.2);
}

/* ===== SERVICES SECTION ===== */
.services-section-v7 {
    padding: 10px 0;
    background: #fff;
    position: relative;
}
.section-header-bold {
    margin-bottom: 70px;
}
.section-label {
    display: inline-block;
    font-size: .8rem;
    font-weight: 800;
    letter-spacing: 4px;
    text-transform: uppercase;
    color: #357a1a;
    margin-bottom: 16px;
}
.section-title-xl {
    font-family: 'Heebo', sans-serif;
    font-size: 4rem;
    font-weight: 900;
    color: #2c2c2c;
    line-height: 1.1;
    letter-spacing: -2px;
    margin-bottom: 16px;
}
.section-title-xl .gradient-text,
.section-title-xl .word-gradient {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light, #a8e063) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.section-title-xl .word-outline {
    -webkit-text-stroke: 3px var(--text);
    color: transparent;
    display: inline-block;
}
.section-desc {
    font-size: 1.1rem;
    color: #595959;
    font-weight: 300;
    max-width: 500px;
    line-height: 1.8;
}
.services-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: start;
    padding: 0 40px;
}
.services-left {
    position: sticky;
    top: 120px;
}
.services-right {
    display: flex;
    flex-direction: column;
    gap: 0;
}
.service-row {
    display: flex;
    align-items: center;
    gap: 30px;
    padding: 35px 0;
    border-bottom: 1px solid #f0f0f0;
    transition: all .3s;
    cursor: pointer;
    position: relative;
}
.service-row:last-child {
    border-bottom: none;
}
.service-row::before {
    content: '';
    position: absolute;
    right: 0;
    top: 0;
    bottom: 0;
    width: 0;
    background: rgba(79,166,39,.03);
    transition: width .4s;
}
.service-row:hover::before {
    width: 100%;
}
.service-row:hover {
    padding-right: 10px;
}
.service-num {
    font-family: 'Heebo', sans-serif;
    font-size: 4rem;
    font-weight: 900;
    color: rgba(79,166,39,.15);
    line-height: 1;
    min-width: 80px;
    transition: color .3s;
}
.service-row:hover .service-num {
    color: rgba(79,166,39,.3);
}
.service-content {
    flex: 1;
}
.service-title-bold {
    font-size: 1.4rem;
    font-weight: 800;
    color: #2c2c2c;
    margin-bottom: 8px;
    transition: color .3s;
}
.service-row:hover .service-title-bold {
    color: var(--primary);
}
.service-desc-sm {
    font-size: .9rem;
    color: #666;
    font-weight: 300;
    line-height: 1.7;
}
.service-arrow {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1.5px solid #e0e0e0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ccc;
    transition: all .3s;
    flex-shrink: 0;
}
.service-row:hover .service-arrow {
    border-color: var(--primary);
    color: var(--primary);
    background: rgba(79,166,39,.05);
}
.service-visual {
    border-radius: 16px;
    overflow: hidden;
    position: relative;
}
.service-visual-inner {
    background: linear-gradient(135deg, #2c2c2c 0%, #1a1a1a 100%);
    padding: 50px 40px;
    border-radius: 16px;
    color: #fff;
    position: relative;
    overflow: hidden;
}
.service-visual-bg-text {
    position: absolute;
    bottom: -20px;
    left: -10px;
    font-size: 8rem;
    font-weight: 900;
    color: rgba(255,255,255,.05);
    letter-spacing: -5px;
    font-family: 'Heebo', sans-serif;
}
.service-visual h3 {
    font-size: 2.5rem;
    font-weight: 900;
    margin-bottom: 16px;
    line-height: 1.1;
    letter-spacing: -1px;
}
.service-visual p {
    font-size: 1rem;
    opacity: .8;
    font-weight: 300;
    line-height: 1.8;
    margin-bottom: 24px;
}
.service-visual .btn-vis {
    display: inline-block;
    background: #357a1a;
    color: #fff;
    padding: 12px 28px;
    border-radius: 4px;
    font-weight: 700;
    font-size: .95rem;
    transition: all .3s;
}
.service-visual .btn-vis:hover {
    background: #3d8a1e;
    transform: translateY(-2px);
}
.service-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 20px;
}
.service-tag {
    background: rgba(255,255,255,.15);
    color: #fff;
    padding: 4px 14px;
    border-radius: 20px;
    font-size: .8rem;
    font-weight: 500;
}

/* ===== COURSES GRID (from v7) ===== */
.courses-section-v7 {
    padding: 10px 0;
    background: #fff;
    overflow: hidden;
}
.courses-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-bottom: 50px;
}
.course-card {
    background: var(--bg, #f8f9fa);
    border-radius: 16px;
    overflow: hidden;
    transition: all .35s;
    border: 2px solid transparent;
    position: relative;
}
.course-card::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    left: 0;
    height: 5px;
    background: linear-gradient(90deg, var(--primary), var(--primary-light, #a8e063));
    transform: scaleX(0);
    transform-origin: right;
    transition: transform .4s;
}
.course-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 40px rgba(0,0,0,.15);
    border-color: rgba(79,166,39,.2);
}
.course-card:hover::before {
    transform: scaleX(1);
}
.course-card-img-placeholder {
    width: 100%;
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #2c2c2c 0%, var(--primary) 100%);
}
.course-card-img-placeholder i {
    font-size: 4rem;
    color: rgba(255,255,255,.7);
}
.course-card-body {
    padding: 28px;
}
.course-badge {
    display: inline-block;
    padding: 4px 14px;
    border-radius: 20px;
    font-size: .75rem;
    font-weight: 800;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 14px;
}
.badge-popular {
    background: rgba(79,166,39,.12);
    color: var(--primary);
}
.badge-new {
    background: rgba(44,44,44,.12);
    color: #2c2c2c;
}
.badge-online {
    background: rgba(79,166,39,.12);
    color: var(--primary);
}
.course-card h3 {
    font-family: 'Heebo', sans-serif;
    font-size: 1.5rem;
    font-weight: 900;
    color: #2c2c2c;
    margin-bottom: 10px;
    letter-spacing: -0.5px;
}
.course-card p {
    color: #666;
    font-size: .9rem;
    margin-bottom: 20px;
    line-height: 1.7;
}
.course-features-list {
    list-style: none;
    margin-bottom: 22px;
}
.course-features-list li {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: .88rem;
    color: #666;
    margin-bottom: 8px;
}
.course-features-list li i {
    color: var(--primary);
    font-size: .85rem;
    flex-shrink: 0;
}
.course-price {
    display: flex;
    align-items: baseline;
    gap: 8px;
    margin-bottom: 20px;
}
.price-main {
    font-family: 'Heebo', sans-serif;
    font-size: 2.5rem;
    font-weight: 900;
    color: var(--primary);
    letter-spacing: -2px;
}
.price-suffix {
    font-size: .85rem;
    color: #666;
    font-weight: 400;
}
.price-old {
    font-size: 1rem;
    color: #bbb;
    text-decoration: line-through;
    font-weight: 300;
}
.course-cta {
    display: block;
    text-align: center;
    background: var(--primary);
    color: #fff;
    padding: 13px 24px;
    border-radius: 8px;
    font-weight: 800;
    font-size: .95rem;
    transition: all .3s;
    letter-spacing: .5px;
}
.course-cta:hover {
    background: var(--primary-dark, #3d8a1e);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(79,166,39,.3);
}

/* ===== RESPONSIVE for V7 sections ===== */
@media (max-width: 900px) {
    .countdown-timer { gap: 15px; }
    .countdown-num { font-size: 3rem; }
    .video-section .container { grid-template-columns: 1fr; }
    .video-embed-side { order: -1; }
    .results-grid { grid-template-columns: 1fr 1fr; }
    .results-cta-bar { flex-direction: column; text-align: center; padding: 40px 30px; }
    .comparison-table th, .comparison-table td { padding: 12px 16px; font-size: .85rem; }
    .services-layout { grid-template-columns: 1fr; }
    .services-left { position: static; }
    .section-title-xl { font-size: 2.5rem; }
    .courses-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
    .section-title-xl { font-size: 2rem; }
    .countdown-num { font-size: 2.5rem; }
    .results-grid { grid-template-columns: 1fr; }
    .courses-grid { grid-template-columns: 1fr; }
}

/* Above-fold AOS override - show immediately for Speed Index */
.hero[data-aos],
.hero [data-aos],
.stats-bar [data-aos] {
    opacity: 1 !important;
    transform: none !important;
    transition-duration: 0s !important;
}
/* Prevent CLS from AOS translate animations - keep fade only */
[data-aos^="fade-up"],
[data-aos^="fade-down"],
[data-aos^="fade-left"],
[data-aos^="fade-right"],
[data-aos^="slide-up"],
[data-aos^="slide-down"],
[data-aos^="slide-left"],
[data-aos^="slide-right"],
[data-aos^="flip"],
[data-aos^="zoom"] {
    transform: none !important;
}

/* =============================================
   MOBILE OVERRIDES (viewport swapped to device-width)
   ============================================= */
html.is-mobile,
html.is-mobile body {
    overflow-x: hidden !important;
    max-width: 100vw !important;
}
html.is-mobile .top-panel {
    padding: 4px 0 !important;
}
html.is-mobile .top-panel-inner {
    padding-right: 0 !important;
    max-width: 100% !important;
    flex-wrap: wrap !important;
    gap: 0 !important;
}
html.is-mobile .top-panel-link {
    font-size: 0.8rem !important;
    padding: 8px 6px !important;
}
html.is-mobile .navbar-inner {
    max-width: 100% !important;
    padding: 0 8px !important;
}
html.is-mobile .logo-wrapper {
    margin-top: 0 !important;
    margin-bottom: 0 !important;
    margin-right: 0 !important;
}
html.is-mobile .logo-img {
    height: 60px !important;
}
html.is-mobile .nav-links {
    display: flex !important;
    flex-wrap: wrap !important;
    justify-content: center !important;
    gap: 2px 4px !important;
    padding: 4px 2px !important;
    list-style: none !important;
    margin: 0 !important;
    width: 100% !important;
}
html.is-mobile .nav-links .nav-link {
    font-size: 11px !important;
    padding: 4px 4px !important;
    white-space: nowrap !important;
    color: var(--primary) !important;
}
html.is-mobile .nav-links .nav-link i {
    display: none !important;
}
html.is-mobile .nav-links .dropdown-menu {
    display: none !important;
}
html.is-mobile .nav-actions {
    display: none !important;
}
html.is-mobile .hero-content {
    max-width: 100% !important;
    padding: 20px 12px 10px 12px !important;
    margin-top: -20px !important;
}
html.is-mobile .hero h1 {
    font-size: 1.6rem !important;
    white-space: normal !important;
    transform: none !important;
    padding: 0 8px !important;
    min-height: auto !important;
}
html.is-mobile .hero-subtitle {
    font-size: 1rem !important;
    flex-wrap: wrap !important;
    justify-content: center !important;
}
html.is-mobile .hero-subtitle .subtitle-logo {
    height: 80px !important;
}
html.is-mobile .hero-cta-group {
    flex-direction: column !important;
    gap: 10px !important;
    align-items: center !important;
}
html.is-mobile .hero-cta-group .btn {
    width: 90% !important;
    font-size: 1rem !important;
}
html.is-mobile .hero-dates {
    flex-wrap: wrap !important;
    gap: 8px !important;
    justify-content: center !important;
}
html.is-mobile .section-title {
    font-size: 1.5rem !important;
}
html.is-mobile .section-title-xl {
    font-size: 1.5rem !important;
}
html.is-mobile .container,
html.is-mobile .section-content {
    max-width: 100% !important;
    padding-left: 12px !important;
    padding-right: 12px !important;
}
html.is-mobile .comparison-table {
    font-size: 0.8rem !important;
    min-width: 0 !important;
    width: 100% !important;
}
html.is-mobile .comparison-table th,
html.is-mobile .comparison-table td {
    padding: 6px 4px !important;
    font-size: 0.75rem !important;
}
html.is-mobile .stats-bar {
    flex-wrap: wrap !important;
    gap: 10px !important;
}
html.is-mobile .stat-item {
    min-width: 45% !important;
}
html.is-mobile .courses-grid {
    grid-template-columns: 1fr !important;
}
html.is-mobile .results-grid {
    grid-template-columns: 1fr !important;
}
html.is-mobile .mobile-hamburger {
    display: flex !important;
}
html.is-mobile .hero-date {
    white-space: normal !important;
    min-width: 0 !important;
    font-size: 0.9rem !important;
    padding: 8px 12px !important;
}
html.is-mobile div[style*="width:500px"][style*="height:500px"] {
    display: none !important;
}
html.is-mobile .accessibility-panel {
    max-width: 100vw !important;
    width: 100% !important;
    box-sizing: border-box !important;
}
html.is-mobile .accessibility-panel *  {
    max-width: 100% !important;
    box-sizing: border-box !important;
}
/* Blanket overflow containment for all major containers */
html.is-mobile section,
html.is-mobile nav,
html.is-mobile footer,
html.is-mobile .container,
html.is-mobile .user-bar,
html.is-mobile .user-bar-inner,
html.is-mobile .services-layout,
html.is-mobile .comparison-section {
    overflow-x: hidden !important;
    max-width: 100vw !important;
}
html.is-mobile .user-bar-inner {
    padding: 0 4px !important;
    gap: 4px !important;
    flex-wrap: wrap !important;
    justify-content: center !important;
}
html.is-mobile .user-bar-inner .btn-login {
    margin-left: 0 !important;
}
html.is-mobile .user-bar-inner .btn-register,
html.is-mobile .user-bar-inner .btn-login {
    font-size: 10px !important;
    padding: 4px 8px !important;
}
html.is-mobile .user-bar .user-settings {
    width: 26px !important;
    min-width: 26px !important;
    height: 26px !important;
    position: static !important;
    left: auto !important;
    top: auto !important;
    transform: none !important;
}
html.is-mobile .user-bar .user-btn {
    font-size: 10px !important;
    padding: 3px 6px !important;
}
html.is-mobile .user-bar .user-btn .fa-phone {
    font-size: 10px !important;
}
html.is-mobile .user-bar .user-settings + .user-btn {
    position: static !important;
    left: auto !important;
    top: auto !important;
    transform: none !important;
    order: 10 !important;
}
html.is-mobile .stat-item {
    overflow: hidden !important;
}
html.is-mobile .stat-item svg {
    max-width: 100% !important;
    height: auto !important;
}
/* Contact form: hidden on mobile, opened via circle button */
html.is-mobile .floating-form {
    display: none !important;
    bottom: 0 !important;
    left: 0 !important;
    right: 0 !important;
    width: 100% !important;
    max-height: 92vh !important;
    border-radius: 16px 16px 0 0 !important;
    z-index: 9995 !important;
}
html.is-mobile .floating-form.mobile-open {
    display: block !important;
    overflow-y: auto !important;
}
html.is-mobile .floating-form.mobile-open .floating-form-toggle {
    display: none !important;
}
html.is-mobile .floating-form.mobile-open .floating-form-content {
    max-height: none !important;
    padding: 20px 16px !important;
}
html.is-mobile .mobile-contact-circle {
    display: flex !important;
}
/* Cookie banner: hidden on mobile */
html.is-mobile .cookie-banner {
    display: none !important;
}
/* Override cookie-bar push on mobile (not needed) */
html.is-mobile.cookie-bar-visible .accessibility-toggle,
html.is-mobile .accessibility-toggle {
    bottom: 12px !important;
    width: 36px !important;
    height: 36px !important;
    font-size: 16px !important;
    line-height: 36px !important;
    padding: 0 !important;
}
html.is-mobile.cookie-bar-visible .mobile-contact-circle,
html.is-mobile .mobile-contact-circle {
    bottom: 56px !important;
}

/* === MOBILE FIX BATCH - 26/03/2026 === */

/* (a) Feature flip cards - stack vertically */
html.is-mobile .flip-grid {
    grid-template-columns: 1fr !important;
    gap: 12px !important;
    padding: 0 12px !important;
}
html.is-mobile .flip-card {
    min-height: 90px !important;
    height: auto !important;
}

/* (b,c) Stats bar - reduce spacing, slightly larger circles */
html.is-mobile .stats-bar {
    padding: 15px 8px !important;
    margin: 0 !important;
}
html.is-mobile .stats-bar .section-padding {
    padding: 10px 0 !important;
}
html.is-mobile .stat-item {
    min-width: 42% !important;
    margin-bottom: 8px !important;
}
html.is-mobile .stat-item svg {
    width: 130px !important;
    height: 130px !important;
}
html.is-mobile .stat-item .stat-number {
    font-size: 1.6rem !important;
}
html.is-mobile .stat-item .stat-label {
    font-size: 0.85rem !important;
}

/* (d) SEO title banner - reduce padding */
html.is-mobile div[style*="background: #f8f9fa"] {
    padding: 10px 12px 5px !important;
}
html.is-mobile div[style*="background: #f8f9fa"] h2 {
    font-size: 1.1rem !important;
    line-height: 1.5 !important;
}

/* (e) Course/path cards - stack vertically */
html.is-mobile #paths div[style*="grid-template-columns"] {
    grid-template-columns: 1fr !important;
    gap: 16px !important;
    padding: 0 12px !important;
}

/* (f) Process steps - 2 columns, no side cut */
html.is-mobile section[aria-label="איך זה עובד"] div[role="list"] {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 12px !important;
    padding: 0 12px !important;
}
html.is-mobile section[aria-label="איך זה עובד"] {
    padding: 10px 0 !important;
    overflow-x: hidden !important;
}
html.is-mobile section[aria-label="איך זה עובד"] .step-circle,
html.is-mobile section[aria-label="איך זה עובד"] div[style*="width:80px"] {
    width: 60px !important;
    height: 60px !important;
    font-size: 1.3rem !important;
}

/* (g) Testimonials - single card, no side cut */
html.is-mobile #testimonials {
    overflow-x: hidden !important;
    padding: 15px 0 !important;
}
html.is-mobile .testimonials-slider {
    overflow: hidden !important;
    max-width: 100vw !important;
    padding: 0 12px !important;
}
html.is-mobile .testimonials-track {
    flex-wrap: nowrap !important;
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch !important;
    scroll-snap-type: x mandatory !important;
    gap: 0 !important;
}
html.is-mobile .testimonial-card {
    min-width: 100% !important;
    flex: 0 0 100% !important;
    scroll-snap-align: start !important;
    margin: 0 !important;
}

/* (h) Quiz section - spacing between title lines */
html.is-mobile #quiz .section-title {
    margin-bottom: 10px !important;
}
html.is-mobile #quiz .section-subtitle {
    margin-top: 6px !important;
}

/* (i) Social grid - stack, Facebook embed responsive */
html.is-mobile .social-grid {
    display: flex !important;
    flex-direction: column !important;
    gap: 16px !important;
    padding: 0 12px !important;
}
html.is-mobile .social-card {
    width: 100% !important;
    max-width: 100% !important;
    overflow: hidden !important;
}
html.is-mobile .social-card iframe {
    width: 100% !important;
    max-width: 100% !important;
}

/* (j) Instagram embed - no left cut */
html.is-mobile .social-card blockquote.instagram-media {
    max-width: 100% !important;
    min-width: 0 !important;
    width: 100% !important;
}

/* (k) Quick links - 2 columns, no left cut */
html.is-mobile section[aria-label="קישורים מהירים"] div[role="navigation"] {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 10px !important;
    padding: 0 12px !important;
}
html.is-mobile section[aria-label="קישורים מהירים"] {
    overflow-x: hidden !important;
}

/* (l) Blog articles - single column */
html.is-mobile div[style*="grid-template-columns: repeat(4, 1fr)"] {
    grid-template-columns: 1fr !important;
    gap: 10px !important;
    padding: 0 12px !important;
}
html.is-mobile #more-articles {
    grid-template-columns: 1fr !important;
    gap: 10px !important;
}

/* (m) Footer - 2 columns, reduce padding */
html.is-mobile footer[role="contentinfo"] {
    padding: 20px 12px 15px !important;
    overflow-x: hidden !important;
}
html.is-mobile footer[role="contentinfo"] .container > div[style*="grid-template-columns"] {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 16px !important;
}
html.is-mobile footer[role="contentinfo"] .footer-bottom,
html.is-mobile footer[role="contentinfo"] div[style*="border-top"] {
    flex-direction: column !important;
    text-align: center !important;
    gap: 8px !important;
}

/* Global mobile overflow prevention */
html.is-mobile .section-padding {
    padding: 15px 12px !important;
}
html.is-mobile .container {
    padding-left: 12px !important;
    padding-right: 12px !important;
}

/* === END MOBILE FIX BATCH === */

