/* ===== ROOT VARIABLES ===== */
:root {
  --primary: #1a2a5e;
  --primary-light: #2c3e8f;
  --primary-dark: #0f1a3a;
  --secondary: #c8a415;
  --secondary-light: #e6c332;
  --accent: #d4af37;
  --white: #ffffff;
  --off-white: #f8f9fa;
  --light-gray: #e9ecef;
  --mid-gray: #6c757d;
  --dark-gray: #343a40;
  --text: #212529;
  --text-light: #495057;
  --shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 8px 40px rgba(0, 0, 0, 0.12);
  --radius: 12px;
  --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

/* ===== RESET & BASE ===== */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

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

body {
  font-family: 'Inter', 'Segoe UI', system-ui, -apple-system, sans-serif;
  color: var(--text);
  line-height: 1.7;
  overflow-x: hidden;
  background: var(--white);
}

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

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

ul {
  list-style: none;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Playfair Display', Georgia, serif;
  line-height: 1.3;
  color: var(--primary);
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ===== PRELOADER ===== */
.preloader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10000;
  transition: opacity 0.5s ease, visibility 0.5s ease;
}

.preloader.hidden {
  opacity: 0;
  visibility: hidden;
}

.preloader-content {
  text-align: center;
  color: var(--white);
}

.preloader-cross {
  font-size: 3rem;
  color: var(--accent);
  margin-bottom: 16px;
  animation: pulse 1.2s ease-in-out infinite;
}

.preloader-logo {
  width: 80px;
  height: 80px;
  object-fit: contain;
  margin-bottom: 16px;
  animation: pulse 1.2s ease-in-out infinite;
}

.preloader-motto {
  font-family: 'Inter', sans-serif;
  font-size: 0.85rem;
  color: var(--accent);
  font-style: italic;
  letter-spacing: 1px;
  margin-top: 6px;
}

.preloader-text {
  font-family: 'Playfair Display', serif;
  font-size: 1.2rem;
  letter-spacing: 2px;
  text-transform: uppercase;
}

.preloader-bar {
  width: 200px;
  height: 3px;
  background: rgba(255, 255, 255, 0.2);
  margin: 20px auto 0;
  border-radius: 3px;
  overflow: hidden;
}

.preloader-bar::after {
  content: '';
  display: block;
  width: 40%;
  height: 100%;
  background: var(--accent);
  border-radius: 3px;
  animation: loading 1.2s ease-in-out infinite;
}

@keyframes loading {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(350%); }
}

@keyframes pulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.1); opacity: 0.7; }
}

/* ===== TOP BAR ===== */
.top-bar {
  background: var(--primary-dark);
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.85rem;
  padding: 8px 0;
}

.top-bar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.top-bar a {
  color: rgba(255, 255, 255, 0.85);
}

.top-bar a:hover {
  color: var(--accent);
}

.top-bar-left,
.top-bar-right {
  display: flex;
  align-items: center;
  gap: 20px;
}

.top-bar-item {
  display: flex;
  align-items: center;
  gap: 6px;
}

/* ===== NAVIGATION ===== */
.navbar {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--white);
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.06);
  transition: var(--transition);
}

.navbar.scrolled {
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 80px;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 14px;
}

.nav-logo {
  width: 55px;
  height: 55px;
  background: var(--primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  font-size: 1.6rem;
  font-weight: 700;
  font-family: 'Playfair Display', serif;
  flex-shrink: 0;
}

.nav-logo-img {
  width: 55px;
  height: 55px;
  object-fit: contain;
  flex-shrink: 0;
  image-rendering: -webkit-optimize-contrast;
}

.nav-brand-text h1 {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--primary);
  line-height: 1.3;
}

.nav-brand-text span {
  font-size: 0.7rem;
  color: var(--mid-gray);
  font-family: 'Inter', sans-serif;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  font-weight: 500;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-links a {
  padding: 8px 16px;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-light);
  border-radius: 8px;
  transition: var(--transition);
  font-family: 'Inter', sans-serif;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--primary);
  background: rgba(26, 42, 94, 0.06);
}

.nav-cta {
  background: var(--primary) !important;
  color: var(--white) !important;
  padding: 10px 24px !important;
  border-radius: 50px !important;
  font-weight: 600 !important;
}

.nav-cta:hover {
  background: var(--primary-light) !important;
  transform: translateY(-1px);
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 8px;
  z-index: 1001;
}

.hamburger span {
  width: 26px;
  height: 2.5px;
  background: var(--primary);
  border-radius: 3px;
  transition: var(--transition);
}

.hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
}

.hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* ===== HERO ===== */
.hero {
  position: relative;
  min-height: 90vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero-slider {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 1.2s ease-in-out;
}

.hero-slide.active {
  opacity: 1;
}

.hero-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(15, 26, 58, 0.88) 0%,
    rgba(26, 42, 94, 0.75) 50%,
    rgba(15, 26, 58, 0.65) 100%
  );
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 750px;
  padding: 40px 0;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  padding: 8px 20px;
  border-radius: 50px;
  color: var(--accent);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 24px;
}

.hero h2 {
  font-size: 3.5rem;
  color: var(--white);
  font-weight: 700;
  margin-bottom: 20px;
  line-height: 1.15;
}

.hero h2 span {
  color: var(--accent);
}

.hero-motto {
  font-family: 'Playfair Display', serif;
  font-size: 1.4rem;
  font-style: italic;
  color: var(--accent);
  margin-bottom: 24px;
  letter-spacing: 1px;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.hero p {
  font-size: 1.15rem;
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 36px;
  max-width: 600px;
  line-height: 1.8;
}

.hero-buttons {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  border-radius: 50px;
  font-size: 0.95rem;
  font-weight: 600;
  font-family: 'Inter', sans-serif;
  cursor: pointer;
  border: none;
  transition: var(--transition);
}

.btn-primary {
  background: var(--accent);
  color: var(--primary-dark);
}

.btn-primary:hover {
  background: var(--secondary-light);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(212, 175, 55, 0.3);
}

.btn-outline {
  background: transparent;
  color: var(--white);
  border: 2px solid rgba(255, 255, 255, 0.4);
}

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

.hero-stats {
  display: flex;
  gap: 48px;
  margin-top: 50px;
  padding-top: 30px;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
}

.stat-item {
  text-align: center;
}

.stat-number {
  font-family: 'Playfair Display', serif;
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--accent);
  display: block;
}

