/* =============================================================================
   St. Peter's Episcopal Church — Geneva, NY
   style.css
   =============================================================================

   Table of Contents
   1.  Custom Properties (Design Tokens)
   2.  Reset & Base
   3.  Typography
   4.  Layout Utilities
   5.  Header & Navigation
   6.  Mobile Nav
   7.  Hero
   8.  Service Times
   9.  Rector Banner
   10. Feature Cards
   11. Community Spotlight
   12. Content Pages (interior template)
   13. Sub-navigation (sidebar)
   14. Staff Cards
   15. Forms
   16. Calendar
   17. Page Hero (interior)
   18. Transition Page Sections
   19. Footer
   20. Responsive — Tablet (max 900px)
   21. Responsive — Mobile (max 600px)
   ============================================================================= */


/* ─────────────────────────────────────────────────────────────────────────────
   1. Custom Properties
   ───────────────────────────────────────────────────────────────────────────── */

:root {
  /* Brand colours */
  --color-red:        #a31f34;
  --color-red-dark:   #7d1727;
  --color-gold:       #f8e0a4;
  --color-cream:      #fdf8ee;
  --color-cream-dark: #f0e9d6;
  --color-dark:       #2a1a1e;
  --color-dark-mid:   #4a2530;

  /* Neutrals */
  --color-text:       #1a1a1a;
  --color-text-mid:   #555555;
  --color-text-light: #888888;
  --color-border:     #e0d9cc;
  --color-bg:         #ffffff;

  /* Typography */
  --font-serif:  'Neuton', Georgia, serif;
  --font-sans:   'Source Sans Pro', Arial, sans-serif;

  /* Spacing scale */
  --space-xs:  0.5rem;
  --space-sm:  1rem;
  --space-md:  1.5rem;
  --space-lg:  2.5rem;
  --space-xl:  4rem;
  --space-2xl: 6rem;

  /* Layout */
  --max-width:        1100px;
  --max-width-narrow: 780px;
  --radius:           0px;
  --radius-lg:        0px;

  /* Header */
  --header-height: 64px;
}


/* ─────────────────────────────────────────────────────────────────────────────
   2. Reset & Base
   ───────────────────────────────────────────────────────────────────────────── */

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--color-text);
  background: var(--color-bg);
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: var(--color-red);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

ul, ol {
  list-style: none;
}

button {
  font-family: var(--font-sans);
  cursor: pointer;
  border: none;
  background: none;
}


/* ─────────────────────────────────────────────────────────────────────────────
   3. Typography
   ───────────────────────────────────────────────────────────────────────────── */

h1, h2, h3, h4, h5 {
  font-family: var(--font-serif);
  font-weight: 400;
  line-height: 1.2;
  color: var(--color-text);
}

h1 { font-size: clamp(2rem, 5vw, 3rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); }
h3 { font-size: clamp(1.2rem, 2.5vw, 1.5rem); }
h4 { font-size: 1.1rem; font-weight: 600; font-family: var(--font-sans); }

p { margin-bottom: 1rem; }
p:last-child { margin-bottom: 0; }

.eyebrow {
  display: block;
  font-family: var(--font-sans);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-text-light);
  margin-bottom: var(--space-xs);
}


/* ─────────────────────────────────────────────────────────────────────────────
   4. Layout Utilities
   ───────────────────────────────────────────────────────────────────────────── */

.container {
  width: 100%;
  max-width: var(--max-width);
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--space-md);
  padding-right: var(--space-md);
}

.container--narrow {
  max-width: var(--max-width-narrow);
}

/* Buttons */
.btn {
  display: inline-block;
  font-family: var(--font-sans);
  font-size: 0.875rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius);
  transition: background 0.15s, color 0.15s, border-color 0.15s;
  text-decoration: none;
  cursor: pointer;
  white-space: nowrap;
}

.btn-primary {
  background: var(--color-red);
  color: #fff;
}
.btn-primary:hover {
  background: var(--color-red-dark);
  text-decoration: none;
  color: #fff;
}

.btn-outline {
  background: transparent;
  color: #fff;
  border: 2px solid rgba(255, 255, 255, 0.6);
}
.btn-outline:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: #fff;
  text-decoration: none;
  color: #fff;
}

.btn-white {
  background: #fff;
  color: var(--color-red);
  font-weight: 700;
}
.btn-white:hover {
  background: var(--color-cream);
  text-decoration: none;
  color: var(--color-red-dark);
}

.btn-ghost {
  background: transparent;
  color: var(--color-red);
  border: 2px solid var(--color-red);
}
.btn-ghost:hover {
  background: var(--color-red);
  color: #fff;
  text-decoration: none;
}

/* Text link with arrow */
.link-arrow {
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--color-red);
  text-decoration: none;
}
.link-arrow::after {
  content: ' →';
}
.link-arrow:hover {
  text-decoration: underline;
}


/* ─────────────────────────────────────────────────────────────────────────────
   5. Header & Navigation
   ───────────────────────────────────────────────────────────────────────────── */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--color-red);
  border-bottom: 2px solid var(--color-red-dark);
  height: var(--header-height);
}

.header-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--space-md);
  height: 100%;
  display: flex;
  align-items: center;
  gap: var(--space-md);
}

/* Logo */
.site-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  flex-shrink: 0;
}

