/* Global heading animation for all main pages */
@keyframes olisHeadingIn {
    0% { opacity: 0; transform: translateY(20px); }
    100% { opacity: 1; transform: translateY(0); }
}

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

.page-header h1,
.page-header p,
.page-header-news h1,
.page-header-news p,
.page-header-gallery h1,
.page-header-gallery p,
.page-header-jobs h1,
.page-header-jobs p,
.page-header-portal h1,
.page-header-portal p,
.contact-hero-v2 h1,
.contact-hero-sub-v2,
.admissions-page .page-header h1,
.admissions-page .page-header p,
.animated-hero h1,
.animated-hero p,
.hero-title,
.hero-subtitle,
.section-title,
.section-subtitle,
main.site-main > section:first-of-type > h1 {
    animation: olisHeadingIn 0.9s ease both;
}

html[dir="rtl"] .page-header h1,
html[dir="rtl"] .page-header p,
html[dir="rtl"] .page-header-news h1,
html[dir="rtl"] .page-header-news p,
html[dir="rtl"] .page-header-gallery h1,
html[dir="rtl"] .page-header-gallery p,
html[dir="rtl"] .page-header-jobs h1,
html[dir="rtl"] .page-header-jobs p,
html[dir="rtl"] .page-header-portal h1,
html[dir="rtl"] .page-header-portal p,
html[dir="rtl"] .contact-hero-v2 h1,
html[dir="rtl"] .contact-hero-sub-v2,
html[dir="rtl"] .admissions-page .page-header h1,
html[dir="rtl"] .admissions-page .page-header p,
html[dir="rtl"] .animated-hero h1,
html[dir="rtl"] .animated-hero p,
html[dir="rtl"] .hero-title,
html[dir="rtl"] .hero-subtitle,
html[dir="rtl"] .section-title,
html[dir="rtl"] .section-subtitle,
html[dir="rtl"] main.site-main > section:first-of-type > h1 {
    text-align: center;
}

/* RTL: hero inner blocks (nested titles stay centered; overrides inherited start alignment) */
html[dir="rtl"] .olis-hero-inner,
html[dir="rtl"] .olis-hero-inner h1,
html[dir="rtl"] .olis-hero-inner p,
html[dir="rtl"] .hero-content-old.olis-hero-inner,
html[dir="rtl"] .hero-content-old.olis-hero-inner .hero-title,
html[dir="rtl"] .hero-content-old.olis-hero-inner .hero-subtitle,
html[dir="rtl"] .hero-content-old.olis-hero-inner .hero-text,
html[dir="rtl"] .contact-hero-v2 .container.olis-hero-inner,
html[dir="rtl"] .contact-hero-v2 .container.olis-hero-inner h1,
html[dir="rtl"] .contact-hero-v2 .contact-hero-sub-v2 {
    text-align: center !important;
}

/* Phone numbers & numeric strings: correct LTR in RTL layout */
html[dir="rtl"] .olis-ltr,
.olis-ltr {
    direction: ltr;
    unicode-bidi: isolate;
    display: inline-block;
    text-align: left;
}
a.olis-ltr {
    unicode-bidi: isolate;
}

