/* ==========================================
   SLS School Premium Theme
   Custom Design System & Visual Refinements
   ========================================== */

/* 1. Global Font and Variable Overrides */
@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&family=Tajawal:wght@300;400;500;700;800;900&display=swap');

:root {
  /* Premium Palette */
  --main-color: #1e3a8a; /* Deep Royal Navy Blue */
  --main-color-hover: #1e293b;
  --accent-color: #d97706; /* Golden Amber */
  --accent-color-hover: #b45309;
  --accent-light: #fef3c7;
  
  --body-bg: #f8fafc; /* Sleek light grey */
  --navbar-bg: rgba(255, 255, 255, 0.85);
  
  --icon-active: #1e3a8a;
  --icon-idle: #93c5fd;
  --p-color: #334155; /* Slate 700 */
  --subp-color: #64748b; /* Slate 500 */
  --link-color: #1e3a8a;
  --a-light: #ffffff;
  
  --shadow-color: rgba(15, 23, 42, 0.06);
  --shadow-hover: rgba(15, 23, 42, 0.12);
  --border-color: #e2e8f0; /* Slate 200 */
  --sub-light: #ffffff;
  --border-input: #cbd5e1; /* Slate 300 */
  
  /* Glassmorphism Defaults */
  --glass-bg: rgba(255, 255, 255, 0.7);
  --glass-border: rgba(255, 255, 255, 0.4);
  --glass-blur: blur(12px);
}

.dark {
  --main-color: #3b82f6; /* Modern Blue */
  --main-color-hover: #60a5fa;
  --accent-color: #fbbf24; /* Golden Amber Dark */
  --accent-color-hover: #f59e0b;
  --accent-light: #451a03;
  
  --body-bg: #0f172a; /* Slate 900 */
  --navbar-bg: rgba(15, 23, 42, 0.85);
  
  --icon-active: #60a5fa;
  --icon-idle: #475569;
  --p-color: #cbd5e1; /* Slate 300 */
  --subp-color: #94a3b8; /* Slate 400 */
  --link-color: #60a5fa;
  --a-light: #ffffff;
  
  --shadow-color: rgba(0, 0, 0, 0.3);
  --shadow-hover: rgba(0, 0, 0, 0.5);
  --border-color: #1e293b; /* Slate 800 */
  --sub-light: #1e293b;
  --border-input: #334155;
  
  /* Glassmorphism Dark */
  --glass-bg: rgba(15, 23, 42, 0.6);
  --glass-border: rgba(255, 255, 255, 0.08);
}

/* 2. Typography Overrides */
html[dir="rtl"], html[dir="rtl"] * {
  font-family: 'Tajawal', 'Cairo', sans-serif !important;
}

html[dir="ltr"], html[dir="ltr"] * {
  font-family: 'Plus Jakarta Sans', sans-serif !important;
}

body {
  background-color: var(--body-bg);
  color: var(--p-color);
  transition: background-color 0.3s ease, color 0.3s ease;
  overflow-x: hidden;
}

/* 3. Common Premium Components & Animations */

/* Glass Card */
.glass-card {
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-border);
  box-shadow: 0 10px 30px -5px var(--shadow-color);
  border-radius: 16px;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.glass-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 40px -5px var(--shadow-hover);
  border-color: rgba(255, 255, 255, 0.25);
}

/* Modern Buttons */
.btn-hero, .btn-fill {
  background: linear-gradient(135deg, var(--main-color), #2563eb) !important;
  color: #fff !important;
  font-weight: 600 !important;
  padding: 12px 28px !important;
  border-radius: 50px !important;
  border: none !important;
  box-shadow: 0 4px 15px rgba(37, 99, 235, 0.25) !important;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1) !important;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none !important;
  cursor: pointer;
}

.btn-hero:hover, .btn-fill:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(37, 99, 235, 0.4) !important;
  background: linear-gradient(135deg, #2563eb, var(--main-color)) !important;
}

/* Secondary Golden Accent Button */
.btn-accent {
  background: linear-gradient(135deg, var(--accent-color), #f59e0b) !important;
  color: #fff !important;
  font-weight: 600 !important;
  padding: 12px 28px !important;
  border-radius: 50px !important;
  border: none !important;
  box-shadow: 0 4px 15px rgba(245, 158, 11, 0.25) !important;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1) !important;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none !important;
}

.btn-accent:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(245, 158, 11, 0.4) !important;
  background: linear-gradient(135deg, #f59e0b, var(--accent-color)) !important;
}

/* Header overlays & navigation */
.down-nav-container {
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  background: var(--navbar-bg) !important;
  border-bottom: 1px solid var(--border-color);
}

/* Swiper Slider Stylings with High Specificity */
.home-header {
  position: relative !important;
  overflow: hidden !important;
  height: 80vh !important;
  min-height: 600px !important;
  background-color: #0f172a !important;
}

.home-header .swiper,
.home-header .swiper-container,
.home-header .swiper-wrapper,
.home-header .swiper-slide {
  height: 100% !important;
  width: 100% !important;
  background-size: cover !important;
  background-position: center center !important;
  background-repeat: no-repeat !important;
}

.home-header .swiper-slide::before {
  content: '' !important;
  position: absolute !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  background: linear-gradient(to right, rgba(15, 23, 42, 0.8) 25%, rgba(15, 23, 42, 0.35) 100%) !important;
  z-index: 1 !important;
}

html[dir="rtl"] .home-header .swiper-slide::before {
  background: linear-gradient(to left, rgba(15, 23, 42, 0.8) 25%, rgba(15, 23, 42, 0.35) 100%) !important;
}

.home-header .swiper-slide .swiper-slider-content {
  z-index: 2 !important;
  position: relative !important;
  height: 100% !important;
  width: 100% !important;
  display: flex !important;
  align-items: center !important;
  justify-content: flex-start !important;
  background: none !important; /* Remove old blue gradient */
}

.home-header .swiper-slider-content-inner {
  max-width: 800px !important;
  padding: 0 40px !important;
  color: #ffffff !important;
  z-index: 3 !important;
  position: relative !important;
  animation: floatUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) both !important;
}

html[dir="rtl"] .home-header .swiper-slider-content-inner {
  text-align: right !important;
  margin-right: 12% !important;
  margin-left: auto !important;
}

html[dir="ltr"] .home-header .swiper-slider-content-inner {
  text-align: left !important;
  margin-left: 12% !important;
  margin-right: auto !important;
}

.home-header .swiper-slider-content-inner h1.hero-title {
  font-size: 3.5rem !important;
  font-weight: 850 !important;
  margin-bottom: 24px !important;
  text-shadow: 0 4px 15px rgba(0, 0, 0, 0.5) !important;
  line-height: 1.2 !important;
  color: #ffffff !important;
  letter-spacing: -0.5px !important;
}

@media (max-width: 767.98px) {
  .home-header .swiper-slider-content-inner h1.hero-title {
    font-size: 2.2rem !important;
    line-height: 1.3 !important;
  }
}

.home-header .swiper-slider-content-inner p.hero-desc {
  font-size: 1.35rem !important;
  font-weight: 400 !important;
  margin-bottom: 35px !important;
  opacity: 0.95 !important;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.4) !important;
  color: #cbd5e1 !important; /* slate-300 */
  line-height: 1.7 !important;
}

@media (max-width: 767.98px) {
  .home-header .swiper-slider-content-inner p.hero-desc {
    font-size: 1.05rem !important;
    margin-bottom: 25px !important;
    line-height: 1.6 !important;
  }
}

/* Swiper Navigation & Pagination styles */
.home-header .swiper-button-next,
.home-header .swiper-button-prev {
  color: #ffffff !important;
  background: rgba(255, 255, 255, 0.1);
  width: 50px;
  height: 50px;
  border-radius: 50%;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.25);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 10;
}

.home-header .swiper-button-next::after,
.home-header .swiper-button-prev::after {
  font-size: 18px !important;
  font-weight: bold;
}

.home-header .swiper-button-next:hover,
.home-header .swiper-button-prev:hover {
  background: var(--accent-color);
  border-color: var(--accent-color);
  transform: scale(1.1);
}

.home-header .swiper-pagination-bullet {
  background: #ffffff !important;
  opacity: 0.4;
  width: 12px;
  height: 12px;
  margin: 0 6px !important;
  transition: all 0.3s ease;
}

.home-header .swiper-pagination-bullet-active {
  opacity: 1;
  background: var(--accent-color) !important;
  width: 30px;
  border-radius: 6px;
}

@keyframes floatUp {
  from {
    opacity: 0;
    transform: translateY(40px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Common Section Header (used across multiple sections) */
.school-section-header-center {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 50px auto;
}

.school-section-header-center .pretitle {
  color: var(--accent-color);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  font-size: 0.9rem;
  margin-bottom: 10px;
  display: inline-block;
  padding: 4px 12px;
  background-color: var(--accent-light);
  border-radius: 4px;
}

.school-section-header-center h2 {
  font-size: 2.25rem;
  font-weight: 800;
  color: var(--main-color);
  margin-bottom: 15px;
}

/* =============================================
   FEATURES SHOWCASE – Bento Grid (Rebuilt)
   ============================================= */
.features-showcase {
  padding: 100px 0 110px;
  position: relative;
  overflow: hidden;
  background: var(--body-bg);
}

/* Subtle background decoration */
.features-showcase::before {
  content: '';
  position: absolute;
  top: -200px;
  right: -200px;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(30, 58, 138, 0.04) 0%, transparent 70%);
  z-index: 0;
  pointer-events: none;
}

.features-showcase::after {
  content: '';
  position: absolute;
  bottom: -150px;
  left: -150px;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(217, 119, 6, 0.04) 0%, transparent 70%);
  z-index: 0;
  pointer-events: none;
}

.features-showcase .container {
  position: relative;
  z-index: 1;
}

/* --- Header --- */
.features-header {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 60px auto;
}

.features-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, rgba(30, 58, 138, 0.08), rgba(37, 99, 235, 0.08));
  color: var(--main-color);
  font-weight: 700;
  font-size: 0.85rem;
  padding: 8px 20px;
  border-radius: 50px;
  letter-spacing: 0.5px;
  margin-bottom: 20px;
  border: 1px solid rgba(30, 58, 138, 0.1);
}

.features-badge svg {
  color: var(--accent-color);
  flex-shrink: 0;
}

.features-title {
  font-size: 2.6rem;
  font-weight: 850;
  color: var(--main-color);
  margin-bottom: 18px;
  line-height: 1.3;
}

