/* ---------------------------------------------------------------------------
 * Mehmoodah Academy — Official Website Design System
 * Deep Navy (#0D1C38) & Vibrant Red (#D32F2F) with Academic Books Hero Background
 * --------------------------------------------------------------------------- */

:root {
  --color-primary-navy: #0D1C38;
  --color-navy-dark: #071226;
  --color-accent-red: #D32F2F;
  --color-red-hover: #B71C1C;
  --color-bg-light: #F8FAFC;
  --color-surface-white: #FFFFFF;
  --color-border-light: #E2E8F0;

  --color-text-dark: #0A192F;
  --color-text-secondary: #475569;
  --color-text-muted: #94A3B8;

  --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-pill: 9999px;
  --shadow-sm: 0 2px 8px rgba(13, 28, 56, 0.06);
  --shadow-md: 0 8px 24px rgba(13, 28, 56, 0.1);
  --shadow-lg: 0 16px 36px rgba(13, 28, 56, 0.15);
}

/* Reset & Global */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-family: var(--font-family);
  background-color: var(--color-bg-light);
  color: var(--color-text-dark);
  line-height: 1.6;
}

body {
  min-height: 100vh;
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

/* ---------------------------------------------------------------------------
 * Top Navbar (Clean Straight Navy Bar)
 * --------------------------------------------------------------------------- */
.navbar-wrapper {
  position: sticky;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

.navbar {
  background-color: var(--color-primary-navy);
  padding: 0 40px;
  height: 72px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
}

.navbar-brand {
  display: flex;
  align-items: center;
  position: relative;
  height: 100%;
  background: transparent !important;
}

.brand-logo-img {
  height: 80px;
  width: auto;
  position: absolute;
  top: 4px;
  left: 0;
  background: transparent !important;
  mix-blend-mode: normal;
  filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.3));
  z-index: 10;
  cursor: pointer;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 26px;
  list-style: none;
  margin-left: 110px;
  /* Space for large shield logo */
}

.nav-item {
  position: relative;
}

.nav-link {
  font-size: 0.92rem;
  font-weight: 600;
  color: #E2E8F0;
  padding: 22px 0;
  display: flex;
  align-items: center;
  gap: 4px;
  cursor: pointer;
  position: relative;
  transition: color 0.2s ease;
}

.nav-link:hover,
.nav-link.active {
  color: #FFFFFF;
}

/* Red active indicator under link */
.nav-link.active::after {
  content: '';
  position: absolute;
  bottom: 12px;
  left: 0;
  width: 100%;
  height: 3px;
  background-color: var(--color-accent-red);
  border-radius: 2px;
}

/* Dropdown Menu */
.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  width: 220px;
  background: #FFFFFF;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  padding: 10px 0;
  list-style: none;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all 0.25s ease;
  z-index: 100;
}

.nav-item:hover .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-item a {
  display: block;
  padding: 10px 20px;
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--color-text-dark);
  transition: background 0.2s ease, color 0.2s ease;
  cursor: pointer;
}

.dropdown-item a:hover {
  background: var(--color-bg-light);
  color: var(--color-accent-red);
}

/* Red Student Login Button */
.btn-student-login {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background-color: var(--color-accent-red);
  color: #FFFFFF;
  font-size: 0.9rem;
  font-weight: 700;
  padding: 10px 24px;
  border-radius: var(--radius-pill);
  box-shadow: 0 4px 14px rgba(211, 47, 47, 0.4);
  transition: all 0.2s ease;
}

.btn-student-login:hover {
  background-color: var(--color-red-hover);
  transform: translateY(-2px);
}

.mobile-toggle-btn {
  display: none;
  background: none;
  border: none;
  color: #FFFFFF;
  font-size: 26px;
  cursor: pointer;
}

/* ---------------------------------------------------------------------------
 * Section Views (Single Page Application Switching)
 * --------------------------------------------------------------------------- */
.view-section {
  display: none;
  animation: fadeIn 0.3s ease-in-out;
}

