/* ============================================================
   INNER PAGE SCAFFOLDING
   Shared across About, Academics, Admissions, News, Contact
   ============================================================ */

.page-hero {
  background: var(--forest-900);
  color: var(--paper);
  padding: 56px 0 64px;
  position: relative;
  overflow: hidden;
}

.page-hero-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  z-index: 0;
}

.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(61, 13, 20, 0.70);
  z-index: 1;
}

.page-hero .container {
  position: relative;
  z-index: 2;
}

.page-hero .eyebrow { color: var(--brass-200); }
.page-hero .eyebrow::before { background: var(--brass-200); }

.page-hero h1 {
  color: var(--paper);
  font-size: clamp(32px, 4vw, 46px);
  margin-top: 18px;
  max-width: 640px;
  line-height: 1.12;
}

.page-hero p {
  color: rgba(241, 240, 231, 0.72);
  font-size: 16.5px;
  max-width: 560px;
  margin-top: 16px;
  line-height: 1.6;
}

.page-hero-watermark {
  position: absolute;
  right: -30px;
  top: -40px;
  width: 280px;
  opacity: 0.07;
  pointer-events: none;
  z-index: 2;
}

.breadcrumb {
  display: flex;
  gap: 8px;
  align-items: center;
  font-size: 13px;
  color: rgba(241, 240, 231, 0.55);
  margin-bottom: 18px;
}
.breadcrumb a { color: rgba(241, 240, 231, 0.8); }
.breadcrumb a:hover { color: var(--brass-200); }

/* ---- Section spacing ---- */
.section { padding: 92px 0; }
.section--tight { padding: 72px 0; }
.section--alt { background: var(--forest-100); }

/* ---- Two column content + sidebar pattern ---- */
.page-body {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 64px;
  align-items: start;
}

@media (max-width: 900px) {
  .page-body { grid-template-columns: 1fr; gap: 48px; }
}

.prose h2 {
  font-size: 26px;
  margin-top: 48px;
  margin-bottom: 16px;
}
.prose h2:first-child { margin-top: 0; }

.prose h3 {
  font-size: 19px;
  margin-top: 30px;
  margin-bottom: 10px;
  color: var(--forest-900);
}

.prose p {
  font-size: 16px;
  line-height: 1.75;
  color: var(--ink-700);
  margin-bottom: 18px;
}

.prose ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 22px;
}

.prose ul li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 15.5px;
  color: var(--ink-700);
  line-height: 1.6;
}

.prose ul li .icon { width: 16px; height: 16px; color: var(--forest-700); margin-top: 4px; flex-shrink: 0; }

.prose blockquote {
  border-left: 3px solid var(--brass-500);
  padding-left: 22px;
  margin: 30px 0;
  font-family: var(--font-display);
  font-style: italic;
  font-size: 19px;
  color: var(--forest-900);
  line-height: 1.5;
}

.prose blockquote cite {
  display: block;
  font-family: var(--font-body);
  font-style: normal;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ink-500);
  margin-top: 10px;
}

.prose-photo {
  border: 1px solid var(--line-deep);
  overflow: hidden;
  aspect-ratio: 3/2;
  margin: 8px 0 32px;
}

.prose-photo img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

/* ---- Sidebar card ---- */
.side-card {
  background: var(--paper-raised);
  border: 1px solid var(--line);
  padding: 28px;
  position: sticky;
  top: 100px;
}

.side-card h4 {
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--brass-700);
  margin-bottom: 18px;
}

.side-card-list { display: flex; flex-direction: column; gap: 16px; margin-bottom: 22px; }

.side-card-item {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
  font-size: 14px;
}

.side-card-item:last-child { border-bottom: none; padding-bottom: 0; }

.side-card-item span:first-child { color: var(--ink-700); }
.side-card-item span:last-child { color: var(--forest-900); font-weight: 700; text-align: right; }

.side-card .btn { width: 100%; justify-content: center; }

/* ---- Stat row (about page) ---- */
.stat-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--line-deep);
  border-bottom: 1px solid var(--line-deep);
}

@media (max-width: 700px) {
  .stat-row { grid-template-columns: 1fr 1fr; }
}

.stat-cell {
  padding: 30px 24px;
  border-right: 1px solid var(--line);
}
.stat-cell:last-child { border-right: none; }

@media (max-width: 700px) {
  .stat-cell:nth-child(2n) { border-right: none; }
  .stat-cell { border-bottom: 1px solid var(--line); }
}

.stat-cell strong {
  display: block;
  font-family: var(--font-display);
  font-size: 32px;
  color: var(--forest-900);
  margin-bottom: 6px;
}

.stat-cell span {
  font-size: 13px;
  color: var(--ink-500);
  letter-spacing: 0.02em;
}

/* ---- Staff / leadership grid ---- */
.people-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

@media (max-width: 760px) {
  .people-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 520px) {
  .people-grid { grid-template-columns: 1fr; }
}

