/* ==========================================================================
   Hugh Hall & Samuel Hall Foundation — Rustic Style
   ========================================================================== */

/* ---------- Reset & Base ---------- */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --parchment:    #f5f0e1;
  --parchment-dk: #e8dfca;
  --ink:          #2c2416;
  --ink-light:    #5a4a35;
  --accent:       #8b6f47;
  --accent-dark:  #6d5535;
  --accent-gold:  #c4a35a;
  --cream:        #faf7f0;
  --border:       #c9b99a;
  --shadow:       rgba(44, 36, 22, .12);
  --radius:       4px;
  --transition:   .3s ease;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

/* Skip Navigation Link (Accessibility) */
.skip-nav {
  position: absolute;
  top: -100%;
  left: 16px;
  z-index: 10000;
  padding: 12px 24px;
  background: var(--ink);
  color: var(--parchment);
  font-weight: 600;
  text-decoration: none;
  border-radius: var(--radius);
}
.skip-nav:focus {
  top: 16px;
}

body {
  font-family: 'Lora', 'EB Garamond', Georgia, 'Times New Roman', serif;
  color: var(--ink);
  background-color: var(--parchment);
  line-height: 1.75;
  font-size: 17px;
  /* Subtle paper texture using CSS noise */
  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='400' height='400'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='400' height='400' filter='url(%23n)' opacity='.08'/%3E%3C/svg%3E"),
    linear-gradient(180deg, #f5f0e1 0%, #ede5d0 100%);
}

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

a {
  color: var(--accent-dark);
  text-decoration: none;
  transition: color var(--transition);
}
a:hover { color: var(--accent-gold); }

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- Typography ---------- */
h1, h2, h3 {
  font-family: 'Playfair Display', Georgia, serif;
  font-weight: 700;
  line-height: 1.25;
  color: var(--ink);
}

h2 { font-size: clamp(1.8rem, 4vw, 2.6rem); }
h3 { font-size: clamp(1.2rem, 2.5vw, 1.5rem); }

.lead-text {
  font-size: 1.1rem;
  line-height: 1.85;
  margin-bottom: 1.5rem;
}

.caption {
  font-size: 0.85rem;
  color: var(--ink-light);
  text-align: center;
  margin-top: 10px;
  font-style: italic;
}

/* ---------- Navigation ---------- */
.main-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: rgba(245, 240, 225, .92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
  transition: background var(--transition), box-shadow var(--transition);
}
.main-nav.scrolled {
  background: rgba(245, 240, 225, .98);
  box-shadow: 0 2px 20px var(--shadow);
}

.nav-container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 70px;
}

.nav-brand {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.4rem;
  font-weight: 900;
  color: var(--ink);
  letter-spacing: 2px;
}
.nav-brand:hover { color: var(--accent); }

.nav-links {
  display: flex;
  list-style: none;
  gap: 8px;
}
.nav-links a {
  display: block;
  padding: 8px 14px;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--ink-light);
  letter-spacing: .5px;
  text-transform: uppercase;
  font-family: 'Lora', serif;
  border-radius: var(--radius);
  transition: color var(--transition), background var(--transition);
}
.nav-links a:hover {
  color: var(--ink);
  background: rgba(139, 111, 71, .1);
}
.nav-donate {
  background: var(--accent) !important;
  color: var(--cream) !important;
  border-radius: var(--radius) !important;
}
.nav-donate:hover {
  background: var(--accent-dark) !important;
  color: #fff !important;
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--ink);
  transition: var(--transition);
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 120px 24px 80px;
  background:
    linear-gradient(180deg, rgba(44,36,22,.55) 0%, rgba(44,36,22,.35) 100%),
    url('looking South from the Hugh Hall House.jpg') center/cover no-repeat;
  overflow: hidden;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='400' height='400'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.55' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='400' height='400' filter='url(%23n)' opacity='.06'/%3E%3C/svg%3E");
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 750px;
}

.hero-ornament {
  font-size: 1.8rem;
  color: var(--accent-gold);
  margin-bottom: 20px;
  opacity: .8;
}

.hero h1 {
  font-size: clamp(2rem, 5.5vw, 3.5rem);
  color: #fff;
  font-weight: 900;
  margin-bottom: 12px;
  text-shadow: 0 2px 15px rgba(0,0,0,.4);
}

