@import url('https://fonts.googleapis.com/css2?family=IBM+Plex+Sans+Arabic:wght@300;400;500;600;700&family=Plus+Jakarta+Sans:wght@400;500;600;700;800&family=Tajawal:wght@400;500;700;800;900&display=swap');

/* ========================================================
   TA'AHADOO ACADEMY (أكاديمية تعاهدوا) - MASTER BRAND SYSTEM
   Colors strictly locked to:
   - Deep Azure Navy: #0C2B4E (25%)
   - Royal Warm Gold: #C59B27 (15%)
   - Pure White / Off-White Pearl: #FFFFFF / #F8F9FA (60%)
   - Technical Mid Navy: #1A4373
   ======================================================== */
:root {
    /* Brand Primary - Deep Azure Navy (الكحلي الليلي العميق) */
    --primary: #0C2B4E;
    --primary-dark: #071B33;
    --primary-light: #1A4373;
    --primary-subtle: #EDF2F7;
    --primary-rgb: 12, 43, 78;

    /* Brand Secondary / Accent - Royal Warm Gold (الذهبي الدافئ الغني) */
    --accent: #C59B27;
    --accent-light: #E5C158;
    --accent-dark: #9E7916;
    --accent-subtle: #FDF9EE;
    --accent-rgb: 197, 155, 39;

    --gold: #C59B27;
    --gold-light: #E5C158;
    --gold-dark: #9E7916;
    --gold-subtle: #FDF9EE;

    /* Technical Blues */
    --navy: #0C2B4E;
    --navy-mid: #1A4373;
    --navy-light: #245A9B;

    /* Canvas & Backgrounds (60% ratio) */
    --background: #F8F9FA;
    --bg-main: #F8F9FA;
    --bg-card: #FFFFFF;
    --card: #FFFFFF;
    --popover: #FFFFFF;
    
    /* Text & Foregrounds */
    --foreground: #0C2B4E;
    --dark: #0C2B4E;
    --slate: #334155;
    --muted: #64748B;
    --muted-foreground: #64748B;
    --muted-bg: #F1F5F9;

    /* Borders & Inputs */
    --border: #E2E8F0;
    --border-subtle: rgba(26, 67, 115, 0.12);
    --input: #E2E8F0;
    --ring: #C59B27;

    /* Functional Semantic States (Aligned with Navy/Gold palette) */
    --success: #1A4373;
    --success-subtle: #EBF3FC;
    --warning: #C59B27;
    --warning-subtle: #FDF9EE;
    --danger: #DC2626;
    --danger-subtle: #FEF2F2;
    --info: #0C2B4E;
    --info-subtle: #EEF4FA;

    /* Geometry & Radii */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 18px;
    --radius-xl: 26px;
    --radius-2xl: 36px;
    --radius-full: 9999px;

    /* Shadows & Glows */
    --shadow-sm: 0 1px 3px rgba(12, 43, 78, 0.05);
    --shadow-md: 0 4px 10px -1px rgba(12, 43, 78, 0.08), 0 2px 4px -1px rgba(12, 43, 78, 0.04);
    --shadow-lg: 0 12px 24px -4px rgba(12, 43, 78, 0.10), 0 4px 6px -2px rgba(12, 43, 78, 0.04);
    --shadow-xl: 0 20px 35px -5px rgba(12, 43, 78, 0.12);
    --shadow-2xl: 0 25px 50px -12px rgba(12, 43, 78, 0.25);
    --shadow-gold-glow: 0 8px 30px rgba(197, 155, 39, 0.35);
    --shadow-navy-glow: 0 8px 30px rgba(12, 43, 78, 0.30);
}

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

html {
    scroll-behavior: smooth;
    direction: rtl;
}

body {
    font-family: 'IBM Plex Sans Arabic', 'Tajawal', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    background-color: var(--background);
    color: var(--foreground);
    line-height: 1.6;
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}
::-webkit-scrollbar-track {
    background: #F8F9FA;
}
::-webkit-scrollbar-thumb {
    background: #CBD5E1;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--accent);
}

/* Typography & Links */
a {
    color: var(--primary);
    text-decoration: none;
    transition: all 0.25s ease;
}
a:hover {
    color: var(--accent);
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 800;
    color: var(--primary);
    line-height: 1.3;
}

