/* ===========================
   HULASGANJ PRIVATE ITI - CSS
   =========================== */

:root {
  --navy: #0d1f4e;
  --navy-mid: #1a3270;
  --blue: #1e4db7;
  --blue-light: #2e63d8;
  --gold: #f5a623;
  --gold-light: #ffd166;
  --white: #ffffff;
  --off: #f4f6fb;
  --text: #2c3e50;
  --text-light: #5a6b7b;
  --border: #e0e8f0;
  --radius: 12px;
  --shadow: 0 8px 32px rgba(30,77,183,0.10);
  --shadow-lg: 0 20px 60px rgba(13,31,78,0.18);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: 'DM Sans', sans-serif; color: var(--text); background: var(--white); overflow-x: hidden; }

a { text-decoration: none; color: inherit; }
img { max-width: 100%; }

.container { max-width: 1180px; margin: 0 auto; padding: 0 1.5rem; }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center; }
.section-label { font-size: 0.8rem; font-weight: 600; letter-spacing: 0.15em; text-transform: uppercase; color: var(--blue); margin-bottom: 0.6rem; }
.section-header { text-align: center; margin-bottom: 3rem; }
.section-header h2 { font-family: 'Playfair Display', serif; font-size: 2.4rem; color: var(--navy); line-height: 1.2; margin-bottom: 0.8rem; }
.section-header p { color: var(--text-light); font-size: 1.05rem; max-width: 550px; margin: 0 auto; }
.section-header.light h2 { color: var(--white); }
.section-header.light p { color: rgba(255,255,255,0.75); }
.section-header.light .section-label { color: var(--gold); }
.accent { color: var(--blue); }

/* BUTTONS */
.btn-primary {
  display: inline-block;
  background: var(--blue);
  color: var(--white);
  padding: 0.85rem 2rem;
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.95rem;
  transition: all 0.3s;
  border: none; cursor: pointer;
}
.btn-primary:hover { background: var(--navy); transform: translateY(-2px); box-shadow: 0 8px 24px rgba(30,77,183,0.35); }
.btn-outline {
  display: inline-block;
  border: 2px solid rgba(255,255,255,0.5);
  color: var(--white);
  padding: 0.85rem 2rem;
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.95rem;
  transition: all 0.3s;
}
.btn-outline:hover { background: rgba(255,255,255,0.15); border-color: var(--white); }

/* TOP BAR */
.topbar {
  background: var(--navy);
  color: rgba(255,255,255,0.85);
  font-size: 0.82rem;
  padding: 0.5rem 1.5rem;
  display: flex;
  gap: 2rem;
  flex-wrap: wrap;
  justify-content: center;
}
.admission-badge { background: var(--gold); color: var(--navy); padding: 0.15rem 0.75rem; border-radius: 20px; font-weight: 700; }

/* NAVBAR */
.navbar {
  position: sticky;
  top: 0;
  z-index: 999;
  background: var(--white);
  display: flex;
  align-items: center;
  gap: 1.5rem;
  padding: 0.9rem 2rem;
  box-shadow: 0 2px 20px rgba(13,31,78,0.1);
}
.nav-brand { display: flex; align-items: center; gap: 0.8rem; flex-shrink: 0; }
.logo-icon { background: var(--blue); color: var(--white); font-family: 'Playfair Display', serif; font-weight: 900; font-size: 1.1rem; width: 46px; height: 46px; border-radius: 10px; display: flex; align-items: center; justify-content: center; }
.brand-name { font-weight: 700; font-size: 1rem; color: var(--navy); line-height: 1.2; }
.brand-sub { font-size: 0.72rem; color: var(--text-light); }
.nav-links { list-style: none; display: flex; gap: 0.2rem; margin: 0 auto; }
.nav-links a { padding: 0.5rem 0.9rem; border-radius: 8px; font-size: 0.9rem; font-weight: 500; color: var(--text); transition: all 0.2s; }
.nav-links a:hover, .nav-links a.active { background: var(--off); color: var(--blue); }
.btn-apply { background: var(--gold); color: var(--navy); font-weight: 700; font-size: 0.88rem; padding: 0.6rem 1.4rem; border-radius: 50px; flex-shrink: 0; transition: all 0.3s; }
.btn-apply:hover { background: var(--gold-light); transform: translateY(-2px); }
.hamburger { display: none; background: none; border: none; font-size: 1.5rem; cursor: pointer; }

