/* ==========================================================================
   Edutree Clean Light Mode CSS Design System & Layout (English LTR Edition)
   ========================================================================== */

/* 1. Global Setup & Variables */
:root {
    --bg-primary: #ffffff;
    --bg-secondary: #f8fafc;
    --bg-tertiary: #f1f5f9;
    
    --brand-navy: #1e293b;
    --brand-navy-alpha: rgba(30, 41, 59, 0.08);
    --brand-navy-glow: rgba(30, 41, 59, 0.15);
    
    --brand-teal: #0ea5e9; /* Sky Blue Secondary */
    --brand-teal-alpha: rgba(14, 165, 233, 0.08);
    --brand-teal-glow: rgba(14, 165, 233, 0.2);
    
    --brand-cyan: #0ea5e9; 
    --brand-cyan-alpha: rgba(14, 165, 233, 0.08);
    --brand-cyan-glow: rgba(14, 165, 233, 0.2);
    
    --brand-coral: #ff5252;
    --brand-coral-alpha: rgba(255, 82, 82, 0.08);
    --brand-coral-glow: rgba(255, 82, 82, 0.2);
    
    --brand-yellow: #f59e0b; /* Warm Gold / Orange Accent */
    --brand-yellow-alpha: rgba(245, 158, 11, 0.08);
    --brand-yellow-glow: rgba(245, 158, 11, 0.35);

    --brand-green: #10b981;
    --brand-green-alpha: rgba(16, 185, 129, 0.08);
    --brand-green-glow: rgba(16, 185, 129, 0.2);

    --text-primary: #1e293b;
    --text-secondary: #475569;
    --text-muted: #64748b;
    
    --border-color: rgba(30, 41, 59, 0.08);
    --border-hover: rgba(30, 41, 59, 0.15);
    --glass-bg: rgba(255, 255, 255, 0.85);
    --glass-bg-hover: rgba(255, 255, 255, 0.98);
    --glass-blur: blur(12px);
    
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
    
    --transition-smooth: all 0.35s cubic-bezier(0.25, 0.8, 0.25, 1);
    --transition-quick: all 0.15s ease;
}

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
    background-color: var(--bg-primary);
    color: var(--text-primary);
    overflow-x: hidden;
}

body {
    font-family: var(--font-body);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
    position: relative;
    background-color: var(--bg-primary);
}

/* 2. Dotted Background Patterns & Geometric Accents */
.dot-grid-decor {
    position: absolute;
    width: 240px;
    height: 180px;
    pointer-events: none;
    z-index: 1;
    opacity: 0.7;
}

.dot-grid-decor.top-left {
    top: 60px;
    left: 20px; /* Standard LTR left */
    background-image: radial-gradient(rgba(14, 165, 233, 0.15) 1.5px, transparent 1.5px);
    background-size: 14px 14px;
}

.dot-grid-decor.bottom-right {
    top: 500px;
    right: 40px; /* Standard LTR right */
    background-image: radial-gradient(rgba(30, 41, 59, 0.1) 1.5px, transparent 1.5px);
    background-size: 14px 14px;
}

.dot-grid-decor.section-divider {
    bottom: 120px;
    left: 50%;
    transform: translateX(-50%);
    width: 80%;
    height: 80px;
    background-image: radial-gradient(rgba(30, 41, 59, 0.05) 1px, transparent 1px);
    background-size: 20px 20px;
}

/* Decorative Floating Geometric Shapes (Similar to Reference Image) */
.geo-orb {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
    z-index: 1;
}

.orb-yellow {
    width: 18px;
    height: 18px;
    background-color: var(--brand-yellow);
    top: 250px;
    left: 52%; /* Standard LTR left */
    box-shadow: 0 4px 10px rgba(245, 158, 11, 0.3);
}

.orb-blue {
    width: 12px;
    height: 12px;
    background-color: #5c6bc0;
    top: 480px;
    left: 45%;
}

.geo-ring {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
    z-index: 1;
}

.ring-blue {
    width: 28px;
    height: 28px;
    border: 4.5px solid #5c6bc0;
    top: 380px;
    right: 5%; /* Standard LTR right */
}

.ring-coral {
    width: 42px;
    height: 42px;
    border: 5.5px solid var(--brand-yellow);
    bottom: 160px;
    right: 3%;
    opacity: 0.85;
}

/* 3. Typography & Highlight Modifiers */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--text-primary);
}

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

.container {
    width: 100%;
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 24px;
    position: relative;
    z-index: 2;
}

.section-padding {
    padding: 100px 0;
}

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

.section-header {
    max-width: 720px;
    margin: 0 auto 60px auto;
    position: relative;
}

.section-tag {
    font-family: var(--font-heading);
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    display: inline-block;
    margin-bottom: 12px;
    color: var(--brand-teal);
}

.section-title {
    font-size: 2.5rem;
    line-height: 1.25;
    margin-bottom: 10px;
    color: var(--text-primary);
}

.section-subtitle {
    font-size: 1.05rem;
    color: var(--text-secondary);
    font-weight: 400;
    margin-top: 16px;
}

/* Title curved underline asset */
.title-underline-decor {
    display: flex;
    justify-content: center;
    margin-top: 4px;
    margin-bottom: 8px;
}

.title-underline-decor svg {
    display: block;
}

/* Highlight Colored Texts */
.highlight-teal {
    color: var(--brand-teal);
}

.highlight-coral {
    color: var(--brand-yellow); /* Warm orange from guidelines */
}

.highlight-cyan {
    color: var(--brand-teal);
}

.highlight-green {
    color: var(--brand-green);
}

.text-glow-teal {
    text-shadow: 0 2px 10px var(--brand-teal-glow);
}

.text-glow-coral {
    text-shadow: 0 2px 12px var(--brand-yellow-glow);
}

.text-glow-green {
    text-shadow: 0 2px 10px var(--brand-green-glow);
}

/* 4. Custom Components */
.glass-panel {
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.03);
    transition: var(--transition-smooth);
}

.glass-panel:hover {
    border-color: var(--border-hover);
    box-shadow: 0 15px 35px rgba(15, 23, 42, 0.06);
}

.glass-panel-sub {
    background: rgba(30, 41, 59, 0.02);
    border: 1px solid rgba(30, 41, 59, 0.04);
    border-radius: 12px;
}

/* Buttons */
.btn-primary, .btn-secondary, .btn-outline {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 13px 28px;
    border-radius: 30px; /* Rounded pill style from reference image */
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 0.95rem;
    transition: var(--transition-smooth);
    cursor: pointer;
}

.btn-primary {
    background: var(--brand-yellow); /* Orange CTA from visual guide */
    color: #ffffff;
    border: none;
    box-shadow: 0 4px 14px rgba(245, 158, 11, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    background: #e28f00;
    box-shadow: 0 6px 20px rgba(245, 158, 11, 0.4);
}

.btn-secondary {
    background: transparent;
    color: var(--text-primary);
    border: 1.5px solid var(--border-color);
}

.btn-secondary:hover {
    border-color: var(--brand-teal);
    background: rgba(14, 165, 233, 0.02);
}

.btn-outline {
    background: transparent;
    color: var(--text-primary);
    border: 1.5px solid var(--border-color);
}

.btn-outline:hover {
    border-color: var(--text-primary);
    background: rgba(30, 41, 59, 0.02);
    transform: translateY(-2px);
}

.btn-small {
    padding: 6px 14px;
    font-size: 0.825rem;
    border-radius: 20px;
}

.btn-sec-small {
    background: transparent;
    color: var(--text-secondary);
    border: 1px solid var(--border-color);
    padding: 6px 12px;
    font-size: 0.78rem;
    border-radius: 20px;
    cursor: pointer;
    transition: var(--transition-quick);
}

.btn-sec-small:hover {
    border-color: var(--text-primary);
    color: var(--text-primary);
}

.btn-block {
    width: 100%;
}

/* Pulses & Badges */
.tech-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--brand-teal-alpha);
    border: 1px solid rgba(14, 165, 233, 0.15);
    color: var(--brand-teal);
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.78rem;
    font-weight: 700;
    font-family: var(--font-heading);
    letter-spacing: 0.03em;
}

