/* ==========================================
   EduSpace CSS stylesheet
   Author: Antigravity AI
   Aesthetics: Premium, Modern, Glassmorphism, Riyadh twilight theme
   Font: IBM Plex Sans Arabic
   ========================================== */

/* 1. Design Tokens & Variables */
@import url('https://fonts.googleapis.com/css2?family=IBM+Plex+Sans+Arabic:wght@300;400;500;600;700&display=swap');

:root {
    --primary-color: #3498db;      /* Light Blue for accents/headings in dark theme */
    --secondary-color: #0b6b55;    /* Islamic Green/Teal from logo */
    --accent-orange: #e67e22;      /* Orange from logo */
    --accent-yellow: #f1c40f;      /* Gold/Yellow from logo */
    
    /* Wood Palette from image - Restored original wood tones (unused in main backgrounds) */
    --wood-primary: #B89576;       /* Dominant wood tone */
    --wood-light: #f5eae0;         /* Very light warm cream */
    --wood-dark: #5c4734;          /* Deep warm wood brown */
    
    --bg-dark-rgba: rgba(10, 17, 40, 0.65);
    --card-bg-glass: rgba(255, 255, 255, 0.05); /* Transparent white for dark theme glass */
    --card-bg-glass-hover: rgba(255, 255, 255, 0.09);
    --card-border-glass: rgba(255, 255, 255, 0.08);
    --card-border-glow: rgba(52, 152, 219, 0.2);
    
    --text-light: #ffffff;
    --text-muted: #a4b0be;         /* Muted blue-gray for readability on dark backgrounds */
    --text-dark: #f1f2f6;
    --text-white: #ffffff;
    
    --font-primary: 'IBM Plex Sans Arabic', sans-serif;
    --transition-smooth: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    --box-shadow-premium: 0 15px 35px rgba(0, 0, 0, 0.35);
    --border-radius-lg: 24px;
    --border-radius-md: 16px;
    --border-radius-sm: 8px;
}

/* 2. Global Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scroll-behavior: smooth;
}

html, body {
    overflow-x: hidden;
    width: 100%;
}

body {
    font-family: var(--font-primary);
    color: var(--text-dark);
    background-color: #070d1e;     /* Deep dark blue background */
    line-height: 1.7;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: var(--wood-light);
}
::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 10px;
    border: 2px solid var(--wood-light);
}
::-webkit-scrollbar-thumb:hover {
    background: var(--accent-orange);
}

/* Full Screen Background of Saudi Kingdom Tower Faded */
.site-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('assets/kingdom_tower.jpg'); /* Riyadh night version */
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: -2;
    transform: scale(1.03);
    filter: brightness(0.8) contrast(1.05); /* Enhanced brightness to let colors pop */
    opacity: 0.65; /* Clearer background view to show the new sunset/blue sky colors */
    mix-blend-mode: normal;
}

.site-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(10, 17, 40, 0.85) 0%, rgba(16, 29, 66, 0.78) 50%, rgba(5, 10, 24, 0.88) 100%);
    z-index: -1;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* 3. Typography & Helper Classes */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    color: #ffffff;   /* White for headings on dark theme */
    letter-spacing: -0.2px;
}

ul {
    list-style: none;
}

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

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

.hidden {
    display: none !important;
}

/* Glassmorphism Card System */
.glass-card {
    background: var(--card-bg-glass);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--card-border-glass);
    border-radius: var(--border-radius-lg);
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.35);
    transition: var(--transition-smooth);
}

/* Decorative Glow Backgrounds */
.glow-effect {
    position: fixed;
    width: 500px;
    height: 500px;
    border-radius: 50%;
    filter: blur(120px);
    z-index: -1;
    pointer-events: none;
    opacity: 0.18;
}

.glass-card .glow-effect {
    position: absolute;
}

.glow-primary {
    top: 20%;
    right: 10%;
    background: radial-gradient(circle, var(--primary-color) 0%, rgba(0, 0, 0, 0) 75%);
}

.glow-secondary {
    bottom: 10%;
    left: 5%;
    background: radial-gradient(circle, var(--secondary-color) 0%, rgba(0, 0, 0, 0) 75%);
}

/* 4. Buttons & Badges */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 30px;
    font-family: var(--font-primary);
    font-weight: 500;
    font-size: 0.95rem;
    border-radius: 50px;
    cursor: pointer;
    transition: var(--transition-smooth);
    border: none;
}

.btn-primary {
    background: linear-gradient(135deg, var(--accent-orange) 0%, #ff4c1a 100%);
    color: var(--text-white);
    box-shadow: 0 4px 20px rgba(255, 107, 53, 0.35);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(255, 107, 53, 0.55);
}

.btn-outline {
    background: transparent;
    border: 2px solid rgba(255, 255, 255, 0.4);
    color: var(--text-light);
}

.btn-outline:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--text-light);
    transform: translateY(-3px);
}

.btn-whatsapp-header {
    background: #25d366;
    color: white;
    padding: 10px 22px;
    font-size: 0.9rem;
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.3);
}

.btn-whatsapp-header:hover {
    background: #20ba5a;
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(37, 211, 102, 0.5);
}

.hero-badge {
    display: inline-block;
    padding: 6px 18px;
    background: rgba(241, 196, 15, 0.15);
    border: 1px solid var(--accent-yellow);
    color: var(--accent-yellow);
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 500;
    margin-bottom: 24px;
    animation: pulse 2.5s infinite;
}

@keyframes pulse {
    0% { transform: scale(1); opacity: 0.9; }
    50% { transform: scale(1.05); opacity: 1; }
    100% { transform: scale(1); opacity: 0.9; }
}

/* 5. Ultra-Light Crystal Glass Navigation Header */
.main-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.22);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
    transition: var(--transition-smooth);
}

.main-header.scrolled {
    padding: 2px 0;
    background: rgba(255, 255, 255, 0.45);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
    border-bottom: 1px solid rgba(255, 255, 255, 0.4);
}

.header-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 120px;
    transition: var(--transition-smooth);
}

.main-header.scrolled .header-container {
    height: 95px;
}

.logo-area {
    display: flex;
    align-items: center;
}