.view-section.active {
  display: block;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(6px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ---------------------------------------------------------------------------
 * Slanted Banner for Inner Pages (Image 1 Header)
 * --------------------------------------------------------------------------- */
.slanted-banner {
  background-color: var(--color-primary-navy);
  color: #FFFFFF;
  padding: 36px 40px;
  clip-path: polygon(0 0, 100% 0, 100% 70%, 0 100%);
  margin-bottom: 30px;
}

.slanted-banner-title {
  font-size: 2.2rem;
  font-weight: 800;
  color: #FFFFFF;
  margin-bottom: 4px;
}

.slanted-breadcrumb {
  font-size: 0.88rem;
  color: #CBD5E1;
}

.slanted-breadcrumb span {
  color: #FFFFFF;
  cursor: pointer;
}

/* ---------------------------------------------------------------------------
 * Full-Bleed Hero Section (Using Academic Books Background)
 * --------------------------------------------------------------------------- */
.hero-section {
  position: relative;
  width: 100%;
  min-height: 540px;
  background-image: url('assets/hero_books.jpg');
  background-size: cover;
  background-position: right center;
  background-repeat: no-repeat;
  display: flex;
  align-items: center;
  overflow: hidden;
}

/* Crisp left white gradient overlay fading into academic books photo */
.hero-overlay-gradient {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, #FFFFFF 44%, rgba(255, 255, 255, 0.95) 58%, rgba(255, 255, 255, 0.5) 75%, rgba(255, 255, 255, 0) 90%);
  z-index: 1;
}

.hero-container {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 60px 40px 100px;
}

.hero-content-box {
  max-width: 580px;
}

.hero-tag {
  font-size: 0.88rem;
  font-weight: 800;
  color: var(--color-accent-red);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 12px;
}

.hero-heading {
  font-size: 3.4rem;
  font-weight: 900;
  line-height: 1.1;
  color: var(--color-primary-navy);
  letter-spacing: -1px;
  margin-bottom: 20px;
}

.hero-description {
  font-size: 1.1rem;
  color: var(--color-text-secondary);
  line-height: 1.6;
  margin-bottom: 36px;
}

.hero-btn-group {
  display: flex;
  align-items: center;
  gap: 16px;
}

.btn-red {
  background-color: var(--color-accent-red);
  color: #FFFFFF;
  font-weight: 700;
  font-size: 0.98rem;
  padding: 14px 32px;
  border-radius: var(--radius-pill);
  box-shadow: 0 4px 16px rgba(211, 47, 47, 0.35);
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: none;
  cursor: pointer;
}

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

.btn-outline-navy {
  background-color: #FFFFFF;
  color: var(--color-primary-navy);
  font-weight: 700;
  font-size: 0.98rem;
  padding: 14px 30px;
  border-radius: var(--radius-pill);
  border: 2px solid var(--color-primary-navy);
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  cursor: pointer;
}

.btn-outline-navy:hover {
  background-color: var(--color-primary-navy);
  color: #FFFFFF;
  transform: translateY(-2px);
}

/* ---------------------------------------------------------------------------
 * Navy Stats Floating Banner Bar (Matching Reference Image 1)
 * --------------------------------------------------------------------------- */
.stats-banner-wrapper {
  max-width: 1280px;
  margin: -50px auto 40px;
  padding: 0 40px;
  position: relative;
  z-index: 10;
}

.stats-banner {
  background-color: var(--color-primary-navy);
  color: #FFFFFF;
  padding: 26px 36px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
}

.stats-container {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.stat-item {
  display: flex;
  align-items: center;
  gap: 16px;
}

.stat-icon-wrapper {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  color: #FFFFFF;
  flex-shrink: 0;
}

.stat-number {
  font-size: 1.85rem;
  font-weight: 900;
  line-height: 1;
  color: #FFFFFF;
}

.stat-label {
  font-size: 0.85rem;
  color: #CBD5E1;
  font-weight: 500;
  margin-top: 4px;
}

/* ---------------------------------------------------------------------------
 * Quick Access Section
 * --------------------------------------------------------------------------- */
.section {
  padding: 50px 40px;
  max-width: 1280px;
  margin: 0 auto;
}

.section-title-center {
  text-align: center;
  font-size: 2.1rem;
  font-weight: 800;
  color: var(--color-primary-navy);
  margin-bottom: 40px;
  position: relative;
}

.section-title-center::after {
  content: '';
  display: block;
  width: 60px;
  height: 4px;
  background-color: var(--color-accent-red);
  margin: 10px auto 0;
  border-radius: 2px;
}

.quick-access-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 20px;
}

.quick-access-card {
  background: #FFFFFF;
  border: 1px solid var(--color-border-light);
  border-radius: var(--radius-md);
  padding: 28px 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  text-align: center;
  box-shadow: var(--shadow-sm);
  transition: all 0.25s ease;
  cursor: pointer;
}

.quick-access-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
  border-color: var(--color-accent-red);
}

.quick-icon-box {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-md);
  background: #F1F5F9;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  color: var(--color-primary-navy);
  transition: all 0.25s ease;
}