.pulse-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: var(--brand-teal);
    box-shadow: 0 0 8px var(--brand-teal);
    animation: tech-pulse-teal 1.8s infinite;
}

.pulse-cyan {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: var(--brand-teal);
    box-shadow: 0 0 8px var(--brand-teal);
    margin-right: 6px;
    animation: tech-pulse-cyan 1.8s infinite;
}

.pulse-crimson {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: var(--brand-coral);
    box-shadow: 0 0 8px var(--brand-coral);
    margin-right: 6px;
    animation: tech-pulse-coral 1.8s infinite;
}

@keyframes tech-pulse-teal {
    0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(14, 165, 233, 0.6); }
    70% { transform: scale(1); box-shadow: 0 0 0 6px rgba(14, 165, 233, 0); }
    100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(14, 165, 233, 0); }
}

@keyframes tech-pulse-cyan {
    0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(14, 165, 233, 0.6); }
    70% { transform: scale(1); box-shadow: 0 0 0 6px rgba(14, 165, 233, 0); }
    100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(14, 165, 233, 0); }
}

@keyframes tech-pulse-coral {
    0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(255, 82, 82, 0.6); }
    70% { transform: scale(1); box-shadow: 0 0 0 6px rgba(255, 82, 82, 0); }
    100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(255, 82, 82, 0); }
}

.glow-teal-border { border: 1px solid rgba(14, 165, 233, 0.25) !important; }
.glow-cyan-border { border: 1px solid rgba(14, 165, 233, 0.25) !important; }
.glow-coral-border { border: 1px solid rgba(255, 82, 82, 0.25) !important; }

/* 5. Sticky Header */
.main-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-color);
    transition: var(--transition-smooth);
}

.main-header.scrolled {
    padding: 10px 0;
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 4px 20px rgba(15, 23, 42, 0.03);
}

.header-container {
    max-width: 1240px;
    margin: 0 auto;
    padding: 14px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 1.35rem;
    letter-spacing: -0.01em;
}

.logo-text {
    color: var(--text-primary);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 30px;
}

.nav-link {
    font-family: var(--font-heading);
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text-secondary);
    transition: var(--transition-quick);
}

.nav-link:hover, .nav-link.active {
    color: var(--brand-teal);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.nav-cta {
    padding: 7px 16px;
    font-size: 0.85rem;
}

.nav-cta-primary {
    padding: 7px 16px;
    font-size: 0.85rem;
}

.mobile-nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 20px;
    height: 14px;
    background: transparent;
    border: none;
    cursor: pointer;
    z-index: 101;
}

.mobile-nav-toggle span {
    width: 100%;
    height: 2px;
    background-color: var(--text-primary);
    transition: var(--transition-quick);
}

