/* ==========================================================================
   ST. FRANCIS DE SALES PRE-UNIVERSITY COLLEGE
   campuslife.css — Campus Life page only (loaded after sfs.css and about.css,
   which supplies the shared inner-page hero). Existing design tokens only;
   every class is prefixed `sfs-cl-`.
   ========================================================================== */

/* ---- in-page section chips ---- */
.sfs-cl-nav {
  background: var(--sfs-white); border-bottom: 1px solid var(--sfs-line);
  position: sticky; top: var(--sfs-ab-nav-h, 89px); z-index: 30;
}
.sfs-cl-nav__list { display: flex; gap: 10px; flex-wrap: wrap; list-style: none; margin: 0; padding: 18px 0; }
.sfs-cl-nav__list a {
  display: inline-flex; align-items: center; gap: 10px; padding: 10px 18px; border-radius: 999px;
  border: 1px solid var(--sfs-line); font-size: 0.945rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--sfs-ink-70);
  transition: background-color .3s var(--sfs-ease), color .3s var(--sfs-ease), border-color .3s var(--sfs-ease), transform .35s var(--sfs-ease-out);
}
.sfs-cl-nav__list a span { font-family: var(--sfs-display); color: var(--sfs-amber-ink); }
.sfs-cl-nav__list a:hover { background: var(--sfs-blue); border-color: var(--sfs-blue); color: var(--sfs-white); transform: translateY(-2px); }
.sfs-cl-nav__list a:hover span { color: var(--sfs-gold); }

/* ---- section shell ---- */
.sfs-cl-sec { background: var(--sfs-white); scroll-margin-top: calc(var(--sfs-ab-nav-h, 89px) + 76px); }
.sfs-cl-sec:nth-of-type(even) { background: var(--sfs-paper); }
.sfs-cl-head { display: flex; align-items: flex-end; gap: clamp(16px, 3vw, 32px); margin-bottom: clamp(30px, 4vw, 48px); }
.sfs-cl-head__no { font-family: var(--sfs-display); font-size: clamp(2.8rem, 6vw, 4.6rem); font-weight: 800; line-height: .8; letter-spacing: -.03em; color: transparent; -webkit-text-stroke: 1.4px var(--sfs-ink-30); }
.sfs-cl-head h2 { font-family: var(--sfs-display); font-size: clamp(2rem, 3.6vw, 3.2rem); font-weight: 700; letter-spacing: -.03em; line-height: 1.05; }

/* ---- laboratories ---- */
.sfs-cl-labs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(18px, 2.4vw, 28px); list-style: none; margin: 0; padding: 0; }
.sfs-cl-lab { background: var(--sfs-white); border: 1px solid var(--sfs-line); border-radius: 18px; overflow: hidden; transition: transform .45s var(--sfs-ease-out), box-shadow .45s var(--sfs-ease), border-color .3s; }
.sfs-cl-lab:hover { transform: translateY(-4px); border-color: transparent; box-shadow: 0 26px 54px -38px rgba(7, 29, 67, .45); }
.sfs-cl-lab figure { margin: 0; aspect-ratio: 16 / 10; overflow: hidden; background: var(--sfs-line-soft); }
.sfs-cl-lab img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--sfs-ease-out); }
.sfs-cl-lab:hover img { transform: scale(1.05); }
.sfs-cl-lab h3 { padding: 20px 24px 22px; font-family: var(--sfs-display); font-size: 1.3rem; font-weight: 700; letter-spacing: -.02em; }
.sfs-cl-lab h3::before { content: ""; display: inline-block; width: 26px; height: 2px; margin-right: 12px; vertical-align: middle; background: var(--sfs-amber); }

/* ---- placeholder sections ("To be updated" on the source pages) ---- */
.sfs-cl-tbu { display: flex; align-items: center; gap: 18px; padding: clamp(22px, 3vw, 34px); background: var(--sfs-white); border: 1px dashed var(--sfs-ink-30); border-radius: 16px; }
.sfs-cl-sec:nth-of-type(even) .sfs-cl-tbu { background: var(--sfs-white); }
.sfs-cl-tbu svg { flex: none; color: var(--sfs-amber-ink); }
.sfs-cl-tbu p { font-family: var(--sfs-display); font-size: 1.15rem; font-weight: 700; color: var(--sfs-ink-70); }

/* ---- NCC ---- */
.sfs-cl-ncc { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(28px, 5vw, 72px); align-items: start; }
.sfs-cl-ncc__text p { max-width: 68ch; line-height: 1.8; color: var(--sfs-ink-70); }
.sfs-cl-ncc__text p + p { margin-top: 18px; }
.sfs-cl-ncc__text b { color: var(--sfs-blue); font-weight: 700; background: linear-gradient(0deg, rgba(244, 165, 28, .22) 38%, transparent 38%); padding: 0 2px; }
.sfs-cl-ncc__lead { font-size: clamp(1.15rem, 1.6vw, 1.4rem); color: var(--sfs-ink) !important; }
/* modern bento-style mosaic: one tall featured shot beside two stacked
   smaller ones, each a clickable button that opens the lightbox below */