/* Original colors floating logo on white glass header */
.site-logo {
    height: 110px;
    width: auto;
    background: transparent;
    padding: 0;
    border-radius: 0;
    box-shadow: none;
    border: none;
    object-fit: contain;
    transition: var(--transition-smooth);
    filter: none;
}

.main-header.scrolled .site-logo {
    height: 88px;
}

.main-nav-container {
    display: flex;
    align-items: center;
    gap: 20px;
}

.main-nav ul {
    display: flex;
    align-items: center;
    gap: 36px;
}

.nav-link {
    font-size: 0.95rem;
    font-weight: 600;
    padding: 8px 0;
    position: relative;
    color: #101d42;
}

.nav-link:hover, .nav-link.active {
    opacity: 1;
    color: var(--accent-orange);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 0;
    height: 2px;
    background-color: var(--accent-orange);
    transition: var(--transition-smooth);
}

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

/* Language Switcher Styling */
.lang-switcher {
    display: flex;
    align-items: center;
}

.lang-switch-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    font-size: 0.85rem;
    font-weight: 600;
    color: #101d42;
    border: 1px solid rgba(16, 29, 66, 0.2);
    border-radius: 30px;
    background: rgba(16, 29, 66, 0.04);
    cursor: pointer;
    transition: var(--transition-smooth);
}