.hero-tagline {
  font-family: 'EB Garamond', Georgia, serif;
  font-size: clamp(1.2rem, 3vw, 1.7rem);
  color: #fff;
  font-style: italic;
  margin-bottom: 20px;
  letter-spacing: 1px;
  text-shadow: 0 2px 12px rgba(0,0,0,.5);
}

.hero-rule {
  display: flex;
  justify-content: center;
  margin-bottom: 24px;
}
.hero-rule span {
  display: block;
  width: 80px;
  height: 2px;
  background: var(--accent-gold);
  opacity: .6;
}

.hero-sub {
  font-size: 1.05rem;
  color: rgba(255,255,255,.88);
  line-height: 1.8;
  max-width: 600px;
  margin: 0 auto 36px;
}

.hero-buttons {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  padding: 14px 32px;
  font-family: 'Lora', serif;
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: .5px;
  border-radius: var(--radius);
  transition: all var(--transition);
  cursor: pointer;
  border: none;
}
.btn-primary {
  background: var(--accent);
  color: var(--cream);
}
.btn-primary:hover {
  background: var(--accent-dark);
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(139, 111, 71, .35);
}
.btn-secondary {
  background: transparent;
  color: #fff;
  border: 1.5px solid rgba(255,255,255,.5);
}
.btn-secondary:hover {
  background: rgba(255,255,255,.12);
  border-color: #fff;
  color: #fff;
}

/* ---------- Sections ---------- */
.section {
  padding: 90px 0;
}
.section-alt {
  background-color: var(--parchment-dk);
  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='400' height='400'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.6' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='400' height='400' filter='url(%23n)' opacity='.06'/%3E%3C/svg%3E");
}

.section-header {
  text-align: center;
  margin-bottom: 50px;
}
.ornament {
  font-size: 1.3rem;
  color: var(--accent);
  margin-bottom: 12px;
  opacity: .6;
}
.header-rule {
  display: flex;
  justify-content: center;
  margin-top: 16px;
}
.header-rule span {
  display: block;
  width: 60px;
  height: 2px;
  background: var(--accent);
  opacity: .4;
}
.section-sub {
  font-size: 1.05rem;
  color: var(--ink-light);
  margin-top: 18px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

/* ---------- Story Blocks (About) ---------- */
.story-block {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
  margin-bottom: 60px;
}
.story-block.reverse {
  direction: rtl;
}
.story-block.reverse > * {
  direction: ltr;
}

.story-image img {
  border-radius: var(--radius);
  box-shadow: 0 6px 30px var(--shadow);
  border: 4px solid rgba(201, 185, 154, .4);
}

.story-text p {
  margin-bottom: 1rem;
}

.full-width-image-section {
  margin: 50px 0;
}
.full-width-image-section img {
  width: 100%;
  border-radius: var(--radius);
  box-shadow: 0 8px 40px var(--shadow);
  border: 4px solid rgba(201, 185, 154, .4);
}

.story-prose {
  max-width: 800px;
  margin: 0 auto 50px;
  text-align: center;
}
.story-prose p {
  margin-bottom: 1rem;
}

.story-image-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
}
.story-image-grid img {
  border-radius: var(--radius);
  box-shadow: 0 6px 30px var(--shadow);
  border: 4px solid rgba(201, 185, 154, .4);
  width: 100%;
}

/* ---------- Programs ---------- */
.programs-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 36px;
}
.program-card {
  display: block;
  padding: 44px 36px;
  background: var(--cream);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  text-align: center;
  transition: all var(--transition);
  box-shadow: 0 2px 12px var(--shadow);
}
.program-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 32px rgba(44, 36, 22, .18);
  border-color: var(--accent);
}
.program-icon {
  font-size: 2.4rem;
  color: var(--accent);
  margin-bottom: 18px;
}
.program-card h3 {
  margin-bottom: 14px;
}
.program-card p {
  color: var(--ink-light);
  margin-bottom: 18px;
  font-size: 0.95rem;
}
.card-link {
  font-weight: 600;
  color: var(--accent);
  font-size: 0.9rem;
  letter-spacing: .5px;
}

/* ---------- Scholarship ---------- */
.scholarship-intro {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
  margin-bottom: 50px;
}
.scholarship-image img {
  border-radius: var(--radius);
  box-shadow: 0 6px 30px var(--shadow);
  border: 4px solid rgba(201, 185, 154, .4);
}