.logo-mark {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.logo-mark svg {
  width: 40px;
  height: 40px;
  fill: #fff;
}

.logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.logo-name {
  font-family: var(--font-serif);
  font-size: 1rem;
  color: var(--color-gold);
  font-weight: 400;
}

.logo-location {
  font-family: var(--font-sans);
  font-size: 0.7rem;
  color: rgba(248,224,164,0.65);
  letter-spacing: 0.04em;
}

/* Main nav */
.site-nav {
  flex: 1;
  display: flex;
  justify-content: flex-end;
  align-items: center;
}

.nav-list {
  display: flex;
  align-items: center;
  gap: 0;
}

.nav-item {
  position: relative;
}

.nav-link {
  display: block;
  padding: 0.4rem 0.75rem;
  font-family: var(--font-sans);
  font-size: 0.85rem;
  font-weight: 600;
  color: #ffffff;
  text-decoration: none;
  white-space: nowrap;
  background: none;
  border: none;
  cursor: pointer;
  transition: color 0.15s;
  line-height: var(--header-height);
  height: var(--header-height);
  align-items: center;
}

.nav-link:hover,
.nav-link:focus {
  color: var(--color-gold);
  text-decoration: none;
}

.nav-link--highlight {
  color: var(--color-gold);
}

.nav-arrow {
  font-size: 0.6rem;
  margin-left: 3px;
  vertical-align: middle;
  transition: transform 0.2s;
}

.nav-item:hover .nav-arrow,
.nav-item:focus-within .nav-arrow {
  transform: rotate(180deg);
}

/* Dropdowns */
.nav-dropdown {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 210px;
  background: #fff;
  border: 1px solid var(--color-border);
  border-top: 2px solid var(--color-red);
  border-radius: 0 0 var(--radius) var(--radius);
  box-shadow: 0 4px 16px rgba(0,0,0,0.08);
  z-index: 200;
}

.nav-item:hover .nav-dropdown,
.nav-item:focus-within .nav-dropdown {
  display: block;
}

.nav-dropdown a {
  display: block;
  padding: 0.55rem 1rem;
  font-family: var(--font-sans);
  font-size: 0.825rem;
  font-weight: 400;
  color: var(--color-text);
  text-decoration: none;
  border-bottom: 1px solid var(--color-border);
  transition: background 0.1s, color 0.1s;
}

.nav-dropdown a:last-child {
  border-bottom: none;
}

.nav-dropdown a:hover {
  background: var(--color-cream);
  color: var(--color-red);
  text-decoration: none;
}

/* Donate button in header */
.header-donate {
  flex-shrink: 0;
  margin-left: var(--space-xs);
}

.header-donate .btn {
  padding: 0.5rem 1.1rem;
  font-size: 0.8rem;
}

.header-donate .btn-primary {
  background: #ffffff;
  color: var(--color-red);
}

.header-donate .btn-primary:hover {
  background: var(--color-cream);
  color: var(--color-red-dark);
}


/* ─────────────────────────────────────────────────────────────────────────────
   6. Mobile Nav
   ───────────────────────────────────────────────────────────────────────────── */

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  padding: 6px;
  border-radius: var(--radius);
  margin-left: auto;
  background: none;
  border: 1px solid rgba(255,255,255,0.35);
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  background: #ffffff;
  border-radius: 2px;
  transition: transform 0.2s, opacity 0.2s;
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.nav-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}
.nav-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}


/* ─────────────────────────────────────────────────────────────────────────────
   7. Hero
   ───────────────────────────────────────────────────────────────────────────── */

.hero {
  position: relative;
  min-height: 640px;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--color-dark);
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
  opacity: 0.55;
}

/* Cinematic gradient: dark on the left where text lives, fades out to the right */
.hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to right,
    rgba(42, 26, 30, 0.72) 0%,
    rgba(42, 26, 30, 0.45) 55%,
    rgba(42, 26, 30, 0.1) 100%
  );
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: var(--space-2xl) var(--space-md);
  width: 100%;
}

.hero-eyebrow {
  font-family: var(--font-sans);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.6);
  margin-bottom: var(--space-sm);
}

.hero h1 {
  font-family: var(--font-serif);
  font-size: clamp(3rem, 7vw, 5rem);
  color: #fff;
  font-weight: 400;
  max-width: 640px;
  margin-bottom: var(--space-sm);
  line-height: 1.05;
}

.hero-tagline {
  font-family: var(--font-sans);
  font-size: clamp(1rem, 2vw, 1.15rem);
  color: rgba(255, 255, 255, 0.8);
  max-width: 520px;
  line-height: 1.65;
  margin-bottom: var(--space-lg);
}

.hero-actions {
  display: flex;
  gap: var(--space-sm);
  flex-wrap: wrap;
}


/* ─────────────────────────────────────────────────────────────────────────────
   8. Service Times
   ───────────────────────────────────────────────────────────────────────────── */

.service-times {
  background: var(--color-dark);
  padding: var(--space-lg) var(--space-md);
}

.times-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-lg);
  flex-wrap: wrap;
  text-align: center;
}

.times-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.times-time {
  font-family: var(--font-serif);
  font-size: 2.4rem;
  color: #fff;
  line-height: 1;
}

.times-label {
  font-family: var(--font-sans);
  font-size: 0.75rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.5);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.times-divider {
  width: 1px;
  height: 48px;
  background: rgba(255,255,255,0.15);
  flex-shrink: 0;
}

