/* ============================================================
   MHCM Global Stylesheet — Modern Clean Design
   McCarthy Hill Central Mosque & Weekend Islamic School
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700;800;900&family=Inter:wght@300;400;500;600;700&family=Noto+Naskh+Arabic:wght@400;500;600;700&display=swap');

/* ---- CSS Variables ---- */
:root {
  /* ---- Brand Primary: Classic Blue ---- */
  --blue:         #1E5AA8;
  --blue-dark:    #154D97;
  --blue-darker:  #0D3D7C;
  --blue-light:   #3B7DC8;
  --blue-pale:    #DBEAFE;

  /* ---- Brand Accent: Gold ---- */
  --gold:         #D4AF37;
  --gold-dark:    #B8971E;
  --gold-light:   #E8CA5A;

  /* ---- Brand Accent: Sky Blue ---- */
  --sky:          #60A5FA;
  --sky-dark:     #3B82F6;

  /* ---- Backward-compat aliases (keep existing PHP templates working) ---- */
  --cyan:         #1E5AA8;
  --cyan-dark:    #154D97;
  --cyan-darker:  #0D3D7C;
  --cyan-light:   #60A5FA;
  --cyan-pale:    #DBEAFE;

  /* ---- Neutral Palette ---- */
  --dark:         #0F172A;
  --dark-2:       #1e293b;
  --dark-3:       #334155;
  --gray:         #64748b;
  --gray-light:   #e2e8f0;
  --gray-pale:    #f8fafc;
  --white:        #ffffff;

  /* ---- Semantic Colors ---- */
  --green:        #059669;
  --success:      #10B981;
  --warning:      #f59e0b;
  --danger:       #EF4444;
  --info:         #3b82f6;

  /* ---- Gradients & Glass ---- */
  --gradient-dark:    #1e293b;
  --gradient-cyan:    #1E5AA8;
  --gradient-hero:    #154D97;
  --gradient-card:    rgba(255,255,255,0.06);
  --glass-bg:         rgba(255,255,255,0.07);
  --glass-border:     rgba(255,255,255,0.12);
  --glass-shadow:     0 8px 32px rgba(0,0,0,0.3);

  /* ---- Shadows ---- */
  --shadow-sm:    0 2px 8px rgba(0,0,0,0.06);
  --shadow-md:    0 4px 20px rgba(0,0,0,0.10);
  --shadow-lg:    0 8px 40px rgba(0,0,0,0.15);
  --shadow-xl:    0 20px 60px rgba(0,0,0,0.20);
  --shadow-cyan:  0 4px 20px rgba(30,90,168,0.25);
  --shadow-dark:  0 4px 20px rgba(15,23,42,0.40);

  /* ---- Radii ---- */
  --radius-sm:    8px;
  --radius-md:    12px;
  --radius-lg:    20px;
  --radius-xl:    28px;
  --radius-full:  9999px;

  /* ---- Transitions ---- */
  --transition:      all 0.3s cubic-bezier(0.4,0,0.2,1);
  --transition-slow: all 0.5s cubic-bezier(0.4,0,0.2,1);

  /* ---- Typography ---- */
  --font-main:    'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-heading: 'Poppins', -apple-system, sans-serif;
  --font-arabic:  'Noto Naskh Arabic', serif;
}

/* ---- Reset & Base ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: var(--font-main);
  color: var(--dark-3);
  background: var(--white);
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* ---- Custom Scrollbar ---- */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: var(--dark-2); }
::-webkit-scrollbar-thumb { background: var(--cyan-dark); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--cyan); }

/* ---- Typography ---- */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.2;
  color: var(--dark);
}

.heading-poppins { font-family: var(--font-heading); }
.arabic-text { font-family: var(--font-arabic); direction: rtl; text-align: center; }

a { color: var(--cyan-dark); text-decoration: none; transition: var(--transition); }
a:hover { color: var(--cyan); }

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

/* ---- Selection ---- */
::selection { background: var(--cyan); color: var(--white); }

/* ============================================================
   NAVIGATION
   ============================================================ */
.site-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  transition: var(--transition);
  padding: 0;
  background: #fff !important;
  border-bottom: 1px solid #e2e8f0;
}

.site-nav.scrolled {
  background: #fff !important;
  box-shadow: 0 2px 20px rgba(0,0,0,0.07);
}

