:root {
  --bvs-navy: #10275c;
  --bvs-navy-dark: #0a1a3d;
  --bvs-saffron: #f5a623;
  --bvs-saffron-dark: #d98a0a;
  --bvs-green: #1f8a4c;
  --bvs-cream: #fff8ec;
  --bvs-gray: #5b6474;
  font-family: 'Poppins', sans-serif;
}

html, body { height: 100%; }
body {
  font-family: 'Poppins', sans-serif;
  color: #2b2f38;
  background: #fbfbfd;
}
h1, h2, h3, h4, .display-heading, .brand-title, .navbar-brand {
  font-family: 'Baloo 2', 'Poppins', sans-serif;
}

a { color: var(--bvs-navy); }
a:hover { color: var(--bvs-saffron-dark); }

/* ---------- Top bar ---------- */
.topbar {
  background: var(--bvs-navy-dark);
  color: #d9e0f5;
  font-size: 0.82rem;
  padding: 6px 0;
}
.topbar-item { color: #d9e0f5; }
.topbar a.topbar-item:hover { color: var(--bvs-saffron); }

/* ---------- Header / Nav ---------- */
.site-header {
  background: #ffffff;
  box-shadow: 0 2px 14px rgba(16, 39, 92, 0.08);
}
.brand-badge {
  width: 46px; height: 46px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--bvs-navy), var(--bvs-navy-dark));
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 1rem; letter-spacing: 0.5px;
  flex-shrink: 0;
}
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-title { font-weight: 700; color: var(--bvs-navy); font-size: 1.15rem; }
.brand-sub { font-size: 0.68rem; color: var(--bvs-gray); font-weight: 500; }

