/* ============================================
   ST. XAVIER'S SCHOOL - MAIN STYLESHEET
   Dynamic theme via CSS custom properties
   ============================================ */

:root {
  --primary: #1a3a6b;
  --secondary: #c8a84b;
  --accent: #e74c3c;
  --font-heading: 'Playfair Display', Georgia, serif;
  --font-body: 'Poppins', sans-serif;
  --text-dark: #1a1a2e;
  --text-muted: #6c757d;
  --bg-light: #f8f9fa;
  --bg-cream: #fdf6e3;
  --white: #ffffff;
  --shadow-sm: 0 2px 15px rgba(0,0,0,0.08);
  --shadow-md: 0 8px 30px rgba(0,0,0,0.12);
  --shadow-lg: 0 20px 60px rgba(0,0,0,0.15);
  --radius: 12px;
  --radius-sm: 8px;
  --transition: all 0.3s ease;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: var(--font-body);
  color: var(--text-dark);
  line-height: 1.7;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.3;
}

a { color: var(--primary); text-decoration: none; transition: var(--transition); }
a:hover { color: var(--secondary); }
img { max-width: 100%; height: auto; }

/* ---- ADMISSION BAR ---- */
.admission-bar {
  background: var(--accent);
  color: white;
  padding: 8px 0;
  font-size: 0.85rem;
  z-index: 1100;
  position: relative;
}
.admission-bar .btn-light {
  background: white;
  color: var(--accent);
  border: none;
  font-size: 0.8rem;
  padding: 4px 14px;
  border-radius: 20px;
}

/* ---- TOP BAR ---- */
.top-bar {
  background: var(--primary);
  color: rgba(255,255,255,0.85);
  padding: 6px 0;
  font-size: 0.82rem;
}
.top-bar a {
  color: rgba(255,255,255,0.75);
  transition: var(--transition);
}
.top-bar a:hover { color: var(--secondary); }
.top-bar .btn-outline-light {
  font-size: 0.78rem;
  padding: 3px 12px;
  border-radius: 20px;
}

/* ---- NAVBAR ---- */
.main-navbar {
  background: white;
  box-shadow: var(--shadow-sm);
  padding: 0 0;
  transition: var(--transition);
  z-index: 1000;
}
.main-navbar.scrolled {
  box-shadow: var(--shadow-md);
  padding: 0;
}
.navbar-brand { padding: 8px 0; }
.navbar-brand.d-flex { align-items: center; gap: 10px; }

/* ---- LOGO CONTAINER (used in navbar, footer, admin sidebar) ---- */
.nav-logo-wrap {
  width: 52px !important;
  height: 52px !important;
  min-width: 52px;
  border-radius: 50%;
  overflow: hidden;
  background: white;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  border: 2px solid rgba(200,168,75,0.35);
  box-shadow: 0 2px 8px rgba(0,0,0,0.12);
}
.nav-logo-wrap img {
  width: 100% !important;
  height: 100% !important;
  max-width: 100% !important;
  object-fit: contain;
  display: block;
}
.nav-logo-wrap span {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--primary);
  font-family: var(--font-heading);
  line-height: 1;
}
.nav-logo-wrap--footer {
  width: 52px !important;
  height: 52px !important;
  min-width: 52px;
  border-radius: 50%;
}
.logo-placeholder {
  width: 60px; height: 60px;
  background: var(--primary);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: white; font-size: 1.4rem;
}
.brand-name {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--primary);
  line-height: 1.2;
  letter-spacing: 0.3px;
  white-space: nowrap;
}
.brand-text .brand-tag {
  font-size: 0.7rem;
  color: var(--secondary);
  letter-spacing: 0.5px;
  font-weight: 500;
}
.main-navbar .nav-link {
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--text-dark) !important;
  padding: 1.5rem 0.6rem !important;
  position: relative;
  transition: var(--transition);
}
.main-navbar .nav-link::after {
  content: '';
  position: absolute;
  bottom: 0; left: 50%; right: 50%;
  height: 3px;
  background: var(--secondary);
  transition: var(--transition);
  border-radius: 2px;
}
.main-navbar .nav-link:hover,
.main-navbar .nav-link.active {
  color: var(--primary) !important;
}
.main-navbar .nav-link:hover::after,
.main-navbar .nav-link.active::after {
  left: 0.6rem; right: 0.6rem;
}
.dropdown-menu {
  border: none;
  box-shadow: var(--shadow-md);
  border-radius: var(--radius-sm);
  border-top: 3px solid var(--secondary);
  min-width: 220px;
  animation: fadeInDown 0.2s ease;
}
.dropdown-item {
  font-size: 0.85rem;
  padding: 8px 18px;
  color: var(--text-dark);
  transition: var(--transition);
}
.dropdown-item:hover {
  background: var(--bg-light);
  color: var(--primary);
  padding-left: 24px;
}
.btn-admission {
  background: var(--secondary);
  color: white !important;
  border-radius: 25px;
  padding: 8px 22px;
  font-size: 0.85rem;
  font-weight: 600;
  border: none;
  transition: var(--transition);
  box-shadow: 0 4px 15px rgba(200,168,75,0.4);
}
.btn-admission:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(200,168,75,0.5);
  color: white !important;
}

