/* ===================================================================
   Mahd U Zahra — معہد الزہراء
   Official Stylesheet (style.css)
   Colors: Dark Teal, Deep Teal, Turquoise, Deep Blue, Gold, Light Gold, Cream, White
   Mobile Responsiveness & Authentic Urdu Nastaleeq Typography Architecture
=================================================================== */

/* --- Font Definitions --- */
@font-face {
  font-family: 'Jameel Noori Nastaleeq';
  src: url('assets/fonts/JameelNooriNastaleeq.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

:root {
  /* Primary Brand Palette from Reference */
  --dark-teal: #003B3A;
  --deep-teal: #005653;
  --turquoise: #087F79;
  --gold: #D9AE45;
  --light-gold: #F5D778;
  --cream: #FFF5DF;
  --deep-blue: #176F9F;
  --white: #FFFFFF;
  --text-light: #F8F3E7;

  /* Additional Surface Tokens */
  --color-dark-teal: var(--dark-teal);
  --color-deep-teal: var(--deep-teal);
  --color-turquoise: var(--turquoise);
  --color-gold: var(--gold);
  --color-gold-light: var(--light-gold);
  --color-cream: var(--cream);
  --color-deep-blue: var(--deep-blue);
  --color-teal-card: #002B2A;
  --color-teal-surface: rgba(0, 59, 58, 0.85);
  --color-gold-glow: rgba(217, 174, 69, 0.3);
  --color-text-muted: #D1E7DD;
  --color-border-gold: rgba(217, 174, 69, 0.45);

  /* Fonts */
  --font-urdu: 'Jameel Noori Nastaleeq', 'Noto Nastaliq Urdu', 'Gulzar', 'Amiri', 'Urdu Typesetting', Tahoma, system-ui, -apple-system, sans-serif;
  --font-arabic-display: 'Amiri', 'Noto Nastaliq Urdu', serif;
  --transition-smooth: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
}

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

html {
  direction: rtl;
  text-align: right;
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  padding: 0;
  font-family: var(--font-urdu);
  direction: rtl;
  text-align: right;
  background-color: var(--dark-teal);
  background-image: 
    radial-gradient(circle at 10% 20%, rgba(8, 127, 121, 0.18) 0%, transparent 40%),
    radial-gradient(circle at 90% 80%, rgba(217, 174, 69, 0.1) 0%, transparent 40%),
    url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M30 0L37.07 14.64L51.21 7.32L43.89 21.46L58.54 28.54L43.89 35.61L51.21 49.75L37.07 42.43L30 57.07L22.93 42.43L8.79 49.75L16.11 35.61L1.46 28.54L16.11 21.46L8.79 7.32L22.93 14.64L30 0z' fill='%23d9ae45' fill-opacity='0.025'/%3E%3C/svg%3E");
  color: var(--text-light);
  line-height: 2.1;
  overflow-x: hidden;
  overflow-wrap: anywhere;
  word-break: normal;
  -webkit-font-smoothing: antialiased;
}

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

/* --- Responsive Urdu Typography --- */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-urdu);
  color: var(--light-gold);
  line-height: 1.9;
  margin-top: 0;
  margin-bottom: 0.5rem;
  font-weight: 700;
  overflow-wrap: break-word;
  word-break: normal;
  text-wrap: balance;
}

p, li, label {
  font-family: var(--font-urdu);
  line-height: 2.1;
  overflow-wrap: break-word;
  word-break: normal;
}

span, button, select, input, textarea {
  font-family: var(--font-urdu);
}

a {
  color: var(--gold);
  text-decoration: none;
  transition: var(--transition-smooth);
}

a:hover {
  color: var(--light-gold);
}

/* Tabular Numerals for phone numbers, coords & domain */
.tabular-numbers, .phone-num, .domain-text {
  font-family: system-ui, -apple-system, sans-serif;
  direction: ltr;
  display: inline-block;
  font-variant-numeric: tabular-nums;
  word-break: break-all;
}

/* --- Top Utility Strip --- */
.top-announcement-strip {
  background: #002322;
  border-bottom: 1px solid var(--color-border-gold);
  padding: 8px 0;
  font-size: 0.95rem;
  line-height: 1.8;
}

