/* Shared layout for the navigation pages */
/* Banner behind the inner pages. Both variants are real photos of the hall —
   no stock imagery. Contact and Student Life keep the residents standing
   against the hall wall; the four pages below use the resident reading in the
   hall, anchored high so his head stays in frame in the short banner strip. */
.inner-hero { background: linear-gradient(135deg, rgba(26,58,42,.90), rgba(45,90,61,.76)), url('assets/images/hero/hero-banner.jpg') center 16%/cover; color: var(--white); padding: 92px 0; }
body[data-page="executives"] .inner-hero,
body[data-page="events"] .inner-hero,
body[data-page="gallery"] .inner-hero,
body[data-page="about"] .inner-hero {
  background: linear-gradient(135deg, rgba(26,58,42,.84), rgba(45,90,61,.62)), url('assets/images/hero/hero-banner-team.jpg') center 12%/cover;
}
.inner-hero .eyebrow { color: var(--gold-light); font-size: .85rem; font-weight: 700; letter-spacing: 2px; text-transform: uppercase; }
.inner-hero h1 { font-family: 'Playfair Display', serif; font-size: clamp(2.5rem, 5vw, 4.5rem); line-height: 1.1; margin: 10px 0 16px; }
.inner-hero p { max-width: 680px; font-size: 1.08rem; opacity: .92; }
.page-section { padding: 80px 0; }
.page-section.alt { background: var(--light-gray); }
.page-title { font-family: 'Playfair Display', serif; color: var(--primary-dark); font-size: 2.1rem; margin-bottom: 15px; }
.page-intro { max-width: 760px; color: var(--text-gray); margin-bottom: 34px; }
.content-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.content-card { background: var(--white); border-radius: 12px; padding: 28px; box-shadow: var(--shadow); border-top: 4px solid var(--gold); }
.content-card i { color: var(--primary-green); font-size: 1.6rem; margin-bottom: 15px; }
/* Managed picture fills the card edge to edge. The wrapper carries the bleed
   (negative margins against the card's 28px padding) so the image itself can be
   a plain 100% wide element — no fight with the global img { max-width: 100% }.
   The frame is portrait-friendly so faces stay in view instead of being cropped
   to the torso. */