.features-subtitle {
  color: var(--subp-color);
  font-size: 1.1rem;
  line-height: 1.7;
  margin: 0;
}

/* --- Bento Grid Layout --- */
.features-bento-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

/* --- Bento Card Base --- */
.feature-bento-card {
  position: relative;
  background: var(--glass-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--glass-border);
  border-radius: 24px;
  padding: 36px 30px;
  overflow: hidden;
  transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  cursor: default;
  display: flex;
  flex-direction: column;
}

.feature-bento-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 25px 50px -12px var(--shadow-hover);
  border-color: rgba(30, 58, 138, 0.15);
}

/* Wide card spanning 2 columns */
.feature-bento-card--wide {
  grid-column: span 2;
}

/* --- Glow Effect (Subtle background gradient blobs) --- */
.feature-bento-card__glow {
  position: absolute;
  width: 200px;
  height: 200px;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.15;
  top: -50px;
  right: -50px;
  pointer-events: none;
  transition: opacity 0.5s ease;
}

.feature-bento-card:hover .feature-bento-card__glow {
  opacity: 0.3;
}

html[dir="rtl"] .feature-bento-card__glow {
  right: auto;
  left: -50px;
}

.feature-bento-card__glow--blue { background: #3b82f6; }
.feature-bento-card__glow--purple { background: #8b5cf6; }
.feature-bento-card__glow--green { background: #10b981; }
.feature-bento-card__glow--amber { background: #f59e0b; }
.feature-bento-card__glow--rose { background: #f43f5e; }
.feature-bento-card__glow--cyan { background: #06b6d4; }

/* --- Icon --- */
.feature-bento-card__icon {
  width: 60px;
  height: 60px;
  border-radius: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 22px;
  background: linear-gradient(135deg, rgba(30, 58, 138, 0.1), rgba(37, 99, 235, 0.1));
  border: 1px solid rgba(30, 58, 138, 0.08);
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.feature-bento-card:hover .feature-bento-card__icon {
  transform: scale(1.1) rotate(-3deg);
}

.feature-bento-card__icon svg {
  width: 28px;
  height: 28px;
  color: var(--main-color);
  stroke-width: 1.8;
}

/* Color Variants for Icons */
.feature-bento-card__icon--purple {
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.1), rgba(139, 92, 246, 0.15));
  border-color: rgba(139, 92, 246, 0.1);
}
.feature-bento-card__icon--purple svg { color: #8b5cf6; }

.feature-bento-card__icon--green {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.1), rgba(16, 185, 129, 0.15));
  border-color: rgba(16, 185, 129, 0.1);
}
.feature-bento-card__icon--green svg { color: #10b981; }

.feature-bento-card__icon--amber {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.1), rgba(245, 158, 11, 0.15));
  border-color: rgba(245, 158, 11, 0.1);
}
.feature-bento-card__icon--amber svg { color: #f59e0b; }

.feature-bento-card__icon--rose {
  background: linear-gradient(135deg, rgba(244, 63, 94, 0.1), rgba(244, 63, 94, 0.15));
  border-color: rgba(244, 63, 94, 0.1);
}
.feature-bento-card__icon--rose svg { color: #f43f5e; }

.feature-bento-card__icon--cyan {
  background: linear-gradient(135deg, rgba(6, 182, 212, 0.1), rgba(6, 182, 212, 0.15));
  border-color: rgba(6, 182, 212, 0.1);
}
.feature-bento-card__icon--cyan svg { color: #06b6d4; }

/* --- Card Title --- */
.feature-bento-card__title {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--main-color);
  margin-bottom: 10px;
  line-height: 1.3;
}

/* --- Card Description --- */
.feature-bento-card__desc {
  color: var(--subp-color);
  font-size: 0.95rem;
  line-height: 1.75;
  margin: 0;
}

/* --- Animated Stat Counter --- */
.feature-bento-card__stat {
  display: flex;
  align-items: baseline;
  gap: 4px;
  margin-top: auto;
  padding-top: 22px;
  flex-wrap: wrap;
}

.feature-bento-card__stat-number {
  font-size: 2.8rem;
  font-weight: 900;
  background: linear-gradient(135deg, var(--main-color), #3b82f6);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
}

.feature-bento-card__stat span:nth-child(2) {
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--accent-color);
}

.feature-bento-card__stat-label {
  display: block;
  width: 100%;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--subp-color);
  margin-top: 4px;
}

/* --- Dark Mode Overrides --- */
.dark .feature-bento-card {
  background: rgba(30, 41, 59, 0.5);
  border-color: rgba(255, 255, 255, 0.06);
}

.dark .feature-bento-card:hover {
  border-color: rgba(255, 255, 255, 0.12);
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

.dark .feature-bento-card__glow { opacity: 0.08; }
.dark .feature-bento-card:hover .feature-bento-card__glow { opacity: 0.18; }

.dark .features-badge {
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.12), rgba(59, 130, 246, 0.08));
  border-color: rgba(59, 130, 246, 0.15);
}

/* --- Tablet Responsive --- */
@media (max-width: 991.98px) {
  .features-bento-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }

  .feature-bento-card--wide {
    grid-column: span 2;
  }

  .features-title {
    font-size: 2.1rem;
  }
}

/* --- Mobile Responsive --- */
@media (max-width: 767.98px) {
  .features-showcase {
    padding: 70px 0 80px;
  }

  .features-bento-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .feature-bento-card--wide {
    grid-column: span 1;
  }

  .features-title {
    font-size: 1.75rem;
  }

  .feature-bento-card {
    padding: 28px 22px;
    border-radius: 20px;
  }

  .feature-bento-card__stat-number {
    font-size: 2.2rem;
  }

  .features-header {
    margin-bottom: 40px;
  }
}

/* =============================================
   VISION & MISSION SECTION (Redesigned)
   ============================================= */
.vm-section {
  padding: 100px 0 110px;
  position: relative;
  overflow: hidden;
  background: linear-gradient(165deg, #f0f4ff 0%, #f8fafc 40%, #fefce8 100%);
}

.dark .vm-section {
  background: linear-gradient(165deg, #0f172a 0%, #1e293b 50%, #1a1a2e 100%);
}

/* Decorative floating shapes */
.vm-section__bg-shape {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
}

.vm-section__bg-shape--1 {
  width: 450px;
  height: 450px;
  top: -120px;
  right: -100px;
  background: radial-gradient(circle, rgba(30, 58, 138, 0.06) 0%, transparent 70%);
}

.vm-section__bg-shape--2 {
  width: 350px;
  height: 350px;
  bottom: -80px;
  left: -80px;
  background: radial-gradient(circle, rgba(217, 119, 6, 0.06) 0%, transparent 70%);
}

.vm-section .container {
  position: relative;
  z-index: 1;
}

/* --- Section Header --- */
.vm-section__header {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 60px auto;
}

.vm-section__badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, rgba(30, 58, 138, 0.08), rgba(37, 99, 235, 0.08));
  color: var(--main-color);
  font-weight: 700;
  font-size: 0.85rem;
  padding: 8px 20px;
  border-radius: 50px;
  letter-spacing: 0.5px;
  margin-bottom: 20px;
  border: 1px solid rgba(30, 58, 138, 0.1);
}

.vm-section__badge svg {
  color: var(--accent-color);
  flex-shrink: 0;
}

.vm-section__title {
  font-size: 2.6rem;
  font-weight: 850;
  color: var(--main-color);
  margin-bottom: 18px;
  line-height: 1.3;
}

.vm-section__subtitle {
  color: var(--subp-color);
  font-size: 1.1rem;
  line-height: 1.7;
  margin: 0;
}

/* --- Cards Wrapper (2-column grid) --- */
.vm-cards-wrapper {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
  align-items: stretch;
}

/* --- VM Card Base --- */
.vm-card {
  position: relative;
  background: var(--glass-bg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
  border-radius: 28px;
  padding: 44px 38px;
  overflow: hidden;
  transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
}

.vm-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 30px 60px -15px var(--shadow-hover);
  border-color: rgba(30, 58, 138, 0.12);
}

/* --- Watermark (Large faded text in background) --- */
.vm-card__watermark {
  position: absolute;
  top: 15px;
  right: 20px;
  font-size: 5rem;
  font-weight: 900;
  color: var(--main-color);
  opacity: 0.03;
  line-height: 1;
  pointer-events: none;
  letter-spacing: -2px;
  transition: opacity 0.5s ease;
  white-space: nowrap;
}

html[dir="rtl"] .vm-card__watermark {
  right: auto;
  left: 20px;
}

.vm-card:hover .vm-card__watermark {
  opacity: 0.06;
}

/* --- Glow Effect --- */
.vm-card__glow {
  position: absolute;
  width: 250px;
  height: 250px;
  border-radius: 50%;
  background: #3b82f6;
  filter: blur(100px);
  opacity: 0.08;
  top: -80px;
  right: -60px;
  pointer-events: none;
  transition: opacity 0.5s ease;
}

.vm-card__glow--amber {
  background: #f59e0b;
}

html[dir="rtl"] .vm-card__glow {
  right: auto;
  left: -60px;
}

.vm-card:hover .vm-card__glow {
  opacity: 0.15;
}

/* --- Icon Wrapper --- */
.vm-card__icon-wrapper {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 24px;
}

.vm-card__icon {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(30, 58, 138, 0.1), rgba(37, 99, 235, 0.15));
  border: 1px solid rgba(30, 58, 138, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.vm-card:hover .vm-card__icon {
  transform: scale(1.1) rotate(-5deg);
  box-shadow: 0 8px 20px rgba(37, 99, 235, 0.15);
}

.vm-card__icon svg {
  width: 26px;
  height: 26px;
  color: var(--main-color);
}

.vm-card__icon--amber {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.1), rgba(217, 119, 6, 0.15));
  border-color: rgba(245, 158, 11, 0.1);
}

.vm-card__icon--amber svg {
  color: var(--accent-color);
}

.vm-card:hover .vm-card__icon--amber {
  box-shadow: 0 8px 20px rgba(245, 158, 11, 0.15);
}

/* --- Label --- */
.vm-card__label {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--main-color);
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.vm-card__label--amber {
  color: var(--accent-color);
}

/* --- Divider --- */
.vm-card__divider {
  width: 60px;
  height: 3px;
  border-radius: 3px;
  background: linear-gradient(90deg, var(--main-color), #3b82f6);
  margin-bottom: 24px;
  transition: width 0.4s ease;
}

.vm-card__divider--amber {
  background: linear-gradient(90deg, var(--accent-color), #f59e0b);
}

.vm-card:hover .vm-card__divider {
  width: 100px;
}

/* --- Card Content --- */
.vm-card__content {
  flex-grow: 1;
}

.vm-card__title {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--main-color);
  margin-bottom: 14px;
  line-height: 1.4;
}

.vm-card__text {
  color: var(--subp-color);
  font-size: 1rem;
  line-height: 1.85;
  margin: 0;
}

/* --- Bottom Accent Line --- */
.vm-card__accent-line {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--main-color), #3b82f6, transparent);
  opacity: 0;
  transition: opacity 0.4s ease;
}

.vm-card__accent-line--amber {
  background: linear-gradient(90deg, var(--accent-color), #f59e0b, transparent);
}

html[dir="rtl"] .vm-card__accent-line {
  background: linear-gradient(270deg, var(--main-color), #3b82f6, transparent);
}

html[dir="rtl"] .vm-card__accent-line--amber {
  background: linear-gradient(270deg, var(--accent-color), #f59e0b, transparent);
}

.vm-card:hover .vm-card__accent-line {
  opacity: 1;
}

/* --- Dark Mode --- */
.dark .vm-card {
  background: rgba(30, 41, 59, 0.5);
  border-color: rgba(255, 255, 255, 0.06);
}

.dark .vm-card:hover {
  border-color: rgba(255, 255, 255, 0.12);
  box-shadow: 0 30px 60px -15px rgba(0, 0, 0, 0.5);
}

.dark .vm-card__watermark {
  opacity: 0.02;
}

.dark .vm-card__glow {
  opacity: 0.05;
}

.dark .vm-section__badge {
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.12), rgba(59, 130, 246, 0.08));
  border-color: rgba(59, 130, 246, 0.15);
}

/* --- Tablet --- */
@media (max-width: 991.98px) {
  .vm-section__title {
    font-size: 2.1rem;
  }

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

/* --- Mobile --- */
@media (max-width: 767.98px) {
  .vm-section {
    padding: 70px 0 80px;
  }

  .vm-cards-wrapper {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .vm-section__title {
    font-size: 1.75rem;
  }

  .vm-card {
    padding: 30px 24px;
    border-radius: 22px;
  }

  .vm-card__watermark {
    font-size: 3.5rem;
    top: 10px;
  }

  .vm-section__header {
    margin-bottom: 40px;
  }
}

/* Director's Word */
/* =============================================
   DIRECTOR'S WORD SECTION (Redesigned & Compact)
   ============================================= */
.director-section {
  padding: 80px 0;
  background: var(--body-bg);
  position: relative;
  overflow: hidden;
}

.director-card {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 40px;
  align-items: center;
  background: var(--glass-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--glass-border);
  border-radius: 24px;
  padding: 40px;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.03);
  max-width: 960px;
  margin: 0 auto;
}

html[dir="rtl"] .director-card {
  direction: rtl;
}

/* Profile Column */
.director-profile-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.director-profile-ring {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  padding: 4px;
  background: linear-gradient(135deg, var(--accent-color), #005aff);
  margin-bottom: 16px;
  box-shadow: 0 8px 20px rgba(0, 90, 255, 0.1);
}

.director-profile-image {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background-size: cover;
  background-position: center;
  border: 3px solid #ffffff;
}

.director-profile-name {
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--main-color);
  margin-bottom: 6px;
  line-height: 1.3;
}

.director-profile-role {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--accent-color);
  display: inline-block;
  padding: 3px 12px;
  background: rgba(0, 90, 255, 0.05);
  border: 1px solid rgba(0, 90, 255, 0.1);
  border-radius: 50px;
}

/* Quote/Content Column */
.director-quote-col {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.director-quote-icon {
  color: var(--accent-color);
  opacity: 0.12;
  line-height: 1;
}

.director-quote-icon svg {
  width: 32px;
  height: 32px;
}

.director-quote-icon--close {
  align-self: flex-end;
}

html[dir="rtl"] .director-quote-icon--close {
  align-self: flex-start;
}

.director-quote-text {
  font-size: 1.05rem;
  line-height: 1.8;
  color: var(--subp-color);
  margin: 0;
  font-style: italic;
}

/* Responsive */
@media (max-width: 767.98px) {
  .director-section {
    padding: 60px 0;
  }

  .director-card {
    grid-template-columns: 1fr;
    gap: 30px;
    padding: 30px 24px;
    border-radius: 20px;
  }

  .director-profile-col {
    order: 1;
  }

  .director-quote-col {
    order: 2;
    text-align: center;
  }

  .director-quote-icon--close {
    align-self: center;
  }

  html[dir="rtl"] .director-quote-icon--close {
    align-self: center;
  }
}

/* =============================================
   LATEST NEWS SECTION (Redesigned)
   ============================================= */
.news-section {
  padding: 100px 0 110px;
  position: relative;
  overflow: hidden;
  background: var(--body-bg);
}

.news-section__bg-shape {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
}

.news-section__bg-shape--1 {
  width: 400px;
  height: 400px;
  top: -150px;
  left: -100px;
  background: radial-gradient(circle, rgba(30, 58, 138, 0.04) 0%, transparent 70%);
}

.news-section__bg-shape--2 {
  width: 350px;
  height: 350px;
  bottom: -100px;
  right: -80px;
  background: radial-gradient(circle, rgba(217, 119, 6, 0.04) 0%, transparent 70%);
}

.news-section .container {
  position: relative;
  z-index: 1;
}

/* --- Section Header --- */
.news-section__header {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 60px auto;
}

.news-section__badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, rgba(30, 58, 138, 0.08), rgba(37, 99, 235, 0.08));
  color: var(--main-color);
  font-weight: 700;
  font-size: 0.85rem;
  padding: 8px 20px;
  border-radius: 50px;
  letter-spacing: 0.5px;
  margin-bottom: 20px;
  border: 1px solid rgba(30, 58, 138, 0.1);
}

.news-section__badge svg {
  color: var(--accent-color);
  flex-shrink: 0;
}

.news-section__title {
  font-size: 2.6rem;
  font-weight: 850;
  color: var(--main-color);
  margin-bottom: 18px;
  line-height: 1.3;
}

.news-section__subtitle {
  color: var(--subp-color);
  font-size: 1.1rem;
  line-height: 1.7;
  margin: 0;
}

/* --- News Grid --- */
.news-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
}

