/* ============================================================
   UMUL MADARIS MODEL SCHOOL — Shared Stylesheet
   Blue & White Professional Theme
   ============================================================ */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@600;800&family=DM+Sans:ital,wght@0,300;0,400;0,500;0,600;1,400&display=swap');

:root {
  --blue:       #1a3a6b;
  --blue-mid:   #2856a3;
  --blue-light: #4a7fd4;
  --sky:        #e8f0fb;
  --gold:       #c8960c;
  --white:      #ffffff;
  --cream:      #f7f9fd;
  --dark:       #0d1f3c;
  --text:       #1e2d45;
  --muted:      #607090;
  --border:     #d0ddef;

  --font-heading: 'Playfair Display', serif;
  --font-body:    'DM Sans', sans-serif;
  --radius:       12px;
  --shadow:       0 4px 24px rgba(26,58,107,0.10);
  --shadow-lg:    0 12px 48px rgba(26,58,107,0.16);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  background: var(--cream);
  color: var(--text);
  line-height: 1.7;
}
img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }

/* ============================================================
   NAVBAR
   ============================================================ */
nav {
  position: fixed; top: 0; left: 0; right: 0;
  background: var(--blue);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 48px;
  height: 70px;
  z-index: 1000;
  box-shadow: 0 2px 20px rgba(13,31,60,0.25);
}
.nav-logo {
  display: flex; align-items: center; gap: 12px;
  text-decoration: none;
}
.nav-logo .emblem {
  width: 44px; height: 44px;
  background: var(--gold);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-heading);
  font-size: 18px; font-weight: 800;
  color: var(--white);
  flex-shrink: 0;
}
.nav-logo span {
  font-family: var(--font-heading);
  font-size: 16px; color: var(--white);
  line-height: 1.2;
}
.nav-links {
  display: flex; gap: 4px; list-style: none;
}
.nav-links a {
  color: rgba(255,255,255,0.82);
  font-size: 14px; font-weight: 500;
  padding: 8px 16px; border-radius: 6px;
  transition: all 0.2s;
}
.nav-links a:hover,
.nav-links a.active {
  background: rgba(255,255,255,0.15);
  color: var(--white);
}
.hamburger {
  display: none; flex-direction: column; gap: 5px;
  cursor: pointer; background: none; border: none; padding: 4px;
}
.hamburger span {
  display: block; width: 24px; height: 2px;
  background: var(--white); border-radius: 2px;
}

/* ============================================================
   PAGE HEADER (used on inner pages)
   ============================================================ */
.page-header {
  margin-top: 70px;
  background: linear-gradient(135deg, var(--dark) 0%, var(--blue) 60%, var(--blue-mid) 100%);
  padding: 64px 48px;
  position: relative; overflow: hidden;
}
.page-header::before {
  content: '';
  position: absolute; inset: 0; opacity: 0.04;
  background-image: repeating-linear-gradient(45deg, var(--gold) 0, var(--gold) 1px, transparent 0, transparent 50%);
  background-size: 24px 24px;
}
.page-header-content { position: relative; z-index: 1; max-width: 1100px; margin: 0 auto; }
.page-header .tag {
  display: inline-block;
  background: var(--gold);
  color: var(--dark);
  font-size: 11px; font-weight: 700;
  letter-spacing: 2px; text-transform: uppercase;
  padding: 5px 14px; border-radius: 30px;
  margin-bottom: 16px;
}
.page-header h1 {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 4vw, 3rem);
  color: var(--white); line-height: 1.15;
}
.page-header p {
  color: rgba(255,255,255,0.75);
  font-size: 17px; margin-top: 12px;
  max-width: 560px;
}

/* ============================================================
   SECTION STYLES
   ============================================================ */
section { padding: 80px 48px; }
.container { max-width: 1100px; margin: 0 auto; }

.section-header { text-align: center; margin-bottom: 56px; }
.section-tag {
  display: inline-block;
  font-size: 11px; font-weight: 700;
  letter-spacing: 2px; text-transform: uppercase;
  color: var(--blue-mid);
  background: var(--sky);
  padding: 5px 14px; border-radius: 20px;
  margin-bottom: 14px;
}
.section-header h2 {
  font-family: var(--font-heading);
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  color: var(--dark); line-height: 1.2;
}
.section-header p {
  color: var(--muted);
  max-width: 540px; margin: 12px auto 0;
  font-size: 16px;
}
.divider {
  width: 56px; height: 4px;
  background: var(--gold);
  border-radius: 2px;
  margin: 14px auto 0;
}

/* ============================================================
   BUTTONS
   ============================================================ */