/* DROPDOWN */
.dropdown { position: relative; }
.dropdown-menu { display: none; position: absolute; top: 100%; left: 0; background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow-lg); padding: 0.5rem; min-width: 200px; z-index: 100; }
.dropdown-menu a { display: block; padding: 0.6rem 1rem; border-radius: 8px; font-size: 0.88rem; }
.dropdown-menu a:hover { background: var(--off); color: var(--blue); }
.dropdown:hover .dropdown-menu { display: block; }

/* HERO */
.hero {
  min-height: 88vh;
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-mid) 60%, #163a8a 100%);
  display: flex;
  align-items: center;
  padding: 5rem 2rem 4rem;
  gap: 3rem;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  top: -100px; right: -100px;
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(30,77,183,0.35) 0%, transparent 70%);
  border-radius: 50%;
}
.hero-bg {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 80px;
  background: var(--white);
  clip-path: ellipse(55% 100% at 50% 100%);
}
.hero-content { max-width: 600px; position: relative; z-index: 2; }
.hero-badge { display: inline-block; background: rgba(245,166,35,0.2); border: 1px solid var(--gold); color: var(--gold); font-size: 0.78rem; font-weight: 600; letter-spacing: 0.1em; padding: 0.35rem 1rem; border-radius: 20px; margin-bottom: 1.5rem; text-transform: uppercase; }
.hero h1 { font-family: 'Playfair Display', serif; font-size: 3.8rem; font-weight: 900; color: var(--white); line-height: 1.1; margin-bottom: 1.2rem; }
.hero h1 .accent { color: var(--gold); }
.hero p { color: rgba(255,255,255,0.8); font-size: 1.1rem; line-height: 1.7; margin-bottom: 2rem; max-width: 480px; }
.hero-btns { display: flex; gap: 1rem; flex-wrap: wrap; margin-bottom: 3rem; }
.hero-stats { display: flex; gap: 2.5rem; }
.hero-stats .stat span { display: block; font-family: 'Playfair Display', serif; font-size: 2.2rem; font-weight: 900; color: var(--gold); }
.hero-stats .stat small { color: rgba(255,255,255,0.7); font-size: 0.82rem; }

.hero-visual { flex: 1; display: flex; align-items: center; justify-content: center; position: relative; min-height: 400px; }
.hero-shape {
  width: 360px; height: 360px;
  background: linear-gradient(135deg, rgba(30,77,183,0.3), rgba(245,166,35,0.2));
  border-radius: 40% 60% 60% 40% / 40% 40% 60% 60%;
  border: 2px solid rgba(255,255,255,0.12);
  position: relative;
  animation: morph 8s ease-in-out infinite;
}
@keyframes morph {
  0%, 100% { border-radius: 40% 60% 60% 40% / 40% 40% 60% 60%; }
  50% { border-radius: 60% 40% 40% 60% / 60% 60% 40% 40%; }
}
.hero-card-float {
  position: absolute;
  background: rgba(255,255,255,0.12);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,0.2);
  color: var(--white);
  font-size: 0.88rem;
  font-weight: 600;
  padding: 0.7rem 1.2rem;
  border-radius: 30px;
  z-index: 3;
  animation: float 3s ease-in-out infinite;
}
.card1 { top: 20%; left: 5%; animation-delay: 0s; }
.card2 { top: 45%; right: 0%; animation-delay: 1s; }
.card3 { bottom: 22%; left: 15%; animation-delay: 2s; }
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