.scholarship-details h3 {
  margin-top: 24px;
  margin-bottom: 12px;
  color: var(--accent-dark);
  font-size: 1.2rem;
}

.rustic-list {
  list-style: none;
  padding: 0;
}
.rustic-list li {
  position: relative;
  padding-left: 24px;
  margin-bottom: 10px;
  line-height: 1.7;
}
.rustic-list li::before {
  content: '\2727';
  position: absolute;
  left: 0;
  color: var(--accent);
  font-size: 0.9rem;
}

.scholarship-award-box {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 50px;
}
.award-detail {
  text-align: center;
  padding: 32px 20px;
  background: var(--cream);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: 0 2px 12px var(--shadow);
}
.award-label {
  display: block;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--accent);
  font-weight: 700;
  margin-bottom: 10px;
}
.award-value {
  display: block;
  font-family: 'Playfair Display', serif;
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--ink);
}

.winners-section {
  margin-bottom: 50px;
}
.winners-section img {
  width: 100%;
  border-radius: var(--radius);
  box-shadow: 0 8px 40px var(--shadow);
  border: 4px solid rgba(201, 185, 154, .4);
}

.recipients-heading {
  text-align: center;
  margin-bottom: 30px;
  font-size: clamp(1.4rem, 3vw, 1.8rem);
}

.recipients-year-block {
  margin-bottom: 40px;
  text-align: center;
}

.year-label {
  display: inline-block;
  font-family: 'Playfair Display', Georgia, serif;
  font-weight: 600;
  font-size: 1.15rem;
  color: var(--accent-dark);
  margin-bottom: 16px;
  letter-spacing: .02em;
}

.winners-featured {
  margin-bottom: 24px;
}

/* ---------- Recipients Slideshow ---------- */
.recipients-slideshow {
  max-width: 750px;
  margin: 0 auto;
}

.slide-container {
  position: relative;
  overflow: hidden;
}

.recipients-slideshow .slide {
  opacity: 0;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  transition: opacity .6s ease;
  pointer-events: none;
}

.recipients-slideshow .slide.active {
  opacity: 1;
  position: relative;
  pointer-events: auto;
}

.recipients-slideshow .slide img {
  width: 100%;
  border-radius: var(--radius);
  box-shadow: 0 8px 40px var(--shadow);
  border: 4px solid rgba(201, 185, 154, .4);
}

.slideshow-dots {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-top: 18px;
}

.slideshow-dots .dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 2px solid var(--accent);
  background: transparent;
  cursor: pointer;
  padding: 0;
  transition: background var(--transition), transform var(--transition);
}

.slideshow-dots .dot:hover {
  transform: scale(1.2);
}

.slideshow-dots .dot.active {
  background: var(--accent);
}

.ceremony-gallery {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
}

