/* ============================================
   DMSF - Davao Medical School Foundation
   Glossy, Sharp, Animated Theme
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;600;700;800&family=Source+Sans+3:wght@300;400;500;600;700&family=JetBrains+Mono:wght@400;500&display=swap');

/* ---- CSS Variables ---- */
:root {
  --primary: #1A4078;
  --primary-dark: #0E2A52;
  --primary-light: #2B5EA3;
  --accent: #2E86DE;
  --accent-glow: #4DA3F0;
  --gold: #D4A843;
  --gold-light: #F0CB6E;
  --white: #FFFFFF;
  --off-white: #F4F6F9;
  --gray-100: #E8ECF1;
  --gray-200: #D0D7E0;
  --gray-300: #A0AEC0;
  --gray-500: #6B7B8F;
  --gray-700: #3A4A5C;
  --gray-900: #1A2332;
  --dark: #0D1B2A;
  --success: #27AE60;
  --danger: #E74C3C;
  --shadow-sm: 0 2px 8px rgba(10,27,50,0.08);
  --shadow-md: 0 4px 20px rgba(10,27,50,0.12);
  --shadow-lg: 0 8px 40px rgba(10,27,50,0.18);
  --shadow-glow: 0 0 30px rgba(46,134,222,0.25);
  --radius: 0px;
  --radius-sm: 0px;
  --transition: 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --transition-fast: 0.2s ease;
  --font-display: 'Playfair Display', Georgia, serif;
  --font-body: 'Source Sans 3', 'Segoe UI', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
  --glossy-gradient: linear-gradient(135deg, rgba(255,255,255,0.15) 0%, rgba(255,255,255,0.05) 50%, rgba(0,0,0,0.05) 100%);
  --glass-bg: rgba(255,255,255,0.08);
  --glass-border: rgba(255,255,255,0.18);
}

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

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

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

a { text-decoration: none; color: inherit; transition: color var(--transition-fast); }
img { max-width: 100%; height: auto; display: block; }
ul { list-style: none; }

.container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ---- Utility Classes ---- */
.section-padding { padding: 90px 0; }
.section-padding-sm { padding: 60px 0; }
.text-center { text-align: center; }
.text-white { color: var(--white); }

/* ---- Section Title ---- */
.section-title {
  font-family: var(--font-display);
  font-size: 2.4rem;
  font-weight: 700;
  color: var(--primary-dark);
  margin-bottom: 10px;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

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

.section-subtitle {
  font-size: 1.05rem;
  color: var(--gray-500);
  font-weight: 400;
  margin-bottom: 50px;
}

.section-subtitle.light { color: rgba(255,255,255,0.7); }

.section-divider {
  width: 60px;
  height: 3px;
  background: var(--accent);
  margin: 16px auto 0;
  position: relative;
}

.section-divider::after {
  content: '';
  position: absolute;
  top: -2px;
  left: 0;
  width: 100%;
  height: 7px;
  background: linear-gradient(90deg, transparent, rgba(46,134,222,0.3), transparent);
  filter: blur(3px);
}

/* ============================================
   TOP BAR
   ============================================ */
.top-bar {
  background: var(--primary-dark);
  color: rgba(255,255,255,0.85);
  font-size: 0.85rem;
  padding: 8px 0;
  position: relative;
  z-index: 1001;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

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

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

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

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

.top-bar-center {
  background: var(--accent);
  padding: 3px 18px;
  font-weight: 600;
  font-size: 0.8rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--white);
  position: relative;
  overflow: hidden;
  clip-path: polygon(8px 0, 100% 0, calc(100% - 8px) 100%, 0 100%);
}

.top-bar-center::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--glossy-gradient);
}

.top-bar i { margin-right: 6px; opacity: 0.7; }

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

.header.scrolled {
  box-shadow: var(--shadow-md);
}

.header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 0;
  padding-bottom: 0;
  min-height: 68px;
  max-width: 100%;
  padding-left: 20px;
  padding-right: 20px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0;
  flex-shrink: 0;
  margin-right: 10px;
}