.top-announcement-strip .badge-free {
  background: linear-gradient(135deg, var(--gold) 0%, var(--light-gold) 100%);
  color: #002322;
  font-weight: bold;
  padding: 3px 14px;
  border-radius: 4px;
  display: inline-block;
  line-height: 1.6;
}

/* --- Navbar (Section-by-Section Color: Dark Teal with Gold detailing) --- */
.site-navbar {
  background: rgba(0, 59, 58, 0.98);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--gold);
  padding: 10px 0;
  position: sticky;
  top: 0;
  z-index: 1020;
  transition: var(--transition-smooth);
}

.site-navbar.scrolled {
  background: rgba(0, 45, 44, 0.98);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}

.brand-wrapper {
  display: flex;
  align-items: center;
  gap: clamp(8px, 2vw, 14px);
  text-decoration: none;
  max-width: calc(100% - 60px);
  overflow: hidden;
}

.brand-logo-img {
  width: clamp(46px, 10vw, 56px);
  height: clamp(46px, 10vw, 56px);
  min-width: clamp(46px, 10vw, 56px);
  object-fit: contain;
  border-radius: 50%;
  border: 2px solid var(--gold);
  box-shadow: 0 0 10px var(--color-gold-glow);
  background: #002827;
}

.brand-text-lockup {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.brand-name-urdu {
  font-size: clamp(1.3rem, 4vw, 1.7rem);
  font-weight: bold;
  color: var(--light-gold);
  line-height: 1.5;
  margin: 0;
  white-space: nowrap;
}

.brand-sub-tag {
  font-size: clamp(0.72rem, 2vw, 0.85rem);
  color: var(--color-text-muted);
  line-height: 1.3;
  margin: 0;
  white-space: nowrap;
}

.nav-links-list {
  display: flex;
  align-items: center;
  gap: 16px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-link-item {
  position: relative;
  font-size: 1.15rem;
  color: var(--cream);
  padding: 6px 12px;
  border-radius: 6px;
  transition: var(--transition-smooth);
  display: inline-block;
  line-height: 1.8;
}

.nav-link-item:hover, .nav-link-item.active {
  color: var(--light-gold);
  background: rgba(217, 174, 69, 0.12);
}

.nav-link-item::after {
  content: '';
  position: absolute;
  bottom: 0;
  right: 50%;
  width: 0;
  height: 2px;
  background: var(--gold);
  transition: all 0.25s ease;
  transform: translateX(50%);
}

.nav-link-item:hover::after, .nav-link-item.active::after {
  width: 70%;
}

.btn-nav-admission {
  background: linear-gradient(135deg, var(--gold) 0%, #b88628 100%);
  color: #001f1e !important;
  font-weight: bold;
  padding: 8px 18px;
  border-radius: 6px;
  border: 1px solid var(--light-gold);
  box-shadow: 0 4px 12px rgba(217, 174, 69, 0.25);
  transition: var(--transition-smooth);
  display: inline-block;
  line-height: 1.6;
  font-size: 1.1rem;
}

.btn-nav-admission:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(217, 174, 69, 0.4);
  color: #000 !important;
}

/* Mobile Hamburger Toggle */
.mobile-nav-toggle {
  background: transparent;
  border: 1px solid var(--color-border-gold);
  color: var(--gold);
  font-size: 1.4rem;
  width: 44px;
  height: 44px;
  min-width: 44px;
  border-radius: 6px;
  cursor: pointer;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 0;
}

.mobile-nav-toggle:focus-visible {
  outline: 2px solid var(--gold);
}

/* --- Hero Section (Section-by-Section Color: Textured Turquoise & Blue-Green) --- */
.hero-section {
  position: relative;
  padding: clamp(40px, 7vw, 75px) 0 clamp(36px, 6vw, 65px);
  background: 
    radial-gradient(circle at 50% 25%, #087F79 0%, #005653 55%, #003B3A 100%);
  border-bottom: 2px solid var(--gold);
  overflow: hidden;
}

.hero-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg width='80' height='80' viewBox='0 0 80 80' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M40 0L49.43 19.53L68.28 9.76L58.52 28.62L78.04 38.05L58.52 47.47L68.28 66.33L49.43 56.57L40 76.09L30.57 56.57L11.72 66.33L21.48 47.47L1.96 38.05L21.48 28.62L11.72 9.76L30.57 19.53L40 0z' fill='%23f5d778' fill-opacity='0.035'/%3E%3C/svg%3E");
  pointer-events: none;
}

.hero-logo-frame {
  width: clamp(150px, 35vw, 220px);
  height: clamp(150px, 35vw, 220px);
  aspect-ratio: 1 / 1;
  margin: 0 auto 20px;
  position: relative;
  border-radius: 50%;
  padding: 8px;
  background: radial-gradient(circle, rgba(217, 174, 69, 0.28) 0%, rgba(0, 59, 58, 0) 70%);
  box-shadow: 0 0 35px var(--color-gold-glow);
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-logo-frame::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 2px dashed var(--gold);
  animation: rotateOrnament 40s linear infinite;
}

@keyframes rotateOrnament {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.hero-logo-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 50%;
  position: relative;
  z-index: 1;
}

.hero-main-title {
  font-size: clamp(2rem, 6vw, 3.4rem);
  color: var(--light-gold);
  margin-bottom: 8px;
  line-height: 1.9;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.55);
}

.hero-sub-title {
  font-size: clamp(1.2rem, 3.8vw, 1.9rem);
  color: var(--white);
  line-height: 1.9;
  margin-bottom: 16px;
}

/* Prominent Free Education Announcement Box */
.hero-free-education-banner {
  display: inline-block;
  background: linear-gradient(135deg, rgba(217, 174, 69, 0.25) 0%, rgba(245, 215, 120, 0.15) 100%);
  border: 2px solid var(--gold);
  padding: 8px clamp(16px, 4vw, 36px);
  border-radius: 8px;
  margin-bottom: 20px;
  box-shadow: 0 0 20px var(--color-gold-glow);
  max-width: 100%;
}

.hero-free-education-banner .text-free-huge {
  font-size: clamp(1.8rem, 5.5vw, 2.5rem);
  font-weight: bold;
  color: var(--light-gold);
  margin: 0;
  line-height: 1.8;
}

.hero-description {
  max-width: 780px;
  margin: 0 auto 28px;
  font-size: clamp(1.05rem, 2.6vw, 1.25rem);
  color: var(--cream);
  line-height: 2.2;
}

.hero-cta-group {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}

/* --- Common Buttons --- */
.btn-gold-primary {
  background: linear-gradient(135deg, var(--gold) 0%, #b88628 100%);
  color: #002221 !important;
  font-size: clamp(1.05rem, 2.6vw, 1.25rem);
  font-weight: bold;
  padding: 10px clamp(18px, 3.5vw, 32px);
  border-radius: 6px;
  border: 1px solid var(--light-gold);
  box-shadow: 0 4px 15px rgba(217, 174, 69, 0.35);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  line-height: 1.6;
  transition: var(--transition-smooth);
}

.btn-gold-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(217, 174, 69, 0.55);
  color: #000 !important;
}

.btn-teal-outline {
  background: rgba(0, 59, 58, 0.85);
  color: var(--light-gold) !important;
  font-size: clamp(1.05rem, 2.6vw, 1.25rem);
  font-weight: bold;
  padding: 10px clamp(18px, 3.5vw, 32px);
  border-radius: 6px;
  border: 1px solid var(--gold);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  line-height: 1.6;
  transition: var(--transition-smooth);
}

.btn-teal-outline:hover {
  background: rgba(217, 174, 69, 0.2);
  color: var(--white) !important;
  transform: translateY(-2px);
}

/* --- Free Education Section (Prominent Golden Yellow Banner with Dark Teal Text) --- */
.free-edu-golden-panel {
  background: linear-gradient(135deg, var(--gold) 0%, var(--light-gold) 100%);
  color: #002e2d !important;
  border: 2px solid var(--gold);
  border-radius: 14px;
  padding: clamp(24px, 4vw, 36px);
  text-align: center;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.35);
  position: relative;
  overflow: hidden;
}