.times-note {
  width: 100%;
  text-align: center;
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.4);
  font-style: italic;
  padding-top: var(--space-xs);
  border-top: 1px solid rgba(255,255,255,0.1);
  margin-top: var(--space-xs);
}


/* ─────────────────────────────────────────────────────────────────────────────
   9. Rector Banner
   ───────────────────────────────────────────────────────────────────────────── */

.rector-banner {
  background: var(--color-red);
  padding: var(--space-lg) var(--space-md);
}

.rector-banner-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-lg);
  flex-wrap: wrap;
}

.rector-eyebrow {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.55);
  margin-bottom: 6px;
}

.rector-banner h2 {
  font-family: var(--font-serif);
  font-size: clamp(1.3rem, 2.5vw, 1.75rem);
  color: #fff;
  font-weight: 400;
  margin-bottom: 6px;
}

.rector-banner p {
  font-size: 0.95rem;
  color: rgba(255,255,255,0.75);
  margin: 0;
  line-height: 1.55;
}


/* ─────────────────────────────────────────────────────────────────────────────
   10. Feature Cards
   ───────────────────────────────────────────────────────────────────────────── */

.features {
  padding: var(--space-2xl) var(--space-md);
  background: var(--color-cream);
  border-top: 1px solid var(--color-border);
}

.features-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
}

.feature-card {
  background: none;
  border-radius: 0;
  padding: var(--space-md) var(--space-xl) 0 var(--space-xl);
  display: flex;
  flex-direction: column;
  gap: 0;
  box-shadow: none;
  border-top: 2px solid var(--color-red);
  border-right: 1px solid var(--color-border);
  transition: none;
}

.feature-card:hover {
  box-shadow: none;
  transform: none;
}

.feature-card:first-child {
  padding-left: 0;
}

.feature-card:last-child {
  border-right: none;
  padding-right: 0;
}

/* Icon circles removed in editorial direction */
.feature-icon {
  display: none;
}

.feature-card h2 {
  font-size: 1.25rem;
  margin: 0 0 0.75rem 0;
}

.feature-card p {
  font-size: 0.925rem;
  color: var(--color-text-mid);
  line-height: 1.65;
  flex: 1;
  margin-bottom: var(--space-md);
}


/* ─────────────────────────────────────────────────────────────────────────────
   11. Community Spotlight
   ───────────────────────────────────────────────────────────────────────────── */

.spotlight {
  padding: var(--space-2xl) var(--space-md);
  background: #fff;
}

.spotlight-inner {
  max-width: var(--max-width);
  margin: 0 auto;
}

/* Default section-header: centred (used on committee section, etc.) */
.section-header {
  text-align: center;
  margin-bottom: var(--space-xl);
}

.section-header h2 {
  margin-bottom: var(--space-xs);
  font-size: clamp(1.6rem, 3vw, 2.2rem);
}

.section-header p {
  font-size: 1rem;
  color: var(--color-text-mid);
  max-width: 520px;
  margin: 0 auto;
  line-height: 1.65;
}

/* Spotlight header: left-aligned editorial style */
.spotlight .section-header {
  text-align: left;
  padding-bottom: var(--space-md);
  border-bottom: 1px solid var(--color-border);
  margin-bottom: var(--space-xl);
}

.spotlight .section-header p {
  margin: 0;
  max-width: none;
}

/* Editorial stacked layout — each card is its own full-width split */
.spotlight-grid {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.spotlight-card {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  background: none;
  border-radius: 0;
  box-shadow: none;
  overflow: visible;
  border-top: 1px solid var(--color-border);
  padding: var(--space-2xl) 0;
  transition: none;
}

.spotlight-card:hover {
  box-shadow: none;
  transform: none;
}

.spotlight-card:first-child {
  border-top: none;
  padding-top: 0;
}

.spotlight-card-img {
  width: 100%;
  height: 380px;
  object-fit: cover;
  object-position: center;
  display: block;
  border-radius: 0;
}

.spotlight-card-body {
  padding: 0 0 0 var(--space-2xl);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

/* Tag: ruled separator treatment instead of coloured pill */
.tag {
  display: block;
  font-family: var(--font-sans);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-text-light);
  border-bottom: 1px solid var(--color-border);
  padding-bottom: 0.5rem;
  margin-bottom: var(--space-sm);
}

.spotlight-card h3 {
  font-size: 1.65rem;
  margin-bottom: 0.75rem;
  line-height: 1.15;
}

.spotlight-card p {
  font-size: 0.95rem;
  color: var(--color-text-mid);
  line-height: 1.7;
  margin-bottom: var(--space-md);
}


/* ─────────────────────────────────────────────────────────────────────────────
   12. Content Pages (interior template)
   ───────────────────────────────────────────────────────────────────────────── */

.page-hero {
  background: var(--color-dark);
  padding: var(--space-xl) var(--space-md);
  position: relative;
  overflow: hidden;
}

.page-hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.page-hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.3;
}

.page-hero-content {
  position: relative;
  z-index: 1;
  max-width: var(--max-width);
  margin: 0 auto;
}

.page-hero h1 {
  color: #fff;
  font-size: clamp(2rem, 4vw, 3rem);
}

.page-layout {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: var(--space-xl) var(--space-md);
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: var(--space-xl);
  align-items: start;
}

