/* ====================================================================
   KGI PLAY SCHOOL - PREMIUM PLAY SCHOOL STYLESHEET
   Colors: Sunshine Gold, Royal Blue, Coral Red, Fresh Mint, Lavender
   ==================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Fredoka:wght@400;500;600;700&family=Outfit:wght@300;400;500;600;700&family=Quicksand:wght@500;600;700&display=swap');

:root {
  --primary: #2A73CC;       /* Playful Royal Blue */
  --primary-dark: #1E5094;
  --secondary: #FFB703;     /* Cheerful Sunshine Yellow */
  --accent-coral: #E71D36;  /* Cherry Coral Red */
  --accent-mint: #2EC4B6;   /* Fresh Mint */
  --accent-purple: #9B5DE5; /* Lilac Purple */
  --accent-orange: #FB8500; /* Warm Orange */
  
  --dark: #0F172A;
  --dark-light: #1E293B;
  --muted: #64748B;
  --light-bg: #F8FAFD;
  --white: #FFFFFF;
  
  --font-heading: 'Fredoka', 'Quicksand', sans-serif;
  --font-body: 'Outfit', sans-serif;
  
  --radius-sm: 10px;
  --radius-md: 18px;
  --radius-lg: 28px;
  --radius-pill: 50px;
  
  --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -2px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.08), 0 4px 6px -4px rgba(0, 0, 0, 0.05);
  --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.05);
  --shadow-hover: 0 20px 35px -5px rgba(42, 115, 204, 0.2);
}

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

body {
  font-family: var(--font-body);
  font-size: 16px;
  color: var(--dark-light);
  background-color: var(--light-bg);
  line-height: 1.6;
  overflow-x: hidden;
}

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

a {
  color: var(--primary);
  text-decoration: none;
  transition: all 0.25s ease;
}

a:hover {
  color: var(--accent-coral);
}

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

.container {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 20px;
}

/* --------------------------------------------------------------------
   TOPBAR
   -------------------------------------------------------------------- */
.topbar {
  background: linear-gradient(135deg, var(--primary) 0%, #1E5094 100%);
  color: rgba(255, 255, 255, 0.9);
  padding: 8px 0;
  font-size: 13.5px;
  border-bottom: 2px solid var(--secondary);
}

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

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

.topbar a {
  color: rgba(255, 255, 255, 0.95);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 500;
}

.topbar a:hover {
  color: var(--secondary);
}

.social-links {
  display: inline-flex;
  gap: 8px;
}

.social-icon {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  color: #fff !important;
  transition: all 0.2s ease;
}

.social-icon:hover {
  background: var(--secondary);
  color: var(--dark) !important;
  transform: translateY(-2px);
}

/* --------------------------------------------------------------------
   MAIN NAVBAR
   -------------------------------------------------------------------- */
.site-header {
  background: var(--white);
  box-shadow: var(--shadow-sm);
  position: sticky;
  top: 0;
  z-index: 1000;
  transition: all 0.3s ease;
}

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

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

.brand-logo img {
  width: 68px;
  height: 68px;
  border-radius: 50%;
  border: 3px solid var(--secondary);
  box-shadow: var(--shadow-sm);
  transition: transform 0.3s ease;
}

.brand-logo:hover img {
  transform: rotate(5deg) scale(1.05);
}

.brand-text h1 {
  font-size: 24px;
  font-weight: 700;
  color: var(--primary);
  margin: 0;
  letter-spacing: -0.5px;
}

.brand-text h1 span {
  color: var(--accent-coral);
}

.brand-tagline {
  font-size: 11.5px;
  color: var(--muted);
  font-weight: 600;
  letter-spacing: 0.3px;
  display: block;
}

.nav-menu {
  display: flex;
  align-items: center;
  list-style: none;
  gap: 6px;
}

.nav-link {
  font-family: var(--font-heading);
  font-size: 15px;
  font-weight: 600;
  color: var(--dark);
  padding: 8px 14px;
  border-radius: var(--radius-pill);
  transition: all 0.2s ease;
}

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

.nav-btn {
  background: linear-gradient(135deg, var(--accent-coral) 0%, #FF4359 100%);
  color: var(--white) !important;
  padding: 10px 22px;
  border-radius: var(--radius-pill);
  font-weight: 700;
  box-shadow: 0 4px 12px rgba(231, 29, 54, 0.35);
  margin-left: 8px;
}

.nav-btn:hover {
  background: linear-gradient(135deg, #c9182b 0%, var(--accent-coral) 100%);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(231, 29, 54, 0.45);
}

.mobile-toggle {
  display: none;
  background: transparent;
  border: none;
  font-size: 26px;
  color: var(--primary);
  cursor: pointer;
  padding: 6px;
}

/* Mobile Drawer */
.mobile-drawer {
  position: fixed;
  top: 0;
  right: -320px;
  width: 300px;
  height: 100vh;
  background: var(--white);
  box-shadow: -5px 0 25px rgba(0, 0, 0, 0.15);
  z-index: 2000;
  padding: 24px;
  display: flex;
  flex-direction: column;
  transition: right 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  overflow-y: auto;
}

.mobile-drawer.open {
  right: 0;
}

.drawer-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 18px;
  border-bottom: 2px dashed #E2E8F0;
  margin-bottom: 16px;
}

.drawer-logo {
  display: flex;
  align-items: center;
  gap: 10px;
}

.drawer-logo img {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 2px solid var(--secondary);
}

.drawer-logo span {
  font-family: var(--font-heading);
  font-size: 18px;
  font-weight: 700;
  color: var(--primary);
}

.drawer-close {
  background: #F1F5F9;
  border: none;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  font-size: 18px;
  color: var(--muted);
  cursor: pointer;
}

.drawer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 20px;
}

.drawer-links a {
  display: block;
  padding: 10px 14px;
  font-family: var(--font-heading);
  font-size: 16px;
  font-weight: 600;
  color: var(--dark);
  border-radius: var(--radius-sm);
}

.drawer-links a:hover, .drawer-links a.active {
  background: var(--light-bg);
  color: var(--primary);
}

.drawer-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(15, 23, 42, 0.5);
  z-index: 1999;
  display: none;
  backdrop-filter: blur(2px);
}