.stat-label {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.7);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-top: 4px;
}

/* ===== SECTION STYLES ===== */
.section {
  padding: 100px 0;
}

.section-alt {
  background: var(--off-white);
}

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

.section-header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 60px;
}

.section-label {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 12px;
  font-family: 'Inter', sans-serif;
}

.section-header h2 {
  font-size: 2.5rem;
  margin-bottom: 16px;
}

.section-header p {
  font-size: 1.05rem;
  color: var(--text-light);
  line-height: 1.8;
}

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

.section-dark .section-header p {
  color: rgba(255, 255, 255, 0.75);
}

.section-divider {
  width: 60px;
  height: 4px;
  background: linear-gradient(90deg, var(--accent), var(--secondary-light));
  border-radius: 4px;
  margin: 16px auto 0;
}

/* ===== ABOUT SECTION ===== */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.about-images {
  position: relative;
}

.about-img-main {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.about-img-main img {
  width: 100%;
  height: 400px;
  object-fit: cover;
}

.about-img-accent {
  position: absolute;
  bottom: -30px;
  right: -30px;
  width: 200px;
  height: 200px;
  border-radius: var(--radius);
  overflow: hidden;
  border: 5px solid var(--white);
  box-shadow: var(--shadow-lg);
}

.about-img-accent img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.about-content h2 {
  font-size: 2.2rem;
  margin-bottom: 20px;
}

.about-content p {
  color: var(--text-light);
  margin-bottom: 20px;
  font-size: 1.02rem;
}

.about-features {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 30px;
}

.about-feature {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 18px;
  background: var(--off-white);
  border-radius: 10px;
  font-weight: 500;
  font-size: 0.9rem;
  transition: var(--transition);
}

.about-feature:hover {
  background: var(--primary);
  color: var(--white);
  transform: translateY(-2px);
}

.about-feature .icon {
  font-size: 1.3rem;
  flex-shrink: 0;
}

/* ===== MISSION & VISION ===== */
.mv-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}

.mv-card {
  padding: 50px 40px;
  border-radius: var(--radius);
  position: relative;
  overflow: hidden;
  transition: var(--transition);
}

.mv-card:hover {
  transform: translateY(-5px);
}

.mv-card.mission {
  background: var(--primary);
  color: var(--white);
}

.mv-card.vision {
  background: var(--white);
  border: 2px solid var(--light-gray);
}

.mv-card::before {
  content: '';
  position: absolute;
  top: -50px;
  right: -50px;
  width: 200px;
  height: 200px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
}

.mv-icon {
  width: 70px;
  height: 70px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  margin-bottom: 24px;
}

.mission .mv-icon {
  background: rgba(212, 175, 55, 0.2);
  color: var(--accent);
}

.vision .mv-icon {
  background: rgba(26, 42, 94, 0.08);
  color: var(--primary);
}

.mv-card h3 {
  font-size: 1.6rem;
  margin-bottom: 16px;
}

.mission h3 {
  color: var(--white);
}

.mv-card p {
  line-height: 1.9;
  font-size: 1.02rem;
}

.mission p {
  color: rgba(255, 255, 255, 0.85);
}

.vision p {
  color: var(--text-light);
}

.motto-highlight {
  margin-top: 20px;
  font-family: 'Playfair Display', serif;
  font-size: 1.15rem;
  font-style: italic;
  color: var(--accent);
  letter-spacing: 0.5px;
  padding-top: 16px;
  border-top: 2px solid rgba(212, 175, 55, 0.25);
}

/* ===== CORE VALUES ===== */
.values-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 24px;
}

.value-card {
  text-align: center;
  padding: 36px 20px;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  transition: var(--transition);
  border-bottom: 4px solid transparent;
}

.value-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
  border-bottom-color: var(--accent);
}

.value-icon {
  width: 60px;
  height: 60px;
  margin: 0 auto 16px;
  background: linear-gradient(135deg, rgba(26, 42, 94, 0.06), rgba(212, 175, 55, 0.1));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
}

.value-card h4 {
  font-size: 1rem;
  margin-bottom: 8px;
  font-family: 'Inter', sans-serif;
  font-weight: 700;
}

.value-card p {
  font-size: 0.85rem;
  color: var(--mid-gray);
  line-height: 1.6;
}

/* ===== ADMISSIONS ===== */
.admissions-banner {
  width: 100%;
  max-height: 380px;
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 40px;
  box-shadow: var(--shadow-lg);
}

.admissions-banner img {
  width: 100%;
  height: 100%;
  max-height: 380px;
  object-fit: cover;
  object-position: center 25%;
  display: block;
}

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

.admission-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 36px 28px;
  box-shadow: var(--shadow);
  transition: var(--transition);
  border-top: 4px solid transparent;
  position: relative;
}

.admission-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-top-color: var(--accent);
}

.admission-step {
  font-family: 'Playfair Display', serif;
  font-size: 2.5rem;
  font-weight: 800;
  color: rgba(26, 42, 94, 0.08);
  line-height: 1;
  margin-bottom: 12px;
}

.admission-card h4 {
  font-size: 1.05rem;
  font-family: 'Inter', sans-serif;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 10px;
}

.admission-card p {
  font-size: 0.9rem;
  color: var(--text-light);
  line-height: 1.7;
}

.admissions-cta {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ===== REGISTRATION FORM ===== */
.registration-form-wrapper {
  max-width: 800px;
  margin: 56px auto 0;
  background: var(--white);
  border-radius: var(--radius);
  padding: 48px;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--light-gray);
  border-top: 4px solid var(--accent);
}

.reg-form-header {
  text-align: center;
  margin-bottom: 32px;
}

.reg-form-header h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1.6rem;
  color: var(--primary);
  margin-bottom: 8px;
}

.reg-form-header p {
  font-size: 0.92rem;
  color: var(--text-light);
  max-width: 540px;
  margin: 0 auto;
  line-height: 1.6;
}

.registration-form .form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 20px;
}

.registration-form .form-group {
  display: flex;
  flex-direction: column;
  margin-bottom: 4px;
}