/* --- News Card --- */
.news-card {
  background: var(--glass-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--glass-border);
  border-radius: 22px;
  overflow: hidden;
  transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
}

.news-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 25px 50px -12px var(--shadow-hover);
  border-color: rgba(30, 58, 138, 0.12);
}

/* Image area */
.news-card__image-link {
  display: block;
  text-decoration: none;
  overflow: hidden;
}

.news-card__image {
  height: 220px;
  background-size: cover;
  background-position: center;
  position: relative;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.news-card:hover .news-card__image {
  transform: scale(1.08);
}

.news-card__image-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(to top, rgba(15, 23, 42, 0.5) 0%, transparent 60%);
  transition: opacity 0.3s ease;
}

.news-card:hover .news-card__image-overlay {
  opacity: 0.7;
}

/* Category badge on image */
.news-card__category {
  position: absolute;
  top: 16px;
  right: 16px;
  background: var(--accent-color);
  color: #ffffff;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 5px 14px;
  border-radius: 50px;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  box-shadow: 0 4px 12px rgba(217, 119, 6, 0.3);
  z-index: 2;
}

html[dir="rtl"] .news-card__category {
  right: auto;
  left: 16px;
}

/* Card body */
.news-card__body {
  padding: 24px 24px 28px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

/* Date meta */
.news-card__meta {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 12px;
  color: var(--subp-color);
  font-size: 0.82rem;
  font-weight: 500;
}

.news-card__meta svg {
  flex-shrink: 0;
  opacity: 0.6;
}

.news-card__meta time {
  direction: ltr;
}

/* Title */
.news-card__title {
  font-size: 1.1rem;
  font-weight: 700;
  line-height: 1.5;
  margin-bottom: 16px;
  flex-grow: 1;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.news-card__title a {
  color: var(--main-color) !important;
  text-decoration: none !important;
  transition: color 0.3s ease;
}

.news-card:hover .news-card__title a {
  color: var(--accent-color) !important;
}

/* Read more link */
.news-card__read-more {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--accent-color) !important;
  font-weight: 700;
  font-size: 0.9rem;
  text-decoration: none !important;
  transition: all 0.3s ease;
  margin-top: auto;
}

.news-card__read-more svg {
  transition: transform 0.3s ease;
}

.news-card__read-more:hover {
  gap: 12px;
  color: var(--accent-color-hover) !important;
}

.news-card__read-more:hover svg {
  transform: translateX(4px);
}

html[dir="rtl"] .news-card__read-more:hover svg {
  transform: translateX(-4px) scaleX(-1);
}

html[dir="rtl"] .news-card__read-more svg {
  transform: scaleX(-1);
}

/* CTA Button */
.news-section__cta {
  text-align: center;
  margin-top: 50px;
}

/* --- Dark Mode --- */
.dark .news-card {
  background: rgba(30, 41, 59, 0.5);
  border-color: rgba(255, 255, 255, 0.06);
}

.dark .news-card:hover {
  border-color: rgba(255, 255, 255, 0.12);
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

.dark .news-section__badge {
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.12), rgba(59, 130, 246, 0.08));
  border-color: rgba(59, 130, 246, 0.15);
}

/* --- Tablet --- */
@media (max-width: 991.98px) {
  .news-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
  }

  .news-section__title {
    font-size: 2.1rem;
  }
}

/* --- Mobile --- */
@media (max-width: 767.98px) {
  .news-section {
    padding: 70px 0 80px;
  }

  .news-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .news-section__title {
    font-size: 1.75rem;
  }

  .news-card {
    border-radius: 20px;
  }

  .news-card__image {
    height: 200px;
  }

  .news-section__header {
    margin-bottom: 40px;
  }

  .news-section__cta {
    margin-top: 36px;
  }
}

/* FAQ / Accordion custom style */
.fq {
  padding: 80px 0;
}

.fq .card {
  border: 1px solid var(--border-color) !important;
  border-radius: 12px !important;
  margin-bottom: 12px;
  overflow: hidden;
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  box-shadow: 0 4px 15px var(--shadow-color);
}

.fq .card-header {
  background: transparent !important;
  border-bottom: none !important;
  padding: 0;
}

.fq .btn-link {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 24px !important;
  color: var(--main-color) !important;
  font-weight: 700 !important;
  font-size: 1.05rem !important;
  text-decoration: none !important;
  text-align: right;
}