.drawer-overlay.active {
  display: block;
}

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

.slide-item {
  position: relative;
  min-height: 520px;
  display: none;
  align-items: center;
  background-size: cover;
  background-position: center;
  padding: 80px 0;
}

.slide-item.active {
  display: flex;
  animation: fadeIn 0.6s ease;
}

.slide-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  }

.slide-content {
  position: relative;
  z-index: 2;
  max-width: 680px;
  color: var(--white);
}

.badge-pill {
  display: inline-block;
  padding: 6px 18px;
  border-radius: var(--radius-pill);
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 16px;
  background: var(--secondary);
  color: var(--dark);
}

.slide-title {
  font-size: 46px;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 16px;
  line-height: 1.2;
}

.slide-subtitle {
  font-size: 18px;
  color: #E2E8F0;
  margin-bottom: 30px;
  line-height: 1.6;
}

.slide-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.btn-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 30px;
  border-radius: var(--radius-pill);
  font-family: var(--font-heading);
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.25s ease;
  border: none;
}

.btn-primary {
  background: var(--accent-coral);
  color: var(--white);
  box-shadow: 0 4px 14px rgba(231, 29, 54, 0.4);
}

.btn-primary:hover {
  background: #c9182b;
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(231, 29, 54, 0.5);
}

.btn-secondary {
  background: var(--secondary);
  color: var(--dark);
  box-shadow: 0 4px 14px rgba(255, 183, 3, 0.4);
}

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

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

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

.slider-nav {
  position: absolute;
  bottom: 24px;
  right: 40px;
  z-index: 10;
  display: flex;
  gap: 10px;
}

.slider-dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
  border: 2px solid var(--white);
  cursor: pointer;
  transition: all 0.3s ease;
}

.slider-dot.active {
  background: var(--secondary);
  width: 32px;
  border-radius: 10px;
}

/* --------------------------------------------------------------------
   SECTION LAYOUTS & BADGES
   -------------------------------------------------------------------- */
.section {
  padding: 80px 0;
  position: relative;
}

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

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