.registration-form label {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 6px;
  font-family: 'Inter', sans-serif;
}

.registration-form label .required {
  color: #e74c3c;
}

.registration-form input,
.registration-form select,
.registration-form textarea {
  width: 100%;
  padding: 12px 16px;
  border: 2px solid var(--light-gray);
  border-radius: 10px;
  font-size: 0.95rem;
  font-family: 'Inter', sans-serif;
  color: var(--text);
  background: var(--off-white);
  transition: var(--transition);
  outline: none;
}

.registration-form input:focus,
.registration-form select:focus,
.registration-form textarea:focus {
  border-color: var(--primary);
  background: var(--white);
  box-shadow: 0 0 0 4px rgba(26, 42, 94, 0.08);
}

.registration-form input::placeholder,
.registration-form textarea::placeholder {
  color: var(--mid-gray);
  font-size: 0.88rem;
}

.registration-form textarea {
  resize: vertical;
  min-height: 80px;
}

.registration-form select {
  cursor: pointer;
  appearance: auto;
}

/* ===== LEADERSHIP ===== */
.leadership-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  max-width: 900px;
  margin: 0 auto;
}

.leader-card {
  text-align: center;
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: var(--transition);
}

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

.leader-img {
  width: 100%;
  height: 320px;
  overflow: hidden;
  position: relative;
}

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

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

.leader-img::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 80px;
  background: linear-gradient(transparent, rgba(0,0,0,0.3));
}

.leader-info {
  padding: 28px 24px;
}

.leader-title {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--accent);
  font-weight: 700;
  font-family: 'Inter', sans-serif;
  margin-bottom: 8px;
}

.leader-info h3 {
  font-size: 1.3rem;
  margin-bottom: 12px;
  text-transform: capitalize;
}

.leader-info p {
  font-size: 0.9rem;
  color: var(--text-light);
  line-height: 1.7;
}

/* ===== ACADEMIC OFFICE ===== */
.academic-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.academic-content h2 {
  font-size: 2.2rem;
  margin-bottom: 20px;
}

.academic-content > p {
  color: var(--text-light);
  margin-bottom: 28px;
  font-size: 1.02rem;
}

.academic-features {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.academic-feature {
  display: flex;
  gap: 16px;
  padding: 20px;
  background: var(--off-white);
  border-radius: var(--radius);
  transition: var(--transition);
}

.academic-feature:hover {
  background: var(--white);
  box-shadow: var(--shadow);
  transform: translateX(5px);
}

.academic-feature-icon {
  width: 48px;
  height: 48px;
  min-width: 48px;
  border-radius: 12px;
  background: var(--primary);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
}

.academic-feature h4 {
  font-size: 1rem;
  font-family: 'Inter', sans-serif;
  font-weight: 700;
  margin-bottom: 4px;
}

.academic-feature p {
  font-size: 0.88rem;
  color: var(--mid-gray);
  line-height: 1.6;
}

.academic-images {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.academic-images .acad-img {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.academic-images .acad-img img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.academic-images .acad-img:hover img {
  transform: scale(1.05);
}

.academic-images .acad-img:first-child {
  grid-column: 1 / -1;
}

.academic-images .acad-img:first-child img {
  height: 280px;
}

/* ===== COMMUNITY ===== */
.community-banner {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  min-height: 450px;
  display: flex;
  align-items: center;
}

.community-banner img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.community-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(15, 26, 58, 0.92) 0%, rgba(26, 42, 94, 0.7) 60%, transparent 100%);
}

.community-content {
  position: relative;
  z-index: 2;
  max-width: 550px;
  padding: 50px;
  color: var(--white);
}

.community-content h2 {
  font-size: 2.2rem;
  color: var(--white);
  margin-bottom: 20px;
}

.community-content p {
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 16px;
  font-size: 1.02rem;
  line-height: 1.8;
}

.community-highlights {
  display: flex;
  gap: 30px;
  margin-top: 28px;
}

.community-highlight {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 500;
  font-size: 0.92rem;
}

.community-highlight .ch-icon {
  width: 36px;
  height: 36px;
  background: rgba(212, 175, 55, 0.2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  font-size: 1rem;
}

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

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

.gallery-item:hover {
  transform: scale(1.02);
  box-shadow: var(--shadow-lg);
}

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

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

.gallery-item-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(transparent 60%, rgba(0,0,0,0.5));
  opacity: 0;
  transition: var(--transition);
  display: flex;
  align-items: flex-end;
  padding: 20px;
}

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

.gallery-item-overlay span {
  color: var(--white);
  font-size: 1.3rem;
}

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.95);
  z-index: 9999;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 40px;
}

.lightbox.active {
  display: flex;
}

.lightbox img {
  max-width: 90vw;
  max-height: 85vh;
  object-fit: contain;
  border-radius: 8px;
}

.lightbox-close {
  position: absolute;
  top: 20px;
  right: 30px;
  font-size: 2.5rem;
  color: var(--white);
  cursor: pointer;
  transition: var(--transition);
  background: none;
  border: none;
  line-height: 1;
}

.lightbox-close:hover {
  color: var(--accent);
  transform: rotate(90deg);
}

.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  font-size: 2.5rem;
  color: var(--white);
  cursor: pointer;
  background: rgba(255, 255, 255, 0.1);
  border: none;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.lightbox-nav:hover {
  background: rgba(255, 255, 255, 0.2);
  color: var(--accent);
}

.lightbox-prev {
  left: 20px;
}

.lightbox-next {
  right: 20px;
}

/* ===== LOCATION ===== */
.location-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.location-content h2 {
  font-size: 2.2rem;
  margin-bottom: 20px;
}

.location-content p {
  color: var(--text-light);
  font-size: 1.02rem;
  line-height: 1.9;
  margin-bottom: 24px;
}