.site-nav.transparent { background: transparent; }

.site-nav .navbar-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.site-nav .brand-logo {
  width: 42px;
  height: 42px;
  background: var(--gradient-cyan);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  font-weight: 800;
  color: var(--white);
  flex-shrink: 0;
}

.brand-img-logo {
  width: 44px;
  height: 44px;
  object-fit: contain;
  border-radius: var(--radius-sm);
  flex-shrink: 0;
}

.site-nav .brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.site-nav .brand-name {
  font-size: 14px;
  font-weight: 700;
  color: var(--dark);
  letter-spacing: 0.5px;
}

.site-nav .brand-sub {
  font-size: 10px;
  font-weight: 400;
  color: var(--cyan-dark);
  letter-spacing: 1px;
  text-transform: uppercase;
}

.site-nav .nav-link {
  color: #334155 !important;
  font-size: 14px;
  font-weight: 500;
  padding: 8px 14px !important;
  border-radius: var(--radius-sm);
  transition: var(--transition);
  position: relative;
}

.site-nav .nav-link:hover,
.site-nav .nav-link.active {
  color: var(--cyan-dark) !important;
  background: rgba(30,90,168,0.06);
}

.site-nav .nav-link.active::after {
  content: '';
  position: absolute;
  bottom: 2px;
  left: 14px;
  right: 14px;
  height: 2px;
  background: var(--cyan);
  border-radius: 1px;
}

.site-nav .dropdown-menu {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: var(--radius-md);
  padding: 8px;
  box-shadow: var(--shadow-xl);
  margin-top: 8px !important;
}

.site-nav .dropdown-item {
  color: var(--dark);
  font-size: 13px;
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  transition: var(--transition);
}

.site-nav .dropdown-item:hover {
  background: rgba(30,90,168,0.06);
  color: var(--cyan-dark);
}

.navbar-toggler {
  border: 1px solid #e2e8f0;
  padding: 6px 10px;
}

.navbar-toggler-icon {
  filter: none;
}

/* ============================================================
   HERO SECTIONS
   ============================================================ */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  background: #f8fafc;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background: #f8fafc;
  z-index: 0;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: transparent;
  z-index: 1;
}

.hero-particles {
  position: absolute;
  inset: 0;
  z-index: 1;
  overflow: hidden;
}

.hero-content { position: relative; z-index: 2; }

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(30,90,168,0.08);
  border: 1px solid rgba(30,90,168,0.2);
  color: #1E5AA8 !important;
  padding: 6px 16px;
  border-radius: var(--radius-full);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 20px;
}

.hero-title {
  font-size: clamp(2.2rem, 5vw, 4rem);
  font-weight: 800;
  color: var(--dark);
  line-height: 1.1;
  margin-bottom: 20px;
}

.hero-title .highlight {
  color: var(--blue);
}

.hero-subtitle {
  font-size: clamp(1rem, 2vw, 1.2rem);
  color: #475569;
  margin-bottom: 36px;
  max-width: 540px;
  line-height: 1.7;
}

.hero-stats {
  display: flex;
  gap: 32px;
  margin-top: 40px;
}

.hero-stat { text-align: center; }
.hero-stat-num {
  font-size: 2rem;
  font-weight: 800;
  color: var(--dark) !important;
  line-height: 1;
}
.hero-stat-label {
  font-size: 11px;
  color: #64748b !important;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-top: 4px;
}

/* Page Hero (inner pages) */
.page-hero {
  padding: 140px 0 80px;
  background: #f8fafc !important;
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid #e2e8f0;
}

.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%2306b6d4' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.page-hero-content { position: relative; z-index: 1; }

.page-hero h1 {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  color: var(--dark) !important;
  margin-bottom: 12px;
}

.breadcrumb-nav .breadcrumb {
  background: transparent;
  padding: 0;
  margin: 0;
}

