/* ===== GOOGLE FONTS ===== */
@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@300;400;500;600;700;800;900&family=Almarai:wght@300;400;700;800&display=swap');

/* ===== CSS VARIABLES ===== */
:root {
  /* Colors */
  --primary-color: #4531ab;
  --primary-dark: #1e3a8a;
  --primary-light: #3b82f6;
  --secondary-color: #f59e0b;
  --secondary-dark: #d97706;
  --accent-color: #f39c12;
  --accent-dark: #059669;
  
  /* Text Colors */
  --text-primary: #1f2937;
  --text-secondary: #6b7280;
  --text-light: #9ca3af;
  --text-white: #ffffff;
  
  /* Background Colors */
  --bg-primary: #ffffff;
  --bg-secondary: #f9fafb;
  --bg-dark: #111827;
  --bg-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  
  /* Shadows */
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
  --shadow-2xl: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  
  /* Typography */
  --font-primary: 'Cairo', sans-serif;
  --font-secondary: 'Almarai', sans-serif;
  
  /* Font Sizes - أحجام أصغر */
  --text-xs: 0.6rem;
  --text-sm: 0.7rem;
  --text-base: 0.8rem;
  --text-lg: 0.9rem;
  --text-xl: 1rem;
  --text-2xl: 1.15rem;
  --text-3xl: 1.35rem;
  --text-4xl: 1.6rem;
  --text-5xl: 2rem;
  --text-6xl: 2.5rem;
  
  /* Spacing - مسافات أصغر */
  --space-1: 0.15rem;
  --space-2: 0.3rem;
  --space-3: 0.5rem;
  --space-4: 0.7rem;
  --space-5: 0.9rem;
  --space-6: 1rem;
  --space-8: 1.4rem;
  --space-10: 1.8rem;
  --space-12: 2.2rem;
  --space-16: 2.8rem;
  --space-20: 3.5rem;
  
  /* Border Radius */
  --radius-sm: 0.25rem;
  --radius-md: 0.375rem;
  --radius-lg: 0.5rem;
  --radius-xl: 0.75rem;
  --radius-2xl: 1rem;
  --radius-full: 9999px;
  
  /* Transitions */
  --transition-fast: 0.15s ease-in-out;
  --transition-normal: 0.3s ease-in-out;
  --transition-slow: 0.5s ease-in-out;
  
  /* Z-index */
  --z-dropdown: 1000;
  --z-sticky: 1020;
  --z-fixed: 1030;
  --z-modal: 1040;
  --z-popover: 1050;
  --z-tooltip: 1060;
}

/* ===== RESET & BASE STYLES ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  overflow-x: hidden;
  margin: 0;
  padding: 0;
  direction: rtl;
}

body {
  font-family: var(--font-primary);
  font-size: var(--text-base);
  line-height: 1.6;
  color: var(--text-primary);
  background-color: var(--bg-primary);
  direction: rtl;
  overflow-x: hidden;
}
/* Progress Bar */
.progress-bar {
    position: fixed;
    top: 0;
    left: 0;
    width: 0%;
    height: 4px;
    background: linear-gradient(90deg, #2c5aa0, #1e3a8a);
    z-index: 9999;
    transition: width 0.3s ease;
}
/* ===== LOADING SCREEN ===== */
#loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #09203b, var(--secondary-color));
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    flex-direction: column;
    color: var(--white-color);
    opacity: 1;
    visibility: visible;
    transition: opacity 0.8s ease-out, visibility 0.8s ease-out;
}

#loading-screen.hidden {
    opacity: 0;
    visibility: hidden;
}

.loading-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 30px;
    border-radius: 15px;
    background: rgba(255, 255, 255, 0.1);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.loading-logo img {
    width: 120px;
    height: 120px;
    margin-bottom: 20px;
}

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

.loading-title {
    font-size: 2.2rem;
    margin-bottom: 10px;
    font-weight: 700;
}

.loading-subtitle {
    font-size: 1.2rem;
    margin-bottom: 30px;
    font-weight: 300;
}

.loading-animation {
    margin-bottom: 40px;
}

.book-loader {
    position: relative;
    width: 100px;
    height: 70px;
    perspective: 200px;
}

.book {
    position: absolute;
    width: 100%;
    height: 100%;
    transform-style: preserve-3d;
    animation: bookFlip 2s infinite;
}

.page {
    position: absolute;
    width: 50%;
    height: 100%;
    background-color: var(--white-color);
    transform-origin: left;
    border: 1px solid rgba(0, 0, 0, 0.1);
}

.page1 {
    left: 50%;
    background-color: #f0f0f0;
}

.page2 {
    left: 0;
    background-color: #e0e0e0;
}

.page3 {
    left: 50%;
    background-color: #d0d0d0;
}

@keyframes bookFlip {
    0% { transform: rotateY(0deg); }
    25% { transform: rotateY(-90deg); }
    50% { transform: rotateY(-180deg); }
    75% { transform: rotateY(-90deg); }
    100% { transform: rotateY(0deg); }
}

.loading-progress {
    width: 80%;
    max-width: 400px;
    margin-bottom: 30px;
}

.progress-bar-container {
    width: 100%;
    height: 8px;
    background-color: rgba(255, 255, 255, 0.3);
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 10px;
}

.progress-bar-fill {
    height: 100%;
    width: 0%;
    background-color: var(--accent-color);
    border-radius: 4px;
    animation: fillProgress 3s forwards;
}

@keyframes fillProgress {
    0% { width: 0%; }
    100% { width: 100%; }
}

.loading-text {
    font-size: 0.9rem;
    font-weight: 300;
}

.loading-features {
  justify-content: space-around;
    display: flex;
    gap: 30px;
    margin-top: 30px;
}

.feature-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-white);
}


/* ===== UTILITY CLASSES ===== */


.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--space-4);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: var(--space-3) var(--space-6);
  font-size: var(--text-base);
  font-weight: 500;
  text-decoration: none;
  border: none;
  border-radius: var(--radius-lg);
  cursor: pointer;
  transition: all var(--transition-normal);
  position: relative;
  overflow: hidden;
}

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

.btn:hover::before {
  left: 100%;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
  color: var(--text-white);
  box-shadow: var(--shadow-md);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

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

.btn-secondary:hover {
  background: var(--primary-color);
  color: var(--text-white);
  transform: translateY(-2px);
}

.btn-large {
  padding: var(--space-4) var(--space-8);
  font-size: var(--text-lg);
}

.btn-full {
  width: 100%;
}

a {
    text-decoration: none;
    color: var(--primary-color);
}

ul {
    list-style: none;
}

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

/* ===== UTILITY CLASSES ===== */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--space-4);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: var(--space-3) var(--space-6);
  font-size: var(--text-base);
  font-weight: 500;
  text-decoration: none;
  border: none;
  border-radius: var(--radius-lg);
  cursor: pointer;
  transition: all var(--transition-normal);
  position: relative;
  overflow: hidden;
}

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

.btn:hover::before {
  left: 100%;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
  color: var(--text-white);
  box-shadow: var(--shadow-md);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

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

.btn-secondary:hover {
  background: var(--primary-color);
  color: var(--text-white);
  transform: translateY(-2px);
}

.btn-large {
  padding: var(--space-4) var(--space-8);
  font-size: var(--text-lg);
}

.btn-full {
  width: 100%;
}


ul {
    list-style: none;
}

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

/* ===== HEADER STYLES ===== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    z-index: var(--z-fixed);
    transition: all var(--transition-normal);
    padding: 0;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
}

.header.scrolled {
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.15);
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--space-3) var(--space-6);
    max-width: 1400px;
    margin: 0 auto;
    position: relative;
}

/* Logo Styles */
.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    transition: transform var(--transition-normal);
    z-index: 1001;
}

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

.logo img {
    height: clamp(35px, 5vw, 50px);
    width: auto;
    border-radius: var(--radius-lg);
    transition: all var(--transition-normal);
}

.logo:hover img {
    box-shadow: 0 6px 25px rgba(0, 0, 0, 0.2);
}

/* Navigation Menu */
.nav-menu {
    display: flex;
    list-style: none;
    gap: var(--space-6);
    margin: 0;
    padding: 0;
    align-items: center;
}