.location-details {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.location-detail {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 20px;
  background: var(--off-white);
  border-radius: 10px;
}

.location-detail-icon {
  width: 42px;
  height: 42px;
  background: var(--primary);
  color: var(--accent);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  flex-shrink: 0;
}

.location-detail strong {
  display: block;
  font-size: 0.9rem;
  font-family: 'Inter', sans-serif;
}

.location-detail span {
  font-size: 0.85rem;
  color: var(--mid-gray);
}

.location-images {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: 16px;
  height: 450px;
}

.location-images .loc-img {
  border-radius: var(--radius);
  overflow: hidden;
}

.location-images .loc-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.location-images .loc-img:hover img {
  transform: scale(1.05);
}

.location-images .loc-img:first-child {
  grid-row: 1 / -1;
}

/* ===== MAP ===== */
.map-wrapper {
  overflow: hidden;
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
}

.map-wrapper iframe {
  display: block;
}

.map-link {
  text-align: center;
}

/* ===== CONTACT ===== */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  max-width: 1000px;
  margin: 0 auto;
}

.contact-card {
  text-align: center;
  padding: 40px 30px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius);
  transition: var(--transition);
}

.contact-card:hover {
  background: rgba(255, 255, 255, 0.1);
  transform: translateY(-5px);
}

.contact-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 20px;
  background: rgba(212, 175, 55, 0.15);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: var(--accent);
}

.contact-icon.whatsapp-icon {
  background: rgba(37, 211, 102, 0.15);
  color: #25D366;
}

.contact-card h4 {
  color: var(--white);
  font-family: 'Inter', sans-serif;
  font-weight: 700;
  font-size: 1rem;
  margin-bottom: 12px;
}

.contact-card p,
.contact-card a {
  color: rgba(255, 255, 255, 0.75);
  font-size: 0.95rem;
  line-height: 1.8;
}

.contact-card a:hover {
  color: var(--accent);
}

/* ===== CTA BANNER ===== */
.cta-section {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  padding: 80px 0;
  text-align: center;
}

.cta-section h2 {
  font-size: 2.5rem;
  color: var(--white);
  margin-bottom: 16px;
}

.cta-section p {
  color: rgba(255, 255, 255, 0.8);
  font-size: 1.1rem;
  max-width: 600px;
  margin: 0 auto 32px;
}

/* ===== FEEDBACK FORM ===== */
.feedback-form-wrapper {
  max-width: 750px;
  margin: 0 auto;
  background: var(--white);
  border-radius: var(--radius);
  padding: 48px;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--light-gray);
}

.feedback-form .form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 20px;
}

.feedback-form .form-group {
  display: flex;
  flex-direction: column;
  margin-bottom: 4px;
}

.feedback-form label {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 6px;
  font-family: 'Inter', sans-serif;
}

.feedback-form label .required {
  color: #e74c3c;
}

.feedback-form input,
.feedback-form select,
.feedback-form textarea {
  width: 100%;
  padding: 12px 16px;
  border: 2px solid var(--light-gray);
  border-radius: 10px;
  font-size: 0.95rem;
  font-family: 'Inter', sans-serif;
  color: var(--text);
  background: var(--off-white);
  transition: var(--transition);
  outline: none;
}

.feedback-form input:focus,
.feedback-form select:focus,
.feedback-form textarea:focus {
  border-color: var(--primary);
  background: var(--white);
  box-shadow: 0 0 0 4px rgba(26, 42, 94, 0.08);
}

.feedback-form input::placeholder,
.feedback-form textarea::placeholder {
  color: var(--mid-gray);
  font-size: 0.88rem;
}

.feedback-form textarea {
  resize: vertical;
  min-height: 120px;
}

.feedback-form select {
  cursor: pointer;
  appearance: auto;
}

.feedback-submit {
  width: 100%;
  justify-content: center;
  margin-top: 12px;
  padding: 16px 32px;
  font-size: 1rem;
}

.form-success {
  display: none;
  text-align: center;
  padding: 16px;
  margin-top: 16px;
  background: rgba(39, 174, 96, 0.08);
  border: 1px solid rgba(39, 174, 96, 0.2);
  border-radius: 10px;
  color: #27ae60;
  font-weight: 600;
  font-size: 0.95rem;
}

.form-success.visible {
  display: block;
}

/* ===== FOOTER ===== */
.footer {
  background: var(--primary-dark);
  color: rgba(255, 255, 255, 0.7);
  padding: 60px 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-brand h3 {
  color: var(--white);
  font-size: 1.3rem;
  margin-bottom: 12px;
}

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

.footer-logo-img {
  width: 50px;
  height: 50px;
  object-fit: contain;
}

.footer-logo-row h3 {
  margin-bottom: 0;
}

.footer-motto {
  font-style: italic;
  color: var(--accent) !important;
  font-family: 'Playfair Display', serif;
  font-size: 0.95rem !important;
  margin-bottom: 12px !important;
}

.footer-brand p {
  font-size: 0.9rem;
  line-height: 1.8;
  margin-bottom: 20px;
}

.footer-social {
  display: flex;
  gap: 12px;
}

.footer-social a {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.7);
  font-size: 1rem;
  transition: var(--transition);
}

.footer-social a:hover {
  background: var(--accent);
  color: var(--primary-dark);
}

.footer-col h4 {
  color: var(--white);
  font-family: 'Inter', sans-serif;
  font-size: 0.9rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 20px;
}

.footer-col a {
  display: block;
  font-size: 0.88rem;
  padding: 6px 0;
  color: rgba(255, 255, 255, 0.6);
  transition: var(--transition);
}

.footer-col a:hover {
  color: var(--accent);
  transform: translateX(4px);
}

.footer-bottom {
  text-align: center;
  padding: 24px 0;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.4);
}

