/* ============ Apex University – Convocation 2026 ============ */
:root {
  --navy: #121b44;
  --navy-deep: #0a1030;
  --navy-light: #1d2a63;
  --gold: #d9a21b;
  --gold-light: #f0c75a;
  --gold-dark: #b0800f;
  --cream: #faf7ef;
  --ink: #2a2f4a;
  --muted: #6b7190;
  --radius: 18px;
  --shadow: 0 18px 45px rgba(18, 27, 68, .14);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
  font-family: 'Poppins', sans-serif;
  color: var(--ink);
  background: #fff;
  line-height: 1.75;
  overflow-x: hidden;
}
h1, h2, h3, h4, h5 { font-family: "Montserrat", sans-serif; font-weight: 700; color: var(--navy); }
a { text-decoration: none; }
img { max-width: 100%; }
.gold-text { color: var(--gold); }

/* ---------- Preloader ---------- */
#preloader {
  position: fixed; inset: 0; z-index: 9999;
  background: var(--navy);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 24px;
  transition: opacity .6s ease, visibility .6s ease;
}
#preloader.hide { opacity: 0; visibility: hidden; }
.preloader-logo { height: 130px; animation: pulse 1.6s ease-in-out infinite; }
.preloader-bar { width: 160px; height: 3px; background: rgba(255,255,255,.15); border-radius: 3px; overflow: hidden; }
.preloader-bar span { display: block; height: 100%; width: 40%; background: var(--gold); border-radius: 3px; animation: load 1.2s ease-in-out infinite; }
@keyframes load { 0% { transform: translateX(-100%); } 100% { transform: translateX(300%); } }
@keyframes pulse { 0%,100% { transform: scale(1); } 50% { transform: scale(1.06); } }