.page-layout--full {
  grid-template-columns: 1fr;
}

.page-content h2 {
  font-size: 1.6rem;
  margin-bottom: var(--space-sm);
  margin-top: var(--space-lg);
}

.page-content h2:first-child {
  margin-top: 0;
}

.page-content h3 {
  font-size: 1.2rem;
  margin-bottom: var(--space-xs);
  margin-top: var(--space-md);
}

.page-content p {
  font-size: 1rem;
  line-height: 1.7;
  color: var(--color-text);
}

.page-content ul, .page-content ol {
  list-style: disc;
  padding-left: var(--space-md);
  margin-bottom: var(--space-sm);
}

.page-content li {
  margin-bottom: 0.4rem;
  font-size: 1rem;
  line-height: 1.6;
}


/* ─────────────────────────────────────────────────────────────────────────────
   13. Sub-navigation
   ───────────────────────────────────────────────────────────────────────────── */

.subnav {
  position: sticky;
  top: calc(var(--header-height) + var(--space-md));
}

.subnav-title {
  font-family: var(--font-sans);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-text-light);
  padding-bottom: var(--space-xs);
  border-bottom: 1px solid var(--color-border);
  margin-bottom: var(--space-xs);
}

.subnav ul {
  list-style: none;
  padding: 0;
}

.subnav a {
  display: block;
  font-size: 0.875rem;
  color: var(--color-text-mid);
  padding: 0.4rem 0;
  border-bottom: 1px solid var(--color-cream-dark);
  text-decoration: none;
  transition: color 0.15s;
}

.subnav a:hover,
.subnav a.active {
  color: var(--color-red);
}

.subnav a.active {
  font-weight: 600;
}


/* ─────────────────────────────────────────────────────────────────────────────
   14. Staff Cards
   ───────────────────────────────────────────────────────────────────────────── */

.staff-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: var(--space-md);
  margin-top: var(--space-lg);
}

.staff-card {
  background: var(--color-cream);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-md);
  text-align: center;
}

.staff-card img {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  object-fit: cover;
  margin: 0 auto var(--space-sm);
}

.staff-card h3 {
  font-size: 1.1rem;
  margin-bottom: 4px;
}

.staff-card .staff-title {
  font-size: 0.825rem;
  color: var(--color-text-light);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 600;
  margin-bottom: var(--space-xs);
}

.staff-card a {
  font-size: 0.85rem;
}


/* ─────────────────────────────────────────────────────────────────────────────
   15. Forms
   ───────────────────────────────────────────────────────────────────────────── */

.form-group {
  margin-bottom: var(--space-md);
}

.form-label {
  display: block;
  font-size: 0.875rem;
  font-weight: 700;
  margin-bottom: 6px;
  color: var(--color-text);
}

.form-input,
.form-select,
.form-textarea {
  width: 100%;
  padding: 0.65rem 0.875rem;
  font-family: var(--font-sans);
  font-size: 1rem;
  color: var(--color-text);
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  transition: border-color 0.15s;
  -webkit-appearance: none;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  outline: none;
  border-color: var(--color-red);
  box-shadow: 0 0 0 3px rgba(163, 31, 52, 0.12);
}

.form-textarea {
  resize: vertical;
  min-height: 120px;
}


/* ─────────────────────────────────────────────────────────────────────────────
   16. Calendar
   ───────────────────────────────────────────────────────────────────────────── */

.calendar-embed {
  width: 100%;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  min-height: 600px;
}

.calendar-embed iframe {
  width: 100%;
  height: 700px;
  border: none;
  display: block;
}


/* ─────────────────────────────────────────────────────────────────────────────
   17. Page Hero (interior)
   ───────────────────────────────────────────────────────────────────────────── */

.page-hero-eyebrow {
  font-family: var(--font-sans);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.55);
  margin-bottom: var(--space-xs);
}

.page-hero-subtitle {
  font-family: var(--font-serif);
  font-size: clamp(1.1rem, 2.5vw, 1.5rem);
  font-style: italic;
  color: rgba(255, 255, 255, 0.75);
  margin-top: 0.4rem;
  line-height: 1.3;
}

.page-hero--transition {
  min-height: 380px;
  padding: var(--space-xl) var(--space-md) var(--space-2xl);
}

.page-hero--transition .page-hero-bg img {
  opacity: 0.38;
  object-position: center 40%;
}

.page-hero--transition h1 {
  font-size: clamp(2rem, 5vw, 3.2rem);
  margin-bottom: 0;
}


/* ─────────────────────────────────────────────────────────────────────────────
   18. About Section Cards
   ───────────────────────────────────────────────────────────────────────────── */

.about-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 0;
  margin-top: var(--space-lg);
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
}

.about-card {
  display: block;
  padding: var(--space-md);
  background: none;
  border: none;
  border-right: 1px solid var(--color-border);
  border-radius: 0;
  text-decoration: none;
  color: inherit;
  transition: background 0.15s;
}

.about-card:last-child {
  border-right: none;
}

.about-card:hover {
  background: var(--color-cream);
  box-shadow: none;
}

.about-card h3 {
  font-size: 1.05rem;
  color: var(--color-red);
  margin-bottom: 0.4rem;
  margin-top: 0;
}

.about-card p {
  font-size: 0.875rem;
  color: var(--color-text-mid);
  line-height: 1.55;
  margin: 0;
}