.lang-switch-btn:hover {
    color: var(--accent-orange);
    border-color: var(--accent-orange);
    background: rgba(230, 126, 34, 0.08);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.lang-switch-btn i {
    font-size: 0.9rem;
}

.mobile-menu-btn {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 28px;
    height: 18px;
    background: transparent;
    border: none;
    cursor: pointer;
    z-index: 1001;
    outline: none;
    -webkit-tap-highlight-color: transparent;
}

.mobile-menu-btn:focus,
.mobile-menu-btn:active {
    outline: none;
    border: none;
    box-shadow: none;
}

.mobile-menu-btn span {
    width: 100%;
    height: 2px;
    background-color: #101d42;
    transition: var(--transition-smooth);
}

/* 6. Hero Section */
.hero-section {
    padding-top: 190px;
    padding-bottom: 90px;
    min-height: 80vh;
    display: flex;
    align-items: center;
    position: relative;
    background: transparent;
}

.hero-container {
    display: grid;
    grid-template-columns: 1fr;
    gap: 60px;
    align-items: center;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
}

.hero-title {
    font-size: 3.2rem;
    line-height: 1.35;
    margin-bottom: 24px;
    color: #ffffff;
    letter-spacing: -0.5px;
}

.hero-title .highlight-text, .hero-title span.highlight-text {
    color: var(--accent-yellow);
}

.highlight-text {
    color: var(--accent-yellow);
}

.hero-subtitle {
    font-size: 1.15rem;
    color: #e2e8f0;
    margin-bottom: 44px;
    line-height: 1.85;
}

.hero-actions {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.hero-stats {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.stats-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    width: 100%;
}

@media (max-width: 991px) {
    .stats-container {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}

.stat-card {
    padding: 26px 30px;
    display: flex;
    align-items: center;
    gap: 24px;
    border-left: 4px solid var(--secondary-color);
}

.stat-card:nth-child(2) {
    border-left-color: var(--accent-orange);
}

.stat-card:nth-child(3) {
    border-left-color: var(--accent-yellow);
}

.stat-card:hover {
    transform: translateX(-10px);
    border-left-width: 6px;
    box-shadow: var(--box-shadow-premium);
}

.stat-icon {
    font-size: 2.3rem;
    width: 68px;
    height: 68px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.05);
}

.stat-card:nth-child(1) .stat-icon { color: var(--secondary-color); }
.stat-card:nth-child(2) .stat-icon { color: var(--accent-orange); }
.stat-card:nth-child(3) .stat-icon { color: var(--accent-yellow); }

.stat-card h3 {
    font-size: 2.1rem;
    line-height: 1;
    margin-bottom: 6px;
}

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

/* 7. Section Standards */
.section-padding {
    padding: 100px 0;
    position: relative;
}

.section-header {
    margin-bottom: 70px;
}

.sub-title {
    color: var(--accent-orange);
    font-weight: 600;
    font-size: 0.9rem;
    display: block;
    margin-bottom: 10px;
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.section-desc {
    color: var(--text-muted);
    max-width: 650px;
    margin: 0 auto;
    font-size: 1.05rem;
}

/* 8. Programs Grid Section (Home page) */
.programs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 24px;
    margin-bottom: 40px;
}

.program-card {
    padding: 44px 30px;
    text-align: center;
    cursor: pointer;
    outline: none;
    border: 1px solid var(--card-border-glass);
}

.program-card:hover, .program-card:focus {
    transform: translateY(-8px);
    background: var(--card-bg-glass-hover);
    border-color: var(--accent-yellow);
    box-shadow: 0 15px 40px rgba(230, 126, 34, 0.15);
}

.card-icon {
    font-size: 3rem;
    margin-bottom: 24px;
    color: var(--accent-yellow);
    display: inline-block;
    transition: var(--transition-smooth);
}

.program-card:hover .card-icon {
    transform: scale(1.15) rotate(-5deg);
}

.program-card:nth-child(2) .card-icon { color: var(--accent-orange); }
.program-card:nth-child(3) .card-icon { color: var(--secondary-color); }
.program-card:nth-child(4) .card-icon { color: #3498db; }
.program-card:nth-child(5) .card-icon { color: #9b59b6; }

.card-title {
    font-size: 1.25rem;
    margin-bottom: 16px;
}

.card-text {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 24px;
    line-height: 1.65;
}

.explore-btn {
    font-size: 0.85rem;
    color: var(--accent-yellow);
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.explore-btn i {
    font-size: 0.75rem;
    transition: var(--transition-smooth);
}

.program-card:hover .explore-btn i {
    transform: translateX(-4px);
}

/* 9. Dedicated Pages Style */

/* A: About Page */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: center;
    margin-bottom: 80px;
}

.about-img-box {
    position: relative;
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    border: 1px solid var(--card-border-glass);
    box-shadow: var(--box-shadow-premium);
}

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

.about-text h3 {
    font-size: 1.8rem;
    color: var(--accent-yellow);
    margin-bottom: 16px;
}

.about-text p {
    color: var(--text-muted);
    margin-bottom: 24px;
    font-size: 1.05rem;
}

.vision-mission-cards {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    margin-bottom: 80px;
}

.vm-card {
    padding: 40px 30px;
}

.vm-icon-circle {
    color: var(--accent-orange);
    margin-bottom: 20px;
}

.vm-icon-circle i {
    font-size: 2.5rem;
}

.vm-card h3 {
    font-size: 1.4rem;
    margin-bottom: 16px;
}

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

/* Team Grid */
.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.team-card {
    padding: 30px;
    text-align: center;
    border: 1px solid var(--card-border-glass);
}

.team-avatar {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    margin: 0 auto 20px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    color: var(--text-light);
    border: 3px solid rgba(255, 255, 255, 0.1);
}

.team-card h3 {
    font-size: 1.25rem;
    margin-bottom: 6px;
}

.team-role {
    color: var(--accent-yellow);
    font-size: 0.85rem;
    font-weight: 500;
    margin-bottom: 16px;
    display: block;
}

.team-bio {
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* B: Programs Page specific tabs filter & layout */
.programs-page-layout {
    display: flex;
    flex-direction: column;
    gap: 30px;
    margin-bottom: 50px;
}

.filter-tabs-container {
    display: flex;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 20px;
}

.filter-btn {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: var(--text-muted);
    padding: 12px 24px;
    border-radius: 50px;
    font-family: var(--font-primary);
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition-smooth);
    display: flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
}

.filter-btn i {
    font-size: 1rem;
    transition: var(--transition-smooth);
}

.filter-btn:hover {
    background: rgba(255, 255, 255, 0.08);
    color: var(--text-light);
    border-color: var(--secondary-color);
    transform: translateY(-2px);
}

.filter-btn.active {
    background: linear-gradient(135deg, var(--secondary-color) 0%, #007c76 100%);
    color: var(--text-white);
    border-color: var(--secondary-color);
    box-shadow: 0 8px 20px rgba(0, 154, 147, 0.35);
    font-weight: 600;
}

.filter-btn.active i {
    transform: scale(1.1);
}

/* Responsive layout for large screens */
@media (min-width: 992px) {
    .programs-page-layout {
        display: grid;
        grid-template-columns: 300px 1fr;
        gap: 40px;
        align-items: start;
    }
    
    .filter-tabs-container {
        display: flex;
        flex-direction: column;
        gap: 10px;
        position: sticky;
        top: 130px;
        z-index: 10;
        padding: 10px;
        margin-bottom: 0;
        flex-wrap: nowrap;
        justify-content: start;
    }
    
    .filter-btn {
        width: 100%;
        justify-content: flex-start;
        border-radius: 16px;
        padding: 16px 20px;
        font-size: 0.95rem;
    }
}

/* Mobile scrollable tabs */
@media (max-width: 991px) {
    .filter-tabs-container {
        justify-content: flex-start;
        overflow-x: auto;
        flex-wrap: nowrap;
        width: 100%;
        max-width: 100%;
        min-width: 0; /* Prevent flex item from stretching parent */
        padding: 10px 4px 15px;
        margin-bottom: 20px;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none; /* Firefox */
    }
    
    .filter-tabs-container::-webkit-scrollbar {
        display: none; /* Chrome, Safari */
    }
    
    .filter-btn {
        flex: 0 0 auto;
    }
}

/* B-2: Sub-programs grid and cards (Dynamic listing) */
.sub-programs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 20px;
}

.sub-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--border-radius-md);
    padding: 35px 30px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: var(--transition-smooth);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.sub-card:hover {
    border-color: rgba(230, 126, 34, 0.4);
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(230, 126, 34, 0.08);
    background: rgba(255, 255, 255, 0.06);
}

.sub-card-title {
    font-size: 1.3rem;
    color: var(--text-light);
    margin-bottom: 12px;
    font-weight: 700;
}

.sub-card-desc {
    font-size: 0.92rem;
    color: var(--text-muted);
    margin-bottom: 20px;
    line-height: 1.7;
}

.sub-card-details {
    border-top: 1px dashed rgba(255, 255, 255, 0.1);
    padding-top: 20px;
    margin-bottom: 25px;
    list-style: none;
}

.sub-card-details li {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
    font-size: 0.88rem;
    color: var(--text-muted);
}

.sub-card-details li i {
    color: var(--accent-yellow);
    font-size: 0.95rem;
}

.btn-whatsapp-booking {
    width: 100%;
    background: #25d366;
    color: #ffffff;
    font-weight: 600;
    font-size: 0.92rem;
    border-radius: 50px;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.2);
    padding: 12px 20px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    cursor: pointer;
    transition: var(--transition-smooth);
    border: none;
}

.btn-whatsapp-booking:hover {
    background: #20ba5a;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.4);
}

/* C: Join Tutor Form Page */
.form-layout-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: start;
}

.form-info-box h3 {
    font-size: 1.8rem;
    margin-bottom: 16px;
}

.form-info-box p {
    color: var(--text-muted);
    margin-bottom: 30px;
}

.form-benefits-list li {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 24px;
}

.form-benefits-list i {
    color: var(--accent-yellow);
    font-size: 1.2rem;
    margin-top: 4px;
}

.form-benefits-list h4 {
    font-size: 1.05rem;
    margin-bottom: 4px;
}

.form-benefits-list p {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 0;
}

.recruitment-form-card {
    padding: 40px;
}

.form-title-area {
    margin-bottom: 30px;
}

.form-title-area h3 {
    font-size: 1.5rem;
    margin-bottom: 8px;
}

.form-title-area p {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.form-group-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-size: 0.85rem;
    font-weight: 500;
    margin-bottom: 8px;
    color: var(--text-light);
}

.form-control {
    width: 100%;
    background: rgba(10, 17, 40, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--border-radius-sm);
    padding: 12px 16px;
    font-family: var(--font-primary);
    color: var(--text-light);
    font-size: 0.9rem;
    transition: var(--transition-smooth);
}

.form-control:focus {
    outline: none;
    border-color: var(--secondary-color);
    box-shadow: 0 0 10px rgba(0, 154, 147, 0.25);
}

.form-control option {
    background-color: #0b1329;
    color: var(--text-light);
}

textarea.form-control {
    resize: vertical;
    min-height: 120px;
}

.file-upload-wrapper {
    position: relative;
    border: 2px dashed var(--card-border-glass);
    border-radius: var(--border-radius-sm);
    padding: 24px;
    text-align: center;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.file-upload-wrapper:hover {
    border-color: var(--accent-yellow);
    background: rgba(255, 255, 255, 0.02);
}

.file-upload-wrapper input[type="file"] {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
}

.file-upload-wrapper i {
    font-size: 2rem;
    color: var(--accent-yellow);
    margin-bottom: 12px;
}

.file-upload-wrapper span {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.submit-btn {
    width: 100%;
    margin-top: 10px;
}

/* D: Contact Page specific styling */
.contact-layout-grid {
    display: grid;
    grid-template-columns: 0.8fr 1.2fr;
    gap: 48px;
    margin-bottom: 80px;
}

.contact-info-list {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.contact-info-card {
    padding: 24px;
    display: flex;
    align-items: center;
    gap: 20px;
}

.contact-info-card i {
    font-size: 1.8rem;
    color: var(--accent-yellow);
}

.contact-info-card h4 {
    font-size: 1rem;
    margin-bottom: 4px;
}

.contact-info-card p {
    font-size: 0.9rem;
    color: var(--text-muted);
}

.contact-link {
    color: var(--text-muted);
    text-decoration: none;
    direction: ltr;
    unicode-bidi: embed;
    display: inline-block;
    transition: var(--transition-smooth);
}

.contact-link:hover {
    color: var(--primary-color);
}

.contact-map-card {
    overflow: hidden;
    height: 350px;
    border: 1px solid var(--card-border-glass);
}

.contact-map-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #0f2d59 0%, #050a18 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 30px;
}

.contact-map-placeholder i {
    font-size: 3rem;
    color: var(--accent-orange);
    margin-bottom: 16px;
}

.contact-map-placeholder h4 {
    font-size: 1.25rem;
    margin-bottom: 8px;
}

/* FAQs Section */
.faq-section {
    max-width: 800px;
    margin: 0 auto;
}

.faq-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.faq-item {
    border-radius: var(--border-radius-md);
    overflow: hidden;
    border: 1px solid var(--card-border-glass);
    transition: var(--transition-smooth);
}

.faq-question {
    width: 100%;
    background: rgba(255, 255, 255, 0.02);
    border: none;
    padding: 20px 24px;
    font-family: var(--font-primary);
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-light);
    text-align: right;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.faq-question:hover {
    background: rgba(255, 255, 255, 0.05);
    color: var(--accent-yellow);
}

.faq-question i {
    font-size: 0.9rem;
    transition: var(--transition-smooth);
    color: var(--accent-yellow);
}

.faq-item.active .faq-question {
    background: rgba(255, 255, 255, 0.05);
    color: var(--accent-yellow);
}

.faq-item.active .faq-question i {
    transform: rotate(180deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.01);
    transition: max-height 0.4s ease-out;
}

.faq-answer-content {
    padding: 20px 24px;
    font-size: 0.9rem;
    color: var(--text-muted);
    border-top: 1px solid rgba(255, 255, 255, 0.03);
    line-height: 1.75;
}

/* 10. Why EduSpace Features */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.feature-item {
    padding: 44px 30px;
    text-align: center;
}

.feature-icon {
    font-size: 2.6rem;
    color: var(--accent-yellow);
    margin-bottom: 20px;
}

.feature-item:nth-child(2) .feature-icon { color: var(--accent-orange); }
.feature-item:nth-child(3) .feature-icon { color: var(--secondary-color); }
.feature-item:nth-child(4) .feature-icon { color: #3498db; }

.feature-item h3 {
    font-size: 1.25rem;
    margin-bottom: 16px;
}

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

.feature-item:hover {
    transform: translateY(-8px);
    box-shadow: var(--box-shadow-premium);
}

/* 11. Testimonials Slider Section */
.testimonials-slider-container {
    position: relative;
    overflow: hidden;
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
    padding: 10px;
    touch-action: pan-y;
    user-select: none;
    -webkit-user-select: none;
}

.testimonials-slider-track {
    display: flex;
    transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    width: 100%;
}

.testimonial-slide {
    flex: 0 0 100%;
    width: 100%;
    padding: 0 15px;
    box-sizing: border-box;
}

.slider-nav {
    display: none !important;
}

.testimonial-card {
    padding: 40px 30px;
    position: relative;
}

.testimonial-card::before {
    content: '"';
    position: absolute;
    top: 20px;
    right: 25px;
    font-size: 5rem;
    color: rgba(255, 255, 255, 0.05);
    line-height: 1;
    font-family: serif;
}

.rating {
    color: var(--accent-yellow);
    margin-bottom: 20px;
    font-size: 0.9rem;
}

.testi-text {
    font-size: 0.95rem;
    color: var(--text-muted);
    margin-bottom: 24px;
    line-height: 1.75;
}

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

.client-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: rgba(15, 45, 89, 0.06);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: var(--accent-orange);
    border: 2px solid var(--card-border-glass);
}

.client-details h4 {
    font-size: 0.95rem;
    margin-bottom: 2px;
}

.client-details p {
    font-size: 0.8rem;
}

/* Slider Dots */
.slider-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 30px;
}

.slider-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    border: none;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    padding: 0;
}

.slider-dot.active {
    background: var(--accent-orange);
    transform: scale(1.3);
    box-shadow: 0 0 10px var(--accent-orange);
}

/* 12. Footer Section */
.main-footer {
    background: transparent;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 80px;
}

.footer-container {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1.2fr;
    gap: 60px;
    margin-bottom: 60px;
}

.footer-logo {
    height: 110px;
    width: auto;
    margin-bottom: 24px;
    background: transparent !important;
    padding: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    border: none !important;
    display: inline-block;
    object-fit: contain;
    transition: var(--transition-smooth);
    filter: none !important;
}

.footer-logo:hover {
    background: transparent !important;
    transform: scale(1.03);
    box-shadow: none !important;
    filter: none !important;
}

.footer-brand p {
    font-size: 0.95rem;
    color: var(--text-muted);
    margin-bottom: 24px;
    max-width: 350px;
}

.social-links {
    display: flex;
    gap: 16px;
}

.social-links a {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.04);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    color: var(--text-light);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.social-links a:hover {
    background: var(--accent-yellow);
    color: var(--text-dark);
    border-color: var(--accent-yellow);
    transform: translateY(-3px);
}

.footer-links h3, .footer-contact-info h3 {
    font-size: 1.15rem;
    margin-bottom: 24px;
    color: var(--accent-yellow);
    position: relative;
    padding-bottom: 10px;
}

.footer-links h3::after, .footer-contact-info h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 40px;
    height: 2px;
    background-color: var(--accent-yellow);
}