.logo img {
  height: 52px;
  width: auto;
  object-fit: contain;
  transition: transform var(--transition);
}

.logo:hover img { transform: scale(1.03); }

/* ---- Main Navigation ---- */
.main-nav { display: flex; align-items: center; flex: 1; justify-content: flex-end; }

.main-nav > ul {
  display: flex;
  align-items: center;
  gap: 0;
  flex-wrap: nowrap;
}

.main-nav > ul > li { position: relative; }

.main-nav > ul > li > a {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 22px 9px;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--gray-700);
  text-transform: uppercase;
  letter-spacing: 0.03em;
  position: relative;
  transition: color var(--transition-fast);
  white-space: nowrap;
}

.main-nav > ul > li > a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 9px;
  right: 9px;
  height: 3px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--transition);
}

.main-nav > ul > li:hover > a,
.main-nav > ul > li.active > a {
  color: var(--primary);
}

.main-nav > ul > li:hover > a::after,
.main-nav > ul > li.active > a::after {
  transform: scaleX(1);
}

.main-nav > ul > li > a .arrow {
  font-size: 0.6rem;
  transition: transform var(--transition-fast);
}

.main-nav > ul > li:hover > a .arrow {
  transform: rotate(180deg);
}

/* ---- Dropdown ---- */
.dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 280px;
  background: var(--white);
  box-shadow: var(--shadow-lg);
  border-top: 3px solid var(--accent);
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: all var(--transition);
  z-index: 100;
}

.main-nav > ul > li:hover > .dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown li { border-bottom: 1px solid var(--gray-100); }
.dropdown li:last-child { border-bottom: none; }

.dropdown li a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 20px;
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--gray-700);
  transition: all var(--transition-fast);
  position: relative;
  overflow: hidden;
}

.dropdown li a::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 0;
  background: var(--accent);
  transition: width var(--transition-fast);
}

.dropdown li a:hover {
  background: var(--off-white);
  color: var(--primary);
  padding-left: 28px;
}

.dropdown li a:hover::before { width: 4px; }

.dropdown li a i {
  color: var(--accent);
  font-size: 0.7rem;
  opacity: 0;
  transition: opacity var(--transition-fast);
}

.dropdown li a:hover i { opacity: 1; }

/* ---- Mobile Toggle ---- */
.mobile-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 8px;
  z-index: 1002;
}

.mobile-toggle span {
  width: 26px;
  height: 2px;
  background: var(--gray-700);
  transition: all var(--transition);
  transform-origin: center;
}

.mobile-toggle.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.mobile-toggle.active span:nth-child(2) { opacity: 0; }
.mobile-toggle.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* ============================================
   HERO / BANNER SLIDER
   ============================================ */
.hero-slider {
  position: relative;
  height: 540px;
  overflow: hidden;
  background: var(--primary-dark);
}

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

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

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

.hero-slide .overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(13,27,42,0.75) 0%, rgba(26,64,120,0.55) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-slide .hero-content {
  text-align: center;
  max-width: 750px;
  padding: 0 24px;
  animation: heroFadeUp 0.8s ease forwards;
}

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

.hero-slide .hero-content h2 {
  font-family: var(--font-display);
  font-size: 2.8rem;
  font-weight: 700;
  color: var(--white);
  line-height: 1.2;
  margin-bottom: 16px;
  text-shadow: 0 2px 20px rgba(0,0,0,0.3);
}

.hero-slide .hero-content p {
  font-size: 1.1rem;
  color: rgba(255,255,255,0.85);
  margin-bottom: 28px;
}

.hero-dots {
  position: absolute;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
  z-index: 10;
}

.hero-dots span {
  width: 12px;
  height: 3px;
  background: rgba(255,255,255,0.4);
  cursor: pointer;
  transition: all var(--transition);
}

.hero-dots span.active {
  width: 36px;
  background: var(--white);
}

