/* ==========================================================================
   UBIAN Conference 2027 — site styles (Bootstrap 5.3)
   Brand: maroon / gold / navy (from the UBIAN Con poster)
   ========================================================================== */

:root {
  --ub-maroon: #8b1c1c;
  --ub-maroon-dark: #5e1010;
  --ub-maroon-deep: #3d0a0a;
  --ub-gold: #f6b81b;
  --ub-gold-dark: #d99c00;
  --ub-navy: #1d2b4a;
  --ub-ink: #2a2a2a;
  --ub-muted: #6b6b6b;
  --ub-bg: #faf8f6;
  --ub-line: #ebe4df;

  --bs-body-font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --bs-body-color: var(--ub-ink);
  --bs-link-color: var(--ub-maroon);
  --bs-link-hover-color: var(--ub-maroon-dark);
  --bs-link-color-rgb: 139, 28, 28;
  --bs-link-hover-color-rgb: 94, 16, 16;
}

html { scroll-behavior: smooth; }
body { background: #fff; }
[id] { scroll-margin-top: 88px; }

h1, h2, h3, h4, h5, .display-1, .display-2, .display-3, .display-4, .display-5, .display-6 {
  font-family: "Poppins", var(--bs-body-font-family);
  font-weight: 700;
  color: var(--ub-navy);
}

.text-maroon { color: var(--ub-maroon) !important; }
.text-gold { color: var(--ub-gold) !important; }
.text-navy { color: var(--ub-navy) !important; }
.bg-soft { background: var(--ub-bg); }

/* Buttons ---------------------------------------------------------------- */
.btn { font-weight: 600; border-radius: .6rem; }
.btn-primary {
  --bs-btn-bg: var(--ub-maroon); --bs-btn-border-color: var(--ub-maroon);
  --bs-btn-hover-bg: var(--ub-maroon-dark); --bs-btn-hover-border-color: var(--ub-maroon-dark);
  --bs-btn-active-bg: var(--ub-maroon-deep); --bs-btn-active-border-color: var(--ub-maroon-deep);
  --bs-btn-focus-shadow-rgb: 139, 28, 28;
}
.btn-outline-primary {
  --bs-btn-color: var(--ub-maroon); --bs-btn-border-color: var(--ub-maroon);
  --bs-btn-hover-bg: var(--ub-maroon); --bs-btn-hover-border-color: var(--ub-maroon);
  --bs-btn-active-bg: var(--ub-maroon-dark); --bs-btn-active-border-color: var(--ub-maroon-dark);
  --bs-btn-focus-shadow-rgb: 139, 28, 28;
}
.btn-gold {
  --bs-btn-bg: var(--ub-gold); --bs-btn-border-color: var(--ub-gold); --bs-btn-color: #2b1a00;
  --bs-btn-hover-bg: var(--ub-gold-dark); --bs-btn-hover-border-color: var(--ub-gold-dark); --bs-btn-hover-color: #2b1a00;
  --bs-btn-active-bg: #c58c00; --bs-btn-active-border-color: #c58c00; --bs-btn-active-color: #2b1a00;
  --bs-btn-focus-shadow-rgb: 246, 184, 27;
}
.btn-outline-light { --bs-btn-hover-color: var(--ub-maroon-deep); }

/* Navbar ----------------------------------------------------------------- */
.site-nav {
  background: rgba(61, 10, 10, .92);
  backdrop-filter: blur(8px);
  transition: box-shadow .2s ease, background .2s ease;
  padding-top: .6rem; padding-bottom: .6rem;
}
.site-nav.scrolled { background: rgba(61, 10, 10, .98); box-shadow: 0 4px 24px rgba(0,0,0,.25); }
.site-nav .brand-text { font-family: "Poppins", sans-serif; font-weight: 700; font-size: 1.15rem; color: #fff; letter-spacing: .01em; }
.site-nav .nav-link { white-space: nowrap; font-weight: 500; color: rgba(255,255,255,.82); padding: .5rem .85rem; border-radius: .5rem; }
.site-nav .nav-link:hover, .site-nav .nav-link:focus { color: #fff; background: rgba(255,255,255,.08); }
.site-nav .nav-link.active { color: var(--ub-gold); }
@media (max-width: 1199.98px) {
  .site-nav .navbar-collapse { padding: .75rem 0 .25rem; }
}

/* Hero ------------------------------------------------------------------- */
.hero {
  position: relative; overflow: hidden; color: #fff;
  padding: 8.5rem 0 5rem;
  background:
    radial-gradient(60rem 30rem at 85% -10%, rgba(246,184,27,.28), transparent 60%),
    radial-gradient(40rem 25rem at -10% 110%, rgba(29,43,74,.55), transparent 60%),
    linear-gradient(135deg, var(--ub-maroon-deep) 0%, var(--ub-maroon) 55%, #a52a2a 100%);
}
.hero::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: radial-gradient(rgba(255,255,255,.08) 1px, transparent 1px);
  background-size: 22px 22px; opacity: .6;
}
.hero > .container { position: relative; z-index: 1; }
.eyebrow {
  display: inline-block; padding: .35rem .85rem; border-radius: 999px;
  background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.25);
  font-size: .8rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase;
}
.hero-title { color: #fff; font-size: clamp(2.4rem, 5.2vw, 4.2rem); line-height: 1.05; margin: 1.1rem 0 .6rem; }
.hero-title .hero-sub { display: block; font-size: clamp(1.35rem, 2.6vw, 2.1rem); font-weight: 600; color: rgba(255,255,255,.92); margin-top: .5rem; }
.hero .lead { color: rgba(255,255,255,.85); max-width: 40rem; }
.hero-facts { margin: 1.5rem 0 2rem; }
.hero-facts li { display: flex; gap: .75rem; align-items: flex-start; margin-bottom: .6rem; font-size: 1.02rem; }
.hero-facts .bi { color: var(--ub-gold); font-size: 1.25rem; line-height: 1.4; }
.hero-facts small { display: block; color: rgba(255,255,255,.65); font-size: .82rem; }
.hero-poster { margin: 0; text-align: center; }
.hero-poster img {
  max-height: 560px; width: auto; max-width: 100%;
  border-radius: 1rem; box-shadow: 0 30px 60px rgba(0,0,0,.45), 0 0 0 6px rgba(255,255,255,.08);
}

/* Deadline strip --------------------------------------------------------- */
.deadline-strip { background: var(--ub-navy); color: #fff; padding: 1.25rem 0; }
.deadline-strip .item { display: flex; gap: .85rem; align-items: center; padding: .5rem 0; }
.deadline-strip .bi { font-size: 1.6rem; color: var(--ub-gold); }
.deadline-strip .label { font-size: .78rem; text-transform: uppercase; letter-spacing: .08em; color: rgba(255,255,255,.65); }
.deadline-strip .value { font-family: "Poppins", sans-serif; font-weight: 600; }

/* Sections --------------------------------------------------------------- */
.section { padding: 5rem 0; }
.section-title { position: relative; margin-bottom: .75rem; }
.section-kicker { color: var(--ub-maroon); font-weight: 700; font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; margin-bottom: .5rem; }
.section-lead { color: var(--ub-muted); font-size: 1.05rem; max-width: 50rem; }
.prose p { line-height: 1.75; }

.feature-card {
  height: 100%; border: 1px solid var(--ub-line); border-radius: 1rem; padding: 1.75rem;
  background: #fff; transition: transform .2s ease, box-shadow .2s ease;
}
.feature-card:hover { transform: translateY(-4px); box-shadow: 0 14px 34px rgba(29,43,74,.10); }
.feature-icon {
  width: 52px; height: 52px; border-radius: .85rem; display: grid; place-items: center;
  background: rgba(139,28,28,.08); color: var(--ub-maroon); font-size: 1.5rem; margin-bottom: 1rem;
}
.feature-card h3 { font-size: 1.15rem; }

.format-chip {
  display: flex; align-items: center; gap: .75rem; padding: .9rem 1.1rem; border-radius: .85rem;
  background: #fff; border: 1px solid var(--ub-line); font-weight: 600; color: var(--ub-navy); height: 100%;
}
.format-chip .bi { color: var(--ub-maroon); font-size: 1.35rem; }

.track-card { height: 100%; border-radius: 1rem; border: 1px solid var(--ub-line); background: #fff; overflow: hidden; }
.track-card .track-head { padding: 1.25rem 1.5rem; background: var(--ub-navy); color: #fff; display: flex; gap: 1rem; align-items: center; }
.track-card .track-num { font-family: "Poppins", sans-serif; font-weight: 800; font-size: 1.6rem; color: var(--ub-gold); line-height: 1; }
.track-card h3 { font-size: 1.05rem; color: #fff; margin: 0; }
.track-card ul { padding: 1.25rem 1.5rem 1.25rem 2.5rem; margin: 0; }
.track-card li { margin-bottom: .45rem; line-height: 1.5; }
.track-card li::marker { color: var(--ub-maroon); }

/* Timeline --------------------------------------------------------------- */
.timeline { list-style: none; padding: 0; margin: 0; position: relative; }
.timeline::before { content: ""; position: absolute; left: 11px; top: 8px; bottom: 8px; width: 2px; background: var(--ub-line); }
.timeline li { position: relative; padding-left: 2.5rem; margin-bottom: 1.35rem; }
.timeline li::before {
  content: ""; position: absolute; left: 4px; top: .35rem; width: 16px; height: 16px; border-radius: 50%;
  background: #fff; border: 4px solid var(--ub-maroon);
}
.timeline li.highlight::before { border-color: var(--ub-gold); background: var(--ub-gold); }
.timeline .date { font-family: "Poppins", sans-serif; font-weight: 700; color: var(--ub-maroon); }
.timeline .what { display: block; color: var(--ub-ink); }

/* CTA band --------------------------------------------------------------- */
.cta-band { background: linear-gradient(120deg, var(--ub-maroon-deep), var(--ub-maroon)); color: #fff; padding: 4rem 0; }
.cta-band h2 { color: #fff; }

/* Page header (inner pages) ---------------------------------------------- */
.page-header {
  padding: 8rem 0 3.5rem; color: #fff;
  background:
    radial-gradient(50rem 20rem at 90% 0%, rgba(246,184,27,.22), transparent 60%),
    linear-gradient(135deg, var(--ub-maroon-deep), var(--ub-maroon));
}
.page-header h1 { color: #fff; font-size: clamp(2rem, 4vw, 3rem); margin-bottom: .5rem; }
.page-header p { color: rgba(255,255,255,.85); max-width: 46rem; margin: 0; }

/* Sub navigation (guidelines) ------------------------------------------- */
.subnav { position: sticky; top: 70px; z-index: 5; background: #fff; border-bottom: 1px solid var(--ub-line); }
.subnav .nav-link { color: var(--ub-navy); font-weight: 600; padding: .9rem 1rem; border-bottom: 3px solid transparent; border-radius: 0; white-space: nowrap; }
.subnav .nav-link:hover, .subnav .nav-link.active { color: var(--ub-maroon); border-bottom-color: var(--ub-maroon); }
.subnav .nav { flex-wrap: nowrap; overflow-x: auto; }

/* Guideline content ------------------------------------------------------ */
.guide-block { padding: 3.5rem 0; border-bottom: 1px solid var(--ub-line); }
.guide-block:last-of-type { border-bottom: 0; }
.guide-block h2 { font-size: 1.75rem; }
.guide-block h3 { font-size: 1.15rem; margin-top: 2rem; margin-bottom: .75rem; color: var(--ub-maroon); }
.guide-block ol, .guide-block ul { line-height: 1.7; }
.guide-block ol li, .guide-block ul li { margin-bottom: .45rem; }
.guide-list-num { counter-reset: n; list-style: none; padding-left: 0; }
.guide-list-num li { counter-increment: n; position: relative; padding-left: 2.6rem; margin-bottom: .7rem; }
.guide-list-num li::before {
  content: counter(n); position: absolute; left: 0; top: .05rem; width: 1.85rem; height: 1.85rem; border-radius: .5rem;
  background: rgba(139,28,28,.08); color: var(--ub-maroon); font-weight: 700; font-size: .85rem; display: grid; place-items: center;
}
.info-card { border: 1px solid var(--ub-line); border-radius: 1rem; padding: 1.5rem; background: var(--ub-bg); }
.info-card h4 { font-size: 1rem; margin-bottom: .5rem; }
.criteria-table th { font-weight: 600; color: var(--ub-navy); }
.criteria-table td:last-child, .criteria-table th:last-child { text-align: right; white-space: nowrap; }
.criteria-table .bar { height: 6px; border-radius: 3px; background: var(--ub-line); overflow: hidden; margin-top: .35rem; }
.criteria-table .bar > span { display: block; height: 100%; background: var(--ub-maroon); }
.callout { border-left: 4px solid var(--ub-gold); background: #fff8e6; padding: 1rem 1.25rem; border-radius: .5rem; }

/* Registration ----------------------------------------------------------- */
.step-list { list-style: none; padding: 0; margin: 0; counter-reset: s; }
.step-list li { counter-increment: s; display: flex; gap: 1rem; margin-bottom: 1.25rem; }
.step-list li::before {
  content: counter(s); flex: 0 0 2.25rem; height: 2.25rem; border-radius: 50%; display: grid; place-items: center;
  background: var(--ub-maroon); color: #fff; font-weight: 700; font-family: "Poppins", sans-serif;
}
.reg-card { border-radius: 1rem; background: var(--ub-navy); color: #fff; padding: 2rem; }
.reg-card h3 { color: #fff; }
.rate-badge {
  display: inline-block; font-family: "Poppins", sans-serif; font-weight: 700; font-size: .8rem; letter-spacing: .08em;
  text-transform: uppercase; color: #fff; background: var(--ub-navy); padding: .3rem .8rem; border-radius: .5rem .5rem 0 0;
}
.rate-badge-eb { background: var(--ub-maroon); }
.rate-table { border: 1px solid var(--ub-line); border-radius: 0 1rem 1rem 1rem; overflow: hidden; background: #fff; }
.rate-table .rate-caption { padding: .6rem 1rem; font-style: italic; color: var(--ub-muted); border-bottom: 1px solid var(--ub-line); background: var(--ub-bg); }
.rate-table table { --bs-table-bg: transparent; }
.rate-table th { font-size: .8rem; letter-spacing: .06em; text-transform: uppercase; color: var(--ub-navy); background: var(--ub-bg); }
.rate-table th, .rate-table td { padding: .8rem 1rem; vertical-align: middle; }
.rate-table td:nth-child(2), .rate-table td:nth-child(3) { font-family: "Poppins", sans-serif; font-weight: 600; white-space: nowrap; }
.rate-table td:nth-child(2) { color: var(--ub-maroon); }
.bank-details { display: grid; grid-template-columns: minmax(8rem, auto) 1fr; gap: .45rem 1rem; margin: 0; }
.bank-details dt { font-weight: 500; color: var(--ub-muted); }
.bank-details dd { margin: 0; }
.gallery-item.poster { aspect-ratio: auto; background: #fff; border: 1px solid var(--ub-line); box-shadow: 0 10px 30px rgba(29,43,74,.08); }
.gallery-item.poster img { height: auto; object-fit: contain; }

/* Gallery ---------------------------------------------------------------- */
.year-heading { display: flex; align-items: center; gap: 1rem; margin-bottom: 1.5rem; }
.year-heading h2 { margin: 0; }
.year-heading::after { content: ""; flex: 1; height: 1px; background: var(--ub-line); }
.gallery-item { display: block; border-radius: .75rem; overflow: hidden; background: var(--ub-line); aspect-ratio: 4 / 3; position: relative; }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s ease; }
.gallery-item:hover img { transform: scale(1.04); }
.gallery-item .zoom {
  position: absolute; right: .6rem; bottom: .5rem; color: #fff; font-size: 1.1rem; opacity: 0;
  transition: opacity .2s; text-shadow: 0 1px 4px rgba(0,0,0,.6);
}
.gallery-item:hover .zoom { opacity: 1; }
#lightbox .modal-content { background: transparent; border: 0; }
.modal-backdrop.show { opacity: .88; }
#lightbox img { max-height: 82vh; width: auto; max-width: 100%; border-radius: .5rem; box-shadow: 0 20px 60px rgba(0,0,0,.6); }
#lightbox .lb-nav {
  position: absolute; top: 50%; transform: translateY(-50%); width: 48px; height: 48px; border-radius: 50%;
  border: 0; background: rgba(255,255,255,.15); color: #fff; font-size: 1.4rem; display: grid; place-items: center;
}
#lightbox .lb-nav:hover { background: rgba(255,255,255,.3); }
#lightbox .lb-prev { left: -8px; } #lightbox .lb-next { right: -8px; }
@media (min-width: 992px) { #lightbox .lb-prev { left: -70px; } #lightbox .lb-next { right: -70px; } }
#lightbox .lb-caption { color: rgba(255,255,255,.8); text-align: center; margin-top: .75rem; font-size: .9rem; }
.doc-card { border: 1px solid var(--ub-line); border-radius: 1rem; padding: 1.5rem; display: flex; gap: 1.25rem; align-items: center; background: #fff; }
.doc-card .bi { font-size: 2.5rem; color: var(--ub-maroon); }

/* Footer ----------------------------------------------------------------- */
.site-footer { background: var(--ub-maroon-deep); color: rgba(255,255,255,.8); padding: 4rem 0 2rem; }
.site-footer h5 { color: #fff; font-size: .9rem; letter-spacing: .1em; text-transform: uppercase; margin-bottom: 1rem; }
.site-footer a { color: rgba(255,255,255,.8); text-decoration: none; }
.site-footer a:hover { color: var(--ub-gold); }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: .5rem; }
.site-footer hr { border-color: rgba(255,255,255,.15); opacity: 1; margin: 2.5rem 0 1.5rem; }
.social-links a {
  display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 50%;
  background: rgba(255,255,255,.1); margin-right: .5rem; font-size: 1.1rem;
}
.social-links a:hover { background: var(--ub-gold); color: var(--ub-maroon-deep); }
.socotec-badge { background: #fff; border-radius: .5rem; padding: .35rem .5rem; display: inline-block; }
.socotec-badge img { height: 44px; }