.quick-access-card:hover .quick-icon-box {
  background: var(--color-accent-red);
  color: #FFFFFF;
}

.quick-access-label {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--color-primary-navy);
}

/* ---------------------------------------------------------------------------
 * Why Parents Choose Us Section (8 Cards)
 * --------------------------------------------------------------------------- */
.why-us-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.why-us-card {
  background: #FFFFFF;
  border: 1px solid var(--color-border-light);
  border-radius: var(--radius-md);
  padding: 24px;
  box-shadow: var(--shadow-sm);
  transition: all 0.25s ease;
  display: flex;
  align-items: flex-start;
  gap: 16px;
}

.why-us-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: rgba(13, 28, 56, 0.3);
}

.why-us-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  background: #EFF6FF;
  color: var(--color-primary-navy);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  flex-shrink: 0;
}

.why-us-title {
  font-size: 1.02rem;
  font-weight: 700;
  color: var(--color-primary-navy);
  margin-bottom: 6px;
}

.why-us-desc {
  font-size: 0.86rem;
  color: var(--color-text-secondary);
  line-height: 1.5;
}

/* Admission Process Steps */
.timeline-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-bottom: 40px;
}

.step-card {
  background: #FFFFFF;
  border: 1px solid var(--color-border-light);
  border-radius: var(--radius-md);
  padding: 24px;
  text-align: center;
  box-shadow: var(--shadow-sm);
}

.step-number {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--color-primary-navy);
  color: #FFFFFF;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 14px;
}

.input-field {
  width: 100%;
  padding: 14px 18px;
  border: 1px solid var(--color-border-light);
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
  outline: none;
}

.input-field:focus {
  border-color: var(--color-accent-red);
}

/* ---------------------------------------------------------------------------
 * Footer
 * --------------------------------------------------------------------------- */
.footer {
  background: var(--color-primary-navy);
  color: #FFFFFF;
  padding: 60px 40px 24px;
  border-top: 3px solid var(--color-accent-red);
}

.footer-container {
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}

.footer-title {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 20px;
  color: #FFFFFF;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.footer-links-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-link-item a {
  color: #CBD5E1;
  font-size: 0.9rem;
  transition: color 0.2s ease;
  cursor: pointer;
}

.footer-link-item a:hover {
  color: var(--color-accent-red);
}

.footer-bottom-bar {
  max-width: 1280px;
  margin: 0 auto;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
  color: #94A3B8;
}