.breadcrumb-nav .breadcrumb-item a { color: var(--blue); }
.breadcrumb-nav .breadcrumb-item.active { color: #64748b; }
.breadcrumb-nav .breadcrumb-item + .breadcrumb-item::before { color: #94a3b8; }
.page-hero p { color: #475569 !important; }

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  font-family: var(--font-main);
  font-weight: 600;
  border-radius: var(--radius-sm);
  transition: var(--transition);
  letter-spacing: 0.3px;
  border: none;
  cursor: pointer;
}

.btn-primary {
  background: var(--cyan);
  color: var(--white);
  box-shadow: var(--shadow-cyan);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(30,90,168,0.35);
  color: var(--white);
  background: var(--cyan-dark);
}

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

.btn-outline-cyan {
  border: 2px solid var(--cyan);
  color: var(--cyan);
  background: transparent;
}
.btn-outline-cyan:hover {
  background: var(--cyan);
  color: var(--white);
  transform: translateY(-2px);
}

.btn-outline-white {
  border: 2px solid rgba(255,255,255,0.7);
  color: var(--white);
  background: transparent;
}
.btn-outline-white:hover {
  background: var(--white);
  color: var(--dark);
  transform: translateY(-2px);
}

.btn-ghost {
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.15);
  color: var(--white);
}
.btn-ghost:hover {
  background: rgba(255,255,255,0.15);
  color: var(--white);
}

.btn-lg { padding: 14px 32px; font-size: 15px; border-radius: var(--radius-md); }
.btn-xl { padding: 18px 40px; font-size: 16px; border-radius: var(--radius-md); }
.btn-sm { padding: 8px 18px; font-size: 13px; }
.btn-xs { padding: 5px 12px; font-size: 12px; }

.btn-icon {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

/* ---- Bootstrap override: prevent invisible text on hover ---- */
.btn-outline-secondary {
  border-color: #cbd5e1;
  color: #475569;
}
.btn-outline-secondary:hover {
  background: #f1f5f9;
  border-color: #94a3b8;
  color: #1e293b;
}
.btn-light:hover { color: #1e293b; }
.btn-outline-light:hover { color: #0f172a; }

/* ============================================================
   CARDS
   ============================================================ */
.card {
  border: none;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  overflow: hidden;
}

.card:hover { transform: translateY(-6px); box-shadow: 0 12px 40px rgba(0,0,0,0.12); }

.card-glass {
  background: var(--glass-bg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
  box-shadow: var(--glass-shadow);
  border-radius: var(--radius-lg);
}

.card-dark {
  background: var(--dark-2);
  border: 1px solid rgba(255,255,255,0.06);
  color: var(--white);
}

.card-hover-cyan:hover { border-color: rgba(30,90,168,0.3); box-shadow: 0 8px 30px rgba(30,90,168,0.12); }

.card-feature {
  padding: 32px;
  border-radius: var(--radius-lg);
  background: var(--white);
  border: 1px solid var(--gray-light);
  transition: var(--transition-slow);
}

.card-feature:hover {
  border-color: rgba(30,90,168,0.2);
  box-shadow: 0 12px 48px rgba(0,0,0,0.10), 0 2px 8px rgba(30,90,168,0.06);
  transform: translateY(-8px);
}

.card-feature .icon-box {
  width: 60px;
  height: 60px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  margin-bottom: 20px;
  background: var(--cyan);
  color: var(--white);
  box-shadow: var(--shadow-cyan);
}

/* ============================================================
   SECTIONS
   ============================================================ */
section { padding: 80px 0; }

.section-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--cyan-dark);
  margin-bottom: 12px;
}

.section-label::before {
  content: '';
  width: 24px;
  height: 2px;
  background: var(--cyan);
  border-radius: 1px;
}

.section-title {
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  font-weight: 800;
  color: var(--dark);
  line-height: 1.2;
  margin-bottom: 16px;
}

.section-title .highlight {
  color: var(--cyan-dark);
}

.section-subtitle {
  font-size: 1.05rem;
  color: var(--gray);
  line-height: 1.7;
  max-width: 560px;
}

.section-dark {
  background: var(--dark);
  color: var(--white);
}

.section-dark .section-title { color: var(--white); }
.section-dark .section-subtitle { color: rgba(255,255,255,0.65); }
.section-dark .section-label { color: var(--cyan-light); }

.section-gradient {
  background: var(--gradient-hero);
  color: var(--white);
}

.section-light { background: var(--gray-pale); }

/* ============================================================
   FORMS
   ============================================================ */
.form-control, .form-select {
  font-family: var(--font-main);
  font-size: 14px;
  border: 1.5px solid var(--gray-light);
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  color: var(--dark);
  transition: var(--transition);
  background: var(--white);
}

.form-control:focus, .form-select:focus {
  border-color: var(--cyan);
  box-shadow: 0 0 0 3px rgba(30,90,168,0.12);
  outline: none;
}

.form-control::placeholder { color: var(--gray); opacity: 0.7; }

.form-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--dark-3);
  margin-bottom: 6px;
}

.form-dark .form-control, .form-dark .form-select {
  background: rgba(255,255,255,0.06);
  border-color: rgba(255,255,255,0.12);
  color: var(--white);
}

.form-dark .form-control::placeholder { color: rgba(255,255,255,0.4); }
.form-dark .form-label { color: rgba(255,255,255,0.8); }
.form-dark .form-control:focus {
  border-color: var(--cyan);
  background: rgba(30,90,168,0.08);
  box-shadow: 0 0 0 3px rgba(30,90,168,0.15);
}

/* ============================================================
   ALERTS
   ============================================================ */
.alert { border-radius: var(--radius-sm); border: none; font-size: 14px; }
.alert-success { background: #f0fdf4; color: #15803d; border-left: 4px solid #10b981; }
.alert-error, .alert-danger { background: #fef2f2; color: #dc2626; border-left: 4px solid #ef4444; }
.alert-warning { background: #fffbeb; color: #92400e; border-left: 4px solid #f59e0b; }
.alert-info { background: #eff6ff; color: #1e40af; border-left: 4px solid #3b82f6; }

/* ============================================================
   BADGES
   ============================================================ */
.badge {
  font-family: var(--font-main);
  font-size: 11px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  letter-spacing: 0.3px;
}

.badge-cyan { background: rgba(30,90,168,0.10); color: var(--blue-darker); }
.badge-gold { background: rgba(212,175,55,0.12); color: var(--gold-dark); }
.badge-dark { background: rgba(15,23,42,0.08); color: var(--dark-2); }

/* ============================================================
   DIVIDERS & DECORATIONS
   ============================================================ */
.divider {
  height: 3px;
  width: 60px;
  background: var(--cyan);
  border-radius: 2px;
  margin: 16px 0 24px;
}

.divider-center { margin-left: auto; margin-right: auto; }

.dot-pattern {
  background-image: radial-gradient(circle, rgba(30,90,168,0.10) 1px, transparent 1px);
  background-size: 24px 24px;
}

.geometric-bg {
  background: var(--dark);
  position: relative;
}

.geometric-bg::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='80' height='80' viewBox='0 0 80 80'%3E%3Cg fill='%2306b6d4' fill-opacity='0.04'%3E%3Cpath d='M40 0L80 40L40 80L0 40Z'/%3E%3C/g%3E%3C/svg%3E");
  background-size: 80px 80px;
  pointer-events: none;
}

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  background: var(--dark);
  color: rgba(255,255,255,0.7);
  padding-top: 70px;
}

.site-footer .footer-brand { margin-bottom: 24px; }
.site-footer .footer-logo {
  width: 50px;
  height: 50px;
  background: var(--cyan);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  font-weight: 800;
  color: var(--white);
  margin-bottom: 14px;
}

.site-footer h6 {
  font-size: 13px;
  font-weight: 700;
  color: var(--white);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 20px;
}

.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer ul li { margin-bottom: 10px; }
.site-footer ul li a {
  color: rgba(255,255,255,0.6);
  font-size: 14px;
  transition: var(--transition);
}
.site-footer ul li a:hover { color: var(--cyan-light); padding-left: 6px; }

.site-footer .contact-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 14px;
  font-size: 14px;
}

.site-footer .contact-icon {
  width: 32px;
  height: 32px;
  background: rgba(30,90,168,0.10);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--cyan);
  flex-shrink: 0;
  font-size: 13px;
}

.footer-social { display: flex; gap: 10px; margin-top: 20px; }
.social-btn {
  width: 38px;
  height: 38px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,0.06);
  color: rgba(255,255,255,0.7);
  font-size: 15px;
  transition: var(--transition);
  border: 1px solid rgba(255,255,255,0.08);
}
.social-btn:hover { background: var(--cyan); color: var(--white); transform: translateY(-2px); border-color: var(--cyan); }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.07);
  padding: 20px 0;
  margin-top: 50px;
  font-size: 13px;
  color: rgba(255,255,255,0.4);
}