.ceremony-gallery img {
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.apply-cta {
  text-align: center;
  padding: 44px 32px;
  background: var(--cream);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 30px;
  box-shadow: 0 2px 12px var(--shadow);
}
.apply-cta h3 {
  margin-bottom: 14px;
}
.apply-cta p {
  margin-bottom: 20px;
  color: var(--ink-light);
}
.apply-cta a.btn {
  margin-top: 8px;
}

.compliance-note {
  text-align: center;
  font-size: 0.82rem;
  color: var(--ink-light);
  max-width: 700px;
  margin: 0 auto;
  opacity: .7;
  line-height: 1.7;
}

/* ---------- Museum ---------- */
.museum-content-single {
  max-width: 750px;
  margin: 0 auto;
}
.museum-content-single p {
  margin-bottom: 1rem;
}
.museum-content-single .rustic-list {
  margin-bottom: 1.5rem;
}
.museum-photo-placeholder,
.winners-photo-placeholder {
  text-align: center;
  padding: 50px 24px;
  margin-top: 30px;
  background: var(--cream);
  border: 2px dashed var(--border);
  border-radius: var(--radius);
  color: var(--ink-light);
  font-size: 1rem;
}

/* ---------- Donate ---------- */
.donate-content {
  max-width: 700px;
  margin: 0 auto;
  text-align: center;
}
.donate-lead {
  font-size: 1.15rem;
  line-height: 1.85;
  margin-bottom: 1rem;
}
.donate-box {
  margin-top: 36px;
  padding: 44px 36px;
  background: var(--cream);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: 0 2px 12px var(--shadow);
}
.donate-box h3 {
  margin-bottom: 16px;
}
.donate-box p {
  margin-bottom: 14px;
  color: var(--ink-light);
}
.donate-box .btn {
  margin-top: 12px;
}
.btn-donate {
  display: inline-block;
  margin-top: 20px;
  padding: 18px 48px;
  background: var(--accent);
  color: var(--cream);
  font-family: 'Playfair Display', serif;
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: 1px;
  border-radius: var(--radius);
  transition: all var(--transition);
}
.btn-donate:hover {
  background: var(--accent-dark);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(139, 111, 71, .4);
}

/* ---------- Contact ---------- */
.contact-content {
  max-width: 700px;
  margin: 0 auto;
  text-align: center;
}
.contact-content > p {
  margin-bottom: 30px;
  color: var(--ink-light);
}
.contact-card {
  padding: 36px;
  background: var(--cream);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: 0 2px 12px var(--shadow);
  margin-bottom: 30px;
}
.contact-card h3 {
  margin-bottom: 16px;
}
.contact-card p {
  margin-bottom: 8px;
}
.contact-links {
  font-size: 0.95rem;
}
.contact-links ul {
  list-style: none;
  display: flex;
  gap: 24px;
  justify-content: center;
  margin-top: 10px;
}
.contact-links a {
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--ink);
  color: rgba(255,255,255,.7);
  padding: 50px 0 30px;
}
.footer-content {
  text-align: center;
}
.footer-brand h3 {
  color: var(--accent-gold);
  margin-bottom: 6px;
  font-size: 1.3rem;
}
.footer-brand p {
  font-style: italic;
  font-family: 'EB Garamond', serif;
  font-size: 1rem;
  opacity: .7;
}
.footer-nav {
  margin: 28px 0;
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}
.footer-nav a {
  color: rgba(255,255,255,.55);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: .5px;
  font-weight: 600;
}
.footer-nav a:hover {
  color: var(--accent-gold);
}
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.1);
  padding-top: 20px;
  margin-top: 8px;
}
.footer-bottom p {
  font-size: 0.8rem;
  opacity: .5;
}

/* ---------- Paper Feature Card ---------- */
.paper-card-section {
  padding: 0;
  margin-top: -70px;
  position: relative;
  z-index: 10;
  padding-bottom: 60px;
}

.paper-card {
  position: relative;
  background: var(--cream);
  border-radius: 3px;
  overflow: hidden;
  box-shadow:
    0 1px 2px rgba(44, 36, 22, 0.07),
    0 2px 4px rgba(44, 36, 22, 0.07),
    0 4px 8px rgba(44, 36, 22, 0.06),
    0 8px 16px rgba(44, 36, 22, 0.05),
    0 16px 32px rgba(44, 36, 22, 0.04),
    0 32px 64px rgba(44, 36, 22, 0.03);
  border: 1px solid rgba(201, 185, 154, 0.35);
}

.paper-card-texture {
  position: absolute;
  inset: 0;
  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='500' height='500'%3E%3Cfilter id='p'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='5' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='500' height='500' filter='url(%23p)' opacity='.04'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 0;
}

.paper-card-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  position: relative;
  z-index: 1;
}

.paper-card-image {
  overflow: hidden;
}

.paper-card-image img {
  width: 100%;
  height: auto;
  object-fit: contain;
  display: block;
  transition: transform .6s ease;
}

.paper-card:hover .paper-card-image img {
  transform: scale(1.03);
}

.paper-card-text {
  padding: 56px 48px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.paper-card-eyebrow {
  display: block;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 2.5px;
  color: var(--accent);
  font-weight: 700;
  margin-bottom: 18px;
  font-family: 'Lora', serif;
}

.paper-card-text h2 {
  margin-bottom: 20px;
  font-size: clamp(1.5rem, 3.2vw, 2.1rem);
  line-height: 1.3;
}

.paper-card-text p {
  color: var(--ink-light);
  margin-bottom: 28px;
  line-height: 1.85;
  font-size: 0.98rem;
}

/* ---------- Painted / Watercolor Background ---------- */
.painted-bg {
  position: relative;
  background-color: var(--parchment);
  overflow: hidden;
}

.painted-bg::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 70% 50% at 10% 20%, rgba(196, 163, 90, 0.2) 0%, transparent 70%),
    radial-gradient(ellipse 60% 60% at 90% 30%, rgba(139, 111, 71, 0.14) 0%, transparent 65%),
    radial-gradient(ellipse 80% 40% at 50% 85%, rgba(180, 155, 110, 0.16) 0%, transparent 60%),
    radial-gradient(ellipse 50% 70% at 15% 80%, rgba(170, 140, 90, 0.1) 0%, transparent 55%),
    radial-gradient(ellipse 55% 45% at 75% 65%, rgba(200, 175, 120, 0.12) 0%, transparent 60%),
    radial-gradient(ellipse 90% 30% at 40% 10%, rgba(210, 185, 140, 0.08) 0%, transparent 50%);
  pointer-events: none;
  z-index: 0;
}