.free-edu-golden-panel h2 {
  color: #002423 !important;
  font-size: clamp(1.6rem, 4.5vw, 2.3rem);
  line-height: 1.9;
  margin-bottom: 10px;
}

.free-edu-golden-panel h3 {
  color: #003B3A !important;
  font-size: clamp(1.2rem, 3.5vw, 1.6rem);
  line-height: 1.8;
  margin-bottom: 12px;
}

.free-edu-golden-panel p {
  color: #001f1e !important;
  font-size: clamp(1rem, 2.6vw, 1.2rem);
  line-height: 2.2;
  margin: 0;
}

/* --- Section Stylings (Alternating Palette for Contrast) --- */
.site-section {
  padding: clamp(45px, 6vw, 75px) 0;
  position: relative;
}

/* Dark Teal Section */
.site-section.bg-dark-teal {
  background-color: var(--dark-teal);
}

/* Deep Teal Section */
.site-section.bg-deep-teal {
  background-color: var(--deep-teal);
}

/* Alt Surface */
.site-section.bg-alt {
  background-color: #002d2c;
}

/* Turquoise Section (for Special Benefits) */
.site-section.section-turquoise {
  background: linear-gradient(135deg, #005653 0%, #087F79 100%);
  border-top: 1px solid var(--gold);
  border-bottom: 1px solid var(--gold);
}

/* Selected Educational Section (Deep Blue from Reference Screenshot 2) */
.site-section.section-deep-blue {
  background: 
    radial-gradient(circle at 80% 20%, rgba(23, 111, 159, 0.4) 0%, transparent 60%),
    linear-gradient(135deg, #0b3d59 0%, #176F9F 100%);
  border-top: 2px solid var(--gold);
  border-bottom: 2px solid var(--gold);
  color: var(--text-light);
}

.section-deep-blue .section-title {
  color: var(--white);
}

.section-deep-blue .section-kicker {
  color: var(--light-gold);
}

/* Section Header Typography */
.section-header {
  text-align: center;
  margin-bottom: clamp(28px, 5vw, 45px);
}

.section-kicker {
  font-size: clamp(0.95rem, 2.5vw, 1.15rem);
  color: var(--gold);
  display: inline-block;
  margin-bottom: 6px;
  line-height: 1.7;
}

.section-title {
  font-size: clamp(1.6rem, 4.5vw, 2.5rem);
  color: var(--light-gold);
  margin-bottom: 12px;
  line-height: 1.9;
}

.section-subtitle {
  font-size: clamp(1rem, 2.5vw, 1.2rem);
  color: var(--color-text-muted);
  max-width: 680px;
  margin: 0 auto;
  line-height: 2.1;
}

.gold-divider {
  width: 90px;
  height: 3px;
  background: linear-gradient(90deg, transparent 0%, var(--gold) 50%, transparent 100%);
  margin: 14px auto 0;
}

/* --- Islamic Cards (Fluid Height & Auto-Wrap) --- */
.islamic-card {
  background: var(--color-teal-card);
  border: 1px solid var(--color-border-gold);
  border-radius: 10px;
  overflow: hidden;
  transition: var(--transition-smooth);
  height: auto;
  min-height: 100%;
  display: flex;
  flex-direction: column;
  position: relative;
}

.islamic-card:hover {
  transform: translateY(-4px);
  border-color: var(--gold);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4), 0 0 12px rgba(217, 174, 69, 0.2);
}

.card-image-wrap {
  position: relative;
  width: 100%;
  height: 200px;
  max-height: 200px;
  overflow: hidden;
  background: #002221;
}

.card-image-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.islamic-card:hover .card-image-wrap img {
  transform: scale(1.05);
}

.card-badge-tag {
  position: absolute;
  top: 12px;
  right: 12px;
  background: rgba(0, 35, 34, 0.92);
  border: 1px solid var(--gold);
  color: var(--light-gold);
  padding: 2px 10px;
  border-radius: 4px;
  font-size: 0.88rem;
  line-height: 1.6;
  z-index: 2;
}

.card-content-body {
  padding: clamp(16px, 3vw, 24px);
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.card-course-title {
  font-size: clamp(1.2rem, 3.2vw, 1.45rem);
  color: var(--light-gold);
  margin-bottom: 10px;
  line-height: 1.9;
  word-wrap: break-word;
  overflow-wrap: break-word;
}

.card-course-desc {
  font-size: clamp(0.95rem, 2.4vw, 1.1rem);
  color: var(--cream);
  line-height: 2.1;
  margin-bottom: 20px;
  flex-grow: 1;
  word-wrap: break-word;
  overflow-wrap: break-word;
}

.card-footer-action {
  margin-top: auto;
  display: flex;
  gap: 10px;
  width: 100%;
}

.btn-card-action {
  width: 100%;
  text-align: center;
  padding: 8px 14px;
  font-size: 1.05rem;
  font-weight: bold;
  border-radius: 6px;
  border: 1px solid var(--gold);
  color: var(--gold);
  background: rgba(217, 174, 69, 0.08);
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1.6;
  transition: var(--transition-smooth);
}

.btn-card-action:hover {
  background: var(--gold);
  color: #002221;
}

/* --- Patron & Supervision Panel --- */
.supervision-panel {
  background: linear-gradient(135deg, #002a29 0%, #004543 100%);
  border: 2px solid var(--gold);
  border-radius: 12px;
  padding: clamp(24px, 4vw, 36px) clamp(16px, 3vw, 28px);
  text-align: center;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
  position: relative;
}

.supervision-title {
  font-size: clamp(1.15rem, 3vw, 1.35rem);
  color: var(--gold);
  margin-bottom: 8px;
  line-height: 1.7;
}

.supervision-name {
  font-size: clamp(1.3rem, 3.6vw, 1.8rem);
  color: var(--white);
  font-weight: bold;
  line-height: 2.0;
  margin-bottom: 0;
  overflow-wrap: break-word;
}

/* --- Affiliation Badge --- */
.affiliation-box {
  background: rgba(0, 40, 39, 0.8);
  border: 1px solid var(--gold);
  border-radius: 8px;
  padding: 18px clamp(16px, 3vw, 24px);
  text-align: center;
  margin-top: 24px;
}

.affiliation-text {
  font-size: clamp(1.1rem, 3.2vw, 1.35rem);
  color: var(--light-gold);
  margin: 0;
  line-height: 1.9;
  overflow-wrap: break-word;
}

/* --- Benefit Cards (Special Benefits Section) --- */
.benefit-card {
  background: rgba(0, 43, 42, 0.9);
  border: 1px solid var(--color-border-gold);
  border-radius: 10px;
  padding: clamp(20px, 3vw, 28px);
  text-align: center;
  transition: var(--transition-smooth);
  height: auto;
  min-height: 100%;
  display: flex;
  flex-direction: column;
}

.benefit-card:hover {
  transform: translateY(-4px);
  border-color: var(--gold);
  background: rgba(0, 52, 51, 0.95);
}

.benefit-icon-wrap {
  width: 56px;
  height: 56px;
  min-width: 56px;
  border-radius: 50%;
  background: rgba(217, 174, 69, 0.15);
  border: 1px solid var(--gold);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
  color: var(--light-gold);
  font-size: 1.5rem;
  flex-shrink: 0;
}

.benefit-title {
  font-size: clamp(1.15rem, 3vw, 1.35rem);
  color: var(--cream);
  margin-bottom: 8px;
  line-height: 1.9;
  overflow-wrap: break-word;
}

/* --- Teachers Qualification Grid --- */
.qualification-pill {
  background: #002d2c;
  border: 1px solid var(--color-border-gold);
  padding: 14px clamp(8px, 2vw, 16px);
  border-radius: 8px;
  text-align: center;
  font-size: clamp(1.1rem, 3vw, 1.35rem);
  color: var(--light-gold);
  line-height: 1.8;
  transition: var(--transition-smooth);
  overflow-wrap: break-word;
}

.qualification-pill:hover {
  border-color: var(--gold);
  background: rgba(217, 174, 69, 0.15);
  transform: translateY(-2px);
}

/* --- Forms (Admission & Contact) --- */
.form-panel-card {
  background: var(--color-teal-card);
  border: 1px solid var(--gold);
  border-radius: 12px;
  padding: clamp(20px, 4vw, 36px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

.form-label-urdu {
  font-size: clamp(1.05rem, 2.6vw, 1.15rem);
  color: var(--cream);
  margin-bottom: 8px;
  display: block;
  line-height: 1.9;
}

.form-label-urdu .text-danger {
  color: #ff6b6b !important;
}

.form-control-urdu {
  background: #00201f;
  border: 1px solid var(--color-border-gold);
  color: #fff;
  border-radius: 6px;
  padding: 10px 14px;
  font-size: 1.05rem;
  width: 100%;
  min-height: 48px;
  font-family: var(--font-urdu);
  line-height: 1.7;
  transition: var(--transition-smooth);
}

.form-control-urdu:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 12px var(--color-gold-glow);
  background: #001918;
  color: #fff;
}

.form-control-urdu::placeholder {
  color: rgba(209, 231, 221, 0.55);
  font-size: 0.95rem;
}

.form-helper-text {
  font-size: 0.95rem;
  color: var(--color-text-muted);
  margin-top: 6px;
  line-height: 1.8;
}

.form-alert-notice {
  background: rgba(217, 174, 69, 0.12);
  border: 1px solid var(--gold);
  border-radius: 6px;
  padding: 14px 18px;
  font-size: 1.05rem;
  color: var(--cream);
  margin-bottom: 24px;
  line-height: 2.0;
}

/* --- Interactive Google Map --- */
.map-container {
  width: 100%;
  height: clamp(240px, 35vw, 380px);
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid var(--gold);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.map-container iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

/* --- WhatsApp Floating Button (Exact User Specifications) --- */
.whatsapp-float,
.floating-whatsapp-btn {
  position: fixed;
  right: max(16px, env(safe-area-inset-right));
  bottom: max(16px, env(safe-area-inset-bottom));
  left: auto !important;
  width: 56px;
  height: 56px;
  aspect-ratio: 1 / 1;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: #25D366;
  border: 2px solid var(--gold);
  color: #fff !important;
  z-index: 1050;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
  text-decoration: none;
  animation: none !important;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.whatsapp-float svg,
.whatsapp-float i,
.floating-whatsapp-btn svg,
.floating-whatsapp-btn i {
  width: 28px;
  height: 28px;
  font-size: 28px;
  line-height: 1;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.whatsapp-float:hover,
.floating-whatsapp-btn:hover {
  transform: scale(1.08);
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.5);
  color: #fff !important;
}

.whatsapp-tooltip {
  display: none; /* Hide to prevent overlaying content on mobile */
}

@media (max-width: 576px) {
  .whatsapp-float,
  .floating-whatsapp-btn {
    width: 50px;
    height: 50px;
    right: 14px;
    bottom: max(14px, env(safe-area-inset-bottom));
  }

  .whatsapp-float svg,
  .whatsapp-float i,
  .floating-whatsapp-btn svg,
  .floating-whatsapp-btn i {
    width: 24px;
    height: 24px;
    font-size: 24px;
  }
}

/* --- Footer (Section-by-Section Color: Deep Dark Teal with Gold & Cream) --- */
.site-footer {
  background: #001f1e;
  border-top: 2px solid var(--gold);
  padding: clamp(40px, 6vw, 60px) 0 24px;
  position: relative;
}

.footer-logo-lockup {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 16px;
}

.footer-logo-img {
  width: 56px;
  height: 56px;
  min-width: 56px;
  object-fit: contain;
  border-radius: 50%;
  border: 1px solid var(--gold);
}

.footer-title {
  font-size: clamp(1.2rem, 3vw, 1.4rem);
  color: var(--light-gold);
  margin-bottom: 14px;
  position: relative;
  padding-bottom: 8px;
  line-height: 1.8;
}

.footer-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  right: 0;
  width: 40px;
  height: 2px;
  background: var(--gold);
}

.footer-links-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

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

.footer-links-list a {
  color: var(--cream);
  font-size: 1.05rem;
  display: inline-block;
  line-height: 1.8;
  transition: var(--transition-smooth);
}

.footer-links-list a:hover {
  color: var(--light-gold);
  transform: translateX(-4px);
}

.footer-contact-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 14px;
  font-size: 1.05rem;
  color: var(--cream);
  line-height: 1.9;
}

.footer-contact-item i {
  margin-top: 4px;
}

.footer-social-links {
  display: flex;
  gap: 10px;
  margin-top: 16px;
  flex-wrap: wrap;
}

.social-icon-btn {
  width: 42px;
  height: 42px;
  min-width: 42px;
  border-radius: 50%;
  background: rgba(0, 59, 58, 0.9);
  border: 1px solid var(--gold);
  color: var(--light-gold) !important;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  transition: var(--transition-smooth);
}

.social-icon-btn:hover {
  background: var(--gold);
  color: #002221 !important;
  transform: translateY(-2px);
}

.footer-bottom-bar {
  border-top: 1px solid rgba(217, 174, 69, 0.25);
  margin-top: 36px;
  padding-top: 20px;
  font-size: 0.95rem;
  color: var(--color-text-muted);
  line-height: 1.9;
}

/* --- Page Hero Banner (Sub-pages) --- */
.page-hero-banner {
  background: 
    radial-gradient(circle at 50% 20%, #087F79 0%, #005653 50%, #003B3A 100%);
  border-bottom: 2px solid var(--gold);
  padding: clamp(36px, 5vw, 55px) 0 clamp(28px, 4vw, 40px);
  text-align: center;
}

.page-hero-title {
  font-size: clamp(1.8rem, 5vw, 2.8rem);
  color: var(--light-gold);
  margin-bottom: 10px;
  line-height: 1.9;
}

.page-hero-subtitle {
  font-size: clamp(1.05rem, 2.6vw, 1.3rem);
  color: var(--cream);
  max-width: 720px;
  margin: 0 auto;
  line-height: 2.1;
}

/* --- Filter Bar on Courses Page --- */
.course-filter-bar {
  display: flex;
  gap: 8px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 30px;
}

.course-filter-btn {
  background: #002524;
  border: 1px solid var(--color-border-gold);
  color: var(--cream);
  padding: 8px 16px;
  border-radius: 6px;
  font-size: clamp(0.95rem, 2.5vw, 1.15rem);
  cursor: pointer;
  min-height: 44px;
  line-height: 1.6;
  transition: var(--transition-smooth);
}

.course-filter-btn:hover, .course-filter-btn.active {
  background: var(--gold);
  color: #001f1e;
  border-color: var(--light-gold);
  font-weight: bold;
}

/* --- Toast Notification --- */
.toast-container-custom {
  position: fixed;
  bottom: 80px;
  right: 16px;
  left: 16px;
  max-width: 420px;
  margin-inline-start: auto;
  z-index: 1060;
  pointer-events: none;
}

.toast-custom {
  background: #002b29;
  border: 1px solid var(--gold);
  color: #fff;
  border-radius: 8px;
  padding: 12px 16px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
  font-size: 1.05rem;
  line-height: 1.9;
  display: flex;
  align-items: center;
  gap: 12px;
  pointer-events: auto;
  animation: slideInToast 0.3s ease;
}

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

/* --- Comprehensive Responsive Breakpoints (320px, 360px, 375px, 390px, 430px, 768px, 1024px, 1440px) --- */
@media (max-width: 991px) {
  .mobile-nav-toggle {
    display: flex;
  }

  .nav-menu-collapse {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    left: 0;
    background: #002b2a;
    border-bottom: 2px solid var(--gold);
    padding: 20px 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
  }

  .nav-menu-collapse.show {
    display: block;
    animation: fadeInDown 0.25s ease;
  }

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

  .nav-links-list {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    width: 100%;
  }

  .nav-link-item {
    width: 100%;
    padding: 10px 14px;
    min-height: 44px;
    display: flex;
    align-items: center;
  }

  .btn-nav-admission {
    width: 100%;
    text-align: center;
    margin-top: 12px;
    display: block;
  }
}

@media (max-width: 576px) {
  .site-navbar {
    padding: 8px 0;
  }

  .hero-cta-group .btn-gold-primary,
  .hero-cta-group .btn-teal-outline {
    width: 100%;
  }

  .form-panel-card {
    padding: 20px 14px;
  }

  .course-filter-btn {
    flex: 1 1 calc(50% - 8px);
    text-align: center;
  }

  .footer-bottom-bar {
    text-align: center;
    flex-direction: column;
    gap: 8px;
  }
}

@media (max-width: 360px) {
  html {
    font-size: 15px;
  }

  .brand-wrapper {
    gap: 6px;
  }

  .brand-logo-img {
    width: 42px;
    height: 42px;
    min-width: 42px;
  }

  .course-filter-btn {
    flex: 1 1 100%;
  }
}

/* Reduced motion preference */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