/* Gradients */
.gradient-primary {
    background: linear-gradient(135deg, #0C2B4E 0%, #071B33 100%);
}
.gradient-accent {
    background: linear-gradient(135deg, #E5C158 0%, #C59B27 50%, #9E7916 100%);
}
.gradient-brand {
    background: linear-gradient(135deg, #0C2B4E 0%, #1A4373 50%, #C59B27 100%);
}
.text-gradient-gold {
    background: linear-gradient(135deg, #E5C158 0%, #C59B27 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}
.text-gradient-brand {
    background: linear-gradient(135deg, #0C2B4E 0%, #C59B27 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Glassmorphism */
.glass-nav {
    background: rgba(248, 249, 250, 0.92);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(226, 232, 240, 0.85);
}
.glass-card {
    background: rgba(255, 255, 255, 0.90);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(226, 232, 240, 0.8);
}

/* Animations */
@keyframes ping {
    75%, 100% {
        transform: scale(2);
        opacity: 0;
    }
}
.animate-ping {
    animation: ping 1.5s cubic-bezier(0, 0, 0.2, 1) infinite;
}

@keyframes pulse {
    50% { opacity: 0.5; }
}
.animate-pulse {
    animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

/* ========================================================
   BUTTONS (CTAs: Gold #C59B27 with Navy #0C2B4E text)
   ======================================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 24px;
    border-radius: var(--radius-full);
    font-size: 14.5px;
    font-weight: 700;
    cursor: pointer;
    border: 1px solid transparent;
    transition: all 0.25s ease;
    text-decoration: none;
    line-height: 1.4;
    white-space: nowrap;
    font-family: inherit;
}
/* Priority CTA Button: Gold with Navy Text as required by Brand Section 12 */
.btn-primary, .btn-cta-gold {
    background: linear-gradient(135deg, #E5C158 0%, #C59B27 100%);
    color: #0C2B4E !important;
    border: 1px solid #C59B27;
    box-shadow: 0 4px 16px rgba(197, 155, 39, 0.35);
    font-weight: 800;
}
.btn-primary:hover, .btn-cta-gold:hover {
    background: linear-gradient(135deg, #F3DC88 0%, #D4AF37 100%);
    color: #071B33 !important;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(197, 155, 39, 0.5);
}

.btn-navy {
    background: #0C2B4E;
    color: #FFFFFF !important;
    border: 1px solid #0C2B4E;
    box-shadow: 0 4px 14px rgba(12, 43, 78, 0.25);
}
.btn-navy:hover {
    background: #071B33;
    color: #FFFFFF !important;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(12, 43, 78, 0.35);
}

.btn-secondary {
    background: #FFFFFF;
    color: #0C2B4E !important;
    border: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
}
.btn-secondary:hover {
    background: #F1F5F9;
    border-color: #1A4373;
    color: #071B33 !important;
}

.btn-danger {
    background: #DC2626;
    color: #FFFFFF !important;
    box-shadow: 0 4px 12px rgba(220, 38, 38, 0.25);
}
.btn-danger:hover {
    background: #B91C1C;
    color: #FFFFFF !important;
    transform: translateY(-2px);
}

.btn-outline {
    background: transparent;
    border: 2px solid #0C2B4E;
    color: #0C2B4E;
}
.btn-outline:hover {
    background: #0C2B4E;
    color: #FFFFFF;
    transform: translateY(-2px);
}

.btn-outline-gold {
    background: transparent;
    border: 2px solid #C59B27;
    color: #C59B27;
}
.btn-outline-gold:hover {
    background: #C59B27;
    color: #0C2B4E;
}

.btn-sm {
    padding: 6px 14px;
    font-size: 13px;
    border-radius: var(--radius-full);
}
.btn-lg {
    padding: 14px 34px;
    font-size: 17px;
}

/* Badges */
.badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 14px;
    border-radius: var(--radius-full);
    font-size: 12.5px;
    font-weight: 700;
}
.badge-gold, .badge-accent {
    background: #FDF9EE;
    color: #9E7916;
    border: 1px solid rgba(197, 155, 39, 0.35);
}
.badge-navy, .badge-primary {
    background: #EBF3FC;
    color: #0C2B4E;
    border: 1px solid rgba(12, 43, 78, 0.25);
}
.badge-occupied {
    background: #FEF2F2;
    color: #991B1B;
    border: 1px solid #FECACA;
}
.badge-vacant {
    background: #FDF9EE;
    color: #9E7916;
    border: 1px solid #F3DC88;
}
.badge-present {
    background: #EBF3FC;
    color: #0C2B4E;
    border: 1px solid rgba(26, 67, 115, 0.35);
}
.badge-absent {
    background: #FEF2F2;
    color: #991B1B;
    border: 1px solid #FECACA;
}
.badge-excused {
    background: #FDF9EE;
    color: #9E7916;
    border: 1px solid #F3DC88;
}
.badge-excellent {
    background: #FDF9EE;
    color: #9E7916;
    border: 1px solid #C59B27;
}
.badge-very-good {
    background: #EBF3FC;
    color: #1A4373;
    border: 1px solid #CBD5E1;
}
.badge-good {
    background: #F8F9FA;
    color: #334155;
    border: 1px solid #E2E8F0;
}
.badge-needs-revision {
    background: #FFF7ED;
    color: #C2410C;
    border: 1px solid #FED7AA;
}

/* ========================================================
   PORTAL / DASHBOARD SYSTEM
   ======================================================== */
.app-container {
    display: flex;
    min-height: 100vh;
    background: var(--bg-main);
}

/* Sidebar - Deep Azure Navy (#0C2B4E) with Gold accents */
.sidebar {
    width: 275px;
    background: linear-gradient(180deg, #071B33 0%, #0C2B4E 60%, #071B33 100%);
    color: #FFFFFF;
    display: flex;
    flex-direction: column;
    padding: 24px 16px;
    flex-shrink: 0;
    position: sticky;
    top: 0;
    height: 100vh;
    overflow-y: auto;
    border-inline-end: 1px solid rgba(197, 155, 39, 0.2);
}
.sidebar-brand {
    padding: 0 8px 24px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
    margin-bottom: 24px;
}
.brand-icon {
    width: 48px;
    height: 48px;
    background: #0C2B4E;
    border: 1.5px solid #C59B27;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35);
    overflow: hidden;
    flex-shrink: 0;
    padding: 4px;
}
.brand-icon img, .brand-icon svg {
    width: 100%;
    height: 100%;
    object-fit: contain;
}
.brand-text h1 {
    font-size: 19px;
    font-weight: 800;
    color: #FFFFFF;
    line-height: 1.2;
}
.brand-text span {
    font-size: 11px;
    color: #E5C158;
    font-weight: 600;
}

.nav-menu {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 6px;
    flex-grow: 1;
}
.nav-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    border-radius: var(--radius-md);
    color: rgba(255, 255, 255, 0.78);
    font-weight: 600;
    font-size: 14.5px;
    transition: all 0.2s ease;
}
.nav-link:hover {
    color: #FFFFFF;
    background: rgba(255, 255, 255, 0.08);
    transform: translateX(-3px);
}
.nav-link.active {
    color: #0C2B4E;
    background: linear-gradient(135deg, #E5C158 0%, #C59B27 100%);
    box-shadow: 0 4px 18px rgba(197, 155, 39, 0.4);
    font-weight: 800;
}
.nav-icon {
    font-size: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.user-profile-sidebar {
    padding-top: 16px;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: auto;
}
.user-info-brief {
    display: flex;
    flex-direction: column;
}
.user-name {
    font-size: 13.5px;
    font-weight: 700;
    color: #FFFFFF;
}
.user-badge {
    font-size: 11px;
    color: #E5C158;
}

/* Main Content Area */
.main-content {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    min-width: 0;
    background: var(--bg-main);
}
.topbar {
    height: 70px;
    background: #FFFFFF;
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 32px;
    position: sticky;
    top: 0;
    z-index: 50;
    box-shadow: 0 1px 3px rgba(12, 43, 78, 0.04);
}
.topbar-title h2 {
    font-size: 20px;
    font-weight: 800;
    color: var(--primary);
    margin: 0;
}
.content-body {
    padding: 32px;
    flex-grow: 1;
}

/* Cards & Layout */
.card {
    background: #FFFFFF;
    border-radius: 20px;
    border: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
    margin-bottom: 24px;
    overflow: hidden;
}
.card-header {
    padding: 20px 24px;
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #FFFFFF;
}
.card-title {
    font-size: 18px;
    font-weight: 800;
    color: var(--primary);
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0;
}

/* Data Tables */
.table-responsive {
    overflow-x: auto;
    width: 100%;
}
.data-table {
    width: 100%;
    border-collapse: collapse;
    text-align: right;
    font-size: 14px;
}
.data-table th {
    background: #F8F9FA;
    color: #0C2B4E;
    font-weight: 800;
    padding: 14px 18px;
    border-bottom: 2px solid var(--border);
    white-space: nowrap;
}
.data-table td {
    padding: 16px 18px;
    border-bottom: 1px solid var(--border);
    vertical-align: middle;
    color: #334155;
    background: #FFFFFF;
}
.data-table tr:hover td {
    background: #FAFBFD;
}

/* Stat Grid (KPIs) */
.stat-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 20px;
    margin-bottom: 28px;
}
.stat-card {
    background: #FFFFFF;
    border-radius: 20px;
    border: 1px solid var(--border);
    padding: 22px;
    box-shadow: var(--shadow-sm);
    display: flex;
    align-items: center;
    gap: 16px;
    transition: all 0.25s ease;
}
.stat-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
    border-color: rgba(197, 155, 39, 0.4);
}
.stat-icon {
    width: 54px;
    height: 54px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    flex-shrink: 0;
}
.icon-emerald { background: #EBF3FC; color: #0C2B4E; border: 1px solid #CBD5E1; }
.icon-amber { background: #FDF9EE; color: #9E7916; border: 1px solid #F3DC88; }
.icon-blue { background: #EEF4FA; color: #1A4373; border: 1px solid #CBD5E1; }
.icon-rose { background: #FDF9EE; color: #C59B27; border: 1px solid #E5C158; }

.stat-info {
    display: flex;
    flex-direction: column;
}
.stat-value {
    font-size: 26px;
    font-weight: 900;
    color: var(--primary);
    line-height: 1.2;
}
.stat-label {
    font-size: 13px;
    color: var(--muted);
    font-weight: 700;
}

/* Live Session Banner */
.live-banner {
    background: linear-gradient(135deg, #071B33 0%, #0C2B4E 60%, #1A4373 100%);
    border-radius: 24px;
    padding: 24px 30px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
    box-shadow: 0 10px 30px rgba(12, 43, 78, 0.35);
    border: 2px solid #C59B27;
    color: #FFFFFF;
}
.live-pulse-dot {
    width: 14px;
    height: 14px;
    background: #E5C158;
    border-radius: 50%;
    display: inline-block;
    margin-inline-end: 10px;
    box-shadow: 0 0 14px #C59B27;
    animation: ping 1.5s cubic-bezier(0, 0, 0.2, 1) infinite;
}
.live-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, #E5C158 0%, #C59B27 100%);
    color: #0C2B4E !important;
    padding: 12px 26px;
    border-radius: var(--radius-full);
    font-weight: 800;
    font-size: 15px;
    box-shadow: 0 4px 18px rgba(197, 155, 39, 0.4);
    transition: all 0.2s ease;
}
.live-btn:hover {
    transform: scale(1.05);
    background: #F3DC88;
}

/* Modals */
.modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 999;
    background: rgba(7, 27, 51, 0.65);
    backdrop-filter: blur(6px);
    align-items: center;
    justify-content: center;
    padding: 20px;
}
.modal.active {
    display: flex;
}
.modal-content {
    background: #FFFFFF;
    border-radius: 24px;
    padding: 32px;
    width: 100%;
    max-width: 600px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 25px 50px -12px rgba(12, 43, 78, 0.35);
    border: 1px solid var(--border);
    position: relative;
    animation: modalSlide 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}
@keyframes modalSlide {
    from { transform: translateY(20px) scale(0.96); opacity: 0; }
    to { transform: translateY(0) scale(1); opacity: 1; }
}
.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
    padding-bottom: 14px;
    border-bottom: 1px solid var(--border);
}
.modal-title {
    font-size: 20px;
    font-weight: 800;
    color: var(--primary);
    margin: 0;
}
.modal-close {
    background: transparent;
    border: none;
    font-size: 20px;
    color: var(--muted);
    cursor: pointer;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}
.modal-close:hover {
    background: #F1F5F9;
    color: var(--primary);
}

/* Days Picker */
.days-picker {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 8px;
}
.day-checkbox {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    background: #F8F9FA;
    border: 1px solid var(--border);
    border-radius: 10px;
    font-size: 13.5px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}
.day-checkbox:hover {
    background: #F1F5F9;
    border-color: #C59B27;
}
.day-checkbox input:checked + span {
    color: #0C2B4E;
    font-weight: 800;
}
.day-checkbox:has(input:checked) {
    background: #FDF9EE;
    border-color: #C59B27;
}

/* Forms */
.form-group {
    margin-bottom: 20px;
}
.form-label {
    display: block;
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--primary);
}
.form-control, .form-select {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    font-size: 14.5px;
    font-family: inherit;
    background: #FFFFFF;
    color: var(--foreground);
    transition: all 0.2s ease;
}
.form-control:focus, .form-select:focus {
    outline: none;
    border-color: #C59B27;
    box-shadow: 0 0 0 3px rgba(197, 155, 39, 0.2);
}

/* Alerts */
.alert {
    padding: 14px 20px;
    border-radius: var(--radius-md);
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 12px;
}
.alert-success {
    background: #EBF3FC;
    color: #0C2B4E;
    border: 1px solid rgba(26, 67, 115, 0.35);
}
.alert-danger {
    background: #FEF2F2;
    color: #991B1B;
    border: 1px solid rgba(220, 38, 38, 0.3);
}

/* Auth Pages Layout */
.auth-wrapper {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 32px 16px;
    background: linear-gradient(135deg, #071B33 0%, #0C2B4E 60%, #1A4373 100%);
    position: relative;
}
.auth-card {
    width: 100%;
    max-width: 480px;
    background: #FFFFFF;
    border-radius: 28px;
    padding: 44px 38px;
    box-shadow: 0 25px 60px -12px rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.8);
    position: relative;
    z-index: 10;
}
.auth-header {
    text-align: center;
    margin-bottom: 28px;
}
.auth-logo {
    width: 80px;
    height: 80px;
    margin: 0 auto 16px;
    border-radius: 20px;
    object-fit: contain;
}
.auth-header h2 {
    font-size: 24px;
    font-weight: 800;
    color: var(--primary);
    margin-bottom: 6px;
}
.auth-header p {
    font-size: 14px;
    color: var(--muted);
    font-weight: 600;
}

/* ========================================================
   PUBLIC LANDING PAGE (أكاديمية تعاهدوا)
   ======================================================== */
.wartel-navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    padding: 14px 0;
    transition: all 0.3s ease;
}
.wartel-nav-container {
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.wartel-nav-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}
.wartel-nav-brand img, .wartel-nav-brand svg {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    object-fit: contain;
}
.wartel-nav-brand-title {
    font-size: 22px;
    font-weight: 800;
    color: var(--primary);
    letter-spacing: -0.5px;
}
.wartel-nav-brand-tagline {
    font-size: 11px;
    color: var(--accent);
    font-weight: 700;
    display: block;
    margin-top: -2px;
}
.wartel-nav-links {
    display: flex;
    align-items: center;
    gap: 8px;
    list-style: none;
}
.wartel-nav-links a {
    padding: 8px 18px;
    border-radius: var(--radius-full);
    font-size: 15px;
    font-weight: 700;
    color: var(--primary);
    transition: all 0.2s ease;
}
.wartel-nav-links a:hover {
    color: var(--accent);
    background: #FDF9EE;
}

/* Hero Section */
.wartel-hero {
    position: relative;
    padding-top: 130px;
    padding-bottom: 90px;
    overflow: hidden;
    background: linear-gradient(135deg, #F8F9FA 0%, #EEF4FA 60%, rgba(197, 155, 39, 0.08) 100%);
}
.wartel-hero-container {
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 24px;
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 60px;
    align-items: center;
    position: relative;
    z-index: 10;
}
.hero-glow-1 {
    position: absolute;
    top: 5%;
    right: -10%;
    width: 480px;
    height: 480px;
    background: rgba(12, 43, 78, 0.08);
    border-radius: 50%;
    filter: blur(90px);
    pointer-events: none;
}
.hero-glow-2 {
    position: absolute;
    bottom: -10%;
    left: -10%;
    width: 520px;
    height: 520px;
    background: rgba(197, 155, 39, 0.12);
    border-radius: 50%;
    filter: blur(100px);
    pointer-events: none;
}
.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 6px 18px;
    border-radius: var(--radius-full);
    background: #FDF9EE;
    border: 1px solid rgba(197, 155, 39, 0.35);
    color: #9E7916;
    font-size: 14px;
    font-weight: 800;
    margin-bottom: 24px;
}
.hero-badge-dot {
    position: relative;
    display: flex;
    width: 12px;
    height: 12px;
}
.hero-badge-dot .dot-ping {
    position: absolute;
    display: inline-flex;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: #C59B27;
    opacity: 0.75;
}
.hero-badge-dot .dot-solid {
    position: relative;
    display: inline-flex;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #C59B27;
}
.hero-title {
    font-size: 50px;
    font-weight: 900;
    line-height: 1.25;
    margin-bottom: 22px;
    color: var(--primary);
}
.hero-description {
    font-size: 19px;
    color: #475569;
    line-height: 1.8;
    margin-bottom: 36px;
    max-width: 620px;
}
.hero-actions {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 40px;
}
.hero-highlights {
    display: flex;
    align-items: center;
    gap: 24px;
    flex-wrap: wrap;
    font-size: 14px;
    font-weight: 700;
    color: #0C2B4E;
}
.hero-highlight-item {
    display: flex;
    align-items: center;
    gap: 8px;
}
.hero-highlight-item svg {
    color: #C59B27;
    width: 20px;
    height: 20px;
}

/* Hero Media Box */
.hero-media-wrapper {
    position: relative;
}
.hero-media-backdrop {
    position: absolute;
    inset: -15px;
    background: linear-gradient(135deg, rgba(12, 43, 78, 0.35), rgba(197, 155, 39, 0.40));
    border-radius: 40px;
    filter: blur(28px);
    z-index: 1;
}
.hero-media-card {
    position: relative;
    z-index: 2;
    border-radius: 32px;
    overflow: hidden;
    box-shadow: 0 25px 60px -15px rgba(12, 43, 78, 0.3);
    border: 5px solid #FFFFFF;
    height: 520px;
    background: #0C2B4E;
}
.hero-media-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.6s ease;
}
.hero-media-card:hover img {
    transform: scale(1.03);
}
.hero-media-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 40%, rgba(7, 27, 51, 0.85) 100%);
    display: flex;
    align-items: flex-end;
    padding: 32px;
}
.hero-quote {
    color: #FFFFFF;
    font-size: 24px;
    font-weight: 800;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.6);
    line-height: 1.4;
}

/* Sections Common */
.section {
    padding: 96px 0;
    position: relative;
}
.section-muted {
    background: #F1F5F9;
}
.section-container {
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 24px;
    position: relative;
    z-index: 2;
}
.section-header {
    text-align: center;
    max-width: 760px;
    margin: 0 auto 64px;
}
.section-subtitle {
    display: inline-block;
    color: #C59B27;
    font-size: 14px;
    font-weight: 800;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 12px;
}
.section-title {
    font-size: 38px;
    font-weight: 900;
    margin-bottom: 16px;
    color: var(--primary);
}
.section-divider {
    width: 80px;
    height: 4px;
    background: #C59B27;
    border-radius: var(--radius-full);
    margin: 0 auto 20px;
}
.section-desc {
    color: var(--muted);
    font-size: 18px;
    line-height: 1.8;
}

/* Feature & Program Cards */
.cards-grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}
.cards-grid-2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}

.feature-card {
    background: #FFFFFF;
    padding: 36px 30px;
    border-radius: 28px;
    border: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    display: flex;
    flex-direction: column;
}
.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
    border-color: rgba(197, 155, 39, 0.4);
}
.feature-icon-wrapper {
    width: 64px;
    height: 64px;
    border-radius: 20px;
    background: #FDF9EE;
    color: #C59B27;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    margin-bottom: 24px;
    transition: all 0.3s ease;
    border: 1px solid rgba(197, 155, 39, 0.25);
}
.feature-card:hover .feature-icon-wrapper {
    background: linear-gradient(135deg, #E5C158 0%, #C59B27 100%);
    color: #0C2B4E;
    transform: rotate(-4deg) scale(1.05);
}
.feature-title {
    font-size: 21px;
    font-weight: 800;
    margin-bottom: 12px;
    color: var(--primary);
}
.feature-desc {
    color: var(--muted);
    font-size: 15px;
    line-height: 1.7;
}

/* Steps (Timeline) */
.steps-container {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    position: relative;
}
.steps-connector {
    position: absolute;
    top: 40px;
    left: 10%;
    right: 10%;
    height: 3px;
    background: rgba(197, 155, 39, 0.3);
    z-index: 1;
}
.step-item {
    text-align: center;
    position: relative;
    z-index: 2;
}
.step-number {
    width: 76px;
    height: 76px;
    margin: 0 auto 20px;
    border-radius: 50%;
    background: #FFFFFF;
    border: 4px solid #C59B27;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    font-weight: 900;
    color: #0C2B4E;
    box-shadow: var(--shadow-md);
    position: relative;
    transition: all 0.3s ease;
}
.step-item:hover .step-number {
    background: #0C2B4E;
    color: #C59B27;
    border-color: #E5C158;
    transform: scale(1.08);
}
.step-badge-icon {
    position: absolute;
    bottom: -4px;
    right: -4px;
    width: 26px;
    height: 26px;
    background: #C59B27;
    color: #0C2B4E;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 900;
}
.step-title {
    font-size: 19px;
    font-weight: 800;
    margin-bottom: 8px;
    color: var(--primary);
}
.step-desc {
    font-size: 14px;
    color: var(--muted);
    line-height: 1.6;
}

/* Program Cards */
.program-card {
    background: #FFFFFF;
    border-radius: 28px;
    padding: 32px;
    border: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}
.program-card::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, #0C2B4E, #C59B27);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.3s ease;
}
.program-card:hover::before {
    transform: scaleX(1);
}
.program-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
}

/* Stats Counter Banner - Deep Azure Navy with Royal Gold */
.stats-banner {
    background: linear-gradient(135deg, #071B33 0%, #0C2B4E 60%, #1A4373 100%);
    border-radius: 40px;
    padding: 64px 40px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 25px 50px -10px rgba(12, 43, 78, 0.4);
    color: #FFFFFF;
    border: 2px solid rgba(197, 155, 39, 0.35);
}
.stats-banner .stats-glow-1 {
    position: absolute;
    top: 0;
    right: 0;
    width: 280px;
    height: 280px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 50%;
    filter: blur(40px);
}
.stats-banner .stats-glow-2 {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 320px;
    height: 320px;
    background: rgba(197, 155, 39, 0.2);
    border-radius: 50%;
    filter: blur(50px);
}
.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 32px;
    text-align: center;
    position: relative;
    z-index: 2;
}
.stats-item:not(:last-child) {
    border-inline-start: 1px solid rgba(255, 255, 255, 0.15);
}
.stat-number {
    font-size: 48px;
    font-weight: 900;
    color: #E5C158;
    margin-bottom: 6px;
    letter-spacing: -1px;
}
.stat-label {
    font-size: 17px;
    font-weight: 700;
    opacity: 0.95;
}

/* Free Academy Big Card */
.free-banner {
    background: linear-gradient(135deg, #071B33 0%, #0C2B4E 50%, #071B33 100%);
    border: 2px solid #C59B27;
    border-radius: 36px;
    padding: 48px 32px;
    text-align: center;
    color: #FFFFFF;
    box-shadow: 0 20px 40px rgba(12, 43, 78, 0.25);
    position: relative;
    overflow: hidden;
    margin-top: 48px;
}
.free-banner h3 {
    font-size: 38px;
    font-weight: 900;
    color: #E5C158;
    margin-bottom: 12px;
}
.free-banner p {
    font-size: 20px;
    font-weight: 700;
    opacity: 0.95;
}

/* FAQ Accordion */
.faq-list {
    max-width: 820px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 16px;
}
.faq-item {
    background: #FFFFFF;
    border: 1px solid var(--border);
    border-radius: 20px;
    overflow: hidden;
    transition: all 0.25s ease;
}
.faq-item.active {
    border-color: #C59B27;
    box-shadow: 0 4px 15px rgba(197, 155, 39, 0.15);
}
.faq-question {
    padding: 22px 28px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 17px;
    font-weight: 800;
    cursor: pointer;
    user-select: none;
    color: var(--primary);
}
.faq-icon {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: #F1F5F9;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    transition: transform 0.3s ease, background 0.3s ease;
}
.faq-item.active .faq-icon {
    transform: rotate(180deg);
    background: #FDF9EE;
    color: #C59B27;
}
.faq-answer {
    padding: 0 28px 22px;
    color: var(--muted);
    font-size: 15px;
    line-height: 1.7;
    display: none;
}
.faq-item.active .faq-answer {
    display: block;
}

/* Footer */
.wartel-footer {
    background: #FFFFFF;
    border-top: 1px solid var(--border);
    padding: 80px 0 32px;
}
.footer-container {
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 24px;
}
.footer-top {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 48px;
    margin-bottom: 60px;
}
.footer-brand h4 {
    font-size: 28px;
    font-weight: 900;
    color: var(--primary);
    margin-bottom: 16px;
}
.footer-brand p {
    color: var(--muted);
    font-size: 15px;
    line-height: 1.8;
    max-width: 380px;
    margin-bottom: 24px;
}
.footer-links-title {
    font-size: 17px;
    font-weight: 800;
    margin-bottom: 20px;
    color: var(--primary);
}
.footer-links-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.footer-links-list a {
    color: var(--muted);
    font-size: 14px;
    font-weight: 600;
}
.footer-links-list a:hover {
    color: var(--accent);
}
.social-icons {
    display: flex;
    gap: 10px;
}
.social-icon-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #F1F5F9;
    color: #0C2B4E;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.25s ease;
}
.social-icon-btn:hover {
    background: #0C2B4E;
    color: #E5C158;
    transform: translateY(-3px);
}
.footer-bottom {
    border-top: 1px solid var(--border);
    padding-top: 28px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 14px;
    color: var(--muted);
}

/* ========================================================
   RESPONSIVE COMPONENT BASE DEFINITIONS
   ======================================================== */
.nav-toggle-btn {
    display: none;
    flex-direction: column;
    justify-content: space-around;
    width: 38px;
    height: 38px;
    padding: 8px 6px;
    background: transparent;
    border: 1.5px solid rgba(12, 43, 78, 0.15);
    border-radius: var(--radius-sm);
    cursor: pointer;
    z-index: 100;
    transition: all 0.25s ease;
}
.nav-toggle-btn .bar {
    width: 100%;
    height: 2.5px;
    background: var(--primary);
    border-radius: 2px;
    transition: all 0.3s ease;
}
.nav-toggle-btn.active .bar:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}
.nav-toggle-btn.active .bar:nth-child(2) {
    opacity: 0;
}
.nav-toggle-btn.active .bar:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