/* ============================================================
   LANDING PAGE (SPLIT SCREEN)
   ============================================================ */
.landing-wrapper {
  height: 100vh;
  display: flex;
  overflow: hidden;
  position: relative;
}

.landing-panel {
  flex: 1;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  cursor: pointer;
  transition: flex 0.7s cubic-bezier(0.77, 0, 0.18, 1);
}

.landing-panel:hover { flex: 1.3; }

.landing-panel-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transform: scale(1.05);
  transition: transform 0.7s cubic-bezier(0.77, 0, 0.18, 1);
}

.landing-panel:hover .landing-panel-bg { transform: scale(1.0); }

.landing-panel-overlay {
  position: absolute;
  inset: 0;
  transition: var(--transition-slow);
}

.landing-mosque .landing-panel-bg {
  background: #0c1e14;
}
.landing-mosque .landing-panel-overlay {
  background: rgba(15,23,42,0.6);
}
.landing-mosque:hover .landing-panel-overlay {
  background: rgba(15,23,42,0.45);
}

.landing-school .landing-panel-bg {
  background: #091520;
}
.landing-school .landing-panel-overlay {
  background: rgba(15,23,42,0.6);
}
.landing-school:hover .landing-panel-overlay {
  background: rgba(15,23,42,0.45);
}