/* Shared animated hero background (pages use .olis-hero-animated + .olis-hero-inner) */
@keyframes olisHeroGradient {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}
@keyframes olisHeroShimmer {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.88; }
}
.olis-hero-animated {
    position: relative;
    overflow: hidden;
    text-align: center;
    color: #fff;
    background: linear-gradient(135deg, var(--olis-primary-blue) 0%, var(--olis-turquoise) 45%, #1e3a8a 100%);
    background-size: 200% 200%;
    animation: olisHeroGradient 14s ease infinite;
}
.olis-hero-animated::before {
    content: '';
    position: absolute;
    inset: 0;
    pointer-events: none;
    background:
        radial-gradient(ellipse 80% 60% at 20% 30%, rgba(255, 255, 255, 0.14) 0%, transparent 55%),
        radial-gradient(ellipse 70% 50% at 85% 75%, rgba(255, 215, 0, 0.12) 0%, transparent 50%);
    animation: olisHeroShimmer 11s ease-in-out infinite;
}
.olis-hero-inner {
    position: relative;
    z-index: 2;
    max-width: 960px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 1rem;
    padding-right: 1rem;
}
.olis-hero-jobs.page-header-jobs {
    background: linear-gradient(135deg, #059669 0%, #047857 50%, #0f766e 100%) !important;
    background-size: 200% 200% !important;
    padding: clamp(3rem, 8vw, 5rem) 1.25rem !important;
    margin-bottom: 60px !important;
}

/* Jobs hero: match other animated heroes (gradient motion + flex layout) */
.page-header-jobs.animated-hero.olis-hero-animated {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 320px;
}
.animated-hero.olis-hero-programs {
    background: linear-gradient(135deg, var(--olis-turquoise) 0%, var(--olis-gold) 50%, #0891b2 100%) !important;
    background-size: 200% 200% !important;
}
.olis-hero-sitemap.olis-hero-animated {
    background: linear-gradient(135deg, var(--olis-turquoise) 0%, var(--olis-gold) 50%, #0d9488 100%) !important;
    background-size: 200% 200% !important;
}
.contact-hero-v2.olis-hero-animated {
    background: linear-gradient(135deg, #1e40af 0%, #3b82f6 100%) !important;
    background-size: 200% 200% !important;
}
.page-header-news.olis-hero-animated,
.page-header-gallery.olis-hero-animated,
.page-header-portal.olis-hero-animated {
    padding: clamp(3rem, 8vw, 5rem) 1.25rem;
    margin-bottom: 60px;
}
.admissions-page .page-header.olis-hero-animated {
    padding: clamp(3rem, 8vw, 5rem) 1.25rem;
    margin-bottom: 40px;
}
.hero-section-old.olis-hero-animated {
    background-size: 200% 200%;
    animation: olisHeroGradient 16s ease infinite;
}
.animated-hero.olis-hero-animated {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 320px;
    padding: clamp(3.5rem, 10vw, 6rem) 1.5rem;
}
/*
Theme Name: Orient Leaders International School - Enhanced
Theme URI: https://orientleaders.com/
Author: Orient Leaders IT Team
Author URI: https://orientleaders.com/
Description: Enhanced theme for Orient Leaders International School with secure login system and easy editing capabilities.
Version: 2.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: orient-leaders-enhanced
Tags: education, school, responsive, secure-login, database
*/

:root {
  /* Orient Leaders Brand Colors - From Logo */
  --olis-primary-blue: #2E4BC4;
  --olis-turquoise: #00BCD4;
  --olis-gold: #FFD700;
  --olis-black: #1a1a1a;
  --olis-white: #ffffff;
  --olis-light-gray: #f5f5f5;
  --olis-dark-gray: #333333;
  --olis-medium-gray: #777777;
}

/* Hide reCAPTCHA v3 badge site-wide (privacy/clean UI; reCAPTCHA still runs in background) */
.grecaptcha-badge {
  visibility: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

/* Reset and Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  line-height: 1.6;
  color: var(--olis-dark-gray);
  background-color: var(--olis-white);
}

/* Enhanced Header with Logo */
.site-header {
  background: linear-gradient(135deg, var(--olis-primary-blue) 0%, var(--olis-turquoise) 100%);
  color: var(--olis-white);
  padding: 0;
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1000;
  box-shadow: 0 2px 15px rgba(46, 75, 196, 0.2);
}

.header-content {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.8rem 2rem;
}

.site-logo {
  display: flex;
  align-items: center;
  text-decoration: none;
  color: var(--olis-white);
}

.logo-image {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  margin-right: 1rem;
  background: var(--olis-white);
  padding: 3px;
  box-shadow: 0 3px 15px rgba(255, 255, 255, 0.3);
}

.logo-text {
  font-size: 1.2rem;
  font-weight: 700;
  line-height: 1.2;
}

.main-navigation ul {
  display: flex;
  list-style: none;
  gap: 2rem;
  margin: 0;
}

.main-navigation a {
  color: var(--olis-white);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
  transition: all 0.3s ease;
  padding: 0.5rem 1rem;
  border-radius: 6px;
}

.main-navigation a:hover {
  color: var(--olis-gold);
  background: rgba(255, 255, 255, 0.1);
}

/* Login Button in Navigation */
.login-btn {
  background: var(--olis-gold) !important;
  color: var(--olis-primary-blue) !important;
  font-weight: 600;
  padding: 0.6rem 1.2rem !important;
  border-radius: 25px !important;
  box-shadow: 0 3px 12px rgba(255, 215, 0, 0.3);
}

.login-btn:hover {
  background: #f9c300 !important;
  color: var(--olis-black) !important;
  transform: translateY(-2px);
}

/* Main Content */
.site-main {
  padding-top: 90px;
  min-height: 100vh;
}

/* Header nav - light and dark mode: #61a5f9 */
.main-nav-old a,
body.dark-mode .main-nav-old a {
  color: #61a5f9 !important;
}

.main-nav-old a:hover,
body.dark-mode .main-nav-old a:hover {
  color: #2dbaac !important;
}

/* Dark mode base - use #61a5f9 and #2dbaac instead of white/e6e7eb */
body.dark-mode {
  background-color: #020617;
  color: #61a5f9;
}

body.dark-mode a {
  color: #61a5f9;
}

body.dark-mode .site-header-old {
  background: #0b1120;
  box-shadow: 0 2px 15px rgba(15, 23, 42, 0.7);
}

body.dark-mode .header-top {
  background: linear-gradient(135deg, #020617 0%, #0b1120 100%);
}

body.dark-mode .header-top span,
body.dark-mode .header-social a {
  color: #61a5f9 !important;
}

body.dark-mode .header-main {
  background: linear-gradient(180deg, #0f172a 0%, #1e293b 100%);
}

body.dark-mode .logo-old a {
  color: #e2e8f0;
}

body.dark-mode .school-name h1 {
  color: #f1f5f9 !important;
}

body.dark-mode .school-name p {
  color: #34d399 !important;
}

body.dark-mode .mobile-toggle span {
  background: #e2e8f0;
}

body.dark-mode .card,
body.dark-mode .dashboard-card,
body.dark-mode .auth-container,
body.dark-mode .form-container-contact,
body.dark-mode .form-container-jobs {
  background: #0f172a !important;
  color: #61a5f9 !important;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.7);
}

body.dark-mode .card-title,
body.dark-mode .section-title {
  color: #61a5f9;
}

body.dark-mode .card-text,
body.dark-mode p {
  color: #2dbaac;
}

body.dark-mode .site-footer {
  background: #020617;
  border-top: 1px solid #1e293b;
}

body.dark-mode .footer-section p,
body.dark-mode .footer-section a {
  color: #61a5f9;
}

body.dark-mode .hero-section-old:not(.olis-hero-animated) {
  background: radial-gradient(circle at top, #1e293b 0%, #020617 60%);
}

.theme-toggle-btn {
  margin-left: 1rem;
  background: transparent;
  border: 2px solid rgba(255,255,255,0.7);
  border-radius: 999px;
  padding: 6px 12px;
  color: #1e40af;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.9rem;
  transition: all 0.25s ease;
}

.theme-toggle-btn .theme-toggle-icon {
  display: flex;
  align-items: center;
  justify-content: center;
}

.theme-toggle-btn i {
  color: #1e40af;
}

body.dark-mode .theme-toggle-btn {
  border-color: rgba(248, 250, 252, 0.8);
}

body.dark-mode .theme-toggle-btn i {
  color: #fbbf24;
}

/* Enhanced Intro Section */
.intro-section {
  background: linear-gradient(135deg, var(--olis-primary-blue) 0%, var(--olis-turquoise) 100%);
  color: var(--olis-white);
  text-align: center;
  padding: 4rem 2rem;
  position: relative;
  overflow: hidden;
}

.intro-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="20" cy="20" r="2" fill="rgba(255,255,255,0.1)"/><circle cx="80" cy="40" r="1" fill="rgba(255,255,255,0.1)"/><circle cx="40" cy="80" r="1.5" fill="rgba(255,255,255,0.1)"/></svg>');
  animation: float 20s infinite linear;
}

@keyframes float {
  0% { transform: translateX(0%); }
  100% { transform: translateX(100%); }
}

.intro-logo {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  background: var(--olis-white);
  padding: 12px;
  margin: 0 auto 2rem auto;
  display: block;
  box-shadow: 0 8px 40px rgba(255, 255, 255, 0.3);
  position: relative;
  z-index: 2;
  transition: transform 0.3s ease;
}

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

.intro-title {
  font-size: 3rem;
  font-weight: 700;
  margin-bottom: 1rem;
  line-height: 1.2;
  position: relative;
  z-index: 2;
}

.intro-subtitle {
  font-size: 1.4rem;
  opacity: 0.95;
  max-width: 700px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

/* Enhanced Hero Section */
.hero-section {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  background: var(--olis-white);
  padding: 5rem 2rem;
  gap: 4rem;
}

.hero-content {
  max-width: 550px;
  flex: 1;
}

.hero-title {
  color: var(--olis-primary-blue);
  font-size: 2.4rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  line-height: 1.3;
}

.hero-description {
  font-size: 1.2rem;
  color: var(--olis-medium-gray);
  margin-bottom: 2.5rem;
  line-height: 1.7;
}

.hero-image {
  max-width: 320px;
  width: 100%;
  border-radius: 16px;
  box-shadow: 0 12px 40px rgba(46, 75, 196, 0.15);
  flex-shrink: 0;
}

/* Enhanced Buttons */
.btn, .enroll-btn {
  display: inline-block;
  padding: 1rem 2.5rem;
  font-size: 1.1rem;
  font-weight: 600;
  text-decoration: none;
  border-radius: 50px;
  transition: all 0.3s ease;
  cursor: pointer;
  border: none;
  text-align: center;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.btn-primary, .enroll-btn {
  background: var(--olis-gold);
  color: var(--olis-primary-blue);
}

.btn-primary:hover, .enroll-btn:hover {
  background: #f9c300;
  transform: translateY(-3px);
  box-shadow: 0 8px 30px rgba(255, 215, 0, 0.4);
}

.btn-secondary {
  background: var(--olis-turquoise);
  color: var(--olis-white);
}

.btn-secondary:hover {
  background: #00acc1;
  transform: translateY(-3px);
}

/* Login Modal Styles */
.login-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 10001;
  backdrop-filter: blur(5px);
}

.login-modal.hidden { display: none; }

.login-content {
  background: var(--olis-white);
  border-radius: 20px;
  padding: 3rem;
  max-width: 450px;
  width: 90%;
  text-align: center;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.login-header {
  margin-bottom: 2rem;
}

.login-logo {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  margin: 0 auto 1rem;
  display: block;
}

.login-title {
  color: var(--olis-primary-blue);
  font-size: 1.8rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.login-subtitle {
  color: var(--olis-medium-gray);
  font-size: 1rem;
}

.login-form {
  text-align: left;
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 500;
  color: var(--olis-dark-gray);
}

.form-input {
  width: 100%;
  padding: 1rem;
  border: 2px solid #e0e0e0;
  border-radius: 12px;
  font-size: 1rem;
  transition: border-color 0.3s ease;
}

.form-input:focus {
  outline: none;
  border-color: var(--olis-turquoise);
  box-shadow: 0 0 0 3px rgba(0, 188, 212, 0.1);
}

.login-error {
  background: #ffebee;
  color: #c62828;
  padding: 1rem;
  border-radius: 8px;
  margin-bottom: 1rem;
  font-size: 0.9rem;
  display: none;
}

.login-success {
  background: #e8f5e8;
  color: #2e7d32;
  padding: 1rem;
  border-radius: 8px;
  margin-bottom: 1rem;
  font-size: 0.9rem;
  display: none;
}

/* User Dashboard Styles */
.user-dashboard {
  background: var(--olis-light-gray);
  min-height: 100vh;
  padding: 2rem 0;
}

.dashboard-header {
  background: var(--olis-white);
  padding: 2rem;
  margin-bottom: 2rem;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.dashboard-welcome {
  color: var(--olis-primary-blue);
  font-size: 1.8rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.dashboard-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

.dashboard-card {
  background: var(--olis-white);
  border-radius: 12px;
  padding: 2rem;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease;
}

.dashboard-card:hover {
  transform: translateY(-5px);
}

/* Content Sections */
.content-section {
  padding: 5rem 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.section-title {
  font-size: 2.8rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: 1rem;
  color: var(--olis-primary-blue);
}

.section-subtitle {
  text-align: center;
  font-size: 1.3rem;
  color: var(--olis-medium-gray);
  margin-bottom: 4rem;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

/* Enhanced Card Grid */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 2.5rem;
  margin: 4rem 0;
}

.card {
  background: var(--olis-white);
  border-radius: 16px;
  padding: 2.5rem;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  border: 1px solid rgba(46, 75, 196, 0.1);
  position: relative;
  overflow: hidden;
}

.card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--olis-turquoise), var(--olis-gold));
}

.card:hover {
  transform: translateY(-8px);
  box-shadow: 0 15px 50px rgba(0, 0, 0, 0.15);
}

.card-title {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 1.2rem;
  color: var(--olis-primary-blue);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.card-text {
  color: var(--olis-medium-gray);
  line-height: 1.7;
  font-size: 1.05rem;
}

/* Footer Styles */
.site-footer {
  background: var(--olis-black);
  color: var(--olis-white);
  padding: 4rem 2rem 2rem;
  margin-top: 5rem;
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 3rem;
}

.footer-section h3 {
  color: var(--olis-gold);
  margin-bottom: 1.5rem;
  font-size: 1.3rem;
}

.footer-section p,
.footer-section a {
  color: var(--olis-white);
  text-decoration: none;
  line-height: 1.8;
  font-size: 1rem;
  transition: color 0.3s ease;
}

.footer-section a:hover {
  color: var(--olis-turquoise);
}

.footer-bottom {
  text-align: center;
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid var(--olis-medium-gray);
  color: var(--olis-light-gray);
  font-size: 0.95rem;
}

/* Responsive Design */
@media (max-width: 768px) {
  .header-content {
    flex-direction: column;
    padding: 1rem;
    gap: 1rem;
  }
  
  .intro-title {
    font-size: 2.2rem;
  }
  
  .hero-section {
    flex-direction: column;
    gap: 2rem;
    padding: 3rem 1rem;
  }
  
  .hero-title {
    font-size: 2rem;
  }
  
  .section-title {
    font-size: 2.2rem;
  }
  
  .card-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  
  .login-content {
    padding: 2rem;
  }
}

/* Accessibility */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Loading Animation */
.loading {
  display: inline-block;
  width: 20px;
  height: 20px;
  border: 3px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  border-top-color: #fff;
  animation: spin 1s ease-in-out infinite;
}

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

/* Cookie banner */
.cookie-banner-new {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(15, 23, 42, 0.96);
  color: #e5e7eb;
  padding: 1rem 1.5rem;
  font-size: 0.95rem;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1rem;
  z-index: 9999;
}

.cookie-banner-new .accept-cookies-btn {
  background: #22c55e;
  border: none;
  color: #0f172a;
  font-weight: 600;
  padding: 0.4rem 1rem;
  border-radius: 999px;
  cursor: pointer;
}

body.dark-mode .cookie-banner-new {
  background: rgba(15, 23, 42, 0.98);
  color: #61a5f9;
}

/* ===== DARK MODE PAGE BLOCKS ===== */
/* About: Mission/Vision, page header, Quick Facts, Educational Approach, Achievements */
body.dark-mode .animated-hero:not(.olis-hero-animated),
body.dark-mode .content-section[style*="background: var(--olis-light-gray)"],
body.dark-mode .content-section[style*="background: var(--olis-light-gray)"] .card,
body.dark-mode .content-section > div[style*="linear-gradient"][style*="olis-light-gray"],
body.dark-mode .content-section > div[style*="background: white"] {
  background: #0f172a !important;
  color: #61a5f9 !important;
}
body.dark-mode .content-section ul,
body.dark-mode .content-section li {
  color: #2dbaac;
}

/* Admissions: page header, fees, fee-info, requirements, application form, Admissions Office */
body.dark-mode .admissions-page .page-header:not(.olis-hero-animated),
body.dark-mode .admissions-page .fee-card,
body.dark-mode .admissions-page .fee-info,
body.dark-mode .admissions-page .requirement-card,
body.dark-mode .admissions-page .application-form-container,
body.dark-mode .admissions-page .section > div:last-child,
body.dark-mode .admissions-page .contact-card {
  background: #0f172a !important;
  color: #61a5f9 !important;
  border-color: #1e293b !important;
}
body.dark-mode .admissions-page .page-header h1,
body.dark-mode .admissions-page .section h2,
body.dark-mode .admissions-page .fee-card h3,
body.dark-mode .admissions-page .fee-info h3,
body.dark-mode .admissions-page .requirement-card h3 {
  color: #61a5f9 !important;
}
body.dark-mode .admissions-page .fee-info ul li,
body.dark-mode .admissions-page .requirement-card ul li {
  color: #2dbaac;
}

/* Programs: page header, Why Choose, EYFS, Key Stage blocks, Extracurricular */
body.dark-mode .program-card,
body.dark-mode .activity-card,
body.dark-mode .key-stage-section > div[style*="background: white"],
body.dark-mode .content-section > div[style*="background: linear-gradient"][style*="olis-light-gray"],
body.dark-mode .content-section > div[style*="background: white"],
body.dark-mode .content-section[style*="background: var(--olis-light-gray)"] .activity-card {
  background: #0f172a !important;
  color: #61a5f9 !important;
}
body.dark-mode .activity-card h3,
body.dark-mode .activity-card p {
  color: #61a5f9 !important;
}
body.dark-mode .activity-card p {
  color: #2dbaac !important;
}

/* Gallery: page header (flat fallback when not animated) */
body.dark-mode .page-header-gallery:not(.olis-hero-animated) {
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 50%, #0f172a 100%) !important;
  color: #61a5f9 !important;
}

/* ========== Dark mode: Home page ========== */
body.dark-mode .stats-section-old,
body.dark-mode .stats-section-old .container {
  background: #0f172a !important;
  color: #61a5f9 !important;
}
body.dark-mode .stat-item-old,
body.dark-mode .stat-number-old,
body.dark-mode .stat-label-old {
  color: #61a5f9 !important;
}
body.dark-mode .why-choose-section,
body.dark-mode .why-choose-section .section-title,
body.dark-mode .why-choose-section .section-subtitle {
  background: #0f172a !important;
  color: #61a5f9 !important;
}
body.dark-mode .feature-box {
  background: #1e293b !important;
  color: #61a5f9 !important;
  border-color: #334155 !important;
}
body.dark-mode .feature-box h3,
body.dark-mode .feature-box p {
  color: #61a5f9 !important;
}
body.dark-mode .feature-box p {
  color: #94a3b8 !important;
}
body.dark-mode .latest-news-old,
body.dark-mode .latest-news-old .section-title,
body.dark-mode .latest-news-old .section-subtitle {
  background: #0f172a !important;
  color: #61a5f9 !important;
}
body.dark-mode .news-card-old {
  background: #1e293b !important;
  color: #61a5f9 !important;
  border-color: #334155 !important;
}
body.dark-mode .news-card-old h3,
body.dark-mode .news-card-old p,
body.dark-mode .news-card-old .news-date-old,
body.dark-mode .news-card-old .news-badge-old {
  color: #61a5f9 !important;
}
body.dark-mode .programs-overview,
body.dark-mode .programs-overview .section-title,
body.dark-mode .programs-overview .section-subtitle {
  background: #0f172a !important;
  color: #61a5f9 !important;
}
body.dark-mode .program-card-old {
  background: #1e293b !important;
  color: #61a5f9 !important;
  border-color: #334155 !important;
}
body.dark-mode .program-card-old h3,
body.dark-mode .program-card-old p {
  color: #61a5f9 !important;
}

/* ========== Dark mode: About page – Quick Facts & British Curriculum ========== */
body.dark-mode .about-quick-facts-block,
body.dark-mode .about-british-curriculum-block {
  background: #1e293b !important;
  color: #61a5f9 !important;
}
body.dark-mode .about-quick-facts-block h3,
body.dark-mode .about-quick-facts-block li,
body.dark-mode .about-british-curriculum-block h3,
body.dark-mode .about-british-curriculum-block p {
  color: #61a5f9 !important;
}

/* ========== Dark mode: Programs page – light blocks ========== */
body.dark-mode .programs-why-block,
body.dark-mode .programs-eyfs-section {
  background: #1e293b !important;
  color: #61a5f9 !important;
}
body.dark-mode .programs-why-block h3,
body.dark-mode .programs-why-block h4,
body.dark-mode .programs-why-block p,
body.dark-mode .programs-eyfs-section .program-card {
  color: #61a5f9 !important;
}
body.dark-mode .content-section > div[style*="background: linear-gradient(135deg, var(--olis-light-gray)"] {
  background: #1e293b !important;
}
body.dark-mode .content-section[style*="background: var(--olis-light-gray)"] {
  background: #0f172a !important;
}

/* ========== Dark mode: News page – header and all blocks ========== */
body.dark-mode .page-header-news:not(.olis-hero-animated) {
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 50%, #0f172a 100%) !important;
  color: #61a5f9 !important;
}
body.dark-mode .news-page-full {
  background: #0f172a !important;
}
body.dark-mode .news-article-card,
body.dark-mode .newsletter-box,
body.dark-mode .newsletter-section .newsletter-box,
body.dark-mode .quick-link-news,
body.dark-mode .news-quick-links {
  background: #1e293b !important;
  color: #61a5f9 !important;
  border-color: #334155 !important;
}
body.dark-mode .news-article-card h2,
body.dark-mode .news-article-card .news-article-date,
body.dark-mode .news-article-card .news-article-content,
body.dark-mode .newsletter-box h2,
body.dark-mode .newsletter-box p,
body.dark-mode .news-quick-links h2,
body.dark-mode .quick-link-news {
  color: #61a5f9 !important;
}

body.dark-mode .news-article-sharebar {
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.12) 0%, rgba(16, 185, 129, 0.1) 100%) !important;
  border-color: #334155 !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

body.dark-mode .news-article-qr-wrap {
  background: rgba(15, 23, 42, 0.65) !important;
  border-color: #475569 !important;
}

body.dark-mode .news-share-btn {
  background: rgba(15, 23, 42, 0.9) !important;
  border-color: #475569 !important;
  color: #93c5fd !important;
}

body.dark-mode .news-share-btn:hover {
  background: #0f172a !important;
  border-color: #60a5fa !important;
  color: #bfdbfe !important;
}

/* ========== Jobs page: opening cards in dark mode ========== */
body.dark-mode .jobs-page-new .opening-card,
body.dark-mode .jobs-page-new .opening-card-v2 {
  background: #1e293b !important;
  color: #e2e8f0 !important;
  border-left-color: #34d399 !important;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.35) !important;
}

body.dark-mode .jobs-page-new .opening-card h3,
body.dark-mode .jobs-page-new .opening-card-v2 .opening-card-intro h3 {
  color: #6ee7b7 !important;
}

body.dark-mode .jobs-page-new .opening-teaser,
body.dark-mode .jobs-page-new .opening-teaser-muted {
  color: #cbd5e1 !important;
}

body.dark-mode .jobs-page-new .opening-meta span {
  background: #0f172a !important;
  color: #93c5fd !important;
  border: 1px solid #334155;
}

body.dark-mode .jobs-page-new .opening-details {
  border-top-color: #334155 !important;
}

body.dark-mode .jobs-page-new .opening-expanded-meta {
  border-bottom-color: #334155 !important;
}

body.dark-mode .jobs-page-new .opening-box {
  background: #0f172a !important;
  border-color: #334155 !important;
}

body.dark-mode .jobs-page-new .opening-box h4 {
  color: #e2e8f0 !important;
  background: linear-gradient(90deg, #1e3a5f 0%, #0f172a 100%) !important;
  border-bottom-color: #334155 !important;
}

body.dark-mode .jobs-page-new .opening-box-body {
  color: #cbd5e1 !important;
}

body.dark-mode .jobs-page-new .job-share-btn {
  background: #0f172a !important;
  border-color: #475569 !important;
  color: #93c5fd !important;
}

body.dark-mode .jobs-page-new .job-share-btn:hover {
  background: #172554 !important;
  border-color: #60a5fa !important;
}

body.dark-mode .jobs-page-new .opening-toggle {
  background: rgba(6, 95, 70, 0.35) !important;
  border-color: #34d399 !important;
  color: #a7f3d0 !important;
}

body.dark-mode .jobs-page-new .opening-toggle:hover {
  background: rgba(6, 95, 70, 0.55) !important;
}

body.dark-mode .jobs-page-new .job-qr-link img {
  background: #f8fafc !important;
  border-color: #475569 !important;
}

body.dark-mode .jobs-page-new .jobs-location-note {
  background: rgba(127, 29, 29, 0.35) !important;
  border-color: #b91c1c !important;
  color: #fecaca !important;
}

body.dark-mode .jobs-page-new .why-work-section h2,
body.dark-mode .jobs-page-new .openings-section h2 {
  color: #6ee7b7 !important;
}

body.dark-mode .jobs-page-new .benefit-card {
  background: linear-gradient(135deg, #064e3b 0%, #0f172a 100%) !important;
  border-color: #34d399 !important;
}

body.dark-mode .jobs-page-new .benefit-card h3 {
  color: #a7f3d0 !important;
}

body.dark-mode .jobs-page-new .benefit-card p {
  color: #cbd5e1 !important;
}

/* ========== Contact page v2: dark mode hero & sections ========== */
body.dark-mode .contact-hero-v2:not(.olis-hero-animated) {
  background: linear-gradient(135deg, #0f172a 0%, #1e3a8a 55%, #172554 100%);
  color: #f1f5f9;
}
body.dark-mode .contact-hero-v2 h1,
body.dark-mode .contact-hero-sub-v2 {
  color: #f1f5f9;
}
body.dark-mode .contact-hero-sub-v2 {
  opacity: 0.92;
}
body.dark-mode .contact-v2-details .contact-v2-section-title,
body.dark-mode .contact-v2-map-below-grid .contact-v2-section-title {
  color: #93c5fd !important;
}
body.dark-mode .contact-v2-form-card .contact-v2-section-title {
  color: #61a6fa !important;
}
body.dark-mode .contact-v2-detail-list strong {
  color: #e2e8f0 !important;
}
body.dark-mode .contact-v2-detail-list p,
body.dark-mode .contact-v2-detail-list a {
  color: #cbd5e1 !important;
}
body.dark-mode .contact-v2-detail-list li {
  border-bottom-color: #334155;
}
body.dark-mode .contact-v2-form-card {
  background: #0f172a !important;
  border-color: #334155 !important;
}
body.dark-mode .contact-v2-form-desc {
  color: #61a6fa !important;
}
body.dark-mode .contact-page-v2 .form-group-v2 label {
  color: #3ffce6 !important;
}
body.dark-mode .form-group-v2 input,
body.dark-mode .form-group-v2 select,
body.dark-mode .form-group-v2 textarea {
  background: #020617;
  border-color: #475569;
  color: #61a6fa !important;
}
body.dark-mode .contact-v2-map-below-grid .contact-v2-map-embed {
  border-color: #334155;
}
body.dark-mode .contact-v2-social-block .social-media-footer h4 {
  color: #93c5fd !important;
}
body.dark-mode .contact-v2-emergency {
  background: linear-gradient(135deg, #7f1d1d 0%, #b91c1c 100%);
}
body.dark-mode .admissions-page .docs-footnote {
  border-top-color: #334155 !important;
  color: #2dbaac !important;
}

/* Dark mode: unified form text color (#61a6fa) */
body.dark-mode .admissions-page .admission-form,
body.dark-mode .admissions-page .admission-form .form-section h3,
body.dark-mode .admissions-page .admission-form input,
body.dark-mode .admissions-page .admission-form select,
body.dark-mode .admissions-page .admission-form textarea,
body.dark-mode .admissions-page .admission-form .form-note,
body.dark-mode .admissions-page #admission-message,
body.dark-mode .contact-v2-form-card .contact-v2-section-title,
body.dark-mode .form-container-contact,
body.dark-mode .form-container-contact label,
body.dark-mode .form-container-contact input,
body.dark-mode .form-container-contact textarea,
body.dark-mode .form-container-contact select,
body.dark-mode .form-container-jobs,
body.dark-mode .form-container-jobs h2,
body.dark-mode .form-container-jobs > p,
body.dark-mode .job-form,
body.dark-mode .form-group-jobs input,
body.dark-mode .form-group-jobs select,
body.dark-mode .form-group-jobs textarea,
body.dark-mode .confirm-checkbox-group,
body.dark-mode .email-portal-page .portal-form,
body.dark-mode .form-group-portal label,
body.dark-mode .form-group-portal input,
body.dark-mode .form-group-portal small,
body.dark-mode #loginForm label,
body.dark-mode #loginForm input,
body.dark-mode #loginModal .input-group input,
body.dark-mode #loginModal .input-group textarea,
body.dark-mode #loginModal .input-group select,
body.dark-mode .auth-container label,
body.dark-mode .auth-container input,
body.dark-mode .auth-container textarea,
body.dark-mode .auth-container select,
body.dark-mode .auth-container h2,
body.dark-mode #loginPageForm label,
body.dark-mode #signupForm label,
body.dark-mode #signupForm input,
body.dark-mode #signupForm select,
body.dark-mode #signupForm textarea {
  color: #61a6fa !important;
}

body.dark-mode .admissions-page .admission-form ::placeholder,
body.dark-mode .form-group-v2 ::placeholder,
body.dark-mode .form-container-contact ::placeholder,
body.dark-mode .form-container-jobs ::placeholder,
body.dark-mode .job-form ::placeholder,
body.dark-mode .portal-form ::placeholder,
body.dark-mode #loginForm ::placeholder,
body.dark-mode #loginModal .input-group ::placeholder,
body.dark-mode .auth-container ::placeholder,
body.dark-mode #loginPageForm ::placeholder,
body.dark-mode #signupForm ::placeholder {
  color: rgba(97, 166, 250, 0.55) !important;
}

body.dark-mode .admissions-page .admission-form option,
body.dark-mode .form-group-v2 option,
body.dark-mode .form-container-jobs option,
body.dark-mode #loginModal .input-group option,
body.dark-mode .auth-container option,
body.dark-mode #signupForm option {
  background: #0f172a;
  color: #61a6fa;
}

/* Dark mode: keep site header colours (do not use form text blue on nav/branding) */
body.dark-mode .site-header-old .main-nav-old a {
  color: #61a5f9 !important;
}
body.dark-mode .site-header-old .main-nav-old a:hover {
  color: #2dbaac !important;
}
body.dark-mode .site-header-old .header-top span,
body.dark-mode .site-header-old .header-info span,
body.dark-mode .site-header-old .header-social a {
  color: #61a5f9 !important;
}
body.dark-mode .site-header-old .logo-old a {
  color: #e2e8f0 !important;
}
body.dark-mode .site-header-old .school-name h1 {
  color: #f1f5f9 !important;
}
body.dark-mode .site-header-old .school-name p {
  color: #34d399 !important;
}
body.dark-mode .site-header-old .enroll-btn,
body.dark-mode .site-header-old .login-btn-old,
body.dark-mode .site-header-old .dashboard-btn,
body.dark-mode .site-header-old .logout-btn {
  color: #fff !important;
}
body.dark-mode .site-header-old .theme-toggle-btn i {
  color: #fbbf24 !important;
}
body.dark-mode .site-header-old .main-nav-old.active a {
  color: #61a5f9 !important;
}

/* Field labels — teal accent (contact, admissions, jobs); not the jobs confirmation line */
.contact-page-v2 .contact-form-v2 .form-group-v2 label,
.admissions-page .admission-form .form-group label,
.jobs-page-new .job-form .form-group-jobs:not(.confirm-checkbox-group) label {
  color: #3ffce6 !important;
}

body.dark-mode .admissions-page .admission-form .form-group label,
body.dark-mode .jobs-page-new .form-group-jobs:not(.confirm-checkbox-group) label {
  color: #3ffce6 !important;
}

/* Jobs form: confirmation line matches form body text (same line as checkbox) */
.jobs-page-new .job-form .form-group-jobs.confirm-checkbox-group label.confirm-label,
.jobs-page-new .job-form .form-group-jobs.confirm-checkbox-group label.confirm-label span {
  color: #374151 !important;
  font-weight: 400 !important;
  font-size: 15px !important;
}

body.dark-mode .jobs-page-new .form-group-jobs.confirm-checkbox-group label.confirm-label,
body.dark-mode .jobs-page-new .form-group-jobs.confirm-checkbox-group label.confirm-label span {
  color: #61a6fa !important;
}

/* Enrollment modal — dark mode */
body.dark-mode #enrollModal .modal-box {
  background: #0f172a !important;
  border: 1px solid #334155 !important;
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.55) !important;
}
body.dark-mode #enrollModal .modal-box h2 {
  color: #61a6fa !important;
}
body.dark-mode #enrollModal .modal-box > p {
  color: #94a3b8 !important;
}
body.dark-mode #enrollModal .input-group label {
  color: #3ffce6 !important;
}
body.dark-mode #enrollModal .input-group input,
body.dark-mode #enrollModal .input-group select,
body.dark-mode #enrollModal .input-group textarea {
  background: #020617 !important;
  border-color: #475569 !important;
  color: #61a6fa !important;
}
body.dark-mode #enrollModal .input-group ::placeholder {
  color: rgba(97, 166, 250, 0.55) !important;
}
body.dark-mode #enrollModal .input-group option {
  background: #0f172a;
  color: #61a6fa;
}
body.dark-mode #enrollModal .modal-close {
  color: #94a3b8 !important;
}
body.dark-mode #enrollModal .modal-close:hover {
  color: #e2e8f0 !important;
}
body.dark-mode #enrollModal .submit-btn {
  background: linear-gradient(135deg, #1e40af, #3b82f6) !important;
  color: #fff !important;
}
body.dark-mode #enroll-message.success {
  background: rgba(6, 78, 59, 0.55) !important;
  color: #6ee7b7 !important;
  border: 1px solid #059669 !important;
}
body.dark-mode #enroll-message.error {
  background: rgba(127, 29, 29, 0.45) !important;
  color: #fecaca !important;
  border: 1px solid #b91c1c !important;
}

