/* ==========================================================================
   AKSHAYA COLLEGE OF EDUCATION - OFFICIAL STYLESHEET
   Brand Colors from Logo:
   - Deep Crimson Red: #C30017
   - Academic Navy Blue: #0F2B48
   - Golden Sun / Diya Accent: #F59E0B
   ========================================================================== */

:root {
  --primary: #c30017;
  --primary-dark: #960012;
  --primary-light: #e81d33;
  --primary-subtle: #fdf2f3;
  --primary-glow: rgba(195, 0, 23, 0.15);

  --secondary: #0f2b48;
  --secondary-dark: #0a1c30;
  --secondary-light: #1b4977;
  --secondary-subtle: #f0f6fc;

  --accent: #f59e0b;
  --accent-gold: #ffb703;
  --accent-light: #fef3c7;

  --success: #10b981;
  --dark: #0f172a;
  --gray-900: #1e293b;
  --gray-800: #334155;
  --gray-700: #475569;
  --gray-600: #64748b;
  --gray-500: #94a3b8;
  --gray-400: #cbd5e1;
  --gray-300: #e2e8f0;
  --gray-200: #f1f5f9;
  --gray-100: #f8fafc;
  --white: #ffffff;

  --font-base: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-heading: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  --shadow-brand: 0 10px 25px -5px rgba(195, 0, 23, 0.3);

  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-full: 9999px;

  --transition: all 0.25s ease-in-out;
}

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

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

body {
  font-family: var(--font-base);
  color: var(--gray-800);
  background-color: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

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

a:hover {
  color: var(--primary-dark);
}

ul {
  list-style: none;
}

.container {
  width: 100%;
  max-width: 1440px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 32px;
  padding-right: 32px;
}


/* ==========================================================================
   TOP NOTIFICATION BAR
   ========================================================================== */
.topbar {
  background: var(--secondary-dark);
  color: var(--gray-300);
  font-size: 0.85rem;
  border-bottom: 2px solid var(--primary);
  padding: 8px 0;
}

.topbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.topbar-left, .topbar-right {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
}

.topbar-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #d1d5db;
}

.topbar-item a {
  color: #f3f4f6;
  font-weight: 500;
}

.topbar-item a:hover {
  color: var(--accent-gold);
}

.badge-code {
  background: rgba(245, 158, 11, 0.2);
  color: var(--accent-gold);
  border: 1px solid rgba(245, 158, 11, 0.4);
  padding: 2px 8px;
  border-radius: var(--radius-sm);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.5px;
}

/* ==========================================================================
   HEADER & NAVBAR
   ========================================================================== */
.site-header {
  background: var(--white);
  box-shadow: var(--shadow-md);
  position: sticky;
  top: 0;
  z-index: 1000;
  transition: var(--transition);
}

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
}

.brand-logo {
  height: 68px;
  width: auto;
  object-fit: contain;
  transition: transform 0.3s ease;
}

.brand:hover .brand-logo {
  transform: scale(1.04);
}

.brand-details {
  display: flex;
  flex-direction: column;
}

.brand-title {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--primary);
  line-height: 1.15;
  letter-spacing: -0.02em;
  text-transform: uppercase;
}

.brand-subtitle {
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--secondary);
  line-height: 1.25;
}

.brand-tagline {
  font-size: 0.75rem;
  color: var(--gray-600);
  font-style: italic;
  font-weight: 600;
  letter-spacing: 0.5px;
}

/* Navigation Links */
.navbar-nav {
  display: flex;
  align-items: center;
  gap: 22px;
}

.nav-link {
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--gray-800);
  padding: 8px 4px;
  position: relative;
  white-space: nowrap;
}

.nav-link::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0%;
  height: 3px;
  background: var(--primary);
  border-radius: var(--radius-full);
  transition: width 0.25s ease;
}

.nav-link:hover, .nav-link.active {
  color: var(--primary);
}

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

.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.mobile-menu-btn {
  display: none;
  background: var(--gray-100);
  border: 1px solid var(--gray-300);
  border-radius: var(--radius-md);
  cursor: pointer;
  padding: 8px 10px;
  color: var(--secondary);
  transition: var(--transition);
}