.nav-item {
    position: relative;
}

.nav-link {
    text-decoration: none;
    color: var(--bg-dark);
    font-weight: 500;
    font-size: var(--text-base);
    padding: var(--space-3) var(--space-4);
    border-radius: var(--radius-lg);
    transition: all var(--transition-normal);
    position: relative;
    overflow: hidden;
}

.nav-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
}

.nav-link:hover::before {
    left: 100%;
}

.nav-link:hover {
    color: var(--primary-color);
    background: rgba(69, 49, 171, 0.05);
    transform: translateY(-2px);
}

.nav-link.active {
    color: var(--primary-color);
    background: rgba(69, 49, 171, 0.1);
    font-weight: 600;
}

/* Navigation Actions */
.nav-actions {
    display: flex;
    align-items: center;
    gap: var(--space-4);
}

/* Live Stream Button */
.live-stream-btn {
    background: linear-gradient(135deg, #dc2626, #ef4444);
    color: white;
    border: none;
    padding: var(--space-3) var(--space-5);
    border-radius: var(--radius-full);
    font-weight: 600;
    font-size: var(--text-sm);
    cursor: pointer;
    transition: all var(--transition-normal);
    display: flex;
    align-items: center;
    gap: var(--space-2);
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(220, 38, 38, 0.3);
}

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

.live-stream-btn:hover::before {
    left: 100%;
}

.live-stream-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(220, 38, 38, 0.4);
}

.live-indicator {
    width: 8px;
    height: 8px;
    background: #fff;
    border-radius: 50%;
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.7; transform: scale(1.2); }
}

/* CTA Button */
.cta-btn {
    background: linear-gradient(135deg, #25d366, #128c7e);
    color: white;
    text-decoration: none;
    padding: var(--space-3) var(--space-5);
    border-radius: var(--radius-full);
    font-weight: 600;
    font-size: var(--text-sm);
    transition: all var(--transition-normal);
    display: flex;
    align-items: center;
    gap: var(--space-2);
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.3);
    position: relative;
    overflow: hidden;
}

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

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

.cta-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(37, 211, 102, 0.4);
}

/* Hamburger Menu */
.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    padding: var(--space-2);
    border-radius: var(--radius-md);
    transition: all var(--transition-normal);
    background: rgba(69, 49, 171, 0.1);
}

.hamburger:hover {
    background: rgba(69, 49, 171, 0.2);
    transform: scale(1.05);
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: var(--primary-color);
    margin: 2px 0;
    transition: all var(--transition-normal);
    border-radius: var(--radius-sm);
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
}

/* Mobile Responsive */
@media (max-width: 1024px) {
    .navbar {
        padding: var(--space-1) var(--space-2);
    }
    
    .nav-menu {
        gap: var(--space-2);
    }
    
    .nav-actions {
        gap: var(--space-1);
    }
    
    .live-stream-btn,
    .cta-btn {
        padding: var(--space-1) var(--space-2);
        font-size: var(--text-xs);
    }
    
    .btn-text {
        display: none;
    }
}

@media (max-width: 768px) {
    .header {
        padding: 0;
    }
    
    .navbar {
        padding: var(--space-1) var(--space-2);
        position: relative;
    }
    
    .hamburger {
        display: flex;
        z-index: 1001;
    }
    
    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: min(250px, 70vw);
        height: 100vh;
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(15px);
        flex-direction: column;
        justify-content: flex-start;
        align-items: flex-start;
        padding: 70px 15px 15px;
        transition: right var(--transition-normal);
        box-shadow: -3px 0 15px rgba(0, 0, 0, 0.08);
        gap: var(--space-1);
        overflow-y: auto;
    }
    
    .nav-menu.active {
        right: 0;
    }
    
    .nav-item {
        width: 100%;
    }
    
    .nav-link {
        display: block;
        width: 100%;
        padding: var(--space-2);
        border-radius: var(--radius-md);
        font-size: var(--text-sm);
        border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    }
    
    .nav-actions {
        gap: var(--space-1);
    }
    
    .live-stream-btn,
    .cta-btn {
        padding: var(--space-1);
        min-width: 35px;
        justify-content: center;
    }
    
    .btn-text {
        display: none;
    }
}


/* ===== HERO SECTION ===== */
.hero-section {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    background: cadetblue;
    justify-content: center;
    padding: 120px 20px 60px;
    text-align: center;
}

.hero-content {
    margin-bottom: 2rem;
}

.hero-content h1 {
    font-size: clamp(1.8rem, 5vw, 2.5rem);
    font-weight: 800;
    color: white;
    margin-bottom: 1rem;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.hero-content p {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.9);
    max-width: 600px;
    margin: 0 auto;
}

/* ===== SEARCH WIDGET ===== */
.search-widget {
    background: white;
    border-radius: var(--radius-2xl);
    padding: 2rem;
    width: 100%;
    max-width: 900px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

.search-filters {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.filter-group {
    display: flex;
    flex-direction: column;
}

.filter-group label {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
}

.filter-group select,
.filter-group input {
    padding: 0.75rem 1rem;
    border: 2px solid #e5e7eb;
    border-radius: var(--radius-lg);
    font-family: var(--font-primary);
    font-size: 0.9rem;
    transition: all var(--transition-fast);
    background: white;
}

.filter-group select:focus,
.filter-group input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(69, 49, 171, 0.1);
}

.search-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-bottom: 1rem;
}

.btn-primary {
    background: linear-gradient(135deg, var(--accent-color), var(--accent-dark));
    color: white;
    border: none;
    padding: 0.875rem 2rem;
    border-radius: var(--radius-lg);
    font-family: var(--font-primary);
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all var(--transition-fast);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(16, 185, 129, 0.3);
}

.btn-secondary {
    background: white;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
    padding: 0.875rem 2rem;
    border-radius: var(--radius-lg);
    font-family: var(--font-primary);
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all var(--transition-fast);
}

.btn-secondary:hover {
    background: var(--primary-color);
    color: rgb(0, 0, 0);
}

.privacy-note {
    text-align: center;
    font-size: 0.85rem;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

/* ===== HERO SECTION ===== */
.hero {
  
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hero-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  z-index: -2;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.4);
  z-index: -1;
}

.floating-shapes {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  z-index: -1;
}

.shape {
  position: absolute;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  animation: float 6s ease-in-out infinite;
}

.shape-1 {
  width: 80px;
  height: 80px;
  top: 20%;
  left: 10%;
  animation-delay: 0s;
}

.shape-2 {
  width: 120px;
  height: 120px;
  top: 60%;
  right: 15%;
  animation-delay: 2s;
}

.shape-3 {
  width: 60px;
  height: 60px;
  bottom: 20%;
  left: 20%;
  animation-delay: 4s;
}

.shape-4 {
  width: 100px;
  height: 100px;
  top: 30%;
  right: 30%;
  animation-delay: 1s;
}

@keyframes float {
  0%, 100% { transform: translateY(0px) rotate(0deg); }
  50% { transform: translateY(-20px) rotate(180deg); }
}

.hero-content {
  text-align: center;
  color: var(--text-white);
  max-width: 800px;
  padding: var(--space-8);
}

.hero-title {
  font-size: var(--text-6xl);
  font-weight: 800;
  margin-bottom: var(--space-6);
  line-height: 1.2;
}

.title-main {
  display: block;
  background: linear-gradient(45deg, #ffd700, #ffed4e);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.title-sub {
  display: block;
  font-size: var(--text-3xl);
  font-weight: 600;
  margin-top: var(--space-2);
}

.hero-subtitle {
  font-size: var(--text-2xl);
  font-weight: 600;
  margin-bottom: var(--space-4);
  color: #ffd700;
}

.hero-description {
  font-size: var(--text-lg);
  margin-bottom: var(--space-8);
  opacity: 0.9;
  line-height: 1.8;
}

.hero-buttons {
  display: flex;
  gap: var(--space-4);
  justify-content: center;
  margin-bottom: var(--space-8);
  flex-wrap: wrap;
}

.hero-contact {
  margin-bottom: var(--space-12);
}

.contact-card {
  display: inline-flex;
  align-items: center;
  gap: var(--space-4);
  padding: var(--space-4) var(--space-6);
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--radius-xl);
  text-decoration: none;
  color: var(--text-white);
  transition: all var(--transition-normal);
}

