/* Theme variables - Red & Black Theme */
:root {
  --bg: #ffffff;
  --fg: #1f2937;
  --text-color: var(--fg);
  --muted: #6b7280;
  --primary: #ce1126; /* Egypt Red */
  --primary-dark: #a00d1e; /* Darker Red */
  --primary-light: rgba(206, 17, 38, 0.1);
  --secondary: #000000; /* Black */
  --secondary-dark: #1a1a1a; /* Dark Black */
  --accent-gradient: linear-gradient(135deg, #ce1126 0%, #000000 100%);
  --card-bg: #ffffff;
  --card-border: #e5e7eb;
  --shadow: 0 10px 24px rgba(0,0,0,.12);
}

/* Full-page animated background layer */
.animated-bg{ position: fixed; inset: 0; z-index: -1; pointer-events:none; overflow:hidden; }
.animated-bg::before, .animated-bg::after{
  content:""; position:absolute; inset:-20%; filter: blur(50px); opacity:.6; animation: swirl 18s ease-in-out infinite alternate;
  background: radial-gradient(30% 30% at 20% 30%, rgba(206, 17, 38, .2), transparent 60%),
              radial-gradient(28% 28% at 80% 20%, rgba(0, 0, 0, .15), transparent 60%),
              radial-gradient(25% 25% at 50% 80%, rgba(255,255,255,.6), transparent 60%);
}
.animated-bg::after{ animation-duration: 22s; animation-delay: -6s; transform: rotate(15deg); opacity:.5; }

@keyframes swirl { 0% { transform: translate3d(-2%, -2%, 0) scale(1); } 100% { transform: translate3d(2%, 1%, 0) scale(1.03); } }

html[data-theme="dark"] {
  --bg: #0f172a;
  --fg: #f3f4f6;
  --muted: #9ca3af;
  --primary: #818cf8; /* Lighter purple for dark mode */
  --primary-dark: #a78bfa;
  --primary-light: rgba(129, 140, 248, 0.15);
  --text-color: var(--fg);
  --card-bg: #1e293b;
  --card-border: #334155;
  --shadow: 0 14px 30px rgba(0,0,0,.6);
}

body {
  background: var(--bg);
  color: var(--fg);
  /* animated subtle background with red & black colors */
  background-image: 
    linear-gradient(135deg, rgba(206,17,38,.01) 0%, rgba(0,0,0,.01) 100%),
    linear-gradient(90deg, rgba(206,17,38,.02) 0%, transparent 50%, rgba(206,17,38,.02) 100%);
  background-size: 100% 100%, 200% 100%;
  animation: subtle-bg 20s ease-in-out infinite;
  transition: background .3s, color .3s;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.6;
}

/* Arabic Font Fix */
body[dir="rtl"] {
  font-family: 'Cairo', 'Tajawal', 'Segoe UI', Tahoma, sans-serif;
}

body[dir="rtl"] * {
  font-feature-settings: "liga" 1, "calt" 1;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

@keyframes bgFloat {
  0%   { background-position: left top, right top, 0 0; }
  100% { background-position: left 10% top 5%, right -5% top, 0 40px; }
}

.main-nav {
  background: var(--bg);
  border-bottom: 1px solid var(--card-border);
}
.brand-text{ font-weight:700; letter-spacing:.3px; }
.nav-link, .navbar-brand { color: var(--fg) !important; }
.nav-link:hover { color: var(--primary) !important; }
.logo { width: 36px; height: 36px; object-fit: contain; }
.admin-link { font-size: 1.1rem; }

.hero { background: linear-gradient(180deg, rgba(206, 17, 38, 0.08), rgba(206, 17, 38, 0)); border-radius: 16px; }

.action-card { background: var(--card-bg); border: 1px solid var(--card-border); border-radius: 14px; transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease; }
.action-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); border-color: var(--primary); }
.action-card .card-title { color: var(--fg); }
.action-card .card-text { color: var(--muted); }

/* Buttons and interactive elements */
.btn { transition: transform .12s ease, box-shadow .12s ease, background-color .12s ease, color .12s ease; }
.btn:active { transform: translateY(1px) scale(0.98); }
.btn-primary { background: var(--primary); border-color: var(--primary); }
.btn-primary:hover { box-shadow: 0 8px 18px rgba(206, 17, 38, .35); filter: brightness(1.1); }
.btn-outline-primary { border-color: var(--primary); color: var(--primary); }
.btn-outline-primary:hover { background: var(--primary-light); border-color: var(--primary); color: var(--primary); }