/* Login modal — dark panel */
body.dark-mode #loginModal .modal-box {
  background: #0f172a !important;
  border: 1px solid #334155 !important;
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.55) !important;
}
body.dark-mode #loginModal .modal-box h2 {
  color: #61a6fa !important;
}
body.dark-mode #loginModal .input-group input {
  background: #020617 !important;
  border-color: #475569 !important;
}
body.dark-mode #loginModal .modal-close {
  color: #94a3b8 !important;
}
body.dark-mode #loginModal .modal-close:hover {
  color: #e2e8f0 !important;
}

/* Saudi Riyal sign (U+20C1, Unicode 17 / SAMA); place before amount — needs recent system fonts */
.sar-currency {
  font-family: "Segoe UI", "Noto Sans", "Arial Unicode MS", system-ui, sans-serif;
  font-weight: 600;
  margin-right: 0.25em;
}

/* Dark mode: animated heroes — gradient + shimmer (overrides flat blocks above) */
body.dark-mode .olis-hero-animated {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #0f172a 0%, #1e3a8a 40%, #155e75 85%, #172554 100%) !important;
  background-size: 200% 200% !important;
  animation: olisHeroGradient 14s ease infinite !important;
  color: #f1f5f9 !important;
}
body.dark-mode .olis-hero-animated::before {
  opacity: 1;
}
body.dark-mode .hero-section-old.olis-hero-animated {
  background: linear-gradient(135deg, #0f172a 0%, #1e40af 45%, #0e7490 90%, #172554 100%) !important;
  background-size: 200% 200% !important;
  animation: olisHeroGradient 16s ease infinite !important;
}
body.dark-mode .contact-hero-v2.olis-hero-animated {
  background: linear-gradient(135deg, #0f172a 0%, #1e40af 50%, #164e63 100%) !important;
  background-size: 200% 200% !important;
  animation: olisHeroGradient 14s ease infinite !important;
}
body.dark-mode .page-header-jobs.olis-hero-jobs,
body.dark-mode .page-header-jobs.olis-hero-animated {
  background: linear-gradient(135deg, #064e3b 0%, #047857 50%, #0f766e 100%) !important;
  background-size: 200% 200% !important;
  animation: olisHeroGradient 14s ease infinite !important;
}
body.dark-mode .admissions-page .page-header.olis-hero-animated,
body.dark-mode .page-header-gallery.olis-hero-animated,
body.dark-mode .page-header-news.olis-hero-animated,
body.dark-mode .page-header-portal.olis-hero-animated {
  background: linear-gradient(135deg, #0f172a 0%, #1e3a8a 45%, #155e75 100%) !important;
  background-size: 200% 200% !important;
  animation: olisHeroGradient 14s ease infinite !important;
  color: #f1f5f9 !important;
}
body.dark-mode .animated-hero.olis-hero-animated {
  background: linear-gradient(135deg, #0f172a 0%, #1e40af 40%, #0d9488 100%) !important;
  background-size: 200% 200% !important;
  animation: olisHeroGradient 14s ease infinite !important;
  color: #f1f5f9 !important;
}
body.dark-mode .admissions-page .page-header.olis-hero-animated h1,
body.dark-mode .admissions-page .page-header.olis-hero-animated p,
body.dark-mode .page-header-gallery.olis-hero-animated h1,
body.dark-mode .page-header-gallery.olis-hero-animated p,
body.dark-mode .page-header-news.olis-hero-animated h1,
body.dark-mode .page-header-news.olis-hero-animated p,
body.dark-mode .page-header-portal.olis-hero-animated h1,
body.dark-mode .page-header-portal.olis-hero-animated p,
body.dark-mode .page-header-jobs.olis-hero-animated h1,
body.dark-mode .page-header-jobs.olis-hero-animated p {
  color: #f1f5f9 !important;
}
body.dark-mode .olis-hero-programs.olis-hero-animated {
  background: linear-gradient(135deg, #0f172a 0%, #155e75 45%, #1e3a8a 100%) !important;
  background-size: 200% 200% !important;
  animation: olisHeroGradient 14s ease infinite !important;
}
