/* ============================================================
   CSS VARIABLES & RESET
============================================================ */
:root {
  --navy: #0A1628;
  --navy-mid: #132241;
  --blue: #1A4F9E;
  --blue-light: #2E6AC9;
  --accent: #E8A020;
  --accent-light: #F5C055;
  --red: #C0392B;
  --white: #FFFFFF;
  --off-white: #F8FAFD;
  --gray-50: #F0F4FA;
  --gray-100: #E4ECF7;
  --gray-300: #A8BBDA;
  --gray-500: #5C7499;
  --gray-700: #2D4066;
  --text: #1A2840;
  --text-soft: #4A6080;
  --border: #D8E4F5;
  --shadow-sm: 0 2px 12px rgba(10,22,40,0.07);
  --shadow-md: 0 6px 30px rgba(10,22,40,0.11);
  --shadow-lg: 0 16px 60px rgba(10,22,40,0.15);
  --radius: 12px;
  --radius-sm: 6px;
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Nunito', sans-serif;
  background: var(--white);
  color: var(--text);
  overflow-x: hidden;
  line-height: 1.6;
}

img { display: block; max-width: 100%; }

/* ============================================================
   UTILITY CLASSES
============================================================ */
.container { max-width: 1200px; margin: 0 auto; padding: 0 5%; }
.section-pad { padding: 20px 0; }

.tag {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 11.5px; font-weight: 700; letter-spacing: 2.5px;
  text-transform: uppercase; color: var(--blue);
  margin-bottom: 14px;
}
.tag::before {
  content: ''; width: 22px; height: 2px;
  background: var(--accent); border-radius: 2px;
}

.section-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(28px, 4vw, 46px);
  font-weight: 700; line-height: 1.15;
  color: var(--navy); margin-bottom: 16px;
}
.section-title span { color: var(--blue); font-style: italic; }

.section-sub {
  font-size: 15.5px; color: var(--text-soft);
  max-width: 520px; line-height: 1.8; margin-bottom: 50px;
}

.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 13px 28px; border-radius: var(--radius-sm);
  font-family: 'Nunito', sans-serif; font-size: 14px;
  font-weight: 700; cursor: pointer; transition: all 0.25s;
  text-decoration: none; border: none; letter-spacing: 0.3px;
}
.btn-primary {
  background: var(--blue); color: var(--white);
  box-shadow: 0 4px 20px rgba(26,79,158,0.35);
}
.btn-primary:hover {
  background: var(--blue-light); transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(26,79,158,0.45);
}
.btn-white {
  background: var(--white); color: var(--blue);
  box-shadow: 0 4px 20px rgba(255,255,255,0.2);
}
.btn-white:hover { background: var(--accent); color: var(--navy); transform: translateY(-2px); }
.btn-outline {
  background: transparent; color: var(--blue);
  border: 2px solid var(--blue);
}
.btn-outline:hover { background: var(--blue); color: var(--white); }
.btn-accent { background: var(--accent); color: var(--navy); }
.btn-accent:hover { background: var(--accent-light); transform: translateY(-2px); box-shadow: 0 8px 28px rgba(232,160,32,0.4); }

/* Arrow icon */
.arrow { font-size: 16px; transition: transform 0.2s; }
.btn:hover .arrow { transform: translateX(4px); }

/* Reveal animation */
.reveal {
  opacity: 0; transform: translateY(28px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}
.reveal.up { opacity: 1; transform: translateY(0); }
.reveal-left { opacity: 0; transform: translateX(-30px); transition: opacity 0.65s ease, transform 0.65s ease; }
.reveal-left.up { opacity: 1; transform: translateX(0); }
.reveal-right { opacity: 0; transform: translateX(30px); transition: opacity 0.65s ease, transform 0.65s ease; }
.reveal-right.up { opacity: 1; transform: translateX(0); }

/* ============================================================
   TOP BAR
============================================================ */
.topbar {
  background: var(--navy);
  padding: 9px 5%;
  display: flex; align-items: center; justify-content: space-between;
  font-size: 12.5px; color: rgba(255,255,255,0.65);
  gap: 20px; flex-wrap: wrap;
}
.topbar-left { display: flex; gap: 24px; flex-wrap: wrap; }
.topbar-item { display: flex; align-items: center; gap: 6px; }
.topbar-item span:first-child { color: var(--accent); }
.topbar-right { display: flex; gap: 16px; align-items: center; }
.topbar-right a {
  color: rgba(255,255,255,0.55); font-size: 13px;
  text-decoration: none; transition: color 0.2s;
}
.topbar-right a:hover { color: var(--accent); }
.topbar-divider { width: 1px; height: 14px; background: rgba(255,255,255,0.15); }

/* ============================================================
   NAVIGATION
============================================================ */
nav {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,0.97);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  transition: all 0.3s;
}
nav.shadow { box-shadow: var(--shadow-md); }

.nav-inner {
  max-width: 1200px; margin: 0 auto; padding: 0 5%;
  display: flex; align-items: center;
  justify-content: space-between; height: 70px;
}

.nav-logo { display: flex; align-items: center; gap: 13px; text-decoration: none; }
.logo-icon {
  width: 46px; height: 46px;
  background: linear-gradient(135deg, var(--navy), var(--blue));
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  position: relative; overflow: hidden;
}
.logo-icon::after {
  content: '🎓'; font-size: 22px; position: relative; z-index: 1;
}
.logo-text .logo-name {
  font-family: 'Playfair Display', serif;
  font-size: 20px; font-weight: 700;
  color: var(--navy); line-height: 1;
  display: block;
}
.logo-text .logo-tagline {
  font-size: 10.5px; color: var(--gray-500);
  letter-spacing: 1.5px; text-transform: uppercase;
  display: block; margin-top: 1px;
}

.nav-menu { display: flex; gap: 4px; list-style: none; }
.nav-menu > li { position: relative; }
.nav-menu > li > a {
  padding: 10px 14px; border-radius: var(--radius-sm);
  color: var(--text-soft); font-size: 14px; font-weight: 600;
  text-decoration: none; display: flex; align-items: center; gap: 4px;
  transition: all 0.2s; white-space: nowrap;
}
.nav-menu > li > a:hover { color: var(--blue); background: var(--gray-50); }
.nav-menu > li.active > a { color: var(--blue); }

.nav-actions { display: flex; align-items: center; gap: 10px; }
.nav-phone {
  font-size: 13px; font-weight: 700; color: var(--navy);
  display: flex; align-items: center; gap: 6px;
}
.nav-phone span { color: var(--accent); }