/* NOTICE BAR */
.notice-bar {
  background: var(--off);
  border-top: 3px solid var(--blue);
  display: flex;
  align-items: center;
  overflow: hidden;
  padding: 0.8rem 0;
}
.notice-label { background: var(--blue); color: var(--white); font-size: 0.78rem; font-weight: 700; padding: 0.3rem 1.2rem; white-space: nowrap; margin-right: 1rem; border-radius: 0 20px 20px 0; }
.ticker-wrap { flex: 1; overflow: hidden; }
.ticker { white-space: nowrap; font-size: 0.88rem; color: var(--text); font-weight: 500; animation: ticker 30s linear infinite; display: inline-block; }
@keyframes ticker { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } }

/* ABOUT */
.about-section { padding: 6rem 2rem; }
.about-img-wrap { position: relative; }
.about-img-block { position: relative; }
.img-placeholder { background: linear-gradient(135deg, var(--off), #d0dff5); border-radius: 20px; display: flex; align-items: center; justify-content: center; color: var(--blue); }
.img-placeholder.big { font-size: 6rem; height: 380px; }
.about-badge-float { position: absolute; bottom: -1rem; right: -1rem; background: var(--blue); color: var(--white); font-size: 0.82rem; font-weight: 700; padding: 0.8rem 1.4rem; border-radius: 12px; box-shadow: var(--shadow); }
.about-text h2 { font-family: 'Playfair Display', serif; font-size: 2.2rem; color: var(--navy); margin-bottom: 1.2rem; line-height: 1.3; }
.about-text p { color: var(--text-light); line-height: 1.8; margin-bottom: 1rem; }
.about-highlights { display: grid; grid-template-columns: 1fr 1fr; gap: 0.6rem; margin: 1.5rem 0 2rem; }
.highlight-item { font-size: 0.88rem; font-weight: 500; color: var(--text); }

/* COURSES */
.courses-section { padding: 6rem 2rem; background: var(--off); }
.courses-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.course-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 2rem;
  border: 1px solid var(--border);
  position: relative;
  transition: all 0.3s;
}
.course-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.course-card.featured { background: var(--blue); color: var(--white); border-color: var(--blue); }
.course-card.featured h3, .course-card.featured p { color: var(--white); }
.course-card.featured .course-meta span { background: rgba(255,255,255,0.2); color: var(--white); }
.course-card.featured .course-link { color: var(--gold); }
.featured-tag { position: absolute; top: -0.6rem; right: 1.2rem; background: var(--gold); color: var(--navy); font-size: 0.72rem; font-weight: 700; padding: 0.25rem 0.8rem; border-radius: 20px; }
.course-icon { font-size: 2.2rem; margin-bottom: 1rem; }
.course-card h3 { font-family: 'Playfair Display', serif; font-size: 1.3rem; color: var(--navy); margin-bottom: 0.6rem; }
.course-card p { font-size: 0.9rem; color: var(--text-light); line-height: 1.6; margin-bottom: 1.2rem; }
.course-meta { display: flex; gap: 0.5rem; margin-bottom: 1.2rem; }
.course-meta span { font-size: 0.78rem; font-weight: 600; background: var(--off); color: var(--blue); padding: 0.25rem 0.8rem; border-radius: 20px; }
.course-link { font-size: 0.88rem; font-weight: 700; color: var(--blue); }
.courses-cta { text-align: center; margin-top: 2.5rem; }

/* WHY */
.why-section { padding: 6rem 2rem; background: linear-gradient(135deg, var(--navy), var(--navy-mid)); }
.why-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.why-card { background: rgba(255,255,255,0.07); border: 1px solid rgba(255,255,255,0.12); border-radius: var(--radius); padding: 2rem; transition: all 0.3s; }
.why-card:hover { background: rgba(255,255,255,0.12); transform: translateY(-4px); }
.why-icon { font-size: 2.2rem; margin-bottom: 1rem; }
.why-card h4 { color: var(--white); font-size: 1.05rem; margin-bottom: 0.6rem; }
.why-card p { color: rgba(255,255,255,0.7); font-size: 0.88rem; line-height: 1.7; }

/* STATS */
.stats-section { background: var(--gold); padding: 3.5rem 2rem; }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); text-align: center; gap: 1rem; }
.stat-num { display: block; font-family: 'Playfair Display', serif; font-size: 3rem; font-weight: 900; color: var(--navy); }
.stat-label { font-size: 0.9rem; font-weight: 600; color: var(--navy-mid); }