.section-badge {
  display: inline-block;
  font-family: var(--font-heading);
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 6px 18px;
  border-radius: var(--radius-pill);
  background: rgba(42, 115, 204, 0.12);
  color: var(--primary);
  margin-bottom: 12px;
}

.section-title {
  font-size: 36px;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 14px;
}

.section-desc {
  font-size: 16px;
  color: var(--muted);
}

/* Grid Layouts */
.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 36px;
  align-items: center;
}

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

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

/* --------------------------------------------------------------------
   WELCOME NOTE & LEADERSHIP PREVIEW
   -------------------------------------------------------------------- */
.welcome-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 40px;
  box-shadow: var(--shadow-md);
  border: 2px solid #EFF6FF;
  position: relative;
  overflow: hidden;
}

.welcome-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 8px;
  height: 100%;
  background: linear-gradient(180deg, var(--accent-coral), var(--secondary));
}

.leader-badge {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px dashed #E2E8F0;
}

.leader-avatar {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--secondary);
}

.leader-info h4 {
  font-size: 18px;
  color: var(--dark);
  margin-bottom: 2px;
}

.leader-info p {
  font-size: 13px;
  color: var(--primary);
  font-weight: 600;
  margin: 0;
}

/* --------------------------------------------------------------------
   PROGRAM CARDS
   -------------------------------------------------------------------- */
.program-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: all 0.3s ease;
  border: 1px solid #F1F5F9;
  display: flex;
  flex-direction: column;
}

.program-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-hover);
}

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

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

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

.program-badge {
  position: absolute;
  top: 16px;
  right: 16px;
  padding: 4px 14px;
  border-radius: var(--radius-pill);
  font-size: 12px;
  font-weight: 700;
  color: #fff;
}

.program-body {
  padding: 24px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.program-title {
  font-size: 20px;
  margin-bottom: 8px;
}

.program-meta {
  display: flex;
  gap: 14px;
  font-size: 13px;
  color: var(--muted);
  font-weight: 500;
  margin-bottom: 12px;
}

.program-meta span {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.program-desc {
  font-size: 14.5px;
  color: var(--muted);
  margin-bottom: 18px;
  flex-grow: 1;
}

/* --------------------------------------------------------------------
   FACILITY CARDS
   -------------------------------------------------------------------- */
.facility-card {
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 30px 24px;
  text-align: center;
  box-shadow: var(--shadow-sm);
  transition: all 0.3s ease;
  border: 2px solid transparent;
}

.facility-card:hover {
  border-color: var(--accent-mint);
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
}

.facility-icon {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  background: rgba(46, 196, 182, 0.12);
  color: var(--accent-mint);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  margin: 0 auto 18px auto;
  transition: all 0.3s ease;
}

.facility-card:hover .facility-icon {
  background: var(--accent-mint);
  color: #fff;
  transform: scale(1.1) rotate(5deg);
}

.facility-title {
  font-size: 19px;
  margin-bottom: 10px;
}

.facility-desc {
  font-size: 14px;
  color: var(--muted);
}

/* --------------------------------------------------------------------
   STAFF CARDS
   -------------------------------------------------------------------- */
.staff-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: all 0.3s ease;
  border: 1px solid #F1F5F9;
  text-align: center;
  padding: 30px 20px;
}

.staff-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-md);
}

.staff-avatar {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  margin: 0 auto 18px auto;
  object-fit: cover;
  border: 4px solid var(--secondary);
  box-shadow: var(--shadow-sm);
  transition: transform 0.3s ease;
}

.staff-card:hover .staff-avatar {
  transform: scale(1.06);
}

.staff-name {
  font-size: 20px;
  margin-bottom: 4px;
}

.staff-role {
  font-size: 13.5px;
  color: var(--accent-coral);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 4px;
}

.staff-qual {
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 12px;
}

.staff-bio {
  font-size: 13.5px;
  color: #475569;
  line-height: 1.5;
}

/* --------------------------------------------------------------------
   GALLERY WITH LIGHTBOX
   -------------------------------------------------------------------- */
.gallery-filters {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-bottom: 36px;
  flex-wrap: wrap;
}