/* ---- Hero CTA Button ---- */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 32px;
  background: var(--accent);
  color: var(--white);
  font-family: var(--font-body);
  font-size: 0.92rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  border: none;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: all var(--transition);
}

.btn-primary::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--glossy-gradient);
}

.btn-primary::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
  transition: left 0.5s ease;
}

.btn-primary:hover {
  background: var(--primary);
  transform: translateY(-2px);
  box-shadow: var(--shadow-glow);
}

.btn-primary:hover::after { left: 100%; }

.btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 30px;
  background: transparent;
  color: var(--accent);
  font-family: var(--font-body);
  font-size: 0.92rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  border: 2px solid var(--accent);
  cursor: pointer;
  transition: all var(--transition);
}

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

/* ============================================
   COUNSELLING FORM (Index sidebar)
   ============================================ */
.counselling-form-section {
  position: absolute;
  top: 50%;
  right: 5%;
  transform: translateY(-50%);
  z-index: 10;
  width: 320px;
}

.counselling-form {
  background: var(--white);
  padding: 28px 24px;
  box-shadow: var(--shadow-lg);
  position: relative;
  overflow: hidden;
}

.counselling-form::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
}

.counselling-form h3 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--primary-dark);
  margin-bottom: 6px;
  text-align: center;
}

.counselling-form .form-divider {
  width: 40px;
  height: 2px;
  background: var(--accent);
  margin: 0 auto 20px;
}

.form-group {
  margin-bottom: 14px;
  position: relative;
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 11px 14px 11px 40px;
  border: 1px solid var(--gray-200);
  background: var(--off-white);
  font-family: var(--font-body);
  font-size: 0.9rem;
  color: var(--gray-700);
  outline: none;
  transition: all var(--transition-fast);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(46,134,222,0.1);
  background: var(--white);
}

.form-group i {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--gray-300);
  font-size: 0.85rem;
}

.form-group textarea { min-height: 70px; resize: vertical; padding-top: 14px; }
.form-group textarea + i { top: 20px; transform: none; }

.form-submit {
  width: 100%;
  padding: 13px;
  background: var(--primary);
  color: var(--white);
  font-family: var(--font-body);
  font-size: 0.92rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  border: none;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: all var(--transition);
  margin-top: 6px;
}

.form-submit::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--glossy-gradient);
}

.form-submit:hover {
  background: var(--accent);
  box-shadow: var(--shadow-glow);
}

/* ============================================
   TELEGRAM NOTICE
   ============================================ */
.telegram-notice {
  background: var(--primary);
  padding: 40px 0;
  position: relative;
  overflow: hidden;
}

.telegram-notice::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--glossy-gradient);
}

.telegram-notice .container {
  display: flex;
  align-items: center;
  gap: 40px;
  position: relative;
  z-index: 1;
}

.telegram-content { flex: 1; }

.telegram-content h3 {
  font-family: var(--font-display);
  font-size: 1.3rem;
  color: var(--white);
  font-weight: 700;
  margin-bottom: 10px;
}

.telegram-content p {
  color: rgba(255,255,255,0.75);
  font-size: 0.95rem;
}

.telegram-img { width: 140px; flex-shrink: 0; }
.telegram-img img { width: 100%; filter: drop-shadow(0 4px 20px rgba(0,0,0,0.2)); }

/* ============================================
   HIGHLIGHTS SECTION
   ============================================ */
.highlights-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
}

.highlight-card {
  position: relative;
  overflow: hidden;
  height: 300px;
  cursor: pointer;
  group: true;
}

.highlight-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.highlight-card:hover img { transform: scale(1.08); }

.highlight-card .card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 30%, rgba(13,27,42,0.85) 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 20px;
  transition: background var(--transition);
}

.highlight-card:hover .card-overlay {
  background: linear-gradient(180deg, rgba(13,27,42,0.2) 0%, rgba(13,27,42,0.9) 100%);
}