.footer-links ul li {
    margin-bottom: 14px;
}

.footer-links ul li a {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.footer-links ul li a:hover {
    color: var(--text-light);
    transform: translateX(-4px);
    display: inline-block;
}

.footer-contact-info ul li {
    margin-bottom: 18px;
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--text-muted);
    font-size: 0.9rem;
}

.footer-contact-info ul li i {
    color: var(--accent-yellow);
    font-size: 1rem;
}

.footer-contact-link {
    color: var(--text-muted);
    text-decoration: none;
    direction: ltr;
    unicode-bidi: embed;
    display: inline-block;
    transition: var(--transition-smooth);
}

.footer-contact-link:hover {
    color: var(--text-light);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding: 26px 0;
    background: rgba(0, 0, 0, 0.20);
}

.footer-bottom-container {
    display: flex;
    justify-content: center;
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* Floating WhatsApp Widget */
.whatsapp-float-widget {
    position: fixed;
    bottom: 30px;
    left: 30px;
    width: 60px;
    height: 60px;
    background-color: #25d366;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.2rem;
    box-shadow: 0 4px 18px rgba(37, 211, 102, 0.4);
    z-index: 999;
    transition: var(--transition-smooth);
}

.whatsapp-float-widget:hover {
    transform: scale(1.08) rotate(15deg);
    background-color: #20ba5a;
    box-shadow: 0 6px 24px rgba(37, 211, 102, 0.6);
}

.whatsapp-float-widget .tooltip-text {
    position: absolute;
    left: 75px;
    background-color: #0b2c5c;
    color: #ffffff;
    padding: 6px 16px;
    border-radius: 8px;
    font-size: 0.8rem;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: var(--transition-smooth);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.whatsapp-float-widget:hover .tooltip-text {
    opacity: 1;
    transform: translateX(6px);
}

/* Medium Screen Adaptations (Small desktops & Laptops) */
@media (min-width: 992px) and (max-width: 1199px) {
    .header-container {
        padding: 0 16px;
        height: 95px;
    }
    
    .main-nav ul {
        gap: 16px;
    }
    
    .nav-link {
        font-size: 0.9rem;
    }
    
    .btn-whatsapp-header {
        padding: 8px 16px;
        font-size: 0.85rem;
    }
    
    .hero-title {
        font-size: 3rem;
    }
    
    .hero-container {
        gap: 30px;
    }
}

/* Responsive Styles */
@media (max-width: 991px) {
    /* 1. Header & Navigation */
    .header-container {
        height: 85px;
    }
    
    .main-header.scrolled .header-container {
        height: 75px;
    }
    
    .site-logo {
        height: 75px;
    }
    
    .main-header.scrolled .site-logo {
        height: 65px;
    }
    
    .header-cta {
        display: none;
    }
    
    .mobile-menu-btn {
        display: flex;
    }
    
    .mobile-menu-btn.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }
    
    .mobile-menu-btn.active span:nth-child(2) {
        opacity: 0;
    }
    
    .mobile-menu-btn.active span:nth-child(3) {
        transform: rotate(-45deg) translate(6px, -7px);
    }
    
    .main-nav {
        position: fixed;
        top: 85px;
        right: -100%;
        width: 100%;
        height: calc(100vh - 85px);
        background: linear-gradient(135deg, rgba(10, 17, 40, 0.98) 0%, rgba(16, 29, 66, 0.96) 50%, rgba(5, 10, 24, 0.98) 100%);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        transition: var(--transition-smooth);
        padding: 40px 24px;
        z-index: 998;
        border-top: 1px solid rgba(255, 255, 255, 0.08);
        visibility: hidden; /* iOS Safari overflow protection */
    }
    
    .main-header.scrolled .main-nav {
        top: 75px;
        height: calc(100vh - 75px);
    }
    
    .main-nav.active {
        right: 0;
        visibility: visible;
    }
    
    .main-nav ul {
        flex-direction: column;
        align-items: flex-start;
        gap: 28px;
    }
    
    .main-nav .nav-link {
        font-size: 1.25rem;
        font-weight: 600;
        color: #ffffff !important;
        opacity: 0.95;
        display: inline-block;
        width: 100%;
        padding: 8px 0;
    }

    .main-nav .nav-link:hover,
    .main-nav .nav-link.active {
        color: var(--accent-orange) !important;
        opacity: 1;
    }

    .mobile-menu-btn.active span {
        background-color: #ffffff !important;
    }
    
    /* 2. Hero Section */
    .hero-container {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .hero-title {
        font-size: 2.4rem;
    }
    
    .hero-stats {
        flex-direction: column;
        gap: 16px;
    }
    
    .stat-card {
        padding: 20px;
        flex-direction: column;
        text-align: center;
        border-left: none;
        border-top: 4px solid var(--secondary-color);
    }
    
    .stat-card:nth-child(2) { border-top-color: var(--accent-orange); }
    .stat-card:nth-child(3) { border-top-color: var(--accent-yellow); }
    
    /* 3. Grids & Pages Layout */
    .about-grid, .form-layout-grid, .contact-layout-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .recruitment-form-card {
        padding: 24px 16px;
    }
    
    .form-group-row {
        grid-template-columns: 1fr;
        gap: 0;
    }
    
    /* 4. Footer Section */
    .footer-container {
        grid-template-columns: 1fr;
        gap: 35px;
    }
    
    .footer-brand {
        grid-column: span 1;
    }
}

/* Small Mobile Grids */
@media (max-width: 576px) {
    .programs-grid, .vision-mission-cards {
        grid-template-columns: 1fr;
    }
    
    .sub-programs-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}

/* Values Section Styling */
.values-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.value-card {
    text-align: center;
    padding: 40px 30px;
    transition: var(--transition-smooth);
}

.value-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary-color);
    box-shadow: 0 12px 30px rgba(52, 152, 219, 0.2);
}