.sfs-cl-ncc__gallery {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-rows: repeat(2, minmax(120px, 1fr));
  gap: 14px;
}
.sfs-cl-ncc__gallery figure { margin: 0; }
.sfs-cl-ncc__gallery figure:first-child { grid-row: 1 / span 2; }
.sfs-cl-ncc__gallery button {
  display: block; width: 100%; height: 100%; padding: 0; border: 1px solid var(--sfs-line); border-radius: 16px;
  overflow: hidden; background: var(--sfs-line-soft); cursor: zoom-in; position: relative;
  transition: transform .4s var(--sfs-ease-out), box-shadow .4s var(--sfs-ease), border-color .3s;
}
.sfs-cl-ncc__gallery button:hover, .sfs-cl-ncc__gallery button:focus-visible {
  transform: translateY(-3px); border-color: transparent; box-shadow: 0 22px 46px -30px rgba(7, 29, 67, .5);
}
.sfs-cl-ncc__gallery button:focus-visible { outline: 3px solid var(--sfs-amber); outline-offset: 3px; }
.sfs-cl-ncc__gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--sfs-ease-out); }
.sfs-cl-ncc__gallery button:hover img, .sfs-cl-ncc__gallery button:focus-visible img { transform: scale(1.06); }
.sfs-cl-ncc__gallery button::after {
  content: ""; position: absolute; right: 10px; bottom: 10px; width: 30px; height: 30px; border-radius: 50%;
  background: rgba(4, 20, 47, .55) no-repeat center / 14px
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='white' stroke-width='1.6' stroke-linecap='round'%3E%3Ccircle cx='7' cy='7' r='4.5'/%3E%3Cpath d='M10.5 10.5L14 14M7 5v4M5 7h4'/%3E%3C/svg%3E");
  opacity: 0; transform: translateY(6px); transition: opacity .3s var(--sfs-ease), transform .3s var(--sfs-ease-out);
}
.sfs-cl-ncc__gallery button:hover::after, .sfs-cl-ncc__gallery button:focus-visible::after { opacity: 1; transform: none; }
@media (min-width: 1001px) { .sfs-cl-ncc__gallery { position: sticky; top: 110px; } }

/* full-screen lightbox for the NCC gallery */
.sfs-cl-lb { position: fixed; inset: 0; z-index: 400; display: flex; align-items: center; justify-content: center; background: rgba(4, 20, 47, .94); }
.sfs-cl-lb[hidden] { display: none; }
.sfs-cl-lb__stage { flex: 1; min-width: 0; height: 100%; display: flex; align-items: center; justify-content: center; padding: 64px 12px; }
.sfs-cl-lb__stage img { max-width: 100%; max-height: 100%; object-fit: contain; border-radius: 6px; box-shadow: 0 30px 80px rgba(0, 0, 0, .5); }
.sfs-cl-lb__close, .sfs-cl-lb__nav {
  position: absolute; border: 0; cursor: pointer; color: var(--sfs-white); background: rgba(255, 255, 255, .12);
  border-radius: 50%; line-height: 1; transition: background-color .25s var(--sfs-ease); z-index: 2;
}
.sfs-cl-lb__close:hover, .sfs-cl-lb__nav:hover { background: rgba(255, 255, 255, .28); }
.sfs-cl-lb__close:focus-visible, .sfs-cl-lb__nav:focus-visible { outline: 3px solid var(--sfs-amber); outline-offset: 2px; }
.sfs-cl-lb__close { top: 16px; right: 16px; width: 44px; height: 44px; font-size: 1.8rem; }
.sfs-cl-lb__nav { top: 50%; transform: translateY(-50%); width: 48px; height: 48px; font-size: 1.3rem; }
.sfs-cl-lb__nav--prev { left: 16px; } .sfs-cl-lb__nav--next { right: 16px; }
.sfs-cl-lb__count { position: absolute; left: 0; right: 0; bottom: 18px; text-align: center; font-size: .82rem; font-weight: 700; letter-spacing: .14em; color: rgba(255, 255, 255, .8); }

@media (max-width: 1000px) {
  .sfs-cl-ncc { grid-template-columns: 1fr; }
  .sfs-cl-ncc__gallery { grid-template-columns: repeat(3, minmax(0, 1fr)); grid-template-rows: none; }
  .sfs-cl-ncc__gallery figure:first-child { grid-row: auto; }
}
@media (max-width: 900px) {
  .sfs-cl-labs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 680px) {
  .sfs-cl-labs { grid-template-columns: 1fr; }
  .sfs-cl-ncc__gallery { grid-template-columns: 1fr; }
  .sfs-cl-head { align-items: center; }
}