@keyframes fadeInDown {
  from { opacity: 0; transform: translateY(-10px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ---- HERO SLIDER ---- */
.hero-slider { position: relative; overflow: hidden; }
.hero-slide {
  min-height: 600px;
  display: flex;
  align-items: center;
  background-size: cover;
  background-position: center;
  position: relative;
}
.hero-slide::before {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(to right, rgba(0,0,0,0.65) 0%, rgba(0,0,0,0.2) 60%, transparent 100%);
}
.hero-slide.no-image {
  background: var(--primary);
}
.hero-content {
  position: relative; z-index: 2;
  color: white;
  max-width: 650px;
}
.hero-content .slide-badge {
  display: inline-block;
  background: rgba(200,168,75,0.25);
  border: 1px solid var(--secondary);
  color: var(--secondary);
  padding: 5px 18px;
  border-radius: 25px;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 1rem;
}
.hero-content h1 {
  font-size: clamp(2rem, 4vw, 3.5rem);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1rem;
  text-shadow: 0 2px 10px rgba(0,0,0,0.2);
}
.hero-content p {
  font-size: 1.1rem;
  opacity: 0.9;
  margin-bottom: 2rem;
  font-weight: 300;
}
.hero-content .hero-btns { display: flex; gap: 1rem; flex-wrap: wrap; }
.btn-hero-primary {
  background: var(--secondary);
  color: white !important;
  border: 2px solid var(--secondary);
  padding: 12px 30px;
  border-radius: 30px;
  font-weight: 600;
  font-size: 0.9rem;
  transition: var(--transition);
}
.btn-hero-primary:hover {
  background: transparent;
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(200,168,75,0.4);
}
.btn-hero-outline {
  background: transparent;
  color: white !important;
  border: 2px solid rgba(255,255,255,0.6);
  padding: 12px 30px;
  border-radius: 30px;
  font-weight: 600;
  font-size: 0.9rem;
  transition: var(--transition);
}
.btn-hero-outline:hover {
  background: rgba(255,255,255,0.15);
  border-color: white;
  transform: translateY(-2px);
}
.hero-slider .swiper-button-next,
.hero-slider .swiper-button-prev {
  color: white;
  background: rgba(255,255,255,0.15);
  backdrop-filter: blur(4px);
  border-radius: 50%;
  width: 50px; height: 50px;
  transition: var(--transition);
}
.hero-slider .swiper-button-next:hover,
.hero-slider .swiper-button-prev:hover {
  background: var(--secondary);
}
.hero-slider .swiper-button-next::after,
.hero-slider .swiper-button-prev::after { font-size: 1rem; font-weight: 700; }
.hero-slider .swiper-pagination-bullet { background: white; opacity: 0.5; }
.hero-slider .swiper-pagination-bullet-active { background: var(--secondary); opacity: 1; width: 24px; border-radius: 4px; }

/* Video slide backgrounds */
.video-bg-wrap {
  position: absolute; inset: 0;
  overflow: hidden;
  z-index: 1;
  pointer-events: none;
}
.video-bg-iframe {
  position: absolute;
  top: 50%; left: 50%;
  width: 100vw;
  height: 56.25vw;
  min-height: 100%;
  min-width: 177.78vh;
  transform: translate(-50%, -50%);
  border: 0;
  pointer-events: none;
}
.video-bg-local {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  pointer-events: none;
}
.hero-slide.video-slide::before { z-index: 2; }
.hero-slide.video-slide .container { position: relative; z-index: 3; }
.video-slide-badge {
  position: absolute;
  bottom: 80px; right: 24px;
  background: rgba(0,0,0,0.45);
  backdrop-filter: blur(6px);
  color: white;
  font-size: 0.72rem;
  padding: 4px 10px;
  border-radius: 20px;
  z-index: 4;
  letter-spacing: 0.05em;
  display: flex; align-items: center; gap: 6px;
}

/* Stats bar */
.stats-bar {
  background: var(--primary);
  padding: 20px 0;
}
.stat-item {
  text-align: center;
  color: white;
  padding: 10px;
  border-right: 1px solid rgba(255,255,255,0.15);
}
.stat-item:last-child { border-right: none; }
.stat-number {
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 700;
  color: var(--secondary);
  line-height: 1;
}
.stat-label { font-size: 0.78rem; opacity: 0.8; text-transform: uppercase; letter-spacing: 1px; margin-top: 4px; }

/* ---- SECTION STYLES ---- */
section { padding: 80px 0; }
.section-header { margin-bottom: 50px; }
.section-badge {
  display: inline-block;
  background: rgba(200,168,75,0.1);
  color: var(--secondary);
  padding: 5px 18px;
  border-radius: 25px;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 0.8rem;
  border: 1px solid rgba(200,168,75,0.3);
}
.section-title {
  font-size: clamp(1.6rem, 3vw, 2.5rem);
  color: var(--primary);
  margin-bottom: 1rem;
}
.section-divider {
  width: 60px; height: 3px;
  background: var(--secondary);
  border-radius: 2px;
  margin: 0 auto 1rem;
}
.section-divider.left { margin: 0 0 1rem; }
.section-subtitle { color: var(--text-muted); font-size: 1rem; max-width: 600px; }

/* ---- NEWS TICKER ---- */
.news-ticker {
  background: white;
  border-bottom: 1px solid #eee;
  padding: 10px 0;
  overflow: hidden;
}
.ticker-label {
  background: var(--secondary);
  color: white;
  padding: 4px 16px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  white-space: nowrap;
  border-radius: 0 4px 4px 0;
}
.ticker-wrap { overflow: hidden; flex: 1; }
.ticker-items {
  display: flex;
  animation: ticker 30s linear infinite;
  white-space: nowrap;
}
.ticker-item {
  padding: 0 40px;
  font-size: 0.85rem;
  color: var(--text-dark);
}
.ticker-item::before {
  content: '●';
  color: var(--secondary);
  margin-right: 10px;
  font-size: 0.6rem;
}
@keyframes ticker { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ---- ABOUT SECTION ---- */
.about-section { background: white; }
.about-image-wrap { position: relative; }
.about-image-wrap img {
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  width: 100%;
  object-fit: cover;
  height: 450px;
}
.about-badge {
  position: absolute;
  bottom: 30px;
  right: -20px;
  background: var(--secondary);
  color: white;
  padding: 20px 25px;
  border-radius: var(--radius);
  text-align: center;
  box-shadow: var(--shadow-md);
}
.about-badge .years { font-size: 2.5rem; font-weight: 700; line-height: 1; font-family: var(--font-heading); }
.about-badge .years-label { font-size: 0.8rem; text-transform: uppercase; letter-spacing: 1px; }
.about-features { margin: 1.5rem 0; display: flex; flex-direction: column; gap: 12px; }
.about-feature {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px 16px;
  background: var(--bg-light);
  border-radius: var(--radius-sm);
  border-left: 3px solid var(--secondary);
}
.about-feature-icon {
  width: 40px; height: 40px;
  background: var(--primary);
  color: white;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.9rem;
  flex-shrink: 0;
}
.about-feature h6 { font-size: 0.9rem; margin-bottom: 2px; color: var(--primary); }
.about-feature p { font-size: 0.8rem; color: var(--text-muted); margin: 0; }

/* ---- PILLARS ---- */
.pillars-section { background: var(--bg-light); }
.pillar-card {
  background: white;
  border-radius: var(--radius);
  padding: 35px 25px;
  text-align: center;
  transition: var(--transition);
  border: 1px solid transparent;
  height: 100%;
  position: relative;
  overflow: hidden;
}
.pillar-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: var(--secondary);
  transform: scaleX(0);
  transition: var(--transition);
}
.pillar-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-md); }
.pillar-card:hover::before { transform: scaleX(1); }
.pillar-icon {
  width: 80px; height: 80px;
  background: var(--primary);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 2rem;
  color: white;
  margin: 0 auto 1.5rem;
  transition: var(--transition);
}
.pillar-card:hover .pillar-icon { background: var(--secondary); }
.pillar-card h4 { font-size: 1.1rem; color: var(--primary); margin-bottom: 0.8rem; }
.pillar-card p { font-size: 0.88rem; color: var(--text-muted); }

/* ---- NEWS & EVENTS ---- */
.news-section { background: white; }
.news-card {
  display: flex;
  gap: 16px;
  padding: 16px;
  border-radius: var(--radius-sm);
  background: var(--bg-light);
  transition: var(--transition);
  border-left: 4px solid var(--secondary);
  margin-bottom: 16px;
}
.news-card:hover { transform: translateX(4px); box-shadow: var(--shadow-sm); background: white; }
.news-date-box {
  text-align: center;
  background: var(--primary);
  color: white;
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  min-width: 56px;
  flex-shrink: 0;
}
.news-date-box .day { font-size: 1.4rem; font-weight: 700; line-height: 1; }
.news-date-box .month { font-size: 0.65rem; text-transform: uppercase; letter-spacing: 1px; opacity: 0.85; }
.news-body h6 { font-size: 0.88rem; color: var(--text-dark); margin-bottom: 4px; line-height: 1.4; }
.news-body p { font-size: 0.78rem; color: var(--text-muted); margin: 0; }
.news-body a { color: var(--primary); font-size: 0.78rem; font-weight: 600; }

.event-card {
  background: white;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  height: 100%;
}
.event-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.event-card-img {
  height: 200px;
  background: var(--primary);
  position: relative;
  overflow: hidden;
}
.event-card-img img { width: 100%; height: 100%; object-fit: cover; }
.event-card-img .no-image-placeholder {
  display: flex; align-items: center; justify-content: center;
  height: 100%; font-size: 3rem; color: rgba(255,255,255,0.3);
}
.event-date-badge {
  position: absolute;
  top: 16px; left: 16px;
  background: var(--secondary);
  color: white;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  text-align: center;
  font-size: 0.8rem;
}
.event-date-badge .day { font-size: 1.4rem; font-weight: 700; line-height: 1; display: block; }
.event-card-body { padding: 20px; }
.event-card-body h5 { font-size: 1rem; color: var(--primary); margin-bottom: 8px; }
.event-card-body p { font-size: 0.83rem; color: var(--text-muted); margin-bottom: 12px; }
.event-meta span { font-size: 0.78rem; color: var(--text-muted); margin-right: 12px; }
.event-meta i { color: var(--secondary); margin-right: 4px; }

/* ---- GALLERY ---- */
.gallery-section { background: var(--bg-light); }
.gallery-filter { margin-bottom: 30px; display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; }
.filter-btn {
  padding: 8px 22px;
  border-radius: 25px;
  border: 2px solid var(--primary);
  background: transparent;
  color: var(--primary);
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
}
.filter-btn:hover, .filter-btn.active {
  background: var(--primary);
  color: white;
}
.gallery-grid { columns: 4; gap: 12px; }
.gallery-item {
  break-inside: avoid;
  margin-bottom: 12px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  position: relative;
  cursor: pointer;
}
.gallery-item img {
  width: 100%;
  display: block;
  transition: transform 0.4s ease;
}
.gallery-item:hover img { transform: scale(1.05); }
.gallery-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.72), transparent);
  opacity: 0;
  transition: var(--transition);
  display: flex; align-items: flex-end;
  padding: 16px;
  color: white;
  font-size: 0.85rem;
  font-weight: 500;
}
.gallery-item:hover .gallery-overlay { opacity: 1; }
.gallery-overlay-icon {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%) scale(0);
  color: white;
  font-size: 2rem;
  transition: var(--transition);
}
.gallery-item:hover .gallery-overlay-icon { transform: translate(-50%, -50%) scale(1); }
.gallery-no-image {
  height: 200px;
  background: var(--primary);
  display: flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,0.3);
  font-size: 3rem;
}