.value-icon {
    width: 60px;
    height: 60px;
    background: rgba(241, 196, 15, 0.1);
    border: 1px solid var(--accent-yellow);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 1.5rem;
    color: var(--accent-yellow);
    transition: var(--transition-smooth);
}

.value-card:hover .value-icon {
    background: var(--accent-yellow);
    color: #070d1e;
    transform: scale(1.1);
}

.value-card h4 {
    font-size: 1.25rem;
    margin-bottom: 12px;
    font-weight: 600;
    color: #ffffff;
}

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

/* Media Query override for values grid last item centering on desktop */
@media (min-width: 992px) {
    .values-grid .value-card:last-child {
        grid-column: span 3;
        max-width: 400px;
        margin: 0 auto;
    }
}

/* Redesigned About Us Page Custom Styles */

/* 1. Floating Badges for Image Box */
.floating-badge {
    position: absolute;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.25);
    padding: 10px 18px;
    border-radius: 50px;
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
    font-size: 0.85rem;
    font-weight: 600;
    color: #ffffff;
    z-index: 10;
    transition: var(--transition-smooth);
    animation: badgeFloat 4s ease-in-out infinite alternate;
}

.floating-badge i {
    font-size: 1rem;
}

.floating-badge.badge-top-right {
    top: -12px;
    right: 20px;
    border-right: 4px solid var(--accent-yellow);
}