.filter-btn {
  font-family: var(--font-heading);
  font-size: 14px;
  font-weight: 600;
  padding: 8px 20px;
  border-radius: var(--radius-pill);
  border: 2px solid #E2E8F0;
  background: var(--white);
  color: var(--muted);
  cursor: pointer;
  transition: all 0.2s ease;
}

.filter-btn:hover, .filter-btn.active {
  background: var(--primary);
  border-color: var(--primary);
  color: var(--white);
}

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

.gallery-item {
  border-radius: var(--radius-md);
  overflow: hidden;
  position: relative;
  cursor: pointer;
  aspect-ratio: 4/3;
  box-shadow: var(--shadow-sm);
}

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

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

.gallery-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(15, 23, 42, 0.7);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  opacity: 0;
  transition: opacity 0.3s ease;
  color: #fff;
  padding: 16px;
  text-align: center;
}

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

.gallery-overlay i {
  font-size: 28px;
  color: var(--secondary);
  margin-bottom: 8px;
}

.gallery-overlay h5 {
  color: #fff;
  font-size: 16px;
}

/* Lightbox Modal */
.lightbox-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.9);
  z-index: 9999;
  display: none;
  justify-content: center;
  align-items: center;
  padding: 40px;
}

.lightbox-modal.active {
  display: flex;
}

.lightbox-content {
  max-width: 90%;
  max-height: 85vh;
  border-radius: 12px;
  box-shadow: 0 10px 40px rgba(0,0,0,0.5);
}

.lightbox-close {
  position: absolute;
  top: 25px;
  right: 35px;
  color: #fff;
  font-size: 36px;
  cursor: pointer;
}

/* --------------------------------------------------------------------
   FORMS & SWEETALERT READY
   -------------------------------------------------------------------- */
.form-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 40px;
  box-shadow: var(--shadow-md);
  border: 1px solid #E2E8F0;
}

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

.form-label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: var(--dark);
  margin-bottom: 6px;
}

.form-control, .form-select {
  width: 100%;
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  border: 1.5px solid #CBD5E1;
  font-family: var(--font-body);
  font-size: 15px;
  color: var(--dark);
  background-color: #fff;
  transition: all 0.2s ease;
}

.form-control:focus, .form-select:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(42, 115, 204, 0.15);
}

.form-row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.captcha-box {
  display: flex;
  align-items: center;
  gap: 12px;
  background: #F8FAFC;
  padding: 10px 16px;
  border-radius: var(--radius-sm);
  border: 1.5px dashed var(--secondary);
}

.captcha-badge {
  font-family: var(--font-heading);
  font-size: 18px;
  font-weight: 700;
  color: var(--primary);
  letter-spacing: 1px;
}

/* --------------------------------------------------------------------
   FOOTER
   -------------------------------------------------------------------- */
.site-footer {
  background: #0B1325;
  color: #94A3B8;
  padding: 70px 0 24px 0;
  border-top: 4px solid var(--secondary);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 40px;
  margin-bottom: 50px;
}

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

.footer-brand h3 span {
  color: var(--secondary);
}

.footer-brand p {
  font-size: 14.5px;
  line-height: 1.7;
  margin-bottom: 20px;
}

.footer-title {
  color: var(--white);
  font-size: 18px;
  margin-bottom: 20px;
  position: relative;
  padding-bottom: 10px;
}

.footer-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 36px;
  height: 3px;
  background: var(--accent-coral);
  border-radius: 2px;
}

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

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