.highlight-card h4 {
  font-family: var(--font-display);
  font-size: 1.1rem;
  color: var(--white);
  font-weight: 700;
  line-height: 1.3;
}

.highlight-card .card-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--accent-glow);
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-top: 10px;
  opacity: 0;
  transform: translateY(10px);
  transition: all var(--transition);
}

.highlight-card:hover .card-link {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================
   FEATURES CAROUSEL
   ============================================ */
.features-section {
  background: var(--off-white);
  position: relative;
}

.features-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--primary), var(--accent), var(--primary));
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 24px;
}

.feature-card {
  background: var(--white);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition);
  position: relative;
}

.feature-card::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--accent);
  transform: scaleX(0);
  transition: transform var(--transition);
}

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

.feature-card:hover::after { transform: scaleX(1); }

.feature-card .card-img {
  height: 180px;
  overflow: hidden;
}

.feature-card .card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.feature-card:hover .card-img img { transform: scale(1.06); }

.feature-card .card-body {
  padding: 18px;
}

.feature-card h4 {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--primary-dark);
  line-height: 1.3;
}

/* ============================================
   ADVANTAGES SECTION
   ============================================ */
.advantages-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
}

.advantage-card {
  display: flex;
  gap: 16px;
  background: var(--white);
  padding: 20px;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
}

.advantage-card::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 0;
  background: var(--accent);
  transition: width var(--transition);
}

.advantage-card:hover {
  transform: translateX(4px);
  box-shadow: var(--shadow-md);
}

.advantage-card:hover::before { width: 4px; }

.advantage-card .card-thumb {
  width: 120px;
  height: 90px;
  flex-shrink: 0;
  overflow: hidden;
}

.advantage-card .card-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.advantage-card h4 {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--primary-dark);
  line-height: 1.3;
}

.advantage-card p {
  font-size: 0.9rem;
  color: var(--gray-500);
  margin-top: 6px;
}

/* ============================================
   STUDENT LIFE SECTION
   ============================================ */
.student-life-section {
  background: var(--primary);
  position: relative;
  overflow: hidden;
}

.student-life-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--glossy-gradient);
}

.student-life-inner {
  display: flex;
  align-items: center;
  gap: 50px;
  position: relative;
  z-index: 1;
}

.student-life-img {
  flex: 1;
  overflow: hidden;
}

.student-life-img img {
  width: 100%;
  height: 350px;
  object-fit: cover;
}

.student-life-content {
  flex: 1;
}

.student-life-content h2 {
  font-family: var(--font-display);
  font-size: 2rem;
  color: var(--white);
  font-weight: 700;
  margin-bottom: 8px;
}

.student-life-content .divider {
  width: 50px;
  height: 3px;
  background: var(--accent-glow);
  margin-bottom: 20px;
}

.student-life-content p {
  color: rgba(255,255,255,0.8);
  font-size: 1rem;
  line-height: 1.8;
}

/* ============================================
   SERVICES SECTION
   ============================================ */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.service-card {
  text-align: center;
  transition: all var(--transition);
}

.service-card .card-img {
  height: 220px;
  overflow: hidden;
  margin-bottom: 20px;
  position: relative;
}

.service-card .card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

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

.service-card h4 {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--primary-dark);
  margin-bottom: 10px;
}

.service-card p {
  font-size: 0.92rem;
  color: var(--gray-500);
  line-height: 1.7;
  margin-bottom: 16px;
}

.view-more-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--accent);
  font-weight: 600;
  font-size: 0.88rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  transition: all var(--transition-fast);
}

.view-more-link:hover {
  color: var(--primary);
  gap: 12px;
}

/* ============================================
   PRODIGIES SECTION (World Map)
   ============================================ */
.prodigies-section {
  background: var(--off-white);
}

.prodigies-section .map-container {
  max-width: 900px;
  margin: 0 auto;
}

.prodigies-section .map-container img {
  width: 100%;
}

/* ============================================
   TESTIMONIALS
   ============================================ */