/* ADMISSION STEPS */
.admission-section { padding: 6rem 2rem; background: var(--white); }
.steps-row { display: flex; align-items: flex-start; gap: 0; justify-content: center; flex-wrap: wrap; }
.step { flex: 1; min-width: 180px; text-align: center; padding: 1.5rem 1rem; }
.step-num { width: 52px; height: 52px; background: var(--blue); color: var(--white); border-radius: 50%; font-family: 'Playfair Display', serif; font-size: 1.4rem; font-weight: 900; display: flex; align-items: center; justify-content: center; margin: 0 auto 1rem; }
.step h4 { font-size: 1rem; color: var(--navy); margin-bottom: 0.4rem; }
.step p { font-size: 0.85rem; color: var(--text-light); line-height: 1.6; }
.step-arrow { font-size: 1.8rem; color: var(--blue); margin-top: 1.5rem; opacity: 0.4; flex-shrink: 0; align-self: flex-start; padding-top: 1.5rem; }

/* TESTIMONIALS */
.testimonials-section { padding: 6rem 2rem; background: var(--off); }
.testi-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.testi-card { background: var(--white); border-radius: var(--radius); padding: 2rem; border: 1px solid var(--border); transition: all 0.3s; position: relative; }
.testi-card:hover { box-shadow: var(--shadow); transform: translateY(-4px); }
.testi-quote { font-family: 'Playfair Display', serif; font-size: 4rem; color: var(--blue); opacity: 0.15; line-height: 1; margin-bottom: -1rem; }
.testi-card p { font-size: 0.92rem; color: var(--text-light); line-height: 1.7; margin-bottom: 1.5rem; }
.testi-author { display: flex; align-items: center; gap: 0.8rem; }
.testi-avatar { width: 42px; height: 42px; background: var(--blue); color: var(--white); font-weight: 700; font-size: 0.82rem; border-radius: 50%; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.testi-author strong { display: block; font-size: 0.9rem; color: var(--navy); }
.testi-author small { color: var(--text-light); font-size: 0.78rem; }

/* CONTACT */
.contact-snippet { padding: 6rem 2rem; background: var(--white); }
.contact-info h2 { font-family: 'Playfair Display', serif; font-size: 2.2rem; color: var(--navy); margin-bottom: 2rem; }
.contact-detail { display: flex; gap: 1rem; margin-bottom: 1.2rem; }
.contact-detail span { font-size: 1.3rem; flex-shrink: 0; margin-top: 0.1rem; }
.contact-detail strong { display: block; font-size: 0.85rem; font-weight: 700; color: var(--navy); margin-bottom: 0.1rem; }
.contact-detail p { color: var(--text-light); font-size: 0.9rem; }
.contact-form-wrap { background: var(--off); border-radius: 20px; padding: 2.5rem; }
.contact-form h3 { font-family: 'Playfair Display', serif; font-size: 1.5rem; color: var(--navy); margin-bottom: 1.5rem; }
.contact-form input, .contact-form select, .contact-form textarea {
  width: 100%; padding: 0.85rem 1.1rem;
  border: 1px solid var(--border);
  border-radius: 10px;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.9rem;
  background: var(--white);
  color: var(--text);
  margin-bottom: 1rem;
  outline: none;
  transition: border-color 0.2s;
}
.contact-form input:focus, .contact-form select:focus, .contact-form textarea:focus { border-color: var(--blue); }
.contact-form button { width: 100%; }

/* FOOTER */
.footer { background: var(--navy); color: rgba(255,255,255,0.8); padding: 4rem 2rem 0; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1.5fr; gap: 3rem; padding-bottom: 3rem; border-bottom: 1px solid rgba(255,255,255,0.1); }
.footer-logo { display: flex; align-items: center; gap: 0.8rem; margin-bottom: 1rem; }
.footer-logo .brand-name { color: var(--white); }
.footer-logo small { color: rgba(255,255,255,0.6); }
.footer-col p { font-size: 0.88rem; line-height: 1.7; color: rgba(255,255,255,0.65); margin-bottom: 0.5rem; }
.affiliation { display: inline-block; background: rgba(245,166,35,0.15); border: 1px solid rgba(245,166,35,0.4); color: var(--gold); font-size: 0.78rem; font-weight: 600; padding: 0.35rem 1rem; border-radius: 20px; margin-top: 0.8rem; }
.footer-col h4 { color: var(--white); font-size: 0.95rem; font-weight: 700; margin-bottom: 1rem; }
.footer-col a { display: block; font-size: 0.88rem; color: rgba(255,255,255,0.65); padding: 0.25rem 0; transition: color 0.2s; }
.footer-col a:hover { color: var(--gold); }
.footer-bottom { padding: 1.5rem 0; text-align: center; font-size: 0.8rem; color: rgba(255,255,255,0.45); }
.footer-bottom p { margin-bottom: 0.2rem; }

/* PAGE HEADER */
.page-header { background: linear-gradient(135deg, var(--navy), var(--blue)); padding: 5rem 2rem 4rem; text-align: center; }
.page-header h1 { font-family: 'Playfair Display', serif; font-size: 3rem; color: var(--white); margin-bottom: 0.8rem; }
.page-header p { color: rgba(255,255,255,0.75); font-size: 1.05rem; max-width: 600px; margin: 0 auto; }
.breadcrumb { color: rgba(255,255,255,0.5); font-size: 0.85rem; margin-bottom: 1rem; }
.breadcrumb a { color: var(--gold); }

/* ==============================
   RESPONSIVE — COMPREHENSIVE FIX
   ============================== */

/* --- TABLET: 1024px --- */
@media (max-width: 1024px) {
  .navbar { padding: 0.8rem 1.2rem; gap: 1rem; }
  .nav-links a { padding: 0.45rem 0.65rem; font-size: 0.85rem; }
  .courses-grid { grid-template-columns: repeat(2, 1fr); }
  .why-grid { grid-template-columns: repeat(2, 1fr); }
  .testi-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 2rem; }
  .hero h1 { font-size: 3rem; }
  .hero-visual { display: none; }
  .hero-content { max-width: 100%; }
  .stats-grid { grid-template-columns: repeat(4, 1fr); }
  .steps-row { flex-wrap: wrap; gap: 1rem; }
  .step { min-width: 140px; }
  .step-arrow { display: none; }
}