.mobile-menu-btn:hover {
  background: var(--primary-subtle);
  color: var(--primary);
  border-color: var(--primary);
}

/* ==========================================================================
   BUTTONS
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 22px;
  font-size: 0.92rem;
  font-weight: 700;
  border-radius: var(--radius-md);
  border: 2px solid transparent;
  cursor: pointer;
  transition: var(--transition);
  text-decoration: none;
  line-height: 1.2;
}

.btn-primary {
  background: var(--primary);
  color: var(--white);
  box-shadow: var(--shadow-brand);
}

.btn-primary:hover {
  background: var(--primary-dark);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: 0 12px 20px -4px rgba(195, 0, 23, 0.4);
}

.btn-secondary {
  background: var(--secondary);
  color: var(--white);
}

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

.btn-accent {
  background: var(--accent);
  color: var(--secondary-dark);
  font-weight: 800;
}

.btn-accent:hover {
  background: var(--accent-gold);
  color: var(--secondary-dark);
  transform: translateY(-2px);
}

.btn-outline-white {
  background: transparent;
  border-color: var(--white);
  color: var(--white);
}

.btn-outline-white:hover {
  background: var(--white);
  color: var(--primary);
}

.btn-outline-primary {
  background: transparent;
  border-color: var(--primary);
  color: var(--primary);
}

.btn-outline-primary:hover {
  background: var(--primary);
  color: var(--white);
}

.btn-sm {
  padding: 6px 14px;
  font-size: 0.82rem;
}

.btn-lg {
  padding: 14px 28px;
  font-size: 1.05rem;
}

/* ==========================================================================
   HERO SECTION
   ========================================================================== */
.hero {
  position: relative;
  background: linear-gradient(135deg, #091a2e 0%, #0f2b48 60%, #173b61 100%);
  color: var(--white);
  padding: 70px 0 80px;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  top: -20%;
  right: -10%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(195, 0, 23, 0.25) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.hero::after {
  content: "";
  position: absolute;
  bottom: -30%;
  left: -10%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(245, 158, 11, 0.15) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 50px;
  align-items: center;
  position: relative;
  z-index: 2;
}

.hero-pill-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  padding: 6px 16px;
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--accent-gold);
  margin-bottom: 20px;
}

.hero-title {
  font-size: 2.8rem;
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
}

.hero-title span {
  color: #ff4d61;
}

.hero-subtitle {
  font-size: 1.25rem;
  color: #fcd34d;
  font-weight: 700;
  margin-bottom: 18px;
  line-height: 1.4;
}

.hero-desc {
  font-size: 1.08rem;
  color: #e2e8f0;
  margin-bottom: 30px;
  max-width: 680px;
  line-height: 1.65;
}

.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 35px;
}

.hero-badges-strip {
  display: flex;
  gap: 20px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  flex-wrap: wrap;
}

.badge-feature {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.88rem;
  color: #cbd5e1;
}

.badge-feature svg {
  color: var(--accent-gold);
  flex-shrink: 0;
}

/* Hero Media Card */
.hero-card {
  position: relative;
}

.hero-card-inner {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
  border: 4px solid rgba(255, 255, 255, 0.15);
  background: var(--secondary-dark);
}

.hero-img {
  width: 100%;
  height: 400px;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.hero-card:hover .hero-img {
  transform: scale(1.03);
}

.hero-card-floating {
  position: absolute;
  bottom: -20px;
  left: 20px;
  right: 20px;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  padding: 16px 20px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xl);
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-left: 5px solid var(--primary);
  color: var(--gray-900);
}

.floating-text-small {
  font-size: 0.75rem;
  text-transform: uppercase;
  color: var(--gray-600);
  font-weight: 700;
  letter-spacing: 0.5px;
}

.floating-text-highlight {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--primary);
}

/* ==========================================================================
   ANNOUNCEMENT TICKER / QUICK STATS BAR
   ========================================================================== */
.stats-bar {
  background: var(--white);
  box-shadow: var(--shadow-md);
  position: relative;
  z-index: 10;
  margin-top: -30px;
  border-radius: var(--radius-lg);
  padding: 24px 30px;
  border: 1px solid var(--gray-200);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  text-align: center;
}