.fq .btn-link i {
  color: var(--accent-color);
}

.fq .card-body {
  padding: 0 24px 24px 24px;
  color: var(--subp-color);
  font-size: 0.95rem;
  line-height: 1.6;
}

/* Form inputs & submissions modernization */
.form-group .form-control {
  border: 1px solid var(--border-input) !important;
  background-color: var(--sub-light) !important;
  border-radius: 12px !important;
  color: var(--p-color) !important;
  padding: 12px 20px !important;
  transition: all 0.3s ease;
}

.form-group .form-control:focus {
  border-color: var(--main-color) !important;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15) !important;
}

/* Multi-step submission wizard styles */
.submission-card {
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-border);
  border-radius: 24px;
  padding: 40px;
  box-shadow: 0 15px 35px var(--shadow-color);
}

.step-indicator {
  display: flex;
  justify-content: space-between;
  margin-bottom: 40px;
  position: relative;
}

.step-indicator::before {
  content: '';
  position: absolute;
  top: 15px;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--border-color);
  z-index: 0;
}

.step-dot {
  width: 32px;
  height: 32px;
  background: var(--border-color);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: var(--subp-color);
  position: relative;
  z-index: 1;
  transition: all 0.3s ease;
}

.step-dot.active {
  background: var(--main-color);
  color: #fff;
  box-shadow: 0 0 0 5px rgba(37, 99, 235, 0.2);
}

.step-dot.completed {
  background: var(--accent-color);
  color: #fff;
}

/* Contact Page Cards overrides */
.contact-page .contact-cards .contact-card {
  background: var(--glass-bg) !important;
  backdrop-filter: var(--glass-blur) !important;
  -webkit-backdrop-filter: var(--glass-blur) !important;
  border: 1px solid var(--glass-border) !important;
  border-radius: 20px !important;
  box-shadow: 0 10px 30px var(--shadow-color) !important;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1) !important;
  padding: 40px 30px !important;
  text-align: center !important;
  height: 100%;
}

.contact-page .contact-cards .contact-card:hover {
  transform: translateY(-6px) !important;
  box-shadow: 0 20px 40px var(--shadow-hover) !important;
  border-color: rgba(30, 58, 138, 0.15) !important;
}

.contact-page .contact-cards .contact-card .contact-card-icon {
  background: var(--accent-light) !important;
  border: none !important;
  width: 65px !important;
  height: 65px !important;
  border-radius: 50% !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  margin: 0 auto 20px auto !important;
}

.contact-page .contact-cards .contact-card .contact-card-icon svg {
  fill: var(--accent-color) !important;
  width: 30px !important;
  height: 30px !important;
}

.contact-page .contact-cards .contact-card .contact-card-info h3 {
  font-size: 1.4rem !important;
  font-weight: 700 !important;
  color: var(--main-color) !important;
  margin-bottom: 8px !important;
}

.contact-page .contact-cards .contact-card .contact-card-info span {
  color: var(--subp-color) !important;
  font-size: 0.85rem !important;
  margin-bottom: 15px !important;
}

.contact-page .contact-cards .contact-card .contact-card-info a {
  color: var(--accent-color) !important;
  font-size: 1.25rem !important;
  font-weight: 700 !important;
  text-decoration: none !important;
  transition: color 0.3s ease !important;
  margin-top: 15px !important;
  display: inline-block !important;
}

.contact-page .contact-cards .contact-card .contact-card-info a:hover {
  color: var(--accent-color-hover) !important;
}


/* 4. Navigation Links Premium Hover & Active Styling */
.nav-links li.nav-link a,
.nav-links li.nav-link-active a {
  position: relative !important;
  color: var(--p-color) !important;
  font-weight: 600 !important;
  transition: all 0.3s ease !important;
  padding: 8px 16px !important;
}

.nav-links li.nav-link a::after,
.nav-links li.nav-link-active a::after {
  content: '' !important;
  position: absolute !important;
  height: 3px !important;
  bottom: -4px !important;
  left: 50% !important;
  background: linear-gradient(90deg, var(--accent-color), #fbbf24) !important;
  border-radius: 4px !important;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1) !important;
  transform: translateX(-50%) !important;
}

/* Regular links line starts with 0 width */
.nav-links li.nav-link a::after {
  width: 0 !important;
}

/* Active links styling */
.nav-links li.nav-link-active a {
  color: var(--accent-color) !important;
}

.nav-links li.nav-link-active a::after {
  width: 70% !important;
}

/* Hover states */
.nav-links li.nav-link a:hover {
  color: var(--accent-color) !important;
}

.nav-links li.nav-link a:hover::after {
  width: 70% !important;
}

.nav-links li.nav-link.nav-cta-link a,
.nav-links li.nav-link-active.nav-cta-link a {
  background: linear-gradient(135deg, var(--main-color), #2563eb) !important;
  color: #ffffff !important;
  border-radius: 50px !important;
  padding: 8px 24px !important;
  box-shadow: 0 4px 10px rgba(37, 99, 235, 0.2) !important;
  transition: all 0.3s ease !important;
}

.nav-links li.nav-link.nav-cta-link a::after,
.nav-links li.nav-link-active.nav-cta-link a::after {
  display: none !important;
}

.nav-links li.nav-link.nav-cta-link a:hover,
.nav-links li.nav-link-active.nav-cta-link a:hover {
  transform: translateY(-1px) !important;
  box-shadow: 0 6px 15px rgba(37, 99, 235, 0.3) !important;
  background: linear-gradient(135deg, #2563eb, var(--main-color)) !important;
}

/* 5. Swiper Active Slide Content Premium Animation */
.home-header .swiper-slide .hero-title,
.home-header .swiper-slide .hero-desc,
.home-header .swiper-slide .hero-btn {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.home-header .swiper-slide-active .hero-title {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 0.2s;
}

.home-header .swiper-slide-active .hero-desc {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 0.4s;
}

.home-header .swiper-slide-active .hero-btn {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 0.6s;
}

/* Slide background scale zoom animation */
.home-header .swiper-slide {
  transition: transform 6s ease-in-out !important;
}
.home-header .swiper-slide-active {
  transform: scale(1.05) !important;
}

/* 6. About / Album Section Homepage Styling */
.school-slider {
  padding: 100px 0;
  background: radial-gradient(circle at 10% 20%, rgba(248, 250, 252, 1) 0%, rgba(241, 245, 249, 1) 90%);
}

.about-more-info .pretitle {
  color: var(--accent-color);
  font-weight: 700;
  font-size: 0.95rem;
  margin-bottom: 15px;
  text-transform: uppercase;
}

.about-more-info h2 {
  font-size: 2.5rem;
  font-weight: 850;
  color: var(--main-color);
  margin-bottom: 25px;
  line-height: 1.3;
}

.about-more-info h2 span {
  color: var(--accent-color);
}

.about-more-info .p-text {
  font-size: 1.1rem;
  line-height: 1.8;
  color: var(--subp-color);
  margin-bottom: 35px;
}

.school-image-container {
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 20px 40px var(--shadow-hover);
  border: 1px solid rgba(255, 255, 255, 0.5);
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(5px);
}

.school-image-container img {
  width: 100%;
  height: 420px;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.school-image-container img:hover {
  transform: scale(1.03);
}


/* 8. Accordion Modern CSS Icons */
.fq .btn-link {
  font-size: 1.15rem !important;
  transition: all 0.3s ease;
}

.fq .btn-link i {
  display: none !important; /* Hide old material icons */
}

/* Custom CSS icons for Accordion */
.fq .btn-link::after {
  content: '+';
  font-size: 1.6rem;
  font-weight: 500;
  color: var(--accent-color);
  transition: transform 0.3s ease;
}

.fq .btn-link[aria-expanded="true"]::after {
  content: '−';
  transform: rotate(180deg);
}

/* 9. Premium Expandable Grid Gallery (Rebuilt from Scratch) */
.gallery-accordion-container {
  display: flex;
  width: 100%;
  height: 520px;
  gap: 16px;
  margin-top: 40px;
  overflow: hidden;
  padding: 10px 0;
}

.gallery-panel {
  flex: 1;
  height: 100%;
  position: relative;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  border-radius: 20px;
  cursor: pointer;
  overflow: hidden;
  transition: flex 0.6s cubic-bezier(0.16, 1, 0.3, 1), transform 0.3s ease, box-shadow 0.3s ease;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
}

/* Light overlay to darken images for text contrast */
.gallery-panel-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(to top, rgba(15, 23, 42, 0.85) 0%, rgba(15, 23, 42, 0.2) 60%, transparent 100%);
  z-index: 1;
  transition: opacity 0.5s ease;
}

.gallery-panel-content {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 30px;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-end;
  height: 100%;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.4s ease, transform 0.4s ease;
}

html[dir="rtl"] .gallery-panel-content {
  align-items: flex-start;
  text-align: right;
}

/* Category Badge styling */
.gallery-panel-badge {
  background: var(--accent-color);
  color: #ffffff;
  font-size: 0.8rem;
  font-weight: 700;
  padding: 6px 14px;
  border-radius: 50px;
  margin-bottom: 12px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Title styling */
.gallery-panel-title {
  color: #ffffff;
  font-size: 1.6rem;
  font-weight: 800;
  margin-bottom: 15px;
  line-height: 1.3;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

/* Button inside panel */
.gallery-panel-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #ffffff;
  text-decoration: none !important;
  font-weight: 600;
  font-size: 0.95rem;
  border-bottom: 1.5px solid rgba(255, 255, 255, 0.4);
  padding-bottom: 4px;
  transition: all 0.3s ease;
}

.gallery-panel-btn:hover {
  color: var(--accent-color);
  border-color: var(--accent-color);
  gap: 12px;
}

.gallery-panel-btn svg {
  transition: transform 0.3s ease;
}

.gallery-panel-btn:hover svg {
  transform: translateX(4px);
}

html[dir="rtl"] .gallery-panel-btn:hover svg {
  transform: translateX(-4px);
}

/* Hover behaviors */
.gallery-panel:hover {
  flex: 3.5;
  box-shadow: 0 20px 40px rgba(15, 23, 42, 0.2);
}

.gallery-panel:hover .gallery-panel-content {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 0.15s;
}

/* Make first panel expanded by default if no hover on the container */
.gallery-accordion-container:not(:hover) .gallery-panel:first-child {
  flex: 3.5;
}

.gallery-accordion-container:not(:hover) .gallery-panel:first-child .gallery-panel-content {
  opacity: 1;
  transform: translateY(0);
}

/* Mobile & Tablet responsiveness */
@media (max-width: 991.98px) {
  .gallery-accordion-container {
    height: 420px;
  }
  .gallery-panel-title {
    font-size: 1.3rem;
  }
}

@media (max-width: 767.98px) {
  .gallery-accordion-container {
    flex-direction: column;
    height: auto;
    gap: 16px;
  }
  
  .gallery-panel {
    flex: none !important;
    width: 100% !important;
    height: 220px !important;
    border-radius: 16px;
  }
  
  .gallery-panel-content {
    opacity: 1 !important;
    transform: translateY(0) !important;
    padding: 20px;
  }
  
  .gallery-panel-title {
    font-size: 1.2rem;
    margin-bottom: 10px;
  }
}



/* =============================================
   PREMIUM FOOTER (Redesigned)
   ============================================= */

/* --- Newsletter Section --- */
.footer-newsletter {
  background: #0c1938; /* Integrated natively into footer background */
  padding: 60px 0 0;
  position: relative;
  overflow: hidden;
  z-index: 10;
}

.footer-newsletter__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  padding: 0 0 45px 0;
  border-radius: 0;
  background: transparent;
  border: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08); /* Separator line */
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  position: relative;
  overflow: visible;
  margin: 0;
}

.footer-newsletter__glow {
  position: absolute;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(217, 119, 6, 0.12) 0%, transparent 70%);
  top: -100px;
  right: -50px;
  pointer-events: none;
}

html[dir="rtl"] .footer-newsletter__glow {
  right: auto;
  left: -50px;
}

.footer-newsletter__content {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-shrink: 0;
}

.footer-newsletter__icon {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(217, 119, 6, 0.15), rgba(245, 158, 11, 0.1));
  border: 1px solid rgba(217, 119, 6, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.footer-newsletter__icon svg {
  color: var(--accent-color);
}

.footer-newsletter__text h3 {
  font-size: 1.3rem;
  font-weight: 800;
  color: #ffffff;
  margin: 0 0 4px 0;
  line-height: 1.3;
}

.footer-newsletter__text p {
  font-size: 0.9rem;
  color: #94a3b8;
  margin: 0;
  line-height: 1.4;
}

.footer-newsletter__form {
  display: flex;
  gap: 12px;
  flex-shrink: 0;
}

.footer-newsletter__input-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 14px;
  padding: 0 18px;
  transition: all 0.3s ease;
  min-width: 280px;
}

.footer-newsletter__input-wrap:focus-within {
  border-color: var(--accent-color);
  box-shadow: 0 0 0 3px rgba(217, 119, 6, 0.1);
  background: rgba(255, 255, 255, 0.08);
}

.footer-newsletter__input-wrap svg {
  color: #64748b;
  flex-shrink: 0;
}

.footer-newsletter__input-wrap input {
  background: none;
  border: none;
  outline: none;
  color: #ffffff;
  font-size: 0.95rem;
  padding: 14px 0;
  width: 100%;
  font-family: inherit;
}

.footer-newsletter__input-wrap input::placeholder {
  color: #64748b;
}

.footer-newsletter__btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, #005aff, #0045e6);
  color: #ffffff;
  border: none;
  border-radius: 14px;
  padding: 14px 28px;
  font-weight: 700;
  font-size: 0.95rem;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  white-space: nowrap;
  font-family: inherit;
}