/* Accent CTA using brand gradient */
.btn-cta { background: linear-gradient(135deg, var(--primary), var(--secondary)); border: none; color: #fff; }
.btn-cta:hover { filter: brightness(1.1); box-shadow: 0 10px 20px rgba(206, 17, 38, .4); transform: translateY(-2px); }

/* Icon button for theme toggle */
.btn-icon { display:inline-flex; align-items:center; justify-content:center; width:40px; height:40px; border-radius:50%; border:1px solid var(--card-border); background: var(--card-bg); color: var(--fg); transition: background .15s ease, box-shadow .15s ease, transform .15s ease; }
.btn-icon:hover { box-shadow: var(--shadow); transform: translateY(-2px); }

/* Forms styling */
.form-control, .form-select { background: var(--card-bg); color: var(--fg); border-color: var(--card-border); }
.form-control:focus, .form-select:focus { box-shadow: 0 0 0 .2rem rgba(206, 17, 38, .25); border-color: var(--primary); }

/* Animated underline links */
a { position: relative; }
a.nav-link::after { content:""; position:absolute; inset:auto 0 -6px 0; height:2px; background: linear-gradient(90deg, var(--primary), var(--secondary)); transform: scaleX(0); transform-origin:left; transition: transform .2s ease; }
a.nav-link:hover::after { transform: scaleX(1); }

/* Utility for RTL spacing corrections */
[dir="rtl"] .me-2 { margin-left: .5rem !important; margin-right: 0 !important; }
[dir="rtl"] .ms-2 { margin-right: .5rem !important; margin-left: 0 !important; }

/* Container scaling */
.container {
  max-width: 1140px !important;
  margin-left: auto !important;
  margin-right: auto !important;
}

@media (min-width: 1400px) {
  .container {
    max-width: 1200px !important;
  }
}

/* Notification Badge */
.notification-badge {
  position: absolute;
  top: -8px;
  right: -8px;
  background: linear-gradient(135deg, #ce1126, #ff1744);
  color: white;
  font-size: 0.7rem;
  font-weight: 700;
  min-width: 20px;
  height: 20px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 6px;
  box-shadow: 0 2px 8px rgba(206, 17, 38, 0.4);
  animation: badge-pulse 2s ease-in-out infinite;
  z-index: 10;
}

@keyframes badge-pulse {
  0%, 100% {
    transform: scale(1);
    box-shadow: 0 2px 8px rgba(206, 17, 38, 0.4);
  }
  50% {
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(206, 17, 38, 0.6);
  }
}

/* Sections spacing */
section { scroll-margin-top: 80px; }

/* ================= Hero Landing ================= */
.hero-landing { min-height: 58vh; display:flex; align-items:center; position:relative; }
.hero-landing .hero-bg { position:absolute; inset:0; background-size:cover; background-position:center; filter:saturate(1.04) contrast(1.02); transform: scale(1.02); }
.hero-landing .hero-overlay { position:absolute; inset:0; background: linear-gradient(90deg, rgba(0,0,0,.55) 0%, rgba(0,0,0,.25) 45%, rgba(0,0,0,.05) 100%), linear-gradient(180deg, rgba(206,17,38,.20), rgba(0,0,0,0)); mix-blend-mode:multiply; }
.hero-landing .hero-title { text-shadow: 0 6px 28px rgba(0,0,0,.45); }

/* CTA buttons with Egypt colors */
.btn-cta-red { background:#ce1126; color:#fff; border:none; box-shadow:0 10px 22px rgba(206,17,38,.35); }
.btn-cta-red:hover { filter:brightness(1.05); transform: translateY(-2px); }
.btn-cta-dark { background:#000; color:#fff; border:none; box-shadow:0 10px 22px rgba(0,0,0,.35); }
.btn-cta-dark:hover { filter:brightness(1.1); transform: translateY(-2px); }

/* ====== Global animations for hover/click across site ====== */
.card, .btn, .nav-link, .form-control, .form-select { transition: all .2s ease; }
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.nav-link:active, .btn:active { transform: translateY(1px) scale(.98); }

/* Dark theme readability fixes */
html[data-theme="dark"] .text-muted { color: #cbd5e1 !important; }
html[data-theme="dark"] .link-light { color: #e5e7eb !important; }
html[data-theme="dark"] .table { color: var(--fg); }
html[data-theme="dark"] .table thead th { color: var(--fg); border-color: #374151; }
html[data-theme="dark"] .table tbody td { border-color: #1f2937; }
html[data-theme="dark"] .card { background: var(--card-bg); border-color: var(--card-border); }
html[data-theme="dark"] .btn-outline-primary { color: var(--primary); border-color: var(--primary); }
html[data-theme="dark"] .btn-outline-primary:hover { background: rgba(239,68,68,.12); }
html[data-theme="dark"] .dropdown-menu { background:#0f172a; color: var(--fg); border-color:#1f2937; }
html[data-theme="dark"] .dropdown-item { color: var(--fg); }
html[data-theme="dark"] .dropdown-item:hover { background: rgba(239,68,68,.12); }
html[data-theme="dark"] .navbar-toggler { border-color:#374151; }
html[data-theme="dark"] .navbar-toggler-icon { filter: invert(1) grayscale(1); }
/* Dark: clearer CTAs and stats strip */
html[data-theme="dark"] .btn-cta-dark { background:#111827; color:#fff; border:1px solid #374151; }

/* Testimonial Form Dark Mode Styling */
.testimonial-label {
  font-weight: 500;
  margin-bottom: 0.5rem;
}

.testimonial-input,
.testimonial-textarea {
  transition: all 0.2s ease;
}

.testimonial-input:read-only {
  background-color: #f8f9fa;
  cursor: not-allowed;
  opacity: 0.8;
}

html[data-theme="dark"] .testimonial-label {
  color: #e5e7eb !important;
  font-weight: 500;
}

html[data-theme="dark"] .testimonial-input,
html[data-theme="dark"] .testimonial-textarea {
  background-color: #1e293b !important;
  color: #f3f4f6 !important;
  border-color: #334155 !important;
}

html[data-theme="dark"] .testimonial-input:read-only {
  background-color: #0f172a !important;
  color: #9ca3af !important;
  cursor: not-allowed;
  opacity: 0.9;
}

html[data-theme="dark"] .testimonial-input:focus,
html[data-theme="dark"] .testimonial-textarea:focus {
  background-color: #1e293b !important;
  color: #f3f4f6 !important;
  border-color: #818cf8 !important;
  box-shadow: 0 0 0 0.2rem rgba(129, 140, 248, 0.25) !important;
}

html[data-theme="dark"] .testimonial-textarea::placeholder {
  color: #6b7280 !important;
}
html[data-theme="dark"] .stats-strip { background: linear-gradient(180deg, rgba(255,255,255,.05), rgba(255,255,255,0)); }
html[data-theme="dark"] .stats-strip .card { background:#0f172a; border-color:#1f2937; }
html[data-theme="dark"] .mini-donut { filter: drop-shadow(0 2px 6px rgba(0,0,0,.5)); }

/* Accents on focus/hover using Egypt palette */
.form-control:hover, .form-select:hover { border-color: var(--accent-red); }
.form-control:focus, .form-select:focus { border-color: var(--accent-red); box-shadow: 0 0 0 .2rem rgba(206,17,38,.2); }

/* Unify sections look */
.section-muted { background: rgba(255,255,255,.5); border: 1px solid var(--card-border); border-radius: 16px; }

/* ================= Compact stats strip ================= */
.stats-strip { background: linear-gradient(180deg, rgba(0,0,0,.03), rgba(0,0,0,0)); }
.stats-strip .card { min-height: 96px; }
.stats-strip .mini-donut { display:block; width:86px; height:86px; }
.stats-strip .h4 { font-weight:700; }

/* ===== Hero background override (replace pyramids) ===== */
.hero-landing .hero-bg{
  background: url('/images/students.png') center/cover no-repeat !important;
}
.hero-landing .hero-bg::before,
.hero-landing .hero-bg::after{
  background: none !important;
  content: none !important;
}

/* Bottom info section (like screenshot) */
.home-bottom-info{
  background: linear-gradient(180deg, rgba(0,0,0,.65), rgba(0,0,0,.65)), url('/images/students.png') center/cover no-repeat;
  color:#fff;
}

/* Animated brand section at page end */
.brand-end {
  background: linear-gradient(180deg, rgba(0,0,0,.02), rgba(0,0,0,0));
}
.logo-animated { width:120px; height:auto; filter: drop-shadow(0 12px 24px rgba(0,0,0,.25)); animation: floatPulse 5.5s ease-in-out infinite; }
@keyframes floatPulse { 0%,100%{ transform: translateY(0) scale(1);} 50%{ transform: translateY(-8px) scale(1.03);} }

/* ================= Ads Section Styles ================= */
.ads-section {
  background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
  padding: 100px 20px;
  position: relative;
  overflow: hidden;
}

.ads-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: 
    radial-gradient(circle at 20% 50%, rgba(206,17,38,0.08) 0%, transparent 50%),
    radial-gradient(circle at 80% 50%, rgba(0,0,0,0.05) 0%, transparent 50%);
  animation: gradientShift 15s ease-in-out infinite alternate;
  pointer-events: none;
}

@keyframes gradientShift {
  0% { opacity: 0.6; transform: scale(1); }
  100% { opacity: 0.8; transform: scale(1.1); }
}

.ads-container {
  max-width: 1400px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

.ads-title {
  text-align: center;
  color: #1f2937;
  font-size: 3.2rem;
  font-weight: 900;
  margin-bottom: 75px;
  text-shadow: 
    0 4px 24px rgba(0,0,0,0.15),
    0 2px 8px rgba(206,17,38,0.1);
  animation: fadeInDown 1s ease;
  letter-spacing: -1px;
  position: relative;
  padding-bottom: 20px;
}

.ads-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background: linear-gradient(90deg, transparent, #ce1126 50%, transparent);
  border-radius: 2px;
  box-shadow: 0 2px 10px rgba(206,17,38,0.4);
}

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

.ads-slider-wrapper {
  position: relative;
  width: 100%;
  height: 500px;
  perspective: 1500px;
}

.ads-slider {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.ad-card {
  position: absolute;
  width: 480px;
  height: 420px;
  border-radius: 30px;
  overflow: hidden;
  transition: all 0.8s cubic-bezier(0.34, 1.56, 0.64, 1);
  cursor: pointer;
  box-shadow: 
    0 30px 80px rgba(0,0,0,0.28),
    0 10px 30px rgba(0,0,0,0.15),
    inset 0 0 0 1px rgba(255,255,255,0.1);
  border: 4px solid rgba(255,255,255,0.95);
}

.ad-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    135deg, 
    rgba(206,17,38,0.2) 0%, 
    rgba(0,0,0,0.15) 50%,
    transparent 100%
  );
  z-index: 2;
  opacity: 0;
  transition: opacity 0.6s ease;
}

.ad-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    transparent 0%,
    transparent 70%,
    rgba(0,0,0,0.03) 100%
  );
  z-index: 1;
  pointer-events: none;
  opacity: 0.5;
}

.ad-card:hover::before {
  opacity: 1;
}

.ad-card-inner {
  position: relative;
  width: 100%;
  height: 100%;
  background: white;
}

.ad-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform 0.8s ease, filter 0.3s ease;
  display: block;
  image-rendering: -webkit-optimize-contrast;
  image-rendering: high-quality;
  image-rendering: -moz-crisp-edges;
  filter: none;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  -webkit-font-smoothing: antialiased;
  transform: translateZ(0);
  will-change: transform;
}

.ad-card.active .ad-image {
  filter: contrast(1.03) saturate(1.08) brightness(1.02) sharpen(1);
}

.ad-card:hover .ad-image {
  transform: scale(1.06) translateZ(0);
  filter: contrast(1.05) saturate(1.1) brightness(1.03);
}

/* Positioning for 3D carousel effect */
.ad-card.active {
  z-index: 5;
  transform: translateX(0) translateZ(50px) scale(1.08);
  opacity: 1;
  filter: blur(0);
  box-shadow: 
    0 35px 100px rgba(206,17,38,0.25),
    0 15px 50px rgba(0,0,0,0.3),
    0 0 0 6px rgba(255,255,255,0.5),
    inset 0 0 0 2px rgba(255,255,255,0.8);
  border-color: rgba(255,255,255,1);
}

.ad-card.prev {
  z-index: 3;
  transform: translateX(-380px) translateZ(-180px) scale(0.82) rotateY(22deg);
  opacity: 0.55;
  filter: blur(2px) brightness(0.88);
}

.ad-card.next {
  z-index: 3;
  transform: translateX(380px) translateZ(-180px) scale(0.82) rotateY(-22deg);
  opacity: 0.55;
  filter: blur(2px) brightness(0.88);
}

.ad-card.far-prev {
  z-index: 1;
  transform: translateX(-680px) translateZ(-380px) scale(0.65) rotateY(32deg);
  opacity: 0.3;
  filter: blur(3.5px) brightness(0.75);
}

.ad-card.far-next {
  z-index: 1;
  transform: translateX(680px) translateZ(-380px) scale(0.65) rotateY(-32deg);
  opacity: 0.3;
  filter: blur(3.5px) brightness(0.75);
}

.ad-card.hidden {
  opacity: 0;
  pointer-events: none;
  transform: translateZ(-700px) scale(0.4);
  filter: blur(8px);
}

/* Navigation Arrows */
.slider-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 70px;
  height: 70px;
  background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  backdrop-filter: blur(25px) saturate(180%);
  box-shadow: 
    0 8px 32px rgba(0,0,0,0.12),
    0 2px 8px rgba(0,0,0,0.08),
    inset 0 1px 0 rgba(255,255,255,0.8);
  border: 3px solid rgba(255,255,255,0.9);
}

.slider-nav::before {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(206,17,38,0.15), rgba(0,0,0,0.1));
  z-index: -1;
  opacity: 0;
  transition: opacity 0.3s;
}

.slider-nav:hover::before {
  opacity: 1;
}

.slider-nav:hover {
  background: linear-gradient(135deg, #ffffff 0%, #ffffff 100%);
  transform: translateY(-50%) scale(1.12);
  box-shadow: 
    0 16px 48px rgba(206,17,38,0.25),
    0 4px 16px rgba(0,0,0,0.12),
    inset 0 1px 0 rgba(255,255,255,1);
  border-color: rgba(206,17,38,0.2);
}

.slider-nav:active {
  transform: translateY(-50%) scale(1.02);
}

.slider-nav.prev-btn {
  left: 60px;
  animation: pulseLeft 3s ease-in-out infinite;
}

.slider-nav.next-btn {
  right: 60px;
  animation: pulseRight 3s ease-in-out infinite;
}

@keyframes pulseLeft {
  0%, 100% { transform: translateY(-50%) translateX(0); }
  50% { transform: translateY(-50%) translateX(-6px); }
}

@keyframes pulseRight {
  0%, 100% { transform: translateY(-50%) translateX(0); }
  50% { transform: translateY(-50%) translateX(6px); }
}

.slider-nav svg {
  width: 32px;
  height: 32px;
  fill: #ce1126;
  transition: all 0.3s;
  filter: drop-shadow(0 2px 4px rgba(206,17,38,0.2));
}

.slider-nav:hover svg {
  fill: #000000;
  transform: scale(1.15);
  filter: drop-shadow(0 3px 8px rgba(0,0,0,0.3));
}

/* Dots Indicator */
.slider-dots {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  margin-top: 50px;
}

.dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(31,41,55,0.4);
  cursor: pointer;
  transition: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
  border: 2px solid rgba(255,255,255,0.6);
  box-shadow: 
    0 3px 10px rgba(0,0,0,0.2),
    inset 0 1px 2px rgba(255,255,255,0.3);
  position: relative;
}

.dot::after {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 2px solid rgba(206,17,38,0);
  transition: all 0.3s;
}

.dot:hover {
  background: rgba(206,17,38,0.7);
  transform: scale(1.25);
  box-shadow: 
    0 4px 15px rgba(206,17,38,0.4),
    inset 0 1px 2px rgba(255,255,255,0.5);
}

.dot:hover::after {
  border-color: rgba(206,17,38,0.3);
}

.dot.active {
  background: linear-gradient(135deg, #ce1126 0%, #000000 100%);
  width: 48px;
  border-radius: 10px;
  box-shadow: 
    0 6px 20px rgba(206,17,38,0.5),
    0 2px 8px rgba(0,0,0,0.3),
    inset 0 1px 0 rgba(255,255,255,0.4);
  border-color: rgba(255,255,255,0.8);
}

.dot.active::after {
  inset: -5px;
  border-radius: 12px;
  border-color: rgba(206,17,38,0.2);
}

/* Responsive Ads Section */
@media (max-width: 1024px) {
  .ads-title {
    font-size: 2.5rem;
  }
  
  .ad-card {
    width: 400px;
    height: 350px;
  }
  
  .ad-card.prev,
  .ad-card.next {
    transform: translateX(-300px) translateZ(-150px) scale(0.75) rotateY(20deg);
  }
  
  .ad-card.next {
    transform: translateX(300px) translateZ(-150px) scale(0.75) rotateY(-20deg);
  }
}

@media (max-width: 768px) {
  .ads-section {
    padding: 60px 15px;
  }
  
  .ads-title {
    font-size: 2rem;
    margin-bottom: 50px;
  }

  .ads-slider-wrapper {
    height: 380px;
  }

  .ad-card {
    width: 320px;
    height: 300px;
  }
  
  .ad-card.active {
    transform: translateX(0) translateZ(20px) scale(1);
  }

  .ad-card.prev,
  .ad-card.next {
    transform: translateX(0) translateZ(-200px) scale(0.65);
    opacity: 0.35;
    filter: blur(4px) brightness(0.8);
  }

  .ad-card.far-prev,
  .ad-card.far-next {
    opacity: 0;
    transform: translateZ(-400px) scale(0.4);
  }

  .slider-nav {
    width: 50px;
    height: 50px;
  }
  
  .slider-nav svg {
    width: 22px;
    height: 22px;
  }

  .slider-nav.prev-btn {
    left: 15px;
  }

  .slider-nav.next-btn {
    right: 15px;
  }
  
  .slider-dots {
    margin-top: 35px;
    gap: 8px;
  }
  
  .dot {
    width: 8px;
    height: 8px;
  }
  
  .dot.active {
    width: 35px;
  }
}

@media (max-width: 480px) {
  .ads-title {
    font-size: 1.75rem;
  }
  
  .ads-slider-wrapper {
    height: 320px;
  }
  
  .ad-card {
    width: 280px;
    height: 260px;
  }
  
  .slider-nav {
    width: 45px;
    height: 45px;
  }
  
  .slider-nav.prev-btn {
    left: 10px;
  }

  .slider-nav.next-btn {
    right: 10px;
  }
}

/* ================= Testimonials Section ================= */
.testimonials-section {
  background: linear-gradient(180deg, #ffffff 0%, #f8f9fa 100%);
  padding: 100px 20px;
  position: relative;
  overflow: hidden;
}

.testimonials-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: 
    radial-gradient(circle at 15% 30%, rgba(206,17,38,0.03) 0%, transparent 50%),
    radial-gradient(circle at 85% 70%, rgba(0,0,0,0.02) 0%, transparent 50%);
  pointer-events: none;
}

.testimonials-container {
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

.testimonials-header {
  text-align: center;
  margin-bottom: 70px;
}

.testimonials-title {
  font-size: 3rem;
  font-weight: 900;
  color: #1f2937;
  margin-bottom: 15px;
  letter-spacing: -1px;
  text-shadow: 0 2px 20px rgba(0,0,0,0.08);
  position: relative;
  display: inline-block;
  padding-bottom: 20px;
}

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

.testimonials-subtitle {
  font-size: 1.1rem;
  color: #6b7280;
  font-weight: 400;
  margin-top: 25px;
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 30px;
  margin-top: 50px;
}

.testimonial-card {
  background: linear-gradient(135deg, #ffffff 0%, #fafafa 100%);
  border-radius: 25px;
  padding: 40px 35px;
  position: relative;
  box-shadow: 
    0 15px 45px rgba(0,0,0,0.08),
    0 5px 15px rgba(0,0,0,0.05),
    inset 0 1px 0 rgba(255,255,255,0.9);
  border: 2px solid rgba(255,255,255,0.8);
  transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  overflow: hidden;
}

.testimonial-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #ce1126, #000000);
  opacity: 0;
  transition: opacity 0.3s;
}

.testimonial-card:hover {
  transform: translateY(-8px);
  box-shadow: 
    0 25px 60px rgba(206,17,38,0.15),
    0 10px 25px rgba(0,0,0,0.1),
    inset 0 1px 0 rgba(255,255,255,1);
}

.testimonial-card:hover::before {
  opacity: 1;
}

.testimonial-quote-icon {
  position: absolute;
  top: 30px;
  right: 30px;
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(206,17,38,0.1), rgba(0,0,0,0.05));
  border-radius: 50%;
  opacity: 0.4;
  transition: all 0.3s;
}

.testimonial-card:hover .testimonial-quote-icon {
  opacity: 0.7;
  transform: scale(1.1);
}

.testimonial-quote-icon i {
  font-size: 2rem;
  color: #ce1126;
}

.testimonial-rating {
  display: flex;
  gap: 5px;
  margin-bottom: 20px;
}

.testimonial-rating i {
  color: #fbbf24;
  font-size: 1.1rem;
  filter: drop-shadow(0 2px 4px rgba(251,191,36,0.3));
  transition: transform 0.2s;
}

.testimonial-card:hover .testimonial-rating i {
  transform: scale(1.1);
}

.testimonial-rating i:nth-child(1) { transition-delay: 0s; }
.testimonial-rating i:nth-child(2) { transition-delay: 0.05s; }
.testimonial-rating i:nth-child(3) { transition-delay: 0.1s; }
.testimonial-rating i:nth-child(4) { transition-delay: 0.15s; }
.testimonial-rating i:nth-child(5) { transition-delay: 0.2s; }

.testimonial-content {
  font-size: 1rem;
  line-height: 1.8;
  color: #374151;
  margin-bottom: 30px;
  position: relative;
  padding-left: 15px;
  font-style: italic;
  min-height: 80px;
}

.testimonial-content::before {
  content: '"';
  position: absolute;
  left: 0;
  top: -5px;
  font-size: 3rem;
  color: #ce1126;
  opacity: 0.2;
  font-family: Georgia, serif;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 15px;
  padding-top: 25px;
  border-top: 2px solid rgba(0,0,0,0.05);
}

.author-avatar {
  width: 55px;
  height: 55px;
  border-radius: 50%;
  background: linear-gradient(135deg, #ce1126, #000000);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 4px 15px rgba(206,17,38,0.25);
  transition: transform 0.3s;
}

.testimonial-card:hover .author-avatar {
  transform: scale(1.1);
}

.author-avatar i {
  font-size: 2.2rem;
  color: white;
}

.author-info {
  flex: 1;
}

.author-name {
  font-size: 1.1rem;
  font-weight: 700;
  color: #1f2937;
  margin-bottom: 3px;
}

.author-title {
  font-size: 0.9rem;
  color: #6b7280;
  font-weight: 500;
}

/* Responsive Testimonials */
@media (max-width: 768px) {
  .testimonials-section {
    padding: 60px 15px;
  }

  .testimonials-title {
    font-size: 2.2rem;
  }

  .testimonials-subtitle {
    font-size: 1rem;
  }

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

  .testimonial-card {
    padding: 30px 25px;
  }

  .testimonial-quote-icon {
    width: 50px;
    height: 50px;
    top: 20px;
    right: 20px;
  }

  .testimonial-quote-icon i {
    font-size: 1.5rem;
  }
}

/* ================= Comments Section (About Page) ================= */
.comments-list {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.comment-card {
  background: linear-gradient(135deg, #ffffff 0%, #fafafa 100%);
  border-radius: 15px;
  padding: 20px;
  border: 2px solid rgba(0,0,0,0.06);
  box-shadow: 0 4px 15px rgba(0,0,0,0.06);
  transition: all 0.3s ease;
}

.comment-card:hover {
  transform: translateX(5px);
  box-shadow: 0 6px 20px rgba(206,17,38,0.12);
  border-color: rgba(206,17,38,0.15);
}

.comment-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
  padding-bottom: 12px;
  border-bottom: 2px solid rgba(0,0,0,0.05);
}

.comment-author {
  font-weight: 700;
  font-size: 1.05rem;
  color: #1f2937;
}

.comment-rating {
  display: flex;
  gap: 3px;
}

.comment-rating i {
  font-size: 0.9rem;
  color: #fbbf24;
  filter: drop-shadow(0 1px 2px rgba(251,191,36,0.3));
}

.comment-content {
  color: #4b5563;
  line-height: 1.6;
  font-size: 0.95rem;
}

/* ================= Star Rating Input ================= */
.star-rating {
  display: flex;
  flex-direction: row-reverse;
  justify-content: flex-end;
  gap: 8px;
  font-size: 2rem;
}

.star-rating input[type="radio"] {
  display: none;
}

.star-rating label {
  cursor: pointer;
  color: #d1d5db;
  transition: all 0.2s ease;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.1));
}

.star-rating label:hover,
.star-rating label:hover ~ label,
.star-rating input[type="radio"]:checked ~ label {
  color: #fbbf24;
  transform: scale(1.1);
  filter: drop-shadow(0 3px 6px rgba(251,191,36,0.4));
}

.star-rating label:active {
  transform: scale(0.95);
}

/* ================= Statistics Section (Circular) ================= */
.stats-section {
  background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
  padding: 100px 20px;
  position: relative;
  overflow: hidden;
  margin: auto;
}

.stats-section::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -10%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(206,17,38,0.05) 0%, transparent 70%);
  border-radius: 50%;
}

.stats-section::after {
  content: '';
  position: absolute;
  bottom: -50%;
  right: -10%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(0,0,0,0.03) 0%, transparent 70%);
  border-radius: 50%;
}

.stats-container {
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

.stats-header {
  text-align: center;
  margin-bottom: 80px;
}

.stats-title {
  font-size: 3rem;
  font-weight: 900;
  color: #1f2937;
  margin-bottom: 15px;
  letter-spacing: -1px;
  text-shadow: 0 2px 20px rgba(0,0,0,0.08);
  position: relative;
  display: inline-block;
  padding-bottom: 20px;
}

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

.stats-subtitle {
  font-size: 1.1rem;
  color: #6b7280;
  font-weight: 400;
  margin-top: 25px;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 50px;
  max-width: 1000px;
  margin: 0 auto;
}

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

.stat-circle {
  position: relative;
  width: 240px;
  height: 240px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.circle-svg {
  position: absolute;
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
  filter: drop-shadow(0 10px 30px rgba(0,0,0,0.1));
}

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

.circle-progress {
  fill: none;
  stroke: #ce1126;
  stroke-width: 12;
  stroke-linecap: round;
  stroke-dasharray: 534;
  stroke-dashoffset: 534;
  transition: stroke-dashoffset 2s cubic-bezier(0.4, 0, 0.2, 1);
}

.circle-progress.applications {
  stroke: #000000;
}

.circle-progress.comments {
  stroke: #fbbf24;
}

.stat-content {
  position: relative;
  z-index: 2;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.stat-icon {
  font-size: 3rem;
  color: #ce1126;
  margin-bottom: 5px;
  filter: drop-shadow(0 4px 12px rgba(206,17,38,0.25));
  animation: pulse-icon 3s ease-in-out infinite;
}

.stat-circle-card:nth-child(2) .stat-icon {
  color: #000000;
  filter: drop-shadow(0 4px 12px rgba(0,0,0,0.2));
}

.stat-circle-card:nth-child(3) .stat-icon {
  color: #fbbf24;
  filter: drop-shadow(0 4px 12px rgba(251,191,36,0.3));
}

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

.stat-number {
  font-size: 2.5rem;
  font-weight: 800;
  color: #1f2937;
  line-height: 1;
}

.stat-label {
  font-size: 1rem;
  font-weight: 600;
  color: #6b7280;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* Responsive Stats */
@media (max-width: 768px) {
  .stats-section {
    padding: 60px 15px;
  }

  .stats-title {
    font-size: 2.2rem;
  }

  .stats-subtitle {
    font-size: 1rem;
  }

  .stats-grid {
    gap: 40px;
  }

  .stat-circle {
    width: 200px;
    height: 200px;
  }

  .stat-icon {
    font-size: 2.5rem;
  }

  .stat-number {
    font-size: 2rem;
  }

  .stat-label {
    font-size: 0.9rem;
  }
}

/* ================= COMPREHENSIVE DARK MODE SUPPORT ================= */

/* Sections Backgrounds */
html[data-theme="dark"] .ads-section {
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
}

html[data-theme="dark"] .ads-section::before {
  background: 
    radial-gradient(circle at 20% 50%, rgba(129, 140, 248, 0.08) 0%, transparent 50%),
    radial-gradient(circle at 80% 50%, rgba(167, 139, 250, 0.05) 0%, transparent 50%);
}

html[data-theme="dark"] .testimonials-section {
  background: linear-gradient(180deg, #0f172a 0%, #1e293b 100%);
}

html[data-theme="dark"] .testimonials-section::before {
  background: 
    radial-gradient(circle at 15% 30%, rgba(129, 140, 248, 0.05) 0%, transparent 50%),
    radial-gradient(circle at 85% 70%, rgba(167, 139, 250, 0.03) 0%, transparent 50%);
}

html[data-theme="dark"] .stats-section {
  background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
}

html[data-theme="dark"] .stats-section::before,
html[data-theme="dark"] .stats-section::after {
  background: radial-gradient(circle, rgba(129, 140, 248, 0.08) 0%, transparent 70%);
}

html[data-theme="dark"] .section-muted {
  background: rgba(30, 41, 59, 0.5);
  border-color: var(--card-border);
}

html[data-theme="dark"] .hero {
  background: linear-gradient(180deg, rgba(129, 140, 248, 0.1), rgba(129, 140, 248, 0));
}

html[data-theme="dark"] .hero-landing .hero-overlay {
  background: linear-gradient(90deg, rgba(15, 23, 42, .75) 0%, rgba(15, 23, 42, .45) 45%, rgba(15, 23, 42, .15) 100%),
              linear-gradient(180deg, rgba(129, 140, 248, .15), rgba(15, 23, 42, 0));
}

html[data-theme="dark"] .home-bottom-info {
  background: linear-gradient(180deg, rgba(15, 23, 42, .85), rgba(15, 23, 42, .85)), url('/images/students.png') center/cover no-repeat;
}

/* Titles & Text */
html[data-theme="dark"] .ads-title,
html[data-theme="dark"] .testimonials-title,
html[data-theme="dark"] .stats-title {
  color: var(--fg);
  text-shadow: 0 4px 24px rgba(0,0,0,0.5);
}

html[data-theme="dark"] .ads-title::after,
html[data-theme="dark"] .testimonials-title::after,
html[data-theme="dark"] .stats-title::after {
  background: linear-gradient(90deg, transparent, var(--primary) 50%, transparent);
  box-shadow: 0 2px 10px rgba(129, 140, 248, 0.4);
}

html[data-theme="dark"] .testimonials-subtitle,
html[data-theme="dark"] .stats-subtitle {
  color: var(--muted);
}

html[data-theme="dark"] .stat-number,
html[data-theme="dark"] .author-name,
html[data-theme="dark"] .comment-author {
  color: var(--fg);
}

html[data-theme="dark"] .stat-label,
html[data-theme="dark"] .author-title {
  color: var(--muted);
}

/* Cards */
html[data-theme="dark"] .ad-card {
  box-shadow: 
    0 30px 80px rgba(0,0,0,0.6),
    0 10px 30px rgba(0,0,0,0.4),
    inset 0 0 0 1px rgba(129, 140, 248, 0.2);
  border-color: rgba(51, 65, 85, 0.8);
}

html[data-theme="dark"] .ad-card-inner {
  background: var(--card-bg);
}

html[data-theme="dark"] .ad-card::before {
  background: linear-gradient(
    135deg, 
    rgba(129, 140, 248, 0.3) 0%, 
    rgba(167, 139, 250, 0.2) 50%,
    transparent 100%
  );
}

html[data-theme="dark"] .ad-card.active {
  box-shadow: 
    0 35px 100px rgba(129, 140, 248, 0.3),
    0 15px 50px rgba(0,0,0,0.6),
    0 0 0 6px rgba(51, 65, 85, 0.5),
    inset 0 0 0 2px rgba(129, 140, 248, 0.3);
  border-color: rgba(129, 140, 248, 0.4);
}

html[data-theme="dark"] .testimonial-card,
html[data-theme="dark"] .comment-card {
  background: linear-gradient(135deg, var(--card-bg) 0%, #1a2332 100%);
  border-color: var(--card-border);
  box-shadow: 
    0 15px 45px rgba(0,0,0,0.4),
    0 5px 15px rgba(0,0,0,0.3),
    inset 0 1px 0 rgba(129, 140, 248, 0.1);
}

html[data-theme="dark"] .testimonial-card:hover,
html[data-theme="dark"] .comment-card:hover {
  box-shadow: 
    0 25px 60px rgba(129, 140, 248, 0.25),
    0 10px 25px rgba(0,0,0,0.4),
    inset 0 1px 0 rgba(129, 140, 248, 0.2);
  border-color: rgba(129, 140, 248, 0.3);
}

html[data-theme="dark"] .testimonial-card::before {
  background: linear-gradient(90deg, var(--primary), var(--primary-dark));
}

html[data-theme="dark"] .comment-card:hover {
  border-color: rgba(129, 140, 248, 0.3);
}

html[data-theme="dark"] .testimonial-content,
html[data-theme="dark"] .comment-content {
  color: var(--muted);
}

html[data-theme="dark"] .testimonial-content::before {
  color: var(--primary);
}

html[data-theme="dark"] .testimonial-quote-icon {
  background: linear-gradient(135deg, rgba(129, 140, 248, 0.15), rgba(167, 139, 250, 0.1));
}

html[data-theme="dark"] .testimonial-quote-icon i {
  color: var(--primary);
}

html[data-theme="dark"] .comment-header,
html[data-theme="dark"] .testimonial-author {
  border-color: rgba(51, 65, 85, 0.5);
}

/* Navigation Buttons */
html[data-theme="dark"] .slider-nav {
  background: linear-gradient(135deg, var(--card-bg) 0%, #1a2332 100%);
  border-color: var(--card-border);
  box-shadow: 
    0 8px 32px rgba(0,0,0,0.4),
    0 2px 8px rgba(0,0,0,0.3),
    inset 0 1px 0 rgba(129, 140, 248, 0.2);
}

html[data-theme="dark"] .slider-nav::before {
  background: linear-gradient(135deg, rgba(129, 140, 248, 0.2), rgba(167, 139, 250, 0.15));
}

html[data-theme="dark"] .slider-nav:hover {
  background: linear-gradient(135deg, #1a2332 0%, var(--card-bg) 100%);
  box-shadow: 
    0 16px 48px rgba(129, 140, 248, 0.35),
    0 4px 16px rgba(0,0,0,0.4),
    inset 0 1px 0 rgba(129, 140, 248, 0.3);
  border-color: rgba(129, 140, 248, 0.4);
}

html[data-theme="dark"] .slider-nav svg {
  fill: var(--primary);
  filter: drop-shadow(0 2px 4px rgba(129, 140, 248, 0.3));
}

html[data-theme="dark"] .slider-nav:hover svg {
  fill: var(--primary-dark);
  filter: drop-shadow(0 3px 8px rgba(167, 139, 250, 0.4));
}

/* Dots */
html[data-theme="dark"] .dot {
  background: rgba(129, 140, 248, 0.3);
  border-color: rgba(51, 65, 85, 0.8);
  box-shadow: 
    0 3px 10px rgba(0,0,0,0.4),
    inset 0 1px 2px rgba(129, 140, 248, 0.2);
}

html[data-theme="dark"] .dot::after {
  border-color: rgba(129, 140, 248, 0);
}

html[data-theme="dark"] .dot:hover {
  background: rgba(129, 140, 248, 0.7);
  box-shadow: 
    0 4px 15px rgba(129, 140, 248, 0.4),
    inset 0 1px 2px rgba(129, 140, 248, 0.3);
}

html[data-theme="dark"] .dot:hover::after {
  border-color: rgba(129, 140, 248, 0.3);
}

html[data-theme="dark"] .dot.active {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  box-shadow: 
    0 6px 20px rgba(129, 140, 248, 0.5),
    0 2px 8px rgba(0,0,0,0.4),
    inset 0 1px 0 rgba(255,255,255,0.2);
  border-color: rgba(129, 140, 248, 0.6);
}

html[data-theme="dark"] .dot.active::after {
  border-color: rgba(129, 140, 248, 0.3);
}

/* Circle Stats */
html[data-theme="dark"] .circle-bg {
  stroke: rgba(51, 65, 85, 0.5);
}

html[data-theme="dark"] .circle-progress {
  stroke: var(--primary);
}

html[data-theme="dark"] .circle-progress.applications {
  stroke: var(--primary-dark);
}

html[data-theme="dark"] .circle-progress.comments {
  stroke: #fbbf24;
}

html[data-theme="dark"] .stat-icon {
  color: var(--primary);
  filter: drop-shadow(0 4px 12px rgba(129, 140, 248, 0.4));
}

html[data-theme="dark"] .stat-circle-card:nth-child(2) .stat-icon {
  color: var(--primary-dark);
  filter: drop-shadow(0 4px 12px rgba(167, 139, 250, 0.4));
}

html[data-theme="dark"] .stat-circle-card:nth-child(3) .stat-icon {
  color: #fbbf24;
  filter: drop-shadow(0 4px 12px rgba(251, 191, 36, 0.4));
}

/* Avatar */
html[data-theme="dark"] .author-avatar {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  box-shadow: 0 4px 15px rgba(129, 140, 248, 0.4);
}

/* Star Ratings */
html[data-theme="dark"] .star-rating label {
  color: #4b5563;
}

html[data-theme="dark"] .testimonial-rating i,
html[data-theme="dark"] .comment-rating i {
  filter: drop-shadow(0 2px 4px rgba(251,191,36,0.5));
}

/* Forms in Dark Mode */
html[data-theme="dark"] .form-control:hover, 
html[data-theme="dark"] .form-select:hover {
  border-color: var(--primary);
}

html[data-theme="dark"] .form-control:focus, 
html[data-theme="dark"] .form-select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 .2rem rgba(129, 140, 248, .25);
}

/* Alerts & Badges */
html[data-theme="dark"] .alert {
  background: var(--card-bg);
  color: var(--fg);
  border-color: var(--card-border);
}

html[data-theme="dark"] .alert-success {
  background: rgba(16, 185, 129, 0.15);
  color: #10b981;
  border-color: rgba(16, 185, 129, 0.3);
}

html[data-theme="dark"] .badge {
  background: var(--card-bg);
  color: var(--fg);
}

/* Additional Elements */
html[data-theme="dark"] h1,
html[data-theme="dark"] h2,
html[data-theme="dark"] h3,
html[data-theme="dark"] h4,
html[data-theme="dark"] h5,
html[data-theme="dark"] h6 {
  color: var(--fg);
}

html[data-theme="dark"] p {
  color: var(--muted);
}

html[data-theme="dark"] .lead {
  color: var(--muted);
}

html[data-theme="dark"] a:not(.btn):not(.nav-link) {
  color: var(--primary);
}

html[data-theme="dark"] a:not(.btn):not(.nav-link):hover {
  color: var(--primary-dark);
}

/* CTA Buttons Dark Mode */
html[data-theme="dark"] .btn-cta-red {
  background: var(--primary);
  box-shadow: 0 10px 22px rgba(129, 140, 248, 0.35);
}

html[data-theme="dark"] .btn-cta-dark {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  box-shadow: 0 10px 22px rgba(0,0,0,0.5);
}

/* Stats Strip */
html[data-theme="dark"] .stats-strip {
  background: linear-gradient(180deg, rgba(129, 140, 248, 0.05), rgba(129, 140, 248, 0));
}

html[data-theme="dark"] .stats-strip .card {
  background: var(--card-bg);
  border-color: var(--card-border);
}

/* Brand End Section */
html[data-theme="dark"] .brand-end {
  background: linear-gradient(180deg, rgba(129, 140, 248, 0.05), rgba(129, 140, 248, 0));
}

/* Home: Universities section title color control */
/* Light Mode */
html:not([data-theme="dark"]) .modern-universities-section .section-title-modern {
  color: #000000 !important;
}
html:not([data-theme="dark"]) .modern-universities-section .section-tag {
  color: #000000 !important;
}
html:not([data-theme="dark"]) .modern-universities-section .section-subtitle-modern {
  color: #000000 !important;
}

/* Dark Mode */
html[data-theme="dark"] .modern-universities-section .section-title-modern {
  color: #ffffff !important;
}
html[data-theme="dark"] .modern-universities-section .section-tag {
  color: #ffffff !important;
}
html[data-theme="dark"] .modern-universities-section .section-subtitle-modern {
  color: #e5e7eb !important;
}

/* Dark mode fix for Bootstrap bg-light areas (e.g., Universities listing section) */
html[data-theme="dark"] .bg-light {
  background-color: #0f172a !important;
  background: #0f172a !important;
}
html[data-theme="dark"] .text-dark {
  color: #f3f4f6 !important;
}

/* Images & Media */
html[data-theme="dark"] .ad-image {
  filter: brightness(0.9) contrast(1.1);
}

html[data-theme="dark"] .ad-card.active .ad-image {
  filter: brightness(0.95) contrast(1.15) saturate(1.05);
}

html[data-theme="dark"] .ad-card:hover .ad-image {
  filter: brightness(1) contrast(1.2) saturate(1.1);
}

/* Lists */
html[data-theme="dark"] ul,
html[data-theme="dark"] ol {
  color: var(--muted);
}

html[data-theme="dark"] li {
  color: var(--muted);
}

/* Borders & Dividers */
html[data-theme="dark"] hr {
  border-color: var(--card-border);
  opacity: 0.3;
}

/* Shadows Enhancement */
html[data-theme="dark"] .shadow,
html[data-theme="dark"] .shadow-sm,
html[data-theme="dark"] .shadow-lg {
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.6) !important;
}