.contact-card:hover {
  transform: translateY(-5px);
  background: rgba(255, 255, 255, 0.2);
}

.contact-icon {
  width: 50px;
  height: 50px;
  background: var(--secondary-color);
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--text-xl);
}

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

.contact-label {
  font-weight: 600;
  font-size: var(--text-lg);
}

.contact-desc {
  font-size: var(--text-sm);
  opacity: 0.8;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: var(--space-6);
  max-width: 600px;
  margin: 0 auto;
}

.stat-item {
  text-align: center;
  padding: var(--space-4);
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border-radius: var(--radius-lg);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.stat-number {
  font-size: var(--text-3xl);
  font-weight: 800;
  color: var(--accent-color);
  margin-bottom: var(--space-1);
}

.stat-label {
  font-size: var(--text-sm);
  opacity: 0.9;
}

/* ===== SECTION STYLES ===== */
.section-header {
  text-align: center;
  margin-bottom: 60px;
}

.section-subtitle {
  display: inline-block;
  padding: var(--space-2) var(--space-4);
  background: linear-gradient(135deg, var(--primary-w), var(--primary-dark));
  color: var(--text-primary);
  font-size: var(--text-xl);
  font-weight: 600;
  border-radius: var(--radius-full);
  margin-bottom: var(--space-4);
}

.section-title {
  font-size: var(--text-4xl);
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: var(--space-4);
  line-height: 1.2;
}

.section-description {
  font-size: var(--text-lg);
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.8;
}

/* ===== SERVICES SECTION ===== */
.services {
  padding: var(--space-20) 0;
  background: var(--bg-secondary);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: var(--space-8);
}

.service-card {
  background: var(--bg-primary);
  border-radius: var(--radius-2xl);
  padding: var(--space-8);
  box-shadow: var(--shadow-lg);
  transition: all var(--transition-normal);
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
}

.service-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-2xl);
}

.service-icon {
  width: 80px;
  height: 80px;
  background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
  border-radius: var(--radius-2xl);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--text-3xl);
  color: var(--text-white);
  margin-bottom: var(--space-6);
  transition: transform var(--transition-normal);
}

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

.service-title {
  font-size: var(--text-2xl);
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: var(--space-4);
}

.service-price {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  margin-bottom: var(--space-4);
}

.price-label {
  font-size: var(--text-sm);
  color: var(--text-secondary);
}

.price-value {
  font-size: var(--text-xl);
  font-weight: 700;
  color: var(--secondary-color);
}

.service-description {
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: var(--space-6);
}

.service-features {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
}

.feature {
  padding: var(--space-1) var(--space-3);
  background: var(--bg-secondary);
  color: var(--text-primary);
  font-size: var(--text-sm);
  border-radius: var(--radius-full);
  font-weight: 500;
}

/* ===== UNIVERSITIES SECTION ===== */
.universities {
  padding: var(--space-20) 0;
  background: var(--bg-primary);
}

.universities-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--space-8);
}

.university-card {
  background: var(--bg-primary);
  border-radius: var(--radius-2xl);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  transition: all var(--transition-normal);
  position: relative;
  border: 1px solid rgba(0, 0, 0, 0.05);
}

.university-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-2xl);
  border-color: var(--primary-color);
}

.university-image {
  position: relative;
  height: 200px;
  overflow: hidden;
  background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-4);
}

.university-image img {
 width:fit-content;
  height: 100%;
  object-fit: contain;
  transition: transform var(--transition-slow);
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.1));
}

.university-card:hover .university-image img {
  transform: scale(1.1);
}

.university-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(37, 99, 235, 0.9);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity var(--transition-normal);
}

.university-card:hover .university-overlay {
  opacity: 1;
}

.university-btn {
  padding: var(--space-3) var(--space-6);
  background: var(--text-white);
  color: var(--primary-color);
  text-decoration: none;
  border-radius: var(--radius-lg);
  font-weight: 600;
  transition: all var(--transition-normal);
  box-shadow: var(--shadow-md);
}

.university-btn:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.university-content {
  padding: var(--space-6);
}

.university-name {
  font-size: var(--text-xl);
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: var(--space-3);
  line-height: 1.3;
}

.university-description {
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: var(--space-4);
  font-size: var(--text-sm);
}

.university-features {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  margin-bottom: var(--space-4);
}

.university-features .feature {
  padding: var(--space-1) var(--space-3);
  background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
  color: var(--text-white);
  font-size: var(--text-xs);
  border-radius: var(--radius-full);
  font-weight: 500;
}

.university-info {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: var(--space-4);
  border-top: 1px solid var(--bg-secondary);
}

.university-location {
  display: flex;
  align-items: center;
  gap: var(--space-1);
  color: var(--text-secondary);
  font-size: var(--text-sm);
}

.university-rating {
  display: flex;
  align-items: center;
  gap: var(--space-1);
  color: var(--secondary-color);
  font-size: var(--text-sm);
  font-weight: 600;
}



.university-btn:hover {
  background: var(--primary-dark);
  transform: scale(1.05);
}

.university-content {
  padding: var(--space-6);
}

.university-name {
  font-size: var(--text-xl);
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: var(--space-4);
}

.university-description {
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: var(--space-4);
}

.university-features {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
}

.universities-cta {
  text-align: center;
  margin-top: var(--space-12);
}

/* ===== ABOUT SECTION ===== */
.about {
  padding: var(--space-20) 0;
  background: var(--bg-secondary);
}

.about-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-12);
  align-items: center;
}

.about-description {
  font-size: var(--text-lg);
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: var(--space-8);
}

.about-features {
  margin-bottom: var(--space-8);
  display: flex;
  justify-content: space-between; /* لتوزيع العناصر بالتساوي */
  align-items: center; /* محاذاة العناصر عموديًا */
}
.feature-item {
  color: black;
 display: flex;
   flex-direction: row; /* لضبط الأيقونة والنص جنبًا إلى جنب */

    flex-direction: column;
    align-items: center;
    font-size: 0.9rem;
    font-weight: 500;
}

.about-features .feature-item i {
    
    font-size: 0.9rem;
    color: var(--accent-color);
    margin-bottom: 8px;
    margin-bottom: 8px;;
}
.feature-item i {
    
    font-size: 1.9rem;
    color: var(--accent-color);
    margin-bottom: 8px;
    margin-bottom: 8px;;
}

.about-cta {
  display: flex;
  gap: var(--space-4);
  flex-wrap: wrap;
}

.about-image {
  position: relative;
}

.image-wrapper {
  position: relative;
  border-radius: var(--radius-2xl);
  overflow: hidden;
  box-shadow: var(--shadow-2xl);
}

.image-wrapper img {
  width: 100%;
  height: 400px;
  object-fit: cover;
}

.image-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity var(--transition-normal);
}

.image-wrapper:hover .image-overlay {
  opacity: 1;
}

.play-button {
  width: 80px;
  height: 80px;
  background: var(--primary-color);
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-white);
  font-size: var(--text-2xl);
  cursor: pointer;
  transition: all var(--transition-normal);
}

.play-button:hover {
  transform: scale(1.1);
  background: var(--primary-dark);
}

/* ===== CONTACT SECTION ===== */
.contact {
  padding: var(--space-20) 0;
  background: var(--bg-primary);
}

.contact-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-12);
}

.contact-item {
  display: flex;
  gap: var(--space-4);
  margin-bottom: var(--space-8);
}

.contact-icon {
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
  border-radius: var(--radius-xl);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-white);
  font-size: var(--text-xl);
  flex-shrink: 0;
}

.contact-details h4 {
  font-size: var(--text-lg);
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: var(--space-2);
}

.contact-details p {
  color: var(--text-secondary);
  margin-bottom: var(--space-2);
}

.contact-details a {
  color: var(--primary-color);
  text-decoration: none;
  font-weight: 500;
  transition: color var(--transition-normal);
}

.contact-details a:hover {
  color: var(--primary-dark);
}