/* --- MOBILE: 768px --- */
@media (max-width: 768px) {
  /* Topbar */
  .topbar {
    font-size: 0.72rem;
    gap: 0.5rem;
    padding: 0.4rem 1rem;
    flex-wrap: wrap;
    justify-content: center;
  }

  /* Navbar */
  .navbar {
    position: sticky;
    top: 0;
    padding: 0.75rem 1rem;
    gap: 0.5rem;
    flex-wrap: nowrap;
  }
  .brand-name { font-size: 0.9rem; }
  .brand-sub { font-size: 0.65rem; }
  .logo-icon { width: 38px; height: 38px; font-size: 0.95rem; }
  .nav-links {
    display: none;
    flex-direction: column;
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: var(--white);
    padding: 5rem 2rem 2rem;
    box-shadow: var(--shadow-lg);
    z-index: 998;
    overflow-y: auto;
    gap: 0.3rem;
  }
  .nav-links.open { display: flex; }
  .nav-links li { width: 100%; }
  .nav-links a {
    display: block;
    padding: 0.85rem 1rem;
    font-size: 1rem;
    border-radius: 10px;
    border-bottom: 1px solid var(--off);
  }
  .dropdown-menu {
    position: static;
    box-shadow: none;
    padding: 0 0 0 1rem;
    border-left: 3px solid var(--off);
    margin-top: 0.3rem;
  }
  .hamburger {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px; height: 38px;
    background: var(--off);
    border-radius: 8px;
    font-size: 1.2rem;
    z-index: 999;
    position: relative;
  }
  .btn-apply { font-size: 0.78rem; padding: 0.5rem 1rem; flex-shrink: 0; }

  /* Hero */
  .hero {
    min-height: auto;
    padding: 3rem 1.2rem 5rem;
    flex-direction: column;
  }
  .hero h1 { font-size: 2.2rem; }
  .hero p { font-size: 0.95rem; }
  .hero-badge { font-size: 0.7rem; }
  .hero-btns { flex-direction: column; gap: 0.75rem; }
  .hero-btns .btn-primary, .hero-btns .btn-outline { text-align: center; width: 100%; max-width: 280px; }
  .hero-stats { gap: 1.5rem; flex-wrap: wrap; }
  .hero-stats .stat span { font-size: 1.8rem; }

  /* Notice bar */
  .notice-label { font-size: 0.72rem; padding: 0.25rem 0.8rem; }
  .ticker { font-size: 0.82rem; }

  /* General layout */
  .two-col { grid-template-columns: 1fr; gap: 2rem; }
  .container { padding: 0 1rem; }
  section { padding: 4rem 1rem !important; }

  /* Section headers */
  .section-header { margin-bottom: 2rem; }
  .section-header h2 { font-size: 1.75rem; }
  .section-header p { font-size: 0.9rem; }

  /* About */
  .img-placeholder.big { height: 220px; font-size: 4rem; }
  .about-text h2 { font-size: 1.75rem; }
  .about-highlights { grid-template-columns: 1fr; }
  .about-badge-float { font-size: 0.75rem; padding: 0.6rem 1rem; bottom: 0.5rem; right: 0.5rem; }

  /* Courses */
  .courses-grid { grid-template-columns: 1fr; }
  .course-card { padding: 1.5rem; }

  /* Why */
  .why-grid { grid-template-columns: 1fr; }
  .why-card { padding: 1.5rem; }

  /* Stats */
  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 1.5rem; }
  .stat-num { font-size: 2.4rem; }

  /* Admission steps */
  .steps-row { flex-direction: column; align-items: center; }
  .step { width: 100%; max-width: 300px; }
  .step-arrow { display: none; }

  /* Testimonials */
  .testi-grid { grid-template-columns: 1fr; }

  /* Contact snippet */
  .contact-snippet .two-col { gap: 2rem; }
  .contact-form-wrap { padding: 1.5rem; }
  .contact-info h2 { font-size: 1.75rem; }

  /* Footer */
  .footer { padding: 3rem 1rem 0; }
  .footer-grid { grid-template-columns: 1fr; gap: 1.8rem; }
  .footer-bottom { font-size: 0.75rem; padding: 1rem 0; }

  /* Page header */
  .page-header { padding: 4rem 1.2rem 3rem; }
  .page-header h1 { font-size: 2rem; }
  .page-header p { font-size: 0.9rem; }
}