.stat-item {
  padding: 10px 15px;
  position: relative;
}

.stat-item:not(:last-child)::after {
  content: "";
  position: absolute;
  right: 0;
  top: 15%;
  height: 70%;
  width: 1px;
  background: var(--gray-300);
}

.stat-number {
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--primary);
  line-height: 1.1;
  margin-bottom: 4px;
}

.stat-label {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--secondary);
}

.stat-sub {
  font-size: 0.78rem;
  color: var(--gray-600);
}

/* ==========================================================================
   SECTION COMMON STYLES
   ========================================================================== */
.section {
  padding: 85px 0;
  position: relative;
}

.section-bg-light {
  background-color: var(--gray-100);
}

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

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

.section-subtitle {
  display: inline-block;
  font-size: 0.85rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--primary);
  background: var(--primary-subtle);
  padding: 4px 14px;
  border-radius: var(--radius-full);
  margin-bottom: 12px;
}

.section-title {
  font-size: 2.3rem;
  font-weight: 800;
  color: var(--secondary);
  line-height: 1.25;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
}

.section-bg-dark .section-title {
  color: var(--white);
}

.section-desc {
  font-size: 1.05rem;
  color: var(--gray-600);
}

.section-bg-dark .section-desc {
  color: var(--gray-300);
}

/* ==========================================================================
   AFFILIATION & RECOGNITION SECTION (TNTEU & NCTE)
   ========================================================================== */
.affiliations-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
  margin-top: 10px;
}

.affiliation-card {
  background: var(--white);
  border-radius: var(--radius-xl);
  padding: 36px 32px;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--gray-200);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  overflow: hidden;
}

.affiliation-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 5px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
}

.affiliation-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-xl);
  border-color: rgba(195, 0, 23, 0.3);
}

.aff-header {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-bottom: 20px;
}

.aff-icon-wrapper {
  width: 68px;
  height: 68px;
  border-radius: var(--radius-lg);
  background: var(--secondary-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--secondary);
  font-size: 1.8rem;
  flex-shrink: 0;
  border: 1px solid var(--gray-300);
}

.aff-title-box h3 {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--secondary);
  line-height: 1.25;
}

.aff-title-box span {
  font-size: 0.85rem;
  color: var(--primary);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.aff-details {
  list-style: none;
  margin-bottom: 24px;
}

.aff-details li {
  padding: 8px 0;
  border-bottom: 1px dashed var(--gray-200);
  font-size: 0.93rem;
  color: var(--gray-700);
  display: flex;
  justify-content: space-between;
}

.aff-details li strong {
  color: var(--gray-900);
}

.aff-link-btn {
  width: 100%;
}

/* ==========================================================================
   COURSES OFFERED SECTION (8 Specializations)
   ========================================================================== */
.courses-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.course-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 28px 22px;
  border: 1px solid var(--gray-200);
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.course-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-xl);
  border-color: var(--primary);
}

.course-icon {
  width: 54px;
  height: 54px;
  border-radius: var(--radius-md);
  background: var(--primary-subtle);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  margin-bottom: 18px;
  transition: var(--transition);
}

.course-card:hover .course-icon {
  background: var(--primary);
  color: var(--white);
}

.course-badge {
  position: absolute;
  top: 18px;
  right: 18px;
  font-size: 0.72rem;
  font-weight: 800;
  background: var(--gray-100);
  color: var(--gray-600);
  padding: 3px 8px;
  border-radius: var(--radius-full);
}

.course-name {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--secondary);
  margin-bottom: 4px;
}

.course-sub {
  font-size: 0.88rem;
  color: var(--primary);
  font-weight: 700;
  margin-bottom: 12px;
}

.course-eligibility {
  font-size: 0.82rem;
  color: var(--gray-600);
  background: var(--gray-100);
  padding: 8px 10px;
  border-radius: var(--radius-sm);
  margin-bottom: 16px;
  border-left: 3px solid var(--secondary);
}

.course-features {
  list-style: none;
  font-size: 0.82rem;
  color: var(--gray-700);
  margin-bottom: 18px;
}