/* ─────────────────────────────────────────────────────────────────────────────
   19. History, Staff, Vestry, Rector Page Extras
   ───────────────────────────────────────────────────────────────────────────── */

/* Responsive video embed */
.video-embed {
  position: relative;
  padding-bottom: 56.25%; /* 16:9 */
  height: 0;
  overflow: hidden;
  margin: var(--space-lg) 0;
  border-radius: var(--radius);
}

.video-embed iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* History portrait pair */
.history-portraits {
  float: right;
  display: flex;
  gap: var(--space-sm);
  margin: 0 0 var(--space-md) var(--space-lg);
}

.history-portraits figure {
  text-align: center;
  margin: 0;
  max-width: 100px;
}

.history-portraits img {
  width: 88px;
  height: 100px;
  object-fit: cover;
  border-radius: var(--radius);
  border: 1px solid var(--color-border);
  display: block;
}

.history-portraits figcaption {
  font-size: 0.78rem;
  color: var(--color-text-light);
  font-style: italic;
  margin-top: 0.4rem;
  line-height: 1.4;
}

/* History figure */
.history-figure {
  float: right;
  margin: 0 0 var(--space-md) var(--space-lg);
  max-width: 220px;
  text-align: center;
}

.history-figure img {
  border-radius: var(--radius);
  border: 1px solid var(--color-border);
  width: 100%;
}

.history-figure figcaption {
  font-size: 0.78rem;
  color: var(--color-text-light);
  font-style: italic;
  margin-top: 0.4rem;
  line-height: 1.4;
}

/* History quote */
.history-quote {
  border-left: 3px solid var(--color-red);
  margin: var(--space-md) 0;
  padding: var(--space-sm) var(--space-md);
  background: var(--color-cream);
  border-radius: 0 var(--radius) var(--radius) 0;
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1.05rem;
  color: var(--color-text);
}

.history-quote cite {
  display: block;
  font-family: var(--font-sans);
  font-style: normal;
  font-size: 0.8rem;
  color: var(--color-text-light);
  margin-top: 0.5rem;
}

/* Rector list (history page) */
.rector-list {
  list-style: none;
  padding: 0;
  margin: var(--space-sm) 0 var(--space-md);
}

.rector-list li {
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--color-border);
  font-size: 0.95rem;
  line-height: 1.5;
}

.rector-list li:last-child {
  border-bottom: none;
}

/* Staff notice banner */
.staff-notice {
  background: var(--color-cream);
  border: 1px solid var(--color-border);
  border-left: 3px solid var(--color-red);
  border-radius: var(--radius);
  padding: var(--space-sm) var(--space-md);
  margin: var(--space-md) 0;
}

.staff-notice p {
  margin: 0;
  font-size: 0.9rem;
}

/* Staff note (bottom of staff page) */
.staff-note {
  margin-top: var(--space-lg);
  font-size: 0.875rem;
  color: var(--color-text-mid);
  border-top: 1px solid var(--color-border);
  padding-top: var(--space-md);
}

/* Vestry list */
.vestry-list {
  list-style: none;
  padding: 0;
  margin: var(--space-sm) 0 var(--space-md);
}

.vestry-list li {
  padding: 0.45rem 0;
  border-bottom: 1px solid var(--color-border);
  font-size: 0.95rem;
  line-height: 1.5;
}

.vestry-list li:last-child {
  border-bottom: none;
}

/* Rector CTA box */
.rector-cta {
  background: var(--color-cream);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-md) var(--space-lg);
  margin: var(--space-lg) 0;
  display: flex;
  align-items: center;
  gap: var(--space-lg);
  flex-wrap: wrap;
}

.rector-cta p {
  flex: 1;
  margin: 0;
  min-width: 200px;
}

@media (max-width: 600px) {
  .history-figure {
    float: none;
    margin: 0 auto var(--space-md);
    max-width: 160px;
    display: block;
  }

  .rector-cta {
    flex-direction: column;
    gap: var(--space-sm);
  }
}


/* ─────────────────────────────────────────────────────────────────────────────
   20. Transition Page Sections
   ───────────────────────────────────────────────────────────────────────────── */

/* Intro: timeline + update */
.transition-intro {
  background: var(--color-bg);
  padding: var(--space-xl) var(--space-md);
  border-bottom: 1px solid var(--color-border);
}

.transition-intro-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: var(--space-xl);
  align-items: start;
}

.transition-timeline {
  text-align: center;
}

.transition-timeline-title {
  font-family: var(--font-sans);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-text-light);
  padding-bottom: var(--space-xs);
  border-bottom: 1px solid var(--color-border);
  margin-bottom: var(--space-sm);
  text-align: left;
}

.transition-timeline img {
  width: 100%;
  max-width: 260px;
  border-radius: var(--radius);
  border: 1px solid var(--color-border);
}

.transition-update h2 {
  font-size: 1.65rem;
  margin-bottom: 0.2rem;
  margin-top: 0;
}

.transition-update h3 {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--color-red);
  margin-bottom: var(--space-sm);
  margin-top: 0.3rem;
}

.transition-update-meta {
  font-size: 0.9rem;
  color: var(--color-text-mid);
  margin-bottom: var(--space-md);
  padding-bottom: var(--space-sm);
  border-bottom: 1px solid var(--color-border);
}