.social-links {
  margin-top: var(--space-8);
}

.social-links h4 {
  font-size: var(--text-lg);
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: var(--space-4);
}

.social-icons {
  display: flex;
  gap: var(--space-3);
}

.social-link {
  width: 50px;
  height: 50px;
  background: var(--bg-secondary);
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-primary);
  text-decoration: none;
  transition: all var(--transition-normal);
}

.social-link:hover {
  background: var(--primary-color);
  color: var(--text-white);
  transform: translateY(-3px);
}

/* ===== FORM STYLES ===== */
.form {
  background: var(--bg-secondary);
  padding: var(--space-8);
  border-radius: var(--radius-2xl);
  box-shadow: var(--shadow-lg);
}

.form-group {
  margin-bottom: var(--space-6);
}

.form-group label {
  display: block;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: var(--space-2);
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: var(--space-4);
  border: 2px solid var(--bg-secondary);
  border-radius: var(--radius-lg);
  font-size: var(--text-base);
  font-family: inherit;
  transition: all var(--transition-normal);
  background: var(--bg-primary);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

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

/* ===== FOOTER ===== */
.footer {
  background: linear-gradient(135deg, var(--bg-dark), #1f2937);
  color: var(--text-white);
  padding: var(--space-20) 0 var(--space-8) 0;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: var(--space-8);
  margin-bottom: var(--space-12);
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  margin-bottom: var(--space-4);
}

.footer-logo img {
  width: 50px;
  height: 50px;
  border-radius: var(--radius-lg);
}

.footer-logo h3 {
  font-size: var(--text-xl);
  font-weight: 700;
}

.footer-description {
  color: #d1d5db;
  line-height: 1.8;
  margin-bottom: var(--space-6);
}

.footer-social {
  display: flex;
  gap: var(--space-3);
}

.footer-social .social-link {
  width: 45px;
  height: 45px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-white);
  text-decoration: none;
  transition: all var(--transition-normal);
}

.footer-social .social-link:hover {
  background: var(--primary-color);
  transform: translateY(-3px);
}

.footer-title {
  font-size: var(--text-lg);
  font-weight: 600;
  margin-bottom: var(--space-4);
  color: var(--text-white);
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: var(--space-3);
}

.footer-links a {
  color: #d1d5db;
  text-decoration: none;
  transition: color var(--transition-normal);
}

.footer-links a:hover {
  color: var(--primary-color);
}

.newsletter-description {
  color: #d1d5db;
  margin-bottom: var(--space-4);
}

.newsletter-input {
  display: flex;
  gap: var(--space-2);
}

.newsletter-input input {
  flex: 1;
  padding: var(--space-3);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.1);
  color: var(--text-white);
  font-size: var(--text-base);
}

.newsletter-input input::placeholder {
  color: #9ca3af;
}

.newsletter-input button {
  padding: var(--space-3);
  background: var(--primary-color);
  border: none;
  border-radius: var(--radius-lg);
  color: var(--text-white);
  cursor: pointer;
  transition: background var(--transition-normal);
}

.newsletter-input button:hover {
  background: var(--primary-dark);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: var(--space-8);
  text-align: center;
}

.footer-copyright {
  color: #9ca3af;
}

/* ===== FLOATING ELEMENTS ===== */
.whatsapp-float {
  position: fixed;
  bottom: 30px;
  right: 30px;
  z-index: var(--z-fixed);
}

.whatsapp-btn {
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, #25d366, #128c7e);
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-white);
  font-size: var(--text-2xl);
  text-decoration: none;
  box-shadow: var(--shadow-lg);
  transition: all var(--transition-normal);
  animation: pulse 2s infinite;
}

.whatsapp-btn:hover {
  transform: scale(1.1);
  box-shadow: var(--shadow-2xl);
}

@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7); }
  70% { box-shadow: 0 0 0 10px rgba(37, 211, 102, 0); }
  100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
}

.back-to-top {
  position: fixed;
  bottom: 30px;
  left: 30px;
  width: 50px;
  height: 50px;
  background: var(--primary-color);
  border: none;
  border-radius: var(--radius-full);
  color: var(--text-white);
  font-size: var(--text-lg);
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition-normal);
  z-index: var(--z-fixed);
}

.back-to-top.show {
  opacity: 1;
  visibility: visible;
}

.back-to-top:hover {
  background: var(--primary-dark);
  transform: translateY(-3px);
}

/* ===== MODAL ===== */
.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  z-index: var(--z-modal);
  backdrop-filter: blur(5px);
}

.modal.active {
  display: flex;
  align-items: center;
  justify-content: center;
  animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}
.modal-content {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: var(--bg-primary);
  border-radius: var(--radius-2xl);
  box-shadow: var(--shadow-2xl);
  max-width: 500px;
  width: 90%;
  max-height: 90vh;
  overflow-y: auto;
}
@keyframes slideIn {
  from { transform: translateY(-50px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-6);
  border-bottom: 1px solid var(--bg-secondary);
}

.modal-header h3 {
  font-size: var(--text-xl);
  font-weight: 600;
  color: var(--text-primary);
}

.modal-close {
  width: 40px;
  height: 40px;
  background: none;
  border: none;
  border-radius: var(--radius-lg);
  color: var(--text-secondary);
  font-size: var(--text-lg);
  cursor: pointer;
  transition: all var(--transition-normal);
}

.modal-close:hover {
  background: var(--bg-secondary);
  color: var(--text-primary);
}

.live-stream-modal {
  width: 900px;
  max-width: 90vw;
}
.modal-body {
  padding: var(--space-6);
}

.stream-container {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: var(--space-6);
}

.stream-placeholder {
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  border-radius: var(--radius-xl);
  padding: var(--space-8);
  text-align: center;
  border: 2px dashed var(--primary-color);
}

.stream-icon {
  width: 100px;
  height: 100px;
  background: var(--primary-color);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--text-4xl);
  color: var(--text-white);
  margin: 0 auto var(--space-4);
  animation: pulse 2s infinite;
}

.stream-placeholder h4 {
  font-size: var(--text-2xl);
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: var(--space-4);
}

.stream-placeholder p {
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: var(--space-6);
}

.stream-info {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  margin-bottom: var(--space-6);
}

.info-item {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-3);
  background: var(--bg-primary);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}

.info-item i {
  color: var(--primary-color);
  font-size: var(--text-lg);
}

.stream-actions {
  display: flex;
  gap: var(--space-4);
  justify-content: center;
}

.chat-section {
  background: var(--bg-secondary);
  border-radius: var(--radius-xl);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  height: 400px;
}