.course-features li {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 6px;
}

.course-features svg {
  color: var(--success);
  flex-shrink: 0;
}

.course-action-link {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--primary);
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.course-action-link:hover {
  gap: 8px;
}

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

.about-image-wrapper {
  position: relative;
}

.about-main-img {
  width: 100%;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-xl);
  border: 4px solid var(--white);
}

.about-secondary-card {
  position: absolute;
  bottom: -25px;
  right: -20px;
  background: var(--white);
  padding: 20px 24px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xl);
  border-left: 5px solid var(--accent);
  max-width: 280px;
}

.about-secondary-card h4 {
  font-size: 1rem;
  font-weight: 800;
  color: var(--secondary);
  margin-bottom: 4px;
}

.about-secondary-card p {
  font-size: 0.82rem;
  color: var(--gray-600);
}

.about-content h2 {
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--secondary);
  line-height: 1.25;
  margin-bottom: 16px;
}

.about-intro-p {
  font-size: 1.05rem;
  color: var(--gray-700);
  margin-bottom: 22px;
}

.management-boxes {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin: 25px 0;
}

.mgt-box {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-md);
  padding: 16px;
  box-shadow: var(--shadow-sm);
}

.mgt-role {
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  color: var(--primary);
  letter-spacing: 0.5px;
}

.mgt-name {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--secondary);
  margin: 2px 0 4px;
}

.mgt-bio {
  font-size: 0.8rem;
  color: var(--gray-600);
  line-height: 1.4;
}

.highlights-checklist {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 15px;
}

.checklist-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--gray-800);
}

.checklist-item svg {
  color: var(--primary);
  flex-shrink: 0;
}

/* ==========================================================================
   FACILITIES & KEY HIGHLIGHTS
   ========================================================================== */
.facilities-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.facility-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 30px 24px;
  border: 1px solid var(--gray-200);
  transition: var(--transition);
  box-shadow: var(--shadow-sm);
}

.facility-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
  border-color: var(--primary);
}

.facility-icon-circle {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: var(--secondary-subtle);
  color: var(--secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 18px;
}

.facility-card:hover .facility-icon-circle {
  background: var(--primary);
  color: var(--white);
}

.facility-title {
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--secondary);
  margin-bottom: 8px;
}

.facility-desc {
  font-size: 0.88rem;
  color: var(--gray-600);
  line-height: 1.55;
}

/* ==========================================================================
   SPECIAL ADMISSION OFFERS & SCHOLARSHIPS
   ========================================================================== */
.admission-banner {
  background: linear-gradient(135deg, var(--primary) 0%, #8c0010 100%);
  color: var(--white);
  border-radius: var(--radius-xl);
  padding: 50px 40px;
  box-shadow: var(--shadow-xl);
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 40px;
  align-items: center;
  position: relative;
  overflow: hidden;
}

.admission-banner::before {
  content: "";
  position: absolute;
  top: -50px;
  right: -50px;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.15) 0%, transparent 70%);
  border-radius: 50%;
}

.offer-badge {
  display: inline-block;
  background: var(--accent);
  color: var(--secondary-dark);
  font-weight: 800;
  font-size: 0.85rem;
  padding: 4px 14px;
  border-radius: var(--radius-full);
  margin-bottom: 14px;
}

.offer-title {
  font-size: 2.2rem;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 14px;
}

.offer-title-sub {
  font-size: 1.15rem;
  color: var(--accent-light);
  font-weight: 700;
  margin-bottom: 20px;
}

.offer-list {
  list-style: none;
  margin-bottom: 28px;
}

.offer-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 14px;
  font-size: 0.98rem;
}

.offer-list svg {
  color: var(--accent-gold);
  flex-shrink: 0;
  margin-top: 4px;
}

.admission-cta-card {
  background: var(--white);
  color: var(--gray-900);
  border-radius: var(--radius-lg);
  padding: 30px;
  box-shadow: var(--shadow-lg);
  text-align: center;
}

.admission-cta-card h3 {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--secondary);
  margin-bottom: 8px;
}

.admission-cta-card p {
  font-size: 0.88rem;
  color: var(--gray-600);
  margin-bottom: 20px;
}