.mobile-cta-wrapper {
    display: none;
}
.desktop-nav-cta {
    display: flex;
    align-items: center;
    gap: 12px;
}

/* Sidebar Mobile Off-Canvas Elements */
.sidebar-backdrop {
    display: none;
    position: fixed;
    top: 0;
    right: 0;
    left: 0;
    bottom: 0;
    background: rgba(7, 27, 51, 0.65);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    z-index: 1040;
    opacity: 0;
    transition: opacity 0.3s ease;
    cursor: pointer;
}
.sidebar-backdrop.active {
    display: block;
    opacity: 1;
}

.sidebar-close-btn {
    display: none;
    position: absolute;
    top: 18px;
    left: 18px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.15);
    border: none;
    color: #FFFFFF;
    font-size: 16px;
    font-weight: 700;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.2s ease;
    z-index: 10;
}
.sidebar-close-btn:hover {
    background: rgba(255, 255, 255, 0.25);
}

.topbar-toggle-btn {
    display: none;
    flex-direction: column;
    justify-content: space-around;
    width: 38px;
    height: 38px;
    padding: 9px 7px;
    background: var(--off-white);
    border: 1.5px solid var(--border);
    border-radius: var(--radius-sm);
    cursor: pointer;
    flex-shrink: 0;
    transition: background 0.2s ease;
}
.topbar-toggle-btn span {
    width: 100%;
    height: 2.5px;
    background: var(--primary);
    border-radius: 2px;
}
.topbar-toggle-btn:hover {
    background: #EDF2F7;
}