.footer-newsletter__btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0, 90, 255, 0.35);
}

.footer-newsletter__btn svg {
  transition: transform 0.3s ease;
}

.footer-newsletter__btn:hover svg {
  transform: translateX(3px);
}

html[dir="rtl"] .footer-newsletter__btn:hover svg {
  transform: translateX(-3px) scaleX(-1);
}

html[dir="rtl"] .footer-newsletter__btn svg {
  transform: scaleX(-1);
}

/* --- Main Footer --- */
.footer-main {
  background: #0c1938; /* Deep Royal Navy Blue matching the brand main color */
  padding: 50px 0 60px; /* Reset padding since newsletter is natively integrated at the top */
}

.site-footer footer,
footer.site-footer {
  background: none !important;
  padding: 0 !important;
}

/* Override old footer styles */
.site-footer {
  background: none !important;
  padding: 0 !important;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 50px;
}

/* --- Footer Column --- */
.footer-col--about {
  padding-right: 30px;
}

html[dir="rtl"] .footer-col--about {
  padding-right: 0;
  padding-left: 30px;
}

.footer-logo {
  display: inline-flex;
  align-items: center;
  margin-bottom: 24px;
  transition: all 0.3s ease;
}

.footer-logo img {
  display: block;
  height: 75px;
  width: auto;
  max-width: 260px;
  object-fit: contain;
  opacity: 1;
  transition: all 0.3s ease;
}

.footer-logo:hover {
  transform: translateY(-2px);
  opacity: 0.9;
}

.footer-about-text {
  color: #94a3b8;
  font-size: 0.95rem;
  line-height: 1.7;
  margin-bottom: 20px;
}

/* Contact Info */
.footer-contact-info {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 24px;
}

.footer-contact-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  color: #94a3b8;
  font-size: 0.88rem;
  line-height: 1.5;
}

.footer-contact-item svg {
  color: var(--accent-color);
  flex-shrink: 0;
  margin-top: 2px;
}

/* Social Links */
.footer-socials {
  display: flex;
  gap: 10px;
}

.footer-social-link {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #94a3b8;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  text-decoration: none;
}

.footer-social-link:hover {
  background: var(--main-color);
  border-color: var(--main-color);
  color: #ffffff;
  transform: translateY(-3px);
  box-shadow: 0 6px 15px rgba(30, 58, 138, 0.3);
}

.footer-social-link--whatsapp:hover {
  background: #25d366;
  border-color: #25d366;
  box-shadow: 0 6px 15px rgba(37, 211, 102, 0.3);
}

.footer-social-link svg {
  width: 18px;
  height: 18px;
}

/* Column Title */
.footer-col__title {
  font-size: 1.05rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.footer-col__title-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent-color);
  flex-shrink: 0;
}

/* Footer Links */
.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

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

.footer-links li a {
  color: #94a3b8 !important;
  text-decoration: none !important;
  font-size: 0.92rem;
  font-weight: 500;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 0;
  position: relative;
  padding-left: 0;
}

html[dir="rtl"] .footer-links li a {
  padding-right: 0;
  padding-left: 0;
}

.footer-links li a:hover {
  color: var(--accent-color) !important;
  gap: 6px;
  padding-left: 8px;
}

html[dir="rtl"] .footer-links li a:hover {
  padding-left: 0;
  padding-right: 8px;
}

/* --- Footer Bottom / Copyright --- */
.footer-bottom {
  background: #060d1f; /* Very dark navy-black for contrast */
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding: 20px 0;
}

.footer-bottom__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.footer-bottom__copy {
  color: #64748b;
  font-size: 0.85rem;
  margin: 0;
}

.footer-bottom__copy a {
  color: var(--accent-color) !important;
  text-decoration: none !important;
  font-weight: 600;
}

.footer-bottom__copy a:hover {
  color: #f59e0b !important;
}

/* Back to Top */
.footer-bottom__back-top {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #94a3b8;
  text-decoration: none;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.footer-bottom__back-top:hover {
  background: #005aff;
  border-color: #005aff;
  color: #ffffff;
  transform: translateY(-3px);
  box-shadow: 0 6px 15px rgba(0, 90, 255, 0.35);
}

/* --- Tablet --- */
@media (max-width: 991.98px) {
  .footer-newsletter__inner {
    flex-direction: column;
    text-align: center;
    padding: 0 0 35px 0;
    margin-top: 0;
  }

  .footer-newsletter__content {
    flex-direction: column;
  }

  .footer-newsletter__form {
    width: 100%;
    max-width: 450px;
  }

  .footer-newsletter__input-wrap {
    min-width: 0;
    flex: 1;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 40px;
  }

  .footer-col--about {
    grid-column: span 2;
    padding-right: 0;
  }

  .footer-main {
    padding: 40px 0 50px;
  }

  .footer-newsletter {
    background: #0c1938;
    padding: 50px 0 0;
    overflow: hidden;
  }
}

/* --- Mobile --- */
@media (max-width: 767.98px) {
  .footer-newsletter__inner {
    padding: 0 0 30px 0;
    margin-top: 0;
  }

  .footer-newsletter__text h3 {
    font-size: 1.1rem;
  }

  .footer-newsletter__form {
    flex-direction: column;
  }

  .footer-newsletter__btn {
    justify-content: center;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .footer-col--about {
    grid-column: span 1;
    text-align: center;
  }

  .footer-socials {
    justify-content: center;
  }

  .footer-contact-info {
    align-items: center;
  }

  .footer-bottom__inner {
    flex-direction: column;
    gap: 16px;
    text-align: center;
  }

  .footer-main {
    padding: 40px 0 40px;
  }
}


/* =============================================
   PREMIUM CONTACT SECTION (Redesigned)
   ============================================= */
.contact {
  padding: 100px 0;
  background: radial-gradient(circle at 10% 20%, rgba(248, 250, 252, 1) 0%, rgba(241, 245, 249, 0.7) 100%);
  position: relative;
  overflow: hidden; /* Prevent clipping */
}

/* Background elements */
.contact::before {
  content: '';
  position: absolute;
  top: -200px;
  right: -200px;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0, 90, 255, 0.05) 0%, transparent 70%);
  z-index: 0;
  pointer-events: none;
}

.contact .container {
  position: relative;
  z-index: 2;
}

/* Contact Info Card */
.contact-info {
  background: #ffffff;
  border: 1px solid rgba(226, 232, 240, 0.8);
  border-radius: 24px;
  padding: 40px;
  box-shadow: 0 20px 40px rgba(15, 23, 42, 0.03);
  transition: all 0.4s ease;
  height: 100%;
}

.contact-info:hover {
  transform: translateY(-5px);
  box-shadow: 0 30px 60px rgba(15, 23, 42, 0.06);
}

.contact-info .pretitle {
  color: var(--accent-color) !important;
  font-weight: 700 !important;
  font-size: 0.85rem !important;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  background: rgba(0, 90, 255, 0.1);
  padding: 6px 16px !important;
  border-radius: 50px;
  margin-bottom: 20px;
  display: inline-block !important;
}

.contact-info h3 {
  font-size: 2.2rem !important;
  font-weight: 800 !important;
  color: var(--main-color) !important;
  margin-bottom: 15px;
  line-height: 1.3;
}

.contact-info h3 span {
  color: var(--accent-color);
  position: relative;
}