.landing-divider {
  width: 3px;
  height: 100%;
  background: rgba(30,90,168,0.25);
  position: relative;
  z-index: 5;
  flex-shrink: 0;
}

.landing-divider::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 40px;
  height: 40px;
  background: var(--cyan);
  border-radius: 50%;
  box-shadow: 0 0 30px rgba(30,90,168,0.4);
}

.landing-content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 40px;
  max-width: 440px;
}

.landing-icon {
  font-size: 52px;
  margin-bottom: 20px;
  line-height: 1;
}

.landing-mosque .landing-icon { color: #6ee7b7; }
.landing-school .landing-icon { color: var(--cyan-light); }

.landing-title {
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  font-weight: 800;
  color: var(--white);
  margin-bottom: 12px;
  line-height: 1.2;
}

.landing-subtitle {
  font-size: 0.95rem;
  color: rgba(255,255,255,0.7);
  margin-bottom: 28px;
  line-height: 1.6;
}

.landing-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 28px;
  border-radius: var(--radius-full);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  transition: var(--transition);
}

.landing-mosque .landing-btn {
  background: rgba(212,175,55,0.15);
  border: 2px solid rgba(212,175,55,0.4);
  color: var(--gold);
}
.landing-mosque .landing-btn:hover {
  background: var(--gold);
  border-color: var(--gold);
  color: #0F172A;
  transform: translateY(-3px);
}

.landing-school .landing-btn {
  background: rgba(96,165,250,0.15);
  border: 2px solid rgba(96,165,250,0.4);
  color: var(--sky);
}
.landing-school .landing-btn:hover {
  background: var(--sky);
  border-color: var(--sky);
  color: #0F172A;
  transform: translateY(-3px);
}

.landing-greeting {
  position: absolute;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  white-space: nowrap;
  text-align: center;
}

.landing-greeting .greeting-text {
  font-family: var(--font-arabic);
  font-size: 16px;
  color: rgba(255,255,255,0.8);
  text-shadow: 0 2px 10px rgba(0,0,0,0.5);
}

/* ============================================================
   STAT COUNTERS
   ============================================================ */
.stat-box {
  text-align: center;
  padding: 30px 20px;
}

.stat-number {
  font-size: 3rem;
  font-weight: 800;
  color: var(--cyan);
  line-height: 1;
}

.stat-label {
  font-size: 13px;
  color: var(--gray);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-top: 6px;
  font-weight: 500;
}

/* ============================================================
   PRAYER TIMES WIDGET
   ============================================================ */
.prayer-widget {
  background: var(--dark);
  border-radius: var(--radius-xl);
  padding: 28px;
  color: var(--white);
}

.prayer-time-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  margin-bottom: 8px;
  background: rgba(255,255,255,0.06);
  transition: var(--transition);
}

.prayer-time-item.active {
  background: rgba(30,90,168,0.15);
  border: 1px solid rgba(30,90,168,0.25);
}

