/* =========================================================
   Bright Future Public School — Main Stylesheet
   Theme: Navy Blue (#0d2c52) + Gold (#f5a623)
   ========================================================= */

:root {
  --navy-deep:  #0a2647;
  --navy:       #0d3b66;
  --navy-light: #164a86;
  --gold:       #f5a623;
  --gold-soft:  #ffc857;
  --gold-deep:  #d98c0f;
  --ink:        #1b2430;
  --muted:      #6b7688;
  --paper:      #ffffff;
  --bg-soft:    #f6f8fb;
  --hairline:   #e6eaf1;
  --success:    #1f9d55;
  --danger:     #d64545;
}

* { box-sizing: border-box; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.6;
}
h1, h2, h3, h4, h5, h6 { font-family: 'Poppins', 'Inter', sans-serif; font-weight: 700; color: var(--navy-deep); }
a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }

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

/* ---------------- Top bar ---------------- */
.top-bar {
  background: linear-gradient(90deg, var(--navy-deep), #0c3a6b 50%, var(--navy-deep));
  background-size: 200% 100%;
  color: #cfe0f5;
  font-size: 13px;
  padding: 9px 0;
  position: relative;
  z-index: 101;
  animation: topbarSheen 14s linear infinite;
}
.top-bar .container-xl { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 8px; }
.top-bar-left { display: flex; gap: 22px; flex-wrap: wrap; }
.top-bar-left span, .top-bar-left a { display: inline-flex; align-items: center; gap: 7px; color: #cfe0f5; transition: color .2s, transform .2s; }
.top-bar-left i { color: var(--gold-soft); transition: transform .25s; }
.top-bar-left a:hover { color: var(--gold-soft); transform: translateY(-1px); }
.top-bar-left a:hover i { transform: scale(1.15) rotate(-6deg); }
.top-bar-right { display: flex; align-items: center; gap: 16px; }
.top-bar-social { display: flex; gap: 10px; perspective: 300px; }
.top-bar-social a {
  width: 26px; height: 26px; border-radius: 50%; background: rgba(255,255,255,0.12);
  display: flex; align-items: center; justify-content: center; color: #fff; font-size: 12px;
  transition: transform .3s cubic-bezier(.34,1.56,.64,1), background .25s, box-shadow .25s;
  transform-style: preserve-3d;
}
.top-bar-social a:hover {
  background: var(--gold); color: var(--navy-deep);
  transform: translateY(-3px) rotateY(360deg);
  box-shadow: 0 6px 14px rgba(245,166,35,0.45);
}

@keyframes topbarSheen {
  0% { background-position: 0% 0; }
  100% { background-position: 200% 0; }
}

/* ---------------- Header ---------------- */
.site-header {
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(10px);
  padding: 16px 0;
  box-shadow: 0 2px 10px rgba(10,38,71,0.06);
  position: sticky; top: 0; z-index: 100;
  transition: padding .3s ease, box-shadow .3s ease;
}
.site-header.is-scrolled { padding: 8px 0; box-shadow: 0 12px 30px rgba(10,38,71,0.14); }
.header-glow {
  position: absolute; inset: 0; overflow: hidden; pointer-events: none; z-index: 0;
}
.header-glow::before, .header-glow::after { content: ''; position: absolute; inset: 0; }
.header-glow::before { background: radial-gradient(50% 140% at 12% 0%, rgba(245,166,35,0.10), transparent 62%); }
.header-glow::after { background: radial-gradient(40% 140% at 88% 100%, rgba(13,59,102,0.08), transparent 65%); }
.site-header .container-xl { max-width: 1440px; }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 18px; position: relative; z-index: 1; }

.brand { display: flex; align-items: center; gap: 14px; perspective: 600px; flex-shrink: 0; min-width: 0; }
.brand-mark { position: relative; display: inline-flex; transform-style: preserve-3d; transition: transform .35s cubic-bezier(.2,.8,.3,1.4); will-change: transform; }
.brand:hover .brand-mark, .brand:focus-visible .brand-mark { transform: rotateY(14deg) rotateX(-6deg) translateZ(6px); }
.brand img {
  width: 56px; height: 56px; object-fit: contain; border-radius: 50%;
  box-shadow: 0 6px 16px rgba(10,38,71,0.18);
  transition: box-shadow .35s ease; position: relative; z-index: 1;
  background: #fff;
}
.brand:hover img { box-shadow: 0 10px 22px rgba(245,166,35,0.35); }
.brand-fallback {
  width: 56px; height: 56px; border-radius: 50%; background: linear-gradient(135deg,var(--navy),var(--navy-light));
  display: flex; align-items: center; justify-content: center; color: var(--gold-soft); font-size: 24px; flex-shrink: 0;
  box-shadow: 0 6px 16px rgba(10,38,71,0.18); position: relative; z-index: 1;
}
.brand-mark-ring {
  position: absolute; inset: -5px; border-radius: 50%;
  border: 1.5px solid var(--gold-soft); opacity: 0; transform: scale(.85);
  transition: opacity .3s ease, transform .3s ease;
}
.brand:hover .brand-mark-ring { opacity: .8; transform: scale(1); }

.brand-text { display: flex; flex-direction: column; min-width: 0; }
.brand-text .name {
  font-family: 'Poppins', sans-serif; font-weight: 800; line-height: 1.2;
  font-size: clamp(15px, 1.55vw, 21px);
  white-space: nowrap;
  background: linear-gradient(100deg, var(--navy-deep) 30%, var(--navy-light) 45%, var(--gold-deep) 55%, var(--navy-deep) 70%);
  background-size: 250% auto; background-position: 0% 0;
  -webkit-background-clip: text; background-clip: text; color: var(--navy-deep);
  transition: background-position .6s ease;
}
.brand:hover .brand-text .name { -webkit-text-fill-color: transparent; background-position: 100% 0; }
.brand-text .tagline { font-size: 11.5px; color: var(--gold-deep); font-weight: 600; letter-spacing: .4px; margin-top: 2px; white-space: nowrap; }

.main-nav { display: flex; align-items: center; gap: 4px; perspective: 800px; }
.main-nav ul { list-style: none; display: flex; gap: 2px; margin: 0; padding: 0; }
.main-nav > ul > li { position: relative; }
.main-nav > ul > li > a {
  display: flex; align-items: center; gap: 6px; padding: 12px clamp(8px, 1vw, 15px); font-size: clamp(12px, .95vw, 13.5px); font-weight: 600;
  color: var(--ink); text-transform: uppercase; letter-spacing: .2px; border-radius: 8px; white-space: nowrap;
  transition: color .2s, transform .28s cubic-bezier(.2,.8,.3,1.3), box-shadow .28s; position: relative;
  transform-style: preserve-3d;
}
.main-nav > ul > li > a .nav-label { position: relative; }
.main-nav > ul > li > a .nav-label::after {
  content: ''; position: absolute; left: 0; right: 100%; bottom: -4px; height: 2px; background: var(--gold);
  transition: right .25s ease; border-radius: 2px;
}
.main-nav > ul > li:hover > a .nav-label::after,
.main-nav > ul > li.active > a .nav-label::after { right: 0; }
.main-nav > ul > li:hover > a, .main-nav > ul > li.active > a {
  color: var(--navy);
  transform: translateY(-2px) translateZ(10px);
  box-shadow: 0 10px 18px -8px rgba(10,38,71,0.28);
  background: rgba(13,59,102,0.05);
}
.nav-caret { font-size: 9px; transition: transform .25s; }
.main-nav > ul > li:hover .nav-caret { transform: rotate(180deg); }

.main-nav .submenu {
  position: absolute; top: 100%; left: 0; background: #fff; min-width: 210px; border-radius: 10px;
  box-shadow: 0 20px 40px -10px rgba(10,38,71,0.25); padding: 8px; opacity: 0; visibility: hidden;
  transform: translateY(4px) rotateX(-8deg); transform-origin: top center;
  transition: opacity .25s ease, visibility .25s, transform .3s cubic-bezier(.2,.8,.3,1.2); z-index: 50;
}
.main-nav li:hover > .submenu { opacity: 1; visibility: visible; transform: translateY(6px) rotateX(0deg); }
.main-nav .submenu li a { display: block; padding: 9px 12px; font-size: 13px; text-transform: none; font-weight: 500; border-radius: 6px; color: var(--ink); transition: transform .18s, background .18s, color .18s; }
.main-nav .submenu li a:hover { background: var(--bg-soft); color: var(--navy); transform: translateX(3px); }

.btn-admission {
  background: linear-gradient(135deg, var(--gold-soft), var(--gold) 55%, var(--gold-deep));
  color: var(--navy-deep) !important; font-weight: 700; font-size: 13px; padding: 12px 22px; border-radius: 9px;
  text-transform: uppercase; letter-spacing: .3px; white-space: nowrap; display: inline-flex; align-items: center; gap: 9px;
  position: relative; overflow: hidden;
  box-shadow: 0 6px 0 var(--gold-deep), 0 10px 18px rgba(245,166,35,0.35);
  transition: transform .18s ease, box-shadow .18s ease;
}
.btn-admission i { font-size: 11px; transition: transform .2s; }
.btn-admission::before {
  content: ''; position: absolute; top: 0; left: -60%; width: 40%; height: 100%;
  background: linear-gradient(115deg, transparent, rgba(255,255,255,0.55), transparent);
  transform: skewX(-20deg);
}
.btn-admission:hover {
  transform: translateY(2px);
  box-shadow: 0 3px 0 var(--gold-deep), 0 6px 14px rgba(245,166,35,0.4);
  color: var(--navy-deep) !important;
}
.btn-admission:hover i { transform: translateX(3px); }
.btn-admission:hover::before { animation: btnShine .9s ease forwards; }
.btn-admission:active { transform: translateY(5px); box-shadow: 0 1px 0 var(--gold-deep), 0 2px 8px rgba(245,166,35,0.35); }

@keyframes btnShine {
  0% { left: -60%; }
  100% { left: 130%; }
}

.nav-toggle {
  display: none; background: none; border: none; cursor: pointer; width: 40px; height: 40px;
  flex-direction: column; align-items: center; justify-content: center; gap: 5px; border-radius: 8px;
  transition: background .2s;
}
.nav-toggle:hover { background: var(--bg-soft); }
.nav-toggle-bar { width: 22px; height: 2.5px; border-radius: 2px; background: var(--navy); transition: transform .3s ease, opacity .2s ease; }
.nav-toggle.is-active .nav-toggle-bar:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.nav-toggle.is-active .nav-toggle-bar:nth-child(2) { opacity: 0; }
.nav-toggle.is-active .nav-toggle-bar:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

@media (max-width: 1360px) {
  .main-nav { position: fixed; top: 0; right: -320px; width: 290px; height: 100vh; background: #fff; flex-direction: column;
    align-items: flex-start; padding: 70px 20px 20px; box-shadow: -8px 0 24px rgba(0,0,0,0.15); transition: right .35s cubic-bezier(.2,.8,.3,1.1); overflow-y: auto; }
  .main-nav.open { right: 0; }
  .main-nav ul { flex-direction: column; width: 100%; gap: 0; }
  .main-nav > ul > li:hover > a, .main-nav > ul > li.active > a { transform: none; box-shadow: none; }
  .main-nav .submenu { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; display: none; padding-left: 12px; }
  .main-nav li.open .submenu { display: block; }
  .btn-admission { margin-top: 14px; display: inline-flex; }
  .nav-toggle { display: flex; }
  .nav-overlay { display: none; position: fixed; inset: 0; background: rgba(10,38,71,0.5); backdrop-filter: blur(2px); z-index: 90; }
  .nav-overlay.show { display: block; }
}

/* ---------------- Hero Slider ---------------- */
.hero-slider { position: relative; background: var(--navy-deep); overflow: hidden; }
.hero-slide {
  display: none; position: relative; min-height: 560px; background-size: cover; background-position: center;
  align-items: center;
}
.hero-slide.active { display: flex; }
.hero-slide::before {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(10,38,71,0.92) 0%, rgba(10,38,71,0.72) 42%, rgba(10,38,71,0.25) 75%, rgba(10,38,71,0.1) 100%);
}
.hero-content { position: relative; z-index: 2; max-width: 620px; padding: 60px 0; color: #fff; }
.hero-content .eyebrow { font-size: 22px; font-weight: 500; color: #fff; }
.hero-content h1 { font-size: 44px; line-height: 1.15; margin: 6px 0 14px; color: #fff; }
.hero-content h1 .accent { color: var(--gold-soft); display: block; }
.hero-content p { font-size: 16px; color: rgba(255,255,255,0.88); max-width: 480px; margin-bottom: 26px; }
.hero-btns { display: flex; gap: 14px; flex-wrap: wrap; }
.btn-gold {
  background: linear-gradient(135deg, var(--gold-soft), var(--gold) 60%, var(--gold-deep)); color: var(--navy-deep);
  font-weight: 700; font-size: 14px; padding: 14px 26px; border-radius: 8px; display: inline-flex; align-items: center; gap: 10px;
  box-shadow: 0 8px 20px rgba(245,166,35,0.35); transition: transform .15s;
}
.btn-gold:hover { transform: translateY(-2px); color: var(--navy-deep); }
.btn-outline-light {
  border: 2px solid rgba(255,255,255,0.6); color: #fff; font-weight: 700; font-size: 14px; padding: 12px 24px;
  border-radius: 8px; display: inline-flex; align-items: center; gap: 10px; transition: all .15s;
}
.btn-outline-light:hover { background: #fff; color: var(--navy-deep); }
.btn-gold i, .btn-outline-light i { background: rgba(255,255,255,0.25); width: 26px; height: 26px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 11px; }
.btn-gold i { background: rgba(10,38,71,0.15); }

.hero-nav-btn {
  position: absolute; top: 50%; transform: translateY(-50%); width: 42px; height: 42px; border-radius: 50%;
  background: rgba(10,38,71,0.55); color: #fff; display: flex; align-items: center; justify-content: center;
  cursor: pointer; z-index: 5; border: none; font-size: 15px; transition: background .2s;
}
.hero-nav-btn:hover { background: var(--gold); color: var(--navy-deep); }
.hero-prev { left: 20px; }
.hero-next { right: 20px; }
.hero-dots { position: absolute; bottom: 90px; left: 50%; transform: translateX(-50%); z-index: 5; display: flex; gap: 8px; }
@media (max-width: 991px) { .hero-dots { bottom: 40px; } }
.hero-dots button { width: 9px; height: 9px; border-radius: 50%; background: rgba(255,255,255,0.45); border: none; cursor: pointer; padding: 0; transition: all .2s; }
.hero-dots button.active { background: var(--gold); width: 22px; border-radius: 5px; }

/* Quick-links floating bar */
.quicklinks-wrap { position: relative; z-index: 10; }
.quicklinks-bar {
  background: #fff; border-radius: 16px; box-shadow: 0 20px 50px rgba(10,38,71,0.18);
  margin: -55px auto 0; max-width: 1180px; padding: 26px 10px; display: flex; flex-wrap: wrap;
}
.ql-item { flex: 1 1 20%; min-width: 190px; display: flex; gap: 14px; padding: 10px 18px; align-items: flex-start; }
.ql-icon { width: 52px; height: 52px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 20px; flex-shrink: 0; }
.ql-item h6 { margin: 0 0 4px; font-size: 15px; }
.ql-item p { font-size: 12px; color: var(--muted); margin: 0 0 6px; line-height: 1.4; }
.ql-item a { font-size: 12.5px; font-weight: 700; display: inline-flex; align-items: center; gap: 5px; }
.ql-item a:hover { text-decoration: underline; }
.ql-1 { background: #e5f0ff; color: #1565c0; } a.ql-link-1 { color: #1565c0; }
.ql-2 { background: #e5f8ea; color: #1f9d55; } a.ql-link-2 { color: #1f9d55; }
.ql-3 { background: #fff2df; color: var(--gold-deep); } a.ql-link-3 { color: var(--gold-deep); }
.ql-4 { background: #f1e6fb; color: #6a1b9a; } a.ql-link-4 { color: #6a1b9a; }
.ql-5 { background: #fde9ea; color: #c0392b; } a.ql-link-5 { color: #c0392b; }

/* ---------------- Section basics ---------------- */
.section { padding: 70px 0; }
.section-soft { background: var(--bg-soft); }
.section-tag { color: var(--gold-deep); font-weight: 700; font-size: 12.5px; text-transform: uppercase; letter-spacing: 1.4px; display: inline-flex; align-items: center; gap: 8px; margin-bottom: 8px; }
.section-tag::before { content: ''; width: 22px; height: 2px; background: var(--gold-deep); display: inline-block; }
.section-title { font-size: 30px; margin-bottom: 10px; }
.section-desc { color: var(--muted); font-size: 15px; max-width: 640px; }
.header-row { display: flex; justify-content: space-between; align-items: flex-end; flex-wrap: wrap; gap: 16px; margin-bottom: 30px; }
.view-all-link { font-size: 13px; font-weight: 700; color: var(--navy); display: inline-flex; align-items: center; gap: 6px; }
.view-all-link:hover { color: var(--gold-deep); }
.title-underline { width: 46px; height: 3px; background: var(--gold); border-radius: 3px; margin-bottom: 14px; }

/* ---------------- Small home cards row (about / principal / notices / events) ---------------- */
.home-info-grid { display: grid; grid-template-columns: 1fr 1fr 1.15fr 1fr; gap: 26px; align-items: start; }
@media (max-width: 1100px) { .home-info-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 620px) { .home-info-grid { grid-template-columns: 1fr; } }

.about-thumb { border-radius: 10px; overflow: hidden; margin-bottom: 16px; height: 170px; }
.about-thumb img { width: 100%; height: 100%; object-fit: cover; }
.card-text-muted { color: var(--muted); font-size: 13.5px; margin-bottom: 16px; }
.btn-navy-sm { background: var(--navy); color: #fff; font-size: 12.5px; font-weight: 700; padding: 10px 18px; border-radius: 7px; display: inline-block; }
.btn-navy-sm:hover { background: var(--navy-light); color: #fff; }

.principal-block { display: flex; gap: 16px; margin-bottom: 14px; }
.principal-photo { width: 76px; height: 76px; border-radius: 50%; object-fit: cover; flex-shrink: 0; border: 3px solid var(--bg-soft); }
.principal-photo-fallback { width: 76px; height: 76px; border-radius: 50%; background: var(--bg-soft); display: flex; align-items: center; justify-content: center; color: var(--muted); font-size: 28px; flex-shrink: 0; }
.quote-mark { color: var(--gold); font-size: 30px; font-family: Georgia, serif; line-height: .5; }
.principal-msg { font-size: 13.5px; color: #3a4557; font-style: italic; }
.principal-name { font-weight: 700; color: var(--navy-deep); margin-top: 6px; }
.principal-role { font-size: 12.5px; color: var(--muted); }

.list-strip-item { display: flex; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--hairline); }
.list-strip-item:last-child { border-bottom: none; }
.list-strip-icon { width: 38px; height: 38px; border-radius: 8px; flex-shrink: 0; display: flex; align-items: center; justify-content: center; font-size: 14px; position: relative; }
.list-strip-icon .new-badge { position: absolute; top: -6px; right: -6px; background: var(--danger); color: #fff; font-size: 8px; font-weight: 800; padding: 2px 5px; border-radius: 5px; }
.list-strip-title { font-size: 13.5px; font-weight: 700; color: var(--ink); line-height: 1.3; }
.list-strip-date { font-size: 11.5px; color: var(--muted); margin-top: 2px; }

.event-date-badge { width: 52px; height: 52px; border-radius: 8px; background: var(--navy); color: #fff; display: flex; flex-direction: column; align-items: center; justify-content: center; flex-shrink: 0; }
.event-date-badge .day { font-size: 17px; font-weight: 800; line-height: 1; }
.event-date-badge .mon { font-size: 9.5px; text-transform: uppercase; letter-spacing: .5px; }

/* ---------------- Facilities ---------------- */
.facility-card {
  background: #fff; border: 1px solid var(--hairline); border-radius: 14px; padding: 26px 22px; height: 100%;
  transition: all .25s;
}
.facility-card:hover { transform: translateY(-5px); box-shadow: 0 16px 34px rgba(10,38,71,0.1); border-color: transparent; }
.facility-icon { width: 58px; height: 58px; border-radius: 12px; background: linear-gradient(135deg,var(--navy),var(--navy-light)); color: var(--gold-soft); display: flex; align-items: center; justify-content: center; font-size: 22px; margin-bottom: 16px; }
.facility-card h5 { font-size: 16.5px; margin-bottom: 8px; }
.facility-card p { font-size: 13.5px; color: var(--muted); margin: 0; }

/* ---------------- Notices page ---------------- */
.notice-row { display: flex; gap: 16px; align-items: flex-start; background: #fff; border: 1px solid var(--hairline); border-radius: 12px; padding: 18px 20px; margin-bottom: 14px; transition: box-shadow .2s; }
.notice-row:hover { box-shadow: 0 10px 26px rgba(10,38,71,0.08); }
.notice-icon { width: 46px; height: 46px; border-radius: 10px; background: var(--bg-soft); color: var(--navy); display: flex; align-items: center; justify-content: center; font-size: 17px; flex-shrink: 0; position: relative; }
.notice-body { flex: 1; }
.notice-body h5 { font-size: 15.5px; margin-bottom: 6px; }
.notice-meta { font-size: 12px; color: var(--muted); margin-bottom: 8px; display: flex; gap: 14px; flex-wrap: wrap; }
.badge-important { background: #fde9ea; color: var(--danger); font-size: 10.5px; font-weight: 800; padding: 3px 9px; border-radius: 6px; margin-left: 8px; }
.notice-download { font-size: 12.5px; font-weight: 700; color: var(--navy); display: inline-flex; gap: 6px; align-items: center; }

/* ---------------- Events page ---------------- */
.event-card { background: #fff; border: 1px solid var(--hairline); border-radius: 14px; overflow: hidden; height: 100%; transition: all .25s; }
.event-card:hover { transform: translateY(-5px); box-shadow: 0 16px 34px rgba(10,38,71,0.1); }
.event-img { height: 190px; background: linear-gradient(135deg,var(--navy),var(--navy-light)); display: flex; align-items: center; justify-content: center; color: rgba(255,255,255,0.35); font-size: 34px; overflow: hidden; }
.event-img img { width: 100%; height: 100%; object-fit: cover; }
.event-card-body { padding: 20px; }
.event-card-body h5 { font-size: 16px; margin-bottom: 10px; }
.event-info-line { display: flex; gap: 8px; align-items: center; font-size: 12.5px; color: var(--muted); margin-bottom: 6px; }
.event-info-line i { color: var(--gold-deep); width: 14px; }

/* ---------------- Gallery ---------------- */
.gallery-filter { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 28px; }
.gallery-filter button { padding: 9px 18px; border-radius: 24px; border: 1.5px solid var(--hairline); background: #fff; font-size: 13px; font-weight: 600; color: var(--ink); cursor: pointer; transition: all .2s; }
.gallery-filter button.active, .gallery-filter button:hover { background: var(--navy); border-color: var(--navy); color: #fff; }
.gallery-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
@media (max-width: 900px) { .gallery-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .gallery-grid { grid-template-columns: 1fr; } }
.gallery-item { position: relative; border-radius: 12px; overflow: hidden; cursor: pointer; height: 210px; background: var(--bg-soft); }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.gallery-item:hover img { transform: scale(1.08); }
.gallery-item .gi-overlay { position: absolute; inset: 0; background: linear-gradient(0deg, rgba(10,38,71,0.75), transparent 55%); opacity: 0; transition: opacity .25s; display: flex; align-items: flex-end; padding: 14px; }
.gallery-item:hover .gi-overlay { opacity: 1; }
.gi-overlay span { color: #fff; font-size: 13px; font-weight: 600; }

/* Lightbox */
.lightbox-overlay { display: none; position: fixed; inset: 0; background: rgba(10,20,35,0.92); z-index: 2000; align-items: center; justify-content: center; padding: 30px; }
.lightbox-overlay.show { display: flex; }
.lightbox-overlay img { max-width: 90vw; max-height: 85vh; border-radius: 8px; }
.lightbox-close { position: absolute; top: 24px; right: 30px; color: #fff; font-size: 30px; cursor: pointer; }
.lightbox-nav { position: absolute; top: 50%; transform: translateY(-50%); color: #fff; font-size: 26px; cursor: pointer; padding: 10px 16px; }
.lightbox-prev { left: 10px; } .lightbox-next { right: 10px; }

/* ---------------- Generic content page ---------------- */
.page-hero { background: linear-gradient(120deg, var(--navy-deep), var(--navy)); color: #fff; padding: 46px 0; position: relative; overflow: hidden; }
.page-hero::before {
  content: ''; position: absolute; inset: 0; opacity: .5;
  background-image: radial-gradient(circle at 85% 20%, rgba(245,166,35,0.18), transparent 40%);
}
.page-hero h1 { color: #fff; font-size: 32px; margin: 0; position: relative; }
.breadcrumb-row { display: flex; gap: 8px; align-items: center; font-size: 13px; color: rgba(255,255,255,0.7); margin-top: 8px; position: relative; }
.breadcrumb-row a { color: rgba(255,255,255,0.7); } .breadcrumb-row a:hover { color: var(--gold-soft); }

.content-block img { border-radius: 12px; }
.content-block h4, .content-block h5 { color: var(--navy-deep); margin-top: 22px; }
.content-block ul, .content-block ol { color: #3a4557; font-size: 14.5px; padding-left: 20px; }
.content-block p { color: #3a4557; font-size: 15px; }

.value-card { text-align: center; padding: 26px 18px; border-radius: 12px; background: var(--bg-soft); }
.value-card i { font-size: 28px; color: var(--gold-deep); margin-bottom: 12px; }
.value-card h6 { font-size: 14.5px; }

/* Academics cards */
.academic-card { background: #fff; border: 1px solid var(--hairline); border-radius: 14px; padding: 26px; height: 100%; }
.academic-card .num { font-size: 12px; font-weight: 800; color: var(--gold-deep); letter-spacing: 1px; }
.academic-card h5 { margin: 10px 0; font-size: 17px; }
.academic-card p { color: var(--muted); font-size: 13.5px; margin: 0; }

/* Admission page */
.admission-cta-box { background: linear-gradient(120deg, var(--navy-deep), var(--navy-light)); border-radius: 18px; padding: 40px; color: #fff; }
.form-control-custom, textarea.form-control-custom, select.form-control-custom {
  width: 100%; padding: 12px 14px; border: 1.5px solid var(--hairline); border-radius: 9px; font-size: 14px; font-family: inherit;
  transition: border-color .2s; background: #fff; color: var(--ink);
}
.form-control-custom:focus { outline: none; border-color: var(--navy); }
.form-label-custom { font-size: 12.5px; font-weight: 700; color: var(--navy-deep); margin-bottom: 6px; display: block; text-transform: uppercase; letter-spacing: .4px; }
.form-group-custom { margin-bottom: 16px; }
.form-card { background: #fff; border-radius: 16px; box-shadow: 0 16px 40px rgba(10,38,71,0.1); padding: 34px; border: 1px solid var(--hairline); }
.btn-submit { background: linear-gradient(135deg,var(--gold-soft),var(--gold) 60%,var(--gold-deep)); color: var(--navy-deep); font-weight: 800; padding: 13px 28px; border-radius: 9px; border: none; font-size: 14px; cursor: pointer; text-transform: uppercase; letter-spacing: .4px; transition: transform .15s; }
.btn-submit:hover { transform: translateY(-2px); }

.alert-box { padding: 14px 18px; border-radius: 10px; font-size: 13.5px; margin-bottom: 18px; display: flex; gap: 10px; align-items: flex-start; }
.alert-success { background: #e6f7ec; color: #146c33; border: 1px solid #b9e6c8; }
.alert-danger { background: #fde9ea; color: #a12a2a; border: 1px solid #f3bcbc; }

/* Contact page */
.contact-info-card { display: flex; gap: 14px; padding: 18px; border: 1px solid var(--hairline); border-radius: 12px; margin-bottom: 14px; align-items: flex-start; }
.contact-info-icon { width: 44px; height: 44px; border-radius: 10px; background: var(--bg-soft); color: var(--navy); display: flex; align-items: center; justify-content: center; font-size: 16px; flex-shrink: 0; }
.map-wrap { border-radius: 14px; overflow: hidden; border: 1px solid var(--hairline); }
.map-wrap iframe { width: 100%; display: block; }

/* ---------------- Admission strip (CTA before footer) ---------------- */
.cta-strip { background: linear-gradient(120deg, var(--navy-deep), var(--navy) 55%, var(--navy-light)); border-radius: 18px; padding: 40px; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 20px; color: #fff; }
.cta-strip h3 { color: #fff; margin: 0 0 6px; font-size: 22px; }
.cta-strip p { color: rgba(255,255,255,0.8); margin: 0; font-size: 14px; }

/* ---------------- Footer ---------------- */
.site-footer { background: var(--navy-deep); color: #b9c8de; padding: 60px 0 0; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 34px; padding-bottom: 40px; }
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-brand { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.footer-brand img { width: 42px; height: 42px; object-fit: contain; }
.footer-brand .fname { color: #fff; font-weight: 800; font-size: 17px; font-family: 'Poppins', sans-serif; }
.footer-col h6 { color: #fff; font-size: 14px; text-transform: uppercase; letter-spacing: .6px; margin-bottom: 18px; }
.footer-col p, .footer-col li, .footer-col a { font-size: 13.5px; color: #b9c8de; }
.footer-col ul { list-style: none; padding: 0; margin: 0; }
.footer-col ul li { margin-bottom: 11px; }
.footer-col ul li a { display: flex; align-items: center; gap: 8px; transition: color .2s; }
.footer-col ul li a:hover { color: var(--gold-soft); }
.footer-contact li { display: flex; gap: 10px; align-items: flex-start; }
.footer-contact i { color: var(--gold-soft); margin-top: 3px; }
.footer-social { display: flex; gap: 10px; margin-top: 16px; }
.footer-social a { width: 34px; height: 34px; border-radius: 50%; background: rgba(255,255,255,0.08); display: flex; align-items: center; justify-content: center; color: #fff; transition: background .2s; }
.footer-social a:hover { background: var(--gold); color: var(--navy-deep); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.1); padding: 18px 0; text-align: center; font-size: 12.5px; color: #8fa3c0; }
.footer-bottom a { color: #cfe0f5; }

/* WhatsApp float */
.whatsapp-float {
  position: fixed; bottom: 24px; right: 24px; width: 56px; height: 56px; border-radius: 50%; background: #25D366;
  color: #fff; display: flex; align-items: center; justify-content: center; font-size: 26px; z-index: 999;
  box-shadow: 0 10px 24px rgba(37,211,102,0.4); transition: transform .2s;
}
.whatsapp-float:hover { transform: scale(1.08); color: #fff; }

/* Back to top */
.back-to-top { position: fixed; bottom: 24px; left: 24px; width: 42px; height: 42px; border-radius: 50%; background: var(--navy); color: #fff; display: none; align-items: center; justify-content: center; z-index: 998; cursor: pointer; box-shadow: 0 8px 20px rgba(10,38,71,0.3); }
.back-to-top.show { display: flex; }

/* Pagination (shared) */
.pg-nav { display: flex; justify-content: center; gap: 8px; margin-top: 30px; }
.pg-nav a, .pg-nav span { padding: 8px 14px; border-radius: 8px; border: 1.5px solid var(--hairline); font-size: 13px; font-weight: 600; color: var(--ink); }
.pg-nav a:hover { background: var(--navy); border-color: var(--navy); color: #fff; }
.pg-nav .current { background: var(--navy); border-color: var(--navy); color: #fff; }

@media (max-width: 767px) {
  .hero-content h1 { font-size: 32px; }
  .section-title { font-size: 24px; }
  .quicklinks-bar { margin-top: -30px; padding: 16px; }
}

/* =========================================================
   Chatbot Widget
   ========================================================= */
.chatbot-widget {
  --cb-theme: var(--navy);
  --cb-accent: var(--gold);
  position: fixed; bottom: 24px; z-index: 1200; perspective: 1200px;
}
.chatbot-pos-right { right: 24px; }
.chatbot-pos-left  { left: 24px; }
@media (max-width: 480px) {
  .chatbot-pos-right { right: 16px; }
  .chatbot-pos-left  { left: 16px; }
}

/* ---- Launcher bubble ---- */
.chatbot-launcher {
  position: relative; width: 62px; height: 62px; border-radius: 50%; border: none; cursor: pointer;
  background: linear-gradient(135deg, var(--cb-theme), var(--navy-deep));
  box-shadow: 0 12px 26px rgba(10,38,71,0.35), 0 0 0 6px rgba(255,255,255,0.7);
  display: flex; align-items: center; justify-content: center; color: #fff;
  transform-style: preserve-3d; transition: transform .3s cubic-bezier(.34,1.56,.64,1), box-shadow .3s;
  animation: chatbotFloat 3.2s ease-in-out infinite;
}
.chatbot-launcher:hover { transform: translateY(-4px) scale(1.06); box-shadow: 0 18px 34px rgba(10,38,71,0.4), 0 0 0 6px rgba(255,255,255,0.7); }
.chatbot-launcher-ring {
  position: absolute; inset: -8px; border-radius: 50%; border: 2px solid var(--cb-accent);
  opacity: 0; animation: chatbotPulse 2.6s ease-out infinite;
}
.chatbot-launcher-icon { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-size: 24px; transition: transform .3s ease, opacity .25s ease; }
.chatbot-launcher-icon img { width: 34px; height: 34px; border-radius: 50%; object-fit: cover; }
.chatbot-icon-close { opacity: 0; transform: rotate(-90deg) scale(.5); }
.chatbot-widget.is-open .chatbot-icon-open { opacity: 0; transform: rotate(90deg) scale(.5); }
.chatbot-widget.is-open .chatbot-icon-close { opacity: 1; transform: rotate(0) scale(1); }
.chatbot-launcher-badge {
  position: absolute; top: -3px; right: -3px; min-width: 20px; height: 20px; padding: 0 4px; border-radius: 50%;
  background: var(--cb-accent); color: var(--navy-deep); font-size: 11px; font-weight: 800;
  display: none; align-items: center; justify-content: center; box-shadow: 0 0 0 2px #fff;
  animation: chatbotBadgeBounce .5s ease;
}
.chatbot-launcher-badge.show { display: flex; }

@keyframes chatbotFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-5px); }
}
@keyframes chatbotPulse {
  0% { transform: scale(0.9); opacity: .7; }
  80% { opacity: 0; }
  100% { transform: scale(1.35); opacity: 0; }
}
@keyframes chatbotBadgeBounce {
  0% { transform: scale(0); } 60% { transform: scale(1.25); } 100% { transform: scale(1); }
}

/* ---- Chat window: 3D pop-in entrance ---- */
.chatbot-window {
  position: absolute; bottom: 78px; width: 360px; max-width: calc(100vw - 32px); height: 500px; max-height: 72vh;
  background: #fff; border-radius: 18px; box-shadow: 0 30px 60px -12px rgba(10,38,71,0.35), 0 0 0 1px rgba(10,38,71,0.05);
  display: flex; flex-direction: column; overflow: hidden;
  transform-origin: bottom var(--cb-origin, right);
  transform: translateY(16px) scale(.85) rotateX(-8deg); opacity: 0; visibility: hidden;
  transition: transform .35s cubic-bezier(.2,.85,.3,1.25), opacity .28s ease, visibility .35s;
}
.chatbot-pos-right .chatbot-window { right: 0; --cb-origin: bottom right; }
.chatbot-pos-left .chatbot-window { left: 0; --cb-origin: bottom left; }
.chatbot-widget.is-open .chatbot-window { transform: translateY(0) scale(1) rotateX(0); opacity: 1; visibility: visible; }
@media (max-width: 480px) {
  .chatbot-window { width: calc(100vw - 32px); height: 66vh; }
}

.chatbot-header {
  background: linear-gradient(120deg, var(--cb-theme), var(--navy-deep));
  padding: 16px 16px; display: flex; align-items: center; gap: 12px; color: #fff; flex-shrink: 0;
}
.chatbot-header-avatar { position: relative; width: 40px; height: 40px; border-radius: 50%; background: rgba(255,255,255,0.15); display: flex; align-items: center; justify-content: center; font-size: 17px; flex-shrink: 0; }
.chatbot-header-avatar img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; }
.chatbot-online-dot { position: absolute; bottom: -1px; right: -1px; width: 11px; height: 11px; border-radius: 50%; background: #37d67a; border: 2px solid var(--cb-theme); }
.chatbot-header-text { flex: 1; min-width: 0; }
.chatbot-header-name { font-weight: 700; font-size: 14.5px; }
.chatbot-header-status { font-size: 11.5px; color: rgba(255,255,255,0.75); display: flex; align-items: center; gap: 5px; }
.chatbot-header-status::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: #37d67a; }
.chatbot-close-btn { background: rgba(255,255,255,0.12); border: none; color: #fff; width: 30px; height: 30px; border-radius: 50%; cursor: pointer; transition: background .2s, transform .2s; }
.chatbot-close-btn:hover { background: rgba(255,255,255,0.25); transform: rotate(90deg); }

.chatbot-messages { flex: 1; overflow-y: auto; padding: 16px; display: flex; flex-direction: column; gap: 10px; background: var(--bg-soft); }
.chatbot-bubble { display: flex; max-width: 84%; }
.chatbot-bubble-bot { align-self: flex-start; }
.chatbot-bubble-user { align-self: flex-end; }
.chatbot-bubble-enter { opacity: 0; transform: translateY(10px) scale(.96); transition: opacity .28s ease, transform .28s cubic-bezier(.2,.8,.3,1.2); }
.chatbot-bubble-shown { opacity: 1; transform: translateY(0) scale(1); }
.chatbot-bubble-inner { padding: 10px 14px; border-radius: 14px; font-size: 13.5px; line-height: 1.5; }
.chatbot-bubble-inner p { margin: 0 0 6px; }
.chatbot-bubble-inner p:last-child { margin-bottom: 0; }
.chatbot-bubble-bot .chatbot-bubble-inner { background: #fff; color: var(--ink); border-bottom-left-radius: 4px; box-shadow: 0 3px 10px rgba(10,38,71,0.07); }
.chatbot-bubble-user .chatbot-bubble-inner { background: linear-gradient(135deg, var(--cb-theme), var(--navy-light)); color: #fff; border-bottom-right-radius: 4px; }

.chatbot-typing { padding: 0 16px; background: var(--bg-soft); }
.chatbot-bubble-typing .chatbot-bubble-inner { display: none; }
.chatbot-bubble-typing { display: inline-flex; gap: 4px; padding: 12px 16px; background: #fff; border-radius: 14px; border-bottom-left-radius: 4px; box-shadow: 0 3px 10px rgba(10,38,71,0.07); margin-bottom: 10px; }
.chatbot-bubble-typing span { width: 6px; height: 6px; border-radius: 50%; background: var(--muted); animation: chatbotTypingDot 1.2s infinite ease-in-out; }
.chatbot-bubble-typing span:nth-child(2) { animation-delay: .15s; }
.chatbot-bubble-typing span:nth-child(3) { animation-delay: .3s; }
@keyframes chatbotTypingDot {
  0%, 60%, 100% { transform: translateY(0); opacity: .5; }
  30% { transform: translateY(-4px); opacity: 1; }
}

.chatbot-input-row { display: flex; gap: 8px; padding: 12px; border-top: 1px solid var(--hairline); background: #fff; flex-shrink: 0; }
.chatbot-input { flex: 1; border: 1.5px solid var(--hairline); border-radius: 24px; padding: 10px 16px; font-size: 13.5px; font-family: inherit; outline: none; transition: border-color .2s; }
.chatbot-input:focus { border-color: var(--cb-theme); }
.chatbot-send-btn {
  width: 40px; height: 40px; border-radius: 50%; border: none; flex-shrink: 0; cursor: pointer;
  background: linear-gradient(135deg, var(--cb-accent), var(--gold-deep)); color: var(--navy-deep); font-size: 14px;
  display: flex; align-items: center; justify-content: center; transition: transform .15s ease;
}
.chatbot-send-btn:hover { transform: scale(1.08) rotate(6deg); }
.chatbot-send-btn:active { transform: scale(.94); }
.chatbot-footer-note { text-align: center; font-size: 10.5px; color: var(--muted); padding: 6px 0 10px; background: #fff; }