/* Responsive Styles */
@media (max-width: 1024px) {
  .hero-overlay-gradient {
    background: linear-gradient(90deg, #FFFFFF 65%, rgba(255, 255, 255, 0.9) 85%, rgba(255, 255, 255, 0.4) 100%);
  }

  .quick-access-grid {
    grid-template-columns: repeat(3, 1fr);
  }

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

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

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

@media (max-width: 768px) {
  .navbar {
    padding: 0 16px;
    height: 68px;
    position: relative;
  }

  .brand-logo-img {
    height: 64px;
    top: 2px;
  }

  /* Classic Top Dropdown Header Menu */
  .nav-menu {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    margin-left: 0 !important;
    background: #0A192F;
    padding: 12px 18px 20px;
    border-bottom: 3px solid var(--color-accent-red);
    box-shadow: 0 14px 35px rgba(0, 0, 0, 0.45);
    z-index: 9999;
    gap: 2px;
    align-items: stretch;
  }

  .nav-menu.is-open {
    display: flex !important;
    animation: fadeInDown 0.25s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  }

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

  .nav-menu .nav-item {
    width: 100%;
  }

  .nav-menu .nav-link {
    padding: 12px 14px;
    width: 100%;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    font-size: 0.98rem;
    font-weight: 600;
    color: #E2E8F0;
    justify-content: space-between;
    border-radius: var(--radius-sm);
  }

  .nav-menu .nav-link.active::after {
    display: none;
  }

  .nav-menu .nav-link.active {
    color: #FFFFFF;
    background: rgba(211, 47, 47, 0.2);
    border-left: 3px solid var(--color-accent-red);
    border-bottom-color: transparent;
  }

  .nav-menu .dropdown-menu {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    background: rgba(255, 255, 255, 0.04);
    border-radius: 8px;
    border-left: 2px solid var(--color-accent-red);
    box-shadow: none;
    width: 100%;
    padding: 6px 0;
    margin: 4px 0 8px;
    display: none;
  }

  .nav-item.is-expanded .dropdown-menu,
  .nav-item:hover .dropdown-menu,
  .nav-item:focus-within .dropdown-menu {
    display: block;
  }

  .dropdown-item a {
    color: #CBD5E1;
    padding: 10px 16px;
    display: block;
    font-size: 0.88rem;
    font-weight: 500;
  }

  .dropdown-item a:hover {
    color: #FFFFFF;
    background: rgba(255, 255, 255, 0.08);
  }

  .mobile-toggle-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    color: #FFFFFF;
    cursor: pointer;
    transition: transform 0.2s ease, opacity 0.2s ease;
    z-index: 10002;
    position: relative;
    padding: 0;
  }

  .mobile-toggle-btn:hover {
    opacity: 0.85;
    transform: scale(1.1);
  }

  .mobile-toggle-btn:active {
    transform: scale(0.92);
  }

  .hamburger-icon line {
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.2s ease;
    transform-origin: center;
  }

  .mobile-toggle-btn.is-active .line-top {
    transform: translateY(6px) rotate(45deg);
  }

  .mobile-toggle-btn.is-active .line-mid {
    opacity: 0;
    transform: scaleX(0);
  }

  .mobile-toggle-btn.is-active .line-bot {
    transform: translateY(-6px) rotate(-45deg);
  }

  .hero-heading {
    font-size: 2.3rem;
  }

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

  .why-us-grid {
    grid-template-columns: 1fr;
  }

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

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

  .grid-3-col {
    grid-template-columns: 1fr !important;
  }

  .grid-2-col {
    grid-template-columns: 1fr !important;
  }
}

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

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Utility Grids */
.grid-3-col {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.grid-2-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}

/* ---------------------------------------------------------------------------
 * Social Media Buttons & Icons
 * --------------------------------------------------------------------------- */
.social-links-wrapper {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 14px;
  flex-wrap: wrap;
}

.social-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: var(--radius-pill);
  font-size: 0.9rem;
  font-weight: 700;
  color: #FFFFFF !important;
  text-decoration: none;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.15);
}

.social-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.25);
  color: #FFFFFF !important;
}

.insta-btn {
  background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
}

.fb-btn {
  background: #1877F2;
}

.social-icon-circle {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #FFFFFF !important;
  transition: all 0.2s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.social-icon-circle:hover {
  transform: scale(1.14);
}

/* ---------------------------------------------------------------------------
 * WhatsApp Floating Button & Badge
 * --------------------------------------------------------------------------- */
.whatsapp-float {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 10000;
  display: flex;
  align-items: center;
  gap: 10px;
  background-color: #25D366;
  color: #FFFFFF !important;
  padding: 12px 20px 12px 16px;
  border-radius: 50px;
  text-decoration: none;
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.45);
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  cursor: pointer;
  animation: pulseWhatsApp 2.5s infinite;
}

.whatsapp-float:hover {
  transform: scale(1.08) translateY(-4px);
  box-shadow: 0 10px 28px rgba(37, 211, 102, 0.6);
  background-color: #20BA5A;
  color: #FFFFFF !important;
}

.whatsapp-icon-svg {
  width: 26px;
  height: 26px;
  fill: #FFFFFF;
  flex-shrink: 0;
}

.whatsapp-float-text {
  font-size: 0.9rem;
  font-weight: 700;
  white-space: nowrap;
  letter-spacing: 0.2px;
}

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

@media (max-width: 768px) {
  .whatsapp-float {
    bottom: 20px;
    right: 16px;
    padding: 12px;
    border-radius: 50%;
  }
  .whatsapp-float-text {
    display: none;
  }
}

.wa-btn {
  background: #25D366;
}
.wa-btn:hover {
  background: #20BA5A;
}