.chat-header {
  background: var(--primary-color);
  color: var(--text-white);
  padding: var(--space-4);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.chat-header h4 {
  font-size: var(--text-lg);
  font-weight: 600;
  margin: 0;
}

.online-count {
  background: var(--secondary-color);
  padding: var(--space-1) var(--space-3);
  border-radius: var(--radius-full);
  font-size: var(--text-sm);
  font-weight: 600;
}

.chat-messages {
  flex: 1;
  padding: var(--space-4);
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.message {
  background: var(--bg-primary);
  padding: var(--space-3);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}

.message.admin {
  background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
  color: var(--text-white);
}

.message .username {
  font-weight: 600;
  font-size: var(--text-sm);
  display: block;
  margin-bottom: var(--space-1);
}

.message.admin .username {
  color: var(--secondary-color);
}

.message .text {
  font-size: var(--text-sm);
  line-height: 1.4;
}

.chat-input {
  display: flex;
  padding: var(--space-4);
  gap: var(--space-2);
  background: var(--bg-primary);
}

.chat-input input {
  flex: 1;
  padding: var(--space-3);
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: var(--radius-lg);
  font-size: var(--text-sm);
  outline: none;
  transition: border-color var(--transition-normal);
}

.chat-input input:focus {
  border-color: var(--primary-color);
}

.chat-input button {
  background: var(--primary-color);
  color: var(--text-white);
  border: none;
  padding: var(--space-3);
  border-radius: var(--radius-lg);
  cursor: pointer;
  transition: all var(--transition-normal);
}

.chat-input button:hover {
  background: var(--primary-dark);
  transform: scale(1.05);
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 768px) {
  .hero-title {
    font-size: var(--text-4xl);
  }
  
  .hero-buttons {
    flex-direction: column;
    align-items: center;
  }
  
  .hero-stats {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .services-grid,
  .universities-grid,
  .requirements-grid {
    grid-template-columns: 1fr;
  }
  
  .stream-container {
    grid-template-columns: 1fr;
  }
  
  .chat-section {
    height: 300px;
  }
  
  .cost-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}


.modal-form .form-group {
  margin-bottom: var(--space-4);
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 1024px) {
  .container {
    padding: 0 var(--space-6);
  }
  
  .hero-title {
    font-size: var(--text-5xl);
  }
  
  .section-title {
    font-size: var(--text-3xl);
  }
  
  .about-content,
  .contact-content {
    grid-template-columns: 1fr;
    gap: var(--space-8);
  }
}

/* Extra Small Devices */
@media (max-width: 360px) {
    .navbar {
        padding: var(--space-1) var(--space-2);
    }
    
    .logo img {
        height: 30px;
    }
    
    .nav-actions {
        gap: var(--space-1);
    }
}

@media (max-width: 768px) {

  .nav-actions {
    gap: var(--space-2);
  }
  
  .hero-title {
    font-size: var(--text-4xl);
  }
  
  .hero-buttons {
    flex-direction: column;
    align-items: center;
  }
  
  .hero-stats {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .services-grid,
  .universities-grid {
    grid-template-columns: 1fr;
  }
  
  .about-cta {
    flex-direction: column;
  }
  
  .footer-content {
    grid-template-columns: 1fr;
    text-align: center;
  }
  
  .whatsapp-float {
    bottom: 20px;
    right: 20px;
  }
  
  .whatsapp-btn {
    width: 50px;
    height: 50px;
    font-size: var(--text-xl);
  }
}



/* Live Stream Modal Specific Styles */
.live-stream-modal {
    width: 90vw;
    max-width: 900px;
}

.stream-container {
    display: grid;
    grid-template-columns: 1.5fr 1.5fr; /* ط */
    gap: var(--space-5);
}

.stream-placeholder {
    background: var(--bg-secondary);
    border-radius: var(--radius-xl);
    padding: var(--space-6);
    text-align: center;
}

.stream-icon {
    width: 70px;
    height: 70px;
    background: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: var(--text-2xl);
    color: var(--text-white);
    margin: 0 auto var(--space-3);
}

.stream-placeholder h4 {
    font-size: var(--text-lg);
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: var(--space-2);
}

.stream-placeholder p {
    color: var(--text-secondary);
    margin-bottom: var(--space-5);
}

.stream-info {
    display: flex;
    flex-direction: column;
    gap: var(--space-2);
    margin-bottom: var(--space-5);
}

.info-item {
    display: flex;
    align-items: center;
    gap: var(--space-1);
    color: var(--text-secondary);
}

.stream-actions {
    display: flex;
    gap: var(--space-2);
    justify-content: center;
    flex-wrap: wrap;
}

.chat-section {
    background: var(--bg-primary);
    border-radius: var(--radius-xl);
    overflow: hidden;
    border: 1px solid rgba(0, 0, 0, 0.08);
}

.chat-header {
    background: var(--primary-color);
    color: var(--text-white);
    padding: var(--space-3);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.chat-header h4 {
    font-size: var(--text-base);
    font-weight: 600;
}

.online-count {
    font-size: var(--text-xs);
    opacity: 0.9;
}

.chat-messages {
    height: 350px; /* ط */
    overflow-y: auto;
    padding: var(--space-3);
    display: flex;
    flex-direction: column;
    gap: var(--space-2);
}

.message {
    display: flex;
    flex-direction: column;
    gap: var(--space-1);
}

.message.admin {
    background: rgba(69, 49, 171, 0.08);
    padding: var(--space-1);
    border-radius: var(--radius-sm);
}

.username {
    font-weight: 600;
    font-size: var(--text-xs);
    color: var(--primary-color);
}

.message .text {
    font-size: var(--text-xs);
    color: var(--text-secondary);
}

.chat-input {
    display: flex;
    padding: var(--space-3);
    border-top: 1px solid rgba(0, 0, 0, 0.08);
}

.chat-input input {
    flex: 1;
    padding: var(--space-1) var(--space-2);
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: var(--radius-md);
    font-size: var(--text-xs);
}

.chat-input button {
    background: var(--primary-color);
    color: var(--text-white);
    border: none;
    padding: var(--space-1) var(--space-2);
    border-radius: var(--radius-md);
    margin-left: var(--space-1);
    cursor: pointer;
    transition: background var(--transition-normal);
}

.chat-input button:hover {
    background: var(--primary-dark);
}



/* ===== ANIMATIONS ===== */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInLeft {
  from {
    opacity: 0;
    transform: translateX(-30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes fadeInRight {
  from {
    opacity: 0;
    transform: translateX(30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* ===== SCROLL ANIMATIONS ===== */
[data-aos] {
  opacity: 0;
  transition: opacity 0.6s ease-in-out;
}

[data-aos].aos-animate {
  opacity: 1;
}

/* ===== PRINT STYLES ===== */
@media print {
  .header,
  .whatsapp-float,
  .back-to-top,
  .modal {
    display: none !important;
  }
  
  body {
    font-size: 12pt;
    line-height: 1.4;
  }
  
  .hero {
    min-height: auto;
    padding: 2cm 0;
  }
  
  .section {
    page-break-inside: avoid;
  }
}



/* Dropdown Menu Styles */


.dropdown-toggle {
    display: flex;
    align-items: center;
    gap: 5px;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    right: 0;
    background-color: var(--bg-primary);
    box-shadow: var(--shadow-md);
    border-radius: var(--radius-md);
    list-style: none;
    min-width: 180px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: opacity 0.3s ease, transform 0.3s ease;
    z-index: var(--z-dropdown);
}


.dropdown-item {
    display: block;
    padding: var(--space-3) var(--space-4);
    color: var(--text-primary);
    text-decoration: none;
    transition: background-color 0.2s ease;
}

.dropdown-item:hover {
    background-color: var(--bg-secondary);
}

/* ✅ توحيد حجم زر تسجيل الدخول + زر البث المباشر */
.nav-actions{
  display: flex;
  align-items: center;
  gap: 12px;
}

#authBtn,
#liveStreamBtn{
  height: 35px;              /* نفس الارتفاع */
  min-width: 70px;          /* نفس العرض (عدّل الرقم إذا بدك) */
  padding: 0 18px;           /* نفس الحشوة */
  border-radius: 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;                 /* مسافة بين الأيقونة والنص */
  line-height: 1;
  white-space: nowrap;
}

/* لو أي زر عنده width مختلف من قبل */
#authBtn{ width: auto; }
#liveStreamBtn{ width: auto; }

/* Adjustments for smaller screens */
@media (max-width: 768px) {

    .dropdown-menu {
        position: static;
        box-shadow: none;
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
        background-color: transparent;
        padding-right: var(--space-8);
    }

    .dropdown-item {
        padding: var(--space-2) var(--space-4);
    }
}

/* ===== STUDY INFO SECTION ===== */
.study-info {
  padding: var(--space-20) 0;
  background: var(--bg-primary);
}

.info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--space-8);
  margin-bottom: var(--space-16);
}

.info-card {
  background: var(--bg-primary);
  border-radius: var(--radius-2xl);
  padding: var(--space-8);
  box-shadow: var(--shadow-lg);
  transition: all var(--transition-normal);
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(0, 0, 0, 0.05);
}

.info-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
}

.info-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-2xl);
  border-color: var(--primary-color);
}

.info-icon {
  width: 80px;
  height: 80px;
  background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
  border-radius: var(--radius-2xl);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--text-3xl);
  color: var(--text-white);
  margin-bottom: var(--space-6);
  transition: transform var(--transition-normal);
}

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

.info-title {
  font-size: var(--text-2xl);
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: var(--space-4);
}

.info-description {
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: var(--space-6);
}

/* ===== STUDY ADVANTAGES ARTICLE STYLES ===== */
.study-advantages-article {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 60px 0;
    margin: 40px 0;
    border-radius: 20px;
    position: relative;
    overflow: hidden;
}

.study-advantages-article::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #007bff, #28a745, #ffc107, #dc3545);
}

.article-content {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 20px;
    background: white;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    padding: 40px;
    position: relative;
}

.article-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #2c3e50;
    text-align: center;
    margin-bottom: 40px;
    position: relative;
    padding-bottom: 20px;
}

.article-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, #007bff, #28a745);
    border-radius: 2px;
}

.article-section {
    margin-bottom: 35px;
    padding: 25px;
    border-radius: 12px;
    background: #f8f9fa;
    border-left: 5px solid #007bff;
    transition: all 0.3s ease;
}

.article-section:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,123,255,0.1);
}