.hamburger {
  display: none; flex-direction: column; gap: 5px;
  background: none; border: none; cursor: pointer; padding: 4px;
}
.hamburger span {
  width: 24px; height: 2px; background: var(--navy);
  border-radius: 2px; transition: all 0.3s;
  display: block;
}
.hamburger.open span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.hamburger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.hamburger.open span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

.mobile-menu {
  display: none; position: absolute;
  top: 70px; left: 0; right: 0;
  background: var(--white); border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow-md); padding: 20px 5%;
  z-index: 99; flex-direction: column; gap: 4px;
}
.mobile-menu.open { display: flex; }
.mobile-menu a {
  padding: 12px 16px; border-radius: var(--radius-sm);
  color: var(--text); font-size: 15px; font-weight: 600;
  text-decoration: none; display: block; transition: all 0.2s;
  border-left: 3px solid transparent;
}
.mobile-menu a:hover { color: var(--blue); background: var(--gray-50); border-color: var(--blue); }

/* ============================================================
   HERO CAROUSEL
============================================================ */
.carousel { position: relative; overflow: hidden; }

.carousel-track {
  display: flex; transition: transform 0.7s cubic-bezier(0.77, 0, 0.175, 1);
}

.slide {
  min-width: 100%; position: relative;
  min-height: 88vh; display: flex; align-items: center;
  overflow: hidden;
}

.slide-bg {
  position: absolute; inset: 0; z-index: 0;
}

/* Slide backgrounds using CSS gradients + patterns */
.slide-1 .slide-bg {
  background:
    radial-gradient(ellipse 80% 70% at 70% 50%, rgba(26,79,158,0.4) 0%, transparent 60%),
    linear-gradient(135deg, #0A1628 0%, #132241 50%, #1A3A6E 100%);
}
.slide-2 .slide-bg {
  background:
    radial-gradient(ellipse 70% 80% at 30% 50%, rgba(232,160,32,0.2) 0%, transparent 60%),
    linear-gradient(135deg, #0D1F3C 0%, #1A3A6E 60%, #0A2850 100%);
}
.slide-3 .slide-bg {
  background:
    radial-gradient(ellipse 60% 70% at 80% 30%, rgba(46,106,201,0.3) 0%, transparent 60%),
    linear-gradient(160deg, #060F1E 0%, #0A1628 40%, #1A2E50 100%);
}

.slide-pattern {
  position: absolute; inset: 0; z-index: 1; opacity: 0.05;
  background-image:
    repeating-linear-gradient(0deg, var(--white) 0, var(--white) 1px, transparent 0, transparent 70px),
    repeating-linear-gradient(90deg, var(--white) 0, var(--white) 1px, transparent 0, transparent 70px);
}

.slide-deco {
  position: absolute; right: 0; top: 0; bottom: 0;
  width: 55%; z-index: 2; display: flex; align-items: center; justify-content: center;
}
.slide-deco-circle {
  width: 500px; height: 500px; border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.08);
  position: absolute;
  animation: deco-rotate 25s linear infinite;
}
.slide-deco-circle:nth-child(2) {
  width: 380px; height: 380px;
  border-color: rgba(232,160,32,0.12);
  animation-direction: reverse; animation-duration: 18s;
}
.slide-deco-circle:nth-child(3) {
  width: 260px; height: 260px;
  border-color: rgba(255,255,255,0.05);
  animation-duration: 12s;
}
.slide-deco-icon {
  font-size: 100px; position: relative; z-index: 3;
  filter: drop-shadow(0 0 60px rgba(26,79,158,0.5));
  animation: float-icon 4s ease-in-out infinite;
}

@keyframes deco-rotate { to { transform: rotate(360deg); } }
@keyframes float-icon {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-16px); }
}

.slide-content {
  position: relative; z-index: 3;
  max-width: 1200px; margin: 0 auto; padding: 0 5%;
  display: grid; grid-template-columns: 1fr 1fr; align-items: center;
  gap: 60px; width: 100%;
}

.slide-text { max-width: 580px; }

.slide-badge {
  display: inline-flex; align-items: center; gap: 10px;
  background: rgba(232,160,32,0.15);
  border: 1px solid rgba(232,160,32,0.35);
  color: var(--accent-light); font-size: 12px;
  font-weight: 700; letter-spacing: 2px; text-transform: uppercase;
  padding: 7px 16px; border-radius: 100px;
  margin-bottom: 24px;
}
.slide-badge-dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--accent); animation: blink 1.5s ease-in-out infinite;
}
@keyframes blink { 0%,100%{opacity:1} 50%{opacity:0.3} }

.slide-h1 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(32px, 4.5vw, 60px);
  font-weight: 800; line-height: 1.1;
  color: var(--white); margin-bottom: 20px;
}
.slide-h1 em { font-style: italic; color: var(--accent-light); }

.slide-p {
  font-size: 16px; color: rgba(255,255,255,0.65);
  line-height: 1.8; margin-bottom: 36px; max-width: 460px;
}

.slide-btns { display: flex; gap: 14px; flex-wrap: wrap; }

.slide-stats {
  display: flex; gap: 28px; margin-top: 44px;
  padding-top: 32px; border-top: 1px solid rgba(255,255,255,0.1);
  flex-wrap: wrap;
}
.slide-stat-num {
  font-family: 'Playfair Display', serif;
  font-size: 28px; font-weight: 700; color: var(--white);
  display: block; line-height: 1;
}
.slide-stat-label {
  font-size: 12px; color: rgba(255,255,255,0.45);
  letter-spacing: 1px; margin-top: 4px; display: block;
}

/* Carousel Controls */
.carousel-controls {
  position: absolute; bottom: 36px; left: 50%; transform: translateX(-50%);
  display: flex; align-items: center; gap: 16px; z-index: 10;
}
.carousel-dot {
  width: 8px; height: 8px; border-radius: 100px;
  background: rgba(255,255,255,0.3); cursor: pointer;
  transition: all 0.3s; border: none;
}
.carousel-dot.active {
  background: var(--accent); width: 28px;
}

.carousel-arrows {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 100%; z-index: 10; display: flex; justify-content: space-between;
  padding: 0 24px; pointer-events: none;
}
.carousel-btn {
  width: 50px; height: 50px; border-radius: 50%;
  background: rgba(255,255,255,0.1);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,0.2);
  color: var(--white); font-size: 20px;
  cursor: pointer; transition: all 0.25s;
  display: flex; align-items: center; justify-content: center;
  pointer-events: all;
}
.carousel-btn:hover {
  background: var(--accent); border-color: var(--accent);
  transform: scale(1.1); color: var(--navy);
}