.btn-primary {
  display: inline-block;
  background: var(--blue-mid);
  color: var(--white);
  font-weight: 600; font-size: 15px;
  padding: 14px 30px; border-radius: 8px;
  transition: all 0.2s;
}
.btn-primary:hover { background: var(--blue); transform: translateY(-2px); box-shadow: 0 8px 20px rgba(40,86,163,0.35); }
.btn-outline {
  display: inline-block;
  border: 2px solid rgba(255,255,255,0.5);
  color: var(--white);
  font-weight: 600; font-size: 15px;
  padding: 12px 28px; border-radius: 8px;
  transition: all 0.2s;
}
.btn-outline:hover { border-color: var(--white); background: rgba(255,255,255,0.1); }

/* ============================================================
   CARDS
   ============================================================ */
.card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  transition: transform 0.2s, box-shadow 0.2s;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }

/* ============================================================
   FOOTER
   ============================================================ */
footer {
  background: var(--dark);
  color: rgba(255,255,255,0.65);
  padding: 48px 48px 24px;
}
.footer-top {
  display: flex; justify-content: space-between;
  flex-wrap: wrap; gap: 32px;
  padding-bottom: 32px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  margin-bottom: 24px;
}
.footer-brand h3 {
  font-family: var(--font-heading);
  color: var(--white); font-size: 1.2rem; margin-bottom: 8px;
}
.footer-brand p { font-size: 13px; max-width: 260px; line-height: 1.7; }
.footer-links h4 {
  color: var(--gold); font-size: 12px;
  font-weight: 700; letter-spacing: 1.5px;
  text-transform: uppercase; margin-bottom: 14px;
}
.footer-links ul { list-style: none; display: flex; flex-direction: column; gap: 8px; }
.footer-links ul li a { font-size: 13px; transition: color 0.2s; }
.footer-links ul li a:hover { color: var(--white); }
.footer-bottom {
  display: flex; justify-content: space-between;
  align-items: center; flex-wrap: wrap; gap: 8px;
  font-size: 12px;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 768px) {
  nav { padding: 0 20px; }
  .nav-links { display: none; flex-direction: column; position: absolute; top: 70px; left: 0; right: 0; background: var(--blue); padding: 16px 20px; gap: 4px; }
  .nav-links.open { display: flex; }
  .hamburger { display: flex; }
  section { padding: 60px 20px; }
  .page-header { padding: 48px 20px; }
  footer { padding: 40px 20px 20px; }
}
.whatsapp-float {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background-color: #25D366;
  color: white;
  width: 100px;
  height: 100px;
  border-radius: 50%;
  text-align: center;
  font-size: 30px;
  box-shadow: 2px 2px 10px rgba(0,0,0,0.3);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}
.whatsapp-float:hover {
  background-color: #128C7E;
  transform: scale(1.1);
  transition: 0.3s;
}
/* Language Popup & Button Styles */
.lang-modal {
  position: fixed; top: 0; left: 0; width: 100%; height: 100%;
  background: rgba(13, 31, 60, 0.9);
  display: flex; align-items: center; justify-content: center;
  z-index: 10000;
}
.lang-modal-box {
  background: #fff; padding: 40px; border-radius: 12px;
  text-align: center; max-width: 400px; width: 90%;
}
.lang-modal-box h2 { margin-bottom: 20px; color: var(--dark); font-family: var(--font-heading); }
.lang-btn {
  display: block; width: 100%; padding: 15px; margin-bottom: 10px;
  border: none; border-radius: 8px; font-size: 18px; cursor: pointer;
  background: var(--blue); color: #fff; font-weight: bold;
}
.lang-btn.urdu { background: var(--gold); }

/* Top Header Language Toggle - Desktop */
.top-lang-switch {
  position: absolute;
  top: 25px;
  right: 40px; 
  background: var(--gold);
  color: white;
  border: none;
  padding: 6px 16px;
  border-radius: 20px;
  cursor: pointer;
  font-weight: bold;
  z-index: 1000;
  transition: 0.3s;
}

/* Top Header Language Toggle - Mobile (Screens smaller than 768px) */
@media (max-width: 768px) {
  .top-lang-switch {
    right: 70px; /* Puts it nicely to the left of the hamburger menu */
    top: 20px;
    padding: 4px 12px;
    font-size: 13px; /* Slightly smaller text for phone screens */
  }
}
/* Hide the default Google Translate banner */
.skiptranslate iframe, .VIpgJd-ZVi9od-ORHb-OEVmcd { display: none !important; }
body { top: 0 !important; }