/* ---- TESTIMONIALS ---- */
.testimonials-section {
  background: var(--primary);
  position: relative;
  overflow: hidden;
}
.testimonials-section::before {
  content: '"';
  position: absolute;
  top: -50px; left: 30px;
  font-size: 30rem;
  color: rgba(255,255,255,0.03);
  font-family: var(--font-heading);
  line-height: 1;
}
.testimonials-section .section-title,
.testimonials-section .section-badge { color: white !important; border-color: rgba(255,255,255,0.3) !important; background: rgba(255,255,255,0.1) !important; }
.testimonials-section .section-subtitle { color: rgba(255,255,255,0.75) !important; }
.testimonial-card {
  background: rgba(255,255,255,0.07);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius);
  padding: 30px;
  color: white;
  transition: var(--transition);
  height: 100%;
}
.testimonial-card:hover { background: rgba(255,255,255,0.12); transform: translateY(-4px); }
.testimonial-quote { font-size: 2rem; color: var(--secondary); line-height: 1; margin-bottom: 1rem; }
.testimonial-text { font-size: 0.9rem; line-height: 1.8; opacity: 0.9; margin-bottom: 1.5rem; font-style: italic; }
.testimonial-author { display: flex; align-items: center; gap: 12px; }
.testimonial-avatar {
  width: 50px; height: 50px;
  background: var(--secondary);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-heading);
  font-weight: 700;
  color: white;
  font-size: 1.1rem;
  overflow: hidden;
}
.testimonial-avatar img { width: 100%; height: 100%; object-fit: cover; }
.testimonial-name { font-weight: 700; font-size: 0.92rem; }
.testimonial-sub { font-size: 0.78rem; opacity: 0.7; }
.testimonial-stars { color: var(--secondary); font-size: 0.8rem; margin-top: 2px; }