/* Slide entry animations */
.slide.active .slide-badge { animation: slideIn 0.6s 0.1s both; }
.slide.active .slide-h1 { animation: slideIn 0.6s 0.25s both; }
.slide.active .slide-p { animation: slideIn 0.6s 0.4s both; }
.slide.active .slide-btns { animation: slideIn 0.6s 0.55s both; }
.slide.active .slide-stats { animation: slideIn 0.6s 0.7s both; }
.slide.active .slide-deco { animation: slideInRight 0.7s 0.2s both; }

@keyframes slideIn { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }
@keyframes slideInRight { from { opacity: 0; transform: translateX(40px); } to { opacity: 1; transform: translateX(0); } }

/* ============================================================
   QUICK STATS BAND
============================================================ */
.stats-band {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}
.stats-band-inner {
  max-width: 1200px; margin: 0 auto; padding: 0 5%;
  display: grid; grid-template-columns: repeat(4, 1fr);
}
.stat-band-item {
  padding: 32px 20px; text-align: center;
  border-right: 1px solid var(--border);
  transition: background 0.3s;
  position: relative; overflow: hidden;
}
.stat-band-item::before {
  content: ''; position: absolute;
  bottom: 0; left: 0; right: 0; height: 3px;
  background: var(--blue); transform: scaleX(0);
  transition: transform 0.3s; transform-origin: left;
}
.stat-band-item:hover::before { transform: scaleX(1); }
.stat-band-item:hover { background: var(--gray-50); }
.stat-band-item:last-child { border-right: none; }
.stat-band-num {
  font-family: 'Playfair Display', serif;
  font-size: 38px; font-weight: 700; color: var(--navy);
  line-height: 1; display: block;
}
.stat-band-emoji { font-size: 24px; margin-bottom: 6px; display: block; }
.stat-band-lbl {
  font-size: 12.5px; color: var(--gray-500);
  letter-spacing: 1.2px; text-transform: uppercase;
  font-weight: 700; margin-top: 6px; display: block;
}

/* ============================================================
   ABOUT SECTION
============================================================ */
.about { background: var(--white); }
.about-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 80px; align-items: center;
}
.about-visual { position: relative; }
.about-img-main {
  width: 100%; aspect-ratio: 5/6;
  background: linear-gradient(145deg, var(--navy-mid), var(--blue));
  border-radius: 16px; overflow: hidden;
  position: relative; box-shadow: var(--shadow-lg);
}
.about-img-main::before {
  content: ''; position: absolute; inset: 0;
  background:
    radial-gradient(circle at 40% 60%, rgba(26,79,158,0.6) 0%, transparent 60%),
    url("data:image/svg+xml,%3Csvg width='80' height='80' viewBox='0 0 80 80' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' stroke='rgba(255,255,255,0.05)' stroke-width='1'%3E%3Crect x='10' y='10' width='60' height='60' rx='5'/%3E%3C/g%3E%3C/svg%3E");
}
.about-img-content {
  position: absolute; inset: 0;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 16px;
}
.about-img-icon { font-size: 72px; filter: drop-shadow(0 0 30px rgba(26,79,158,0.5)); }
.about-img-text {
  font-family: 'Playfair Display', serif;
  font-size: 15px; color: rgba(255,255,255,0.4);
  letter-spacing: 3px; text-transform: uppercase; text-align: center;
  padding: 0 40px;
}

.about-badge-card {
  position: absolute; bottom: -24px; right: -24px;
  background: var(--white); border-radius: 14px;
  padding: 22px 24px; box-shadow: var(--shadow-lg);
  display: flex; align-items: center; gap: 16px;
  min-width: 200px;
}
.about-badge-circle {
  width: 52px; height: 52px; border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--accent-light));
  display: flex; align-items: center; justify-content: center;
  font-size: 24px; flex-shrink: 0;
}
.about-badge-num {
  font-family: 'Playfair Display', serif;
  font-size: 24px; font-weight: 700; color: var(--navy); line-height: 1;
}
.about-badge-lbl { font-size: 12px; color: var(--gray-500); margin-top: 2px; }

.about-badge-card-2 {
  position: absolute; top: 30px; left: -24px;
  background: var(--navy); border-radius: 14px;
  padding: 18px 20px; box-shadow: var(--shadow-lg);
  color: var(--white); text-align: center; min-width: 120px;
}
.about-badge-card-2 .num {
  font-family: 'Playfair Display', serif;
  font-size: 28px; font-weight: 700; color: var(--accent); display: block;
}
.about-badge-card-2 .lbl { font-size: 11px; color: rgba(255,255,255,0.55); margin-top: 3px; display: block; }

.about-text .section-sub { margin-bottom: 28px; }
.about-features { display: flex; flex-direction: column; gap: 18px; margin-bottom: 36px; }
.about-feature {
  display: flex; gap: 16px; align-items: flex-start;
  padding: 18px 20px; border-radius: var(--radius);
  border: 1px solid var(--border); transition: all 0.25s;
  background: var(--white);
}
.about-feature:hover { border-color: var(--blue); box-shadow: var(--shadow-sm); transform: translateX(4px); }
.about-feature-icon {
  width: 42px; height: 42px; border-radius: 10px;
  background: var(--gray-50); display: flex;
  align-items: center; justify-content: center; font-size: 20px; flex-shrink: 0;
}
.about-feature h4 { font-size: 14.5px; font-weight: 700; color: var(--navy); margin-bottom: 3px; }
.about-feature p { font-size: 13px; color: var(--text-soft); line-height: 1.6; }