.section-heading {
    font-size: 1.4rem;
    font-weight: 600;
    color: #007bff;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
}

.section-heading::before {
    content: '●';
    color: #28a745;
    font-size: 1.2rem;
    margin-left: 10px;
}

.article-paragraph {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #495057;
    text-align: justify;
    margin: 0;
}

.article-paragraph::first-letter {
    font-size: 1.5em;
    font-weight: bold;
    color: #007bff;
    float: right;
    margin-left: 8px;
    margin-top: 3px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .study-advantages-article {
        padding: 40px 0;
        margin: 20px 0;
        border-radius: 15px;
    }
    
    .article-content {
        padding: 25px 20px;
        margin: 0 15px;
    }
    
    .article-title {
        font-size: 2rem;
        margin-bottom: 30px;
    }
    
    .article-section {
        padding: 20px 15px;
        margin-bottom: 25px;
    }
    
    .section-heading {
        font-size: 1.2rem;
    }
    
    .article-paragraph {
        font-size: 1rem;
        line-height: 1.7;
    }
}



/* ===== UNIVERSITY PROGRAMS STYLES ===== */
.university-programs {
    margin: 1rem 0;
    padding: 1rem;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 12px;
    border: 1px solid #dee2e6;
}

.program-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 0;
    border-bottom: 1px solid #e9ecef;
    transition: all 0.3s ease;
}

.program-item:last-child {
    border-bottom: none;
}

.program-item:hover {
    background: rgba(255, 255, 255, 0.5);
    border-radius: 8px;
    padding: 0.75rem 0.5rem;
}

.program-name {
    font-weight: 600;
    color: #2c3e50;
    font-size: 0.9rem;
    flex: 1;
}