.testimonials-section {
  background: var(--dark);
  position: relative;
  overflow: hidden;
}

.testimonials-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 30% 50%, rgba(46,134,222,0.08) 0%, transparent 60%);
}

.testimonial-card {
  max-width: 700px;
  margin: 0 auto;
  text-align: center;
  position: relative;
  z-index: 1;
}

.testimonial-card .quote-icon {
  font-size: 3rem;
  color: var(--accent);
  opacity: 0.3;
  margin-bottom: 16px;
}

.testimonial-card blockquote {
  font-family: var(--font-display);
  font-size: 1.2rem;
  color: rgba(255,255,255,0.85);
  font-style: italic;
  line-height: 1.8;
  margin-bottom: 24px;
}

.testimonial-card .author {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
}

.testimonial-card .author img {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--accent);
}

.testimonial-card .author-info h5 {
  color: var(--white);
  font-weight: 600;
  font-size: 1rem;
}

.testimonial-card .author-info span {
  color: var(--gray-300);
  font-size: 0.85rem;
}

/* ============================================
   PAGE HERO (Subpages)
   ============================================ */
.page-hero {
  height: 320px;
  background: var(--primary-dark);
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.page-hero img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.3;
}

.page-hero .overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(13,27,42,0.8) 0%, rgba(26,64,120,0.7) 100%);
}

.page-hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
}

.page-hero-content h1 {
  font-family: var(--font-display);
  font-size: 2.8rem;
  color: var(--white);
  font-weight: 700;
  margin-bottom: 10px;
  text-shadow: 0 2px 20px rgba(0,0,0,0.3);
}

.page-hero-content p {
  color: rgba(255,255,255,0.7);
  font-size: 1.1rem;
}

.breadcrumb {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 16px;
  font-size: 0.9rem;
}

.breadcrumb a { color: rgba(255,255,255,0.6); transition: color var(--transition-fast); }
.breadcrumb a:hover { color: var(--white); }
.breadcrumb span { color: var(--accent-glow); }
.breadcrumb i { font-size: 0.7rem; color: rgba(255,255,255,0.4); }

/* ============================================
   CONTACT PAGE
   ============================================ */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: start;
}

.contact-map {
  height: 420px;
  background: var(--gray-100);
  overflow: hidden;
}

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

.contact-form {
  background: var(--white);
  padding: 36px;
  box-shadow: var(--shadow-md);
  border-top: 4px solid var(--accent);
}

.contact-form h3 {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--primary-dark);
  margin-bottom: 24px;
}

.contact-info-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin-top: 60px;
}

.contact-info-card {
  padding: 28px 20px;
  background: var(--off-white);
  text-align: center;
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
}

.contact-info-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--accent);
  transform: scaleX(0);
  transition: transform var(--transition);
}

.contact-info-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-4px);
}

.contact-info-card:hover::before { transform: scaleX(1); }

.contact-info-card .icon {
  width: 50px;
  height: 50px;
  margin: 0 auto 14px;
  background: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: 1.2rem;
  position: relative;
}

.contact-info-card .icon::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--glossy-gradient);
}

.contact-info-card h4 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--primary-dark);
  margin-bottom: 8px;
}

.contact-info-card p {
  font-size: 0.9rem;
  color: var(--gray-500);
  line-height: 1.6;
}

.contact-info-card a {
  color: var(--accent);
  font-weight: 600;
}

/* ============================================
   BLOG / NEWS GRID
   ============================================ */
.posts-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.post-card {
  background: var(--white);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: all var(--transition);
}

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

.post-card .card-img {
  height: 200px;
  overflow: hidden;
  position: relative;
}

.post-card .card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.post-card:hover .card-img img { transform: scale(1.06); }

.post-card .card-img .date-badge {
  position: absolute;
  top: 14px;
  left: 14px;
  background: var(--accent);
  color: var(--white);
  padding: 6px 12px;
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.post-card .card-body {
  padding: 22px;
}

.post-card .card-body h4 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--primary-dark);
  line-height: 1.3;
  margin-bottom: 10px;
}