/* Table Responsive Container */
.table-responsive {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin-bottom: 8px;
}
.table-responsive table.data-table {
    min-width: 650px;
}

/* ========================================================
   COMPREHENSIVE RESPONSIVE MEDIA QUERIES
   ======================================================== */

/* Tablets & Small Laptops (<= 1024px) */
@media (max-width: 1024px) {
    .wartel-hero-container {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 40px;
    }
    .hero-badge {
        margin-left: auto;
        margin-right: auto;
    }
    .hero-actions, .hero-highlights {
        justify-content: center;
    }
    .hero-description {
        margin-left: auto;
        margin-right: auto;
    }
    .hero-media-card {
        height: 360px;
        max-width: 540px;
        margin: 0 auto;
    }
    .cards-grid-3, .stats-grid, .steps-container {
        grid-template-columns: repeat(2, 1fr);
    }
    .steps-connector {
        display: none;
    }
    .footer-top {
        grid-template-columns: 1fr 1fr;
        gap: 32px;
    }
}

/* Medium Tablets & Mobile Devices (<= 992px) */
@media (max-width: 992px) {
    /* Navbar Mobile Styles */
    .nav-toggle-btn {
        display: flex;
    }
    .desktop-nav-cta {
        display: none;
    }
    .wartel-nav-links {
        display: none;
        position: fixed;
        top: 76px;
        right: 0;
        left: 0;
        background: #FFFFFF;
        flex-direction: column;
        align-items: stretch;
        padding: 24px 20px;
        box-shadow: 0 20px 40px rgba(12, 43, 78, 0.18);
        border-bottom: 3px solid var(--accent);
        z-index: 999;
        max-height: calc(100vh - 76px);
        overflow-y: auto;
        gap: 6px;
    }
    .wartel-nav-links.show {
        display: flex;
        animation: navSlideDown 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    }
    @keyframes navSlideDown {
        from { opacity: 0; transform: translateY(-10px); }
        to { opacity: 1; transform: translateY(0); }
    }
    .wartel-nav-links li {
        width: 100%;
    }
    .wartel-nav-links a {
        display: block;
        padding: 12px 16px;
        border-radius: var(--radius-sm);
        font-size: 16px;
        width: 100%;
        text-align: right;
    }
    .mobile-cta-wrapper {
        display: block;
        width: 100%;
        margin-top: 12px;
        padding-top: 14px;
        border-top: 1px solid var(--border);
    }

    /* Portal Layout Mobile Off-Canvas Sidebar */
    .sidebar {
        position: fixed !important;
        top: 0 !important;
        right: 0 !important;
        bottom: 0 !important;
        width: 280px !important;
        height: 100vh !important;
        z-index: 1050 !important;
        transform: translateX(100%);
        transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        box-shadow: -10px 0 35px rgba(0, 0, 0, 0.35);
    }
    .sidebar.mobile-open {
        transform: translateX(0) !important;
    }
    .sidebar-close-btn {
        display: flex;
    }
    .topbar-toggle-btn {
        display: flex;
    }
    .topbar-date {
        display: none;
    }
    .main-content {
        width: 100% !important;
        min-width: 0 !important;
    }
    .topbar {
        padding: 0 16px;
        height: 64px;
    }
    .topbar-title h2 {
        font-size: 17px;
    }

    /* Portal Dashboard Grids to 1 column */
    .stat-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 14px;
    }
    [style*="grid-template-columns: 1.2fr 1fr 1fr"],
    [style*="grid-template-columns: 1.2fr 1fr"],
    [style*="grid-template-columns: 1fr 1fr 1fr"] {
        grid-template-columns: 1fr !important;
        gap: 16px !important;
    }
}