/* ==========================================================================
   PHOTO GALLERY
   ========================================================================== */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.gallery-item {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  aspect-ratio: 4 / 3;
  cursor: pointer;
  background: var(--gray-200);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.gallery-item.gallery-featured {
  grid-column: span 2;
  aspect-ratio: 8 / 3;
}

.gallery-item:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-xl);
}

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

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

.gallery-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(15, 43, 72, 0.88) 0%, rgba(15, 43, 72, 0.25) 60%, transparent 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 20px;
  color: var(--white);
  opacity: 0;
  transition: opacity 0.3s ease;
}

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

.gallery-tag {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--accent-gold);
  letter-spacing: 0.5px;
}

.gallery-caption {
  font-size: 1rem;
  font-weight: 700;
  color: var(--white);
}

/* ==========================================================================
   CONTACT US & MAP LOCATION SECTION
   ========================================================================== */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  align-items: stretch;
}

.contact-info-panel {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.contact-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 22px 24px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--gray-200);
  display: flex;
  gap: 18px;
  align-items: flex-start;
  transition: var(--transition);
}

.contact-card:hover {
  border-color: var(--primary);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.contact-icon-box {
  width: 50px;
  height: 50px;
  border-radius: var(--radius-md);
  background: var(--primary-subtle);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  flex-shrink: 0;
}

.contact-card-text h4 {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--secondary);
  margin-bottom: 5px;
}

.contact-card-text p, .contact-card-text a {
  font-size: 0.92rem;
  color: var(--gray-700);
  line-height: 1.55;
}

.contact-phone-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

.phone-link-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  background: var(--primary-subtle);
  color: var(--primary);
  border: 1px solid rgba(195, 0, 23, 0.15);
  border-radius: var(--radius-md);
  font-weight: 700;
  font-size: 0.92rem;
  transition: var(--transition);
}

.phone-link-pill:hover {
  background: var(--primary);
  color: var(--white);
  transform: translateY(-2px);
  border-color: var(--primary);
}

/* Map Wrapper (Right Column) */
.map-wrapper {
  background: var(--white);
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--gray-200);
  display: flex;
  flex-direction: column;
  height: 100%;
}

.map-header {
  padding: 16px 22px;
  background: var(--secondary);
  color: var(--white);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.map-header h4 {
  font-size: 0.95rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--white);
}

.map-iframe {
  width: 100%;
  flex: 1;
  min-height: 420px;
  border: none;
  display: block;
}

.map-footer {
  padding: 14px 22px;
  background: var(--gray-100);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.map-address-brief {
  font-size: 0.82rem;
  color: var(--gray-700);
  font-weight: 600;
}

/* Contact / Admission Form */
.enquiry-form-card {
  background: var(--white);
  border-radius: var(--radius-xl);
  padding: 36px 32px;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--gray-200);
}

.enquiry-form-card h3 {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--secondary);
  margin-bottom: 6px;
}

.enquiry-form-card p {
  font-size: 0.88rem;
  color: var(--gray-600);
  margin-bottom: 24px;
}

.form-group {
  margin-bottom: 18px;
}

.form-label {
  display: block;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--gray-800);
  margin-bottom: 6px;
}

.form-control {
  width: 100%;
  padding: 12px 14px;
  font-size: 0.92rem;
  border: 1px solid var(--gray-300);
  border-radius: var(--radius-md);
  outline: none;
  transition: var(--transition);
  font-family: inherit;
}

.form-control:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-glow);
}

.form-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.site-footer {
  background: var(--secondary-dark);
  color: var(--gray-400);
  padding-top: 70px;
  border-top: 4px solid var(--primary);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 0.9fr 1fr 1.1fr;
  gap: 40px;
  margin-bottom: 50px;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
}

.footer-logo {
  height: 58px;
  width: auto;
  background: var(--white);
  padding: 4px;
  border-radius: var(--radius-sm);
}

.footer-brand-title {
  color: var(--white);
  font-size: 1.15rem;
  font-weight: 800;
  line-height: 1.2;
}