.person-card {
  background: var(--paper-raised);
  border: 1px solid var(--line);
}

.person-portrait {
  aspect-ratio: 1 / 1;
  background: var(--forest-100);
  display: flex;
  align-items: center;
  justify-content: center;
  border-bottom: 1px solid var(--line);
}

.person-portrait span {
  font-family: var(--font-display);
  font-size: 34px;
  font-weight: 600;
  color: var(--forest-700);
}

.person-info { padding: 20px 22px; }
.person-info h4 { font-size: 16.5px; margin-bottom: 4px; }
.person-info p { font-size: 13.5px; color: var(--brass-700); font-weight: 600; margin-bottom: 10px; }
.person-info .bio { font-size: 13.5px; color: var(--ink-500); line-height: 1.55; }

/* ---- Timeline (history, about page) ---- */
.timeline {
  display: flex;
  flex-direction: column;
}

.timeline-row {
  display: grid;
  grid-template-columns: 100px 1fr;
  gap: 28px;
  padding: 26px 0;
  border-top: 1px solid var(--line);
}
.timeline-row:first-child { border-top: none; }

.timeline-year {
  font-family: var(--font-display);
  font-size: 22px;
  color: var(--brass-700);
  font-weight: 600;
}

.timeline-row h4 { font-size: 16.5px; margin-bottom: 6px; }
.timeline-row p { font-size: 14.5px; color: var(--ink-700); line-height: 1.6; }

/* ---- Fee/info table ---- */
.info-table {
  width: 100%;
  border-collapse: collapse;
  margin: 24px 0 32px;
}

.info-table th, .info-table td {
  text-align: left;
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
  font-size: 14.5px;
}

.info-table th {
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--brass-700);
  font-weight: 700;
  border-bottom: 2px solid var(--line-deep);
}

.info-table td:first-child { color: var(--ink-900); font-weight: 600; }
.info-table td { color: var(--ink-700); }

/* ---- Subject grid (academics page) ---- */
.subject-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  margin-bottom: 8px;
}

@media (max-width: 640px) {
  .subject-grid { grid-template-columns: 1fr; }
}

.subject-cell {
  background: var(--paper-raised);
  padding: 22px 26px;
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

.subject-cell .icon { width: 20px; height: 20px; color: var(--forest-700); margin-top: 3px; flex-shrink: 0; }

.subject-cell h4 { font-size: 15.5px; margin-bottom: 4px; }
.subject-cell p { font-size: 13.5px; color: var(--ink-500); line-height: 1.5; }

/* ---- Contact page ---- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
}

@media (max-width: 900px) {
  .contact-grid { grid-template-columns: 1fr; }
}

.contact-info-list { display: flex; flex-direction: column; gap: 26px; margin-top: 28px; }

.contact-info-item { display: flex; gap: 16px; }

.contact-info-icon {
  width: 44px;
  height: 44px;
  border: 1px solid var(--brass-500);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.contact-info-icon .icon { width: 19px; height: 19px; color: var(--forest-700); }

.contact-info-text h4 { font-size: 15.5px; margin-bottom: 4px; }
.contact-info-text p { font-size: 14.5px; color: var(--ink-700); line-height: 1.55; }

.contact-form {
  background: var(--paper-raised);
  border: 1px solid var(--line);
  padding: 36px;
}

.form-row { margin-bottom: 20px; }
.form-row label {
  display: block;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.03em;
  color: var(--ink-700);
  margin-bottom: 8px;
}

.form-row input,
.form-row select,
.form-row textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--line-deep);
  background: var(--paper);
  font-family: var(--font-body);
  font-size: 14.5px;
  color: var(--ink-900);
  border-radius: var(--radius-sm);
}

.form-row input:focus,
.form-row select:focus,
.form-row textarea:focus {
  outline: 2px solid var(--brass-700);
  outline-offset: 1px;
  border-color: var(--brass-700);
}

.form-row-split { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 520px) { .form-row-split { grid-template-columns: 1fr; } }

.map-frame {
  border: 1px solid var(--line-deep);
  aspect-ratio: 16/10;
  overflow: hidden;
  margin-top: 32px;
}
.map-frame img { width: 100%; height: 100%; object-fit: cover; }

/* ---- News list page ---- */
.news-filter {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 40px;
}

.news-filter button {
  padding: 9px 18px;
  border: 1px solid var(--line-deep);
  background: transparent;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--ink-700);
  border-radius: 30px;
  transition: background 150ms ease, color 150ms ease, border-color 150ms ease;
}

.news-filter button.is-active,
.news-filter button:hover {
  background: var(--forest-900);
  color: var(--paper);
  border-color: var(--forest-900);
}

.news-feature {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 36px;
  border: 1px solid var(--line);
  background: var(--paper-raised);
  margin-bottom: 40px;
}