/* ---------- Navbar ---------- */
#mainNav {
  padding: 0 0 8px;
  transition: all .35s ease;
  background: rgba(18, 27, 68, .97);
  backdrop-filter: blur(10px);
}
#mainNav.scrolled {
  background: rgba(18, 27, 68, .96);
  backdrop-filter: blur(10px);
  padding: 6px 0;
  box-shadow: 0 8px 30px rgba(0,0,0,.25);
}
.brand-text { font-family: 'Cormorant Garamond', serif; font-size: 1.45rem; color: #fff; letter-spacing: .5px; }
.brand-text b { color: var(--gold); }
#mainNav .nav-link {
  color: rgba(255,255,255,.85);
  font-weight: 500; font-size: .82rem;
  padding: 8px 10px !important;
  position: relative;
  transition: color .25s;
}
#mainNav .nav-link::after {
  content: ''; position: absolute; left: 14px; right: 14px; bottom: 2px; height: 2px;
  background: var(--gold); transform: scaleX(0); transform-origin: left; transition: transform .3s;
}
#mainNav .nav-link:hover, #mainNav .nav-link.active { color: var(--gold-light); }
#mainNav .nav-link:hover::after, #mainNav .nav-link.active::after { transform: scaleX(1); }
.navbar-toggler { border: 1px solid rgba(255,255,255,.4); color: #fff; padding: 6px 12px; }
.navbar-toggler:focus { box-shadow: 0 0 0 3px rgba(217,162,27,.4); }
@media (max-width: 991px) {
  #mainNav { background: rgba(18,27,68,.97); }
  #mainNav .navbar-collapse { padding: 12px 0 18px; }
  #mainNav .nav-link::after { display: none; }
}

/* ---------- Buttons ---------- */
.btn-gold {
  background: linear-gradient(135deg, var(--gold-light), var(--gold));
  color: var(--navy) !important;
  border: none; font-weight: 600;
  border-radius: 50px; padding: 10px 26px;
  box-shadow: 0 8px 22px rgba(217,162,27,.35);
  transition: transform .25s, box-shadow .25s;
}
.btn-gold.btn-sm { padding: 8px 20px; }
.btn-gold:hover { transform: translateY(-3px); box-shadow: 0 14px 30px rgba(217,162,27,.5); }
.btn-outline-gold {
  border: 2px solid var(--gold); color: #fff; font-weight: 600;
  border-radius: 50px; padding: 10px 26px;
  transition: all .25s;
}
.btn-outline-gold:hover { background: var(--gold); color: var(--navy); transform: translateY(-3px); }

/* ---------- Hero (banner image only) ---------- */
.hero-banner { padding-top: 76px; background: var(--navy); line-height: 0; }
.hero-banner picture, .hero-banner img { display: block; width: 100%; height: auto; }

/* Eyebrow label (used in section headings) */
.eyebrow {
  display: inline-block;
  font-size: .8rem; font-weight: 600; letter-spacing: 2.5px; text-transform: uppercase;
  color: var(--gold-light);
  border: 1px solid rgba(240,199,90,.5);
  padding: 7px 18px; border-radius: 50px;
  background: rgba(255,255,255,.06);
}
.eyebrow.dark { color: var(--gold-dark); border-color: rgba(176,128,15,.4); background: rgba(217,162,27,.08); }

/* ---------- Highlights ---------- */
.highlights { padding-top: 56px; position: relative; z-index: 5; }
.hl-card {
  background: #fff; border-radius: var(--radius);
  padding: 30px 22px; text-align: center; height: 100%;
  box-shadow: var(--shadow);
  border-bottom: 4px solid var(--gold);
  transition: transform .3s, box-shadow .3s;
}
.hl-card:hover { transform: translateY(-8px); box-shadow: 0 26px 55px rgba(18,27,68,.22); }
.hl-card i {
  font-size: 1.6rem; color: var(--gold);
  width: 66px; height: 66px; border-radius: 50%;
  display: inline-grid; place-items: center;
  background: var(--navy); margin-bottom: 14px;
}
.hl-card h5 { font-size: 1.35rem; margin-bottom: 6px; }
.hl-card p { font-size: .88rem; color: var(--muted); margin: 0; line-height: 1.55; }

/* ---------- Sections ---------- */
.section { padding: 100px 0; }
.section-alt { background: var(--cream); }
.section-head { text-align: center; margin-bottom: 56px; }
.section-head h2 { font-size: clamp(2.2rem, 5vw, 3.4rem); margin: 18px 0 8px; }
.divider { display: flex; align-items: center; justify-content: center; gap: 14px; color: var(--gold); }
.divider::before, .divider::after { content: ''; width: 70px; height: 2px; background: linear-gradient(90deg, transparent, var(--gold)); }
.divider::after { transform: scaleX(-1); }

/* About */
.about-img { position: relative; border-radius: var(--radius); }
.about-img::before {
  content: ''; position: absolute; top: 18px; left: -18px; right: 18px; bottom: -18px;
  border: 3px solid var(--gold); border-radius: var(--radius); z-index: 0;
}
.about-img img { position: relative; z-index: 1; width: 100%; border-radius: var(--radius); box-shadow: var(--shadow); }
.about-badge {
  position: absolute; z-index: 2; right: -14px; bottom: 28px;
  display: flex; align-items: center; gap: 12px;
  background: var(--navy); color: #fff;
  padding: 14px 22px; border-radius: 14px; box-shadow: var(--shadow);
}
.about-badge i { font-size: 1.7rem; color: var(--gold); }
.about-badge strong { display: block; line-height: 1.2; }
.about-badge small { color: var(--gold-light); }
.greeting { font-size: 1.7rem; margin-bottom: 18px; }
.wish {
  margin-top: 26px; padding: 22px 26px;
  font-family: 'Cormorant Garamond', serif; font-size: 1.6rem; font-weight: 700; color: var(--navy);
  background: linear-gradient(135deg, rgba(240,199,90,.2), rgba(217,162,27,.08));
  border-left: 5px solid var(--gold); border-radius: 0 var(--radius) var(--radius) 0;
}
.wish i { color: var(--gold); font-size: 1rem; margin-right: 8px; }

/* CTA band */
.cta-band {
  background: linear-gradient(120deg, var(--navy-deep), var(--navy) 55%, var(--navy-light));
  color: #fff; padding: 64px 0; position: relative; overflow: hidden;
}
.cta-band::before {
  content: ''; position: absolute; width: 420px; height: 420px; border-radius: 50%;
  right: -120px; top: -180px; background: radial-gradient(circle, rgba(217,162,27,.3), transparent 70%);
}
.cta-band h2 { color: #fff; font-size: clamp(1.9rem, 4vw, 2.6rem); }
.cta-band p { color: rgba(255,255,255,.8); margin: 0; }

/* ---------- Gallery ---------- */
.gallery-grid {}
.g-item {
  position: relative; display: block; overflow: hidden;
  border-radius: 14px; aspect-ratio: 4 / 3; background: var(--navy-light);
  box-shadow: 0 8px 22px rgba(18,27,68,.12);
}
/* .g-item:nth-child(1) { grid-column: span 2; grid-row: span 2; aspect-ratio: auto; }
.g-item:nth-child(6), .g-item:nth-child(7), .g-item:nth-child(8) { grid-column: span 2; grid-row: span 2; aspect-ratio: auto; } */
.g-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.g-item span {
  position: absolute; inset: 0; display: grid; place-items: center;
  background: linear-gradient(180deg, rgba(18,27,68,.1), rgba(18,27,68,.8));
  color: var(--gold-light); font-size: 1.8rem;
  opacity: 0; transition: opacity .35s;
}
.g-item:hover img { transform: scale(1.12); }
.g-item:hover span { opacity: 1; }
@media (max-width: 991px) { .gallery-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 575px) {
  .gallery-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .g-item:nth-child(6) { grid-column: auto; grid-row: auto; aspect-ratio: 4 / 3; }
}

/* Lightbox */
.lightbox-content { background: transparent; border: 0; align-items: center; position: relative; }
.lightbox-content img { max-height: 82vh; max-width: 100%; border-radius: 14px; box-shadow: 0 30px 70px rgba(0,0,0,.6); border: 3px solid var(--gold); }
.lb-close { position: absolute; top: -34px; right: 0; z-index: 3; opacity: 1; }
.lb-nav {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 3;
  width: 48px; height: 48px; border-radius: 50%; border: 0;
  background: var(--gold); color: var(--navy); font-size: 1.05rem;
  transition: transform .2s;
}
.lb-nav:hover { transform: translateY(-50%) scale(1.12); }
.lb-prev { left: 8px; } .lb-next { right: 8px; }
.lb-count { color: #fff; margin-top: 12px; font-size: .9rem; letter-spacing: 1px; }
.modal-backdrop.show { opacity: .88; background: var(--navy-deep); }

/* ---------- Map ---------- */
.map-wrap {
  border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow); border: 5px solid var(--navy);
}
.map-wrap iframe { display: block; }

/* ---------- Footer ---------- */
.footer { background: var(--navy-deep); color: rgba(255,255,255,.8); padding: 80px 0 0; position: relative; }
.footer::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 4px; background: linear-gradient(90deg, var(--gold-dark), var(--gold-light), var(--gold-dark)); }
.footer .muted { color: rgba(255,255,255,.65); font-size: .92rem; }
.footer-title { color: #fff; font-size: 1.6rem; margin-bottom: 20px; position: relative; padding-bottom: 12px; }
.footer-title::after { content: ''; position: absolute; left: 0; bottom: 0; width: 46px; height: 3px; background: var(--gold); border-radius: 3px; }
.footer-links li { margin-bottom: 8px; }
.footer-links a { color: rgba(255,255,255,.75); transition: all .25s; }
.footer-links a i { color: var(--gold); font-size: .7rem; margin-right: 8px; }
.footer-links a:hover { color: var(--gold-light); padding-left: 6px; }
.contact-list li { display: flex; gap: 16px; margin-bottom: 18px; }
.contact-list > li > i {
  flex: 0 0 44px; height: 44px; border-radius: 12px; display: grid; place-items: center;
  background: rgba(217,162,27,.15); color: var(--gold-light); border: 1px solid rgba(240,199,90,.3);
}
.contact-list small { display: block; color: var(--gold-light); font-weight: 500; letter-spacing: .5px; line-height: 1.3; }
.contact-list a { color: #fff; }
.contact-list a:hover { color: var(--gold-light); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.12); padding: 22px 0; font-size: .88rem; color: rgba(255,255,255,.6); }

/* Back to top */
#toTop {
  position: fixed; right: 22px; bottom: 22px; z-index: 900;
  width: 48px; height: 48px; border-radius: 50%; border: 0;
  background: linear-gradient(135deg, var(--gold-light), var(--gold)); color: var(--navy);
  box-shadow: 0 10px 25px rgba(0,0,0,.3);
  opacity: 0; visibility: hidden; transform: translateY(20px); transition: all .3s;
}
#toTop.show { opacity: 1; visibility: visible; transform: none; }
#toTop:hover { transform: translateY(-4px); }

@media (max-width: 767px) {
  .section { padding: 70px 0; }
  .about-badge { right: 8px; }
  .highlights { padding-top: 40px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
}

/* ---------- Registration closed ---------- */
.closed-wrap { display: inline-block; cursor: not-allowed; }
.btn-closed {
  background: rgba(255,255,255,.08); color: #ffb4b4 !important;
  border: 2px dashed rgba(255,150,150,.55); border-radius: 50px;
  font-weight: 600; padding: 10px 26px; opacity: 1 !important;
}
.btn-closed.btn-sm { padding: 8px 20px; }
.dropdown-menu-dark { background: var(--navy-deep); border: 1px solid rgba(240,199,90,.3); }
.dropdown-menu-dark .dropdown-item { color: rgba(255,255,255,.85); }
.dropdown-menu-dark .dropdown-item:hover { background: rgba(217,162,27,.18); color: var(--gold-light); }
@media (max-width: 991px) { .hero-banner { padding-top: 70px; }
.hl-card h5 {
  font-size: .9rem;
  margin-bottom: 6px;
}
}
.navbar-brand{
  width: 100%;
  max-width: 85px;
  padding: 0px;
  margin-bottom: -30px;
}
.opacity-1{
  opacity: 1 !important;
}
.text-justify{
  text-align: justify;
}
section{
  width: 100vw;
  overflow-x: hidden;
}