/* ---- ACHIEVEMENTS ---- */
.achievements-section { background: white; }
.achievement-card {
  text-align: center;
  padding: 30px 20px;
  border-radius: var(--radius);
  background: var(--bg-light);
  transition: var(--transition);
  border: 1px solid transparent;
  height: 100%;
}
.achievement-card:hover { box-shadow: var(--shadow-md); border-color: var(--secondary); background: white; transform: translateY(-4px); }
.achievement-icon {
  width: 70px; height: 70px;
  background: var(--secondary);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.8rem;
  color: white;
  margin: 0 auto 1rem;
}
.achievement-card img {
  width: 70px; height: 70px;
  object-fit: contain;
  margin: 0 auto 1rem;
  display: block;
}
.achievement-year {
  display: inline-block;
  background: var(--primary);
  color: white;
  padding: 2px 10px;
  border-radius: 12px;
  font-size: 0.72rem;
  margin-bottom: 10px;
}
.achievement-card h5 { font-size: 0.95rem; color: var(--primary); margin-bottom: 8px; }
.achievement-card p { font-size: 0.82rem; color: var(--text-muted); margin: 0; }

/* ---- CTA SECTION ---- */
.cta-section {
  background: var(--secondary);
  padding: 60px 0;
  text-align: center;
  color: white;
}
.cta-section h2 { font-size: clamp(1.6rem, 3vw, 2.5rem); margin-bottom: 1rem; }
.cta-section p { font-size: 1rem; opacity: 0.9; margin-bottom: 2rem; }
.btn-cta-white {
  background: white;
  color: var(--secondary) !important;
  border: 2px solid white;
  padding: 12px 32px;
  border-radius: 30px;
  font-weight: 700;
  font-size: 0.95rem;
  transition: var(--transition);
}
.btn-cta-white:hover { background: transparent; color: white !important; transform: translateY(-2px); }
.btn-cta-outline {
  background: transparent;
  color: white !important;
  border: 2px solid rgba(255,255,255,0.6);
  padding: 12px 32px;
  border-radius: 30px;
  font-weight: 700;
  font-size: 0.95rem;
  transition: var(--transition);
}
.btn-cta-outline:hover { background: rgba(255,255,255,0.15); transform: translateY(-2px); }