.floating-badge.badge-bottom-left {
    bottom: -12px;
    left: 20px;
    border-left: 4px solid var(--secondary-color);
    animation-delay: 2s;
}

@media (max-width: 576px) {
    .floating-badge.badge-top-right {
        top: 15px;
        right: 15px;
    }
    .floating-badge.badge-bottom-left {
        bottom: 15px;
        left: 15px;
    }
}

.floating-badge:hover {
    transform: scale(1.05) translateY(-3px);
    background: rgba(255, 255, 255, 0.22);
}

@keyframes badgeFloat {
    0% { transform: translateY(0); }
    100% { transform: translateY(-8px); }
}

/* 2. Premium Quote / Intro Block */
.about-quote-card {
    border-right: 4px solid var(--accent-yellow);
    padding: 24px;
    margin-bottom: 30px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 12px 24px 24px 12px;
    border-left: 1px solid rgba(255, 255, 255, 0.05);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(8px);
}

.about-quote-card p {
    font-size: 1.15rem;
    line-height: 1.8;
    color: #ffffff !important;
    font-weight: 500;
    margin-bottom: 0 !important;
}

/* 3. Pillars of Excellence Grid & Items */
.pillars-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-top: 30px;
}

.pillar-item {
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    transition: var(--transition-smooth);
    background: rgba(255, 255, 255, 0.01);
    border: 1px solid rgba(255, 255, 255, 0.04);
}

.pillar-item:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.15);
    transform: translateY(-3px);
}

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

.pillar-icon {
    width: 40px;
    height: 40px;
    background: rgba(230, 126, 34, 0.1);
    border: 1px solid var(--accent-orange);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    color: var(--accent-orange);
    flex-shrink: 0;
    transition: var(--transition-smooth);
}

.pillar-item:hover .pillar-icon {
    transform: scale(1.1);
}

.pillar-item:nth-child(1) .pillar-icon {
    background: rgba(52, 152, 219, 0.1);
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.pillar-item:nth-child(2) .pillar-icon {
    background: rgba(11, 107, 85, 0.1);
    border-color: var(--secondary-color);
    color: var(--secondary-color);
}

.pillar-item:nth-child(3) .pillar-icon {
    background: rgba(241, 196, 15, 0.1);
    border-color: var(--accent-yellow);
    color: var(--accent-yellow);
}

.pillar-item:nth-child(4) .pillar-icon {
    background: rgba(46, 204, 113, 0.1);
    border-color: #2ecc71;
    color: #2ecc71;
}

.pillar-item h4 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0;
    color: #ffffff;
}

.pillar-item p {
    font-size: 0.88rem;
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 0 !important;
}

@media (max-width: 576px) {
    .pillars-grid {
        grid-template-columns: 1fr;
    }
}

/* 4. Enhanced Vision & Mission Cards with Watermark */
.vm-card {
    position: relative;
    overflow: hidden;
    padding: 45px 35px;
    display: flex;
    flex-direction: column;
    z-index: 1;
}

.vm-card::after {
    content: attr(data-watermark);
    position: absolute;
    bottom: -10px;
    left: -10px;
    font-size: 5rem;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.02);
    z-index: -1;
    pointer-events: none;
    font-family: var(--font-primary);
    line-height: 1;
    transform: rotate(-10deg);
    transition: var(--transition-smooth);
}

.vm-card:hover::after {
    color: rgba(255, 255, 255, 0.04);
    transform: scale(1.05) rotate(-8deg);
}

.vm-card:hover {
    transform: translateY(-8px);
    border-color: var(--accent-orange);
    box-shadow: 0 15px 35px rgba(230, 126, 34, 0.12);
}

.vm-card:nth-child(2):hover {
    border-color: var(--secondary-color);
    box-shadow: 0 15px 35px rgba(11, 107, 85, 0.12);
}

.vm-icon-circle {
    width: 60px;
    height: 60px;
    background: rgba(230, 126, 34, 0.15);
    border: 1px solid var(--accent-orange);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
    transition: var(--transition-smooth);
}