/* Mobile Menu overlay */
.mobile-menu {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: var(--bg-primary);
    z-index: 99;
    display: flex;
    align-items: center;
    justify-content: center;
    transform: translateY(-100%);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.mobile-menu.open {
    transform: translateY(0);
}

.mobile-nav-links {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 26px;
}

.mobile-link {
    font-family: var(--font-heading);
    font-size: 1.45rem;
    font-weight: 700;
    color: var(--text-secondary);
}

.mobile-link:hover {
    color: var(--brand-teal);
}

.mobile-ctas {
    display: flex;
    flex-direction: column;
    gap: 12px;
    width: 240px;
    margin-top: 20px;
}

/* 6. Hero Section Layout */
.hero-section {
    padding: 150px 0 70px 0;
    min-height: 90vh;
    display: flex;
    align-items: center;
    position: relative;
    z-index: 5;
    background-color: #ffffff;
}

.hero-wave-decor {
    position: absolute;
    top: 130px;
    left: 45%; /* Standard LTR left */
    pointer-events: none;
    z-index: 1;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 40px;
    align-items: center;
}

.hero-content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.badge-container {
    margin-bottom: 20px;
}

.hero-title {
    font-size: 3.25rem;
    line-height: 1.15;
    margin-bottom: 20px;
    font-weight: 800;
}

.hero-subtitle {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 36px;
    max-width: 580px;
    line-height: 1.7;
}

.hero-ctas {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 40px;
    width: 100%;
}

/* Floating Instructors Group (Social Proof) */
.hero-avatars-group {
    display: flex;
    align-items: center;
    gap: 16px;
    border-top: 1px solid var(--border-color);
    padding-top: 28px;
    width: 100%;
    max-width: 580px;
}

.avatar-stack {
    display: flex;
    align-items: center;
}

.avatar {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    border: 2px solid #ffffff;
    margin-left: -14px; /* Standard LTR left overlap */
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.725rem;
    font-weight: 700;
    color: #ffffff;
}

.avatar:first-child {
    margin-left: 0;
}

.av-1 { background-color: #ff7043; }
.av-2 { background-color: #29b6f6; }
.av-3 { background-color: #ab47bc; }
.av-4 { background-color: #9ccc65; }

.av-more {
    background-color: var(--brand-teal);
    font-size: 0.75rem;
    box-shadow: 0 2px 6px rgba(14, 165, 233, 0.3);
}

.avatar-label {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.avatar-label strong {
    color: var(--text-primary);
}

/* 7. Solid Royal Navy Stats Ribbon */
.stats-ribbon {
    background-color: var(--brand-navy); /* Deep Royal Navy from guide */
    color: #ffffff;
    padding: 24px 0;
    position: relative;
    z-index: 10;
    box-shadow: 0 4px 20px rgba(30, 41, 59, 0.15);
}

.ribbon-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.ribbon-item {
    display: flex;
    align-items: center;
    gap: 14px;
}

.ribbon-icon {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: var(--brand-yellow); /* Yellow icons for accent */
}

.ribbon-text {
    display: flex;
    flex-direction: column;
}

.ribbon-val {
    font-family: 'Outfit', sans-serif;
    font-size: 1.25rem;
    font-weight: 800;
    line-height: 1.1;
    color: var(--brand-yellow); /* Accent coloring */
}

.ribbon-lbl {
    font-size: 0.825rem;
    color: #cbd5e1;
}

/* 8. Hero Dashboard Mockup Structure */
.hero-mockup-wrapper {
    position: relative;
}

.mockup-frame {
    width: 100%;
    height: 480px;
    border-radius: 14px;
    box-shadow: 0 20px 45px rgba(15, 23, 42, 0.06);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    background: #ffffff;
    border: 1px solid var(--border-color);
}

.mockup-header {
    height: 40px;
    background: #f1f5f9;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 16px;
    flex-shrink: 0;
}

.mockup-dots {
    display: flex;
    gap: 6px;
}

.mockup-dots .dot {
    width: 9px;
    height: 9px;
    border-radius: 50%;
}

.mockup-dots .close { background-color: #ff5f56; }
.mockup-dots .minimize { background-color: #ffbd2e; }
.mockup-dots .maximize { background-color: #27c93f; }

.mockup-search {
    flex-grow: 1;
    max-width: 280px;
    background: #ffffff;
    height: 24px;
    border-radius: 12px;
    border: 1px solid rgba(0,0,0,0.04);
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 0 12px;
    font-size: 0.7rem;
    color: var(--text-secondary);
}

.mockup-tag {
    font-size: 0.65rem;
    font-family: var(--font-heading);
    font-weight: 800;
    color: var(--brand-teal);
    background: var(--brand-teal-alpha);
    padding: 2px 8px;
    border-radius: 4px;
}

.mockup-body {
    flex-grow: 1;
    display: grid;
    grid-template-columns: 0.8fr 1.2fr 1fr;
    gap: 10px;
    padding: 10px;
    background: #f8fafc;
    overflow: hidden;
}

.mockup-pane {
    height: 100%;
    padding: 10px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    position: relative;
    background: #ffffff;
    border: 1px solid rgba(15, 23, 42, 0.04);
    border-radius: 10px;
}

.pane-header {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 12px;
    flex-shrink: 0;
}

.pane-icon {
    display: flex;
    align-items: center;
}

.pane-title {
    font-size: 0.725rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    color: var(--text-primary);
}

/* ERP Finance mock pane */
.finance-metrics {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6px;
    margin-bottom: 10px;
}

.metric-mini {
    background: #f8fafc;
    border: 1px solid rgba(0,0,0,0.03);
    padding: 6px;
    border-radius: 6px;
    display: flex;
    flex-direction: column;
}

.mini-lbl {
    font-size: 0.55rem;
    color: var(--text-secondary);
}

.mini-val {
    font-size: 0.75rem;
    font-weight: 700;
    margin-top: 2px;
}

.mini-val.text-teal {
    color: var(--brand-teal);
}

.mini-chart {
    height: 48px;
    display: flex;
    align-items: flex-end;
    gap: 6px;
    padding: 4px 6px;
    background: #f8fafc;
    border-radius: 6px;
    margin-bottom: 10px;
    border: 1px solid rgba(0, 0, 0, 0.02);
}

.chart-bar {
    flex-grow: 1;
    height: var(--val);
    background: rgba(30, 41, 59, 0.05);
    border-radius: 3px 3px 0 0;
    transition: var(--transition-smooth);
}

.chart-bar.active {
    background: var(--brand-teal);
}

.live-notifications {
    display: flex;
    flex-direction: column;
    gap: 6px;
    overflow-y: auto;
}

.notif-item {
    font-size: 0.55rem;
    line-height: 1.3;
    padding-bottom: 6px;
    border-bottom: 1px solid rgba(0,0,0,0.03);
}

.notif-time {
    color: var(--brand-teal);
    margin-right: 4px; /* Standard LTR right margin */
    font-weight: 600;
}

.notif-txt {
    color: var(--text-secondary);
}

/* AI Generator Mock pane */
.prompt-box {
    background: var(--brand-teal-alpha);
    border: 1px solid rgba(14, 165, 233, 0.1);
    padding: 6px;
    border-radius: 6px;
    font-size: 0.65rem;
    margin-bottom: 8px;
    line-height: 1.4;
}

.prompt-lbl {
    color: var(--brand-teal);
    font-weight: 800;
    margin-right: 4px;
}

.prompt-text-animated {
    color: var(--text-primary);
}

.code-output-terminal {
    flex-grow: 1;
    background: #f8fafc;
    border: 1px solid rgba(0,0,0,0.04);
    border-radius: 6px;
    font-family: monospace;
    font-size: 0.6rem;
    padding: 8px;
    overflow-y: auto;
    color: #334155;
}

.terminal-line {
    margin-bottom: 4px;
    white-space: nowrap;
}

.terminal-line.indent { padding-left: 8px; }
.terminal-line.indent-2 { padding-left: 16px; }

.t-key { color: #8c1d40; }
.t-attr { color: #0288d1; }
.t-val { color: #2e7d32; }
.t-txt { color: var(--brand-teal); }

.ai-status {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 8px;
    font-size: 0.6rem;
    flex-shrink: 0;
}

.ai-status-badge {
    color: var(--brand-teal);
    font-weight: 600;
}

.ai-speed {
    color: var(--text-muted);
}

/* Secure stream video mock */
.secure-video-mock {
    aspect-ratio: 16/10;
    background: #1e293b;
    border-radius: 8px;
    overflow: hidden;
    position: relative;
    margin-bottom: 10px;
}

.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: radial-gradient(circle, rgba(0,0,0,0.1) 0%, rgba(0,0,0,0.7) 100%);
}

.watermark-overlay {
    position: absolute;
    font-size: 0.5rem;
    color: rgba(255, 255, 255, 0.12);
    font-weight: 600;
    white-space: nowrap;
    pointer-events: none;
    transform: rotate(-15deg);
    text-transform: uppercase;
}

.video-play-btn {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--brand-coral);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    cursor: pointer;
    box-shadow: 0 0 10px rgba(255, 82, 82, 0.4);
    transition: var(--transition-quick);
}

.video-play-btn:hover {
    transform: scale(1.1);
}

.control-bar {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background: rgba(0,0,0,0.8);
    padding: 6px 8px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.play-progress {
    height: 2px;
    background: rgba(255,255,255,0.2);
    border-radius: 1px;
}

.progress-fill {
    height: 100%;
    background: var(--brand-coral);
}

.control-icons {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.55rem;
    color: var(--text-muted);
}

.security-status-text {
    color: var(--brand-coral);
    font-weight: 700;
}

.security-logs {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: rgba(255, 82, 82, 0.02);
    border: 1px dashed rgba(255, 82, 82, 0.2);
    border-radius: 6px;
    padding: 6px;
}

.sec-log-row {
    display: flex;
    justify-content: space-between;
    font-size: 0.58rem;
}

.log-lbl {
    color: var(--text-secondary);
}

.log-lbl.sec-warn {
    color: var(--brand-coral);
    font-weight: 600;
}

.log-val {
    color: var(--text-primary);
}


/* 9. Audience Router (Tabs Selector) */
.audience-section {
    background-color: var(--bg-secondary);
    position: relative;
}

.router-cards-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 40px;
}

/* Category cards styled similarly to reference image */
.router-card {
    border-radius: 16px;
    padding: 24px;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    transition: var(--transition-smooth);
    background-color: #ffffff;
    border: 1.5px solid rgba(0, 0, 0, 0.04);
}

.router-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 25px rgba(15, 23, 42, 0.03);
}

/* Pastel backgrounds matching visual identity guides */
.router-card#tab-btn-principal { background-color: rgba(30, 41, 59, 0.015); }
.router-card#tab-btn-teacher { background-color: rgba(14, 165, 233, 0.015); }
.router-card#tab-btn-student { background-color: rgba(245, 158, 11, 0.015); }
.router-card#tab-btn-parent { background-color: rgba(255, 82, 82, 0.015); }

.router-card#tab-btn-principal.active { background-color: rgba(30, 41, 59, 0.04); border-color: var(--brand-navy); }
.router-card#tab-btn-teacher.active { background-color: rgba(14, 165, 233, 0.04); border-color: var(--brand-teal); }
.router-card#tab-btn-student.active { background-color: rgba(245, 158, 11, 0.04); border-color: var(--brand-yellow); }
.router-card#tab-btn-parent.active { background-color: rgba(255, 82, 82, 0.04); border-color: var(--brand-coral); }

.card-icon {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
    background: #ffffff;
    border: 1px solid var(--border-color);
    box-shadow: 0 2px 10px rgba(0,0,0,0.02);
    transition: var(--transition-smooth);
}

.router-card#tab-btn-principal .card-icon { color: var(--brand-navy); }
.router-card#tab-btn-teacher .card-icon { color: var(--brand-teal); }
.router-card#tab-btn-student .card-icon { color: var(--brand-yellow); }
.router-card#tab-btn-parent .card-icon { color: var(--brand-coral); }

.card-title {
    font-size: 1.15rem;
    margin-bottom: 8px;
    color: var(--text-primary);
}

.card-desc {
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 20px;
    flex-grow: 1;
}

.card-link {
    font-family: var(--font-heading);
    font-size: 0.825rem;
    font-weight: 700;
}

.card-border-glow {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: inherit;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.router-card.active .card-border-glow {
    opacity: 1;
}

.router-card#tab-btn-principal .card-border-glow { box-shadow: inset 0 0 15px rgba(30, 41, 59, 0.05); }
.router-card#tab-btn-teacher .card-border-glow { box-shadow: inset 0 0 15px rgba(14, 165, 233, 0.05); }
.router-card#tab-btn-student .card-border-glow { box-shadow: inset 0 0 15px rgba(245, 158, 11, 0.05); }
.router-card#tab-btn-parent .card-border-glow { box-shadow: inset 0 0 15px rgba(255, 82, 82, 0.05); }

/* Dynamic Router Preview Screen */
.router-preview-container {
    padding: 36px;
    min-height: 380px;
    border-radius: 16px;
    background: #ffffff;
    border: 1px solid var(--border-color);
}

.preview-grid {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 36px;
    align-items: center;
}

.preview-details {
    display: flex;
    flex-direction: column;
}

.preview-tag {
    font-family: var(--font-heading);
    font-size: 0.725rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    margin-bottom: 10px;
}

.preview-title {
    font-size: 1.85rem;
    margin-bottom: 14px;
    color: var(--text-primary);
}

.preview-text {
    font-size: 0.95rem;
    color: var(--text-secondary);
    margin-bottom: 24px;
}

.preview-bullets {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

.p-bullet {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.88rem;
}

.p-check {
    font-weight: bold;
}

.p-txt {
    color: var(--text-primary);
}

.preview-visual-card {
    height: 260px;
    border-radius: 12px;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--border-color);
    box-shadow: 0 4px 20px rgba(0,0,0,0.02);
}

.visual-mock-db {
    width: 90%;
    height: 85%;
    display: flex;
    flex-direction: column;
    padding: 14px;
}

.visual-mock-hdr {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(0,0,0,0.06);
    padding-bottom: 8px;
    margin-bottom: 12px;
    font-size: 0.725rem;
    font-weight: 700;
    color: var(--text-primary);
}

.visual-mock-content {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.mock-row-item {
    display: flex;
    justify-content: space-between;
    background: #ffffff;
    border: 1px solid rgba(0,0,0,0.04);
    padding: 6px 10px;
    border-radius: 6px;
    font-size: 0.78rem;
}

.mock-status {
    font-weight: 700;
}


/* 10. Twin Pillars of Innovation */
.pillars-section {
    position: relative;
}

.pillars-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}

.pillar-card {
    padding: 40px;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    border-radius: 20px;
    min-height: 560px;
    background: #ffffff;
}

.pillar-glow {
    position: absolute;
    top: -50px;
    left: -50px;
    width: 250px;
    height: 250px;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.08;
    pointer-events: none;
}

.pillar-glow.glow-cyan { background: var(--brand-teal); }
.pillar-glow.glow-coral { background: var(--brand-coral); }

.pillar-badge-tech {
    display: inline-block;
    padding: 3px 8px;
    border-radius: 4px;
    font-family: var(--font-heading);
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.03em;
    margin-bottom: 16px;
}

.pillar-card#pillar-ai-factory .pillar-badge-tech { color: var(--brand-teal); background: var(--brand-teal-alpha); }
.pillar-card#pillar-iron-shield .pillar-badge-tech { color: var(--brand-coral); background: var(--brand-coral-alpha); }

.pillar-title {
    font-size: 1.75rem;
    margin-bottom: 10px;
    color: var(--text-primary);
}

.pillar-desc {
    font-size: 0.925rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 24px;
}

.pillar-widget-box {
    flex-grow: 1;
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 24px;
    display: flex;
    flex-direction: column;
    background: #f8fafc;
    border: 1px solid var(--border-color);
}

.widget-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(0,0,0,0.06);
    padding-bottom: 10px;
    margin-bottom: 14px;
    font-size: 0.725rem;
    flex-shrink: 0;
}

.widget-indicator {
    color: var(--text-primary);
    font-weight: 600;
    display: flex;
    align-items: center;
}

.fallback-indicator {
    font-family: var(--font-heading);
    font-size: 0.68rem;
    color: var(--text-secondary);
}

.fallback-pipe {
    color: var(--text-muted);
    margin: 0 4px;
}

.engine-inactive {
    color: var(--text-muted);
}

.shield-security-level {
    background: var(--brand-coral-alpha);
    border: 1px solid rgba(255, 82, 82, 0.15);
    color: var(--brand-coral);
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 0.65rem;
    font-weight: 600;
}

.widget-simulator-body {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.simulator-input-line {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-bottom: 10px;
}

.sim-lbl {
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    color: var(--text-secondary);
    font-weight: 700;
}

.sim-input-wrapper {
    display: flex;
    gap: 8px;
}

.sim-input-wrapper input {
    flex-grow: 1;
    background: #ffffff;
    border: 1px solid var(--border-color);
    padding: 8px 12px;
    border-radius: 20px;
    color: var(--text-primary);
    font-size: 0.825rem;
    outline: none;
}

.simulator-terminal {
    flex-grow: 1;
    min-height: 120px;
    background: #ffffff;
    border: 1px solid rgba(0,0,0,0.05);
    border-radius: 8px;
    padding: 10px;
    font-family: monospace;
    font-size: 0.725rem;
    overflow-y: auto;
    color: #475569;
}

.terminal-placeholder {
    color: var(--text-muted);
    font-style: italic;
}

.terminal-sim-line {
    margin-bottom: 4px;
    line-height: 1.4;
}

.terminal-sim-line.done {
    color: var(--brand-teal);
}

/* Security Video simulation area */
.focus-video-simulator {
    flex-grow: 1;
    background: #1e293b;
    border-radius: 8px;
    aspect-ratio: 16/9;
    overflow: hidden;
    position: relative;
    border: 1px solid rgba(0,0,0,0.05);
    margin-bottom: 12px;
}

.focus-video-player {
    width: 100%;
    height: 100%;
    position: relative;
}

.opacity-low {
    opacity: 0.08;
}

.video-state-active {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: radial-gradient(circle, rgba(14, 165, 233, 0.05) 0%, rgba(30,41,59,0.95) 100%);
    padding: 14px;
    text-align: center;
    color: #ffffff;
    transition: var(--transition-quick);
}

.pulsing-radar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 2px solid var(--brand-teal);
    margin-bottom: 10px;
    animation: radar-expand 2s infinite ease-out;
}

@keyframes radar-expand {
    0% { transform: scale(0.6); opacity: 1; }
    100% { transform: scale(1.4); opacity: 0; }
}

.video-state-text {
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 2px;
}

.video-subtext {
    font-size: 0.65rem;
    opacity: 0.7;
}

.video-state-paused {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    z-index: 10;
    padding: 16px;
    text-align: center;
    animation: alert-flash 0.15s ease-out;
}

@keyframes alert-flash {
    0% { background: rgba(255, 82, 82, 0.1); }
    100% { background: rgba(255, 255, 255, 0.95); }
}

.paused-title {
    font-size: 1rem;
    font-weight: 700;
    margin-top: 10px;
    margin-bottom: 2px;
}

.paused-reason {
    font-size: 0.725rem;
    color: var(--text-secondary);
}

.shield-triggers-row {
    display: flex;
    gap: 8px;
}

.shield-triggers-row button {
    flex-grow: 1;
}

.hidden {
    display: none !important;
}

.pillar-features {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.pillar-features li {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.88rem;
}


/* 11. Bento Grid (Operational Backbone) */
.backbone-section {
    background-color: var(--bg-secondary);
}

.bento-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-auto-rows: minmax(260px, auto);
    gap: 24px;
}

.col-span-2 {
    grid-column: span 2;
}

.bento-card {
    padding: 28px;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
    background: #ffffff;
    border: 1px solid var(--border-color);
    box-shadow: 0 4px 20px rgba(15, 23, 42, 0.02);
}

.bento-header {
    display: flex;
    gap: 14px;
    margin-bottom: 20px;
    flex-shrink: 0;
}

.bento-icon {
    width: 38px;
    height: 38px;
    border-radius: 8px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.bento-card-title {
    font-size: 1.1rem;
    margin-bottom: 2px;
    color: var(--text-primary);
}

.bento-card-desc {
    font-size: 0.825rem;
    color: var(--text-secondary);
}

.bento-content-body {
    flex-grow: 1;
}

.flex-center {
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Revenue Dial LTR */
.revenue-analytics {
    display: grid;
    grid-template-columns: 0.8fr 1.2fr;
    gap: 20px;
    align-items: center;
    height: 100%;
}

.debt-dial-container {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.circular-chart {
    display: block;
    max-width: 100px;
    max-height: 100px;
}

.circle-bg {
    fill: none;
    stroke: rgba(0,0,0,0.03);
    stroke-width: 3.8;
}

.circle {
    fill: none;
    stroke-width: 3.8;
    stroke-linecap: round;
}

.circular-chart.green .circle {
    stroke: var(--brand-teal);
}

.percentage {
    fill: var(--text-primary);
    font-family: var(--font-heading);
    font-size: 0.6rem;
    font-weight: 800;
    text-anchor: middle;
}

.dial-label {
    font-size: 0.725rem;
    color: var(--text-secondary);
    margin-top: 6px;
    font-weight: 600;
}

.revenue-queue {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.queue-item {
    background: var(--bg-secondary);
    border: 1px solid rgba(0,0,0,0.02);
    padding: 8px 10px;
    border-radius: 6px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.725rem;
}

.student-name {
    color: var(--text-primary);
    font-weight: 500;
}

.debt-amount {
    color: var(--text-secondary);
    font-weight: 600;
}

.badge-status {
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 0.65rem;
    font-weight: 600;
}

.badge-status.warn { background: var(--brand-yellow-alpha); border: 1px solid rgba(255, 179, 0, 0.2); color: #b78103; }
.badge-status.success { background: var(--brand-teal-alpha); border: 1px solid rgba(0, 191, 165, 0.2); color: var(--brand-teal); }
.badge-status.fail { background: var(--brand-coral-alpha); border: 1px solid rgba(255, 82, 82, 0.2); color: var(--brand-coral); }

/* Fleet map tracker LTR */
.transport-map-mock {
    width: 100%;
    height: 140px;
    background: #f8fafc;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    position: relative;
    overflow: hidden;
}

.map-grid-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: 15px 15px;
    background-image: 
        linear-gradient(to right, rgba(14, 165, 233, 0.03) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(14, 165, 233, 0.03) 1px, transparent 1px);
}

.map-bus-route {
    position: absolute;
    width: 100%;
    bottom: 20px;
}

.animated-path {
    stroke-dasharray: 200;
    stroke-dashoffset: 200;
    animation: draw-path 3s linear infinite;
}

@keyframes draw-path {
    to { stroke-dashoffset: 0; }
}

.pulsing-ring {
    animation: ring-expand 1.5s infinite ease-out;
    transform-origin: 100px 40px;
}

@keyframes ring-expand {
    0% { transform: scale(0.5); opacity: 1; }
    100% { transform: scale(1.6); opacity: 0; }
}

.bus-info-card {
    position: absolute;
    top: 10px;
    left: 10px; /* Standard LTR left */
    background: #ffffff;
    border: 1px solid rgba(14, 165, 233, 0.15);
    border-radius: 6px;
    padding: 6px 10px;
    display: flex;
    flex-direction: column;
    font-size: 0.65rem;
    box-shadow: 0 2px 10px rgba(0,0,0,0.02);
}

.bus-id {
    color: var(--text-primary);
    font-weight: 700;
}

.bus-eta {
    color: var(--brand-teal);
    margin-top: 2px;
}

/* Dojo Stories feed card */
.story-feed {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.feed-post {
    padding: 12px;
    display: flex;
    flex-direction: column;
}

.post-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
}

.post-avatar {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: var(--brand-teal-alpha);
    border: 1px solid rgba(14, 165, 233, 0.2);
    color: var(--brand-teal);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.65rem;
    font-weight: 700;
}

.post-meta {
    display: flex;
    flex-direction: column;
}

.post-author {
    font-size: 0.725rem;
    font-weight: 600;
}

.post-tag {
    font-size: 0.58rem;
    color: var(--brand-teal);
}

.post-text {
    font-size: 0.75rem;
    color: var(--text-secondary);
    line-height: 1.4;
    margin-bottom: 8px;
}

.post-likes {
    display: flex;
    justify-content: space-between;
    font-size: 0.65rem;
    color: var(--text-muted);
}

.like-btn {
    cursor: pointer;
}

/* Clinic allergens lists */
.clinic-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    height: 100%;
    align-items: center;
}

.clinic-list {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.clinic-sub-lbl {
    font-size: 0.68rem;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    color: var(--text-secondary);
    font-weight: 700;
    margin-bottom: 2px;
}

.allergy-tag {
    background: rgba(255, 82, 82, 0.02);
    border: 1px solid rgba(255, 82, 82, 0.12);
    color: var(--text-primary);
    font-size: 0.725rem;
    padding: 6px 10px;
    border-radius: 6px;
    font-weight: 500;
}

.cafeteria-stats {
    background: var(--bg-secondary);
    border: 1px solid rgba(0,0,0,0.02);
    padding: 12px;
    border-radius: 8px;
    display: flex;
    flex-direction: column;
}

.cafe-metric {
    display: flex;
    flex-direction: column;
    margin-top: 6px;
}

.cafe-val {
    font-family: var(--font-heading);
    font-size: 1.35rem;
    font-weight: 800;
    color: var(--brand-teal);
}

.cafe-lbl {
    font-size: 0.65rem;
    color: var(--text-secondary);
}


/* 12. Gamification & Retention Engine */
.gamification-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}

.gamify-card {
    padding: 40px;
    display: flex;
    flex-direction: column;
    background: #ffffff;
}

.gamify-header {
    margin-bottom: 24px;
}

.card-subtitle-small {
    font-family: var(--font-heading);
    font-size: 0.725rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    color: var(--brand-teal);
    text-transform: uppercase;
    margin-bottom: 6px;
}

.gamify-title {
    font-size: 1.75rem;
    margin-bottom: 10px;
    color: var(--text-primary);
}

.gamify-desc {
    font-size: 0.925rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* Leaderboard scoreboard layout */
.scoreboard-simulator {
    background: #f8fafc;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 20px;
}

.sim-user-status {
    display: flex;
    align-items: center;
    gap: 10px;
    border-bottom: 1px solid rgba(0,0,0,0.05);
    padding-bottom: 12px;
    margin-bottom: 14px;
}

.user-avatar-glow {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: var(--brand-teal-alpha);
    border: 1px solid var(--brand-teal);
    color: var(--text-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.8rem;
    box-shadow: 0 2px 8px rgba(14, 165, 233, 0.15);
}

.user-xp-details {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.user-name {
    font-size: 0.78rem;
    font-weight: 650;
    color: var(--text-primary);
}

.user-level-badge {
    font-size: 0.65rem;
    color: var(--brand-teal);
    font-weight: 500;
}

.user-score-counter {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

.xp-val {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 800;
    color: var(--text-primary);
}

.xp-lbl {
    font-size: 0.6rem;
    color: var(--text-muted);
}

.mini-leaderboard {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 14px;
}

.leaderboard-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #ffffff;
    border: 1px solid rgba(0,0,0,0.03);
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 0.725rem;
}

.leaderboard-item.first-place { border-color: rgba(245, 158, 11, 0.15); background: rgba(245, 158, 11, 0.02); }
.leaderboard-item.first-place .rank { color: #b78103; font-weight: 700; }

.leaderboard-item.active-user { border-color: rgba(14, 165, 233, 0.2); background: rgba(14, 165, 233, 0.02); }
.leaderboard-item.active-user .rank { color: var(--brand-teal); font-weight: 700; }

.sim-actions-row {
    display: flex;
    justify-content: flex-end;
}

.badge-showcase-container {
    display: flex;
    flex-direction: column;
}

.badge-showcase-lbl {
    font-size: 0.725rem;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    color: var(--text-muted);
    font-weight: 700;
    margin-bottom: 10px;
}

.badges-row {
    display: flex;
    gap: 12px;
}

.badge-item {
    flex-grow: 1;
    background: #f8fafc;
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.badge-item:hover {
    transform: translateY(-2px);
    border-color: var(--text-secondary);
}

.badge-inner {
    font-size: 1.15rem;
}

.badge-lbl {
    font-size: 0.65rem;
    font-weight: 600;
    color: var(--text-secondary);
}

/* 13. Modular Pricing Calculator custom elements */
.pricing-checkboxes-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 14px;
}

.calc-checkbox-container {
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    position: relative;
    padding: 11px 16px;
    background: #ffffff;
    border: 1.5px solid var(--border-color);
    border-radius: 30px; /* Rounded pill checkbox container matching image style */
    transition: var(--transition-smooth);
    user-select: none;
}

.calc-checkbox-container:hover {
    border-color: var(--brand-teal);
    background: var(--bg-secondary);
}

.calc-checkbox-container input[type="checkbox"] {
    display: none;
}

.calc-custom-check {
    width: 20px;
    height: 20px;
    border: 1.5px solid var(--text-muted);
    border-radius: 50%; /* Circle checkers */
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-quick);
    background: #ffffff;
    flex-shrink: 0;
}

.calc-checkbox-container input:checked + .calc-custom-check {
    background: var(--brand-teal);
    border-color: var(--brand-teal);
}

.calc-checkbox-container input:checked + .calc-custom-check::after {
    content: '✓';
    color: #ffffff;
    font-size: 0.75rem;
    font-weight: 800;
}

.calc-lbl-text {
    font-size: 0.88rem;
    font-weight: 700;
    color: var(--text-primary);
}

.calc-price-badge {
    margin-left: auto; /* Push to the right in LTR */
    background: var(--brand-teal-alpha);
    color: var(--brand-teal);
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 0.78rem;
    font-weight: 800;
    font-family: 'Outfit', sans-serif;
}

.price-display-box {
    margin: 20px 0;
}


/* 13.5 Certificate Renderer Builder custom elements */
.certificate-preview-box {
    border: 1.5px dashed var(--border-color);
    padding: 24px;
    border-radius: 12px;
    background: radial-gradient(circle, rgba(245, 158, 11, 0.02) 0%, #ffffff 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.01);
    min-height: 290px;
    margin-top: 10px;
}

/* Corner ornaments matching LTR borders */
.cert-corner {
    position: absolute;
    width: 20px;
    height: 20px;
    border: 2px solid transparent;
}
.cert-corner.top-left {
    top: 10px;
    left: 10px;
    border-top-color: var(--brand-yellow);
    border-left-color: var(--brand-yellow);
}
.cert-corner.top-right {
    top: 10px;
    right: 10px;
    border-top-color: var(--brand-yellow);
    border-right-color: var(--brand-yellow);
}
.cert-corner.bottom-left {
    bottom: 10px;
    left: 10px;
    border-bottom-color: var(--brand-yellow);
    border-left-color: var(--brand-yellow);
}
.cert-corner.bottom-right {
    bottom: 10px;
    right: 10px;
    border-bottom-color: var(--brand-yellow);
    border-right-color: var(--brand-yellow);
}

.cert-header {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 10px;
}

.cert-brand-lbl {
    font-family: var(--font-heading);
    font-size: 0.75rem;
    font-weight: 800;
    color: var(--brand-navy);
    letter-spacing: 0.05em;
}

.cert-subtitle-badge {
    font-family: var(--font-heading);
    font-size: 0.58rem;
    color: var(--brand-yellow);
    background: var(--brand-yellow-alpha);
    border: 1px solid rgba(245, 158, 11, 0.15);
    padding: 2px 8px;
    border-radius: 4px;
    font-weight: 700;
    letter-spacing: 0.05em;
    margin-bottom: 12px;
}

.cert-present-text {
    font-size: 0.65rem;
    color: var(--text-secondary);
    font-style: italic;
    margin-bottom: 4px;
}

#cert-recipient-name {
    font-family: var(--font-heading);
    font-size: 1.45rem;
    font-weight: 900;
    color: var(--brand-navy);
    margin: 6px 0;
    text-shadow: 0 1px 2px rgba(0,0,0,0.04);
}

#cert-display-course {
    font-family: var(--font-heading);
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--brand-teal);
    margin-bottom: 16px;
}

.cert-sigs-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    width: 100%;
    border-top: 1px solid rgba(30, 41, 59, 0.06);
    padding-top: 12px;
    margin-top: auto;
    font-size: 0.55rem;
    color: var(--text-muted);
}

.sig-col {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

.sig-col.align-left {
    text-align: left;
}

.sig-col.align-right {
    text-align: right;
}

.sig-cursive {
    font-family: 'Outfit', cursive, sans-serif;
    font-size: 0.725rem;
    font-weight: 600;
    color: var(--brand-navy);
    font-style: italic;
    margin-bottom: 2px;
}

.sig-title-line {
    border-top: 1px solid rgba(30, 41, 59, 0.1);
    margin-top: 4px;
    padding-top: 2px;
}

.cert-gold-seal {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 1.5px solid var(--brand-yellow);
    background: var(--brand-yellow-alpha);
    box-shadow: 0 2px 8px rgba(245, 158, 11, 0.15);
    font-size: 0.95rem;
}

.cert-hash-footer {
    margin-top: 14px;
    font-family: monospace;
    font-size: 0.525rem;
    color: var(--text-muted);
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    padding: 4px 10px;
    border-radius: 4px;
    width: 100%;
    display: flex;
    justify-content: space-between;
}


.pricing-grid {
    grid-template-columns: 1.15fr 0.85fr;
    align-items: start;
}

.builder-inputs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 20px;
}


/* 14. Conversational Form Section */
.contact-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
    padding: 56px;
    border-radius: 20px;
    background: #ffffff;
    border: 1px solid var(--border-color);
    box-shadow: 0 10px 40px rgba(15, 23, 42, 0.03);
}

.contact-info-col {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.contact-title {
    font-size: 2.15rem;
    line-height: 1.25;
    margin-top: 10px;
    margin-bottom: 16px;
    color: var(--text-primary);
}

.contact-desc {
    color: var(--text-secondary);
    font-size: 0.98rem;
    margin-bottom: 30px;
    line-height: 1.65;
}

.contact-bullets {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.bullet-item {
    display: flex;
    align-items: center;
    gap: 12px;
}

.bullet-circle {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.725rem;
    font-weight: 700;
}

.bullet-item span {
    font-size: 0.925rem;
    color: var(--text-primary);
}

/* Contact form controls */
.contact-form-col {
    position: relative;
    min-height: 400px;
    display: flex;
    align-items: center;
}

.futuristic-form {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 16px;
    transition: var(--transition-smooth);
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.form-group label {
    font-family: var(--font-heading);
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.form-group input, .form-group select, .form-group textarea {
    background: #f8fafc;
    border: 1px solid var(--border-color);
    border-radius: 20px; /* Rounded controls */
    padding: 10px 16px;
    color: var(--text-primary);
    font-size: 0.88rem;
    font-family: var(--font-body);
    outline: none;
    transition: var(--transition-quick);
}

.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
    border-color: var(--brand-teal);
    box-shadow: 0 0 10px rgba(14, 165, 233, 0.1);
}

.form-group select option {
    background: #ffffff;
    color: var(--text-primary);
}

.form-group textarea {
    border-radius: 12px;
    resize: vertical;
}

/* Success status feedback overlay */
.form-success-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 30px;
    background: #ffffff;
    border-radius: 12px;
    border: 1px solid var(--brand-teal-glow);
    animation: fade-in-slide 0.4s ease-out;
}

.success-icon-glow {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: var(--brand-teal-alpha);
    border: 1px solid var(--brand-teal);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    box-shadow: 0 0 15px rgba(14, 165, 233, 0.2);
}

.form-success-overlay h3 {
    font-size: 1.6rem;
    margin-bottom: 10px;
}

.form-success-overlay p {
    color: var(--text-secondary);
    font-size: 0.925rem;
    margin-bottom: 20px;
    max-width: 320px;
}

.provisioning-tracker {
    width: 100%;
    max-width: 260px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    padding: 12px;
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.tracker-text {
    font-size: 0.725rem;
    font-weight: 500;
}

.tracker-bar {
    height: 4px;
    background: rgba(0,0,0,0.06);
    border-radius: 2px;
    overflow: hidden;
}

.tracker-bar-fill {
    height: 100%;
    background: var(--brand-teal);
    animation: bar-load 2.5s ease-out forwards;
}

@keyframes bar-load {
    0% { width: 0%; }
    100% { width: 100%; }
}


/* 14. Footer Layout */
.main-footer {
    border-top: 1px solid var(--border-color);
    background: #0f172a;
    color: #f8fafc;
    padding: 70px 0 28px 0;
    position: relative;
    z-index: 2;
}

.main-footer .logo-text {
    color: #ffffff;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr 0.8fr 1.2fr;
    gap: 40px;
    margin-bottom: 50px;
}

.footer-brand-col {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
}

.footer-brand-desc {
    font-size: 0.825rem;
    color: #94a3b8;
    line-height: 1.5;
}

.footer-links-col {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-col-lbl {
    font-family: var(--font-heading);
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #ffffff;
    margin-bottom: 6px;
}

.footer-links-col a {
    font-size: 0.825rem;
    color: #94a3b8;
    transition: var(--transition-quick);
}

.footer-links-col a:hover {
    color: #ffffff;
}

.node-indicator {
    display: flex;
    align-items: center;
    font-size: 0.725rem;
    color: #94a3b8;
}

.node-indicator span {
    margin-right: 8px; /* Standard LTR right */
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.06);
    padding-top: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.78rem;
    color: #64748b;
}

.footer-legal {
    display: flex;
    gap: 20px;
}

.footer-legal a {
    transition: var(--transition-quick);
    color: #64748b;
}

.footer-legal a:hover {
    color: #94a3b8;
}


/* ==========================================================================
   Responsive Adaptations (Media Queries)
   ========================================================================== */

/* Tablets and small laptops */
@media (max-width: 1024px) {
    html {
        font-size: 15px;
    }
    
    .section-padding {
        padding: 70px 0;
    }
    
    .hero-grid {
        grid-template-columns: 1fr;
        gap: 32px;
        text-align: center;
    }
    
    .hero-content {
        align-items: center;
    }
    
    .hero-subtitle {
        margin-left: auto;
        margin-right: auto;
    }
    
    .hero-ctas {
        justify-content: center;
    }
    
    .hero-avatars-group {
        justify-content: center;
        margin-left: auto;
        margin-right: auto;
    }
    
    .hero-mockup-wrapper {
        max-width: 600px;
        margin: 0 auto;
        width: 100%;
    }
    
    .router-cards-grid {
        grid-template-columns: 1fr;
        gap: 14px;
    }
    
    .preview-grid {
        grid-template-columns: 1fr;
        gap: 28px;
    }
    
    .preview-visual-card {
        order: -1;
    }
    
    .pillars-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    
    .pillar-card {
        min-height: auto;
    }
    
    .bento-grid {
        grid-template-columns: 1fr;
        grid-auto-rows: auto;
    }
    
    .col-span-2 {
        grid-column: span 1;
    }
    
    .revenue-analytics {
        grid-template-columns: 1fr;
        gap: 28px;
    }
    
    .clinic-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .gamification-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    
    .contact-grid {
        grid-template-columns: 1fr;
        padding: 36px;
        gap: 28px;
    }
    
    .pricing-grid {
        grid-template-columns: 1fr;
        gap: 28px;
    }
    
    .footer-grid {
        grid-template-columns: 1.5fr 1fr;
        gap: 28px;
    }
    
    .footer-grid > *:nth-child(4) {
        grid-column: span 2;
    }
}

/* Handhelds and mobile screens */
@media (max-width: 768px) {
    .nav-links, .header-actions {
        display: none;
    }
    
    .mobile-nav-toggle {
        display: flex;
    }
    
    .hero-title {
        font-size: 2.75rem;
    }
    
    .hero-ctas {
        flex-direction: column;
        gap: 10px;
    }
    
    .hero-ctas > * {
        width: 100%;
    }
    
    .hero-avatars-group {
        flex-direction: column;
        align-items: center;
        gap: 12px;
    }
    
    .mockup-body {
        grid-template-columns: 1fr;
        overflow-y: auto;
    }
    
    .mockup-frame {
        height: 600px;
    }
    
    .mockup-pane {
        min-height: 180px;
    }
    
    .preview-bullets {
        grid-template-columns: 1fr;
    }
    
    .builder-inputs {
        grid-template-columns: 1fr;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-grid > * {
        grid-column: span 1 !important;
    }
    
    .footer-bottom {
        flex-direction: column;
        gap: 12px;
        text-align: center;
    }
    
    /* Stats Ribbon Grid Alignment */
    .ribbon-flex {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 24px;
    }
    
    /* Align bullet check icon to top for multi-line support */
    .pillar-features li {
        align-items: flex-start;
    }
    
    .p-bullet {
        align-items: flex-start;
    }
    
    /* Save card padding on mobile */
    .gamify-card {
        padding: 24px;
    }
    
    .scoreboard-simulator {
        padding: 12px;
    }
    
    /* Certificate card styling fixes on mobile/tablet (768px down) */
    .certificate-preview-box {
        padding: 16px;
    }
    
    #cert-recipient-name {
        font-size: 1.25rem;
    }
    
    #cert-display-course {
        font-size: 0.825rem;
    }
    
    .cert-sigs-row {
        flex-direction: column;
        align-items: center;
        gap: 14px;
        text-align: center;
    }
    
    .sig-col {
        align-items: center;
    }
    
    .sig-col.align-left, .sig-col.align-right {
        text-align: center;
    }
    
    .cert-hash-footer {
        flex-direction: column;
        gap: 6px;
        align-items: center;
        text-align: center;
    }
}

/* Very small mobile screens (max-width: 480px) */
@media (max-width: 480px) {
    .ribbon-flex {
        grid-template-columns: 1fr;
        justify-items: center;
        text-align: center;
    }
    
    .ribbon-item {
        flex-direction: column;
        gap: 8px;
    }
    
    /* Certificate card styling fixes on tiny screens */
    #cert-recipient-name {
        font-size: 1.15rem;
    }
    
    #cert-display-course {
        font-size: 0.78rem;
    }
    
    /* Pricing checkbox wrap optimizations */
    .calc-checkbox-container {
        padding: 10px 14px;
        border-radius: 20px;
        flex-wrap: wrap;
        gap: 8px;
    }
    
    .calc-lbl-text {
        font-size: 0.825rem;
        flex-grow: 1;
    }
    
    .calc-price-badge {
        margin-left: 32px; /* Indent past checker circle */
        width: 100%;
        text-align: left;
    }
    
    /* Save card padding on very small mobile */
    .gamify-card {
        padding: 16px;
    }
    
    .scoreboard-simulator {
        padding: 10px;
    }
    
    .sim-user-status {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 10px;
    }
    
    .user-score-counter {
        align-items: center;
        margin-top: 4px;
    }
    
    /* Wrap badges row in 2x2 grid */
    .badges-row {
        flex-wrap: wrap;
        gap: 10px;
    }
    
    .badge-item {
        flex: 1 1 calc(50% - 6px);
        min-width: 80px;
        padding: 8px 4px;
        gap: 2px;
    }
    
    .badge-inner {
        font-size: 0.95rem;
    }
}

/* ==========================================================================
   15. Right-To-Left (RTL) Layout Override for Arabic Pages
   ========================================================================== */
html[dir="rtl"] {
    text-align: right;
}

html[dir="rtl"] body {
    text-align: right;
}

/* Align flexboxes correctly in RTL default flow if they have LTR specific margins/alignments */
html[dir="rtl"] .logo {
    flex-direction: row;
}

html[dir="rtl"] .nav-cta {
    margin-left: 0;
}

html[dir="rtl"] .hero-content {
    align-items: flex-start;
}

/* Floating Instructors Group Avatar stack overlaps */
html[dir="rtl"] .avatar {
    margin-right: -14px;
    margin-left: 0;
}

html[dir="rtl"] .avatar:first-child {
    margin-right: 0;
    margin-left: 0;
}

/* Header and Navigation adjustments */
html[dir="rtl"] .mobile-nav-toggle {
    margin-right: auto;
    margin-left: 0;
}

/* Overlays and Background grids */
html[dir="rtl"] .dot-grid-decor.top-left {
    right: 20px;
    left: auto;
}

html[dir="rtl"] .dot-grid-decor.bottom-right {
    left: 40px;
    right: auto;
}

/* Floating Orbs & Rings positioning */
html[dir="rtl"] .orb-yellow {
    right: 52%;
    left: auto;
}

html[dir="rtl"] .ring-blue {
    left: 5%;
    right: auto;
}

html[dir="rtl"] .ring-coral {
    left: 3%;
    right: auto;
}

html[dir="rtl"] .hero-wave-decor {
    right: 45%;
    left: auto;
}

/* Mockup Elements direction & margins */
html[dir="rtl"] .notif-time {
    margin-left: 4px;
    margin-right: 0;
}

html[dir="rtl"] .prompt-lbl {
    margin-left: 4px;
    margin-right: 0;
}

html[dir="rtl"] .bus-info-card {
    right: 10px;
    left: auto;
    text-align: right;
}

/* Pricing Modules custom checklist */
html[dir="rtl"] .calc-price-badge {
    margin-right: auto;
    margin-left: 0;
}

/* Interactive Dashboard & Certificate details */
html[dir="rtl"] .sig-col.align-left {
    text-align: right;
}

html[dir="rtl"] .sig-col.align-right {
    text-align: left;
}

html[dir="rtl"] .cert-corner.top-left {
    top: 10px;
    right: 10px;
    left: auto;
    border-top-color: var(--brand-yellow);
    border-right-color: var(--brand-yellow);
    border-left-color: transparent;
}

html[dir="rtl"] .cert-corner.top-right {
    top: 10px;
    left: 10px;
    right: auto;
    border-top-color: var(--brand-yellow);
    border-left-color: var(--brand-yellow);
    border-right-color: transparent;
}

html[dir="rtl"] .cert-corner.bottom-left {
    bottom: 10px;
    right: 10px;
    left: auto;
    border-bottom-color: var(--brand-yellow);
    border-right-color: var(--brand-yellow);
    border-left-color: transparent;
}

html[dir="rtl"] .cert-corner.bottom-right {
    bottom: 10px;
    left: 10px;
    right: auto;
    border-bottom-color: var(--brand-yellow);
    border-left-color: var(--brand-yellow);
    border-right-color: transparent;
}

/* CRM Input alignments */
html[dir="rtl"] .futuristic-form input,
html[dir="rtl"] .futuristic-form select,
html[dir="rtl"] .futuristic-form textarea {
    text-align: right;
}

/* ==========================================================================
   10. Dedicated Applications Section
   ========================================================================== */
.apps-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 50px;
}

@media (max-width: 992px) {
    .apps-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
}

.app-card {
    padding: 30px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    height: 100%;
}

.app-card-badge {
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    font-family: var(--font-heading);
    margin-bottom: 20px;
    letter-spacing: 0.05em;
}

.app-card-title {
    font-size: 1.5rem;
    margin-bottom: 12px;
    font-family: var(--font-heading);
}

.app-card-desc {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 30px;
    flex-grow: 1;
}

/* CSS Phone App Mockups */
.app-mockup {
    width: 100%;
    background: #f1f5f9;
    border-radius: 16px;
    padding: 16px;
    border: 1px solid var(--border-color);
    box-shadow: inset 0 2px 8px rgba(0, 0, 0, 0.03);
    margin-top: auto;
}

.mock-phone-screen {
    background: #ffffff;
    border-radius: 12px;
    border: 1.5px solid var(--border-color);
    padding: 12px;
    font-family: var(--font-body);
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.04);
}

.mock-header-status {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
    font-size: 0.78rem;
    font-weight: 700;
}

.mock-badge {
    background: var(--brand-teal-alpha);
    color: var(--brand-teal);
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 0.68rem;
}

.mock-xp-bar {
    width: 100%;
    height: 6px;
    background: #e2e8f0;
    border-radius: 10px;
    margin-bottom: 14px;
    overflow: hidden;
}

.mock-xp-fill {
    height: 100%;
    background: var(--brand-teal);
    border-radius: 10px;
}

.mock-task-card {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 8px 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.75rem;
    margin-bottom: 12px;
}

.mock-task-title {
    font-weight: 600;
}

.mock-task-status {
    font-size: 0.65rem;
    font-weight: 700;
}

.mock-leaderboard-preview {
    border-top: 1px solid var(--border-color);
    padding-top: 8px;
}

.leader-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.7rem;
    padding: 3px 0;
    color: var(--text-secondary);
}

.leader-row.active {
    font-weight: 700;
    color: var(--brand-teal);
}

/* Staff Mockup CSS */
.mock-live {
    font-size: 0.68rem;
    color: var(--brand-green);
    display: flex;
    align-items: center;
    gap: 4px;
}

.mock-button-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6px;
    margin-bottom: 12px;
}

.mock-action-btn {
    border: 1px solid var(--border-color);
    background: transparent;
    padding: 6px;
    border-radius: 6px;
    font-size: 0.65rem;
    font-weight: 700;
    cursor: pointer;
    font-family: var(--font-heading);
}

.mock-action-btn.active {
    background: var(--brand-yellow-alpha);
    color: var(--brand-yellow);
    border-color: var(--brand-yellow);
}

.mock-list-attendance {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.student-attendance-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.72rem;
}

.badge-present {
    background: var(--brand-green-alpha);
    color: var(--brand-green);
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 0.62rem;
    font-weight: 700;
}

/* Parent Mockup CSS */
.mock-badge-status {
    background: var(--brand-green-alpha);
    color: var(--brand-green);
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 0.68rem;
    font-weight: 700;
}

.mock-notification-bubble {
    background: var(--brand-coral-alpha);
    border: 1px solid rgba(255, 82, 82, 0.15);
    border-radius: 8px;
    padding: 8px 10px;
    margin-bottom: 12px;
    display: flex;
    flex-direction: column;
}

.notif-lbl {
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--brand-coral);
}

.notif-desc {
    font-size: 0.68rem;
    color: var(--text-secondary);
}

.mock-bus-map-mini {
    height: 40px;
    background: #f8fafc;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    position: relative;
    overflow: hidden;
}

.map-track-line {
    position: absolute;
    top: 50%;
    left: 10px;
    right: 10px;
    height: 2px;
    background: #e2e8f0;
}

.map-bus-dot {
    position: absolute;
    top: -4px;
    left: 40%;
    width: 10px;
    height: 10px;
    background: var(--brand-coral);
    border-radius: 50%;
    box-shadow: 0 0 6px var(--brand-coral);
    animation: move-bus 4s infinite alternate ease-in-out;
}

@keyframes move-bus {
    0% { left: 10%; }
    100% { left: 90%; }
}

/* ==========================================================================
   11. Edutree Communities Section
   ========================================================================== */
.communities-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 50px;
}

@media (max-width: 992px) {
    .communities-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
}

.community-card {
    padding: 40px 30px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    height: 100%;
    position: relative;
    overflow: hidden;
}

.community-icon-container {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
    transition: var(--transition-smooth);
}

.community-card:hover .community-icon-container {
    transform: scale(1.1) rotate(5deg);
}

.community-title {
    font-size: 1.35rem;
    font-family: var(--font-heading);
    margin-bottom: 14px;
    font-weight: 700;
}

.community-desc {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 0;
}

.communities-cta-wrapper {
    margin-top: 50px;
    display: flex;
    justify-content: center;
}

.communities-cta-btn {
    font-size: 1.1rem;
    padding: 16px 40px;
}