/* =====================================================================
   HOME.CSS  (only loaded on index.php)
   ===================================================================== */

/* ---------- Hero -------------------------------------------------- */
.hero { position: relative; min-height: min(100svh, 920px); display: flex; flex-direction: column; color: #fff; background: var(--ink); overflow: hidden; }
.hero-slides { position: absolute; inset: 0; }
.hero-slide {
  position: absolute; inset: 0; background-size: cover; background-position: center;
  opacity: 0; transform: scale(1.08);
  transition: opacity 1.6s var(--ease), transform 8s linear;
}
.hero-slide.is-active { opacity: 1; transform: scale(1); }
.hero-shade {
  position: absolute; inset: 0;
  background:
    linear-gradient(90deg, rgba(12, 34, 45, .9) 0%, rgba(12, 34, 45, .65) 45%, rgba(12, 34, 45, .2) 100%),
    linear-gradient(0deg, rgba(12, 34, 45, .75) 0%, rgba(12, 34, 45, 0) 35%);
}
.hero-inner {
  position: relative; flex: 1; display: grid; align-items: center; gap: 2.5rem;
  padding-top: calc(var(--header-h) + 3rem); padding-bottom: 2rem;
}
@media (min-width: 992px) { .hero-inner { grid-template-columns: minmax(0, 1fr) 340px; align-items: end; padding-bottom: 3rem; } }

.hero-kicker { color: #b9dcef; font-family: var(--font-ui); font-weight: 500; font-size: .95rem; margin-bottom: .5rem; }
.hero-title {
  font-family: var(--font-display); font-weight: 800; color: #fff;
  font-size: clamp(3.4rem, 11vw, 8.6rem); line-height: .95; letter-spacing: -.04em;
  margin: 0 0 1.25rem; margin-left: -.05em;
}
.hero-motto { font-family: var(--font-display); font-weight: 500; font-style: italic; font-size: clamp(1.3rem, 2.4vw, 1.75rem); line-height: 1.35; color: #fff; max-width: 30ch; margin-bottom: 1rem; }
.hero-sub { color: rgba(255, 255, 255, .8); font-size: 1.1rem; max-width: 46ch; margin-bottom: 2rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .85rem; }

/* Letter-by-letter reveal of "Transcend." (letters are wrapped by main.js) */
.split-letter { display: inline-block; opacity: 0; transform: translateY(.35em); filter: blur(6px);
  animation: letter-in .9s var(--ease) forwards; animation-delay: calc(var(--i) * 55ms + 200ms); }
@keyframes letter-in { to { opacity: 1; transform: none; filter: blur(0); } }
.hero-motto, .hero-sub, .hero-actions, .hero-kicker { animation: fade-up .9s var(--ease) both; }
.hero-kicker { animation-delay: .1s; }
.hero-motto { animation-delay: .75s; }
.hero-sub { animation-delay: .9s; }
.hero-actions { animation-delay: 1.05s; }
.hero-card { animation: fade-up .9s var(--ease) 1.25s both; }
@keyframes fade-up { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }

/* Admissions card in the hero */
.hero-card {
  background: rgba(12, 34, 45, .55); border: 1px solid rgba(255, 255, 255, .18);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-radius: var(--radius-lg); padding: 1.5rem;
}
.hero-card-status { display: flex; align-items: center; gap: .55rem; font-size: .875rem; font-weight: 600; color: #bbf7d0; margin-bottom: .6rem; }
.hero-card-title { font-size: 1.6rem; color: #fff; margin-bottom: .1rem; }
.hero-card-sub { font-family: var(--font-ui); font-size: .85rem; color: rgba(255, 255, 255, .75); margin-bottom: 1rem; }
.hero-card-list { list-style: none; padding: 0; margin: 0 0 1.25rem; display: grid; gap: .45rem; font-size: .95rem; color: rgba(255, 255, 255, .85); }
.hero-card-list li { display: flex; gap: .5rem; }
.hero-card-list .bi { color: var(--gold); }
.hero-card .link-arrow { color: #fff; }

/* Caption and slide buttons */
.hero-foot { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding-bottom: 1.5rem; }
.hero-caption { margin: 0; font-size: .85rem; color: rgba(255, 255, 255, .7); transition: opacity .4s; }
.hero-caption::before { content: ""; display: inline-block; width: 22px; height: 1px; background: currentColor; vertical-align: middle; margin-right: .6rem; }
.hero-dots { display: flex; gap: .5rem; }
.hero-dots button { width: 44px; height: 24px; padding: 0; border: 0; background: none; display: grid; align-items: center; }
.hero-dots span { display: block; height: 3px; border-radius: 3px; background: rgba(255, 255, 255, .3); overflow: hidden; position: relative; }
.hero-dots span::after { content: ""; position: absolute; inset: 0; background: #fff; transform: scaleX(0); transform-origin: left; }
.hero-dots button.is-active span::after { animation: dot-fill var(--slide-interval, 6.5s) linear forwards; }
@keyframes dot-fill { to { transform: scaleX(1); } }
.hero > .naga-band { position: relative; }

@media (max-width: 991.98px) {
  .hero-card { max-width: 420px; }
}
@media (max-width: 575.98px) {
  .hero-card { display: none; }
  .hero-caption { display: none; }
}

/* ---------- Notice ticker ----------------------------------------- */
.notice-bar { background: var(--navy-2); color: #fff; font-size: .92rem; }
.notice-bar-inner { display: flex; align-items: center; gap: 1.25rem; min-height: 56px; }
.notice-bar-label {
  flex: none; display: inline-flex; align-items: center; gap: .45rem;
  background: var(--maroon); color: #fff; padding: .35rem .85rem; border-radius: 999px;
  font-weight: 600; font-size: .875rem; text-decoration: none;
}
.notice-bar .marquee { flex: 1; min-width: 0; }
.notice-bar .marquee-track li { padding-right: 3rem; }
.notice-bar .marquee-track li::before { content: ""; display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: var(--gold); margin-right: .85rem; vertical-align: middle; }
.notice-bar .marquee-track a { color: #fff; text-decoration: none; }
.notice-bar .marquee-track a:hover { text-decoration: underline; }
.notice-bar-all { flex: none; color: var(--sky); font-weight: 600; text-decoration: none; font-size: .875rem; }
.notice-bar-all:hover { color: #fff; }
@media (max-width: 575.98px) { .notice-bar-all { display: none; } }

/* ---------- Introduction ------------------------------------------ */
.intro-photos { position: relative; padding: 0 0 3.5rem 3rem; }
.intro-photo-main { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius-lg); }
.intro-photo-inset {
  position: absolute; left: 0; bottom: 0; width: 46%; aspect-ratio: 1; object-fit: cover;
  border-radius: var(--radius); border: 6px solid #fff; box-shadow: var(--shadow);
}
.intro-emblem {
  position: absolute; right: 1.25rem; bottom: 1rem; width: 104px; height: 104px; border-radius: 50%;
  background: #fff; display: grid; place-items: center; box-shadow: var(--shadow);
}

/* ---------- Bento grid -------------------------------------------- */
.bento { display: grid; gap: 1.25rem; grid-template-columns: 1fr; }
@media (min-width: 768px) {
  .bento { grid-template-columns: repeat(6, 1fr); grid-auto-rows: minmax(250px, auto); }
  .bento-skill   { grid-column: span 4; grid-row: span 2; }
  .bento-lspd    { grid-column: span 2; }
  .bento-scholar { grid-column: span 2; }
  .bento-campus  { grid-column: span 6; }
}
@media (min-width: 1200px) {
  .bento-campus { grid-column: span 6; min-height: 300px; }
}
.bento-item {
  position: relative; border-radius: var(--radius-lg); overflow: hidden;
  padding: 1.75rem; background: var(--paper); display: flex; flex-direction: column; gap: .5rem;
}
.bento-item h3 { font-size: 1.5rem; margin: 0; }
.bento-item p { margin: 0 0 .5rem; color: var(--muted); }
.bento-icon { font-size: 1.6rem; color: var(--maroon); margin-bottom: auto; padding-bottom: 1.5rem; }
.bento-lspd { background: #e9f1f6; }
.bento-scholar { background: #f7eeee; }

/* Photo tiles: text sits on a shaded photo */
.bento-skill, .bento-campus { color: #fff; justify-content: flex-end; min-height: 320px; }
.bento-skill img, .bento-campus img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.bento-skill::before, .bento-campus::before {
  content: ""; position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(0deg, rgba(12, 34, 45, .92) 0%, rgba(12, 34, 45, .35) 55%, rgba(12, 34, 45, .05) 100%);
}
.bento-campus::before { background: linear-gradient(90deg, rgba(12, 34, 45, .92) 0%, rgba(12, 34, 45, .55) 50%, rgba(12, 34, 45, .05) 100%); }
.bento-body { position: relative; z-index: 2; max-width: 34rem; }
.bento-skill h3, .bento-campus h3 { color: #fff; font-size: clamp(1.6rem, 3vw, 2.2rem); margin-bottom: .5rem; }
.bento-skill p, .bento-campus p { color: rgba(255, 255, 255, .85); }
.bento-skill:hover img, .bento-campus:hover img { transform: scale(1.04); }
.link-light { color: #fff; }
.link-light:hover { color: var(--gold); }

/* ---------- Photo marquee ----------------------------------------- */
.photo-reel { padding-bottom: calc(var(--section-y) * .8); overflow: hidden; }
.reel { margin-top: 1rem; }
.reel .marquee-track li { padding-right: 1rem; }
.reel img { height: clamp(150px, 20vw, 230px); width: auto; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius); }
.reel-reverse .marquee-track { animation-direction: reverse; }

/* ---------- Admissions band --------------------------------------- */
.cta-band { position: relative; color: #fff; background: var(--ink); overflow: hidden; }
.cta-band-bg { position: absolute; inset: 0; background-size: cover; background-position: center 60%; }
.cta-band-bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(18, 48, 63, .96) 0%, rgba(18, 48, 63, .82) 55%, rgba(18, 48, 63, .55) 100%); }
.cta-band-inner { position: relative; display: grid; gap: 2rem; align-items: center; padding-block: clamp(3.5rem, 7vw, 5.5rem); }
@media (min-width: 992px) { .cta-band-inner { grid-template-columns: 1.4fr 1fr; } .cta-band-actions { justify-content: flex-end; } }
.cta-band h2 { color: #fff; margin-bottom: .75rem; }
.cta-band p { color: rgba(255, 255, 255, .82); font-size: 1.1rem; margin: 0; }
.cta-band-actions { display: flex; flex-wrap: wrap; gap: .85rem; }