/* ===== SCROLL ANIMATIONS ===== */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-left {
  opacity: 0;
  transform: translateX(-40px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal-left.visible {
  opacity: 1;
  transform: translateX(0);
}

.reveal-right {
  opacity: 0;
  transform: translateX(40px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal-right.visible {
  opacity: 1;
  transform: translateX(0);
}

/* ===== BACK TO TOP ===== */
.back-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: var(--primary);
  color: var(--accent);
  border: none;
  font-size: 1.3rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: var(--transition);
  box-shadow: var(--shadow);
  z-index: 999;
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-to-top:hover {
  background: var(--accent);
  color: var(--primary-dark);
  transform: translateY(-3px);
}

/* ===== RESPONSIVE ===== */

/* Large tablets / small desktops */
@media (max-width: 1024px) {
  .container {
    padding: 0 20px;
  }

  .section {
    padding: 80px 0;
  }

  .values-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
  }

  .gallery-grid {
    columns: 3;
  }

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

  .admissions-grid {
    grid-template-columns: 1fr 1fr;
    gap: 20px;
  }

  .contact-grid {
    grid-template-columns: 1fr 1fr;
    max-width: 600px;
    gap: 20px;
  }

  .nav-links a {
    padding: 8px 10px;
    font-size: 0.85rem;
  }

  .hero h2 {
    font-size: 3rem;
  }

  .about-grid {
    gap: 40px;
  }

  .about-img-main img {
    height: 350px;
  }

  .academic-grid {
    gap: 40px;
  }

  .location-grid {
    gap: 40px;
  }

  .leadership-grid {
    gap: 30px;
  }

  .leader-img {
    height: 280px;
  }

  .community-banner {
    min-height: 420px;
  }

  .map-wrapper iframe {
    height: 350px;
  }

  .feedback-form-wrapper {
    padding: 40px 36px;
  }

  .registration-form-wrapper {
    padding: 40px 36px;
  }

  .admissions-banner {
    max-height: 320px;
    margin-bottom: 32px;
  }

  .admissions-banner img {
    max-height: 320px;
  }

  .cta-section h2 {
    font-size: 2.2rem;
  }
}

/* Tablets portrait */
@media (max-width: 900px) {
  .about-grid,
  .academic-grid,
  .location-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .mv-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .mv-card {
    padding: 40px 32px;
  }

  .leadership-grid {
    grid-template-columns: 1fr 1fr;
    max-width: 100%;
  }

  .leader-img {
    height: 260px;
  }

  .contact-grid {
    grid-template-columns: 1fr 1fr;
    max-width: 500px;
  }

  .hero h2 {
    font-size: 2.5rem;
  }

  .hero-content {
    max-width: 600px;
  }

  .section-header h2 {
    font-size: 2rem;
  }

  .hero-stats {
    gap: 30px;
  }

  .academic-images {
    order: -1;
  }

  .academic-images .acad-img:first-child img {
    height: 250px;
  }

  .location-images {
    height: auto;
    grid-template-columns: 1fr 1fr;
  }

  .location-images .loc-img:first-child {
    grid-row: auto;
  }

  .location-images .loc-img img {
    height: 200px;
  }

  .community-banner {
    min-height: 400px;
  }

  .community-overlay {
    background: linear-gradient(90deg, rgba(15, 26, 58, 0.92) 0%, rgba(26, 42, 94, 0.8) 70%, rgba(26, 42, 94, 0.6) 100%);
  }

  .about-img-main img {
    height: 360px;
  }

  .about-img-accent {
    width: 180px;
    height: 180px;
  }

  .about-content h2,
  .academic-content h2,
  .location-content h2 {
    font-size: 1.9rem;
  }

  .admissions-grid {
    grid-template-columns: 1fr 1fr;
  }

  .gallery-grid {
    columns: 3;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 30px;
  }

  .map-wrapper iframe {
    height: 320px;
  }

  .feedback-form-wrapper {
    padding: 36px 30px;
  }

  .registration-form-wrapper {
    padding: 36px 30px;
  }

  .registration-form .form-row {
    gap: 16px;
  }

  .admissions-banner {
    max-height: 280px;
    margin-bottom: 28px;
  }

  .admissions-banner img {
    max-height: 280px;
  }
}

@media (max-width: 768px) {
  /* --- Top Bar & Navigation --- */
  .top-bar {
    display: none;
  }

  .nav-container {
    height: 64px;
    padding: 0 16px;
  }

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

  .nav-brand {
    gap: 10px;
  }

  .nav-brand-text h1 {
    font-size: 0.78rem;
    line-height: 1.2;
  }

  .nav-brand-text span {
    font-size: 0.6rem;
  }

  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    height: 100dvh;
    background: var(--white);
    flex-direction: column;
    padding: 90px 24px 30px;
    box-shadow: -5px 0 30px rgba(0, 0, 0, 0.15);
    transition: right 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    align-items: stretch;
    gap: 0;
    z-index: 1000;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }

  .nav-links.active {
    right: 0;
  }

  .nav-links a {
    width: 100%;
    padding: 14px 16px;
    font-size: 1rem;
    border-bottom: 1px solid var(--light-gray);
  }

  .nav-links a:last-child {
    border-bottom: none;
  }

  .nav-cta {
    margin-top: 16px;
    text-align: center;
    border-bottom: none !important;
  }

  .hamburger {
    display: flex;
  }

  /* --- Hero Section --- */
  .hero {
    min-height: 80vh;
    min-height: 80dvh;
  }

  .hero-content {
    padding: 24px 0;
  }

  .hero-badge {
    font-size: 0.72rem;
    padding: 6px 16px;
    margin-bottom: 18px;
  }

  .hero h2 {
    font-size: 2rem;
    margin-bottom: 14px;
  }

  .hero-motto {
    font-size: 1.05rem;
    margin-bottom: 16px;
  }

  .hero p {
    font-size: 0.95rem;
    margin-bottom: 28px;
    line-height: 1.7;
  }

  .hero-buttons {
    gap: 12px;
  }

  .hero-buttons .btn {
    padding: 12px 24px;
    font-size: 0.9rem;
  }

  .hero-stats {
    gap: 20px;
    margin-top: 36px;
    padding-top: 24px;
    flex-wrap: wrap;
  }

  .stat-number {
    font-size: 1.7rem;
  }

  .stat-label {
    font-size: 0.7rem;
  }

  /* --- About Section --- */
  .about-img-accent {
    bottom: -12px;
    right: -8px;
    width: 140px;
    height: 140px;
    border-width: 3px;
  }

  .about-content h2,
  .academic-content h2,
  .location-content h2,
  .community-content h2 {
    font-size: 1.7rem;
  }

  .about-features {
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }

  .about-feature {
    padding: 12px 14px;
    font-size: 0.85rem;
  }

  /* --- Mission & Vision --- */
  .mv-card {
    padding: 32px 24px;
  }

  .mv-card h3 {
    font-size: 1.35rem;
  }

  .mv-card p {
    font-size: 0.95rem;
  }

  .motto-highlight {
    font-size: 1.05rem;
  }

  /* --- Values --- */
  .values-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
  }

  .value-card {
    padding: 28px 16px;
  }

  .value-card h4 {
    font-size: 0.92rem;
  }

  .value-card p {
    font-size: 0.82rem;
  }

  /* --- Admissions --- */
  .admissions-grid {
    grid-template-columns: 1fr 1fr;
    gap: 16px;
  }

  .admissions-banner {
    max-height: 220px;
    margin-bottom: 24px;
    border-radius: 10px;
  }

  .admissions-banner img {
    max-height: 220px;
  }

  .admissions-cta {
    flex-direction: column;
    align-items: stretch;
  }

  .admissions-cta .btn {
    width: 100%;
    justify-content: center;
    text-align: center;
  }

  /* --- Registration & Feedback Forms --- */
  .registration-form-wrapper,
  .feedback-form-wrapper {
    padding: 28px 20px;
    border-radius: 10px;
  }

  .registration-form-wrapper {
    margin-top: 32px;
  }

  .registration-form .form-row,
  .feedback-form .form-row {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .registration-form input,
  .registration-form select,
  .registration-form textarea,
  .feedback-form input,
  .feedback-form select,
  .feedback-form textarea {
    padding: 11px 14px;
    font-size: 0.93rem;
    border-radius: 8px;
  }

  .feedback-submit {
    padding: 14px 24px;
    font-size: 0.95rem;
  }

  .reg-form-header h3 {
    font-size: 1.35rem;
  }

  .reg-form-header p {
    font-size: 0.88rem;
  }

  /* --- Leadership --- */
  .leadership-grid {
    grid-template-columns: 1fr 1fr;
    max-width: 100%;
    margin: 0 auto;
    gap: 24px;
  }

  .leader-img {
    height: 260px;
  }

  .leader-info {
    padding: 22px 20px;
  }

  .leader-info h3 {
    font-size: 1.2rem;
  }

  .leader-info p {
    font-size: 0.88rem;
  }

  /* --- Academics --- */
  .academic-feature {
    padding: 16px;
  }

  .academic-feature-icon {
    width: 42px;
    height: 42px;
    min-width: 42px;
    border-radius: 10px;
    font-size: 1.1rem;
  }

  .academic-feature h4 {
    font-size: 0.95rem;
  }

  .academic-feature p {
    font-size: 0.84rem;
  }

  .academic-images .acad-img img {
    height: 180px;
  }

  .academic-images .acad-img:first-child img {
    height: 240px;
  }

  /* --- Community --- */
  .community-banner {
    min-height: auto;
    border-radius: 10px;
  }

  .community-overlay {
    background: linear-gradient(
      180deg,
      rgba(15, 26, 58, 0.88) 0%,
      rgba(26, 42, 94, 0.85) 60%,
      rgba(15, 26, 58, 0.9) 100%
    );
  }

  .community-content {
    max-width: 100%;
    padding: 32px 24px;
  }

  .community-content p {
    font-size: 0.93rem;
  }

  .community-highlights {
    flex-direction: column;
    gap: 14px;
  }

  .community-highlight {
    font-size: 0.88rem;
  }

  /* --- Location --- */
  .location-images {
    height: auto;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
  }

  .location-images .loc-img:first-child {
    grid-row: auto;
  }

  .location-images .loc-img img {
    height: 180px;
  }

  .map-wrapper iframe {
    height: 280px;
    border-radius: 10px;
  }

  /* --- Gallery --- */
  .gallery-grid {
    columns: 2;
    column-gap: 12px;
  }

  .gallery-item {
    margin-bottom: 12px;
    border-radius: 8px;
  }

  /* --- Contact --- */
  .contact-grid {
    grid-template-columns: 1fr 1fr;
    max-width: 100%;
    gap: 16px;
  }

  .contact-card {
    padding: 28px 16px;
  }

  .contact-icon {
    width: 52px;
    height: 52px;
    margin-bottom: 14px;
    font-size: 1.3rem;
  }

  .contact-card h4 {
    font-size: 0.92rem;
    margin-bottom: 8px;
  }

  .contact-card p,
  .contact-card a {
    font-size: 0.88rem;
  }

  /* --- CTA --- */
  .cta-section {
    padding: 56px 0;
  }

  .cta-section h2 {
    font-size: 1.9rem;
  }

  .cta-section p {
    font-size: 0.95rem;
  }

  /* --- Footer --- */
  .footer {
    padding: 48px 0 0;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .footer-brand h3 {
    font-size: 1.15rem;
  }

  .footer-brand p {
    font-size: 0.88rem;
  }

  .footer-col h4 {
    font-size: 0.82rem;
    margin-bottom: 14px;
  }

  .footer-col a {
    font-size: 0.85rem;
    padding: 5px 0;
  }

  .footer-bottom {
    font-size: 0.8rem;
    padding: 20px 0;
  }

  /* --- Lightbox --- */
  .lightbox {
    padding: 20px;
  }

  .lightbox img {
    max-width: 95vw;
    max-height: 80vh;
    border-radius: 6px;
  }

  .lightbox-nav {
    width: 40px;
    height: 40px;
    font-size: 1.5rem;
  }

  .lightbox-prev {
    left: 8px;
  }

  .lightbox-next {
    right: 8px;
  }

  .lightbox-close {
    top: 12px;
    right: 16px;
    font-size: 2rem;
  }

  /* --- Back to Top --- */
  .back-to-top {
    width: 44px;
    height: 44px;
    bottom: 20px;
    right: 16px;
    font-size: 1.1rem;
  }

  /* --- Sections general --- */
  .section-header {
    margin-bottom: 40px;
  }

  .section-header h2 {
    font-size: 1.8rem;
  }
}

/* ===== PHONES (max-width: 480px) ===== */
@media (max-width: 480px) {
  html {
    font-size: 15px;
  }

  .container {
    padding: 0 16px;
  }

  .section {
    padding: 48px 0;
  }

  .section-header {
    margin-bottom: 32px;
  }

  .section-header h2 {
    font-size: 1.5rem;
  }

  .section-header p {
    font-size: 0.9rem;
    line-height: 1.7;
  }

  .section-divider {
    width: 48px;
    height: 3px;
    margin-top: 12px;
  }

  /* --- Hero --- */
  .hero {
    min-height: 75vh;
    min-height: 75dvh;
  }

  .hero-content {
    padding: 20px 0;
  }

  .hero-badge {
    font-size: 0.68rem;
    padding: 5px 12px;
    margin-bottom: 14px;
    gap: 6px;
  }

  .hero h2 {
    font-size: 1.55rem;
    margin-bottom: 10px;
    line-height: 1.2;
  }

  .hero-motto {
    font-size: 0.95rem;
    margin-bottom: 12px;
  }

  .hero p {
    font-size: 0.88rem;
    margin-bottom: 24px;
    line-height: 1.65;
  }

  .hero-buttons {
    flex-direction: column;
    gap: 10px;
  }

  .hero-buttons .btn {
    width: 100%;
    justify-content: center;
    padding: 13px 20px;
    font-size: 0.9rem;
  }

  .hero-stats {
    flex-wrap: wrap;
    gap: 0;
    margin-top: 28px;
    padding-top: 20px;
    justify-content: space-between;
  }

  .stat-item {
    width: 33.33%;
    padding: 6px 0;
  }

  .stat-number {
    font-size: 1.5rem;
  }

  .stat-label {
    font-size: 0.65rem;
    letter-spacing: 0.5px;
  }

  /* --- About --- */
  .about-img-main img {
    height: 260px;
    border-radius: 10px;
  }

  .about-img-accent {
    width: 110px;
    height: 110px;
    bottom: -10px;
    right: -5px;
    border-width: 3px;
    border-radius: 10px;
  }

  .about-content h2,
  .academic-content h2,
  .location-content h2 {
    font-size: 1.45rem;
  }

  .about-content p {
    font-size: 0.92rem;
  }

  .about-features {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .about-feature {
    padding: 10px 12px;
    font-size: 0.85rem;
    gap: 10px;
    border-radius: 8px;
  }

  .about-feature .icon {
    font-size: 1.1rem;
  }

  /* --- Mission & Vision --- */
  .mv-card {
    padding: 24px 20px;
  }

  .mv-icon {
    width: 50px;
    height: 50px;
    font-size: 1.4rem;
    border-radius: 12px;
    margin-bottom: 18px;
  }

  .mv-card h3 {
    font-size: 1.2rem;
    margin-bottom: 12px;
  }

  .mv-card p {
    font-size: 0.9rem;
    line-height: 1.75;
  }

  .motto-highlight {
    font-size: 0.98rem;
    margin-top: 14px;
    padding-top: 12px;
  }

  /* --- Values --- */
  .values-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .value-card {
    padding: 20px 18px;
    border-radius: 10px;
    text-align: left;
    display: flex;
    align-items: center;
    gap: 16px;
  }

  .value-icon {
    width: 48px;
    height: 48px;
    margin: 0;
    font-size: 1.3rem;
    flex-shrink: 0;
  }

  .value-card h4 {
    font-size: 0.9rem;
    margin-bottom: 4px;
  }

  .value-card p {
    font-size: 0.8rem;
    line-height: 1.5;
  }

  /* --- Admissions --- */
  .admissions-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .admission-card {
    padding: 24px 20px;
    display: flex;
    gap: 16px;
    align-items: flex-start;
    border-top: none;
    border-left: 4px solid transparent;
  }

  .admission-card:hover {
    border-left-color: var(--accent);
    border-top-color: transparent;
    transform: translateX(4px);
  }

  .admission-step {
    font-size: 2rem;
    margin-bottom: 0;
    line-height: 1;
    flex-shrink: 0;
  }

  .admission-card h4 {
    font-size: 0.95rem;
    margin-bottom: 6px;
  }

  .admission-card p {
    font-size: 0.85rem;
  }

  .admissions-banner {
    max-height: 180px;
    margin-bottom: 20px;
    border-radius: 8px;
  }

  .admissions-banner img {
    max-height: 180px;
  }

  /* --- Forms --- */
  .registration-form-wrapper,
  .feedback-form-wrapper {
    padding: 22px 16px;
    border-radius: 10px;
    margin-top: 28px;
  }

  .reg-form-header {
    margin-bottom: 24px;
  }

  .reg-form-header h3 {
    font-size: 1.2rem;
  }

  .reg-form-header p {
    font-size: 0.84rem;
  }

  .registration-form .form-row,
  .feedback-form .form-row {
    grid-template-columns: 1fr;
    gap: 12px;
    margin-bottom: 12px;
  }

  .registration-form label,
  .feedback-form label {
    font-size: 0.84rem;
    margin-bottom: 4px;
  }

  .registration-form input,
  .registration-form select,
  .registration-form textarea,
  .feedback-form input,
  .feedback-form select,
  .feedback-form textarea {
    padding: 10px 12px;
    font-size: 0.9rem;
    border-radius: 8px;
  }

  .feedback-submit {
    padding: 13px 20px;
    font-size: 0.92rem;
    border-radius: 10px;
  }

  /* --- Leadership --- */
  .leadership-grid {
    grid-template-columns: 1fr;
    max-width: 100%;
    margin: 0 auto;
    gap: 16px;
  }

  .leader-card {
    border-radius: 10px;
    display: flex;
    flex-direction: row;
    overflow: hidden;
  }

  .leader-img {
    height: auto;
    width: 140px;
    min-height: 160px;
    flex-shrink: 0;
  }

  .leader-info {
    padding: 16px 14px;
    display: flex;
    flex-direction: column;
    justify-content: center;
  }

  .leader-title {
    font-size: 0.62rem;
    letter-spacing: 1px;
    margin-bottom: 4px;
  }

  .leader-info h3 {
    font-size: 0.95rem;
    margin-bottom: 6px;
  }

  .leader-info p {
    font-size: 0.8rem;
    line-height: 1.55;
  }

  /* --- Academics --- */
  .academic-feature {
    padding: 14px;
    border-radius: 10px;
    gap: 14px;
  }

  .academic-feature-icon {
    width: 40px;
    height: 40px;
    min-width: 40px;
    font-size: 1rem;
  }

  .academic-feature h4 {
    font-size: 0.9rem;
  }

  .academic-feature p {
    font-size: 0.82rem;
  }

  .academic-images .acad-img img {
    height: 160px;
  }

  .academic-images .acad-img:first-child img {
    height: 200px;
  }

  /* --- Community --- */
  .community-banner {
    min-height: auto;
    border-radius: 10px;
  }

  .community-content {
    padding: 28px 20px;
    max-width: 100%;
  }

  .community-content h2 {
    font-size: 1.3rem;
    margin-bottom: 14px;
  }

  .community-content p {
    font-size: 0.88rem;
    line-height: 1.7;
    margin-bottom: 12px;
  }

  .community-highlights {
    gap: 12px;
    margin-top: 20px;
  }

  .community-highlight {
    font-size: 0.85rem;
    gap: 8px;
  }

  .community-highlight .ch-icon {
    width: 32px;
    height: 32px;
    font-size: 0.9rem;
  }

  /* --- Location --- */
  .location-content p {
    font-size: 0.92rem;
  }

  .location-images {
    height: auto;
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .location-images .loc-img:first-child {
    grid-row: auto;
  }

  .location-images .loc-img img {
    height: 170px;
    border-radius: 8px;
  }

  .location-detail {
    padding: 12px 16px;
    border-radius: 8px;
  }

  .location-detail-icon {
    width: 38px;
    height: 38px;
    font-size: 1rem;
  }

  .map-wrapper iframe {
    height: 220px;
    border-radius: 8px;
  }

  /* --- Gallery --- */
  .gallery-grid {
    columns: 2;
    column-gap: 8px;
  }

  .gallery-item {
    margin-bottom: 8px;
    border-radius: 8px;
  }

  /* --- Contact --- */
  .contact-grid {
    grid-template-columns: 1fr;
    max-width: 100%;
    gap: 12px;
  }

  .contact-card {
    padding: 20px 18px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    gap: 16px;
    text-align: left;
  }

  .contact-icon {
    width: 46px;
    height: 46px;
    margin: 0;
    font-size: 1.1rem;
    flex-shrink: 0;
  }

  .contact-card h4 {
    font-size: 0.88rem;
    margin-bottom: 2px;
  }

  .contact-card p,
  .contact-card a {
    font-size: 0.84rem;
    line-height: 1.5;
  }

  /* --- CTA --- */
  .cta-section {
    padding: 44px 0;
  }

  .cta-section h2 {
    font-size: 1.55rem;
    margin-bottom: 12px;
  }

  .cta-section p {
    font-size: 0.9rem;
    margin-bottom: 24px;
  }

  .cta-section .btn {
    width: 100%;
    justify-content: center;
    text-align: center;
  }

  /* --- Footer --- */
  .footer {
    padding: 36px 0 0;
  }

  .footer-grid {
    gap: 20px;
  }

  .footer-logo-row {
    gap: 10px;
  }

  .footer-logo-img {
    width: 40px;
    height: 40px;
  }

  .footer-brand h3 {
    font-size: 1.1rem;
  }

  .footer-brand p {
    font-size: 0.84rem;
    line-height: 1.7;
  }

  .footer-social a {
    width: 36px;
    height: 36px;
    font-size: 0.9rem;
  }

  .footer-col h4 {
    font-size: 0.78rem;
    margin-bottom: 12px;
  }

  .footer-col a {
    font-size: 0.84rem;
  }

  .footer-bottom {
    font-size: 0.75rem;
    padding: 18px 0;
  }

  /* --- Lightbox --- */
  .lightbox {
    padding: 12px;
  }

  .lightbox img {
    max-width: 96vw;
    max-height: 75vh;
    border-radius: 4px;
  }

  .lightbox-close {
    top: 8px;
    right: 12px;
    font-size: 1.8rem;
  }

  .lightbox-nav {
    width: 36px;
    height: 36px;
    font-size: 1.3rem;
  }

  .lightbox-prev {
    left: 6px;
  }

  .lightbox-next {
    right: 6px;
  }

  /* --- Back to Top --- */
  .back-to-top {
    width: 40px;
    height: 40px;
    bottom: 16px;
    right: 16px;
    font-size: 1rem;
  }
}

/* ===== VERY SMALL PHONES (max-width: 360px) ===== */
@media (max-width: 360px) {
  html {
    font-size: 14px;
  }

  .container {
    padding: 0 12px;
  }

  .nav-container {
    padding: 0 12px;
  }

  .nav-brand {
    gap: 8px;
  }

  .nav-brand-text h1 {
    font-size: 0.68rem;
  }

  .nav-brand-text span {
    font-size: 0.52rem;
    letter-spacing: 0.8px;
  }

  .nav-logo-img {
    width: 36px;
    height: 36px;
  }

  .hero h2 {
    font-size: 1.35rem;
  }

  .hero p {
    font-size: 0.84rem;
  }

  .hero-badge {
    font-size: 0.64rem;
    padding: 4px 10px;
  }

  .hero-motto {
    font-size: 0.88rem;
  }

  .stat-number {
    font-size: 1.3rem;
  }

  .stat-label {
    font-size: 0.6rem;
  }

  .section-header h2 {
    font-size: 1.3rem;
  }

  .section-header p {
    font-size: 0.85rem;
  }

  .about-content h2,
  .academic-content h2,
  .location-content h2,
  .community-content h2 {
    font-size: 1.3rem;
  }

  .about-features {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .values-grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .contact-grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .mv-card {
    padding: 22px 16px;
  }

  .mv-card h3 {
    font-size: 1.1rem;
  }

  .admissions-banner {
    max-height: 150px;
    border-radius: 8px;
  }

  .admissions-banner img {
    max-height: 150px;
  }

  .cta-section h2 {
    font-size: 1.35rem;
  }

  .leader-card {
    display: flex;
    flex-direction: row;
  }

  .leader-img {
    width: 120px;
    min-height: 150px;
    height: auto;
  }

  .leader-info {
    padding: 12px;
  }

  .leader-info h3 {
    font-size: 0.88rem;
  }

  .leader-info p {
    font-size: 0.75rem;
    line-height: 1.5;
  }

  .community-content {
    padding: 22px 16px;
  }

  .registration-form-wrapper,
  .feedback-form-wrapper {
    padding: 18px 12px;
  }
}

/* ===== MOBILE NAV OVERLAY ===== */
.nav-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  z-index: 999;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
}

.nav-overlay.active {
  opacity: 1;
  visibility: visible;
}