@media (max-width: 760px) {
  .news-feature { grid-template-columns: 1fr; }
}

.news-feature-media { aspect-ratio: 16/12; overflow: hidden; border-right: 1px solid var(--line); }
@media (max-width: 760px) { .news-feature-media { border-right: none; border-bottom: 1px solid var(--line); } }
.news-feature-media img { width: 100%; height: 100%; object-fit: cover; }

.news-feature-body { padding: 36px 36px 36px 0; display: flex; flex-direction: column; justify-content: center; }
@media (max-width: 760px) { .news-feature-body { padding: 30px; } }

.news-feature-body h3 { font-size: 24px; margin: 12px 0 14px; }
.news-feature-body p { font-size: 15px; color: var(--ink-700); line-height: 1.65; margin-bottom: 18px; }

.news-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
@media (max-width: 880px) { .news-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .news-grid { grid-template-columns: 1fr; } }

.news-card {
  border: 1px solid var(--line);
  background: var(--paper-raised);
}

.news-card-media { aspect-ratio: 16/10; overflow: hidden; border-bottom: 1px solid var(--line); }
.news-card-media img { width: 100%; height: 100%; object-fit: cover; }

.news-card-body { padding: 22px 24px 26px; }
.news-card-body h4 { font-size: 16.5px; margin: 10px 0 8px; line-height: 1.35; }
.news-card-body p { font-size: 13.5px; color: var(--ink-500); line-height: 1.55; }

/* ---- Gallery page ---- */
.gallery-filter {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 40px;
}

.gallery-filter button {
  padding: 9px 18px;
  border: 1px solid var(--line-deep);
  background: transparent;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--ink-700);
  border-radius: 30px;
  transition: background 150ms ease, color 150ms ease, border-color 150ms ease;
}

.gallery-filter button.is-active,
.gallery-filter button:hover {
  background: var(--forest-900);
  color: var(--paper);
  border-color: var(--forest-900);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}

@media (max-width: 900px) { .gallery-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 640px) { .gallery-grid { grid-template-columns: repeat(2, 1fr); } }

.gallery-item {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--paper-raised);
  border: none;
  padding: 0;
  display: block;
  width: 100%;
  cursor: pointer;
}

.gallery-item.is-hidden { display: none; }

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 400ms ease;
}

.gallery-item:hover img { transform: scale(1.05); }

.gallery-item-overlay {
  position: absolute;
  inset: 0;
  background: rgba(61, 13, 20, 0.55);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 200ms ease;
}

.gallery-item:hover .gallery-item-overlay,
.gallery-item:focus-visible .gallery-item-overlay { opacity: 1; }

.gallery-item-overlay .icon { width: 26px; height: 26px; color: var(--paper); stroke-width: 1.5; }

/* ---- Lightbox ---- */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(27, 35, 29, 0.94);
  z-index: 300;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--gutter);
  opacity: 0;
  visibility: hidden;
  transition: opacity 200ms ease;
}

.lightbox.is-open { opacity: 1; visibility: visible; }

.lightbox-stage {
  max-width: min(1080px, 100%);
  width: 100%;
}

.lightbox-stage figure {
  margin: 0;
}

.lightbox-stage img {
  display: block;
  width: 100%;
  max-height: 76vh;
  object-fit: contain;
  border: 1px solid rgba(241, 240, 231, 0.2);
  background: #000;
}

.lightbox-caption {
  color: var(--paper);
  text-align: center;
  font-size: 14px;
  margin-top: 18px;
  opacity: 0.75;
}

.lightbox-count {
  color: var(--brass-200);
  text-align: center;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-top: 8px;
}

.lightbox-control {
  position: absolute;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 1px solid rgba(241, 240, 231, 0.35);
  background: rgba(241, 240, 231, 0.06);
  color: var(--paper);
  transition: background 150ms ease, border-color 150ms ease;
}

.lightbox-control:hover {
  background: rgba(241, 240, 231, 0.16);
  border-color: var(--paper);
}

.lightbox-control .icon { width: 20px; height: 20px; }

.lightbox-close { top: 22px; right: 22px; }
.lightbox-prev { left: 22px; top: 50%; transform: translateY(-50%); }
.lightbox-next { right: 22px; top: 50%; transform: translateY(-50%); }

@media (max-width: 700px) {
  .lightbox-close { top: 12px; right: 12px; width: 40px; height: 40px; }
  .lightbox-prev { left: 8px; width: 40px; height: 40px; }
  .lightbox-next { right: 8px; width: 40px; height: 40px; }
}

/* ---- Pagination ---- */
.pagination {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 48px;
}
.pagination a, .pagination span {
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line-deep);
  font-size: 14px;
  font-weight: 600;
  color: var(--ink-700);
}
.pagination a.is-active { background: var(--forest-900); color: var(--paper); border-color: var(--forest-900); }
.pagination a:hover:not(.is-active) { border-color: var(--forest-900); }