.post-card .card-body p {
  font-size: 0.9rem;
  color: var(--gray-500);
  line-height: 1.7;
  margin-bottom: 14px;
}

.post-card .read-more {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--accent);
  font-weight: 600;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  transition: all var(--transition-fast);
}

.post-card .read-more:hover { gap: 10px; color: var(--primary); }

/* ============================================
   GALLERY GRID
   ============================================ */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.gallery-item {
  position: relative;
  height: 240px;
  overflow: hidden;
  cursor: pointer;
}

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

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

.gallery-item .gallery-overlay {
  position: absolute;
  inset: 0;
  background: rgba(13,27,42,0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity var(--transition);
}

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

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

/* ============================================
   CONTENT SECTIONS (About, Academics, etc)
   ============================================ */
.content-section {
  padding: 70px 0;
}

.content-block {
  max-width: 900px;
  margin: 0 auto;
}

.content-block h2 {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 700;
  color: var(--primary-dark);
  margin-bottom: 20px;
}

.content-block h3 {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--primary);
  margin-top: 30px;
  margin-bottom: 14px;
}

.content-block p {
  font-size: 1rem;
  color: var(--gray-700);
  line-height: 1.8;
  margin-bottom: 16px;
}

.content-block ul {
  margin-bottom: 16px;
  padding-left: 0;
}

.content-block ul li {
  position: relative;
  padding-left: 24px;
  margin-bottom: 8px;
  font-size: 0.95rem;
  color: var(--gray-700);
}

.content-block ul li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 10px;
  width: 8px;
  height: 8px;
  background: var(--accent);
  clip-path: polygon(50% 0%, 100% 50%, 50% 100%, 0% 50%);
}

/* ============================================
   FAQ ACCORDION
   ============================================ */
.faq-item {
  border: 1px solid var(--gray-200);
  margin-bottom: 12px;
  overflow: hidden;
  transition: box-shadow var(--transition);
}

.faq-item:hover { box-shadow: var(--shadow-sm); }

.faq-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 22px;
  cursor: pointer;
  background: var(--white);
  font-weight: 600;
  color: var(--primary-dark);
  font-size: 1rem;
  transition: all var(--transition-fast);
}

.faq-question:hover { background: var(--off-white); }

.faq-question i {
  transition: transform var(--transition);
  color: var(--accent);
}

.faq-item.active .faq-question i { transform: rotate(180deg); }

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease;
  background: var(--off-white);
}

.faq-item.active .faq-answer { max-height: 500px; }

.faq-answer p {
  padding: 18px 22px;
  font-size: 0.95rem;
  color: var(--gray-500);
  line-height: 1.7;
}

/* ============================================
   SOCIAL LINKS
   ============================================ */
.social-links {
  display: flex;
  align-items: center;
  gap: 12px;
}

.social-links a {
  width: 42px;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: var(--white);
  font-size: 1rem;
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
}

.social-links a::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: var(--glossy-gradient);
}