.vm-icon-circle i {
    font-size: 1.6rem;
    margin-bottom: 0 !important;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

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

.vm-card:nth-child(2) .vm-icon-circle {
    background: rgba(11, 107, 85, 0.15);
    border-color: var(--secondary-color);
    color: var(--secondary-color);
}

.vm-card:nth-child(2) .vm-icon-circle i {
    color: var(--secondary-color);
}

/* 5. Saudi Vision 2030 Section Style */
.vision-2030-section {
    margin: 80px 0;
}

.vision-2030-card {
    position: relative;
    padding: 50px;
    background: linear-gradient(135deg, rgba(11, 107, 85, 0.12) 0%, rgba(10, 17, 40, 0.5) 100%);
    border: 1px solid rgba(11, 107, 85, 0.25);
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    display: grid;
    grid-template-columns: 1.3fr 0.7fr;
    gap: 40px;
    align-items: center;
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.vision-2030-card::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 350px;
    height: 350px;
    background: radial-gradient(circle, rgba(11, 107, 85, 0.35) 0%, rgba(0, 0, 0, 0) 70%);
    filter: blur(60px);
    z-index: -1;
    pointer-events: none;
}

.vision-2030-content {
    display: flex;
    flex-direction: column;
    gap: 16px;
    text-align: right;
}

.vision-2030-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    align-self: flex-start;
    padding: 6px 18px;
    background: rgba(11, 107, 85, 0.2);
    border: 1px solid var(--secondary-color);
    color: #2ecc71;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
}

.vision-2030-badge i {
    animation: spinSlow 8s linear infinite;
}

@keyframes spinSlow {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.vision-2030-content h3 {
    font-size: 2.1rem;
    color: #ffffff;
    margin-bottom: 6px;
    font-weight: 700;
}

.vision-2030-content p {
    font-size: 1.05rem;
    color: var(--text-muted);
    line-height: 1.85;
    margin-bottom: 0;
}

.vision-2030-graphic {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

.vision-2030-logo-box {
    width: 150px;
    height: 150px;
    background: radial-gradient(circle, rgba(241, 196, 15, 0.1) 0%, rgba(11, 107, 85, 0.15) 100%);
    border: 2px dashed rgba(241, 196, 15, 0.35);
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font-family: var(--font-primary);
    color: var(--accent-yellow);
    font-weight: 700;
    font-size: 1.5rem;
    line-height: 1.2;
    text-shadow: 0 0 10px rgba(241, 196, 15, 0.2);
    animation: spinDashed 30s linear infinite;
}

.vision-2030-logo-box span {
    font-size: 0.85rem;
    color: #ffffff;
    font-weight: 400;
    opacity: 0.8;
    letter-spacing: 0.5px;
}

@keyframes spinDashed {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.vision-2030-logo-text {
    position: absolute;
    font-size: 2rem;
    font-weight: 800;
    color: #ffffff;
    text-align: center;
    pointer-events: none;
    text-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
}

@media (max-width: 768px) {
    .vision-2030-card {
        grid-template-columns: 1fr;
        gap: 30px;
        padding: 35px 24px;
    }
    .vision-2030-logo-box {
        width: 120px;
        height: 120px;
        font-size: 1.25rem;
    }
    .vision-2030-logo-box span {
        font-size: 0.75rem;
    }
}

/* 6. Individual Glowing Hover Classes for Values */
.val-gold:hover {
    border-color: var(--accent-yellow) !important;
    box-shadow: 0 12px 30px rgba(241, 196, 15, 0.18) !important;
}

.val-orange:hover {
    border-color: var(--accent-orange) !important;
    box-shadow: 0 12px 30px rgba(230, 126, 34, 0.18) !important;
}
.val-orange .value-icon {
    background: rgba(230, 126, 34, 0.1);
    border-color: var(--accent-orange);
    color: var(--accent-orange);
}
.val-orange:hover .value-icon {
    background: var(--accent-orange);
    color: #070d1e;
}

.val-teal:hover {
    border-color: var(--secondary-color) !important;
    box-shadow: 0 12px 30px rgba(11, 107, 85, 0.18) !important;
}
.val-teal .value-icon {
    background: rgba(11, 107, 85, 0.1);
    border-color: var(--secondary-color);
    color: var(--secondary-color);
}
.val-teal:hover .value-icon {
    background: var(--secondary-color);
    color: #070d1e;
}

.val-blue:hover {
    border-color: var(--primary-color) !important;
    box-shadow: 0 12px 30px rgba(52, 152, 219, 0.18) !important;
}
.val-blue .value-icon {
    background: rgba(52, 152, 219, 0.1);
    border-color: var(--primary-color);
    color: var(--primary-color);
}
.val-blue:hover .value-icon {
    background: var(--primary-color);
    color: #070d1e;
}

.val-purple:hover {
    border-color: #9b59b6 !important;
    box-shadow: 0 12px 30px rgba(155, 89, 182, 0.18) !important;
}
.val-purple .value-icon {
    background: rgba(155, 89, 182, 0.1);
    border-color: #9b59b6;
    color: #9b59b6;
}
.val-purple:hover .value-icon {
    background: #9b59b6;
    color: #070d1e;
}

.val-pink:hover {
    border-color: #fd79a8 !important;
    box-shadow: 0 12px 30px rgba(253, 121, 168, 0.18) !important;
}
.val-pink .value-icon {
    background: rgba(253, 121, 168, 0.1);
    border-color: #fd79a8;
    color: #fd79a8;
}
.val-pink:hover .value-icon {
    background: #fd79a8;
    color: #070d1e;
}

.val-green:hover {
    border-color: #2ecc71 !important;
    box-shadow: 0 12px 30px rgba(46, 204, 113, 0.18) !important;
}
.val-green .value-icon {
    background: rgba(46, 204, 113, 0.1);
    border-color: #2ecc71;
    color: #2ecc71;
}
.val-green:hover .value-icon {
    background: #2ecc71;
    color: #070d1e;
}

.value-card:hover .value-icon i {
    animation: iconPulse 0.6s ease-in-out;
}

@keyframes iconPulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.2); }
    100% { transform: scale(1); }
}

