/* ===== CUSTOMIZE BRAND HERE ===== */
:root {
  --ink: #0e1a2b;
  --ink-2: #16273f;
  --teal: #0c6b73;
  --teal-dark: #08474d;
  --saffron: #f4b000;
  --mist: #eef2f5;
  --text: #2a3446;
  --muted: #5a6577;
  --rail-w: 260px;
  --head: "Fraunces", Georgia, serif;
  --body: "DM Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
}

html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body { font-family: var(--body); color: var(--text); background: #fff; line-height: 1.65; overflow-x: hidden; }
h1, h2, h3 { font-family: var(--head); color: var(--ink); line-height: 1.12; }
h2 { font-weight: 900; font-size: clamp(2rem, 4vw, 3rem); margin-bottom: 1rem; }
h3 { font-weight: 700; }
code { color: var(--saffron); }

/* Accessibility */
.skip-link { position: absolute; left: -999px; top: 0; background: var(--saffron); color: #000; padding: .6rem 1rem; z-index: 2000; }
.skip-link:focus { left: 0; }
a:focus-visible, button:focus-visible, .form-control:focus, .form-select:focus, .snap:focus-visible { outline: 3px solid var(--saffron); outline-offset: 2px; box-shadow: none; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }

/* Buttons */
.btn { font-weight: 700; border-radius: 6px; }
.btn-saffron { background: var(--saffron); color: var(--ink); border: 0; }
.btn-saffron:hover { background: #ffc633; color: var(--ink); }
.btn-ghost { color: #fff; border: 2px solid rgba(255,255,255,.6); }
.btn-ghost:hover { background: #fff; color: var(--ink); }
.btn-ink { background: var(--ink); color: #fff; border: 0; }
.btn-ink:hover { background: var(--ink-2); color: #fff; }

/* ===== NAV: left rail on desktop, top bar below ===== */
.rail { background: var(--ink); padding: .5rem 0; }
.rail .navbar-brand { display: flex; align-items: center; gap: .7rem; color: #fff; white-space: normal; }
.logo-mark { width: 46px; height: 46px; flex: none; border-radius: 10px; background: var(--saffron); color: var(--ink); display: grid; place-items: center; font-size: 1.4rem; }
.brand-name { font-family: var(--head); font-weight: 700; font-size: 1rem; line-height: 1.2; }
.rail .nav-link { color: #c7d0df; font-weight: 500; display: flex; align-items: center; gap: .7rem; padding: .6rem .8rem; border-radius: 8px; }
.rail .nav-link:hover { color: #fff; background: rgba(255,255,255,.08); }
.rail .nav-link.active { color: var(--ink); background: var(--saffron); }
.navbar-toggler { border-color: rgba(255,255,255,.6); }
.navbar-toggler-icon { filter: invert(1); }
.rail-cta { margin: 1rem 0 .5rem; }
@media (max-width: 1199.98px) { .main-pad, .with-rail { padding-top: 66px; } .rail-cta { width: 100%; } .rail .navbar-collapse { padding-bottom: 1rem; } }
@media (min-width: 1200px) {
  .rail { top: 0; bottom: 0; right: auto; width: var(--rail-w); padding: 1.5rem 1rem; }
  .rail .container-fluid { flex-direction: column; align-items: stretch; height: 100%; padding: 0; }
  .rail .navbar-brand { margin-bottom: 2rem; margin-right: 0; }
  .rail .navbar-collapse { flex-direction: column; flex-grow: 1; align-items: stretch; }
  .rail .navbar-nav { flex-direction: column; gap: .15rem; }
  .rail-cta { margin-top: auto; }
  .with-rail { margin-left: var(--rail-w); }
}

/* ===== HERO ===== */
.hero { position: relative; overflow: hidden; background: linear-gradient(160deg, var(--ink) 0%, var(--ink-2) 60%, var(--teal-dark) 100%); color: #fff; min-height: 100vh; display: flex; align-items: center; padding: 4rem 0; }
.numeral { position: absolute; right: -2%; bottom: -12%; font-family: var(--head); font-weight: 900; font-size: clamp(14rem, 40vw, 36rem); line-height: 1; color: transparent; -webkit-text-stroke: 2px rgba(244,176,0,.28); user-select: none; pointer-events: none; }
.hero-inner { position: relative; z-index: 1; }
.hero h1 { color: #fff; font-weight: 900; font-size: clamp(2.6rem, 6vw, 4.8rem); margin-bottom: 1.25rem; }
.hero-year { color: var(--saffron); font-weight: 700; margin-bottom: .5rem; font-size: 1.1rem; }
.hero-lead { max-width: 34rem; color: #d3dbe8; font-size: 1.15rem; margin-bottom: 2rem; }

/* Graduate pass */
.pass { background: #fff; color: var(--ink); border-radius: 18px; box-shadow: 0 30px 60px rgba(0,0,0,.4); overflow: hidden; }
.pass-top { display: flex; justify-content: space-between; align-items: baseline; padding: 1.1rem 1.4rem; background: var(--saffron); }
.pass-title { font-family: var(--head); font-weight: 900; font-size: 1.3rem; }
.pass-year { font-weight: 700; font-size: .9rem; }
.pass-list { margin: 0; padding: 1.2rem 1.4rem 1rem; }
.pass-list div { display: flex; justify-content: space-between; gap: 1rem; padding: .55rem 0; border-bottom: 1px dashed #c8d0dc; }
.pass-list dt { font-weight: 500; color: var(--muted); font-size: .9rem; white-space: nowrap; }
.pass-list dt i { color: var(--teal); margin-right: .3rem; }
.pass-list dd { margin: 0; font-weight: 700; text-align: right; }
.countdown { display: grid; grid-template-columns: repeat(4, 1fr); background: var(--teal); color: #fff; text-align: center; padding: 1rem .5rem; }
.countdown b { display: block; font-family: var(--head); font-size: 2rem; line-height: 1.1; font-variant-numeric: tabular-nums; }
.countdown span { font-size: .8rem; }

/* ===== BLOCKS ===== */
.block { padding: 5.5rem 0; }
.block-ink { background: var(--ink); color: #d3dbe8; }
.block-ink h2 { color: #fff; }
.block-teal { background: #eafbfd; }
.muted { color: var(--muted); }
.muted-light { color: #a9b6cb; }
@media (min-width: 992px) { .sticky-title { position: sticky; top: 100px; } }
@media (max-width: 575.98px) { .block { padding: 3.5rem 0; } }

/* About */
.big { font-family: var(--head); font-size: clamp(1.3rem, 2.4vw, 1.7rem); line-height: 1.4; color: var(--ink); }
.fig { border-left: 4px solid var(--saffron); padding-left: .9rem; }
.fig b { display: block; font-family: var(--head); font-size: 2.2rem; color: var(--ink); line-height: 1.1; }
.fig span { color: var(--muted); font-size: .9rem; }
.note { font-size: .85rem; color: var(--muted); margin: .5rem 0 0; }
.marks .col-6 { display: flex; align-items: center; gap: .7rem; padding: 1rem; background: var(--mist); border-radius: 10px; margin-top: .75rem; }
.marks i { font-size: 1.6rem; color: var(--teal); }
.marks h3 { font-size: 1rem; margin: 0; font-family: var(--body); }
.marks .col-6 { margin: 0; }

/* Dignitaries snap rail */
.snap { display: flex; gap: 1.1rem; overflow-x: auto; scroll-snap-type: x mandatory; padding: 2rem 1.5rem 1.5rem; margin-top: 1rem; scrollbar-color: var(--saffron) var(--ink-2); }
.snap::before, .snap::after { content: ""; flex: 0 0 max(0px, calc((100vw - var(--rail-w) - 1320px) / 2)); }
.vip { flex: 0 0 min(400px, 80vw); scroll-snap-align: start; background: var(--ink-2); border: 1px solid #263a58; border-radius: 14px; padding: 1.5rem; transition: transform .2s, border-color .2s; }
.vip:hover { transform: translateY(-4px); border-color: var(--saffron); }
.vip-guest { background: var(--teal-dark); border-color: var(--saffron); }
.vip-photo { width: 100%; aspect-ratio: 1; border-radius: 10px; display: grid; place-items: center; font-family: var(--head); font-weight: 900; font-size: 3.5rem; color: rgba(255,255,255,.55); background: linear-gradient(135deg, #2c4670, #12243d); margin-bottom: 1rem; }
.vip-role { color: var(--saffron); font-weight: 700; font-size: .9rem; margin: 0 0 .2rem; }
.vip h3 { color: #fff; font-size: 1.35rem; margin-bottom: .5rem; }
.vip p:last-child { color: #b9c4d6; font-size: .92rem; margin: 0; }

/* Schedule */
.day-tabs { gap: .6rem; margin-bottom: 1.5rem; }
.day-tabs .nav-link { color: var(--ink); background: var(--mist); font-family: var(--head); font-weight: 900; font-size: 1.3rem; border-radius: 10px; padding: .6rem 1.4rem; text-align: left; }
.day-tabs .nav-link small { display: block; font-family: var(--body); font-weight: 500; font-size: .8rem; opacity: .8; }
.day-tabs .nav-link.active { background: var(--ink); color: #fff; }
.agenda { list-style: none; padding: 0; margin: 0; }
.agenda li { display: grid; grid-template-columns: 5.5rem 1fr; gap: 1rem; padding: 1.1rem 0; border-top: 1px solid #d9e0ea; }
.agenda time { font-family: var(--head); font-weight: 900; font-size: 1.5rem; color: var(--teal); font-variant-numeric: tabular-nums; }
.agenda h3 { font-size: 1.2rem; margin: 0 0 .15rem; }
.agenda p { margin: 0; color: var(--muted); }
@media (max-width: 575.98px) { .agenda li { grid-template-columns: 1fr; gap: .1rem; } }

/* Registration ticket */
.ticket { display: grid; grid-template-columns: 1fr; max-width: 1060px; margin: 0 auto; border-radius: 18px; overflow: hidden; box-shadow: 0 30px 60px rgba(0,0,0,.3); }
.ticket-stub { background: var(--teal-dark); color: #fff; padding: 2rem; }
.ticket-stub h2 { color: #fff; font-size: clamp(1.7rem, 3vw, 2.3rem); }
.stub-facts li { display: flex; gap: .7rem; align-items: center; margin-top: .7rem; font-weight: 500; }
.stub-facts i { color: var(--saffron); }
.ticket-form { background: #fff; padding: 2rem; }
@media (min-width: 992px) {
  .ticket { grid-template-columns: 5fr 7fr; }
  .ticket-stub { border-right: 3px dashed rgba(255,255,255,.4); padding: 2.5rem; }
  .ticket-form { padding: 2.5rem; }
}
.form-label { font-weight: 700; color: var(--ink); font-size: .9rem; }
.form-control, .form-select { border-radius: 8px; border: 1.5px solid #b9c3d1; padding: .65rem .85rem; }
#regAlert:not(:empty), #contactAlert:not(:empty) { margin-bottom: 1rem; }

/* Guidelines */
.phase { height: 100%; background: var(--mist); border-radius: 14px; padding: 1.5rem; border-top: 5px solid var(--saffron); }
.phase:nth-child(odd) { border-top-color: var(--teal); }
.phase h3 { font-size: 1.35rem; margin-bottom: .8rem; }
.phase ul { list-style: none; padding: 0; margin: 0; }
.phase li { position: relative; padding-left: 1.6rem; margin-bottom: .6rem; font-size: .95rem; }
.phase li::before { content: "\F26E"; font-family: "bootstrap-icons"; position: absolute; left: 0; color: var(--teal); }

/* Bento gallery */
.bento { display: grid; grid-template-columns: repeat(2, 1fr); grid-auto-rows: 150px; gap: .8rem; margin-top: 1.5rem; }
.gal-item { border: 0; border-radius: 14px; color: #fff; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .4rem; font-weight: 700; overflow: hidden; transition: transform .2s; background: linear-gradient(135deg, var(--teal), #124a78); }
.gal-item i { font-size: 2.2rem; color: var(--saffron); }
.gal-item:hover { transform: scale(1.02); }
.gal-item img { width: 100%; height: 100%; object-fit: cover; } /* for real photos */
.t2 { background: linear-gradient(135deg, #7a4a00, #c98700); } .t4 { background: linear-gradient(135deg, #2c4670, #12243d); } .t5 { background: linear-gradient(135deg, #08474d, #0c6b73); }
.t1 { grid-column: span 2; grid-row: span 2; }
.t2, .t5 { grid-column: span 2; }
@media (min-width: 768px) { .bento { grid-template-columns: repeat(4, 1fr); grid-auto-rows: 170px; } .t6 { grid-column: span 2; } }
.lb-slot { background: linear-gradient(135deg, var(--teal), #124a78); color: #fff; }
.lb-slot > div, .map-slot > div { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .4rem; }
.lb-slot i, .map-slot i { font-size: 3rem; color: var(--saffron); }

/* FAQ */
.accordion { --bs-accordion-border-color: #d9e0ea; }
.accordion-item { border-left: 0; border-right: 0; }
.accordion-button { font-family: var(--head); font-weight: 700; font-size: 1.15rem; color: var(--ink); padding: 1.2rem .25rem; }
.accordion-button:not(.collapsed) { background: transparent; color: var(--teal); box-shadow: none; }
.accordion-button:focus { box-shadow: 0 0 0 3px var(--saffron); }
.accordion-body { padding-left: .25rem; color: var(--muted); }

/* Contact */
.contact-list li { display: flex; gap: .9rem; margin-bottom: 1rem; align-items: flex-start; }
.contact-list i { color: var(--saffron); font-size: 1.25rem; }
.contact-list a { color: #fff; }
.map-slot { background: var(--ink-2); border: 1px solid #263a58; border-radius: 14px; color: #a9b6cb; }
.panel { background: #fff; border-radius: 16px; padding: 2rem; }

/* Footer */
.foot { background: #08111e; color: #a9b6cb; padding: 1.5rem 0; }
.social { display: flex; gap: .6rem; }
.social a { width: 38px; height: 38px; border-radius: 50%; border: 1px solid #3a4c68; color: #fff; display: grid; place-items: center; text-decoration: none; }
.social a:hover { background: var(--saffron); color: var(--ink); border-color: var(--saffron); }
.convocation-gallery-section {
  background-color: #ffffff;
}

/* Section Title */
.gallery-title {
  font-family: 'Playfair Display', Georgia, serif;
  font-weight: 700;
  font-size: 2.5rem;
  color: #111111;
}

/* Card Heights & Containers */
.gallery-card {
  height: 240px;
  cursor: pointer;
  transition: transform 0.3s ease;
}

.gallery-card-tall {
  height: 496px; /* Matches 2 small cards (240px * 2) + 16px gap */
}

/* Dark Gradient Overlay for Text Readability */
.card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(30, 0, 10, 0.85) 0%, rgba(0, 0, 0, 0.1) 60%, rgba(0, 0, 0, 0) 100%);
  transition: opacity 0.3s ease;
}

/* Date Pill Badge Styling */
.date-badge {
  background-color: rgba(139, 87, 42, 0.85) !important; /* Brown shade matching screenshot */
  color: #ffffff;
  font-weight: 500;
  font-size: 0.8rem;
  padding: 6px 14px;
  backdrop-filter: blur(4px);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

/* Title styling inside cards */
.gallery-card .card-title {
  font-family: 'Playfair Display', Georgia, serif;
  letter-spacing: 0.5px;
}

/* Hover Effects */
.gallery-card:hover {
  transform: translateY(-4px);
}

.gallery-card img {
  transition: transform 0.4s ease;
}

.gallery-card:hover img {
  transform: scale(1.04);
}

/* Mobile & Tablet Adjustments */
@media (max-width: 991px) {
  .gallery-card-tall {
    height: 350px;
  }
}

/* Sticky Top Header Styling */
.top-header {
  position: sticky;
  top: 0;
  z-index: 1030;
  background-color: #0b1426; /* Dark theme matching your hero section */
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 10px;
  padding-bottom: 10px;
}

/* Override existing sidebar width rules on <main> */
main,
main.with-rail {
  margin-left: 0 !important;
  width: 100% !important;
}

/* Nav links styling inside top header */
.top-header .nav-link {
  color: #d1d5db;
  font-size: 0.9rem;
  padding: 8px 12px;
  border-radius: 6px;
  transition: all 0.2s ease;
}

.top-header .nav-link:hover,
.top-header .nav-link.active {
  color: #ffffff;
  background-color: rgba(255, 255, 255, 0.1);
}

/* Hamburger menu icon color for dark header */
.top-header .navbar-toggler {
  border-color: rgba(255, 255, 255, 0.2);
}

.top-header .navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28255, 255, 255, 0.8%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}