.content-card .content-media { margin: -28px -28px 20px; }
.content-card .content-media img {
  display: block;
  width: 100%;
  height: clamp(230px, 26vw, 350px);
  object-fit: cover;
  object-position: 50% 50%;      /* portraits are exported at this ratio, so nothing is cropped */
  border-radius: 8px 8px 0 0;
  background: #eef2ee;
}
.content-card h3 { color: var(--primary-dark); font-family: 'Montserrat', sans-serif; margin-bottom: 10px; }
.content-card p, .content-card li { color: var(--text-gray); font-size: .94rem; }
.content-card ul { list-style: disc; padding-left: 18px; }
.content-card li + li { margin-top: 7px; }
.page-cta { background: var(--primary-dark); color: var(--white); text-align: center; padding: 58px 20px; }
.page-cta h2 { font-family: 'Playfair Display', serif; font-size: 2rem; margin-bottom: 10px; }
.page-cta p { max-width: 620px; margin: 0 auto 24px; opacity: .9; }
.page-button { display: inline-block; background: var(--gold); color: var(--primary-dark); padding: 12px 25px; border-radius: 25px; font-weight: 700; }
.page-button:hover { background: var(--white); transform: translateY(-2px); }
.page-footer { background: #10291d; color: var(--white); padding: 26px 0; font-size: .9rem; }
.page-footer .container { display: flex; justify-content: space-between; gap: 18px; flex-wrap: wrap; }
.page-footer a { color: var(--gold-light); }
@media (max-width: 850px) { .content-grid { grid-template-columns: 1fr; } .inner-hero { padding: 68px 0; } }

/* managed pictures + links added from the admin portal */

.content-card .content-card-link { display: inline-flex; align-items: center; gap: 7px; margin-top: 14px; font-weight: 700; font-size: .86rem; color: var(--primary-green); }
.content-card .content-card-link i { font-size: .72rem; margin: 0; color: inherit; }
.content-card .content-card-link:hover { color: #a4862f; }

/* Inner pages have no hamburger menu, so the tab bar stays visible on phones
   and simply scrolls sideways when the six tabs do not fit. */
@media (max-width: 768px) {
  .nav-section.inner-nav { position: static; width: 100%; height: auto; right: auto; padding: 6px 0; overflow: visible; box-shadow: 0 2px 10px rgba(0, 0, 0, .06); }
  .nav-section.inner-nav .container { flex-direction: row; align-items: center; padding: 0 14px; }
  .nav-section.inner-nav .main-nav { flex-direction: row; flex-wrap: nowrap; width: 100%; gap: 4px; overflow-x: auto; scrollbar-width: none; }
  .nav-section.inner-nav .main-nav::-webkit-scrollbar { display: none; }
  .nav-section.inner-nav .main-nav > li { width: auto; flex: 0 0 auto; }
  .nav-section.inner-nav .main-nav a { width: auto; white-space: nowrap; padding: 9px 14px; border-radius: 999px; border-bottom: 0; font-size: .88rem; }
  .nav-section.inner-nav .main-nav a::after { display: none; }
  .nav-section.inner-nav .main-nav a.nav-highlight { display: inline-flex; margin: 0; padding: 9px 14px; border-radius: 999px; background: rgba(200, 168, 78, .22); }
}

/* ===== Gallery page (admin-uploaded photos) ===== */
.page-gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; }
.page-gallery-item { margin: 0; position: relative; overflow: hidden; border-radius: 12px; background: #eef2ee; box-shadow: var(--shadow); cursor: zoom-in; aspect-ratio: 4 / 3; }
.page-gallery-item img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .5s ease; }
.page-gallery-item:hover img { transform: scale(1.06); }
.page-gallery-item::after { content: "\f00e"; font-family: "Font Awesome 6 Free"; font-weight: 900; position: absolute; inset: 0; display: grid; place-items: center; color: #fff; font-size: 1.3rem; background: rgba(26, 58, 42, .45); opacity: 0; transition: opacity .3s ease; }
.page-gallery-item:hover::after { opacity: 1; }
.page-empty { display: flex; align-items: center; gap: 12px; padding: 26px; border-radius: 12px; background: var(--light-gray); color: var(--text-gray); }
.page-empty i { color: var(--gold); font-size: 1.3rem; }
.page-lightbox { position: fixed; inset: 0; z-index: 10000; display: flex; align-items: center; justify-content: center; background: rgba(0, 0, 0, .95); }
.page-lightbox[hidden] { display: none; }
.page-lightbox img { max-width: 92%; max-height: 88%; border-radius: 10px; }
.page-lightbox-close { position: absolute; top: 18px; right: 26px; color: #fff; font-size: 2rem; line-height: 1; cursor: pointer; }
.page-lightbox-close:hover { color: var(--gold); }
@media (max-width: 560px) { .page-gallery { grid-template-columns: repeat(2, 1fr); gap: 10px; } }
/* Role line above the bio on executive cards */
.content-card .content-card-role { color: #a4862f; font-weight: 700; font-size: .82rem; letter-spacing: .3px; margin: -4px 0 10px; }

/* ===== About page: history timeline ===== */
.history-timeline { list-style: none; margin: 6px 0 0; padding: 0 0 0 20px; border-left: 3px solid rgba(200, 168, 78, .5); display: grid; gap: 22px; }
.history-timeline li { position: relative; }
.history-timeline li::before { content: ''; position: absolute; left: -27px; top: 4px; width: 11px; height: 11px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 0 4px rgba(200, 168, 78, .18); }
.history-timeline .year { display: block; font-family: 'Montserrat', sans-serif; font-weight: 800; color: var(--primary-green); font-size: .95rem; letter-spacing: .4px; }
.history-timeline p { margin: 4px 0 0; color: var(--text-gray); font-size: .92rem; line-height: 1.6; }