/* ==========================================
   Articles Page & Educational Blog Styles
   ========================================== */

.blog-layout {
    display: grid;
    grid-template-columns: 320px 1fr;
    gap: 40px;
    align-items: start;
    margin-bottom: 80px;
    margin-top: 20px;
}

.blog-sidebar {
    position: sticky;
    top: 140px;
    z-index: 10;
}

.toc-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
    list-style: none;
    padding: 0;
    margin: 0;
}

.toc-link {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 14px 18px;
    border-radius: var(--border-radius-md);
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.06);
    transition: var(--transition-smooth);
}

.toc-link:hover, .toc-link.active {
    background: rgba(255, 255, 255, 0.07);
    border-color: var(--accent-orange);
    transform: translateX(-5px);
}

.toc-link.active {
    box-shadow: 0 8px 25px rgba(230, 126, 34, 0.15);
    background: rgba(230, 126, 34, 0.04);
}

.toc-num {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--text-muted);
    transition: var(--transition-smooth);
}

.toc-link:hover .toc-num, .toc-link.active .toc-num {
    color: var(--accent-orange);
}

.toc-details h4 {
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 4px;
    color: #ffffff;
    transition: var(--transition-smooth);
}

.toc-link:hover .toc-details h4, .toc-link.active .toc-details h4 {
    color: var(--accent-orange);
}

.toc-details p {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-bottom: 0;
    line-height: 1.3;
}

.blog-feed {
    display: flex;
    flex-direction: column;
    gap: 50px;
}

.blog-article {
    padding: 50px;
    scroll-margin-top: 140px; /* Offset for header when navigating via anchors */
    border: 1px solid var(--card-border-glass);
    transition: var(--transition-smooth);
}

.blog-article:hover {
    border-color: rgba(255, 255, 255, 0.12);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.45);
}

.article-meta {
    display: flex;
    align-items: center;
    gap: 20px;
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 25px;
    border-bottom: 1px dashed rgba(255, 255, 255, 0.1);
    padding-bottom: 18px;
    flex-wrap: wrap;
}

.article-category {
    color: var(--accent-yellow);
    font-weight: 600;
    background: rgba(241, 196, 15, 0.12);
    padding: 4px 14px;
    border-radius: 20px;
    border: 1px solid rgba(241, 196, 15, 0.2);
    font-size: 0.8rem;
}

.article-title {
    font-size: 2.2rem;
    line-height: 1.45;
    color: #ffffff;
    margin-bottom: 28px;
    font-weight: 700;
}

.article-content p {
    font-size: 1.08rem;
    line-height: 1.9;
    color: var(--text-muted);
    margin-bottom: 24px;
    text-align: justify;
}

.article-content h3 {
    font-size: 1.45rem;
    color: #ffffff;
    margin-top: 45px;
    margin-bottom: 20px;
    font-weight: 600;
    border-right: 4px solid var(--accent-orange);
    padding-right: 12px;
}

.article-content h4 {
    font-size: 1.2rem;
    color: var(--accent-yellow);
    margin-top: 30px;
    margin-bottom: 15px;
    font-weight: 600;
}

.article-content ul, .article-content ol {
    margin-bottom: 24px;
    padding-right: 24px;
    list-style: none;
}

.article-content li {
    font-size: 1.05rem;
    line-height: 1.85;
    color: var(--text-muted);
    margin-bottom: 12px;
    position: relative;
}

.article-content ul li::before {
    content: '✦';
    color: var(--accent-yellow);
    position: absolute;
    right: -24px;
    top: 0;
}

.article-content ol {
    counter-reset: article-counter;
}

.article-content ol li {
    counter-increment: article-counter;
}

.article-content ol li::before {
    content: counter(article-counter) ".";
    color: var(--accent-orange);
    font-weight: 700;
    position: absolute;
    right: -24px;
    top: 0;
}

.article-quote {
    background: rgba(255, 255, 255, 0.02);
    border-right: 4px solid var(--secondary-color);
    padding: 24px 30px;
    border-radius: 8px 24px 24px 8px;
    margin: 36px 0;
    border-left: 1px solid rgba(255, 255, 255, 0.04);
    border-top: 1px solid rgba(255, 255, 255, 0.04);
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.article-quote p {
    font-style: italic;
    font-size: 1.15rem;
    color: #ffffff !important;
    line-height: 1.85;
    margin-bottom: 0 !important;
}

a.article-keyword-highlight, .article-keyword-highlight {
    color: var(--accent-yellow);
    font-weight: 600;
    transition: var(--transition-smooth);
    border-bottom: 1px dashed rgba(241, 196, 15, 0.4);
    padding-bottom: 1px;
    display: inline;
}

a.article-keyword-highlight:hover {
    color: #ffffff;
    border-bottom-color: #ffffff;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.3);
}

@media (max-width: 991px) {
    .blog-layout {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .blog-sidebar {
        position: static;
        width: 100%;
    }
    
    .toc-list {
        flex-direction: row;
        overflow-x: auto;
        padding-bottom: 10px;
        scrollbar-width: none; /* Firefox */
        -webkit-overflow-scrolling: touch;
    }
    
    .toc-list::-webkit-scrollbar {
        display: none; /* Chrome/Safari */
    }
    
    .toc-link {
        flex: 0 0 auto;
        padding: 10px 16px;
    }
    
    .toc-link:hover, .toc-link.active {
        transform: none;
    }
    
    .blog-article {
        padding: 35px 24px;
    }
    
    .article-title {
        font-size: 1.7rem;
    }
}

/* Toast Notification */
.custom-toast {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    background: rgba(10, 17, 40, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5), 0 0 20px rgba(230, 126, 34, 0.15);
    padding: 16px 28px;
    border-radius: 50px;
    color: #ffffff;
    font-size: 1.05rem;
    font-weight: 500;
    z-index: 9999;
    display: flex;
    align-items: center;
    gap: 12px;
    opacity: 0;
    pointer-events: none;
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), opacity 0.3s ease;
}

.custom-toast.show {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
    pointer-events: auto;
}

.custom-toast i {
    color: var(--accent-orange);
    font-size: 1.3rem;
}