.transition-update p {
  margin-bottom: var(--space-sm);
  line-height: 1.7;
}

.transition-update a {
  color: var(--color-red);
}

/* Alternating image + content sections */
.split-section {
  padding: var(--space-xl) var(--space-md);
}

.split-section--cream {
  background: var(--color-cream);
}

.split-section--white {
  background: var(--color-bg);
}

.split-section-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  gap: var(--space-xl);
  align-items: center;
}

.split-section--alt .split-section-inner {
  grid-template-columns: 1.6fr 1fr;
}

.split-section--alt .split-section-image {
  order: 2;
}

.split-section--alt .split-section-content {
  order: 1;
}

.split-section-image img {
  width: 100%;
  height: 400px;
  object-fit: cover;
  border-radius: var(--radius-lg);
  display: block;
}

.split-section-content h2 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  margin-bottom: var(--space-sm);
}

.split-section-content h3 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-top: var(--space-md);
  margin-bottom: var(--space-xs);
  color: var(--color-text);
}

.split-section-content p {
  line-height: 1.7;
  margin-bottom: var(--space-sm);
}

.split-section-content ul {
  list-style: disc;
  padding-left: var(--space-md);
  margin-bottom: var(--space-sm);
}

.split-section-content li {
  margin-bottom: 0.5rem;
  line-height: 1.6;
}

/* Transition links list */
.transition-links {
  list-style: none;
  padding: 0;
}

.transition-links li {
  border-bottom: 1px solid var(--color-border);
}

.transition-links a {
  display: block;
  padding: 0.6rem 0 0.6rem 1.2rem;
  position: relative;
  color: var(--color-text);
  font-size: 0.95rem;
  text-decoration: none;
  transition: color 0.15s;
}

.transition-links a::before {
  content: '→';
  position: absolute;
  left: 0;
  color: var(--color-red);
}

.transition-links a:hover {
  color: var(--color-red);
}

/* Search committee */
.committee-section {
  padding: var(--space-xl) var(--space-md);
  background: var(--color-bg);
  border-top: 1px solid var(--color-border);
}

.committee-inner {
  max-width: var(--max-width);
  margin: 0 auto;
}

.committee-inner .section-header {
  margin-bottom: var(--space-lg);
}

.committee-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-md);
}

.committee-member {
  background: none;
  border: none;
  border-top: 2px solid var(--color-red);
  border-radius: 0;
  padding: var(--space-md) 0 0 0;
}

.committee-member h3 {
  font-family: var(--font-serif);
  font-size: 1.1rem;
  margin-bottom: var(--space-xs);
  color: var(--color-dark);
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.committee-role {
  font-family: var(--font-sans);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-red);
}

.committee-member p {
  font-size: 0.875rem;
  line-height: 1.65;
  color: var(--color-text-mid);
  margin: 0;
}

/* Responsive: tablet */
@media (max-width: 900px) {
  .transition-intro-inner {
    grid-template-columns: 1fr;
    gap: var(--space-lg);
  }

  .transition-timeline {
    display: flex;
    align-items: flex-start;
    gap: var(--space-md);
  }

  .transition-timeline img {
    max-width: 160px;
  }

  .split-section-inner,
  .split-section--alt .split-section-inner {
    grid-template-columns: 1fr;
  }

  .split-section--alt .split-section-image {
    order: 0;
  }

  .split-section-image img {
    height: 280px;
  }

  .committee-grid {
    grid-template-columns: 1fr;
  }
}

/* Responsive: mobile */
@media (max-width: 600px) {
  .transition-timeline {
    flex-direction: column;
  }

  .page-hero--transition {
    min-height: 280px;
  }
}


/* ─────────────────────────────────────────────────────────────────────────────
   19. Footer
   ───────────────────────────────────────────────────────────────────────────── */

.site-footer {
  background: var(--color-dark);
  padding: var(--space-xl) var(--space-md) var(--space-lg);
}

.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
}

.footer-top {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: var(--space-xl);
  padding-bottom: var(--space-xl);
  border-bottom: 1px solid rgba(255,255,255,0.1);
  margin-bottom: var(--space-lg);
}

.footer-brand .footer-name {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  color: #fff;
  margin-bottom: var(--space-xs);
}

.footer-brand p {
  font-size: 0.875rem;
  color: rgba(255,255,255,0.5);
  line-height: 1.7;
  margin-bottom: var(--space-sm);
}

.footer-brand a {
  color: rgba(255,255,255,0.5);
  font-size: 0.875rem;
}

.footer-brand a:hover {
  color: #fff;
}

.footer-col h4 {
  font-family: var(--font-sans);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.4);
  margin-bottom: var(--space-sm);
}

.footer-col ul {
  list-style: none;
  padding: 0;
}

.footer-col li {
  margin-bottom: 0.4rem;
}

.footer-col a {
  font-size: 0.875rem;
  color: rgba(255,255,255,0.6);
  text-decoration: none;
  transition: color 0.15s;
}

.footer-col a:hover {
  color: #fff;
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--space-sm);
}

.footer-credits {
  font-size: 0.78rem;
  color: rgba(255,255,255,0.3);
  margin: 0;
}

.footer-social {
  display: flex;
  gap: var(--space-xs);
}

.footer-social a {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  color: rgba(255,255,255,0.5);
  text-decoration: none;
  padding: 5px 10px;
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 0;
  transition: color 0.15s, border-color 0.15s;
}