/* ---- PRINCIPAL MESSAGE ---- */
.principal-section { background: var(--bg-cream); }
.principal-image {
  width: 200px; height: 200px;
  border-radius: 50%;
  object-fit: cover;
  border: 5px solid var(--secondary);
  box-shadow: var(--shadow-md);
}
.principal-placeholder {
  width: 200px; height: 200px;
  border-radius: 50%;
  background: var(--primary);
  display: flex; align-items: center; justify-content: center;
  font-size: 4rem; color: rgba(255,255,255,0.4);
  border: 5px solid var(--secondary);
  margin: 0 auto;
}
.quote-icon { color: var(--secondary); font-size: 3rem; line-height: 1; }
.principal-name { font-size: 1.2rem; color: var(--primary); margin-bottom: 2px; }
.principal-designation { color: var(--secondary); font-size: 0.88rem; font-weight: 600; }
.principal-message-text {
  font-size: 0.95rem;
  line-height: 1.9;
  color: #4a5568;
  font-style: italic;
}

/* ---- QUICK LINKS ---- */
.quick-links-section { background: var(--primary); padding: 50px 0; }
.quick-link-item {
  text-align: center;
  padding: 20px 15px;
  color: white;
  border-radius: var(--radius-sm);
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.1);
  transition: var(--transition);
  cursor: pointer;
}
.quick-link-item:hover {
  background: rgba(255,255,255,0.15);
  transform: translateY(-4px);
  border-color: var(--secondary);
}
.quick-link-item i { font-size: 2rem; color: var(--secondary); margin-bottom: 10px; display: block; }
.quick-link-item span { font-size: 0.82rem; font-weight: 500; display: block; }

/* ---- PAGE HERO ---- */
.page-hero {
  background: var(--primary);
  padding: 80px 0 50px;
  color: white;
  position: relative;
  overflow: hidden;
}
.page-hero::before {
  content: '';
  position: absolute;
  right: -100px; top: -100px;
  width: 400px; height: 400px;
  border-radius: 50%;
  border: 60px solid rgba(255,255,255,0.04);
}
.page-hero::after {
  content: '';
  position: absolute;
  right: 100px; top: 50px;
  width: 200px; height: 200px;
  border-radius: 50%;
  border: 30px solid rgba(200,168,75,0.1);
}
.page-hero h1 { font-size: clamp(2rem, 4vw, 3rem); margin-bottom: 0.5rem; }
.page-hero .breadcrumb-item, .page-hero .breadcrumb-item a { color: rgba(255,255,255,0.75); font-size: 0.85rem; }
.page-hero .breadcrumb-item.active { color: var(--secondary); }
.page-hero .breadcrumb-divider { color: rgba(255,255,255,0.4); }

/* ---- CARD COMMON ---- */
.card-premium {
  border: none;
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  overflow: hidden;
}
.card-premium:hover { box-shadow: var(--shadow-md); transform: translateY(-6px); }