.social-links a.fb { background: #1877F2; }
.social-links a.ig { background: linear-gradient(135deg, #F58529, #DD2A7B, #8134AF); }
.social-links a.li { background: #0A66C2; }
.social-links a.yt { background: #FF0000; }
.social-links a.tw { background: #1DA1F2; }

.social-links a:hover {
  transform: translateY(-3px) scale(1.1);
  box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

/* ============================================
   FOOTER
   ============================================ */
.footer-social {
  background: var(--gray-900);
  padding: 40px 0;
  text-align: center;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.footer-social h4 {
  font-family: var(--font-display);
  font-size: 1.3rem;
  color: var(--white);
  font-weight: 700;
  margin-bottom: 18px;
}

.footer-social .social-links { justify-content: center; }

.footer-main {
  background: var(--dark);
  padding: 50px 0 30px;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
}

.footer-col h4 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  color: var(--white);
  font-weight: 700;
  margin-bottom: 20px;
}

.footer-col p,
.footer-col a {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.6);
  line-height: 1.8;
}

.footer-col a:hover { color: var(--accent-glow); }

.footer-col .footer-contact-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 12px;
}

.footer-col .footer-contact-item i {
  color: var(--accent);
  margin-top: 4px;
  font-size: 0.85rem;
}

.footer-bottom {
  background: var(--dark);
  border-top: 1px solid rgba(255,255,255,0.08);
  padding: 18px 0;
}

.footer-bottom .container {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 30px;
}

.footer-bottom a {
  font-size: 0.82rem;
  color: rgba(255,255,255,0.5);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 600;
  transition: color var(--transition-fast);
}

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

.footer-bottom .sep { color: rgba(255,255,255,0.2); }

/* ============================================
   SCROLL ANIMATIONS
   ============================================ */
.animate-on-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.animate-on-scroll.visible {
  opacity: 1;
  transform: translateY(0);
}

.animate-on-scroll.delay-1 { transition-delay: 0.1s; }
.animate-on-scroll.delay-2 { transition-delay: 0.2s; }
.animate-on-scroll.delay-3 { transition-delay: 0.3s; }
.animate-on-scroll.delay-4 { transition-delay: 0.4s; }

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

.back-to-top::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--glossy-gradient);
}

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

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

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1024px) {
  .main-nav > ul > li > a { padding: 22px 7px; font-size: 0.73rem; }
  .logo img { height: 44px; }
  .counselling-form-section { display: none; }
  .hero-slider { height: 400px; }
  .hero-slide .hero-content h2 { font-size: 2.2rem; }
  .contact-grid { grid-template-columns: 1fr; }
  .contact-info-grid { grid-template-columns: repeat(2, 1fr); }
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .gallery-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 1200px) {
  .main-nav > ul > li > a { padding: 22px 7px; font-size: 0.74rem; letter-spacing: 0.02em; }
  .logo img { height: 46px; }
  .logo { margin-right: 6px; }
}

@media (max-width: 991px) {
  .top-bar-center { display: none; }
  
  .mobile-toggle { display: flex; }
  
  .main-nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 300px;
    height: 100vh;
    background: var(--white);
    flex-direction: column;
    padding: 80px 0 30px;
    box-shadow: -4px 0 20px rgba(0,0,0,0.15);
    transition: right var(--transition);
    overflow-y: auto;
    z-index: 1001;
  }
  
  .main-nav.active { right: 0; }
  
  .main-nav > ul { flex-direction: column; width: 100%; gap: 0; }
  
  .main-nav > ul > li > a {
    padding: 14px 24px;
    font-size: 0.88rem;
    justify-content: space-between;
    border-bottom: 1px solid var(--gray-100);
  }
  
  .main-nav > ul > li > a::after { display: none; }
  
  .dropdown {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    border-top: none;
    display: none;
    background: var(--off-white);
  }
  
  .dropdown.open { display: block; }
  
  .hero-slider { height: 350px; }
  .hero-slide .hero-content h2 { font-size: 1.8rem; }
  .section-title { font-size: 1.9rem; }
  .page-hero { height: 250px; }
  .page-hero-content h1 { font-size: 2rem; }
  .highlights-grid { grid-template-columns: repeat(2, 1fr); }
  .posts-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .contact-info-grid { grid-template-columns: 1fr; }
  .services-grid { grid-template-columns: 1fr; }
  .student-life-inner { flex-direction: column; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .advantages-grid { grid-template-columns: 1fr; }
  .footer-bottom .container { flex-wrap: wrap; justify-content: center; }
  .counselling-form-section { display: none; }
}

@media (max-width: 480px) {
  .hero-slider { height: 280px; }
  .hero-slide .hero-content h2 { font-size: 1.5rem; }
  .section-title { font-size: 1.6rem; }
  .highlights-grid { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: 1fr; }
}