.painted-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='600' height='600'%3E%3Cfilter id='w'%3E%3CfeTurbulence type='turbulence' baseFrequency='.015' numOctaves='4' seed='3' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='600' height='600' filter='url(%23w)' opacity='.07'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 0;
  mix-blend-mode: multiply;
}

.painted-bg > .container {
  position: relative;
  z-index: 1;
}

/* ---------- Video Section ---------- */
.video-wrapper {
  max-width: 880px;
  margin: 0 auto 50px;
}

.video-frame {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
  border-radius: var(--radius);
  box-shadow:
    0 4px 12px rgba(44, 36, 22, 0.1),
    0 12px 40px rgba(44, 36, 22, 0.12);
  border: 5px solid rgba(201, 185, 154, 0.45);
  background: var(--ink);
}

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

.video-link {
  display: block;
  text-decoration: none;
}

.video-thumbnail {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow:
    0 4px 12px rgba(44, 36, 22, 0.1),
    0 12px 40px rgba(44, 36, 22, 0.12);
  border: 5px solid rgba(201, 185, 154, 0.45);
  background: var(--ink);
  cursor: pointer;
}

.video-thumbnail img {
  width: 100%;
  display: block;
  transition: transform .5s ease, filter .5s ease;
}

.video-thumbnail:hover img {
  transform: scale(1.03);
  filter: brightness(0.85);
}

.video-play-btn {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  transition: transform .3s ease, opacity .3s ease;
  opacity: 0.9;
  filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.4));
}

.video-thumbnail:hover .video-play-btn {
  transform: translate(-50%, -50%) scale(1.12);
  opacity: 1;
}

.video-watch-label {
  position: absolute;
  bottom: 16px;
  right: 16px;
  background: rgba(0, 0, 0, 0.7);
  color: #fff;
  font-size: 0.82rem;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: 3px;
  letter-spacing: 0.5px;
  font-family: 'Lora', serif;
  backdrop-filter: blur(4px);
  transition: background .3s ease;
}

.video-thumbnail:hover .video-watch-label {
  background: rgba(255, 0, 0, 0.85);
}

.video-wrapper .caption {
  margin-top: 14px;
}

/* ---------- Gathering Gallery ---------- */
.gathering-gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.gallery-item img {
  width: 100%;
  border-radius: var(--radius);
  box-shadow: 0 6px 24px var(--shadow);
  border: 4px solid rgba(201, 185, 154, 0.4);
  aspect-ratio: 4 / 3;
  object-fit: cover;
  transition: transform .4s ease, box-shadow .4s ease;
}

.gallery-item img:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 36px rgba(44, 36, 22, 0.18);
}

/* ---------- Museum Gallery ---------- */
.museum-gallery {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
  margin-top: 30px;
}

.museum-gallery img {
  border-radius: var(--radius);
  box-shadow: 0 6px 30px var(--shadow);
  border: 4px solid rgba(201, 185, 154, 0.4);
  width: 100%;
}

/* ---------- Book of Quotes ---------- */
.book-container {
  max-width: 750px;
  margin: 0 auto;
}

/* -- Closed Book -- */
.book-closed {
  text-align: center;
  cursor: pointer;
  transition: transform 0.5s ease, opacity 0.3s ease 0.2s;
  outline: none;
}

.book-closed:focus-visible .book-cover {
  outline: 2px solid var(--accent-gold);
  outline-offset: 6px;
  border-radius: 6px;
}

.book-closed.hiding {
  transform: scale(1.05) translateY(-10px);
  opacity: 0;
  pointer-events: none;
}