.footer-social a:hover {
  color: #fff;
  border-color: rgba(255,255,255,0.5);
}


/* ─────────────────────────────────────────────────────────────────────────────
   20. Responsive — Tablet (max 900px)
   ───────────────────────────────────────────────────────────────────────────── */

@media (max-width: 900px) {
  .footer-top {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-lg);
  }

  .footer-brand {
    grid-column: 1 / -1;
  }

  /* Features: go to single column at tablet — columns too narrow at 2-up */
  .features-inner {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .feature-card {
    border-right: none;
    border-top: 1px solid var(--color-border);
    border-left: 2px solid var(--color-red);
    padding: var(--space-md) 0 var(--space-md) var(--space-md);
  }

  .feature-card:first-child {
    border-top: 1px solid var(--color-border);
    border-left: 2px solid var(--color-red);
    padding-left: var(--space-md);
  }

  .feature-card:last-child {
    padding-right: 0;
  }

  /* Spotlight: stack image above text at tablet */
  .spotlight-card {
    grid-template-columns: 1fr;
    padding: var(--space-xl) 0;
  }

  .spotlight-card:first-child {
    padding-top: 0;
  }

  .spotlight-card-img {
    height: 300px;
  }

  .spotlight-card-body {
    padding: var(--space-md) 0 0 0;
  }

  .page-layout {
    grid-template-columns: 1fr;
  }

  .subnav {
    position: static;
  }

  .times-inner {
    gap: var(--space-lg);
  }
}


/* ─────────────────────────────────────────────────────────────────────────────
   21. Responsive — Mobile (max 600px)
   ───────────────────────────────────────────────────────────────────────────── */

@media (max-width: 600px) {
  /* Header */
  .nav-toggle {
    display: flex;
  }

  .site-nav {
    display: none;
    position: absolute;
    top: var(--header-height);
    left: 0;
    right: 0;
    background: #fff;
    border-bottom: 1px solid var(--color-border);
    padding: var(--space-sm) 0;
    flex-direction: column;
    align-items: stretch;
    box-shadow: 0 4px 16px rgba(0,0,0,0.08);
    z-index: 99;
  }

  .site-nav.is-open {
    display: flex;
  }

  .nav-list {
    flex-direction: column;
    gap: 0;
  }

  .nav-link {
    height: auto;
    line-height: 1.4;
    padding: 0.7rem var(--space-md);
    border-bottom: 1px solid var(--color-border);
    font-size: 0.95rem;
    width: 100%;
    text-align: left;
    color: var(--color-text);
  }

  .nav-link:hover,
  .nav-link:focus {
    color: var(--color-red);
  }

  .nav-link--highlight {
    color: var(--color-red);
  }

  .nav-dropdown {
    position: static;
    display: none;
    border: none;
    border-top: none;
    box-shadow: none;
    background: var(--color-cream);
    border-radius: 0;
  }

  .nav-item.is-open .nav-dropdown {
    display: block;
  }

  .nav-dropdown a {
    padding: 0.5rem var(--space-md) 0.5rem calc(var(--space-md) + 1rem);
    font-size: 0.85rem;
  }

  .header-donate {
    display: none;
  }

  /* Hero */
  .hero {
    min-height: 520px;
  }

  .hero-actions {
    flex-direction: column;
    align-items: flex-start;
  }

  /* Times */
  .times-inner {
    gap: var(--space-sm);
  }

  .times-divider {
    display: none;
  }

  .times-time {
    font-size: 2rem;
  }

  /* Rector banner */
  .rector-banner-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: var(--space-sm);
  }

  /* Cards: already single-column from tablet breakpoint */

  /* Spotlight: tighter image at mobile */
  .spotlight-card-img {
    height: 220px;
  }

  /* Footer */
  .footer-top {
    grid-template-columns: 1fr;
    gap: var(--space-lg);
  }

  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
  }

  /* Page layout */
  .page-layout {
    padding: var(--space-lg) var(--space-md);
  }
}


/* ─────────────────────────────────────────────────────────────────────────────
   NEW PAGE COMPONENTS (added with interior pages build)
   ───────────────────────────────────────────────────────────────────────────── */

/* Staff list (used on about/staff.html) */
.staff-list {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin: var(--space-md) 0 var(--space-lg);
}

.staff-card {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  background: none;
  border: none;
  border-top: 1px solid var(--color-border);
  border-radius: 0;
  padding: var(--space-md) 0;
  text-align: left;
}

.staff-card--vacant {
  border-top: 2px solid var(--color-red);
  opacity: 0.85;
}

.staff-list {
  border-bottom: 1px solid var(--color-border);
}

.staff-photo {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

.staff-info h3 {
  font-size: 1.05rem;
  margin-bottom: 2px;
}

.staff-info .staff-title {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--color-text-light);
  margin-bottom: var(--space-xs);
}

.staff-info p {
  font-size: 0.9rem;
  margin: 0;
}

/* Vestry two-column layout */
.vestry-cols ul {
  column-count: 2;
  column-gap: var(--space-lg);
  list-style: none;
  padding: 0;
  margin: 0 0 var(--space-md);
}

.vestry-cols li {
  padding: 0.3rem 0;
  break-inside: avoid;
  font-size: 0.95rem;
}