.program-price {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.old-price {
    color: #dc3545;
    text-decoration: line-through;
    font-size: 0.85rem;
    opacity: 0.7;
    font-weight: 500;
}

.new-price {
    color: #28a745;
    font-weight: 700;
    font-size: 1rem;
    background: linear-gradient(135deg, #28a745, #20c997);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    position: relative;
}

.new-price::before {
    content: "🔥";
    position: absolute;
    left: -1.5rem;
    top: 50%;
    transform: translateY(-50%);
    font-size: 0.8rem;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; transform: translateY(-50%) scale(1); }
    50% { opacity: 0.7; transform: translateY(-50%) scale(1.1); }
}

/* Enhanced University Card Styles */
.university-card {
    background: linear-gradient(145deg, #ffffff 0%, #f8f9fa 100%);
    border-radius: 20px;
    box-shadow: 
        0 10px 30px rgba(0, 0, 0, 0.1),
        0 1px 8px rgba(0, 0, 0, 0.06);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
}

.university-card:hover {
    transform: translateY(-15px) scale(1.02);
    box-shadow: 
        0 25px 50px rgba(0, 0, 0, 0.15),
        0 10px 20px rgba(0, 0, 0, 0.1);
    border-color: rgba(74, 144, 226, 0.3);
}

.university-content {
    padding: 1.5rem;
}

.university-name {
    color: #2c3e50;
    margin-bottom: 0.75rem;
    font-size: 1.25rem;
    font-weight: 700;
    background: linear-gradient(135deg, #2c3e50, #3498db);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.university-description {
    color: #6c757d;
    font-size: 0.9rem;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.university-features {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 1rem;
}

.university-features .feature {
    background: linear-gradient(135deg, #e3f2fd 0%, #bbdefb 100%);
    color: #1976d2;
    padding: 0.4rem 0.8rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    border: 1px solid rgba(25, 118, 210, 0.2);
    transition: all 0.3s ease;
}

.university-features .feature:hover {
    background: linear-gradient(135deg, #1976d2 0%, #1565c0 100%);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(25, 118, 210, 0.3);
}

/* Responsive Design */

/* Special Offer Badge */
.university-card::before {
    content: "عرض خاص";
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: linear-gradient(135deg, #ff6b6b, #ee5a24);
    color: white;
    padding: 0.3rem 0.8rem;
    border-radius: 15px;
    font-size: 0.7rem;
    font-weight: 700;
    z-index: 2;
    box-shadow: 0 2px 8px rgba(255, 107, 107, 0.3);
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(-5px); }
    60% { transform: translateY(-3px); }
}

/* Enhanced Color Palette for Better Eye Comfort */
:root {
    --primary-color: #4a90e2;
    --secondary-color: #7b68ee;
    --text-primary: #2c3e50;
    --text-secondary: #6c757d;
    --background-light: #f8f9fa;
    --background-white: #ffffff;
    --border-light: #e9ecef;
    --shadow-light: rgba(0, 0, 0, 0.1);
    --gradient-primary: linear-gradient(135deg, #4a90e2, #7b68ee);
    --gradient-success: linear-gradient(135deg, #50c878, #28a745);
    --gradient-background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

/* Improved Typography for Better Readability */
body {
    color: var(--text-primary);
    line-height: 1.7;
}

.section-title {
    color: var(--text-primary);
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-description {
    color: var(--text-secondary);
    font-size: 1.1rem;
    line-height: 1.8;
}
 .loading-title {
    font-size: var(--text-3xl);
  }

  .loading-subtitle {
    font-size: var(--text-base);
  }

  .loading-features {
    flex-direction: row;
    gap: var(--space-4);
  }


/* ===== RESPONSIVE NAVIGATION ===== */


/* Mobile Navigation Styles */
@media (max-width: 768px) {

  
  /* Dropdown Menu Mobile */
  .dropdown {
    position: relative;
  }
  
  .dropdown-menu {
    position: static;
    background: rgba(0, 0, 0, 0.05);
    border-radius: var(--radius-lg);
    margin-top: var(--space-2);
    padding: var(--space-2);
    box-shadow: none;
    opacity: 0;
    max-height: 0;
    overflow: hidden;
    transition: all 0.3s ease-in-out;
  }
  
  .dropdown:hover .dropdown-menu,
  .dropdown.active .dropdown-menu {
    opacity: 1;
    max-height: 200px;
  }
  
  .dropdown-item {
    display: block;
    padding: var(--space-3);
    color: var(--text-primary);
    text-decoration: none;
    border-radius: var(--radius-md);
    transition: all var(--transition-normal);
    font-size: var(--text-lg);
  }
  
  .dropdown-item:hover {
    background: var(--primary-color);
    color: var(--text-white);
  }
  
  /* CTA Button Mobile */
  .cta-btn {
    bottom: 5px;
    margin-top: var(--space-4);
    padding: var(--space-4) var(--space-8);
    font-size: 10px;
  }
  
  /* Prevent body scroll when menu is open */
  body.nav-open {
    overflow: hidden;
  }
}

/* Tablet Styles */
@media (max-width: 1024px) and (min-width: 769px) {
  .nav-link {
    font-size: var(--text-sm);
  }
  
  .cta-btn {
    padding: var(--space-2) var(--space-4);
    font-size: var(--text-sm);
  }
}



/* ===== RESPONSIVE HERO SECTION ===== */
@media (max-width: 768px) {
  .hero {
    min-height: 80vh;
    padding-top: 80px;
  }
  
  .hero-content {
    padding: var(--space-4);
  }
  
  .hero-title {
    font-size: var(--text-4xl);
  }
  
  .title-sub {
    font-size: var(--text-2xl);
  }
  
  .hero-subtitle {
    font-size: var(--text-xl);
  }
  
  .hero-description {
    font-size: var(--text-base);
  }
  
  .hero-buttons {
    flex-direction: column;
    align-items: center;
    gap: var(--space-3);
  }
  
  .btn {
    width: 100%;
    max-width: 280px;
  }
  
  .hero-stats {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-4);
  }
  
  .stat-number {
    font-size: var(--text-2xl);
  }
}

/* ===== RESPONSIVE SERVICES SECTION ===== */
@media (max-width: 768px) {
  .services {
    padding: var(--space-16) 0;
  }
  
  .services-grid {
    grid-template-columns: 1fr;
    gap: var(--space-6);
  }
  
  .service-card {
    padding: var(--space-6);
  }
  
  .service-icon {
    width: 60px;
    height: 60px;
    font-size: var(--text-2xl);
  }
  
  .service-title {
    font-size: var(--text-xl);
  }
  
  .service-features {
    flex-direction: column;
    gap: var(--space-2);
  }
}
/* =========================================================
   RESPONSIVE — MASTER PACK (Merged Duplicates, No Behavior Change)
   ========================================================= */

/* ===== RESPONSIVE IMAGES ===== */
img {
  display: block;
  max-width: 100%;
  height: auto;
}


/* =========================================================
   2) RESPONSIVE LOADING SCREEN
   ========================================================= */
@media (max-width: 768px) {
  .loading-container {
    max-width: 90%;
    padding: var(--space-6);
  }

  .loading-logo img {
    width: 100px;
    height: 100px;
  }

  .loading-title {
    font-size: var(--text-3xl);
  }

  .loading-subtitle {
    font-size: var(--text-base);
  }

  .loading-features .feature-item {
    min-width: 250px;
    padding: var(--space-3) var(--space-4);
    font-size: var(--text-base);
  }

  .loading-features .feature-item i {
    width: 40px;
    height: 40px;
    font-size: var(--text-xl);
  }
}

/* =========================================================
   3) RESPONSIVE GENERAL UTILITIES (container + headers)
   ========================================================= */
@media (max-width: 768px) {
  .container {
    padding: 0 var(--space-3);
  }

  .section-header {
    margin-bottom: var(--space-12);
  }

  .section-title {
    font-size: var(--text-3xl);
  }

  .section-description {
    font-size: var(--text-base);
  }
}

/* =========================================================
   4) RESPONSIVE TYPOGRAPHY + SPACING VARIABLES
   ========================================================= */
@media (max-width: 768px) {
  :root {
    /* Typography */
    --text-xs: 0.7rem;
    --text-sm: 0.8rem;
    --text-base: 0.9rem;
    --text-lg: 1rem;
    --text-xl: 1.1rem;
    --text-2xl: 1.3rem;
    --text-3xl: 1.6rem;
    --text-4xl: 2rem;
    --text-5xl: 2.5rem;
    --text-6xl: 3rem;

    /* Spacing */
    --space-1: 0.2rem;
    --space-2: 0.4rem;
    --space-3: 0.6rem;
    --space-4: 0.8rem;
    --space-5: 1rem;
    --space-6: 1.2rem;
    --space-8: 1.6rem;
    --space-10: 2rem;
    --space-12: 2.4rem;
    --space-16: 3.2rem;
    --space-20: 4rem;
  }
}

/* =========================================================
   5) RESPONSIVE TABLES
   ========================================================= */
@media (max-width: 768px) {
  table {
    font-size: var(--text-sm);
  }

  .table-responsive {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
}

/* =========================================================
   6) STUDY INFO SECTION (Base)
   ========================================================= */
.study-info {
  padding: var(--space-12) 0;
  background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
}

.study-info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--space-6);
  margin-bottom: var(--space-12);
}

.info-card {
  background: var(--bg-primary);
  padding: var(--space-6);
  border-radius: var(--radius-xl);
  text-align: center;
  box-shadow: var(--shadow-md);
  transition: all var(--transition-normal);
  border: 1px solid rgba(0, 0, 0, 0.05);
}

.info-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

.info-icon {
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto var(--space-4);
  color: var(--text-white);
  font-size: var(--text-xl);
}

.info-title {
  font-size: var(--text-lg);
  font-weight: 600;
  margin-bottom: var(--space-3);
  color: var(--text-primary);
}

.info-description {
  font-size: var(--text-sm);
  color: var(--text-secondary);
  line-height: 1.6;
}

.study-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: var(--space-6);
  background: var(--bg-primary);
  padding: var(--space-8);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
}

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

.stat-number {
  font-size: var(--text-3xl);
  font-weight: 800;
  margin-bottom: var(--space-2);
}

.stat-label {
  font-size: var(--text-sm);
  color: var(--text-secondary);
  font-weight: 500;
}

/* ===== Study Info Responsive ===== */
@media (max-width: 768px) {
  .study-info-grid {
    grid-template-columns: 1fr;
    gap: var(--space-4);
  }

  .study-stats {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-4);
    padding: var(--space-6);
  }

  .info-icon {
    width: 50px;
    height: 50px;
    font-size: var(--text-lg);
  }

  .stat-number {
    font-size: var(--text-2xl);
  }
}

/* =========================================================
   7) REQUIREMENTS AND COSTS SECTIONS (Base)
   ========================================================= */
.requirements-section, .living-costs {
  margin-top: var(--space-12);
  text-align: center;
}

.requirements-section .section-subtitle,
.living-costs .section-subtitle {
  font-size: var(--text-xl);
  font-weight: 600;
  color: var(--primary-color);
  margin-bottom: var(--space-8);
}

.requirements-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: var(--space-6);
  margin-bottom: var(--space-8);
}

.requirement-item {
  background: var(--bg-primary);
  padding: var(--space-6);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  text-align: center;
}

.requirement-item i {
  font-size: var(--text-2xl);
  color: var(--primary-color);
  margin-bottom: var(--space-3);
}

.requirement-item h4 {
  font-size: var(--text-lg);
  font-weight: 600;
  margin-bottom: var(--space-4);
  color: var(--text-primary);
}

.requirement-item ul {
  list-style: none;
  padding: 0;
}

.requirement-item li {
  font-size: var(--text-sm);
  color: var(--text-secondary);
  margin-bottom: var(--space-2);
  padding: var(--space-2);
  background: rgba(37, 99, 235, 0.05);
  border-radius: var(--radius-md);
}

.costs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: var(--space-4);
}

.cost-item {
  background: var(--bg-primary);
  padding: var(--space-4);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-2);
  transition: all var(--transition-normal);
}

.cost-item:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.cost-item i {
  font-size: var(--text-xl);
  color: var(--primary-color);
}

.cost-label {
  font-size: var(--text-sm);
  color: var(--text-secondary);
  font-weight: 500;
}

.cost-value {
  font-size: var(--text-lg);
  color: var(--primary-color);
  font-weight: 700;
}

.cost-item:last-child {
  background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
  color: var(--text-white);
}

.cost-item:last-child .cost-label,
.cost-item:last-child .cost-value,
.cost-item:last-child i {
  color: var(--text-white);
}

/* =========================================================
   8) Responsive (Article + New Sections) — MERGED (was duplicated)
   ========================================================= */
@media (max-width: 768px) {

  /* Article */
  .study-advantages-article {
    padding: var(--space-8) 0;
    margin: var(--space-4) 0;
    border-radius: var(--radius-lg);
  }

  .article-content {
    padding: var(--space-5) var(--space-3);
    margin: 0 var(--space-2);
  }

  .article-title {
    font-size: clamp(1.5rem, 4vw, 1.8rem);
    margin-bottom: var(--space-6);
  }

  .article-section {
    padding: var(--space-4) var(--space-3);
    margin-bottom: var(--space-5);
  }

  .section-heading { font-size: var(--text-base); }

  .article-paragraph {
    font-size: var(--text-xs);
    line-height: 1.6;
  }

  /* Hero + Grids + Layout (كان مكرر مرتين) */
  .hero-title { font-size: var(--text-3xl); }

  .hero-buttons {
    flex-direction: column;
    align-items: center;
  }

  .hero-stats {
    grid-template-columns: repeat(2, 1fr);
  }

  .services-grid,
  .universities-grid,
  .requirements-grid {
    grid-template-columns: 1fr;
  }

  .stream-container {
    grid-template-columns: 1fr;
  }

  .chat-section {
    height: 250px;
  }

  .cost-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .about-content,
  .contact-content {
    grid-template-columns: 1fr;
    gap: var(--space-8);
  }

  .footer-content {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .whatsapp-float {
    bottom: var(--space-3);
    right: var(--space-3);
  }

  .whatsapp-btn {
    width: 45px;
    height: 45px;
    font-size: var(--text-lg);
  }

  .back-to-top {
    bottom: var(--space-3);
    left: var(--space-3);
    width: 35px;
    height: 35px;
    font-size: var(--text-sm);
  }
}

/* =========================================================
   9) FAQ SECTION (Base + Responsive)
   ========================================================= */
.faq {
  padding: var(--space-20) 0;
  background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
}

.faq-container {
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  background: var(--bg-primary);
  border-radius: var(--radius-xl);
  margin-bottom: var(--space-4);
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(0, 0, 0, 0.05);
  overflow: hidden;
  transition: all var(--transition-normal);
}

.faq-item:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.faq-question {
  padding: var(--space-6);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--bg-primary);
  transition: all var(--transition-normal);
  position: relative;
}

.faq-question::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: var(--primary-color);
  transform: scaleY(0);
  transition: transform var(--transition-normal);
}

.faq-item:hover .faq-question::before,
.faq-item.active .faq-question::before {
  transform: scaleY(1);
}

.faq-question h3 {
  font-size: var(--text-lg);
  font-weight: 600;
  color: var(--text-primary);
  margin: 0;
  padding-right: var(--space-4);
  line-height: 1.4;
}

.faq-question i {
  font-size: var(--text-lg);
  color: var(--primary-color);
  transition: transform var(--transition-normal);
  flex-shrink: 0;
}

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

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: all var(--transition-normal);
  background: rgba(37, 99, 235, 0.02);
}

.faq-item.active .faq-answer {
  max-height: 200px;
  padding: 0 var(--space-6) var(--space-6);
}

.faq-answer p {
  font-size: var(--text-base);
  color: var(--text-secondary);
  line-height: 1.6;
  margin: 0;
  padding-top: var(--space-4);
  border-top: 1px solid rgba(0, 0, 0, 0.05);
}

.faq-cta {
  text-align: center;
  margin-top: var(--space-12);
  padding: var(--space-8);
  background: var(--bg-primary);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-md);
}