.contact-info p {
  font-size: 1rem !important;
  color: var(--subp-color) !important;
  line-height: 1.6;
  margin: 0 0 30px 0 !important;
}

/* Contact lines details */
.contacts-line {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.contact-info .contacts-line .contact-line {
  display: flex !important;
  align-items: flex-start !important;
  gap: 20px;
  padding: 20px;
  border-radius: 16px;
  background: #f8fafc;
  border: 1px solid #f1f5f9;
  transition: all 0.3s ease;
}

.contact-info .contacts-line .contact-line:hover {
  background: #ffffff;
  border-color: rgba(0, 90, 255, 0.2);
  box-shadow: 0 10px 25px rgba(0, 90, 255, 0.05);
}

.contact-info .contacts-line .contact-line svg {
  width: 48px;
  height: 48px;
  flex-shrink: 0;
  fill: var(--accent-color);
  background: rgba(0, 90, 255, 0.08);
  padding: 10px;
  border-radius: 12px;
  margin: 0 !important;
  transition: all 0.3s ease;
}

.contact-info .contacts-line .contact-line:hover svg {
  background: var(--accent-color);
  fill: #ffffff;
  transform: scale(1.05);
}

.contact-info .contacts-line .contact-line .contact-line-part {
  margin: 0 !important;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.contact-info .contacts-line .contact-line .contact-line-part h6 {
  font-size: 1.05rem !important;
  font-weight: 700 !important;
  color: var(--main-color) !important;
  margin: 0 !important;
  text-align: inherit !important;
}

.contact-info .contacts-line .contact-line .contact-line-part p {
  font-size: 0.95rem !important;
  color: var(--subp-color) !important;
  margin: 0 !important;
  line-height: 1.5;
}

/* Map Styling */
.contact-form-map {
  height: 100%;
}

.contact-form-map .map {
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(15, 23, 42, 0.05);
  border: 1px solid rgba(226, 232, 240, 0.8);
  transition: all 0.4s ease;
  background: #ffffff;
  padding: 10px;
}

.contact-form-map:hover .map {
  transform: translateY(-5px);
  box-shadow: 0 30px 60px rgba(15, 23, 42, 0.1);
  border-color: rgba(0, 90, 255, 0.2);
}

.contact-form-map iframe {
  height: 480px !important;
  border-radius: 16px;
  border: none !important;
  display: block;
}

/* Responsive fixes */
@media (max-width: 991.98px) {
  .contact {
    padding: 60px 0;
  }
  .contact-info {
    padding: 30px;
    margin-bottom: 30px;
  }
  .contact-info h3 {
    font-size: 1.8rem !important;
  }
  .contact-form-map iframe {
    height: 380px !important;
  }
}

/* =============================================
   CUSTOM SCROLLBAR
   ============================================= */
::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

::-webkit-scrollbar-track {
  background: #f1f5f9;
}

::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 5px;
  border: 2px solid #f1f5f9;
  transition: background 0.3s ease;
}

::-webkit-scrollbar-thumb:hover {
  background: #005aff; /* Brand blue hover scrollbar thumb */
}

/* Dark mode scrollbar support */
.dark ::-webkit-scrollbar-track {
  background: #0f172a;
}

.dark ::-webkit-scrollbar-thumb {
  background: #334155;
  border-color: #0f172a;
}

.dark ::-webkit-scrollbar-thumb:hover {
  background: #005aff;
}

/* =============================================
   GLOBAL SCROLL REVEAL ANIMATIONS
   ============================================= */
.reveal-on-scroll {
  opacity: 0;
  transform: translateY(35px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-on-scroll.is-revealed {
  opacity: 1;
  transform: translateY(0);
}

/* =============================================
   PREMIUM PRELOADER
   ============================================= */
#preloader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: #0c1938; /* Deep brand navy color */
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 999999;
  opacity: 1;
  visibility: visible;
  transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

#preloader.preloader-hidden {
  opacity: 0;
  visibility: hidden;
}

.preloader-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 24px;
}

.preloader-logo-wrapper {
  background: #ffffff;
  padding: 16px 32px;
  border-radius: 20px;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
  animation: preloaderPulse 2s ease-in-out infinite;
}

.preloader-logo-wrapper img {
  height: 60px;
  width: auto;
}

.preloader-spinner-wrapper {
  position: relative;
  width: 48px;
  height: 48px;
}

.preloader-spinner {
  width: 100%;
  height: 100%;
  border: 3px solid rgba(255, 255, 255, 0.1);
  border-top-color: var(--accent-color);
  border-radius: 50%;
  animation: preloaderSpin 1s linear infinite;
}

.preloader-text {
  color: #94a3b8;
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  margin: 0;
  animation: preloaderTextFade 1.5s ease-in-out infinite alternate;
}

@keyframes preloaderPulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.04); }
}

@keyframes preloaderSpin {
  to { transform: rotate(360deg); }
}

@keyframes preloaderTextFade {
  from { opacity: 0.5; }
  to { opacity: 1; }
}


/* =============================================
   MOBILE HEADER, SIDEBAR DRAWER & FOOTER REFINEMENTS
   ============================================= */

/* Header Topbar Contacts Alignment Fix in English/LTR & Arabic/RTL */
.nav-search .contacts-icons li a {
  display: inline-flex !important;
  align-items: center !important;
  gap: 8px !important;
  white-space: nowrap;
}

.nav-search .contacts-icons li a svg {
  margin: 0 !important;
  flex-shrink: 0;
}

.nav-search .contacts-icons li a span {
  margin: 0 !important;
}

.navbar .upper-navbar-side .nav-menu {
  display: none;
}

.navbar .lang .lang-toggle {
  appearance: none;
  -webkit-appearance: none;
  border: 0;
  background: transparent;
  padding: 0;
  margin: 0;
  display: inline-flex;
  align-items: center;
  color: inherit;
  font: inherit;
  cursor: pointer;
}

.navbar .lang .hover-drop.is-open .li-links,
.navbar .lang .hover-drop:focus-within .li-links {
  opacity: 1;
  visibility: visible;
  transform: translate(0, 2px);
}