.footer-desc {
  font-size: 0.88rem;
  color: var(--gray-400);
  line-height: 1.6;
  margin-bottom: 20px;
}

.footer-heading {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--white);
  margin-bottom: 20px;
  position: relative;
  padding-bottom: 8px;
}

.footer-heading::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 32px;
  height: 2px;
  background: var(--primary);
}

.footer-links {
  list-style: none;
}

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

.footer-links a {
  color: var(--gray-400);
  font-size: 0.88rem;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: var(--transition);
}

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

.footer-contact-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 14px;
  font-size: 0.88rem;
  color: var(--gray-400);
}

.footer-contact-item svg {
  color: var(--primary-light);
  flex-shrink: 0;
  margin-top: 3px;
}

.footer-contact-item a {
  color: var(--gray-300);
}

.footer-contact-item a:hover {
  color: var(--accent-gold);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 24px 0;
  font-size: 0.82rem;
  color: var(--gray-500);
}

.footer-bottom .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
}

.footer-bottom a {
  color: var(--gray-400);
}

.footer-bottom a:hover {
  color: var(--white);
}

/* ==========================================================================
   STICKY MOBILE ACTION BAR & FLOATING BUTTONS
   ========================================================================== */
.floating-actions {
  position: fixed;
  bottom: 24px;
  right: 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  z-index: 999;
}

.fab {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  box-shadow: var(--shadow-xl);
  font-size: 1.4rem;
  transition: var(--transition);
  text-decoration: none;
}

.fab:hover {
  transform: scale(1.1);
  color: var(--white);
}

.fab-whatsapp {
  background: #25d366;
}

.fab-call {
  background: var(--primary);
}

.fab-top {
  background: var(--secondary);
  opacity: 0;
  visibility: hidden;
}

.fab-top.show {
  opacity: 1;
  visibility: visible;
}

.mobile-bottom-bar {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--white);
  box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
  padding: 10px 16px;
  z-index: 998;
  border-top: 1px solid var(--gray-200);
}

.mobile-bottom-bar .bar-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1.2fr;
  gap: 10px;
}

/* ==========================================================================
   MODAL / LIGHTBOX
   ========================================================================== */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2000;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
  padding: 20px;
}

.modal-backdrop.active {
  opacity: 1;
  visibility: visible;
}

.modal-container {
  max-width: 900px;
  width: 100%;
  max-height: 90vh;
  position: relative;
  text-align: center;
}

.modal-image {
  max-width: 100%;
  max-height: 80vh;
  border-radius: var(--radius-md);
  margin: 0 auto;
  box-shadow: var(--shadow-xl);
}

.modal-caption {
  color: var(--white);
  margin-top: 12px;
  font-size: 1rem;
  font-weight: 600;
}

.modal-close-btn {
  position: absolute;
  top: -45px;
  right: 0;
  background: transparent;
  border: none;
  color: var(--white);
  font-size: 2rem;
  cursor: pointer;
  padding: 5px;
}

/* ==========================================================================
   ALERT MESSAGE IN FORM
   ========================================================================== */
.form-alert {
  padding: 12px 16px;
  border-radius: var(--radius-md);
  margin-bottom: 16px;
  font-size: 0.9rem;
  display: none;
}

.form-alert.success {
  display: block;
  background: #ecfdf5;
  color: #065f46;
  border: 1px solid #a7f3d0;
}

/* ==========================================================================
   RESPONSIVE DESIGN (Media Queries)
   ========================================================================== */