/* Phones & Small Screens (<= 640px) */
@media (max-width: 640px) {
    .wartel-hero {
        padding-top: 105px;
        padding-bottom: 55px;
    }
    .wartel-hero-container {
        padding: 0 16px;
    }
    .hero-title {
        font-size: 28px;
        line-height: 1.28;
    }
    .hero-description {
        font-size: 14px;
        line-height: 1.65;
    }
    .hero-actions {
        flex-direction: column;
        width: 100%;
        gap: 10px;
    }
    .hero-actions .btn {
        width: 100%;
        justify-content: center;
        padding: 13px 20px;
        font-size: 15px;
    }
    .hero-highlights {
        flex-direction: column;
        align-items: center;
        gap: 8px;
    }
    .hero-media-card {
        height: 270px;
        max-width: 100%;
    }

    /* All multi-column cards to 1 column on mobile */
    .cards-grid-3, .cards-grid-2, .stats-grid, .steps-container {
        grid-template-columns: 1fr;
        gap: 14px;
    }
    .stat-grid {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    .stat-card {
        padding: 14px;
    }
    .stat-value {
        font-size: 24px;
    }
    .content-body {
        padding: 14px;
    }

    /* Inline Grid Columns in Forms */
    [style*="grid-template-columns: 1fr 1fr"] {
        grid-template-columns: 1fr !important;
        gap: 12px !important;
    }

    /* Modals Responsive */
    .modal-content {
        width: 95% !important;
        max-width: 95% !important;
        max-height: 85vh;
        padding: 20px 16px !important;
        border-radius: var(--radius-md) !important;
    }
    .modal-header {
        margin-bottom: 16px;
    }
    .modal-title {
        font-size: 16px;
    }

    /* Cards Responsive */
    .card {
        padding: 16px;
        margin-bottom: 16px;
        border-radius: var(--radius-md);
    }
    .card-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
    .card-title {
        font-size: 16px;
    }

    /* Days Picker on Mobile */
    .days-picker {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 6px;
    }
    .day-checkbox span {
        padding: 6px 4px;
        font-size: 11.5px;
        text-align: center;
    }

    /* Auth Screens */
    .auth-card {
        padding: 24px 18px;
        border-radius: var(--radius-lg);
        width: 92%;
    }

    /* Footer Mobile */
    .footer-top {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    .footer-bottom {
        flex-direction: column;
        gap: 12px;
        text-align: center;
    }
}