.prayer-name { font-size: 14px; font-weight: 500; }
.prayer-time { font-size: 14px; font-weight: 700; color: var(--cyan-light); }

/* ============================================================
   EVENT CARDS
   ============================================================ */
.event-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--gray-light);
  transition: var(--transition-slow);
}

.event-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: var(--cyan-pale); }

.event-card-date {
  background: var(--cyan);
  color: var(--white);
  padding: 16px;
  text-align: center;
  min-width: 80px;
  flex-shrink: 0;
}

.event-date-day { font-size: 2rem; font-weight: 800; line-height: 1; }
.event-date-month { font-size: 12px; text-transform: uppercase; letter-spacing: 1px; }

.event-card-body { padding: 20px; flex: 1; }

.event-tag {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--cyan-dark);
  margin-bottom: 8px;
}

/* ============================================================
   SERMON CARDS
   ============================================================ */
.sermon-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 24px;
  border: 1px solid var(--gray-light);
  transition: var(--transition-slow);
}

.sermon-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: var(--cyan-pale); }

/* ============================================================
   TEAM/STAFF CARDS
   ============================================================ */
.staff-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  text-align: center;
  border: 1px solid var(--gray-light);
  transition: var(--transition-slow);
}

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

.staff-card-img {
  position: relative;
  overflow: hidden;
  height: 240px;
}

.staff-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.staff-card:hover .staff-card-img img { transform: scale(1.05); }

.staff-card-body { padding: 20px; }
.staff-name { font-size: 16px; font-weight: 700; color: var(--dark); }
.staff-position { font-size: 13px; color: var(--cyan-dark); font-weight: 500; }
.staff-dept { font-size: 12px; color: var(--gray); margin-top: 4px; }

/* ============================================================
   GALLERY GRID
   ============================================================ */
.gallery-grid {
  columns: 3;
  column-gap: 16px;
}

.gallery-item {
  break-inside: avoid;
  margin-bottom: 16px;
  border-radius: var(--radius-md);
  overflow: hidden;
  position: relative;
  cursor: pointer;
}

.gallery-item img {
  width: 100%;
  height: auto;
  transition: transform 0.5s ease;
}

.gallery-item:hover img { transform: scale(1.05); }

.gallery-overlay {
  position: absolute;
  inset: 0;
  background: rgba(15,23,42,0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: var(--transition);
}

.gallery-item:hover .gallery-overlay { opacity: 1; }

.gallery-overlay i { font-size: 28px; color: var(--white); }

/* ============================================================
   TIMELINE
   ============================================================ */
.timeline { position: relative; padding-left: 30px; }

.timeline::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--cyan);
  opacity: 0.4;
}

.timeline-item {
  position: relative;
  padding-bottom: 30px;
}

.timeline-item::before {
  content: '';
  position: absolute;
  left: -38px;
  top: 4px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--cyan);
  border: 3px solid var(--white);
  box-shadow: 0 0 0 3px rgba(30,90,168,0.25);
}

/* ============================================================
   TABS
   ============================================================ */
.nav-tabs-modern {
  border: none;
  background: var(--gray-pale);
  border-radius: var(--radius-md);
  padding: 6px;
  gap: 4px;
  display: inline-flex;
}

.nav-tabs-modern .nav-link {
  border: none;
  color: var(--gray);
  font-size: 13px;
  font-weight: 600;
  padding: 8px 20px;
  border-radius: var(--radius-sm);
  transition: var(--transition);
}

.nav-tabs-modern .nav-link.active {
  background: var(--white);
  color: var(--dark);
  box-shadow: var(--shadow-sm);
}

/* ============================================================
   GOOGLE MAP
   ============================================================ */
.map-container {
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 3px solid rgba(30,90,168,0.15);
}

.map-container iframe {
  width: 100%;
  height: 400px;
  border: none;
  display: block;
}

/* ============================================================
   ANNOUNCEMENT TICKER
   ============================================================ */
/* Mosque section: main content needs to clear nav (64px) + ticker (34px) */
body.mosque-section #mainContent { padding-top: 34px; }
.announcement-bar {
  padding: 7px 0;
  overflow: hidden;
  width: 100%;
}

