/* =============================================================
   BHALUKA NABODAYA SHISHU MANDIR — Premium Component Styles
   ============================================================= */

/* ---- S2 · Hero ----------------------------------------------------------- */
.hero {
  position: relative;
  overflow: hidden;
  background-color: #0B192C;
  min-height: 480px;
}
.hero-slider {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero-slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 1.6s ease-in-out;
  will-change: opacity;
  animation: heroKenBurns 24s ease-in-out infinite alternate;
}
.hero-slide.is-active { opacity: 1; }
@keyframes heroKenBurns {
  from { transform: scale(1); }
  to { transform: scale(1.09); }
}

/* Homepage campus carousel — reference-led full-bleed hero */
.hero-campus {
  min-height: clamp(520px, calc(100vh - 7.5rem), 760px);
  isolation: isolate;
}
.hero-campus::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(6, 14, 19, 0.10) 25%, rgba(6, 14, 19, 0.04) 50%, rgba(6, 14, 19, 0.76) 100%);
}
.hero-campus .shell,
.hero-campus > .hero-scroll-cue,
.hero-campus > .hero-dots,
.hero-campus > .absolute.inset-0.z-10 { display: none; }
.hero-campus-ui { position: absolute; inset: 0; z-index: 3; pointer-events: none; }
.hero-campus-ui > * { pointer-events: auto; }
.hero-campus-title {
  position: absolute;
  left: 50%;
  bottom: 54px;
  width: min(94%, 760px);
  transform: translateX(-50%);
  text-align: center;
  color: #fff;
  text-shadow: 0 2px 15px rgba(0, 0, 0, .42);
}
.hero-campus-title p {
  margin: 0 0 2px;
  font-family: Outfit, sans-serif;
  font-size: clamp(1rem, 2.2vw, 1.75rem);
  font-weight: 400;
  letter-spacing: .16em;
}
.hero-campus-title h1 {
  margin: 0;
  font-family: Outfit, sans-serif;
  font-size: clamp(2.45rem, 6vw, 5.2rem);
  line-height: .92;
  font-weight: 800;
  letter-spacing: .08em;
}
.hero-arrow {
  position: absolute;
  top: 50%;
  z-index: 4;
  width: 56px;
  height: 56px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 50%;
  color: #fff;
  font-size: 1.35rem;
  background: rgba(17, 29, 31, .42);
  transform: translateY(-50%);
  transition: background-color .2s ease, transform .2s ease;
}
.hero-arrow:hover { background: rgba(17, 29, 31, .72); transform: translateY(-50%) scale(1.08); }
.hero-arrow-prev { left: 34px; }
.hero-arrow-next { right: 34px; }
.hero-campus-bottom {
  position: absolute;
  right: 28px;
  bottom: 25px;
  left: 28px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  color: #fff;
  font-family: Outfit, sans-serif;
}
.hero-community { display: flex; align-items: center; gap: 12px; }
.hero-bell {
  display: grid;
  width: 50px;
  height: 50px;
  place-items: center;
  border-radius: 50%;
  background: #f47a20;
  font-size: 1.25rem;
}
.hero-community-links { display: flex; gap: 9px; font-size: .78rem; font-weight: 700; }
.hero-community-links a { color: #fff; text-decoration: none; }
.hero-community-links a:hover { color: #ffc28c; }
.hero-community p { margin: 7px 0 0; font-size: .78rem; font-weight: 600; }
.hero-campus-copy { text-align: right; font-size: .76rem; font-weight: 700; line-height: 1.45; }
.hero-tour-link {
  position: absolute;
  top: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 54px;
  height: 252px;
  color: #fff;
  background: #ef6c19;
  font-family: Outfit, sans-serif;
  font-size: .9rem;
  font-weight: 600;
  letter-spacing: .08em;
  text-decoration: none;
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  transition: background-color .2s ease, width .2s ease;
}
.hero-tour-link:hover { width: 61px; color: #fff; background: #d9590a; }
.hero-campus-dots { position: absolute; bottom: 10px; left: 50%; display: flex; gap: 7px; transform: translateX(-50%); }
.hero-campus-dots .hero-dot { width: 7px; height: 7px; padding: 0; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .55); }
.hero-campus-dots .hero-dot.is-active { width: 24px; border-radius: 999px; background: #f47a20; }
@media (max-width: 640px) {
  .hero-campus { min-height: 550px; }
  .hero-slide { background-position: center; }
  .hero-arrow { width: 42px; height: 42px; font-size: 1rem; }
  .hero-arrow-prev { left: 14px; }
  .hero-arrow-next { right: 14px; }
  .hero-tour-link { width: 41px; height: 192px; font-size: .7rem; }
  .hero-campus-title { bottom: 101px; }
  .hero-campus-bottom { right: 14px; bottom: 26px; left: 14px; }
  .hero-bell { width: 40px; height: 40px; font-size: 1rem; }
  .hero-community-links, .hero-community p, .hero-campus-copy { font-size: .62rem; }
  .hero-community-links { gap: 5px; }
}

.hero-orb {
  position: absolute;
  border-radius: 9999px;
  filter: blur(80px);
  pointer-events: none;
}
.hero-orb-1 { width: 380px; height: 380px; background: rgba(0, 91, 148, 0.4); top: -120px; right: -60px; }
.hero-orb-2 { width: 340px; height: 340px; background: rgba(218, 165, 32, 0.22); bottom: -120px; left: -50px; }
.hero-watermark {
  position: absolute;
  right: 2%;
  bottom: 5rem;
  font-size: clamp(3rem, 11vw, 8.5rem);
  color: rgba(255, 255, 255, 0.035);
  white-space: nowrap;
  pointer-events: none;
  line-height: 1;
}

.hero-stack { padding: 1.6rem 0.6rem; }
.hero-stack .glass-dark {
  border-color: rgba(218, 165, 32, 0.4);
  box-shadow:
    0 12px 40px rgba(0, 0, 0, 0.45),
    0 0 0 1px rgba(0, 91, 148, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
}
.hero-badge {
  position: absolute;
  top: -20px;
  left: -14px;
  z-index: 20;
  width: 96px;
  height: 96px;
  border-radius: 9999px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #0B192C;
  background: linear-gradient(145deg, #F8E08E, #DAA520 60%, #B8860B);
  border: 3px solid rgba(255, 255, 255, 0.95);
  box-shadow: 0 16px 36px -8px rgba(218, 165, 32, 0.7);
}
.hero-chip {
  position: absolute;
  bottom: -18px;
  right: -10px;
  z-index: 20;
  display: flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.75rem 1.25rem;
  border-radius: 9999px;
  font-size: 0.85rem;
  font-weight: 700;
  color: #0B192C;
  background: #FFFFFF;
  border: 1px solid rgba(218, 165, 32, 0.4);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.25);
}

.hero-marquee {
  position: relative;
  z-index: 2;
  overflow: hidden;
  padding: 0.9rem 0;
  background: rgba(11, 25, 44, 0.85);
  border-top: 1px solid rgba(218, 165, 32, 0.25);
  border-bottom: 1px solid rgba(218, 165, 32, 0.15);
}

/* ---- Campus highlight cards --------------------------------------------- */
.campus-card-img {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 10;
}
.campus-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.card-hover:hover .campus-card-img img { transform: scale(1.08); }

/* ---- Glimpse photo tiles (About page) ---------------------------------- */
.glimpse-tile {
  position: relative;
  display: block;
  width: 100%;
  overflow: hidden;
  border-radius: 20px;
  border: 1px solid #E2E8F0;
  background: #CBD5E1;
  box-shadow: 0 12px 28px -14px rgba(11, 25, 44, 0.2);
  cursor: pointer;
}
.glimpse-tile img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.65s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.glimpse-tile:hover img { transform: scale(1.08); }

/* ---- Marquee ----------------------------------------------------------- */
.marquee-track {
  display: flex;
  gap: 3rem;
  width: max-content;
  animation: marqueeMove 35s linear infinite;
}
.marquee-track span {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  white-space: nowrap;
  font-size: 0.88rem;
  font-weight: 600;
  color: #FFFDF0;
}
.hero-marquee:hover .marquee-track { animation-play-state: paused; }
@keyframes marqueeMove { to { transform: translateX(-50%); } }

/* ---- Stats -------------------------------------------------------------- */
.stats-panel {
  background: linear-gradient(135deg, #0B192C 0%, #1E3E62 100%);
  border: 1px solid rgba(218, 165, 32, 0.3);
  box-shadow: 0 30px 60px -20px rgba(11, 25, 44, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

/* ---- Programme cards ---------------------------------------------------- */
.programme-card {
  display: block;
  background: #FFFFFF;
  border: 1px solid #E2E8F0;
  border-radius: 24px;
  overflow: hidden;
  transition: transform 0.35s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.35s ease;
}
.programme-card:hover {
  transform: translateY(-8px);
  border-color: rgba(218, 165, 32, 0.5);
  box-shadow: 0 24px 48px -16px rgba(11, 25, 44, 0.22);
}
.programme-card-top {
  position: relative;
  height: 120px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #0B192C, #005B94);
  overflow: hidden;
}

/* ---- Notice board ------------------------------------------------------- */
.notice-board {
  position: relative;
  background: linear-gradient(145deg, #0B192C 0%, #142843 100%);
  border: 1px solid rgba(218, 165, 32, 0.25);
  border-radius: 28px;
}
.notice-viewport {
  height: 330px;
  overflow-y: auto;
  padding: 0.5rem;
}
.notice-item {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  padding: 1rem;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  cursor: pointer;
  transition: background-color 0.2s ease, transform 0.2s ease;
}
.notice-item:hover {
  background: rgba(218, 165, 32, 0.15);
  border-color: rgba(218, 165, 32, 0.4);
  transform: translateX(4px);
}
.notice-item .notice-ico {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, #F8E08E, #DAA520);
  color: #0B192C;
  font-size: 0.85rem;
  flex-shrink: 0;
}

/* ---- Gallery ------------------------------------------------------------ */
.gallery-tile {
  position: relative;
  overflow: hidden;
  border-radius: 20px;
  border: 1px solid #E2E8F0;
  background: #CBD5E1;
  cursor: pointer;
}
.gallery-tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.gallery-tile:hover img { transform: scale(1.08); }
.gallery-cap {
  position: absolute;
  inset: auto 0 0 0;
  padding: 1.5rem 1rem 1rem;
  background: linear-gradient(to top, rgba(11, 25, 44, 0.95), transparent);
  color: #FFFFFF;
  transform: translateY(8px);
  opacity: 0;
  transition: transform 0.3s ease, opacity 0.3s ease;
}
.gallery-tile:hover .gallery-cap { transform: translateY(0); opacity: 1; }

/* ---- Admission CTA ------------------------------------------------------ */
.admission-cta {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #0B192C 0%, #142843 60%, #004070 100%);
  color: #FFFFFF;
}
.cta-strip-inner {
  padding: 3rem 2rem;
  border-radius: 32px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(218, 165, 32, 0.3);
  backdrop-filter: blur(12px);
}

/* ---- Mobile accordion --------------------------------------------------- */
.m-acc-panel {
  display: none;
}
.m-acc.is-open .m-acc-panel {
  display: block;
  animation: fadeIn 0.3s ease;
}
.m-acc-caret-wrap {
  transition: transform 0.3s ease;
}
.m-acc.is-open .m-acc-caret-wrap {
  transform: rotate(180deg);
}
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(-4px); }
  to { opacity: 1; transform: translateY(0); }
}