/* --- SMALL MOBILE: 480px --- */
@media (max-width: 480px) {
  .topbar { display: none; } /* hide on very small screens */

  .navbar { padding: 0.65rem 0.85rem; }
  .nav-brand { gap: 0.5rem; }
  .brand-name { font-size: 0.82rem; }
  .brand-sub { display: none; }
  .logo-icon { width: 34px; height: 34px; font-size: 0.85rem; border-radius: 8px; }
  .btn-apply { display: none; } /* hidden — they can use menu */

  .hero h1 { font-size: 1.9rem; line-height: 1.2; }
  .hero p { font-size: 0.88rem; }
  .hero-stats { gap: 1rem; }
  .hero-stats .stat span { font-size: 1.5rem; }
  .hero-stats .stat small { font-size: 0.72rem; }

  .section-header h2 { font-size: 1.5rem; }
  .courses-grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 1rem; }
  .stat-num { font-size: 2rem; }
  .stat-label { font-size: 0.8rem; }

  .footer-grid { grid-template-columns: 1fr; }
  .page-header h1 { font-size: 1.7rem; }
  .page-header p { font-size: 0.85rem; }

  /* Courses page specific */
  .trade-detail { grid-template-columns: 1fr !important; }
  .trade-detail .trade-icon { height: 100px; font-size: 2.5rem; }
  .trade-detail h3 { font-size: 1.4rem; }

  /* Admission page */
  .admission-grid { grid-template-columns: 1fr !important; }
  .form-row { grid-template-columns: 1fr !important; }
  .imp-dates li { flex-direction: column; align-items: flex-start; gap: 0.3rem; }

  /* About page */
  .mission-grid { grid-template-columns: 1fr !important; }
  .team-grid { grid-template-columns: repeat(2, 1fr) !important; }

  /* Facilities */
  .fac-grid { grid-template-columns: 1fr !important; }

  /* Gallery */
  .gallery-grid { grid-template-columns: repeat(2, 1fr) !important; }
  .gallery-filter { gap: 0.5rem; }
  .filter-btn { font-size: 0.78rem; padding: 0.45rem 1rem; }

  /* Contact page */
  .contact-page-grid { grid-template-columns: 1fr !important; }
}