.ticker-label {
  background: rgba(255,255,255,0.18);
  padding: 2px 12px;
  border-radius: 20px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1px;
  white-space: nowrap;
  color: #fff;
  flex-shrink: 0;
}

.ticker-wrapper {
  overflow: hidden;
  white-space: nowrap;
}

.ticker-content {
  display: inline-block;
  animation: ticker 35s linear infinite;
  white-space: nowrap;
  color: rgba(255,255,255,0.9);
  font-size: 12px;
}

@keyframes ticker {
  from { transform: translateX(100vw); }
  to   { transform: translateX(-100%); }
}
@keyframes ticker-scroll {
  from { transform: translateX(100vw); }
  to   { transform: translateX(-100%); }
}

.ticker-content:hover { animation-play-state: paused; }

/* ---- Hover Dropdown (desktop) ---- */
@media (min-width: 992px) {
  .site-nav .dropdown:hover > .dropdown-menu {
    display: block;
    margin-top: 0;
    animation: fadeInDown 0.18s ease;
  }
}

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

/* ============================================================
   ADS SECTION
   ============================================================ */
.ad-banner {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 2px dashed var(--gray-light);
  background: var(--gray-pale);
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 90px;
  text-align: center;
  padding: 20px;
  color: var(--gray);
  font-size: 13px;
}

.ad-card {
  background: var(--dark-2);
  border-radius: var(--radius-lg);
  overflow: hidden;
  padding: 28px;
  position: relative;
  border: 1px solid rgba(30,90,168,0.15);
}

/* ============================================================
   UTILITIES
   ============================================================ */
.text-cyan { color: var(--cyan) !important; }
.text-cyan-light { color: var(--cyan-light) !important; }
.text-dark-custom { color: var(--dark) !important; }
.text-gold { color: var(--gold) !important; }
.text-muted-light { color: rgba(255,255,255,0.6) !important; }

.bg-dark-custom { background: var(--dark) !important; }
.bg-dark-2 { background: var(--dark-2) !important; }
.bg-cyan { background: var(--cyan) !important; }
.bg-gradient-hero { background: var(--gradient-hero) !important; }
.bg-gradient-cyan { background: var(--gradient-cyan) !important; }

.rounded-custom { border-radius: var(--radius-lg) !important; }
.rounded-xl { border-radius: var(--radius-xl) !important; }
.shadow-cyan { box-shadow: var(--shadow-cyan) !important; }
.shadow-lg-custom { box-shadow: var(--shadow-lg) !important; }

.fw-800 { font-weight: 800 !important; }
.fw-700 { font-weight: 700 !important; }
.ls-2 { letter-spacing: 2px !important; }

/* ============================================================
   LOADING SCREEN
   ============================================================ */
.loading-screen {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: var(--dark);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 20px;
  transition: opacity 0.5s, visibility 0.5s;
}

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

.loading-logo {
  font-size: 40px;
  font-weight: 800;
  color: var(--cyan);
  letter-spacing: 4px;
}

.loading-bar {
  width: 200px;
  height: 3px;
  background: rgba(255,255,255,0.1);
  border-radius: 2px;
  overflow: hidden;
}

.loading-progress {
  height: 100%;
  background: var(--cyan);
  border-radius: 2px;
  animation: loadingBar 1.5s ease forwards;
}

@keyframes loadingBar {
  from { width: 0; }
  to { width: 100%; }
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 992px) {
  .landing-wrapper { flex-direction: column; }
  .landing-panel { flex: 1 !important; min-height: 50vh; }
  .landing-divider { width: 100%; height: 3px; flex: none; }
  .landing-divider::before { left: 50%; top: 50%; }
  .gallery-grid { columns: 2; }
  section { padding: 60px 0; }
}

@media (max-width: 576px) {
  .hero-stats { gap: 20px; }
  .hero-title { font-size: 2rem; }
  .gallery-grid { columns: 1; }
  .landing-title { font-size: 1.6rem; }
  section { padding: 50px 0; }
}

/* ============================================================
   AOS (Custom overrides for Animate On Scroll)
   ============================================================ */
[data-aos] { transition-duration: 0.7s !important; }

/* ============================================================
   PRINT
   ============================================================ */
@media print {
  .site-nav, .site-footer, .btn, .no-print { display: none !important; }
  body { font-size: 12pt; }
}