.navbar-nav .nav-link {
  color: #2b2f38;
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.55rem 0.9rem;
  border-radius: 8px;
  transition: all .15s ease;
}
.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
  color: var(--bvs-navy);
  background: rgba(245, 166, 35, 0.15);
}
.btn-login {
  background: var(--bvs-saffron);
  color: #1a1a1a !important;
  font-weight: 700;
  border-radius: 8px;
  padding: 0.5rem 1.1rem;
  border: none;
}
.btn-login:hover { background: var(--bvs-saffron-dark); color: #fff !important; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  color: #fff;
  overflow: hidden;
  background: linear-gradient(120deg, rgba(10,26,61,0.92), rgba(16,39,92,0.82)), var(--hero-img) center/cover no-repeat;
  min-height: 78vh;
  display: flex;
  align-items: center;
}
.hero::after {
  content: "";
  position: absolute; inset: 0;
  background: radial-gradient(circle at 85% 20%, rgba(245,166,35,0.25), transparent 45%);
  pointer-events: none;
}
.hero .eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.25);
  color: #ffe6b3;
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.4px;
}
.hero h1 {
  font-size: clamp(2.1rem, 4.2vw, 3.4rem);
  font-weight: 800;
  line-height: 1.15;
}
.hero .lead { color: #dfe6f7; font-size: 1.1rem; max-width: 560px; }
.hero-stats {
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: 16px;
  backdrop-filter: blur(6px);
}
.hero-stats .stat-num { font-size: 1.7rem; font-weight: 800; color: #ffcf70; }
.hero-stats .stat-label { font-size: 0.78rem; color: #d9e0f5; text-transform: uppercase; letter-spacing: 0.5px; }

/* ---------- Page header (inner pages) ---------- */
.page-header {
  background: linear-gradient(120deg, var(--bvs-navy-dark), var(--bvs-navy));
  color: #fff;
  padding: 3.2rem 0 2.2rem;
  position: relative;
}
.page-header h1 { font-weight: 800; font-size: clamp(1.7rem, 3vw, 2.4rem); }
.page-header .breadcrumb-custom { color: #cdd6ef; font-size: 0.9rem; }
.page-header .breadcrumb-custom a { color: #ffcf70; text-decoration: none; }

/* ---------- Section utility ---------- */
.section { padding: 4.2rem 0; }
.section-tag {
  color: var(--bvs-saffron-dark);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: 0.8rem;
}
.section-title { font-weight: 800; color: var(--bvs-navy); font-size: clamp(1.5rem, 2.6vw, 2.1rem); }
.section-sub { color: var(--bvs-gray); max-width: 640px; }

.divider-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--bvs-saffron); display: inline-block; }

/* ---------- Cards ---------- */
.info-card {
  background: #fff;
  border-radius: 16px;
  padding: 1.9rem 1.6rem;
  box-shadow: 0 8px 24px rgba(16,39,92,0.06);
  border: 1px solid #eef0f6;
  height: 100%;
  transition: transform .2s ease, box-shadow .2s ease;
}
.info-card:hover { transform: translateY(-4px); box-shadow: 0 14px 30px rgba(16,39,92,0.12); }
.icon-tile {
  width: 54px; height: 54px;
  border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.4rem;
  background: rgba(16,39,92,0.08);
  color: var(--bvs-navy);
  margin-bottom: 1rem;
}
.icon-tile.saffron { background: rgba(245,166,35,0.16); color: var(--bvs-saffron-dark); }
.icon-tile.green { background: rgba(31,138,76,0.14); color: var(--bvs-green); }

/* ---------- Notifications (home page) ---------- */
.notice-board {
  background: #fff;
  border-radius: 18px;
  border: 1px solid #eef0f6;
  box-shadow: 0 10px 28px rgba(16,39,92,0.07);
  overflow: hidden;
}
.notice-board-header {
  background: linear-gradient(120deg, var(--bvs-navy), var(--bvs-navy-dark));
  color: #fff;
  padding: 1.1rem 1.4rem;
  display: flex; align-items: center; justify-content: space-between;
}
.notice-item {
  padding: 1rem 1.4rem;
  border-bottom: 1px dashed #e6e9f2;
  display: flex; gap: 1rem; align-items: flex-start;
}
.notice-item:last-child { border-bottom: none; }
.notice-date {
  min-width: 58px; text-align: center;
  background: var(--bvs-cream);
  border: 1px solid #f1e0c1;
  border-radius: 10px;
  padding: 6px 4px;
  color: var(--bvs-navy);
  flex-shrink: 0;
}
.notice-date .d { font-weight: 800; font-size: 1.1rem; line-height: 1; }
.notice-date .m { font-size: 0.68rem; text-transform: uppercase; font-weight: 600; }
.badge-tag { font-size: 0.68rem; font-weight: 700; padding: 0.3em 0.6em; border-radius: 999px; }

/* ---------- Stats strip ---------- */
.stats-strip {
  background: var(--bvs-cream);
  border-top: 1px solid #f1e5c9;
  border-bottom: 1px solid #f1e5c9;
}
.stats-strip .num { font-size: 2.1rem; font-weight: 800; color: var(--bvs-navy); }
.stats-strip .label { color: var(--bvs-gray); font-weight: 600; font-size: 0.85rem; }

/* ---------- Gallery ---------- */
.gallery-item {
  border-radius: 14px;
  overflow: hidden;
  position: relative;
  box-shadow: 0 6px 18px rgba(16,39,92,0.08);
  aspect-ratio: 4/3;
}
.gallery-item img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .35s ease;
}
.gallery-item:hover img { transform: scale(1.08); }
.gallery-item .cap {
  position: absolute; inset: auto 0 0 0;
  background: linear-gradient(0deg, rgba(10,26,61,0.85), transparent);
  color: #fff; padding: 0.7rem 0.9rem 0.5rem; font-size: 0.82rem; font-weight: 600;
  opacity: 0; transition: opacity .25s ease;
}
.gallery-item:hover .cap { opacity: 1; }

/* ---------- Calendar ---------- */
.cal-item {
  background: #fff;
  border: 1px solid #eef0f6;
  border-left: 5px solid var(--bvs-navy);
  border-radius: 12px;
  padding: 1rem 1.2rem;
  display: flex; gap: 1rem; align-items: center;
  box-shadow: 0 4px 14px rgba(16,39,92,0.05);
}
.cal-item.holiday { border-left-color: var(--bvs-green); }
.cal-item.exam { border-left-color: #c0392b; }
.cal-item.event { border-left-color: var(--bvs-saffron); }
.cal-item.admission { border-left-color: #7d3cad; }
.cal-date-box {
  min-width: 64px; text-align: center;
  background: var(--bvs-navy);
  color: #fff; border-radius: 10px; padding: 8px 6px;
  flex-shrink: 0;
}
.cal-date-box .d { font-size: 1.25rem; font-weight: 800; line-height: 1; }
.cal-date-box .m { font-size: 0.68rem; text-transform: uppercase; letter-spacing: .5px; }

/* ---------- Facility ---------- */
.lab-chip {
  background: #fff;
  border: 1px solid #eef0f6;
  border-radius: 12px;
  padding: 1rem;
  display: flex; align-items: center; gap: 0.8rem;
  box-shadow: 0 4px 14px rgba(16,39,92,0.05);
  height: 100%;
}
.lab-chip .icon-tile { margin-bottom: 0; flex-shrink: 0; }

/* ---------- Contact ---------- */
.contact-card {
  background: #fff;
  border-radius: 16px;
  border: 1px solid #eef0f6;
  box-shadow: 0 8px 24px rgba(16,39,92,0.06);
}
.map-frame {
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid #eef0f6;
  box-shadow: 0 8px 24px rgba(16,39,92,0.06);
}
.form-control, .form-select {
  border-radius: 10px;
  padding: 0.65rem 0.9rem;
  border: 1px solid #dde1ec;
}
.form-control:focus, .form-select:focus {
  border-color: var(--bvs-saffron);
  box-shadow: 0 0 0 0.2rem rgba(245,166,35,0.18);
}
.btn-primary-bvs {
  background: var(--bvs-navy);
  border: none;
  color: #fff;
  font-weight: 700;
  border-radius: 10px;
  padding: 0.7rem 1.6rem;
}
.btn-primary-bvs:hover { background: var(--bvs-navy-dark); color: #fff; }
.btn-outline-bvs {
  border: 2px solid #fff;
  color: #fff;
  font-weight: 700;
  border-radius: 10px;
  padding: 0.65rem 1.5rem;
}
.btn-outline-bvs:hover { background: #fff; color: var(--bvs-navy); }

/* ---------- Login ---------- */
.login-wrapper {
  min-height: 80vh;
  display: flex; align-items: center;
  background: linear-gradient(120deg, var(--bvs-navy-dark), var(--bvs-navy));
}
.login-card {
  background: #fff;
  border-radius: 20px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.35);
  overflow: hidden;
}
.login-side {
  background: linear-gradient(160deg, rgba(245,166,35,0.95), rgba(217,138,10,0.95)), var(--hero-img) center/cover;
  color: #fff;
  padding: 3rem 2.2rem;
  display: flex; flex-direction: column; justify-content: center;
  min-height: 100%;
}

/* ---------- Footer ---------- */
.site-footer { background: var(--bvs-navy-dark); color: #cfd6ea; }
.footer-title { font-weight: 800; color: #fff; font-size: 1.15rem; }
.footer-text { color: #b6bedb; font-size: 0.9rem; }
.footer-heading { color: #fff; font-weight: 700; margin-bottom: 1rem; font-size: 0.95rem; }
.footer-links { list-style: none; padding: 0; margin: 0; font-size: 0.88rem; }
.footer-links li { margin-bottom: 0.6rem; color: #b6bedb; }
.footer-links a { color: #b6bedb; text-decoration: none; }
.footer-links a:hover { color: var(--bvs-saffron); }
.social-btn {
  width: 38px; height: 38px; border-radius: 50%;
  background: rgba(255,255,255,0.08);
  color: #fff; display: flex; align-items: center; justify-content: center;
  text-decoration: none;
  border: 1px solid rgba(255,255,255,0.15);
}
.social-btn:hover { background: var(--bvs-saffron); color: #1a1a1a; }
.footer-bottom {
  background: #08152f;
  color: #99a2c2;
  font-size: 0.82rem;
  padding: 1rem 0;
}

@media (max-width: 991.98px) {
  .hero { min-height: auto; padding: 3rem 0; }
  .navbar-collapse { margin-top: 0.8rem; }
}