/* ============================================================
   PROGRAMS SECTION
============================================================ */
.programs { background: var(--off-white); }
.programs-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px;
}
.program-card {
  background: var(--white); border-radius: 16px;
  border: 1px solid var(--border); overflow: hidden;
  transition: all 0.3s; position: relative;
}
.program-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg); border-color: transparent;
}
.program-card-top {
  height: 180px; position: relative;
  display: flex; align-items: center; justify-content: center;
}
.p-bg-1 { background: linear-gradient(135deg, #0A1628, #1A4F9E); }
.p-bg-2 { background: linear-gradient(135deg, #1A3A1A, #2E7D32); }
.p-bg-3 { background: linear-gradient(135deg, #2A0A1E, #880E4F); }
.p-bg-4 { background: linear-gradient(135deg, #1A2A0A, #558B2F); }
.p-bg-5 { background: linear-gradient(135deg, #1A1A0A, #F9A825); }
.p-bg-6 { background: linear-gradient(135deg, #0A1A2A, #0277BD); }
.program-icon-big { font-size: 52px; filter: drop-shadow(0 4px 12px rgba(0,0,0,0.3)); }
.program-ribbon {
  position: absolute; top: 14px; right: 14px;
  background: var(--accent); color: var(--navy);
  font-size: 10px; font-weight: 800; letter-spacing: 1px;
  padding: 4px 10px; border-radius: 100px; text-transform: uppercase;
}
.program-body { padding: 24px; }
.program-body h3 {
  font-family: 'Playfair Display', serif;
  font-size: 19px; font-weight: 700; color: var(--navy);
  margin-bottom: 8px;
}
.program-body p { font-size: 13.5px; color: var(--text-soft); line-height: 1.7; margin-bottom: 18px; }
.program-meta { display: flex; gap: 12px; flex-wrap: wrap; }
.program-tag-pill {
  font-size: 11px; font-weight: 700; padding: 4px 12px;
  border-radius: 100px; background: var(--gray-50); color: var(--gray-700);
  letter-spacing: 0.5px;
}
.program-card:hover .program-tag-pill { background: var(--gray-100); }

/* ============================================================
   NOTICE BOARD
============================================================ */
.notice-board { background: var(--white); }
.notice-board-grid {
  display: grid; grid-template-columns: 1.3fr 1fr; gap: 40px;
}
.notice-panel {
  background: var(--white); border-radius: 16px;
  border: 1px solid var(--border); overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.panel-header {
  background: var(--navy); padding: 18px 24px;
  display: flex; align-items: center; justify-content: space-between;
}
.panel-header h3 {
  font-family: 'Playfair Display', serif;
  font-size: 18px; font-weight: 700; color: var(--white);
  display: flex; align-items: center; gap: 10px;
}
.panel-header-icon { font-size: 20px; }
.panel-header a {
  font-size: 12px; color: rgba(255,255,255,0.55);
  text-decoration: none; transition: color 0.2s;
}
.panel-header a:hover { color: var(--accent); }

.notice-list { max-height: 360px; overflow-y: auto; }
.notice-list::-webkit-scrollbar { width: 4px; }
.notice-list::-webkit-scrollbar-track { background: var(--gray-50); }
.notice-list::-webkit-scrollbar-thumb { background: var(--gray-300); border-radius: 2px; }

.notice-item {
  display: flex; gap: 16px;
  padding: 18px 24px;
  border-bottom: 1px solid var(--border);
  transition: background 0.2s; cursor: pointer;
  text-decoration: none; color: inherit;
}
.notice-item:last-child { border-bottom: none; }
.notice-item:hover { background: var(--off-white); }
.notice-date {
  min-width: 52px; text-align: center;
  background: var(--gray-50); border-radius: 8px;
  padding: 8px 6px; height: fit-content;
}
.notice-date .day {
  font-family: 'Playfair Display', serif;
  font-size: 22px; font-weight: 700; color: var(--blue);
  display: block; line-height: 1;
}
.notice-date .month { font-size: 10px; color: var(--gray-500); font-weight: 700; text-transform: uppercase; letter-spacing: 1px; }
.notice-info h4 { font-size: 14px; font-weight: 700; color: var(--navy); margin-bottom: 4px; line-height: 1.4; }
.notice-info p { font-size: 12.5px; color: var(--text-soft); line-height: 1.5; }
.notice-badge {
  display: inline-block; margin-top: 6px;
  font-size: 10px; font-weight: 700; padding: 2px 8px;
  border-radius: 100px; text-transform: uppercase; letter-spacing: 0.5px;
}
.nb-new { background: rgba(26,79,158,0.12); color: var(--blue); }
.nb-urgent { background: rgba(192,57,43,0.12); color: var(--red); }
.nb-event { background: rgba(46,174,78,0.12); color: #2EA74E; }
.nb-result { background: rgba(232,160,32,0.15); color: #B07A0A; }

/* Events list */
.event-item {
  display: flex; gap: 16px; align-items: flex-start;
  padding: 18px 24px; border-bottom: 1px solid var(--border);
  transition: background 0.2s; cursor: pointer;
}
.event-item:last-child { border-bottom: none; }
.event-item:hover { background: var(--off-white); }
.event-color-bar { width: 4px; min-height: 60px; border-radius: 4px; flex-shrink: 0; }
.ec-blue { background: var(--blue); }
.ec-gold { background: var(--accent); }
.ec-green { background: #2EA74E; }
.ec-red { background: var(--red); }
.event-info h4 { font-size: 14px; font-weight: 700; color: var(--navy); margin-bottom: 4px; }
.event-info p { font-size: 12.5px; color: var(--text-soft); line-height: 1.5; }
.event-meta { display: flex; gap: 10px; margin-top: 6px; flex-wrap: wrap; }
.event-meta-tag {
  font-size: 11px; color: var(--gray-500);
  display: flex; align-items: center; gap: 4px;
}

/* ============================================================
   NEWS SECTION
============================================================ */
.news { background: var(--gray-50); }
.news-grid { display: grid; grid-template-columns: 1.8fr 1fr; gap: 28px; }

.news-featured {
  background: var(--white); border-radius: 16px;
  overflow: hidden; border: 1px solid var(--border);
  transition: all 0.3s; cursor: pointer;
}
.news-featured:hover { box-shadow: var(--shadow-lg); transform: translateY(-3px); }
.news-featured-img {
  height: 280px; position: relative;
  background: linear-gradient(135deg, #0A1628 0%, #1A4F9E 100%);
  overflow: hidden;
}
.news-featured-img::after {
  content: ''; position: absolute; inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='100' height='100' viewBox='0 0 100 100' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' stroke='rgba(255,255,255,0.05)' stroke-width='1'%3E%3Ccircle cx='50' cy='50' r='40'/%3E%3Ccircle cx='50' cy='50' r='25'/%3E%3C/g%3E%3C/svg%3E") center/contain;
  opacity: 0.3;
}
.news-featured-img-content {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center; font-size: 70px;
}
.news-cat-pill {
  position: absolute; top: 18px; left: 18px;
  background: var(--accent); color: var(--navy);
  font-size: 10px; font-weight: 800; letter-spacing: 1.5px;
  padding: 5px 12px; border-radius: 100px; text-transform: uppercase;
  z-index: 2;
}
.news-featured-body { padding: 28px; }
.news-featured-body h3 {
  font-family: 'Playfair Display', serif;
  font-size: 22px; font-weight: 700; color: var(--navy);
  margin-bottom: 12px; line-height: 1.3;
}
.news-featured-body p { font-size: 14px; color: var(--text-soft); line-height: 1.8; margin-bottom: 20px; }
.news-meta { display: flex; align-items: center; gap: 16px; font-size: 12.5px; color: var(--gray-500); }
.news-meta-dot { width: 4px; height: 4px; border-radius: 50%; background: var(--gray-300); }

.news-list { display: flex; flex-direction: column; gap: 16px; }
.news-card {
  background: var(--white); border-radius: 12px;
  border: 1px solid var(--border); padding: 18px;
  display: flex; gap: 16px; transition: all 0.25s; cursor: pointer;
}
.news-card:hover { box-shadow: var(--shadow-md); transform: translateX(4px); border-color: var(--blue); }
.news-card-img {
  width: 80px; height: 80px; border-radius: 10px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center; font-size: 32px;
}
.nc-bg-1 { background: linear-gradient(135deg, #1A3A6E, #2E6AC9); }
.nc-bg-2 { background: linear-gradient(135deg, #3A1A1A, #C0392B); }
.nc-bg-3 { background: linear-gradient(135deg, #1A3A1A, #2E7D32); }
.news-card-body h4 {
  font-family: 'Playfair Display', serif;
  font-size: 15px; font-weight: 700; color: var(--navy);
  margin-bottom: 6px; line-height: 1.3;
}
.news-card-body p { font-size: 12.5px; color: var(--text-soft); line-height: 1.6; }
.news-card-date { font-size: 11.5px; color: var(--gray-500); margin-top: 8px; display: block; }
.news-view-all {
  text-align: center; margin-top: 40px;
}

/* ============================================================
   TESTIMONIALS
============================================================ */
.testimonials { background: var(--navy); overflow: hidden; position: relative; }
.testimonials::before {
  content: ''; position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 60% 80% at 0% 50%, rgba(26,79,158,0.3) 0%, transparent 60%),
    radial-gradient(ellipse 50% 60% at 100% 50%, rgba(232,160,32,0.1) 0%, transparent 60%);
}
.testimonials .section-title { color: var(--white); }
.testimonials .tag { color: var(--accent-light); }
.testimonials .tag::before { background: var(--accent); }
.testimonials .section-sub { color: rgba(255,255,255,0.55); }

.testimonial-carousel { position: relative; overflow: hidden; }
.testimonial-track {
  display: flex; gap: 24px;
  transition: transform 0.6s cubic-bezier(0.77, 0, 0.175, 1);
}
.testimonial-card {
  min-width: calc(33.333% - 16px);
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 20px; padding: 32px 28px;
  backdrop-filter: blur(10px);
  transition: all 0.3s; position: relative;
  overflow: hidden;
}
.testimonial-card::before {
  content: '"'; position: absolute;
  top: -10px; right: 20px;
  font-family: 'Playfair Display', serif;
  font-size: 120px; font-weight: 700;
  color: rgba(232,160,32,0.1); line-height: 1;
}
.testimonial-card:hover {
  background: rgba(255,255,255,0.08);
  border-color: rgba(232,160,32,0.3);
  transform: translateY(-4px);
}
.testimonial-stars { margin-bottom: 16px; font-size: 16px; color: var(--accent); letter-spacing: 2px; }
.testimonial-text {
  font-family: 'Playfair Display', serif;
  font-size: 16px; font-style: italic;
  color: rgba(255,255,255,0.85);
  line-height: 1.8; margin-bottom: 24px;
}
.testimonial-author { display: flex; align-items: center; gap: 14px; }
.author-avatar {
  width: 50px; height: 50px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 22px; flex-shrink: 0;
  border: 2px solid rgba(232,160,32,0.3);
}
.avatar-bg-1 { background: linear-gradient(135deg, #1A4F9E, #2E6AC9); }
.avatar-bg-2 { background: linear-gradient(135deg, #880E4F, #C2185B); }
.avatar-bg-3 { background: linear-gradient(135deg, #2E7D32, #388E3C); }
.avatar-bg-4 { background: linear-gradient(135deg, #E65100, #F57C00); }
.avatar-bg-5 { background: linear-gradient(135deg, #4527A0, #7B1FA2); }
.author-name { font-size: 15px; font-weight: 700; color: var(--white); }
.author-role { font-size: 12px; color: rgba(255,255,255,0.4); margin-top: 2px; }
.author-batch {
  display: inline-block; margin-top: 4px;
  font-size: 10.5px; font-weight: 700; color: var(--accent);
  letter-spacing: 1px;
}

.testimonial-nav {
  display: flex; align-items: center; justify-content: center; gap: 16px;
  margin-top: 40px;
}
.t-dot {
  width: 8px; height: 8px; border-radius: 100px;
  background: rgba(255,255,255,0.2); cursor: pointer;
  transition: all 0.3s; border: none;
}
.t-dot.active { background: var(--accent); width: 26px; }
.t-btn {
  width: 44px; height: 44px; border-radius: 50%;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.15);
  color: var(--white); font-size: 18px; cursor: pointer;
  transition: all 0.25s;
  display: flex; align-items: center; justify-content: center;
}
.t-btn:hover { background: var(--accent); color: var(--navy); border-color: var(--accent); }

/* ============================================================
   CONTACT SECTION
============================================================ */
.contact { background: var(--white); }
.contact-grid {
  display: grid; grid-template-columns: 1fr 1.4fr; gap: 60px;
  align-items: start;
}
.contact-info h3 {
  font-family: 'Playfair Display', serif;
  font-size: 26px; font-weight: 700; color: var(--navy);
  margin-bottom: 14px;
}
.contact-info > p { font-size: 14.5px; color: var(--text-soft); line-height: 1.8; margin-bottom: 36px; }

.contact-item {
  display: flex; gap: 18px; align-items: flex-start;
  margin-bottom: 28px; padding: 20px;
  border-radius: 12px; border: 1px solid var(--border);
  transition: all 0.25s;
}
.contact-item:hover { border-color: var(--blue); box-shadow: var(--shadow-sm); }
.contact-icon {
  width: 48px; height: 48px; border-radius: 12px;
  background: var(--navy); display: flex;
  align-items: center; justify-content: center;
  font-size: 22px; flex-shrink: 0;
}
.contact-detail h4 { font-size: 12px; letter-spacing: 1.5px; text-transform: uppercase; color: var(--blue); font-weight: 700; margin-bottom: 4px; }
.contact-detail p { font-size: 14px; color: var(--text); line-height: 1.6; }

.contact-form {
  background: var(--off-white); border-radius: 20px;
  padding: 44px; border: 1px solid var(--border);
}
.contact-form h3 {
  font-family: 'Playfair Display', serif;
  font-size: 26px; font-weight: 700; color: var(--navy);
  margin-bottom: 6px;
}
.contact-form > p { font-size: 14px; color: var(--text-soft); margin-bottom: 32px; }

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-group { margin-bottom: 20px; }
.form-group label {
  display: block; font-size: 11.5px; font-weight: 700;
  letter-spacing: 1.5px; text-transform: uppercase;
  color: var(--gray-700); margin-bottom: 8px;
}
.form-group input, .form-group select, .form-group textarea {
  width: 100%; padding: 13px 16px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  font-family: 'Nunito', sans-serif; font-size: 14px;
  color: var(--text); background: var(--white);
  outline: none; transition: all 0.22s;
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
  border-color: var(--blue); box-shadow: 0 0 0 3px rgba(26,79,158,0.1);
}
.form-group input::placeholder, .form-group textarea::placeholder { color: var(--gray-300); }
.form-group textarea { resize: vertical; min-height: 110px; }

/* Map placeholder */
.map-box {
  height: 200px; border-radius: 12px;
  background: linear-gradient(135deg, var(--navy-mid), var(--blue));
  display: flex; align-items: center; justify-content: center;
  flex-direction: column; gap: 12px;
  margin-top: 28px; cursor: pointer; transition: all 0.3s;
  border: 1px solid var(--border); position: relative; overflow: hidden;
}
.map-box::before {
  content: '';
  position: absolute; inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' stroke='rgba(255,255,255,0.06)' stroke-width='1'%3E%3Cpath d='M0 30h60M30 0v60'/%3E%3C/g%3E%3C/svg%3E");
}
.map-box:hover { transform: scale(1.01); }
.map-box p { color: rgba(255,255,255,0.6); font-size: 13px; position: relative; z-index: 1; }
.map-icon { font-size: 36px; position: relative; z-index: 1; }

/* ============================================================
   NEWSLETTER
============================================================ */
.newsletter {
  background: linear-gradient(135deg, var(--blue) 0%, var(--navy) 100%);
  padding: 70px 0;
  position: relative; overflow: hidden;
}
.newsletter::before {
  content: '';
  position: absolute; inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='80' height='80' viewBox='0 0 80 80' xmlns='http://www.w3.org/2000/svg'%3E%3Ccircle cx='40' cy='40' r='35' fill='none' stroke='rgba(255,255,255,0.04)' stroke-width='1'/%3E%3C/svg%3E") center;
  opacity: 0.5;
}
.newsletter-inner {
  position: relative; z-index: 1; text-align: center;
  max-width: 560px; margin: 0 auto; padding: 0 5%;
}
.newsletter h2 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(24px, 3.5vw, 38px);
  font-weight: 700; color: var(--white); margin-bottom: 12px;
}
.newsletter p { font-size: 15px; color: rgba(255,255,255,0.6); margin-bottom: 30px; line-height: 1.7; }
.newsletter-form { display: flex; gap: 10px; max-width: 440px; margin: 0 auto; }
.newsletter-form input {
  flex: 1; padding: 13px 18px; border-radius: var(--radius-sm);
  border: none; font-family: 'Nunito', sans-serif; font-size: 14px;
  outline: none; background: rgba(255,255,255,0.12);
  color: var(--white); border: 1px solid rgba(255,255,255,0.2);
  transition: all 0.2s;
}
.newsletter-form input::placeholder { color: rgba(255,255,255,0.4); }
.newsletter-form input:focus { background: rgba(255,255,255,0.18); border-color: rgba(255,255,255,0.4); }

/* ============================================================
   FOOTER
============================================================ */
footer {
  background: var(--navy);
  padding: 70px 0 0;
  color: rgba(255,255,255,0.6);
}
.footer-top {
  max-width: 1200px; margin: 0 auto; padding: 0 5%;
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 60px; padding-bottom: 60px;
  border-bottom: 1px solid rgba(255,255,255,0.07);
}
.footer-brand .footer-logo { display: flex; align-items: center; gap: 13px; margin-bottom: 18px; }
.footer-logo-icon {
  width: 48px; height: 48px;
  background: linear-gradient(135deg, var(--blue), var(--blue-light));
  border-radius: 10px; display: flex; align-items: center; justify-content: center; font-size: 22px;
}
.footer-logo-name {
  font-family: 'Playfair Display', serif;
  font-size: 10px; font-weight: 600; color: var(--white);
}
.footer-brand p { font-size: 13.5px; line-height: 1.8; max-width: 260px; margin-bottom: 24px; }
.footer-socials { display: flex; gap: 10px; }
.social-btn {
  width: 38px; height: 38px; border-radius: 9px;
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.1);
  display: flex; align-items: center; justify-content: center;
  font-size: 16px; cursor: pointer; transition: all 0.25s;
  text-decoration: none; color: white;
}
.social-btn:hover { background: var(--accent); border-color: var(--accent); color: var(--navy); }

.footer-col h4 {
  font-size: 12px; letter-spacing: 2px;
  text-transform: uppercase; font-weight: 700;
  color: var(--white); margin-bottom: 22px;
}
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 11px; }
.footer-col a {
  color: rgba(255,255,255,0.45); font-size: 14px;
  text-decoration: none; transition: color 0.2s;
  display: flex; align-items: center; gap: 6px;
}
.footer-col a:hover { color: var(--accent-light); }
.footer-col a::before { content: '›'; font-size: 16px; color: var(--blue-light); }

.footer-bottom {
  max-width: 1200px; margin: 0 auto; padding: 22px 5%;
  display: flex; align-items: center; justify-content: space-between;
  font-size: 12.5px; flex-wrap: wrap; gap: 14px;
}
.footer-bottom-links { display: flex; gap: 24px; }
.footer-bottom-links a {
  color: rgba(255,255,255,0.3); text-decoration: none;
  font-size: 12.5px; transition: color 0.2s;
}
.footer-bottom-links a:hover { color: var(--accent-light); }
.footer-accent { color: var(--accent); font-weight: 700; }

/* ============================================================
   BACK TO TOP
============================================================ */
.back-to-top {
  position: fixed; bottom: 28px; right: 28px; z-index: 50;
  width: 48px; height: 48px; border-radius: 50%;
  background: var(--blue); color: var(--white);
  border: none; cursor: pointer; font-size: 20px;
  box-shadow: var(--shadow-md); transition: all 0.3s;
  display: flex; align-items: center; justify-content: center;
  opacity: 0; pointer-events: none; transform: scale(0.8);
}
.back-to-top.show { opacity: 1; pointer-events: all; transform: scale(1); }
.back-to-top:hover { background: var(--accent); color: var(--navy); transform: scale(1.1); }

/* ============================================================
   RESPONSIVE
============================================================ */
@media (max-width: 1024px) {
  .slide-content { grid-template-columns: 1fr; gap: 0; }
  .slide-deco { display: none; }
  .about-grid { grid-template-columns: 1fr; }
  .about-visual { display: none; }
  .programs-grid { grid-template-columns: repeat(2, 1fr); }
  .notice-board-grid { grid-template-columns: 1fr; }
  .news-grid { grid-template-columns: 1fr; }
  .news-featured-img { height: 220px; }
  .testimonial-card { min-width: calc(50% - 12px); }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr 1fr; gap: 40px; }
  .stats-band-inner { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .topbar { padding: 8px 5%; }
  .topbar-left { gap: 14px; flex-wrap: wrap; }
  .section-pad { padding: 60px 0; }
  .nav-menu, .nav-actions .btn { display: none; }
  .hamburger { display: flex; }
  .programs-grid { grid-template-columns: 1fr; }
  .testimonial-card { min-width: calc(100% - 0px); }
  .footer-top { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .form-row { grid-template-columns: 1fr; }
  .contact-form { padding: 28px 22px; }
  .newsletter-form { flex-direction: column; }
  .slide-h1 { font-size: 32px; }
  .slide-content { padding: 0 5%; }
  .slide { min-height: 80vh; }
}

@media (max-width: 480px) {
  .stats-band-inner { grid-template-columns: 1fr 1fr; }
  .carousel-btn { width: 40px; height: 40px; font-size: 16px; }
  .slide-btns { gap: 10px; }
  .btn { padding: 11px 20px; font-size: 13px; }
}
/* FIX: Allow image on right side inside Principal section */
.principal-section .row {
  display: flex !important;
  flex-wrap: wrap;
}

.principal-section .col-md-8,
.principal-section .col-md-4 {
  display: block !important;
}

.principal-section img {
  display: block !important;
  max-width: 100%;
  height: auto;
}
.infra-list .list-group-item {
  border: none;
  padding: 10px 14px;
  background: #f8f9fa;
  margin-bottom: 6px;
  border-radius: 6px;
  font-size: 15px;
}
/* =============================
   INFRASTRUCTURE SECTION STYLING
============================= */
#infrastructure .infra-list .list-group-item {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  margin-bottom: 8px;
  border-radius: 8px;
  font-size: 15px;
  padding: 12px 15px;
}

#infrastructure h2,
#education-section h2 {
  font-weight: 700;
  color: var(--navy);
}

#infrastructure .list-group-item strong {
  color: var(--blue);
}


/* =============================
   EDUCATION SECTION
============================= */
#education-section {
  background: var(--off-white);
  border-top: 3px solid var(--blue);
  padding: 70px 0;
  margin-top: 60px;
  border-radius: 16px;
}

#education-section .rounded.shadow {
  background: white !important;
  border-radius: 14px !important;
  padding: 30px !important;
  border-left: 5px solid var(--blue) !important;
}

#education-section p,
#education-section li {
  font-size: 16px;
  line-height: 28px;
  color: #333;
}

#education-section h4 {
  color: var(--blue);
  font-weight: 700;
  margin-bottom: 15px;
}

#education-section table thead {
  background: var(--blue) !important;
  color: white;
  font-weight: bold;
}

#education-section table tbody tr:hover {
  background: #f1f5ff !important;
  cursor: pointer;
  transition: 0.2s ease-in-out;
}

#education-section table td,
#education-section table th {
  vertical-align: middle;
  padding: 12px;
  font-size: 15px;
}

/* =============================
   STAFF PHOTO SIZE & STYLE
============================= */
#education-section table img {
  width: 95px !important;
  height: 95px;
  object-fit: cover;
  border-radius: 10px;
  border: 2px solid var(--blue);
  box-shadow: 0 3px 8px rgba(0,0,0,0.15);
  transition: 0.3s ease;
}

#education-section table img:hover {
  transform: scale(1.08);
}


/* ============================
   SECTION TITLES
=============================== */
.section-title span {
  color: var(--blue);
}

.tag {
  background: var(--blue);
  color: white;
  padding: 6px 18px;
  border-radius: 20px;
  font-size: 13px;
  display: inline-flex;
  font-weight: 600;
}


/* ===============================
   TABLE IMPROVEMENTS
================================ */
.table-bordered {
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid #d0d7e0;
}

.table-bordered td {
  background: #fff;
}

.table-bordered tr:nth-child(even) td {
  background: #fafafa;
}
/****************** galeery css ********************/
/* Card */
.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(0,212,255,0.08), rgba(124,58,237,0.08));
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.4);
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* Image base state */
.gallery-item img {
  width: 100%;
  height: 260px;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease, filter 0.4s ease;
}

/* Dark overlay using ::before */
.gallery-item::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.8), rgba(0,0,0,0.2));
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

/* Caption centered at bottom */
.gallery-item figcaption {
  position: absolute;
  left: 50%;
  bottom: 18px;
  transform: translateX(-50%) translateY(20px);
  padding: 8px 14px;
  font-size: 0.9rem;
  color: #f8f9fa;
  background: rgba(0, 0, 0, 0.55);
  border-radius: 999px;
  white-space: nowrap;
  opacity: 0;
  letter-spacing: 0.03em;
  transition: opacity 0.3s ease, transform 0.3s ease;
}

/* Hover effects */
.gallery-item:hover {
  transform: translateY(-6px) scale(1.02);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.6);
}

.gallery-item:hover img {
  transform: scale(1.08);
  filter: brightness(0.9);
}

.gallery-item:hover::before {
  opacity: 1;
}

.gallery-item:hover figcaption {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* Mobile tweak */
@media (max-width: 600px) {
  .gallery-item img {
    height: 200px;
  }

  .gallery-item figcaption {
    font-size: 0.8rem;
    bottom: 12px;
  }
}
/* Initial state for scroll-in animation */
.gallery-item {
  transform: translateY(30px) scale(0.97);
  opacity: 0;
}

/* When JS adds this class, card becomes visible */
.gallery-item.is-visible {
  opacity: 1;
  transform: translateY(0) scale(1);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

/* Smooth 3D tilt from JS mousemove */
.gallery-item.js-tilt {
  transform-style: preserve-3d;
  transform-origin: center;
  transition: transform 0.15s ease-out, box-shadow 0.2s ease-out;
}
/* GALLERY SECTION (4 per row) */
.gallery-section {
  padding: 60px 0;
}

.gallery-header {
  text-align: center;
  margin-bottom: 40px;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr); /* 4 per row */
  gap: 20px;
  padding: 0 20px;
}

.gallery-item {
  overflow: hidden;
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 3px 12px rgba(0,0,0,0.1);
  transition: transform 0.3s ease;
  opacity: 0;
  transform: translateY(30px);
}

/* Fade-in animation */
.gallery-item.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.gallery-item img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  display: block;
}

.gallery-item figcaption {
  padding: 10px;
  text-align: center;
  font-size: 14px;
}

/* Responsive */
@media (max-width: 992px) {
  .gallery-grid {
    grid-template-columns: repeat(3, 1fr); /* 3 in row */
  }
}

@media (max-width: 768px) {
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr); /* 2 in row */
  }
}

@media (max-width: 480px) {
  .gallery-grid {
    grid-template-columns: 1fr; /* 1 in row */
  }
}
/* responsive --------------------- */
/* ----------------------------
   GLOBAL RESPONSIVE LAYOUT
----------------------------- */
:root {
  --container-width: 1200px;
  --side-padding: 20px;
}

.container {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 var(--side-padding);
}

/* Section spacing */
.section-pad {
  padding: 80px 0;
}

/* -----------------------------------
   NAVBAR ACTIVE LINK FIX
----------------------------------- */
/* ================================
   ACTIVE NAV LINK (WORKS 100%)
================================= */
.nav-menu li.active > a {
    color: var(--accent) !important;
    font-weight: 700;
    position: relative;
}

/* Underline strip */
.nav-menu li.active > a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -4px;
    width: 100%;
    height: 3px;
    background: var(--accent);
    border-radius: 2px;
}

/* Hover underline for all links */
.nav-menu li a:hover::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -4px;
    width: 100%;
    height: 3px;
    background: var(--accent);
    border-radius: 2px;
}
/* NAV responsive collapse earlier */
@media (max-width: 1200px) {
    .nav-menu,
    .nav-actions {
        display: none !important;
    }

    .hamburger {
        display: flex !important;
    }
}

/* -----------------------------------
   RESPONSIVE GRID DEFAULT
----------------------------------- */
.programs-grid,
.news-grid,
.notice-board-grid,
.gallery-grid {
  display: grid;
  gap: 25px;
}

/* ---- DEFAULT GRID ---- */
.programs-grid {
  grid-template-columns: repeat(3, 1fr);
}

.notice-board-grid {
  grid-template-columns: 2fr 2fr;
}

.news-grid {
  grid-template-columns: 1.3fr 1fr;
}

/* ---- GALLERY FIX: 4 per row ---- */
.gallery-grid {
  grid-template-columns: repeat(4, 1fr);
}

.gallery-item img {
  width: 100%;
  height: 240px;
  object-fit: cover;
  border-radius: 10px;
}

/* -----------------------------------
   TABLE RESPONSIVENESS
----------------------------------- */
.table-responsive {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin-bottom: 20px;
}

/* -----------------------------------
   STAFF PHOTOS FIX (Bigger + Neat)
----------------------------------- */
.table img {
  width: 90px !important;
  height: 90px !important;
  object-fit: cover;
  border-radius: 8px;
  border: 2px solid #eee;
}

/* -----------------------------------
   MEDIA QUERIES (RESPONSIVE)
----------------------------------- */

/* --- Large Tablets (max 992px) --- */
@media (max-width: 992px) {
  .programs-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .gallery-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .news-grid {
    grid-template-columns: 1fr;
  }

  .notice-board-grid {
    grid-template-columns: 1fr;
  }
}

/* --- Tablets (max 768px) --- */
@media (max-width: 768px) {
  .section-pad {
    padding: 60px 0;
  }

  .programs-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .about-grid,
  .principal-section {
    flex-direction: column !important;
  }

  nav .nav-menu {
    display: none; /* your mobile menu will handle this */
  }
}

/* --- Mobiles (max 576px) --- */
@media (max-width: 576px) {
  .programs-grid {
    grid-template-columns: 1fr;
  }

  .gallery-grid {
    grid-template-columns: 1fr;
  }

  .section-title {
    font-size: 26px;
  }

  .slide-h1 {
    font-size: 28px !important;
  }

  .contact-grid {
    flex-direction: column;
  }

  .newsletter-form {
    flex-direction: column;
  }

  .newsletter-form input {
    width: 100%;
    margin-bottom: 10px;
  }

  .newsletter-form button {
    width: 100%;
  }
}
div.tablecontainer {
  overflow-x: auto;
}
.slide-deco {
  display: flex !important;
}

/* Make sure it looks normal on small screens */
@media (max-width: 768px) {
  .slide-content {
    grid-template-columns: 1fr; /* Text above, image below */
    text-align: center;
    margin-top: 50px;
  }

  .slide-deco {
    position: relative;
    width: 100%;
    margin-top: 50px;
    margin-bottom: 50px;
  }

  .slide-deco-img img {
    height: 100%;
    margin: 0 auto;
    display: block;
  }

  /* Hide rotating circles ONLY on mobile */
  .slide-deco-circle {
    display: none;
  }
}
/* ALWAYS SHOW ABOUT SECTION IMAGE */
.about-visual {
  display: block !important;
}

/* RESPONSIVE FIX FOR MOBILE */
@media (max-width: 768px) {

  /* Stack image below text */
  .about-grid {
    grid-template-columns: 1fr !important;
    text-align: center;
  }

  /* Image block full width */
  .about-visual {
    margin-top: 20px;
  }

  .about-img-main {
    width: 100%;
    margin: 0 auto;
  }

  .about-img-content img {
    width: 90%;
    margin: 0 auto;
    display: block;
  }

  /* Hide floating badge positions */
  .about-badge-card,
  .about-badge-card-2 {
    position: relative !important;
    bottom: 0 !important;
    right: 0 !important;
    left: 0 !important;
    margin: 10px auto !important;
    display: inline-flex !important;
  }
}
.pdf-viewer {
    width: 100%;
    height: 90vh;
    border: none;
}
#mainNav .nav-logo {
  display: flex;
  align-items: center;
  margin-right: auto; 
}