/* ---- FACULTY ---- */
.faculty-card {
  text-align: center;
  padding: 25px 15px;
  border-radius: var(--radius);
  background: white;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  height: 100%;
}
.faculty-card:hover { box-shadow: var(--shadow-md); transform: translateY(-6px); }
.faculty-photo {
  width: 100px; height: 100px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--secondary);
  margin: 0 auto 1rem;
  display: block;
}
.faculty-placeholder {
  width: 100px; height: 100px;
  border-radius: 50%;
  background: var(--primary);
  display: flex; align-items: center; justify-content: center;
  font-size: 2rem; color: rgba(255,255,255,0.5);
  border: 3px solid var(--secondary);
  margin: 0 auto 1rem;
}
.faculty-card h5 { font-size: 0.95rem; color: var(--primary); margin-bottom: 4px; }
.faculty-card .designation { font-size: 0.8rem; color: var(--secondary); font-weight: 600; }
.faculty-card .department { font-size: 0.78rem; color: var(--text-muted); }

/* ---- ADMISSION PAGE ---- */
.admission-step {
  text-align: center;
  padding: 30px 20px;
  position: relative;
}
.step-number {
  width: 60px; height: 60px;
  background: var(--secondary);
  color: white;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem;
  font-weight: 700;
  margin: 0 auto 1.2rem;
  position: relative;
  z-index: 1;
}
.step-connector {
  position: absolute;
  top: 60px;
  right: -50%;
  width: 100%;
  height: 2px;
  background: var(--secondary);
  z-index: 0;
}
.admission-step:last-child .step-connector { display: none; }

/* ---- CONTACT ---- */
.contact-info-card {
  padding: 25px;
  border-radius: var(--radius);
  background: white;
  box-shadow: var(--shadow-sm);
  text-align: center;
  transition: var(--transition);
}
.contact-info-card:hover { box-shadow: var(--shadow-md); transform: translateY(-4px); }
.contact-icon {
  width: 60px; height: 60px;
  background: var(--primary);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.4rem;
  color: white;
  margin: 0 auto 1rem;
}
.contact-form-card { background: white; border-radius: var(--radius); box-shadow: var(--shadow-sm); padding: 35px; }
.form-control, .form-select {
  border: 2px solid #e9ecef;
  border-radius: var(--radius-sm);
  padding: 10px 16px;
  font-size: 0.88rem;
  transition: var(--transition);
}
.form-control:focus, .form-select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(26,58,107,0.1);
}
.btn-submit {
  background: var(--primary);
  color: white;
  border: none;
  padding: 12px 32px;
  border-radius: 30px;
  font-weight: 600;
  font-size: 0.9rem;
  transition: var(--transition);
}
.btn-submit:hover { transform: translateY(-2px); box-shadow: 0 8px 25px rgba(26,58,107,0.3); }