.faq-cta p {
  font-size: var(--text-lg);
  color: var(--text-secondary);
  margin-bottom: var(--space-4);
  font-weight: 500;
}

@media (max-width: 768px) {
  .faq-question { padding: var(--space-4); }
  .faq-question h3 { font-size: var(--text-base); }
  .faq-answer p { font-size: var(--text-sm); }
  .faq-item.active .faq-answer { padding: 0 var(--space-4) var(--space-4); }
  .faq-cta { padding: var(--space-6); }
}

/* =========================================================
   10) NAVIGATION — Responsive (Merged)
   ========================================================= */
@media (max-width: 1024px) {
  .navbar { padding: var(--space-1) var(--space-2); }
  .nav-menu { gap: var(--space-2); }
  .nav-actions { gap: var(--space-1); }

  .live-stream-btn,
  .cta-btn {
    padding: var(--space-1) var(--space-2);
    font-size: var(--text-xs);
  }

  .btn-text { display: none; }
}

@media (max-width: 768px) {
  .header { padding: 0; }

  .navbar {
    padding: var(--space-1) var(--space-2);
    position: relative;
  }

  .hamburger { display: flex; z-index: 1001; }

  .nav-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: min(250px, 70vw);
    height: 100vh;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(15px);
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
    padding: 70px 15px 15px;
    transition: right var(--transition-normal);
    box-shadow: -3px 0 15px rgba(0, 0, 0, 0.08);
    gap: var(--space-1);
    overflow-y: auto;
  }

  .nav-menu.active { right: 0; }

  .nav-item { width: 100%; }

  .nav-link {
    display: block;
    width: 100%;
    padding: var(--space-2);
    border-radius: var(--radius-md);
    font-size: var(--text-sm);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  }

  .nav-actions { gap: var(--space-1); }

  .live-stream-btn,
  .cta-btn {
    padding: var(--space-1);
    min-width: 35px;
    justify-content: center;
  }

  .btn-text { display: none; }
}

/* ===== NAV AUTH (Supabase) ===== */
.nav-welcome{
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-2) var(--space-4);
  border-radius: var(--radius-full);
  background: rgba(69, 49, 171, 0.08);
  color: var(--primary-color);
  font-weight: 700;
  white-space: nowrap;
  max-width: 260px;
  overflow: hidden;
  text-overflow: ellipsis;
}

.cta-btn.nav-auth{
  background: linear-gradient(135deg, var(--primary-color), #6d28d9);
  box-shadow: 0 4px 15px rgba(69, 49, 171, 0.25);
}
.cta-btn.nav-auth:hover{
  box-shadow: 0 6px 25px rgba(69, 49, 171, 0.35);
}

.cta-btn.nav-dashboard{
  background: linear-gradient(135deg, #111827, #334155);
  box-shadow: 0 4px 15px rgba(17, 24, 39, 0.25);
}
.cta-btn.nav-dashboard:hover{
  box-shadow: 0 6px 25px rgba(17, 24, 39, 0.35);
}

@media (max-width: 1024px){
  .nav-welcome{
    font-size: var(--text-xs);
    max-width: 180px;
    padding: var(--space-1) var(--space-2);
  }
}

@media (max-width: 768px){
  .nav-welcome{ display: none !important; }
}

/* =========================================================
   11) RESPONSIVE FIX PACK (kept same rules, just organized)
   ========================================================= */
html, body{
  overflow-x: hidden;
}

@media (max-width: 1024px){
  .container{
    padding-left: 14px !important;
    padding-right: 14px !important;
  }
}

@media (max-width: 768px){
  .header{
    backdrop-filter: blur(14px) !important;
    -webkit-backdrop-filter: blur(14px) !important;
  }

  .navbar{
    padding: 6px 10px !important;
  }

  .logo img{
    height: 34px !important;
  }

  .nav-actions{
    gap: 8px !important;
  }

  .cta-btn,
  .live-stream-btn{
    padding: 8px 12px !important;
    font-size: 12px !important;
    min-width: unset !important;
  }

  .nav-menu{
    width: min(300px, 82vw) !important;
    padding: 82px 14px 14px !important;
  }

  .nav-link{
    padding: 10px 12px !important;
    font-size: 13px !important;
  }

  .nav-dashboard-dropdown{ width: 100%; }

  .nav-dashboard-dropdown .dropdown-toggle{
    width: 100%;
    justify-content: space-between;
  }

  .nav-dashboard-dropdown .dropdown-menu{
    position: static !important;
    width: 100% !important;
    background: rgba(0,0,0,0.05) !important;
    box-shadow: none !important;
    border-radius: 14px !important;
    margin-top: 8px !important;
    transform: none !important;
    max-height: 0 !important;
    overflow: hidden !important;
    opacity: 0 !important;
    visibility: hidden !important;
    transition: max-height .25s ease, opacity .2s ease !important;
  }

  .nav-dashboard-dropdown.dropdown.active .dropdown-menu{
    max-height: 260px !important;
    opacity: 1 !important;
    visibility: visible !important;
  }

  .nav-dashboard-dropdown .dropdown-item{
    padding: 10px 12px !important;
    font-size: 13px !important;
  }

}

@media (max-width: 480px){
  .hero-title{ font-size: 1.9rem !important; }
  .hero-stats{ gap: 10px !important; }
  .stat-number{ font-size: 1.25rem !important; }

  .whatsapp-float{
    right: 16px !important;
    bottom: 16px !important;
  }

  .back-to-top{
    left: 16px !important;
    bottom: 16px !important;
    width: 42px !important;
    height: 42px !important;
  }
}

@media (max-width: 360px){
  .cta-btn,
  .live-stream-btn{
    padding: 7px 10px !important;
    font-size: 11px !important;
  }

  .nav-menu{
    width: 86vw !important;
  }
}