/* Close button for mobile nav overlay */
.nav-close {
  display: none;
  position: fixed;
  top: 1rem; right: 1rem;
  z-index: 1000;
  background: var(--navy);
  color: var(--white);
  border: none;
  width: 36px; height: 36px;
  border-radius: 50%;
  font-size: 1.2rem;
  cursor: pointer;
  align-items: center;
  justify-content: center;
}
.nav-close.visible { display: flex; }

/* ── PATCH: inner-page grids (override inline styles) ── */
@media (max-width: 900px) {
  .admission-grid,
  .contact-page-grid { grid-template-columns: 1fr !important; }
  .apply-form { position: static !important; }
  .form-row { grid-template-columns: 1fr !important; }
}
@media (max-width: 768px) {
  /* Courses page */
  .trade-detail { grid-template-columns: 1fr !important; gap: 1.5rem; }
  .trade-meta { flex-wrap: wrap; }

  /* About page */
  .mission-grid { grid-template-columns: 1fr !important; }
  .team-grid { grid-template-columns: repeat(2, 1fr) !important; }

  /* Facilities page */
  .fac-grid { grid-template-columns: 1fr !important; }

  /* Gallery page */
  .gallery-grid { grid-template-columns: repeat(2, 1fr) !important; }

  /* General inner pages */
  .adm-box { padding: 1.5rem; }
  .fee-table { font-size: 0.82rem; }
  .fee-table th, .fee-table td { padding: 0.6rem 0.7rem; }
  .contact-form-full { padding: 1.5rem; }
  .apply-form { padding: 1.5rem; }
}
@media (max-width: 480px) {
  .team-grid { grid-template-columns: repeat(2, 1fr) !important; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr) !important; }
  .trade-detail .trade-icon { padding: 1rem; font-size: 2rem !important; height: 80px !important; }
  .mission-card { padding: 1.5rem; }
  .imp-dates li { flex-direction: column; align-items: flex-start; gap: 0.3rem; }
  .hero-btns { align-items: flex-start; }
  .hero-btns a { font-size: 0.88rem; padding: 0.8rem 1.5rem; }
}