/* ---- FOOTER ---- */
.site-footer { background: #0f1f3d; color: rgba(255,255,255,0.7); }
.footer-top { padding: 60px 0 40px; }
.footer-school-name { font-family: var(--font-heading); color: white; font-size: 1.1rem; font-weight: 700; }
.footer-school-tag { font-size: 0.72rem; color: var(--secondary); letter-spacing: 0.5px; }
.footer-about { font-size: 0.85rem; line-height: 1.8; margin: 1rem 0; opacity: 0.8; }
.footer-social { display: flex; gap: 10px; }
.footer-social a {
  width: 36px; height: 36px;
  background: rgba(255,255,255,0.08);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,0.6);
  font-size: 0.85rem;
  transition: var(--transition);
}
.footer-social a:hover { background: var(--secondary); color: white; transform: translateY(-3px); }
.footer-heading { font-family: var(--font-heading); color: white; font-size: 1rem; font-weight: 600; margin-bottom: 1.2rem; padding-bottom: 0.5rem; border-bottom: 2px solid rgba(200,168,75,0.3); }
.footer-links { list-style: none; padding: 0; margin: 0; }
.footer-links li { margin-bottom: 8px; }
.footer-links a { color: rgba(255,255,255,0.65); font-size: 0.85rem; transition: var(--transition); }
.footer-links a:hover { color: var(--secondary); padding-left: 6px; }
.footer-contact-list { list-style: none; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.footer-contact-list li { display: flex; gap: 12px; align-items: flex-start; }
.footer-contact-list i { color: var(--secondary); margin-top: 3px; font-size: 0.9rem; flex-shrink: 0; }
.footer-contact-list a, .footer-contact-list span { color: rgba(255,255,255,0.7); font-size: 0.85rem; }
.footer-contact-list a:hover { color: var(--secondary); }
/* .logo-placeholder-sm removed — replaced by .nav-logo-wrap */
.btn-footer-cta {
  background: var(--secondary);
  color: white;
  border-radius: 25px;
  padding: 10px 24px;
  font-size: 0.85rem;
  font-weight: 600;
  transition: var(--transition);
  display: inline-block;
}
.btn-footer-cta:hover { background: #b8962a; color: white; transform: translateY(-2px); }
.footer-bottom {
  background: rgba(0,0,0,0.3);
  padding: 15px 0;
  font-size: 0.8rem;
}
.footer-bottom a { color: var(--secondary); }

/* ---- CHATBOT ---- */
.chatbot-wrap {
  position: fixed;
  bottom: 90px;
  right: 24px;
  z-index: 9999;
  font-family: var(--font-body), sans-serif;
}
/* Toggle Button */
.chatbot-toggle {
  width: 56px; height: 56px;
  border-radius: 50%;
  background: var(--primary);
  color: white;
  border: none;
  cursor: pointer;
  font-size: 1.4rem;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 6px 24px rgba(26,58,107,0.4);
  transition: all 0.3s;
  position: relative;
}
.chatbot-toggle:hover { background: var(--secondary); transform: scale(1.08); }
.chatbot-badge {
  position: absolute;
  top: -4px; right: -4px;
  background: var(--accent);
  color: white;
  border-radius: 50%;
  width: 20px; height: 20px;
  font-size: 0.7rem;
  font-weight: 700;
  display: none;
  align-items: center; justify-content: center;
  border: 2px solid white;
  animation: badgePulse 1.5s infinite;
}
@keyframes badgePulse {
  0%,100% { transform: scale(1); }
  50%      { transform: scale(1.2); }
}
/* Chat Window */
.chatbot-window {
  position: absolute;
  bottom: 68px; right: 0;
  width: 340px;
  background: white;
  border-radius: 18px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.18);
  overflow: hidden;
  display: none;
  flex-direction: column;
  transform: scale(0.9) translateY(10px);
  opacity: 0;
  transform-origin: bottom right;
  transition: all 0.25s cubic-bezier(0.34,1.56,0.64,1);
}
.chatbot-window.active {
  display: flex;
  transform: scale(1) translateY(0);
  opacity: 1;
}
/* Header */
.chatbot-header {
  background: var(--primary);
  padding: 14px 16px;
  display: flex; align-items: center; justify-content: space-between;
}
.chatbot-header-info { display: flex; align-items: center; gap: 10px; }
.chatbot-avatar {
  width: 38px; height: 38px;
  background: rgba(255,255,255,0.15);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: white; font-size: 1rem;
}
.chatbot-title { color: white; font-weight: 700; font-size: 0.88rem; }
.chatbot-status { display: flex; align-items: center; gap: 5px; font-size: 0.72rem; color: rgba(255,255,255,0.75); }
.chatbot-dot {
  width: 7px; height: 7px;
  background: #2ecc71;
  border-radius: 50%;
  animation: dotBlink 1.8s infinite;
}
@keyframes dotBlink { 0%,100% { opacity: 1; } 50% { opacity: 0.4; } }
.chatbot-close-btn {
  background: rgba(255,255,255,0.15);
  border: none; color: white;
  width: 28px; height: 28px;
  border-radius: 50%;
  cursor: pointer; font-size: 0.8rem;
  display: flex; align-items: center; justify-content: center;
  transition: background 0.2s;
}
.chatbot-close-btn:hover { background: rgba(255,255,255,0.3); }
/* Messages */
.chatbot-messages {
  padding: 14px;
  height: 320px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
  background: #f8f9fb;
  scroll-behavior: smooth;
}
.chatbot-messages::-webkit-scrollbar { width: 4px; }
.chatbot-messages::-webkit-scrollbar-thumb { background: #ddd; border-radius: 4px; }
.chatbot-msg { display: flex; }
.chatbot-msg.bot { justify-content: flex-start; }
.chatbot-msg.user { justify-content: flex-end; }
.chatbot-bubble {
  max-width: 82%;
  padding: 10px 14px;
  border-radius: 16px;
  font-size: 0.82rem;
  line-height: 1.6;
}
.chatbot-msg.bot .chatbot-bubble {
  background: white;
  color: #333;
  border-bottom-left-radius: 4px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.08);
}
.chatbot-msg.user .chatbot-bubble {
  background: var(--primary);
  color: white;
  border-bottom-right-radius: 4px;
}
.chatbot-bubble a { color: var(--secondary); text-decoration: underline; }
.chatbot-msg.user .chatbot-bubble a { color: rgba(255,255,255,0.85); }
/* Quick buttons */
.chatbot-quick-btns {
  display: flex; flex-wrap: wrap; gap: 6px;
  padding: 4px 0 2px;
}
.chatbot-quick-btns button {
  background: white;
  border: 1.5px solid var(--primary);
  color: var(--primary);
  padding: 5px 11px;
  border-radius: 20px;
  font-size: 0.76rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}
.chatbot-quick-btns button:hover {
  background: var(--primary);
  color: white;
}
/* Typing indicator */
.chatbot-typing { display: flex; align-items: center; gap: 4px; padding: 12px 14px; }
.chatbot-typing span {
  width: 7px; height: 7px;
  background: #bbb;
  border-radius: 50%;
  animation: typingBounce 1.2s infinite;
  display: inline-block;
}
.chatbot-typing span:nth-child(2) { animation-delay: 0.2s; }
.chatbot-typing span:nth-child(3) { animation-delay: 0.4s; }
@keyframes typingBounce {
  0%,60%,100% { transform: translateY(0); }
  30%          { transform: translateY(-6px); }
}
/* Input */
.chatbot-input-wrap {
  display: flex; align-items: center;
  padding: 10px 12px;
  border-top: 1px solid #eee;
  background: white;
  gap: 8px;
}
.chatbot-input {
  flex: 1;
  border: 1.5px solid #e0e0e0;
  border-radius: 20px;
  padding: 8px 14px;
  font-size: 0.82rem;
  outline: none;
  transition: border-color 0.2s;
  font-family: var(--font-body), sans-serif;
}
.chatbot-input:focus { border-color: var(--primary); }
.chatbot-send {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: var(--primary);
  color: white;
  border: none;
  cursor: pointer;
  font-size: 0.85rem;
  display: flex; align-items: center; justify-content: center;
  transition: background 0.2s;
  flex-shrink: 0;
}
.chatbot-send:hover { background: var(--secondary); }

/* Mobile */
@media (max-width: 480px) {
  .chatbot-window { width: calc(100vw - 32px); right: 0; }
  .chatbot-wrap { right: 16px; bottom: 80px; }
}

/* ---- BACK TO TOP ---- */
.back-to-top {
  position: fixed;
  bottom: 30px; right: 30px;
  width: 44px; height: 44px;
  background: var(--primary);
  color: white;
  border: none;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  box-shadow: var(--shadow-md);
  cursor: pointer;
  opacity: 0;
  transform: translateY(20px);
  transition: var(--transition);
  z-index: 999;
}
.back-to-top.visible { opacity: 1; transform: translateY(0); }
.back-to-top:hover { background: var(--secondary); transform: translateY(-3px); }

/* ---- UTILITIES ---- */
.text-primary-custom { color: var(--primary) !important; }
.text-secondary-custom { color: var(--secondary) !important; }
.bg-primary-custom { background-color: var(--primary) !important; }
.bg-secondary-custom { background-color: var(--secondary) !important; }
.btn-primary-custom {
  background: var(--primary); color: white;
  border: 2px solid var(--primary);
  border-radius: 25px; padding: 8px 22px;
  font-weight: 600; font-size: 0.88rem;
  transition: var(--transition);
}
.btn-primary-custom:hover { background: transparent; color: var(--primary); transform: translateY(-2px); }
.btn-secondary-custom {
  background: var(--secondary); color: white;
  border: 2px solid var(--secondary);
  border-radius: 25px; padding: 8px 22px;
  font-weight: 600; font-size: 0.88rem;
  transition: var(--transition);
}
.btn-secondary-custom:hover { background: transparent; color: var(--secondary); transform: translateY(-2px); }

/* ---- LIGHTBOX ---- */
.lightbox-overlay {
  display: none;
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.92);
  z-index: 9999;
  align-items: center; justify-content: center;
}
.lightbox-overlay.active { display: flex; }
.lightbox-img { max-width: 90vw; max-height: 85vh; border-radius: var(--radius-sm); }
.lightbox-close {
  position: absolute; top: 20px; right: 25px;
  color: white; font-size: 2rem; cursor: pointer;
  transition: var(--transition);
}
.lightbox-close:hover { color: var(--secondary); }

/* ---- RESPONSIVE ---- */
@media (max-width: 991px) {
  section { padding: 60px 0; }
  .hero-slide { min-height: 450px; }
  .gallery-grid { columns: 2; }
  .about-badge { right: 0; }
}
@media (max-width: 767px) {
  section { padding: 50px 0; }
  .hero-slide { min-height: 380px; }
  .hero-content h1 { font-size: 1.8rem; }
  .hero-content p { font-size: 0.9rem; }
  .gallery-grid { columns: 2; }
  .stat-number { font-size: 1.5rem; }
  .about-badge { position: static; margin-top: 20px; display: inline-block; }
  .main-navbar .nav-link::after { display: none; }
  .main-navbar .nav-link { padding: 0.5rem 1rem !important; }
}
@media (max-width: 480px) {
  .gallery-grid { columns: 1; }
  .hero-btns { flex-direction: column; }
}