.footer-links a {
  color: #94A3B8;
  font-size: 14px;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

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

.footer-contact li {
  display: flex;
  gap: 12px;
  margin-bottom: 14px;
  font-size: 14px;
}

.footer-contact i {
  color: var(--secondary);
  font-size: 16px;
  margin-top: 4px;
}

.footer-bottom {
  text-align: center;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 13.5px;
}

/* --------------------------------------------------------------------
   RESPONSIVE DESIGN (MOBILE & TABLET)
   -------------------------------------------------------------------- */
@media (max-width: 1024px) {
  .nav-menu { display: none; }
  .mobile-toggle { display: block; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .gallery-grid { grid-template-columns: repeat(3, 1fr); }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .topbar { display: none; }
  .grid-2 { grid-template-columns: 1fr; }
  .grid-3 { grid-template-columns: 1fr; }
  .grid-4 { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .slide-title { font-size: 32px; }
  .section-title { font-size: 28px; }
  .welcome-card { padding: 24px; }
}

@media (max-width: 480px) {
  .gallery-grid { grid-template-columns: 1fr; }
  .slide-actions { flex-direction: column; }
  .btn-cta { width: 100%; justify-content: center; }
}

/* ====================================================================
   K.G. INSTITUTE OF ACADEMICS & APPLIED STUDIES - SENIOR SECONDARY UPGRADE
   ==================================================================== */

:root {
  --primary: #1E3A8A;        /* Academic Navy Blue */
  --primary-dark: #0F172A;
  --secondary: #F59E0B;      /* Academic Amber Gold */
  --accent-coral: #B91C1C;   /* Crimson Accent */
  --accent-mint: #0D9488;    /* Academic Teal */
  --accent-purple: #6D28D9;
}

.brand-text h1 {
  font-size: 19px !important;
  font-weight: 800 !important;
  color: #1E3A8A !important;
  line-height: 1.2 !important;
}

.brand-text h1 span {
  color: #B45309 !important;
}

.brand-sub {
  font-size: 13px;
  color: #1E293B;
  font-weight: 700;
  display: block;
}

.brand-tagline {
  font-size: 11px;
  color: #64748B;
  font-weight: 600;
  display: block;
}

.topbar-badge {
  background: rgba(255, 255, 255, 0.15);
  padding: 3px 10px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 600;
  color: #FEF08A;
}

/* Floating Pillar Cards */
.pillar-card {
  background: #fff;
  padding: 24px 20px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  display: flex;
  align-items: center;
  gap: 16px;
  border-bottom: 4px solid var(--primary);
  transition: transform 0.25s ease;
}
.pillar-card:hover {
  transform: translateY(-4px);
}
.pillar-card.border-blue { border-bottom-color: #1E3A8A; }
.pillar-card.border-green { border-bottom-color: #0D9488; }
.pillar-card.border-gold { border-bottom-color: #F59E0B; }
.pillar-card.border-coral { border-bottom-color: #B91C1C; }

.pillar-icon {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  flex-shrink: 0;
}
.bg-blue-soft { background: rgba(30, 58, 138, 0.12); }
.text-blue { color: #1E3A8A; }
.bg-green-soft { background: rgba(13, 148, 136, 0.12); }
.text-green { color: #0D9488; }
.bg-gold-soft { background: rgba(245, 158, 11, 0.15); }
.text-gold { color: #B45309; }
.bg-coral-soft { background: rgba(185, 28, 28, 0.12); }
.text-coral { color: #B91C1C; }

.pillar-card h4 {
  font-size: 16px;
  margin-bottom: 2px;
  color: #1E293B;
}
.pillar-card p {
  font-size: 12.5px;
  color: var(--muted);
  margin: 0;
  line-height: 1.4;
}

/* Senior Section Cards */
.senior-photo-card {
  background: #fff;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid #E2E8F0;
  display: flex;
  flex-direction: column;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.senior-photo-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-hover);
}
.senior-img-wrap {
  position: relative;
  height: 230px;
  overflow: hidden;
}
.senior-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.senior-photo-card:hover .senior-img-wrap img {
  transform: scale(1.06);
}
.senior-badge {
  position: absolute;
  top: 14px;
  left: 14px;
  padding: 4px 14px;
  border-radius: var(--radius-pill);
  font-size: 12px;
  font-weight: 700;
  color: #fff;
  box-shadow: 0 4px 10px rgba(0,0,0,0.25);
}
.senior-body {
  padding: 22px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}
.senior-body h3 {
  font-size: 18px;
  margin-bottom: 8px;
  color: #1E293B;
  line-height: 1.35;
}
.senior-body p {
  font-size: 13.5px;
  color: #64748B;
  line-height: 1.6;
  margin-bottom: 14px;
  flex-grow: 1;
}
.senior-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12.5px;
  font-weight: 600;
  padding-top: 12px;
  border-top: 1px dashed #E2E8F0;
}

@media (max-width: 768px) {
  .brand-text h1 {
    font-size: 16px !important;
  }
  .brand-sub {
    font-size: 11px;
  }
  .brand-tagline {
    display: none;
  }
  .d-none-mobile {
    display: none !important;
  }
}

/* ====================================================================
   DEDICATED NAVIGATION BAR (BELOW LOGO) & NOTICE TICKER SYSTEM
   As per User Reference (Image 1 & Image 2)
   ==================================================================== */

/* 1. Header Branding Area (Top Row: Logo, School Name, Quick Contacts) */
.site-header-brand {
  background: #FFFFFF;
  padding: 14px 0;
  border-bottom: 1px solid #E2E8F0;
  position: relative;
  z-index: 99;
}

.header-brand-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
}

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

.brand-logo img {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  border: 3px solid #F59E0B;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
  object-fit: cover;
  transition: transform 0.3s ease;
}

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

.brand-text h1 {
  font-size: 21px !important;
  font-weight: 800 !important;
  color: #0B2545 !important;
  line-height: 1.2 !important;
  margin: 0 0 2px 0;
  letter-spacing: -0.3px;
}

.brand-text h1 span {
  color: #B45309 !important;
}

.brand-sub {
  font-size: 13.5px;
  color: #1E3A8A;
  font-weight: 700;
  display: block;
  line-height: 1.3;
}

.brand-tagline {
  font-size: 12px;
  color: #64748B;
  font-weight: 600;
  display: block;
  margin-top: 2px;
}

/* Header Right Quick Widget */
.header-right-tools {
  display: flex;
  align-items: center;
  gap: 16px;
}

.header-helpline-box {
  display: flex;
  align-items: center;
  gap: 12px;
  background: #F8FAFC;
  padding: 8px 16px;
  border-radius: 12px;
  border: 1px solid #E2E8F0;
}

.helpline-icon {
  font-size: 24px;
  color: #0B2545;
}

.helpline-label {
  display: block;
  font-size: 11px;
  text-transform: uppercase;
  color: #64748B;
  font-weight: 700;
  letter-spacing: 0.4px;
}

.helpline-number {
  display: block;
  font-size: 14px;
  color: #0B2545;
  font-weight: 800;
  text-decoration: none;
}

.btn-header-apply {
  background: linear-gradient(135deg, #1E3A8A 0%, #0B2545 100%);
  color: #FFFFFF !important;
  padding: 10px 20px;
  border-radius: 8px;
  font-size: 13.5px;
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 4px 10px rgba(11, 37, 69, 0.2);
  transition: all 0.25s ease;
  white-space: nowrap;
}

.btn-header-apply:hover {
  background: #F59E0B;
  color: #0F172A !important;
  transform: translateY(-2px);
  box-shadow: 0 6px 14px rgba(245, 158, 11, 0.35);
}

/* 2. Dedicated Main Navigation Bar (Full Width Dark Navy Bar Below Logo) */
.main-navbar-bar {
  background: #0B2545; /* Deep Academic Blue as in screenshot */
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.navbar-wrapper {
  display: flex;
  align-items: center;
  justify-content: flex-start;
}

.nav-menu-bar {
  display: flex;
  align-items: stretch;
  list-style: none;
  margin: 0;
  padding: 0;
  flex-wrap: wrap;
}

.nav-menu-item {
  position: relative;
}

.nav-menu-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 12px 16px;
  color: #FFFFFF;
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  font-family: var(--font-body);
  transition: all 0.2s ease;
  border-right: 1px solid rgba(255, 255, 255, 0.08);
  white-space: nowrap;
}

.nav-menu-link i {
  font-size: 13px;
}

/* Hover effect */
.nav-menu-link:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #FBBF24;
}

/* Home Active Tab (Matches Yellow/Gold Box in User Image 1) */
.nav-menu-link.active-home {
  background: #F59E0B !important;
  color: #0F172A !important;
  font-weight: 800 !important;
  box-shadow: inset 0 -3px 0 rgba(0, 0, 0, 0.2);
}

.nav-menu-link.active-home i {
  color: #0F172A !important;
}

/* Regular Active Tab */
.nav-menu-link.active {
  background: rgba(255, 255, 255, 0.15);
  color: #FBBF24 !important;
  border-bottom: 3px solid #F59E0B;
}

/* Notice Badge Counter */
.nav-badge-pill {
  background: #F59E0B;
  color: #0F172A;
  font-size: 11px;
  font-weight: 800;
  width: 19px;
  height: 19px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-left: 3px;
  line-height: 1;
}

.nav-caret {
  font-size: 10px !important;
  margin-left: 2px;
  transition: transform 0.2s ease;
}

.nav-menu-item.has-dropdown:hover .nav-caret {
  transform: rotate(180deg);
}

/* Dropdown Menu */
.nav-dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 230px;
  background: #FFFFFF;
  border-radius: 0 0 10px 10px;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.15);
  border: 1px solid #E2E8F0;
  border-top: 3px solid #F59E0B;
  list-style: none;
  padding: 8px 0;
  margin: 0;
  display: none;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.25s ease, transform 0.25s ease;
  z-index: 1050;
}

.nav-menu-item.has-dropdown:hover .nav-dropdown-menu {
  display: block;
  opacity: 1;
  transform: translateY(0);
}

.nav-dropdown-menu li a {
  display: flex;
  align-items: center;
  padding: 10px 18px;
  color: #1E293B;
  font-size: 13.5px;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.15s ease, color 0.15s ease;
}

.nav-dropdown-menu li a:hover {
  background: #F8FAFC;
  color: #1E3A8A;
  padding-left: 22px;
}

/* 3. Notice Ticker Bar (Beneath Navigation Bar) */
.notice-ticker-bar {
  background: #FFFDF5; /* Warm subtle cream background matching reference */
  border-bottom: 1px solid #E2E8F0;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.03);
  padding: 6px 0;
  position: relative;
  z-index: 90;
}

.ticker-wrapper {
  display: flex;
  align-items: center;
  gap: 16px;
  overflow: hidden;
}

.ticker-label {
  background: #A82828; /* Deep Maroon / Red button like in screenshot */
  color: #FFFFFF;
  font-size: 13px;
  font-weight: 700;
  padding: 5px 14px;
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
  box-shadow: 0 2px 4px rgba(168, 40, 40, 0.25);
  letter-spacing: 0.3px;
}

.ticker-track-wrap {
  flex-grow: 1;
  overflow: hidden;
  white-space: nowrap;
  position: relative;
  mask-image: linear-gradient(to right, transparent 0%, black 2%, black 98%, transparent 100%);
  -webkit-mask-image: linear-gradient(to right, transparent 0%, black 2%, black 98%, transparent 100%);
}

.ticker-marquee {
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
  animation: tickerScroll 35s linear infinite;
}

.ticker-marquee:hover {
  animation-play-state: paused;
}

@keyframes tickerScroll {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

.ticker-marquee-item {
  display: inline-flex;
  align-items: center;
  padding: 0 12px;
}

.ticker-badge-new {
  background: #EF4444; /* Red NEW badge */
  color: #FFFFFF;
  font-size: 10.5px;
  font-weight: 800;
  padding: 2px 6px;
  border-radius: 4px;
  margin-right: 8px;
  line-height: 1.2;
  letter-spacing: 0.4px;
  display: inline-block;
}

.ticker-link {
  color: #1E293B;
  font-size: 13.5px;
  font-weight: 600;
  text-decoration: none;
  transition: color 0.2s ease;
}

.ticker-link:hover {
  color: #1E3A8A;
  text-decoration: underline;
}

.ticker-divider {
  color: #CBD5E1;
  margin-left: 20px;
  font-weight: 300;
}

/* Mobile Responsive Adjustments */
@media (max-width: 991px) {
  .main-navbar-bar {
    display: none; /* Mobile uses drawer */
  }

  .site-header-brand {
    padding: 10px 0;
  }

  .header-brand-row {
    flex-wrap: wrap;
  }

  .brand-logo img {
    width: 54px;
    height: 54px;
  }

  .brand-text h1 {
    font-size: 17px !important;
  }

  .brand-sub {
    font-size: 11.5px;
  }

  .brand-tagline {
    display: none;
  }

  .ticker-label {
    padding: 4px 10px;
    font-size: 11.5px;
  }

  .ticker-link {
    font-size: 12.5px;
  }
}