/* Tablet & Mobile Layout Overrides (max-width: 991.98px) */
@media (max-width: 991.98px) {
  body {
    padding-top: 72px !important;
  }

  .header-nav {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    z-index: 999 !important;
    height: 72px !important;
    background: var(--navbar-bg) !important;
    backdrop-filter: blur(12px) !important;
    -webkit-backdrop-filter: blur(12px) !important;
    border-bottom: 1px solid var(--border-color) !important;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.03) !important;
    display: block !important;
  }

  .navbar {
    height: 100% !important;
    padding: 0 clamp(12px, 4vw, 22px) !important;
    display: flex !important;
    align-items: center !important;
  }

  .header-nav .container {
    height: 100% !important;
  }

  .navbar .upper-navbar {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: space-between !important;
    height: 100% !important;
    padding: 0 !important;
    position: relative !important;
    width: 100% !important;
    line-height: 0 !important;
  }

  .navbar .upper-navbar-side {
    width: auto !important;
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    flex-shrink: 0 !important;
    order: 1 !important;
    height: 44px !important;
    line-height: 0 !important;
    align-self: center !important;
  }

  /* Hide redundant socials and divider from mobile topbar */
  .navbar .upper-navbar-side .social-icons,
  .navbar .upper-navbar-side .separation-line {
    display: none !important;
  }

  .navbar .lang {
    margin: 0 !important;
    order: 2 !important;
    z-index: 25 !important;
    height: 44px !important;
    display: flex !important;
    align-items: center !important;
  }

  .navbar .lang .switch-langs {
    flex: 0 0 auto !important;
    height: 44px !important;
    display: flex !important;
    align-items: center !important;
  }

  .navbar .lang .hover-drop {
    position: relative !important;
    height: 44px !important;
    min-width: 44px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 0 !important;
    border-radius: 999px !important;
    background: #ffffff !important;
    border: 1px solid rgba(30, 58, 138, 0.12) !important;
    box-shadow: 0 8px 22px rgba(15, 23, 42, 0.08) !important;
  }

  .navbar .lang .lang-toggle {
    height: 44px !important;
    min-width: 44px !important;
    padding: 0 10px !important;
    border: 0 !important;
    background: transparent !important;
    color: var(--main-color) !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 6px !important;
    cursor: pointer !important;
    line-height: 1 !important;
    font-weight: 800 !important;
  }

  .navbar .lang .lang-toggle .lang-icon,
  .navbar .lang .lang-toggle .toggle-font-family {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    line-height: 1 !important;
  }

  .navbar .lang .lang-toggle .lang-icon {
    margin: 0 !important;
    line-height: 0 !important;
  }

  .navbar .lang .lang-toggle .toggle-font-family {
    max-width: 74px !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
    color: var(--main-color) !important;
    font-size: 0.82rem !important;
    margin: 0 !important;
  }

  .navbar .lang .hover-drop .lang-icon svg {
    width: 18px !important;
    height: 18px !important;
    margin: 0 !important;
    fill: var(--main-color) !important;
  }

  .navbar .lang .hover-drop .arrow {
    width: 16px !important;
    height: 16px !important;
    margin: 0 8px 0 0 !important;
    fill: var(--main-color) !important;
    opacity: 0.75 !important;
    flex-shrink: 0 !important;
    display: block !important;
    align-self: center !important;
  }

  .navbar .lang .hover-drop.is-open .arrow,
  .navbar .lang .hover-drop:focus-within .arrow {
    transform: rotate(180deg) !important;
  }

  .navbar .lang .li-links {
    top: calc(100% + 10px) !important;
    right: 0 !important;
    left: auto !important;
    transform: translateY(-6px) !important;
    z-index: 999 !important;
  }

  .navbar .lang .hover-drop:hover .li-links,
  .navbar .lang .hover-drop.is-open .li-links,
  .navbar .lang .hover-drop:focus-within .li-links {
    transform: translateY(0) !important;
  }

  .navbar .lang .li-links ul {
    width: max-content !important;
    min-width: 150px !important;
    margin-top: 0 !important;
    padding: 8px !important;
    background: #ffffff !important;
    border: 1px solid var(--border-color) !important;
    border-radius: 12px !important;
    box-shadow: 0 18px 35px rgba(15, 23, 42, 0.14) !important;
  }

  .navbar .lang .li-links ul li {
    margin: 0 !important;
  }

  .navbar .lang .li-links ul li a {
    display: block !important;
    padding: 9px 12px !important;
    border-radius: 8px !important;
    color: var(--p-color) !important;
    font-weight: 700 !important;
    white-space: nowrap !important;
  }

  .navbar .lang .li-links ul li:hover a {
    background: var(--accent-light) !important;
    color: var(--main-color) !important;
  }

  .nav-logo {
    position: static !important;
    order: 2 !important;
    width: auto !important;
    flex: 0 1 auto !important;
    min-width: 0 !important;
    height: 44px !important;
    display: flex !important;
    align-items: center !important;
    align-self: center !important;
  }

  .nav-logo .d-flex {
    position: static !important;
    justify-content: flex-end !important;
    min-width: 0 !important;
    height: 44px !important;
    align-items: center !important;
  }

  .nav-logo .nav-logo-container {
    position: static !important;
    transform: none !important;
    margin: 0 !important;
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1) !important;
    z-index: 20 !important;
    height: 44px !important;
    display: flex !important;
    align-items: center !important;
  }

  .nav-logo .nav-logo-container a {
    display: flex !important;
    align-items: center !important;
    height: 44px !important;
  }

  .nav-logo .nav-logo-container a img {
    display: block !important;
    height: 40px !important;
    width: auto !important;
    max-width: min(48vw, 210px) !important;
    object-fit: contain !important;
  }

  .page-scrolled .nav-logo .nav-logo-container {
    opacity: 1 !important;
    visibility: visible !important;
    transform: none !important;
  }

  /* Hide desktop down-nav-container */
  .down-nav-container {
    display: none !important;
  }

  .navbar .nav-search {
    display: none !important;
  }

  .nav-logo .nav-menu {
    display: none !important;
  }

  .navbar .upper-navbar-side .nav-menu {
    position: relative !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 44px !important;
    height: 44px !important;
    min-width: 44px !important;
    padding: 0 !important;
    margin: 0 !important;
    border: 0 !important;
    border-radius: 14px !important;
    background: var(--main-color) !important;
    color: #ffffff !important;
    box-shadow: 0 10px 24px rgba(30, 58, 138, 0.2) !important;
    cursor: pointer !important;
    z-index: 15 !important;
    order: 1 !important;
  }

  .navbar .upper-navbar-side .nav-menu .nav-menu-icon {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 24px !important;
    height: 24px !important;
    margin: 0 !important;
    line-height: 0 !important;
  }

  .navbar .upper-navbar-side .nav-menu .nav-menu-icon svg {
    height: 24px !important;
    width: 24px !important;
    fill: currentColor !important;
    transition: fill 0.3s ease;
  }

  /* --- Mobile Navigation Drawer (big-nav) --- */
  .big-nav {
    background: #ffffff !important;
    box-shadow: 0 0 60px rgba(0, 0, 0, 0.15) !important;
    display: flex !important;
    flex-direction: column !important;
    border: none !important;
    height: 100vh !important;
    height: 100dvh !important;
    overflow: hidden !important;
    z-index: 1050 !important;
  }

  .close-overlay {
    z-index: 1040 !important;
  }

  .big-nav .nav-links {
    display: flex !important;
    flex-direction: column !important;
    height: 100vh !important;
    min-height: 100vh !important;
    min-height: 100dvh !important;
    height: 100dvh !important;
    padding-bottom: 20px !important;
    overflow-y: auto !important;
  }

  /* Header: logo + close */
  .big-nav .big-nav-header-title {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    padding: 18px 22px !important;
    border-bottom: 1px solid #f0f0f0 !important;
    background: #ffffff !important;
  }

  .big-nav .nav-logo-container img {
    height: 38px !important;
    width: auto !important;
  }

  .big-nav .big-nav-header-title .close-big-nav {
    width: 36px !important;
    height: 36px !important;
    border-radius: 50% !important;
    background: #f5f5f5 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
  }

  .big-nav .big-nav-header-title .close-big-nav * {
    pointer-events: none !important;
  }

  .big-nav .big-nav-header-title .close-big-nav:hover {
    background: var(--main-color) !important;
    transform: rotate(90deg) !important;
  }

  .big-nav .big-nav-header-title .close-big-nav svg {
    fill: #444444 !important;
  }

  .big-nav .big-nav-header-title .close-big-nav:hover svg {
    fill: #ffffff !important;
  }

  /* Nav links list */
  .big-nav .nav-links ul {
    margin: 10px 0 !important;
    padding: 0 14px !important;
    flex-grow: 1 !important;
  }

  .big-nav .nav-links ul li {
    margin: 4px 0 !important;
    border: none !important;
  }

  .big-nav .nav-links ul li .li-link {
    padding: 0 !important;
    border-radius: 12px !important;
    transition: all 0.25s ease !important;
    overflow: hidden !important;
  }

  .big-nav .nav-links ul li .li-link .link-info a {
    display: flex !important;
    align-items: center !important;
    gap: 14px !important;
    padding: 13px 16px !important;
    color: #333333 !important;
    font-size: 1rem !important;
    font-weight: 500 !important;
    text-decoration: none !important;
    border-radius: 12px !important;
    transition: all 0.25s ease !important;
    border: 1px solid transparent !important;
    position: relative !important;
  }

  .big-nav .nav-links ul li .li-link:hover .link-info a {
    background: #f5f7ff !important;
    color: var(--main-color) !important;
    border-color: #e8eeff !important;
    transform: none !important;
  }

  html[dir="rtl"] .big-nav .nav-links ul li .li-link:hover .link-info a {
    transform: none !important;
  }

  /* CTA link (Admission) */
  .big-nav .nav-links ul li:last-child .li-link .link-info a {
    background: var(--main-color) !important;
    color: #ffffff !important;
    font-weight: 600 !important;
    justify-content: center !important;
    border-color: transparent !important;
    margin-top: 6px !important;
  }

  .big-nav .nav-links ul li:last-child .li-link:hover .link-info a {
    background: var(--accent-color) !important;
    color: #ffffff !important;
    border-color: transparent !important;
  }

  /* Drawer Footer */
  .mobile-drawer-footer {
    margin-top: auto !important;
    padding: 18px 22px 16px !important;
    border-top: 1px solid #f0f0f0 !important;
    background: #fafafa !important;
  }

  .drawer-contact-info {
    display: flex !important;
    flex-direction: column !important;
    gap: 10px !important;
    margin-bottom: 16px !important;
  }

  .drawer-contact-item {
    display: flex !important;
    align-items: center !important;
    gap: 12px !important;
    color: #555555 !important;
    text-decoration: none !important;
    font-size: 0.85rem !important;
    transition: color 0.25s ease !important;
  }

  .drawer-contact-item:hover {
    color: var(--main-color) !important;
  }

  .drawer-contact-item .icon-circle {
    width: 34px !important;
    height: 34px !important;
    border-radius: 10px !important;
    background: #f0f4ff !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    color: var(--main-color) !important;
    flex-shrink: 0 !important;
    transition: all 0.25s ease !important;
  }

  .drawer-contact-item:hover .icon-circle {
    background: var(--main-color) !important;
    color: #ffffff !important;
  }

  .drawer-socials {
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    justify-content: center !important;
    padding-top: 14px !important;
    border-top: 1px solid #f0f0f0 !important;
  }

  .drawer-social-link {
    width: 38px !important;
    height: 38px !important;
    border-radius: 10px !important;
    background: #f5f5f5 !important;
    border: 1px solid #e8e8e8 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    color: #555555 !important;
    transition: all 0.25s ease !important;
    text-decoration: none !important;
  }

  .drawer-social-link:hover {
    background: var(--main-color) !important;
    border-color: var(--main-color) !important;
    color: #ffffff !important;
    transform: translateY(-2px) !important;
  }

  .drawer-social-link--whatsapp:hover {
    background: #25d366 !important;
    border-color: #25d366 !important;
  }
}

@media (max-width: 420px) {
  .navbar .lang .lang-toggle .toggle-font-family {
    display: inline-flex !important;
  }

  .navbar .lang .lang-toggle {
    padding: 0 8px !important;
  }

  .navbar .lang .hover-drop .arrow {
    margin-inline-start: 4px !important;
    margin-inline-end: 0 !important;
  }

  .nav-logo .nav-logo-container a img {
    max-width: min(55vw, 190px) !important;
  }
}

/* Centering Footer Layout on Small screens (max-width: 767.98px) */
@media (max-width: 767.98px) {
  .footer-col {
    text-align: center !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
  }

  .footer-col__title {
    justify-content: center !important;
    width: 100% !important;
  }

  .footer-links {
    text-align: center !important;
    width: 100% !important;
  }

  .footer-links li {
    text-align: center !important;
    display: flex !important;
    justify-content: center !important;
  }

  .footer-links li a {
    justify-content: center !important;
  }

  .footer-logo {
    display: flex !important;
    justify-content: center !important;
    margin: 0 auto 20px !important;
  }

  .footer-contact-info {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    width: 100% !important;
  }

  .footer-contact-item {
    justify-content: center !important;
    text-align: center !important;
  }
}


/* =============================================
   ENGLISH / LTR DIRECTION LAYOUT OVERRIDES
   ============================================= */

html[dir="ltr"] body {
  direction: ltr !important;
  text-align: left !important;
}

html[dir="ltr"] .navbar .lang .li-links {
  left: auto !important;
  right: -25px !important;
  text-align: left !important;
}

html[dir="ltr"] .navbar .lang .li-links ul {
  text-align: left !important;
}

html[dir="ltr"] .navbar .lang {
  margin-inline-start: 15px !important;
  margin-inline-end: 0 !important;
}

@media (max-width: 991.98px) {
  html[dir="ltr"] .navbar .lang .li-links {
    left: 0 !important;
    right: auto !important;
  }

  html[dir="ltr"] .navbar .lang .hover-drop .arrow {
    margin: 0 0 0 8px !important;
  }

  /* Mobile drawer slide-in from left in LTR */
  html[dir="ltr"] .big-nav {
    right: auto !important;
    left: 0 !important;
    border-right: 1px solid rgba(255, 255, 255, 0.08) !important;
    border-left: none !important;
  }

  html[dir="ltr"] .big-nav-hiddin {
    transform: translate(-560px, 0) !important;
    opacity: 0 !important;
    z-index: -1 !important;
  }

  html[dir="ltr"] .big-nav .nav-links ul li .li-link:hover .link-info a {
    transform: translateX(4px) !important;
  }
}

/* FAQ / Accordion Section text-align LTR */
html[dir="ltr"] .fq .accordion .card-header .btn,
html[dir="ltr"] .fq .btn-link {
  text-align: left !important;
}

html[dir="ltr"] .fq .accordion .card-body,
html[dir="ltr"] .fq .card-body {
  text-align: left !important;
}