@media (max-width: 500px) {
  .vestry-cols ul { column-count: 1; }
}

/* Contact form (connect.html) */
.contact-form {
  margin-top: var(--space-md);
  max-width: 560px;
}

.contact-form .form-group {
  margin-bottom: var(--space-md);
}

.contact-form label {
  display: block;
  font-size: 0.875rem;
  font-weight: 700;
  margin-bottom: 5px;
  color: var(--color-text);
}

.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  padding: 0.65rem 0.875rem;
  font-family: var(--font-sans);
  font-size: 1rem;
  color: var(--color-text);
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  transition: border-color 0.15s;
  -webkit-appearance: none;
  box-sizing: border-box;
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--color-red);
  box-shadow: 0 0 0 3px rgba(163, 31, 52, 0.12);
}

.contact-form textarea {
  resize: vertical;
  min-height: 140px;
}

/* Employment accordion (about/employment.html) */
.employment-item {
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  margin-bottom: var(--space-md);
  overflow: hidden;
}

.employment-item summary {
  padding: var(--space-md) var(--space-lg);
  cursor: pointer;
  background: var(--color-cream);
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.employment-item summary::-webkit-details-marker { display: none; }

.employment-item summary::after {
  content: '▾';
  font-size: 1rem;
  color: var(--color-text-light);
  transition: transform 0.2s;
}

.employment-item[open] summary::after {
  transform: rotate(-180deg);
}

.employment-item summary h3 {
  font-size: 1.1rem;
  margin: 0;
  color: var(--color-text);
}

.employment-detail {
  padding: var(--space-md) var(--space-lg);
  border-top: 1px solid var(--color-border);
}

.employment-detail p {
  margin-bottom: var(--space-sm);
}

/* Secondary button variant */
.btn-secondary {
  display: inline-block;
  padding: 0.6rem 1.4rem;
  font-family: var(--font-sans);
  font-size: 0.875rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  border-radius: var(--radius);
  cursor: pointer;
  transition: background 0.18s, color 0.18s, border-color 0.18s;
  text-decoration: none;
  background: transparent;
  color: var(--color-red);
  border: 2px solid var(--color-red);
}

.btn-secondary:hover {
  background: var(--color-red);
  color: #fff;
}

/* Map embed wrapper */
.map-embed {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--color-border);
}

/* Blockquote styling (used across interior pages) */
.page-content blockquote {
  border-left: 3px solid var(--color-red);
  margin: var(--space-lg) 0;
  padding: var(--space-sm) var(--space-md);
  background: var(--color-cream);
  border-radius: 0 var(--radius) var(--radius) 0;
}

.page-content blockquote p {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1.05rem;
  margin-bottom: var(--space-xs);
}

.page-content blockquote cite {
  font-size: 0.85rem;
  color: var(--color-text-light);
  font-style: normal;
}


/* ─────────────────────────────────────────────────────────────────────────────
   Hero Carousel
   ───────────────────────────────────────────────────────────────────────────── */

.hero-carousel {
  position: relative;
  overflow: hidden;
  background: var(--color-dark);
  /* Height: shorter on mobile, taller on desktop */
  min-height: clamp(300px, 55vw, 640px);
}

.carousel-track {
  position: relative;
  width: 100%;
  height: 100%;
}

/* All slides sit on top of each other; only .active is shown */
.carousel-slide {
  display: none;
  position: absolute;
  inset: 0;
}

.carousel-slide.active {
  display: block;
}

.carousel-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
  /* Dim image so caption text reads clearly */
  opacity: 0.55;
  min-height: clamp(300px, 55vw, 640px);
}

/* Caption bar: prev button · text · next button */
.carousel-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-sm) var(--space-md);
  background: linear-gradient(to top, rgba(42, 26, 30, 0.8) 0%, transparent 100%);
  z-index: 2;
}

.carousel-caption-inner {
  text-align: center;
  flex: 1;
  padding: 0 var(--space-sm);
}

.carousel-word {
  display: block;
  font-family: var(--font-serif);
  font-size: clamp(1.5rem, 5vw, 2.5rem);
  color: #fff;
  font-style: italic;
  line-height: 1.1;
}

.carousel-tagline {
  display: block;
  font-family: var(--font-sans);
  font-size: clamp(0.75rem, 2vw, 0.9rem);
  color: rgba(255, 255, 255, 0.75);
  margin-top: 0.25rem;
  letter-spacing: 0.02em;
}

.carousel-btn {
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: #fff;
  font-size: 1.75rem;
  line-height: 1;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: background 0.2s;
}

.carousel-btn:hover,
.carousel-btn:focus-visible {
  background: rgba(255, 255, 255, 0.3);
  outline: none;
}


/* ── Our Rector page portrait ─────────────────────────────── */
.rector-portrait {
  float: right;
  width: 260px;
  max-width: 45%;
  margin: 0.25rem 0 1.5rem 2rem;
}
.rector-portrait img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 4px;
}
.rector-portrait figcaption {
  margin-top: 0.5rem;
  font-size: 0.875rem;
  font-style: italic;
  text-align: center;
  color: #666;
}
.page-content::after {
  content: "";
  display: table;
  clear: both;
}
@media (max-width: 600px) {
  .rector-portrait {
    float: none;
    width: 100%;
    max-width: 320px;
    margin: 0 auto 1.5rem;
  }
}
