/* ==========================================================================
   VMS BRANCHES — Shared "inner page" layer (School section, etc.)
   Loaded after shared/assets/css/style.css and before the branch's own
   assets/css/style.css. Every component here is generic — identical across
   Joka / Haldia / Baruipur. Branch-specific photos live under
   shared/assets/<branch>/img/, never here.
   ========================================================================== */

/* ---------- Page banner (compact hero for inner pages) ---------- */
.vms-page-banner {
  background: linear-gradient(120deg, var(--vms-maroon) 0%, var(--vms-maroon-dark) 100%);
  padding: 3rem 0 2.25rem;
  color: #fff;
  position: relative;
  overflow: hidden;
}
.vms-page-banner::after {
  content: "";
  position: absolute; right: -60px; top: -80px;
  width: 260px; height: 260px; border-radius: 50%;
  background: rgba(224,178,110,.14);
}
.vms-page-banner .vms-eyebrow { color: var(--vms-gold-light); }
.vms-page-banner .vms-eyebrow::before { background: var(--vms-gold-light); }
.vms-page-banner h1 { color: #fff; font-size: clamp(1.7rem, 3.2vw, 2.5rem); margin: .5rem 0 0; }

/* ---------- Two-column inner layout ---------- */
.vms-inner-layout { padding: 3.5rem 0 5rem; }

.vms-inner-sidebar {
  position: sticky;
  top: 90px;
  background: var(--vms-cream);
  border: 1px solid var(--vms-line);
  border-radius: var(--vms-radius);
  padding: .75rem;
}
.vms-inner-sidebar .h { font-family: var(--vms-font-display); font-weight: 600; color: var(--vms-maroon-dark); font-size: 1rem; padding: .6rem .75rem .4rem; }
.vms-inner-sidebar ul { list-style: none; margin: 0; padding: 0; }
.vms-inner-sidebar a {
  display: flex; align-items: center; justify-content: space-between; gap: .5rem;
  padding: .65rem .75rem;
  border-radius: 9px;
  font-size: .9rem;
  font-weight: 500;
  color: var(--vms-ink-soft);
  text-decoration: none;
}
.vms-inner-sidebar a:hover { background: var(--vms-white); color: var(--vms-maroon); }
.vms-inner-sidebar a.active { background: var(--vms-maroon); color: #fff; font-weight: 600; }
.vms-inner-sidebar a.active i { color: var(--vms-gold-light); }

/* ---------- Prose / long-form content ---------- */
.vms-prose h2 { font-size: 1.4rem; margin-top: 2rem; margin-bottom: 1rem; }
.vms-prose h2:first-child { margin-top: 0; }
.vms-prose h3 { font-size: 1.1rem; margin-top: 1.5rem; margin-bottom: .75rem; color: var(--vms-ink); }
.vms-prose p { color: var(--vms-ink-soft); line-height: 1.75; margin-bottom: 1.1rem; }
.vms-prose ul, .vms-prose ol { color: var(--vms-ink-soft); line-height: 1.75; padding-left: 1.2rem; margin-bottom: 1.1rem; }
.vms-prose li { margin-bottom: .4rem; }
.vms-prose strong { color: var(--vms-ink); }

/* Pull quote used inside prose (mission / motto lines) */
.vms-pullquote {
  border-left: 3px solid var(--vms-gold);
  background: var(--vms-cream);
  border-radius: 0 var(--vms-radius) var(--vms-radius) 0;
  padding: 1.1rem 1.4rem;
  margin: 1.5rem 0;
  font-family: var(--vms-font-display);
  font-size: 1.1rem;
  color: var(--vms-maroon-dark);
}

/* ---------- Milestone / timeline list (History) ---------- */
.vms-milestones { list-style: none; margin: 0; padding: 0; }
.vms-milestones li {
  position: relative;
  padding: 0 0 1.5rem 2rem;
  border-left: 2px solid var(--vms-line);
}
.vms-milestones li:last-child { border-color: transparent; padding-bottom: 0; }
.vms-milestones li::before {
  content: "";
  position: absolute; left: -6px; top: 4px;
  width: 10px; height: 10px; border-radius: 50%;
  background: var(--vms-gold);
}
.vms-milestones .yr { display: block; font-family: var(--vms-font-display); font-weight: 700; color: var(--vms-maroon); font-size: .95rem; margin-bottom: .2rem; }
.vms-milestones p { margin: 0; color: var(--vms-ink-soft); font-size: .93rem; }

/* ---------- Principal / Rector message ---------- */
.vms-principal { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 1.25rem; margin-bottom: 2rem; }
.vms-principal__photo {
  width: 168px; height: 168px; border-radius: 50%;
  overflow: hidden; box-shadow: var(--vms-shadow);
  border: 4px solid var(--vms-white);
}
.vms-principal__photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.vms-principal__name { font-family: var(--vms-font-display); color: var(--vms-maroon-dark); font-weight: 700; font-size: 1.2rem; margin: 0; }
.vms-principal__title { color: var(--vms-gold); font-weight: 600; font-size: .85rem; letter-spacing: .06em; text-transform: uppercase; }
.vms-message-card {
  background: var(--vms-cream);
  border-radius: var(--vms-radius);
  padding: 2rem 2.25rem;
  position: relative;
}
.vms-message-card i.bi-quote { font-size: 2rem; color: var(--vms-gold); opacity: .5; }
.vms-message-card p { color: var(--vms-ink-soft); line-height: 1.8; margin-bottom: 1.1rem; }
.vms-message-card .sig { font-family: var(--vms-font-display); font-weight: 700; color: var(--vms-maroon-dark); margin-top: 1.5rem; }

/* ---------- Facility tabs ---------- */
.vms-facility-tabs .nav-pills { gap: .5rem; margin-bottom: 2rem; }
.vms-facility-tabs .nav-pills .nav-link {
  border-radius: 999px;
  font-weight: 600;
  font-size: .9rem;
  color: var(--vms-ink-soft);
  border: 1px solid var(--vms-line);
  padding: .55rem 1.3rem;
}
.vms-facility-tabs .nav-pills .nav-link.active { background: var(--vms-maroon); color: #fff; border-color: var(--vms-maroon); }
.vms-facility-card {
  background: var(--vms-white);
  border: 1px solid var(--vms-line);
  border-radius: var(--vms-radius);
  overflow: hidden;
  height: 100%;
}
.vms-facility-card img { width: 100%; height: 170px; object-fit: cover; display: block; }
.vms-facility-card .body { padding: 1.1rem 1.25rem; }
.vms-facility-card h5 { font-size: 1rem; margin-bottom: .35rem; }
.vms-facility-card p { font-size: .87rem; color: var(--vms-ink-soft); margin: 0; }

/* ---------- Rules ---------- */
.vms-rule-block {
  background: var(--vms-white);
  border: 1px solid var(--vms-line);
  border-radius: var(--vms-radius);
  padding: 1.5rem 1.6rem;
  height: 100%;
  margin-bottom: 1.5rem;
}
.vms-rule-block h3 {
  display: flex; align-items: center; gap: .6rem;
  font-size: 1.02rem; margin: 0 0 .9rem;
}
.vms-rule-block h3 i { color: var(--vms-gold); font-size: 1.1rem; }
.vms-rule-block ul { margin: 0; padding-left: 1.1rem; color: var(--vms-ink-soft); font-size: .92rem; line-height: 1.7; }
.vms-rule-block ul li { margin-bottom: .4rem; }
.vms-rule-block table { width: 100%; border-collapse: collapse; font-size: .87rem; color: var(--vms-ink-soft); }
.vms-rule-block table th, .vms-rule-block table td { padding: .55rem .65rem; border-bottom: 1px solid var(--vms-line); text-align: left; vertical-align: top; }
.vms-rule-block table thead th { color: var(--vms-ink); font-weight: 700; background: var(--vms-cream); }
.vms-rule-block table tbody th { color: var(--vms-ink); font-weight: 600; white-space: nowrap; width: 1%; }
.vms-rule-block table tr:last-child td, .vms-rule-block table tr:last-child th { border-bottom: none; }

.vms-house-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 1rem; margin: 1.5rem 0; }
.vms-house-card { border-radius: var(--vms-radius); padding: 1.1rem 1rem; text-align: center; color: #fff; }
.vms-house-card .name { font-family: var(--vms-font-display); font-weight: 700; font-size: 1.05rem; display: block; }
.vms-house-card .virtue { font-size: .8rem; opacity: .9; }
.vms-house--scarlet { background: linear-gradient(135deg, #B23A48, #7c222d); }
.vms-house--royal   { background: linear-gradient(135deg, #2E4B8F, #1c2f5c); }
.vms-house--emerald  { background: linear-gradient(135deg, #2E8B57, #1d5a38); }
.vms-house--gold     { background: linear-gradient(135deg, #C08A34, #8a611f); }

/* ---------- Subject-offering tables ---------- */
.vms-subject-card {
  background: var(--vms-white);
  border: 1px solid var(--vms-line);
  border-radius: var(--vms-radius);
  padding: 1.5rem 1.6rem;
  height: 100%;
  margin-bottom: 1.5rem;
}
.vms-subject-card h3 { font-size: 1.05rem; margin-bottom: .3rem; }
.vms-subject-card .tag { display: inline-block; background: var(--vms-maroon-tint); color: var(--vms-maroon-dark); font-size: .72rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; padding: .25rem .65rem; border-radius: 999px; margin-bottom: .9rem; }
.vms-subject-card dl { margin: 0; }
.vms-subject-card dt { font-size: .78rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--vms-gold); margin-top: .9rem; }
.vms-subject-card dt:first-child { margin-top: 0; }
.vms-subject-card dd { margin: .25rem 0 0; color: var(--vms-ink-soft); font-size: .9rem; line-height: 1.6; }

/* ---------- School song audio ---------- */
.vms-song-audio {
  background: var(--vms-cream);
  border: 1px solid var(--vms-line);
  border-radius: var(--vms-radius);
  padding: 1.1rem 1.4rem;
}
.vms-song-audio audio { border-radius: 999px; }

/* ---------- School song ---------- */
.vms-song-card {
  background: linear-gradient(120deg, var(--vms-maroon) 0%, var(--vms-maroon-dark) 100%);
  border-radius: 24px;
  color: #fff;
  padding: 3rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.vms-song-card::after {
  content: "";
  position: absolute; left: -50px; bottom: -70px;
  width: 220px; height: 220px; border-radius: 50%;
  background: rgba(224,178,110,.14);
}
.vms-song-card .verse { font-family: var(--vms-font-display); font-size: 1.15rem; line-height: 1.9; margin: 0 0 2rem; color: rgba(255,255,255,.92); }
.vms-song-card .chorus { font-family: var(--vms-font-display); font-weight: 600; font-size: 1.15rem; line-height: 1.9; color: var(--vms-gold-light); margin: 0 0 2rem; }
.vms-song-card .credit { font-size: .85rem; color: rgba(255,255,255,.6); }

/* ---------- Core committee ---------- */
.vms-committee-group { margin-bottom: 2.5rem; }
.vms-committee-group h3 { font-size: 1.05rem; margin-bottom: 1.25rem; }
.vms-committee-card {
  background: var(--vms-white);
  border: 1px solid var(--vms-line);
  border-radius: var(--vms-radius);
  padding: 1.25rem 1rem;
  text-align: center;
  height: 100%;
}
.vms-committee-card .avatar {
  width: 88px; height: 88px; margin: 0 auto .8rem;
  border-radius: 50%;
  background: var(--vms-maroon-tint);
  color: var(--vms-maroon);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--vms-font-display); font-weight: 700; font-size: 1.15rem;
}
img.avatar {
  object-fit: cover;
  object-position: 50% 18%;
  border: 2px solid var(--vms-white);
  box-shadow: 0 4px 14px -6px rgba(36,27,24,.35);
}
.vms-committee-card .name { font-weight: 700; font-size: .9rem; color: var(--vms-ink); display: block; }
.vms-committee-card .role { font-size: .78rem; color: var(--vms-ink-soft); }

/* ---------- Newsletters / downloads ---------- */
.vms-download-list { list-style: none; margin: 0; padding: 0; }
.vms-download-item {
  display: flex; align-items: center; gap: 1rem;
  padding: 1rem 1.1rem;
  border: 1px solid var(--vms-line);
  border-radius: 12px;
  margin-bottom: .75rem;
  text-decoration: none;
  transition: all .2s ease;
}
.vms-download-item:hover { border-color: var(--vms-maroon); background: var(--vms-maroon-tint); }
.vms-download-item .ic {
  flex-shrink: 0; width: 42px; height: 42px; border-radius: 10px;
  background: var(--vms-maroon-tint); color: var(--vms-maroon);
  display: flex; align-items: center; justify-content: center; font-size: 1.15rem;
}
.vms-download-item .meta { flex-grow: 1; }
.vms-download-item .meta strong { display: block; color: var(--vms-ink); font-size: .92rem; }
.vms-download-item .meta span { font-size: .78rem; color: var(--vms-ink-soft); }
.vms-download-item .go { color: var(--vms-maroon); font-size: 1.1rem; }

/* ---------- Awards ---------- */
.vms-award-card {
  background: var(--vms-white);
  border: 1px solid var(--vms-line);
  border-radius: var(--vms-radius);
  padding: 1.75rem 1.75rem;
  height: 100%;
  margin-bottom: 1.5rem;
  position: relative;
}
.vms-award-card .ic {
  width: 52px; height: 52px; border-radius: 50%;
  background: var(--vms-maroon-tint); color: var(--vms-gold);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.4rem; margin-bottom: 1.1rem;
}
.vms-award-card h3 { font-size: 1.05rem; margin-bottom: .6rem; }
.vms-award-card p { color: var(--vms-ink-soft); font-size: .9rem; line-height: 1.7; margin-bottom: 0; }
.vms-award-card .amount { display: inline-block; font-family: var(--vms-font-display); font-weight: 700; color: var(--vms-maroon); font-size: 1.15rem; margin-bottom: .3rem; }

/* ---------- Achievement feed (Students' / Teachers' Achievements) ---------- */
.vms-achieve-feature {
  background: linear-gradient(120deg, var(--vms-maroon) 0%, var(--vms-maroon-dark) 100%);
  border-radius: var(--vms-radius);
  color: #fff;
  padding: 1.75rem 2rem;
  display: flex; align-items: center; gap: 1.5rem;
  margin-bottom: 2rem;
}
.vms-achieve-feature img { width: 92px; height: 92px; border-radius: 50%; object-fit: cover; border: 3px solid rgba(255,255,255,.5); flex-shrink: 0; }
.vms-achieve-feature .tag { display: inline-block; background: rgba(255,255,255,.15); color: var(--vms-gold-light); font-size: .72rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; padding: .25rem .65rem; border-radius: 999px; margin-bottom: .5rem; }
.vms-achieve-feature p { margin: 0; font-size: 1rem; line-height: 1.6; color: rgba(255,255,255,.92); }

.vms-achieve-item {
  display: flex; gap: 1.25rem;
  padding: 1.1rem;
  border: 1px solid var(--vms-line);
  border-radius: var(--vms-radius);
  margin-bottom: 1rem;
  align-items: flex-start;
}
.vms-achieve-item img { width: 96px; height: 96px; border-radius: 10px; object-fit: cover; flex-shrink: 0; }
.vms-achieve-item .ic-only {
  width: 96px; height: 96px; border-radius: 10px; flex-shrink: 0;
  background: var(--vms-maroon-tint); color: var(--vms-gold);
  display: flex; align-items: center; justify-content: center; font-size: 1.6rem;
}
.vms-achieve-item .body { flex-grow: 1; }
.vms-achieve-item h3 { font-size: .92rem; font-weight: 700; color: var(--vms-ink); margin: 0 0 .4rem; line-height: 1.4; }
.vms-achieve-item p { font-size: .87rem; color: var(--vms-ink-soft); margin: 0 0 .3rem; line-height: 1.6; }
.vms-achieve-item p:last-child { margin-bottom: 0; }
.vms-achieve-item .cat {
  display: inline-block; font-size: .68rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase;
  color: var(--vms-maroon); background: var(--vms-maroon-tint); padding: .2rem .55rem; border-radius: 999px; margin-bottom: .5rem;
}

/* ---------- Hall of Fame ---------- */
.vms-hof-row {
  display: flex; align-items: center; gap: 1.75rem;
  padding: 1.25rem 0;
  border-bottom: 1px solid var(--vms-line);
}
.vms-hof-row:last-child { border-bottom: none; }
.vms-hof-row.reverse { flex-direction: row-reverse; text-align: right; }
.vms-hof-row img { width: 120px; height: 120px; border-radius: 50%; object-fit: cover; flex-shrink: 0; border: 3px solid var(--vms-cream); box-shadow: var(--vms-shadow); }
.vms-hof-row .body { flex-grow: 1; }
.vms-hof-row .body p { color: var(--vms-ink-soft); font-size: .95rem; line-height: 1.7; margin: 0 0 .4rem; }
.vms-hof-row .body p:last-child { margin-bottom: 0; }
.vms-hof-row .body strong { color: var(--vms-maroon-dark); font-family: var(--vms-font-display); font-size: 1.05rem; }

/* ---------- Board result stats ---------- */
.vms-result-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 1rem; margin: 1.5rem 0 2rem; }
.vms-result-stat {
  background: var(--vms-cream); border: 1px solid var(--vms-line); border-radius: var(--vms-radius);
  padding: 1.25rem 1.4rem;
}
.vms-result-stat .num { display: block; font-family: var(--vms-font-display); font-weight: 700; color: var(--vms-maroon); font-size: 1.7rem; line-height: 1.1; }
.vms-result-stat .lbl { font-size: .8rem; color: var(--vms-ink-soft); }

.vms-topper-card {
  background: var(--vms-white); border: 1px solid var(--vms-line); border-radius: var(--vms-radius);
  overflow: hidden; text-align: center; height: 100%;
}
.vms-topper-card img { width: 100%; aspect-ratio: 260 / 350; object-fit: cover; display: block; }
.vms-topper-card .body { padding: 1rem .9rem 1.2rem; }
.vms-topper-card .name { font-weight: 700; font-size: .88rem; color: var(--vms-ink); display: block; margin-bottom: .2rem; }
.vms-topper-card .stream { font-size: .74rem; color: var(--vms-ink-soft); display: block; margin-bottom: .35rem; }
.vms-topper-card .pct { display: inline-block; font-family: var(--vms-font-display); font-weight: 700; color: var(--vms-maroon); background: var(--vms-maroon-tint); font-size: .85rem; padding: .15rem .6rem; border-radius: 999px; }

/* ---------- Portfolio / office-bearer cards (near-square headshots) ---------- */
.vms-portfolio-card {
  background: var(--vms-white); border: 1px solid var(--vms-line); border-radius: var(--vms-radius);
  overflow: hidden; text-align: center; height: 100%;
}
.vms-portfolio-card img { width: 100%; aspect-ratio: 237 / 242; object-fit: cover; display: block; }
.vms-portfolio-card .body { padding: 1rem .9rem 1.2rem; }
.vms-portfolio-card .name { font-weight: 700; font-size: .88rem; color: var(--vms-ink); display: block; margin-bottom: .2rem; }
.vms-portfolio-card .role { font-size: .78rem; color: var(--vms-maroon); font-weight: 600; }

/* ---------- Transport route list (wraps instead of horizontal scroll) ---------- */
.vms-route-list { border: 1px solid var(--vms-line); border-radius: var(--vms-radius); overflow: hidden; background: var(--vms-white); }
.vms-route-row { display: flex; align-items: flex-start; gap: .9rem; padding: 1rem 1.25rem; border-bottom: 1px solid var(--vms-line); }
.vms-route-row:last-child { border-bottom: none; }
.vms-route-num {
  flex-shrink: 0; width: 30px; height: 30px; border-radius: 50%;
  background: var(--vms-maroon-tint); color: var(--vms-maroon);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--vms-font-display); font-weight: 700; font-size: .85rem;
}
.vms-route-row p { margin: 0; font-size: .9rem; line-height: 1.8; color: var(--vms-ink-soft); overflow-wrap: break-word; }

/* ---------- Pagination (brand colours instead of Bootstrap blue) ---------- */
.pagination .page-link, .pagination .page-numbers {
  color: var(--vms-maroon);
  border-color: var(--vms-line);
  font-weight: 600;
}
.pagination .page-link:hover, .pagination .page-numbers:hover {
  color: var(--vms-maroon-dark);
  background: var(--vms-maroon-tint);
  border-color: var(--vms-line);
}
.pagination .page-link:focus, .pagination .page-numbers:focus { box-shadow: 0 0 0 .2rem var(--vms-maroon-tint); }
.pagination .page-item.active .page-link, .pagination .page-numbers.current {
  background: var(--vms-maroon);
  border-color: var(--vms-maroon);
  color: #fff;  
}
.pagination .page-item.disabled .page-link {
  color: var(--vms-ink-soft);
  background: var(--vms-white);
  border-color: var(--vms-line);
}

.vms-subject-table-wrap { overflow-x: auto; margin-bottom: 2rem; }
.vms-subject-table { width: 100%; border-collapse: collapse; font-size: .78rem; }
.vms-subject-table th, .vms-subject-table td { padding: .4rem .5rem; border-bottom: 1px solid var(--vms-line); text-align: left; white-space: normal; word-break: break-word; line-height: 1.3; }
.vms-subject-table thead th { color: var(--vms-ink); font-weight: 700; background: var(--vms-cream); }
.vms-subject-table tbody td:not(:first-child), .vms-subject-table tbody th:not(:first-child) { text-align: center; }
.vms-subject-table tbody tr:last-child td, .vms-subject-table tbody tr:last-child th { border-bottom: none; }

/* ---------- Cross-links between the 5 Achievements pages ---------- */
.vms-related-achieve {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 1rem;
  margin: 2.5rem 0 0;
}
.vms-related-achieve a {
  display: flex; flex-direction: column; align-items: center; gap: .6rem; text-align: center;
  padding: 1.4rem 1rem;
  background: var(--vms-cream); border: 1px solid var(--vms-line); border-radius: var(--vms-radius);
  color: var(--vms-ink); text-decoration: none; font-weight: 600; font-size: .85rem;
  transition: all .2s ease;
}
.vms-related-achieve a:hover { background: var(--vms-maroon); color: #fff; transform: translateY(-3px); }
.vms-related-achieve a i { font-size: 1.5rem; color: var(--vms-gold); }
.vms-related-achieve a:hover i { color: var(--vms-gold-light); }

/* ---------- Gallery ---------- */
.vms-gallery-toolbar {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem;
  margin-bottom: 2rem;
}
.vms-gallery-filters { display: flex; flex-wrap: wrap; gap: .5rem; }
.vms-gallery-filter-btn {
  border: 1px solid var(--vms-line); background: var(--vms-white); color: var(--vms-ink-soft);
  font-size: .82rem; font-weight: 600; padding: .5rem 1.1rem; border-radius: 999px; cursor: pointer;
  transition: all .2s ease;
}
.vms-gallery-filter-btn:hover { border-color: var(--vms-maroon); color: var(--vms-maroon); }
.vms-gallery-filter-btn.active { background: var(--vms-maroon); border-color: var(--vms-maroon); color: #fff; }
.vms-gallery-selects { display: flex; gap: .6rem; }
.vms-gallery-selects select {
  border: 1px solid var(--vms-line); border-radius: 10px; padding: .5rem .8rem; font-size: .85rem;
  color: var(--vms-ink); background: var(--vms-white);
}

.vms-gallery-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 1rem; }
.vms-gallery-item {
  position: relative; border-radius: 12px; overflow: hidden; cursor: zoom-in;
  aspect-ratio: 4 / 3; border: 1px solid var(--vms-line);
}
.vms-gallery-item img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .35s ease; }
.vms-gallery-item:hover img { transform: scale(1.08); }
.vms-gallery-item .cap {
  position: absolute; left: 0; right: 0; bottom: 0; padding: .5rem .7rem .4rem;
  background: linear-gradient(0deg, rgba(36,27,24,.75), transparent);
  color: #fff; font-size: .72rem; font-weight: 600; opacity: 0; transition: opacity .25s ease;
}
.vms-gallery-item:hover .cap { opacity: 1; }
.vms-gallery-empty { text-align: center; padding: 3rem 1rem; color: var(--vms-ink-soft); display: none; }

.vms-lightbox {
  position: fixed; inset: 0; background: rgba(20,14,12,.92); z-index: 2000;
  display: none; align-items: center; justify-content: center; padding: 2rem;
}
.vms-lightbox.open { display: flex; }
.vms-lightbox img { max-width: 90vw; max-height: 85vh; border-radius: 8px; box-shadow: var(--vms-shadow); }
.vms-lightbox .close {
  position: absolute; top: 1.25rem; right: 1.5rem; width: 42px; height: 42px; border-radius: 50%;
  background: rgba(255,255,255,.12); color: #fff; border: none; font-size: 1.3rem; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
}
.vms-lightbox .close:hover { background: rgba(255,255,255,.22); }
.vms-lightbox .nav-btn {
  position: absolute; top: 50%; transform: translateY(-50%); width: 46px; height: 46px; border-radius: 50%;
  background: rgba(255,255,255,.12); color: #fff; border: none; font-size: 1.3rem; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
}
.vms-lightbox .nav-btn:hover { background: rgba(255,255,255,.22); }
.vms-lightbox .prev { left: 1.5rem; }
.vms-lightbox .next { right: 1.5rem; }
.vms-lightbox .caption { position: absolute; bottom: 1.5rem; left: 0; right: 0; text-align: center; color: rgba(255,255,255,.85); font-size: .85rem; }

/* ---------- Contact ---------- */
.vms-contact-form {
  background: var(--vms-white); border: 1px solid var(--vms-line); border-radius: var(--vms-radius);
  padding: 2rem;
}
.vms-form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.vms-form-group { margin-bottom: 1.1rem; }
.vms-form-group label { display: block; font-size: .82rem; font-weight: 600; color: var(--vms-ink); margin-bottom: .4rem; }
.vms-form-group .req { color: var(--vms-gold); }
.vms-form-control {
  width: 100%; border: 1px solid var(--vms-line); border-radius: 10px; padding: .7rem .9rem;
  font-family: var(--vms-font-body); font-size: .92rem; color: var(--vms-ink); background: var(--vms-cream);
  transition: border-color .2s ease, background .2s ease;
}
.vms-form-control:focus { outline: none; border-color: var(--vms-maroon); background: var(--vms-white); }
textarea.vms-form-control { resize: vertical; min-height: 120px; }

.vms-contact-info { list-style: none; margin: 0; padding: 0; }
.vms-contact-info li { display: flex; gap: 1rem; padding: 1.1rem 0; border-bottom: 1px solid var(--vms-line); }
.vms-contact-info li:last-child { border-bottom: none; }
.vms-contact-info .ic {
  flex-shrink: 0; width: 46px; height: 46px; border-radius: 50%;
  background: var(--vms-maroon-tint); color: var(--vms-maroon);
  display: flex; align-items: center; justify-content: center; font-size: 1.15rem;
}
.vms-contact-info .body span { display: block; font-size: .9rem; color: var(--vms-ink-soft); line-height: 1.6; }
.vms-contact-info .body a { color: var(--vms-ink-soft); text-decoration: none; }
.vms-contact-info .body a:hover { color: var(--vms-maroon); }

.vms-map-frame { border-radius: var(--vms-radius); overflow: hidden; border: 1px solid var(--vms-line); }
.vms-map-frame iframe { width: 100%; height: 360px; border: 0; display: block; }

.vms-form-status { font-size: .88rem; padding: .8rem 1rem; border-radius: 10px; margin-bottom: 1rem; display: none; }
.vms-form-status.show { display: block; }
.vms-form-status.ok { background: #E9F5EC; color: #1E7B34; }

@media (max-width: 767.98px) {
  .vms-form-row { grid-template-columns: 1fr; }
}

/* ---------- Co-curricular: special-days strip ---------- */
.vms-special-days { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 1rem; margin: 1.5rem 0 2.5rem; }
.vms-special-day {
  background: var(--vms-cream); border: 1px solid var(--vms-line); border-radius: var(--vms-radius);
  padding: 1.1rem 1.25rem;
}
.vms-special-day strong { display: block; font-family: var(--vms-font-display); color: var(--vms-maroon-dark); font-size: .95rem; margin-bottom: .25rem; }
.vms-special-day span { font-size: .82rem; color: var(--vms-ink-soft); }

/* ---------- Co-curricular: monthly accordion ---------- */
.vms-cocurr-note {
  border: 1px solid var(--vms-line); background: var(--vms-cream); border-radius: var(--vms-radius);
  padding: 1rem 1.25rem; font-size: .87rem; color: var(--vms-ink-soft); margin-bottom: 2rem;
}
.vms-cocurr-accordion .accordion-item, .vms-accordion .accordion-item { border: 1px solid var(--vms-line); border-radius: var(--vms-radius) !important; overflow: hidden; margin-bottom: .9rem; }
.vms-cocurr-accordion .accordion-button, .vms-accordion .accordion-button {
  font-family: var(--vms-font-display); font-weight: 600; color: var(--vms-maroon-dark);
  background: var(--vms-white); font-size: 1.02rem; padding: 1.1rem 1.4rem;
}
.vms-cocurr-accordion .accordion-button:not(.collapsed), .vms-accordion .accordion-button:not(.collapsed) { background: var(--vms-maroon-tint); color: var(--vms-maroon-dark); box-shadow: none; }
.vms-cocurr-accordion .accordion-button:focus, .vms-accordion .accordion-button:focus { box-shadow: none; border-color: var(--vms-line); }
.vms-cocurr-accordion .accordion-button::after, .vms-accordion .accordion-button::after { filter: sepia(1) saturate(2) hue-rotate(310deg); }
.vms-cocurr-accordion .accordion-body, .vms-accordion .accordion-body { padding: 1.4rem; }
.vms-accordion .accordion-button { font-size: .95rem; }
.vms-accordion .accordion-body p { color: var(--vms-ink-soft); line-height: 1.75; margin: 0 0 .8rem; }
.vms-accordion .accordion-body p:last-child { margin-bottom: 0; }
.vms-accordion .accordion-body ul { color: var(--vms-ink-soft); line-height: 1.75; padding-left: 1.2rem; margin: 0 0 .8rem; }
.vms-accordion .accordion-body ul:last-child { margin-bottom: 0; }
.vms-accordion .accordion-body li { margin-bottom: .3rem; }
.vms-accordion .accordion-body a { font-weight: 600; }

/* ---------- FAQ category nav ---------- */
.vms-faq-cats { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 2.5rem; }
.vms-faq-cats a {
  border: 1px solid var(--vms-line); background: var(--vms-white); color: var(--vms-ink-soft);
  font-size: .84rem; font-weight: 600; padding: .5rem 1.1rem; border-radius: 999px; text-decoration: none;
  transition: all .2s ease;
}
.vms-faq-cats a:hover { border-color: var(--vms-maroon); color: var(--vms-maroon); }
.vms-faq-group { margin-bottom: 3rem; scroll-margin-top: 100px; }
.vms-faq-group h2 { display: flex; align-items: center; gap: .6rem; font-size: 1.25rem; margin-bottom: 1.25rem; }
.vms-faq-group h2 i { color: var(--vms-gold); font-size: 1.1rem; }

.vms-month-meta { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: .9rem; margin-bottom: 1.4rem; }
.vms-month-meta .item { background: var(--vms-cream); border-radius: 10px; padding: .8rem 1rem; }
.vms-month-meta .item .lbl { display: block; font-size: .68rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--vms-gold); margin-bottom: .3rem; }
.vms-month-meta .item .val { font-size: .85rem; color: var(--vms-ink); line-height: 1.5; }

.vms-cocurr-table { width: 100%; border-collapse: collapse; font-size: .87rem; }
.vms-cocurr-table th, .vms-cocurr-table td { padding: .65rem .8rem; border-bottom: 1px solid var(--vms-line); text-align: left; vertical-align: top; }
.vms-cocurr-table thead th { color: var(--vms-ink); font-weight: 700; background: var(--vms-cream); white-space: nowrap; }
.vms-cocurr-table td.dt { white-space: nowrap; font-weight: 600; color: var(--vms-maroon); }
.vms-cocurr-table tbody tr:last-child td { border-bottom: none; }
.vms-cocurr-table ul { margin: 0; padding-left: 1.1rem; }

/* ---------- Co-curricular: International Activity ---------- */
.vms-timeline-block { margin-bottom: 2rem; }
.vms-timeline-block h3 { font-size: 1.05rem; color: var(--vms-maroon-dark); margin-bottom: .75rem; }
.vms-timeline-block p { color: var(--vms-ink-soft); line-height: 1.75; margin-bottom: 1rem; }
.vms-timeline-block ul { color: var(--vms-ink-soft); line-height: 1.75; padding-left: 1.2rem; }
.vms-timeline-block li { margin-bottom: .5rem; }

/* ---------- Co-curricular: Ongoing Programmes ---------- */
.vms-program-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 1rem; margin: 1.5rem 0 2.5rem; }
.vms-program-card {
  display: flex; align-items: flex-start; gap: .9rem;
  background: var(--vms-white); border: 1px solid var(--vms-line); border-radius: var(--vms-radius);
  padding: 1.1rem 1.25rem;
}
.vms-program-card .ic { flex-shrink: 0; width: 40px; height: 40px; border-radius: 50%; background: var(--vms-maroon-tint); color: var(--vms-maroon); display: flex; align-items: center; justify-content: center; font-size: 1.05rem; }
.vms-program-card span { font-size: .9rem; color: var(--vms-ink); line-height: 1.5; }

.vms-events-strip { list-style: none; margin: 0; padding: 0; }
.vms-events-strip li {
  display: flex; align-items: center; gap: 1rem;
  padding: .9rem 0; border-bottom: 1px solid var(--vms-line);
}
.vms-events-strip li:last-child { border-bottom: none; }
.vms-events-strip .dt {
  flex-shrink: 0; min-width: 84px; text-align: center; font-family: var(--vms-font-display); font-weight: 700;
  color: var(--vms-maroon); background: var(--vms-maroon-tint); border-radius: 8px; padding: .4rem .5rem; font-size: .82rem;
}
.vms-events-strip .nm { font-size: .92rem; color: var(--vms-ink); }

@media (max-width: 991.98px) {
  .vms-inner-sidebar { position: static; margin-bottom: 2rem; }
  .vms-achieve-feature { flex-direction: column; text-align: center; }
  .vms-hof-row, .vms-hof-row.reverse { flex-direction: column; text-align: center; }
}