html[dir="ltr"] .fq .accordion .card-header h2 span,
html[dir="ltr"] .fq .accordion .card-header i {
  float: right !important;
}

/* Contact Details text-align LTR */
html[dir="ltr"] .contact .contact-info .contacts-line .contact-line .contact-line-part h6 {
  text-align: left !important;
}

/* Footer LTR Layout Flow and Alignment */
html[dir="ltr"] footer,
html[dir="ltr"] .site-footer {
  direction: ltr !important;
  text-align: left !important;
}

html[dir="ltr"] .footer-col--about {
  padding-left: 0 !important;
  padding-right: 30px !important;
}

html[dir="ltr"] .footer-col__title {
  justify-content: flex-start !important;
}

html[dir="ltr"] .footer-links {
  text-align: left !important;
}

html[dir="ltr"] .footer-links li {
  text-align: left !important;
}

html[dir="ltr"] .footer-links li a {
  justify-content: flex-start !important;
}

html[dir="ltr"] .footer-links li a:hover {
  padding-right: 0 !important;
  padding-left: 8px !important;
}

html[dir="ltr"] .footer-contact-info {
  align-items: flex-start !important;
}

html[dir="ltr"] .footer-contact-item {
  justify-content: flex-start !important;
  text-align: left !important;
}

html[dir="ltr"] .footer-bottom__inner {
  flex-direction: row !important;
}

html[dir="ltr"] .footer-bottom__copy {
  text-align: left !important;
}

@media (max-width: 767.98px) {
  html[dir="ltr"] .footer-col {
    text-align: center !important;
    align-items: center !important;
  }

  html[dir="ltr"] .footer-col__title {
    justify-content: center !important;
  }

  html[dir="ltr"] .footer-links {
    text-align: center !important;
  }

  html[dir="ltr"] .footer-links li {
    justify-content: center !important;
  }

  html[dir="ltr"] .footer-links li a {
    justify-content: center !important;
  }

  html[dir="ltr"] .footer-links li a:hover {
    padding-left: 0 !important;
    padding-right: 0 !important;
  }

  html[dir="ltr"] .footer-contact-info {
    align-items: center !important;
  }

  html[dir="ltr"] .footer-contact-item {
    justify-content: center !important;
    text-align: center !important;
  }

  html[dir="ltr"] .footer-bottom__copy {
    text-align: center !important;
  }
}


/* =============================================
   SUBPAGES DESIGN SYSTEM & COMPACT HERO
   ============================================= */

.layout-header {
  height: 220px !important;
  min-height: 220px !important;
}

.layout-header .swiper-container,
.layout-header .swiper-wrapper,
.layout-header .swiper-slide {
  height: 100% !important;
}

.layout-header .swiper-slider-content {
  height: 100% !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 0 !important;
  background: linear-gradient(to bottom, rgba(12, 25, 56, 0.7), rgba(12, 25, 56, 0.95)) !important;
}

.layout-header .swiper-slider-content-inner {
  text-align: center !important;
  margin: 0 !important;
}

.layout-header .swiper-slider-content h1 {
  font-size: 2.2rem !important;
  font-weight: 800 !important;
  color: #ffffff !important;
  margin: 0 !important;
  line-height: 1.2 !important;
}

.layout-header .swiper-slider-content p {
  display: none !important; /* Hide redundant descriptions in subpage headers */
}

@media (max-width: 767.98px) {
  .layout-header {
    height: 160px !important;
    min-height: 160px !important;
  }
  .layout-header .swiper-slider-content h1 {
    font-size: 1.6rem !important;
  }
}

/* Subpages Content Spacing */
.content {
  padding: 60px 0 !important;
  background-color: var(--body-bg) !important;
}

/* Subpage Card Components Integration with Design System */
.activity-card,
.job-card,
.album-card,
.team-card,
.contact-card,
.one-blog-main-image {
  background: #ffffff !important;
  border: 1px solid var(--border-color) !important;
  border-radius: 20px !important;
  box-shadow: 0 10px 30px -5px var(--shadow-color) !important;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1) !important;
  overflow: hidden !important;
  margin-bottom: 30px;
}

.activity-card:hover,
.job-card:hover,
.album-card:hover,
.team-card:hover,
.contact-card:hover {
  transform: translateY(-6px) !important;
  box-shadow: 0 20px 40px -5px var(--shadow-hover) !important;
  border-color: rgba(0, 90, 255, 0.15) !important;
}

/* Card image handling */
.activity-card figure,
.album-card figure,
.team-card figure {
  height: 200px !important;
  background-size: cover !important;
  background-position: center !important;
  margin: 0 !important;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

.activity-card:hover figure,
.album-card:hover figure {
  transform: scale(1.05) !important;
}

/* Card inner text styles */
.activity-info,
.album-info,
.team-info,
.contact-card-info,
.job-card-info {
  padding: 24px !important;
}

.activity-info h3,
.album-info h3,
.team-info h3,
.contact-card-info h3,
.job-card-info h3 {
  font-size: 1.15rem !important;
  font-weight: 700 !important;
  color: var(--main-color) !important;
  margin: 0 0 12px 0 !important;
  line-height: 1.4 !important;
}

.activity-info p,
.album-info p,
.team-info p,
.job-card-info p {
  font-size: 0.9rem !important;
  color: var(--subp-color) !important;
  line-height: 1.6 !important;
  margin-bottom: 15px !important;
}

/* Dark mode overrides for cards */
.dark .activity-card,
.dark .job-card,
.dark .album-card,
.dark .team-card,
.dark .contact-card,
.dark .one-blog-main-image {
  background: var(--glass-bg) !important;
  border-color: var(--glass-border) !important;
}

.dark .activity-info h3,
.dark .album-info h3,
.dark .team-info h3,
.dark .contact-card-info h3,
.dark .job-card-info h3 {
  color: #ffffff !important;
}

/* =============================================
   ALBUMS AND GALLERY PAGE STYLING
   ============================================= */

/* Capitalize subpage header titles in English */
html[dir="ltr"] .layout-header .swiper-slider-content h1 {
  text-transform: capitalize !important;
}

/* Album page card refinement */
.album-page {
  padding: 60px 0 !important;
}

.album-page .albums .album {
  height: 320px !important;
  border-radius: 20px !important;
  border: 1px solid var(--border-color) !important;
  box-shadow: 0 10px 30px -5px var(--shadow-color) !important;
  overflow: hidden !important;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1) !important;
  margin-bottom: 30px !important;
  background-color: #ffffff !important;
}

.album-page .albums .album:hover {
  transform: translateY(-6px) !important;
  box-shadow: 0 20px 40px -5px var(--shadow-hover) !important;
  border-color: rgba(0, 90, 255, 0.15) !important;
}

.album-page .albums .album .album-image {
  height: 100% !important;
  width: 100% !important;
  border-radius: 0 !important;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

.album-page .albums .album:hover .album-image {
  transform: scale(1.05) !important;
}

.album-page .albums .album .album-overlay {
  position: absolute !important;
  top: 0 !important;
  left: 0 !important;
  height: 100% !important;
  width: 100% !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  background: linear-gradient(to bottom, rgba(12, 25, 56, 0.1) 40%, rgba(12, 25, 56, 0.85) 100%) !important;
  z-index: 1 !important;
}

/* Float photo count badge top-start */
.album-page .albums .album .image-badges {
  position: absolute !important;
  top: 20px !important;
  left: 20px !important;
  right: auto !important;
  margin-bottom: 0 !important;
  z-index: 2 !important;
}

html[dir="rtl"] .album-page .albums .album .image-badges {
  left: auto !important;
  right: 20px !important;
}

.album-page .albums .album .image-badges .images-badge {
  display: inline-flex !important;
  align-items: center !important;
  gap: 6px !important;
  padding: 6px 14px !important;
  border-radius: 30px !important;
  background: var(--main-color) !important;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15) !important;
  color: #ffffff !important;
  font-size: 0.8rem !important;
  font-weight: 600 !important;
  border: 1px solid rgba(255, 255, 255, 0.15) !important;
}

.album-page .albums .album .image-badges .images-badge svg {
  width: 14px !important;
  height: 14px !important;
  fill: #ffffff !important;
}

/* Card content position and style */
.album-page .albums .album .album-content {
  position: absolute !important;
  bottom: 0 !important;
  left: 0 !important;
  right: 0 !important;
  width: 100% !important;
  padding: 24px !important;
  text-align: center !important;
  z-index: 2 !important;
}

.album-page .albums .album .album-content h2 {
  font-size: 1.2rem !important;
  font-weight: 700 !important;
  color: #ffffff !important;
  margin: 0 !important;
  padding: 0 !important;
  line-height: 1.4 !important;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5) !important;
}

/* Detail page gallery layout */
.album-page .gallery ul {
  list-style: none !important;
  padding: 0 !important;
  margin: 0 !important;
}

.album-page .gallery ul li {
  margin-bottom: 30px !important;
}

.album-page .gallery a {
  border-radius: 20px !important;
  box-shadow: 0 10px 30px -5px var(--shadow-color) !important;
  border: 1px solid var(--border-color) !important;
  height: 250px !important;
  overflow: hidden !important;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

.album-page .gallery a:hover {
  transform: translateY(-6px) !important;
  box-shadow: 0 20px 40px -5px var(--shadow-hover) !important;
  border-color: rgba(0, 90, 255, 0.15) !important;
}

.album-page .gallery a figure {
  height: 100% !important;
  width: 100% !important;
  transform: scale(1) !important;
  border-radius: 0 !important;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1) !important;
  margin: 0 !important;
}

.album-page .gallery a:hover figure {
  transform: scale(1.08) !important;
}

.album-page .gallery a .gal-overlay {
  background-color: rgba(12, 25, 56, 0.45) !important;
  backdrop-filter: blur(4px) !important;
  -webkit-backdrop-filter: blur(4px) !important;
  border-radius: 0 !important;
}

.album-page .gallery a .gal-overlay svg {
  width: 42px !important;
  height: 42px !important;
  fill: #ffffff !important;
  background: var(--main-color) !important;
  padding: 10px !important;
  border-radius: 50% !important;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25) !important;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

.album-page .gallery a:hover .gal-overlay svg {
  transform: scale(1.1) !important;
}

/* Dark mode compatibility */
.dark .album-page .albums .album {
  border-color: var(--glass-border) !important;
  background: var(--glass-bg) !important;
}

.dark .album-page .gallery a {
  border-color: var(--glass-border) !important;
  background: var(--glass-bg) !important;
}