.book-cover {
  display: inline-flex;
  border-radius: 2px 6px 6px 2px;
  box-shadow:
    4px 4px 14px rgba(0,0,0,.3),
    1px 1px 3px rgba(0,0,0,.15);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.book-closed:hover .book-cover {
  transform: translateY(-4px) rotate(-1deg);
  box-shadow:
    6px 10px 24px rgba(0,0,0,.35),
    2px 2px 4px rgba(0,0,0,.2);
}

.book-spine-edge {
  width: 22px;
  background: linear-gradient(90deg, #3e2a18, #5a3e28, #4a3320);
  border-radius: 2px 0 0 2px;
  box-shadow: inset -2px 0 6px rgba(0,0,0,.4);
}

.book-front-cover {
  width: 200px;
  padding: 40px 24px;
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='400' height='400'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='400' height='400' filter='url(%23n)' opacity='.06'/%3E%3C/svg%3E"),
    linear-gradient(170deg, #7a5638 0%, #5c3d25 50%, #6d4c30 100%);
  border-left: 1px solid rgba(255,255,255,.06);
  border-radius: 0 6px 6px 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.book-cover-ornament {
  font-size: 1.2rem;
  color: var(--accent-gold);
  opacity: 0.7;
  margin-bottom: 12px;
}

.book-front-cover h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1.35rem;
  color: var(--accent-gold);
  line-height: 1.3;
  text-shadow: 0 1px 3px rgba(0,0,0,.4);
  margin-bottom: 10px;
}

.book-cover-rule {
  width: 40px;
  height: 1px;
  background: var(--accent-gold);
  opacity: 0.5;
  margin-bottom: 10px;
}

.book-author {
  font-family: 'EB Garamond', serif;
  font-size: 0.9rem;
  color: rgba(196, 163, 90, .85);
  font-style: italic;
}

.book-date {
  font-size: 0.75rem;
  color: rgba(196, 163, 90, .5);
  margin-top: 4px;
  letter-spacing: 2px;
}

.book-prompt {
  margin-top: 18px;
  font-size: 0.85rem;
  color: var(--ink-light);
  font-style: italic;
  animation: gentlePulse 2s ease-in-out infinite;
}

@keyframes gentlePulse {
  0%, 100% { opacity: 0.5; }
  50% { opacity: 1; }
}

/* -- Open Book -- */
.book-open {
  display: none;
  opacity: 0;
  transform: scale(0.92);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.book-open.visible {
  opacity: 1;
  transform: scale(1);
}

.book-frame {
  display: grid;
  grid-template-columns: 1fr 4px 1fr;
  min-height: 400px;
  background: var(--cream);
  border-radius: 4px;
  border: 1px solid var(--border);
  box-shadow:
    0 4px 16px rgba(44,36,22,.12),
    0 12px 40px rgba(44,36,22,.08);
  position: relative;
  overflow: hidden;
  perspective: 1200px;
  transition: opacity 0.3s ease;
}

.book-page {
  padding: 36px 28px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 28px;
}

.book-page-left {
  box-shadow: inset -6px 0 12px -6px rgba(0,0,0,.07);
}

.book-page-right {
  box-shadow: inset 6px 0 12px -6px rgba(0,0,0,.07);
}

.book-gutter {
  background: linear-gradient(90deg,
    rgba(0,0,0,.1),
    rgba(0,0,0,.15),
    rgba(0,0,0,.1)
  );
}

/* -- Quote Styling -- */
.book-quote {
  text-align: center;
}

.book-quote blockquote {
  font-family: 'EB Garamond', Georgia, serif;
  font-size: 1rem;
  font-style: italic;
  line-height: 1.7;
  color: var(--ink);
  margin-bottom: 8px;
}

.book-quote .quote-context {
  display: block;
  font-size: 0.72rem;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 1.2px;
  font-weight: 700;
  font-family: 'Lora', serif;
  font-style: normal;
}

/* -- Page Turner (3D Flip) -- */
.page-turner {
  position: absolute;
  top: 0;
  right: 0;
  width: calc(50% - 2px);
  height: 100%;
  transform-origin: left center;
  transform-style: preserve-3d;
  z-index: 10;
  pointer-events: none;
  display: none;
}

.page-turner-front,
.page-turner-back {
  position: absolute;
  inset: 0;
  backface-visibility: hidden;
  background: var(--cream);
  padding: 36px 28px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 28px;
  overflow: hidden;
}

.page-turner-front {
  box-shadow: inset 6px 0 12px -6px rgba(0,0,0,.07);
}

.page-turner-back {
  transform: rotateY(180deg);
  box-shadow: inset -6px 0 12px -6px rgba(0,0,0,.07);
}

@keyframes flipForward {
  0% { transform: rotateY(0deg); }
  100% { transform: rotateY(-180deg); }
}

@keyframes flipBackward {
  0% { transform: rotateY(-180deg); }
  100% { transform: rotateY(0deg); }
}

.page-turner.flipping-forward {
  display: block;
  animation: flipForward 0.7s ease-in-out forwards;
}

.page-turner.flipping-backward {
  display: block;
  animation: flipBackward 0.7s ease-in-out forwards;
}

/* -- Book Controls -- */
.book-controls {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 20px;
  margin-top: 20px;
}

.book-nav-btn {
  font-family: 'Lora', serif;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--accent);
  background: none;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  padding: 10px 20px;
  cursor: pointer;
  transition: all var(--transition);
}

.book-nav-btn:hover:not(:disabled) {
  background: var(--accent);
  color: var(--cream);
  border-color: var(--accent);
}

.book-nav-btn:disabled {
  opacity: 0.35;
  cursor: default;
}

.book-page-indicator {
  font-size: 0.82rem;
  color: var(--ink-light);
  font-style: italic;
}

.book-close-btn {
  display: block;
  margin: 16px auto 0;
  font-family: 'Lora', serif;
  font-size: 0.85rem;
  color: var(--ink-light);
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px 16px;
  transition: color var(--transition);
}

.book-close-btn:hover {
  color: var(--accent);
}

/* ---------- Trivia Quiz ---------- */
.quiz-card {
  position: relative;
  max-width: 700px;
  margin: 0 auto;
  background: var(--cream);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow:
    0 2px 12px var(--shadow),
    0 8px 32px rgba(44, 36, 22, .06);
  padding: 40px 36px;
  overflow: hidden;
}

.quiz-card .paper-card-texture {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

.quiz-card > *:not(.paper-card-texture) {
  position: relative;
  z-index: 1;
}

.quiz-progress {
  height: 6px;
  background: var(--parchment-dk);
  border-radius: 3px;
  overflow: hidden;
  margin-bottom: 8px;
}

.quiz-progress-bar {
  height: 100%;
  width: 14.28%;
  background: var(--accent-gold);
  border-radius: 3px;
  transition: width .4s ease;
}

.quiz-progress-text {
  font-size: 0.8rem;
  color: var(--ink-light);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  font-weight: 700;
  text-align: center;
  margin-bottom: 28px;
}

.quiz-question {
  font-size: clamp(1.1rem, 2.5vw, 1.35rem);
  text-align: center;
  margin-bottom: 28px;
  line-height: 1.45;
}

.quiz-answers {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-bottom: 20px;
}

.quiz-answer-btn {
  display: block;
  width: 100%;
  padding: 16px 18px;
  font-family: 'Lora', serif;
  font-size: 0.95rem;
  color: var(--ink);
  background: var(--parchment);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  cursor: pointer;
  text-align: left;
  line-height: 1.5;
  transition: all var(--transition);
}

.quiz-answer-btn:hover:not(:disabled) {
  border-color: var(--accent);
  background: var(--parchment-dk);
  transform: translateY(-1px);
  box-shadow: 0 3px 12px var(--shadow);
}

.quiz-answer-btn:disabled {
  cursor: default;
}

.quiz-answer-btn.correct {
  background: rgba(76, 140, 74, .15);
  border-color: #4c8c4a;
  color: #2d5e2b;
}

.quiz-answer-btn.incorrect {
  background: rgba(180, 60, 50, .12);
  border-color: #b43c32;
  color: #8a2a22;
}

.quiz-explanation {
  text-align: center;
  font-size: 0.9rem;
  font-style: italic;
  color: var(--ink-light);
  margin-bottom: 20px;
  min-height: 0;
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: all .35s ease;
}

.quiz-explanation.show {
  min-height: 1em;
  max-height: 80px;
  opacity: 1;
  margin-bottom: 20px;
}

.quiz-next {
  display: none;
  margin: 0 auto;
}

.quiz-next.show {
  display: block;
}

/* Quiz Results */
.quiz-results {
  text-align: center;
}

.quiz-results-title {
  font-size: clamp(1.3rem, 3vw, 1.8rem);
  margin-bottom: 12px;
}

.quiz-score {
  font-size: 1.1rem;
  color: var(--ink-light);
  margin-bottom: 30px;
}

.quiz-badge {
  margin-bottom: 30px;
}

.badge-circle {
  width: 120px;
  height: 120px;
  margin: 0 auto 24px;
  border: 3px solid var(--accent-gold);
  border-radius: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(196, 163, 90, .12), rgba(196, 163, 90, .04));
  box-shadow: 0 0 0 6px rgba(196, 163, 90, .15);
}

.badge-icon {
  font-size: 1.8rem;
  color: var(--accent-gold);
  line-height: 1;
  margin-bottom: 4px;
}

.badge-label {
  font-family: 'Playfair Display', serif;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--accent-dark);
  line-height: 1.3;
  text-align: center;
}

.badge-quote-card {
  max-width: 500px;
  margin: 0 auto 24px;
  padding: 28px 32px;
  background: var(--parchment);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: 0 2px 12px var(--shadow);
}

.badge-quote-card blockquote {
  font-family: 'EB Garamond', Georgia, serif;
  font-size: 1.15rem;
  font-style: italic;
  line-height: 1.75;
  color: var(--ink);
  margin-bottom: 12px;
}

.badge-quote-card cite {
  display: block;
  font-size: 0.85rem;
  color: var(--ink-light);
  font-style: normal;
  font-weight: 600;
}

.quiz-share {
  margin-bottom: 14px;
}

.quiz-replay {
  margin: 0 auto;
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .story-block,
  .story-block.reverse,
  .scholarship-intro {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  .story-block.reverse {
    direction: ltr;
  }
  .programs-grid {
    grid-template-columns: 1fr;
  }
  .scholarship-award-box {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .story-image-grid {
    grid-template-columns: 1fr;
  }
  .story-image-grid img {
    width: 100%;
  }
  .paper-card-inner {
    grid-template-columns: 1fr;
  }
  .paper-card-image img {
    max-height: 360px;
  }
  .gathering-gallery {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .book-frame {
    grid-template-columns: 1fr;
    min-height: auto;
  }
  .book-gutter {
    height: 3px;
    background: linear-gradient(180deg, rgba(0,0,0,.1), rgba(0,0,0,.15), rgba(0,0,0,.1));
  }
  .book-page-left {
    box-shadow: inset 0 -6px 12px -6px rgba(0,0,0,.07);
  }
  .book-page-right {
    box-shadow: inset 0 6px 12px -6px rgba(0,0,0,.07);
  }
  .page-turner {
    display: none !important;
  }
  .quiz-answers {
    grid-template-columns: 1fr;
  }
  .museum-gallery {
    grid-template-columns: 1fr;
  }
  .recipients-gallery {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  .ceremony-gallery {
    grid-template-columns: 1fr;
    gap: 20px;
  }
}

@media (max-width: 700px) {
  body { font-size: 16px; }
  .section { padding: 60px 0; }

  .nav-toggle {
    display: flex;
  }
  .nav-links {
    position: fixed;
    top: 70px;
    left: 0; right: 0;
    background: rgba(245, 240, 225, .98);
    flex-direction: column;
    padding: 20px 24px;
    gap: 4px;
    border-bottom: 1px solid var(--border);
    transform: translateY(-120%);
    opacity: 0;
    transition: transform .35s ease, opacity .35s ease;
    box-shadow: 0 6px 20px var(--shadow);
  }
  .nav-links.open {
    transform: translateY(0);
    opacity: 1;
  }
  .nav-links a {
    padding: 12px 16px;
    font-size: 0.95rem;
  }

  .hero { min-height: 90vh; padding: 100px 20px 60px; }
  .hero h1 { font-size: 2rem; }
  .hero-buttons { flex-direction: column; align-items: center; }

  .quiz-card { padding: 28px 20px; }
  .paper-card-section { margin-top: -40px; }
  .paper-card-text { padding: 32px 24px; }
  .paper-card-eyebrow { margin-bottom: 12px; }

  .full-width-image-section img,
  .winners-section img {
    width: 100%;
  }
}

/* ---------- Animations ---------- */
.fade-in {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .7s ease, transform .7s ease;
}
.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}