/* 1. Laptops and Small Desktops (1081px to 1280px) */
@media (max-width: 1280px) {
  .container {
    max-width: 100%;
    padding-left: 24px;
    padding-right: 24px;
  }

  .navbar-nav {
    gap: 12px;
  }

  .nav-link {
    font-size: 0.84rem;
    padding: 6px 2px;
  }

  .brand-logo {
    height: 56px;
  }

  .brand-title {
    font-size: 1.18rem;
  }

  .brand-subtitle {
    font-size: 0.85rem;
  }

  .brand-tagline {
    font-size: 0.7rem;
  }

  .header-cta-btn {
    padding: 8px 16px;
    font-size: 0.85rem;
  }

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

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

/* 2. Tablets and Medium Screens (Switch to Hamburger Menu at <= 1080px) */
@media (max-width: 1080px) {
  .topbar {
    display: none;
  }

  .container {
    padding-left: 20px;
    padding-right: 20px;
  }

  .mobile-menu-btn {
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .navbar-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--white);
    flex-direction: column;
    align-items: stretch;
    padding: 18px 24px;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
    border-bottom: 3px solid var(--primary);
    transform: translateY(-20px);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.25s ease, opacity 0.25s ease;
    gap: 4px;
    z-index: 9999;
    max-height: calc(100vh - 85px);
    overflow-y: auto;
  }

  .navbar-nav.open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .nav-link {
    font-size: 1rem;
    padding: 10px 0;
    border-bottom: 1px solid var(--gray-200);
    color: var(--secondary);
  }

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

  .header-cta-btn {
    padding: 7px 14px;
    font-size: 0.82rem;
  }

  .hero {
    padding: 50px 0 65px;
  }

  .hero-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .hero-card {
    max-width: 650px;
    margin: 0 auto;
    width: 100%;
  }

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

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

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

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

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

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

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

  .stat-item:nth-child(2)::after {
    display: none;
  }

  .mobile-bottom-bar {
    display: block;
  }

  body {
    padding-bottom: 70px;
  }

  .floating-actions {
    bottom: 85px;
    right: 16px;
  }

  .fab-call {
    display: none; /* Call action is already in mobile-bottom-bar */
  }
}

/* 3. Small Tablets and Large Phones (<= 768px) */
@media (max-width: 768px) {
  .container {
    padding-left: 18px;
    padding-right: 18px;
  }

  .brand-logo {
    height: 50px;
  }

  .brand-title {
    font-size: 1.1rem;
  }

  .brand-subtitle {
    font-size: 0.82rem;
  }

  .brand-tagline {
    display: none;
  }

  .hero-title {
    font-size: 2.1rem;
  }

  .hero-subtitle {
    font-size: 1.15rem;
  }

  .affiliation-card {
    padding: 26px 20px;
  }

  .aff-details li {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    padding: 10px 0;
  }

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

  .management-boxes {
    grid-template-columns: 1fr;
  }

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

  .about-secondary-card {
    position: static;
    margin-top: 15px;
    max-width: 100%;
  }

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

  .admission-banner {
    grid-template-columns: 1fr;
    padding: 32px 22px;
  }

  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
  }

  .gallery-item.gallery-featured {
    grid-column: span 2;
    aspect-ratio: 16 / 9;
  }

  .map-iframe {
    height: 350px;
  }

  .form-grid-2 {
    grid-template-columns: 1fr;
  }

  .form-control {
    font-size: 16px; /* Prevents auto-zoom in mobile Safari */
  }

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

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
    padding: 10px;
  }

  .stat-item::after {
    display: none !important;
  }
}

/* 4. Extra Small Phones (<= 480px) */
@media (max-width: 480px) {
  .container {
    padding-left: 14px;
    padding-right: 14px;
  }

  .brand {
    gap: 10px;
  }

  .brand-logo {
    height: 44px;
  }

  .brand-title {
    font-size: 0.95rem;
    line-height: 1.15;
  }

  .brand-subtitle {
    font-size: 0.74rem;
  }

  .header-cta-btn {
    display: none; /* Hide in top header on tiny screens; sticky bottom bar has Apply Now */
  }

  .hero-title {
    font-size: 1.7rem;
  }

  .hero-subtitle {
    font-size: 0.98rem;
  }

  .hero-actions {
    flex-direction: column;
  }

  .hero-actions .btn {
    width: 100%;
  }

  .hero-card-floating {
    position: static;
    margin-top: 14px;
  }

  .hero-img {
    height: 260px;
  }

  .stats-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

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

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

  .gallery-item.gallery-featured {
    grid-column: span 1;
    aspect-ratio: 4 / 3;
  }

  .contact-phone-grid {
    grid-template-columns: 1fr;
  }

  .map-iframe {
    height: 280px;
  }

  .section {
    padding: 50px 0;
  }

  .section-title {
    font-size: 1.75rem;
  }
}
