/* =============================================
   DESIGN TOKENS
   ============================================= */
:root {
  --teal:        #2A8C8C;
  --teal-dark:   #1F6B6B;
  --teal-light:  #3AACAC;
  --teal-bg:     #0E2E2E;
  --cream:       #FAF7F2;
  --cream-dark:  #F0EBE1;
  --ink:         #1A2E2E;
  --ink-light:   #4A6464;
  --gold:        #C8963E;
  --gold-light:  #E8C07A;
  --white:       #FFFFFF;
  --border:      #E2DAD0;

  --shadow-sm:   0 1px 4px rgba(26,46,46,0.07);
  --shadow-md:   0 4px 18px rgba(26,46,46,0.11);
  --shadow-lg:   0 10px 36px rgba(26,46,46,0.15);

  --radius:      8px;
  --radius-lg:   16px;

  --max-width:   1200px;
  --nav-height:  72px;

  --font-heading: 'Playfair Display', Georgia, serif;
  --font-body:    'Inter', system-ui, -apple-system, sans-serif;
}

/* =============================================
   RESET & BASE
   ============================================= */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--cream);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

a {
  color: inherit;
  text-decoration: none;
}

ul {
  list-style: none;
}

/* =============================================
   LAYOUT UTILITIES
   ============================================= */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 28px;
}

.section {
  padding: 100px 0;
}

.bg-white      { background: var(--white); }
.bg-cream      { background: var(--cream); }
.bg-cream-dark { background: var(--cream-dark); }
.bg-teal       { background: var(--teal-bg); }

/* =============================================
   SECTION TYPOGRAPHY
   ============================================= */
.section-label {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 14px;
}

.section-label.light {
  color: var(--gold-light);
}

.section-title {
  font-family: var(--font-heading);
  font-size: clamp(1.875rem, 3.5vw, 2.625rem);
  font-weight: 700;
  color: var(--ink);
  line-height: 1.2;
  margin-bottom: 52px;
}

.section-title.light {
  color: var(--white);
}

.section-intro {
  font-size: 1.0625rem;
  color: var(--ink-light);
  max-width: 620px;
  margin-top: -36px;
  margin-bottom: 52px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.75;
}

.section-intro.light {
  color: rgba(255, 255, 255, 0.75);
}

.section-cta {
  margin-top: 52px;
  text-align: center;
}

/* =============================================
   BUTTONS
   ============================================= */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 30px;
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 0.9375rem;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease,
              color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
  border: 2px solid transparent;
  white-space: nowrap;
}

.btn-primary {
  background: var(--teal);
  color: var(--white);
  border-color: var(--teal);
}
.btn-primary:hover {
  background: var(--teal-dark);
  border-color: var(--teal-dark);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-ghost {
  background: transparent;
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.55);
}
.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.9);
}

.btn-outline {
  background: transparent;
  color: var(--teal);
  border-color: var(--teal);
}
.btn-outline:hover {
  background: var(--teal);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-light {
  background: rgba(255, 255, 255, 0.12);
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.35);
}
.btn-light:hover {
  background: rgba(255, 255, 255, 0.22);
  border-color: rgba(255, 255, 255, 0.65);
}

.btn-sm {
  padding: 8px 18px;
  font-size: 0.875rem;
}

.link-arrow {
  display: inline-flex;
  align-items: center;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--teal);
  gap: 4px;
  transition: gap 0.2s ease, color 0.2s ease;
}
.link-arrow:hover {
  gap: 10px;
  color: var(--teal-dark);
}

/* =============================================
   NAVIGATION
   ============================================= */
#navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--nav-height);
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

#navbar.scrolled {
  border-bottom-color: var(--border);
  box-shadow: 0 2px 20px rgba(26, 46, 46, 0.08);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--nav-height);
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.nav-logo {
  height: 46px;
  width: 46px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--border);
}

.nav-title {
  font-family: var(--font-heading);
  font-size: 1.0625rem;
  font-weight: 600;
  color: var(--ink);
  line-height: 1.2;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-links a {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--ink-light);
  padding: 8px 14px;
  border-radius: var(--radius);
  transition: color 0.2s ease, background 0.2s ease;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--teal);
  background: rgba(42, 140, 140, 0.08);
}

.nav-links a.nav-cta {
  background: var(--teal);
  color: var(--white);
  padding: 8px 20px;
  margin-left: 8px;
}

.nav-links a.nav-cta:hover {
  background: var(--teal-dark);
  color: var(--white);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
  border-radius: var(--radius);
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* =============================================
   HERO
   ============================================= */
#hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: calc(var(--nav-height) + 60px) 28px 100px;
  background:
    linear-gradient(to bottom, rgba(8, 28, 28, 0.45) 0%, rgba(8, 28, 28, 0.55) 100%),
    url('uploads/images/PXL_20251206_062837984.jpg') center / cover no-repeat;
  background-color: var(--teal-bg);
}

.hero-content {
  max-width: 800px;
  position: relative;
  z-index: 1;
}

.hero-label {
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold-light);
  margin-bottom: 22px;
}

.hero-headline {
  font-family: var(--font-heading);
  font-size: clamp(2.75rem, 7vw, 5rem);
  font-weight: 700;
  color: var(--white);
  line-height: 1.1;
  margin-bottom: 28px;
}

.hero-headline em {
  font-style: italic;
  color: var(--gold-light);
}

.hero-sub {
  font-size: clamp(1rem, 2vw, 1.1875rem);
  color: rgba(255, 255, 255, 0.8);
  max-width: 580px;
  margin: 0 auto 44px;
  line-height: 1.75;
}

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

.hero-scroll {
  position: absolute;
  bottom: 36px;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(255, 255, 255, 0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.2s ease;
  animation: bounce 2.4s ease-in-out infinite;
}

.hero-scroll:hover {
  color: rgba(255, 255, 255, 0.85);
}

.hero-scroll svg {
  width: 38px;
  height: 38px;
}

@keyframes bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50%       { transform: translateX(-50%) translateY(10px); }
}

/* =============================================
   ABOUT
   ============================================= */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
}

.about-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 44px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
  transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.about-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-5px);
}

.about-icon {
  width: 54px;
  height: 54px;
  background: rgba(42, 140, 140, 0.1);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
  color: var(--teal);
  border: 1px solid rgba(42, 140, 140, 0.15);
}

.about-icon svg {
  width: 26px;
  height: 26px;
}

.about-card h3 {
  font-family: var(--font-heading);
  font-size: 1.4375rem;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 18px;
  line-height: 1.3;
}

.about-card p {
  font-size: 0.9375rem;
  color: var(--ink-light);
  line-height: 1.75;
  margin-bottom: 14px;
}

.about-card .link-arrow {
  margin-top: 10px;
}

/* =============================================
   CARDS (shared)
   ============================================= */
.card-grid {
  display: grid;
  gap: 28px;
}

.articles-grid {
  grid-template-columns: repeat(3, 1fr);
}

.card {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
  transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-5px);
}

.card-img-wrap {
  position: relative;
  overflow: hidden;
  height: 224px;
}

.card-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.55s ease;
}

.card:hover .card-img-wrap img {
  transform: scale(1.06);
}

.tag {
  position: absolute;
  top: 14px;
  left: 14px;
  background: var(--gold);
  color: var(--white);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  padding: 4px 10px;
  border-radius: 4px;
  text-transform: uppercase;
}

.card-body {
  padding: 26px 30px 30px;
}

.card-body h3 {
  font-family: var(--font-heading);
  font-size: 1.1875rem;
  font-weight: 600;
  color: var(--ink);
  line-height: 1.35;
  margin-bottom: 12px;
}

.card-body h4 {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.35;
  margin-bottom: 10px;
}

.card-body p {
  font-size: 0.9rem;
  color: var(--ink-light);
  line-height: 1.7;
  margin-bottom: 18px;
}

.card-meta {
  display: flex;
  gap: 18px;
  font-size: 0.8rem;
  color: var(--ink-light);
  margin-bottom: 18px;
  padding-top: 14px;
  border-top: 1px solid var(--border);
}

/* =============================================
   NEWS TIMELINE
   ============================================= */
.timeline {
  position: relative;
  max-width: 840px;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 56px;
  top: 12px;
  bottom: 12px;
  width: 2px;
  background: linear-gradient(to bottom, var(--teal), transparent);
  border-radius: 2px;
}

.timeline-item {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 36px;
  margin-bottom: 32px;
  position: relative;
  align-items: start;
}

.timeline-item:last-child {
  margin-bottom: 0;
}

.timeline-date {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--white);
  background: var(--teal);
  padding: 8px 6px;
  border-radius: var(--radius);
  text-align: center;
  position: relative;
  z-index: 1;
  line-height: 1.35;
  letter-spacing: 0.02em;
}

.timeline-content {
  background: var(--white);
  padding: 24px 30px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
  transition: box-shadow 0.3s ease;
}

.timeline-content:hover {
  box-shadow: var(--shadow-md);
}

.timeline-content h4 {
  font-family: var(--font-heading);
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 10px;
  line-height: 1.35;
}

.timeline-content p {
  font-size: 0.9rem;
  color: var(--ink-light);
  line-height: 1.7;
  margin-bottom: 14px;
}

.timeline-content p:last-child {
  margin-bottom: 0;
}

/* =============================================
   BOOKS
   ============================================= */
.books-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.book-card {
  display: flex;
  flex-direction: column;
}

.book-cover {
  overflow: hidden;
  border-radius: var(--radius) var(--radius) 0 0;
  height: 240px;
}

.book-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.55s ease;
}

.book-card:hover .book-cover img {
  transform: scale(1.06);
}

.book-card .card-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  border-top: 3px solid var(--gold);
  padding: 20px 22px 26px;
}

.book-card .card-body p {
  flex: 1;
  font-size: 0.875rem;
}

.book-card .card-body .link-arrow {
  margin-top: 16px;
}

/* =============================================
   NEWSLETTERS
   ============================================= */
.newsletters-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.newsletter-card {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--radius-lg);
  padding: 28px 26px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  transition: background 0.25s ease, transform 0.25s ease;
}

.newsletter-card:hover {
  background: rgba(255, 255, 255, 0.14);
  transform: translateY(-3px);
}

.nl-issue {
  font-family: var(--font-heading);
  font-size: 1.625rem;
  font-weight: 700;
  color: var(--gold-light);
  line-height: 1;
}

.nl-body {
  flex: 1;
}

.nl-body h4 {
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--white);
  line-height: 1.45;
  margin-bottom: 8px;
}

.nl-date {
  font-size: 0.8125rem;
  color: rgba(255, 255, 255, 0.5);
}

.nl-excerpt {
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.65);
  line-height: 1.6;
  margin-top: 8px;
}

/* =============================================
   CONTACT
   ============================================= */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.25fr;
  gap: 72px;
  align-items: start;
}

.contact-info h3 {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 18px;
  line-height: 1.3;
}

.contact-info > p {
  font-size: 0.9375rem;
  color: var(--ink-light);
  line-height: 1.75;
  margin-bottom: 36px;
}

.contact-list {
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.contact-list li {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  font-size: 0.9375rem;
  color: var(--ink-light);
}

.contact-list li svg {
  width: 20px;
  height: 20px;
  color: var(--teal);
  flex-shrink: 0;
  margin-top: 2px;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 22px;
  background: var(--white);
  padding: 44px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border);
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.form-group label {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--ink);
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 0.9375rem;
  color: var(--ink);
  background: var(--cream);
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
  resize: vertical;
  outline: none;
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(42, 140, 140, 0.13);
  background: var(--white);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: #9BAEAE;
}

/* =============================================
   FOOTER
   ============================================= */
footer {
  background: var(--ink);
  color: rgba(255, 255, 255, 0.7);
}

.footer-inner {
  display: grid;
  grid-template-columns: 1.4fr 2fr;
  gap: 72px;
  padding-top: 72px;
  padding-bottom: 56px;
  align-items: start;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.footer-logo {
  height: 68px;
  width: 68px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(255, 255, 255, 0.15);
}

.footer-brand p {
  font-size: 0.9rem;
  line-height: 1.75;
  max-width: 260px;
}

.footer-links {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 36px;
}

.footer-links h5 {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--white);
  margin-bottom: 18px;
}

.footer-links li + li {
  margin-top: 12px;
}

.footer-links a {
  font-size: 0.875rem;
  transition: color 0.2s ease;
}

.footer-links a:hover {
  color: var(--teal-light);
}

.footer-bar {
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  padding: 22px 0;
}

.footer-bar p {
  font-size: 0.8125rem;
  text-align: center;
  color: rgba(255, 255, 255, 0.35);
}

/* =============================================
   RESPONSIVE — TABLET (≤ 1024px)
   ============================================= */
@media (max-width: 1024px) {
  .articles-grid {
    grid-template-columns: 1fr 1fr;
  }

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

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

  .footer-inner {
    grid-template-columns: 1fr;
    gap: 48px;
  }
}

/* =============================================
   RESPONSIVE — MOBILE (≤ 768px)
   ============================================= */
@media (max-width: 768px) {
  .section {
    padding: 68px 0;
  }

  /* Nav */
  .nav-toggle {
    display: flex;
  }

  .nav-title {
    font-size: 0.9375rem;
  }

  .nav-links {
    position: fixed;
    top: var(--nav-height);
    left: 0;
    right: 0;
    background: var(--white);
    flex-direction: column;
    align-items: stretch;
    padding: 12px 20px 24px;
    gap: 2px;
    box-shadow: var(--shadow-lg);
    border-top: 1px solid var(--border);
    transform: translateY(-110%);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.3s ease, opacity 0.3s ease;
  }

  .nav-links.open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .nav-links a {
    padding: 12px 16px;
    border-radius: var(--radius);
  }

  .nav-links a.nav-cta {
    margin-left: 0;
    margin-top: 8px;
    text-align: center;
  }

  /* About */
  .about-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .about-card {
    padding: 32px;
  }

  /* Articles */
  .articles-grid {
    grid-template-columns: 1fr;
  }

  /* Timeline */
  .timeline::before {
    display: none;
  }

  .timeline-item {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .timeline-date {
    width: fit-content;
    display: inline-block;
    padding: 6px 14px;
    text-align: left;
    line-height: 1.4;
  }

  /* Books */
  .books-grid {
    grid-template-columns: 1fr 1fr;
    gap: 20px;
  }

  /* Newsletters */
  .newsletters-grid {
    grid-template-columns: 1fr;
  }

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

  .contact-form {
    padding: 28px 24px;
  }

  /* Footer */
  .footer-links {
    grid-template-columns: 1fr 1fr;
  }
}

/* =============================================
   RESPONSIVE — SMALL MOBILE (≤ 480px)
   ============================================= */
@media (max-width: 480px) {
  .nav-title {
    display: none;
  }

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

  .hero-actions .btn {
    width: 100%;
    max-width: 280px;
  }

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

  .footer-links {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .section-title {
    margin-bottom: 36px;
  }
}

/* =============================================
   INNER PAGE HERO
   ============================================= */
.page-hero {
  padding: calc(var(--nav-height) + 56px) 0 56px;
}

.page-hero-title {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  color: var(--ink);
  line-height: 1.2;
  margin-bottom: 16px;
}

.page-hero-sub {
  font-size: 1.0625rem;
  color: var(--ink-light);
  max-width: 600px;
  line-height: 1.75;
  margin-top: 0;
}

/* =============================================
   CATEGORY FILTERS
   ============================================= */
.category-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 28px;
}

.cat-btn {
  display: inline-block;
  padding: 7px 16px;
  border-radius: 20px;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--ink-light);
  background: var(--white);
  border: 1.5px solid var(--border);
  transition: all 0.2s ease;
  cursor: pointer;
}

.cat-btn:hover,
.cat-btn.active {
  background: var(--teal);
  border-color: var(--teal);
  color: var(--white);
}

/* =============================================
   PAGINATION
   ============================================= */
.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  margin-top: 52px;
}

.page-btn {
  display: inline-flex;
  align-items: center;
  padding: 10px 22px;
  border-radius: var(--radius);
  background: var(--white);
  border: 1.5px solid var(--border);
  color: var(--teal);
  font-weight: 500;
  font-size: 0.9rem;
  transition: all 0.2s ease;
}

.page-btn:hover {
  background: var(--teal);
  border-color: var(--teal);
  color: var(--white);
}

.page-info {
  font-size: 0.875rem;
  color: var(--ink-light);
}

/* =============================================
   EMPTY STATE
   ============================================= */
.empty-page-state {
  text-align: center;
  padding: 80px 0;
  color: var(--ink-light);
  font-size: 1.0625rem;
}

/* =============================================
   ARTICLE PAGE
   ============================================= */
.article-page {
  padding-top: var(--nav-height);
}

.article-header {
  padding: 56px 0 48px;
}

.article-header-inner {
  max-width: 820px;
}

.article-category {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 16px;
}

.article-title {
  font-family: var(--font-heading);
  font-size: clamp(1.875rem, 4vw, 3rem);
  font-weight: 700;
  color: var(--ink);
  line-height: 1.2;
  margin-bottom: 20px;
}

.article-excerpt {
  font-size: 1.125rem;
  color: var(--ink-light);
  line-height: 1.7;
  margin-bottom: 24px;
}

.article-byline {
  display: flex;
  gap: 10px;
  align-items: center;
  font-size: 0.875rem;
  color: var(--ink-light);
}

.article-hero-img {
  max-height: 480px;
  overflow: hidden;
}

.article-hero-img img {
  width: 100%;
  height: 480px;
  object-fit: cover;
}

.article-body-wrap {
  max-width: 820px;
  padding: 60px 0 80px;
}

.article-body {
  font-size: 1.0625rem;
  line-height: 1.8;
  color: var(--ink);
}

.article-body h2,
.article-body h3 {
  font-family: var(--font-heading);
  color: var(--ink);
  margin: 2em 0 0.75em;
  line-height: 1.3;
}

.article-body h2 { font-size: 1.625rem; }
.article-body h3 { font-size: 1.3125rem; }

.article-body p  { margin-bottom: 1.5em; }

.article-body a  { color: var(--teal); text-decoration: underline; }

.article-body blockquote {
  border-left: 4px solid var(--gold);
  padding: 12px 24px;
  margin: 2em 0;
  font-style: italic;
  color: var(--ink-light);
  background: var(--cream);
  border-radius: 0 var(--radius) var(--radius) 0;
}

.article-body img {
  max-width: 100%;
  border-radius: var(--radius);
  margin: 1.5em 0;
}

.article-body ul,
.article-body ol {
  padding-left: 1.5em;
  margin-bottom: 1.5em;
}

.article-body li { margin-bottom: 0.5em; }

/* =============================================
   NEWSLETTER VIEW (mirrors the emailed layout)
   ============================================= */
.nl-view-wrap {
  max-width: 680px;
  margin: 0 auto;
  padding: 40px 0;
}

.nl-view-card {
  background: var(--cream);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

.nl-view-header {
  background: var(--teal-bg);
  padding: 28px 32px;
  text-align: center;
}

.nl-view-logo {
  height: 48px;
  width: 48px;
  border-radius: 50%;
  object-fit: cover;
}

.nl-view-org {
  color: var(--cream);
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 700;
  margin-top: 8px;
}

.nl-view-body {
  padding: 32px;
}

.nl-view-issue {
  font-size: 0.8125rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 700;
  margin-bottom: 8px;
}

.nl-view-title {
  font-family: var(--font-heading);
  font-size: 1.75rem;
  color: var(--ink);
  margin: 0 0 20px;
  line-height: 1.3;
}

.nl-view-footer {
  background: var(--cream-dark);
  padding: 20px 32px;
  font-size: 0.8125rem;
  color: var(--ink-light);
  text-align: center;
  border-top: 1px solid var(--border);
}

.nl-view-footer p {
  margin: 0 0 8px;
}

.nl-view-footer p:last-child { margin-bottom: 0; }

.nl-view-footer a {
  color: var(--teal);
  text-decoration: none;
}

@media (max-width: 768px) {
  .nl-view-body, .nl-view-header, .nl-view-footer { padding-left: 20px; padding-right: 20px; }
  .nl-view-title { font-size: 1.4rem; }
}

.article-footer {
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
}

/* =============================================
   EVENTS PAGE
   ============================================= */
.events-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
  max-width: 860px;
}

.event-card {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 28px;
  align-items: start;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px 28px;
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.event-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}

.event-card--past {
  opacity: 0.72;
}

.event-date-block {
  background: var(--teal);
  color: var(--white);
  border-radius: var(--radius);
  text-align: center;
  padding: 10px 6px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
}

.event-date-block--past {
  background: var(--ink-light);
}

.event-day   { font-size: 1.625rem; font-weight: 700; line-height: 1; }
.event-month { font-size: 0.75rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.06em; margin-top: 4px; }
.event-year  { font-size: 0.6875rem; color: rgba(255,255,255,0.7); margin-top: 2px; }

.event-details h3 {
  font-family: var(--font-heading);
  font-size: 1.1875rem;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 8px;
  line-height: 1.35;
}

.event-details p {
  font-size: 0.9rem;
  color: var(--ink-light);
  line-height: 1.65;
  margin-bottom: 8px;
}

.event-location {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 0.875rem !important;
  color: var(--teal) !important;
  font-weight: 500;
}

.event-time {
  font-size: 0.875rem !important;
  color: var(--ink) !important;
}

/* =============================================
   NEWSLETTER FEATURED CARD (home page)
   ============================================= */
.newsletter-featured {
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: var(--radius-lg);
  padding: 32px 36px;
  margin-bottom: 32px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 680px;
}

.nl-featured-meta {
  display: flex;
  align-items: center;
  gap: 14px;
}

.nl-featured-label {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  background: var(--gold);
  color: var(--white);
  padding: 3px 10px;
  border-radius: 20px;
}

.nl-featured-issue {
  font-family: var(--font-heading);
  font-size: 1.375rem;
  font-weight: 700;
  color: var(--gold-light);
}

.nl-featured-title {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--white);
  line-height: 1.35;
}

.nl-featured-date {
  font-size: 0.875rem;
  color: rgba(255,255,255,0.6);
}

.nl-featured-excerpt {
  font-size: 1rem;
  color: rgba(255,255,255,0.75);
  line-height: 1.7;
  margin-top: 4px;
  margin-bottom: 8px;
}

/* =============================================
   CONTACT SUCCESS + MAP PLACEHOLDER
   ============================================= */
.contact-success {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 48px 40px;
  text-align: center;
  box-shadow: var(--shadow-md);
}

.contact-success svg {
  color: var(--teal);
  margin-bottom: 16px;
}

.contact-success h3 {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 12px;
}

.contact-success p {
  color: var(--ink-light);
}

.contact-map-placeholder {
  display: flex;
  align-items: stretch;
}

.map-placeholder {
  flex: 1;
  background: var(--cream-dark);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 60px 40px;
  min-height: 280px;
  color: var(--ink-light);
}

.map-placeholder svg {
  width: 48px;
  height: 48px;
  color: var(--teal);
  opacity: 0.6;
}

.map-placeholder p {
  font-family: var(--font-heading);
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--ink);
}

.map-placeholder span {
  font-size: 0.8125rem;
  color: var(--ink-light);
}

/* =============================================
   RESPONSIVE — INNER PAGES
   ============================================= */
@media (max-width: 768px) {
  .event-card {
    grid-template-columns: 60px 1fr;
    gap: 16px;
    padding: 18px 20px;
  }

  .article-hero-img img { height: 260px; }

  .article-body-wrap { padding: 40px 0 60px; }

  .newsletter-featured { padding: 24px; }
}

@media (max-width: 480px) {
  .event-card { grid-template-columns: 1fr; }
  .event-date-block {
    flex-direction: row;
    gap: 8px;
    padding: 8px 12px;
    width: fit-content;
    border-radius: 20px;
  }
  .event-day   { font-size: 1rem; }
  .event-month { margin-top: 0; }
  .event-year  { display: none; }
}

/* =============================================
   NEWSLETTER ARCHIVE PAGE
   ============================================= */
.page-hero.bg-teal-dark-hero,
.bg-teal-dark-hero {
  background: var(--teal-bg);
  padding: calc(var(--nav-height) + 56px) 0 56px;
}

.page-hero-title.light  { color: var(--white); }
.page-hero-sub.light    { color: rgba(255,255,255,0.75); }

/* Featured issue on archive page */
.nl-archive-featured {
  display: flex;
  flex-direction: column;
  gap: 14px;
  background: var(--cream);
  border: 1px solid var(--border);
  border-left: 4px solid var(--teal);
  border-radius: var(--radius-lg);
  padding: 36px 40px;
  margin-bottom: 0;
}

.nl-archive-featured__meta {
  display: flex;
  align-items: center;
  gap: 14px;
}

.nl-archive-featured__num {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--teal);
}

.nl-archive-featured__title {
  font-family: var(--font-heading);
  font-size: clamp(1.25rem, 2.5vw, 1.75rem);
  font-weight: 700;
  color: var(--ink);
  line-height: 1.3;
}

.nl-archive-featured__date {
  font-size: 0.875rem;
  color: var(--ink-light);
}

.nl-archive-featured__excerpt {
  font-size: 1rem;
  color: var(--ink-light);
  line-height: 1.7;
  margin-top: 4px;
  margin-bottom: 8px;
  max-width: 60ch;
}

/* Archive grid */
.nl-archive-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.nl-archive-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px 26px;
  transition: box-shadow 0.25s ease, transform 0.25s ease, border-color 0.25s ease;
  text-decoration: none;
  color: inherit;
}

.nl-archive-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
  border-color: var(--teal);
}

.nl-archive-card__issue {
  font-family: var(--font-heading);
  font-size: 1.375rem;
  font-weight: 700;
  color: var(--gold);
  line-height: 1;
}

.nl-archive-card__body {
  flex: 1;
}

.nl-archive-card__body h3 {
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--ink);
  line-height: 1.45;
  margin-bottom: 6px;
}

.nl-archive-card__excerpt {
  font-size: 0.875rem;
  color: var(--ink-light);
  line-height: 1.6;
  margin-top: 6px;
}

.nl-archive-card__date {
  font-size: 0.8125rem;
  color: var(--ink-light);
}

.nl-archive-card__cta {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--teal);
  margin-top: auto;
}

/* =============================================
   NEWSLETTER SIGNUP SECTION (archive page)
   ============================================= */
.nl-signup-section {
  background: var(--teal-bg);
}

.nl-signup-box {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 64px;
  align-items: center;
}

.nl-signup-text .section-label { color: var(--gold-light); }

.nl-signup-text h2 {
  font-family: var(--font-heading);
  font-size: clamp(1.5rem, 2.5vw, 2rem);
  font-weight: 700;
  color: var(--white);
  line-height: 1.2;
  margin-bottom: 16px;
}

.nl-signup-text p {
  font-size: 1rem;
  color: rgba(255,255,255,0.75);
  line-height: 1.75;
}

.nl-signup-form-wrap {
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: var(--radius-lg);
  padding: 36px;
}

.nl-signup-form { display: flex; flex-direction: column; gap: 20px; }
.nl-signup-form[hidden] { display: none; }

.nl-signup-fields {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.nl-field-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.nl-field-group label {
  font-size: 0.875rem;
  font-weight: 500;
  color: rgba(255,255,255,0.85);
}

.nl-optional { color: rgba(255,255,255,0.45); font-size: 0.8rem; font-weight: 400; }

.nl-field-group input {
  padding: 11px 14px;
  border: 1.5px solid rgba(255,255,255,0.25);
  border-radius: var(--radius);
  background: rgba(255,255,255,0.08);
  color: var(--white);
  font-family: var(--font-body);
  font-size: 0.9375rem;
  transition: border-color 0.2s, background 0.2s;
  outline: none;
}

.nl-field-group input::placeholder { color: rgba(255,255,255,0.35); }

.nl-field-group input:focus {
  border-color: rgba(255,255,255,0.6);
  background: rgba(255,255,255,0.12);
}

.nl-signup-btn { align-self: flex-start; }

.nl-signup-notice {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.45);
  margin-top: -4px;
}

.nl-signup-error {
  font-size: 0.875rem;
  color: #FCA5A5;
  margin-top: 4px;
}

.nl-signup-success {
  text-align: center;
  padding: 20px 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}
.nl-signup-success[hidden] { display: none; }

.nl-signup-success svg {
  width: 48px;
  height: 48px;
  color: #6EE7B7;
}

.nl-signup-success h3 {
  font-family: var(--font-heading);
  font-size: 1.375rem;
  font-weight: 700;
  color: var(--white);
}

.nl-signup-success p {
  font-size: 0.9375rem;
  color: rgba(255,255,255,0.75);
}

/* =============================================
   FOOTER SIGNUP STRIP
   ============================================= */
.footer-signup-strip {
  background: var(--teal-dark);
  padding: 32px 0;
}

.footer-signup-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
}

.footer-signup-text h4 {
  font-family: var(--font-heading);
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 4px;
}

.footer-signup-text p {
  font-size: 0.875rem;
  color: rgba(255,255,255,0.7);
}

.footer-signup-form { flex-shrink: 0; }

.footer-signup-fields {
  display: flex;
  gap: 0;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1.5px solid rgba(255,255,255,0.3);
}

.footer-signup-fields input[type="email"] {
  flex: 1;
  padding: 11px 16px;
  background: rgba(255,255,255,0.1);
  border: none;
  outline: none;
  font-family: var(--font-body);
  font-size: 0.9rem;
  color: var(--white);
  min-width: 220px;
}

.footer-signup-fields input[type="email"]::placeholder {
  color: rgba(255,255,255,0.45);
}

.footer-signup-fields input[type="email"]:focus {
  background: rgba(255,255,255,0.15);
}

.footer-signup-fields button {
  padding: 11px 20px;
  background: var(--white);
  color: var(--teal-dark);
  border: none;
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.2s ease;
}

.footer-signup-fields button:hover { background: var(--cream); }
.footer-signup-fields button:disabled { opacity: 0.6; cursor: not-allowed; }

.footer-signup-msg {
  font-size: 0.8125rem;
  margin-top: 8px;
}

.footer-signup-msg--ok  { color: #6EE7B7; }
.footer-signup-msg--err { color: #FCA5A5; }

/* =============================================
   RESPONSIVE — NEWSLETTER + SIGNUP
   ============================================= */
@media (max-width: 1024px) {
  .nl-archive-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  .nl-archive-grid   { grid-template-columns: 1fr; }
  .nl-signup-box     { grid-template-columns: 1fr; gap: 36px; }
  .nl-signup-form-wrap { padding: 24px; }
  .nl-archive-featured { padding: 24px 24px; }

  .footer-signup-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
  }

  .footer-signup-fields { width: 100%; }
  .footer-signup-fields input[type="email"] { min-width: 0; }
}

/* =============================================
   ABOUT PAGE
   ============================================= */
.about-content-grid {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 64px;
  align-items: start;
}
.about-content-grid p {
  color: var(--ink-light);
  line-height: 1.8;
  margin-bottom: 16px;
}

.img-figure {
  margin: 28px 0;
  display: inline-block;
  width: 100%;
}
.img-figure img {
  width: 100%;
  height: auto;
  border-radius: 10px;
  border: 1.5px solid var(--border);
  display: block;
}
.img-figure figcaption {
  margin-top: 10px;
  font-size: 0.8125rem;
  color: var(--ink-light);
  line-height: 1.6;
  font-style: italic;
  text-align: center;
  padding: 0 8px;
}

.about-story-aside {
  display: flex;
  flex-direction: column;
  gap: 16px;
  position: sticky;
  top: calc(var(--nav-height) + 24px);
}
.about-fact-card {
  background: var(--cream);
  border-radius: var(--radius);
  padding: 20px 22px;
  border-left: 3px solid var(--teal);
}
.about-fact-year {
  display: block;
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--teal);
  margin-bottom: 6px;
}
.about-fact-card p {
  margin: 0;
  font-size: 0.875rem;
  color: var(--ink-light);
  line-height: 1.6;
}

.section-intro {
  color: var(--ink-light);
  font-size: 1.0625rem;
  max-width: 640px;
  line-height: 1.75;
  margin-bottom: 48px;
}

/* Aims grid */
.aims-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.aim-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 28px;
  border: 1px solid var(--border);
}
.aim-number {
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 700;
  color: var(--cream-dark);
  margin-bottom: 12px;
  line-height: 1;
}
.aim-card h3 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 10px;
}
.aim-card p {
  font-size: 0.9rem;
  color: var(--ink-light);
  line-height: 1.7;
  margin: 0;
}

/* Membership grid */
.membership-grid {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 64px;
  align-items: start;
}

/* Membership type radio options */
.membership-options {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.membership-option {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 18px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
}
.membership-option:hover { border-color: var(--teal); background: rgba(42,140,140,0.04); }
.membership-option input[type="radio"] { accent-color: var(--teal); width: 16px; height: 16px; flex-shrink: 0; }
.membership-option input[type="radio"]:checked + span { color: var(--ink); }
.membership-option:has(input:checked) { border-color: var(--teal); background: rgba(42,140,140,0.06); }
.membership-option span { display: flex; flex-direction: column; gap: 2px; }
.membership-option strong { font-size: 0.9375rem; color: var(--ink); }
.membership-option em { font-style: normal; font-size: 0.8125rem; color: var(--teal); font-weight: 500; }
.membership-option small { font-size: 0.75rem; color: var(--ink-light); }

/* Form row (two columns) */
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

/* Payment card */
.membership-payment {
  position: sticky;
  top: calc(var(--nav-height) + 24px);
}
.membership-payment h3 {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 12px;
  color: var(--ink);
}
.membership-payment > p {
  font-size: 0.9rem;
  color: var(--ink-light);
  line-height: 1.7;
  margin-bottom: 20px;
}
.payment-detail-card {
  background: var(--cream);
  border-radius: var(--radius);
  padding: 20px 22px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.payment-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.875rem;
  gap: 12px;
}
.payment-row span { color: var(--ink-light); }
.payment-row strong { color: var(--ink); text-align: right; }

@media (max-width: 1024px) {
  .about-content-grid  { grid-template-columns: 1fr; gap: 40px; }
  .about-story-aside   { position: static; flex-direction: row; flex-wrap: wrap; }
  .about-fact-card     { flex: 1; min-width: 180px; }
  .aims-grid           { grid-template-columns: repeat(2, 1fr); }
  .membership-grid     { grid-template-columns: 1fr; gap: 40px; }
  .membership-payment  { position: static; }
}
@media (max-width: 768px) {
  .aims-grid  { grid-template-columns: 1fr; }
  .form-row   { grid-template-columns: 1fr; }
  .about-story-aside { flex-direction: column; }
}

/* =============================================
   NAV SEARCH
   ============================================= */
.nav-search {
  display: flex;
  align-items: center;
  gap: 0;
  margin-left: 12px;
  position: relative;
  z-index: 1001;
}

.nav-search-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--ink-light);
  padding: 8px;
  border-radius: var(--radius);
  transition: color 0.2s, background 0.2s;
  flex-shrink: 0;
}
.nav-search-toggle:hover { color: var(--teal); background: rgba(42,140,140,0.08); }

.nav-search-form {
  display: flex;
  align-items: center;
  overflow: hidden;
  max-width: 0;
  opacity: 0;
  transition: max-width 0.35s ease, opacity 0.25s ease;
  pointer-events: none;
}
.nav-search.open .nav-search-form {
  max-width: 240px;
  opacity: 1;
  pointer-events: auto;
}
.nav-search-form input[type="search"] {
  border: 1.5px solid var(--border);
  border-right: none;
  border-radius: var(--radius) 0 0 var(--radius);
  padding: 7px 11px;
  font-size: 0.875rem;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--white);
  width: 190px;
  outline: none;
}
.nav-search-form input[type="search"]:focus { border-color: var(--teal); }
.nav-search-form button[type="submit"] {
  background: var(--teal);
  border: 1.5px solid var(--teal);
  border-radius: 0 var(--radius) var(--radius) 0;
  color: var(--white);
  padding: 7px 10px;
  cursor: pointer;
  display: flex;
  align-items: center;
  transition: background 0.2s;
  flex-shrink: 0;
}
.nav-search-form button[type="submit"]:hover { background: var(--teal-dark); border-color: var(--teal-dark); }

/* Mobile search row inside hamburger menu */
.nav-search-mobile { display: none; }
.nav-search-mobile form {
  display: flex;
  padding: 4px 0 8px;
}
.nav-search-mobile input[type="search"] {
  flex: 1;
  border: 1.5px solid var(--border);
  border-right: none;
  border-radius: var(--radius) 0 0 var(--radius);
  padding: 10px 14px;
  font-size: 0.875rem;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--white);
  outline: none;
}
.nav-search-mobile input[type="search"]:focus { border-color: var(--teal); }
.nav-search-mobile button[type="submit"] {
  background: var(--teal);
  color: var(--white);
  border: 1.5px solid var(--teal);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 10px 16px;
  font-size: 0.875rem;
  font-family: var(--font-body);
  cursor: pointer;
  white-space: nowrap;
}

@media (max-width: 768px) {
  .nav-search        { display: none; }
  .nav-search-mobile { display: block; }
}

/* =============================================
   SEARCH PAGE
   ============================================= */
.search-page-form {
  display: flex;
  max-width: 580px;
  margin-top: 28px;
}
.search-page-form input[type="search"] {
  flex: 1;
  border: 2px solid var(--border);
  border-right: none;
  border-radius: var(--radius) 0 0 var(--radius);
  padding: 13px 18px;
  font-size: 1rem;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--white);
  outline: none;
}
.search-page-form input[type="search"]:focus { border-color: var(--teal); }
.search-page-form .btn {
  border-radius: 0 var(--radius) var(--radius) 0;
  white-space: nowrap;
}

.search-summary {
  color: var(--ink-light);
  margin-bottom: 28px;
  font-size: 0.9375rem;
}
.search-summary strong { color: var(--ink); }

/* Tab bar */
.search-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  border-bottom: 2px solid var(--border);
  margin-bottom: 40px;
}
.search-tab {
  background: none;
  border: none;
  padding: 10px 16px;
  font-size: 0.875rem;
  font-weight: 500;
  font-family: var(--font-body);
  color: var(--ink-light);
  cursor: pointer;
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
  border-radius: var(--radius) var(--radius) 0 0;
  transition: color 0.2s, border-color 0.2s;
  display: inline-flex;
  align-items: center;
  gap: 7px;
}
.search-tab:hover { color: var(--teal); }
.search-tab.active {
  color: var(--teal);
  border-bottom-color: var(--teal);
}

.tab-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 20px;
  height: 20px;
  padding: 0 6px;
  background: var(--cream-dark);
  color: var(--ink-light);
  border-radius: 10px;
  font-size: 0.75rem;
  font-weight: 600;
  transition: background 0.2s, color 0.2s;
}
.search-tab.active .tab-badge {
  background: rgba(42,140,140,0.12);
  color: var(--teal);
}

/* Panels */
.search-panel         { display: none; }
.search-panel.active  { display: block; }

/* Section heading inside "All" tab */
.search-section-heading {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--ink);
  margin: 48px 0 24px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
}
.search-section-heading:first-child { margin-top: 0; }

/* Highlight mark */
mark {
  background: rgba(200, 150, 62, 0.2);
  color: inherit;
  border-radius: 2px;
  padding: 0 2px;
}

/* View all link below truncated All-tab results */
.search-view-all {
  display: inline-block;
  margin-top: 20px;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--teal);
  text-decoration: none;
}
.search-view-all:hover { color: var(--teal-dark); text-decoration: underline; }

/* Compact event rows in All tab */
.search-events-list { margin-bottom: 8px; }
.search-event-row {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 20px;
  align-items: start;
  padding: 16px 0;
  border-bottom: 1px solid var(--border);
}
.search-event-row:last-child { border-bottom: none; }

/* Newsletter rows */
.search-nl-list { margin-bottom: 8px; }
.search-nl-row {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
  text-decoration: none;
  color: var(--ink);
  transition: color 0.2s;
}
.search-nl-row:last-child { border-bottom: none; }
.search-nl-row:hover { color: var(--teal); }
.search-nl-num {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  white-space: nowrap;
  min-width: 48px;
}

/* ─────────────────────────────────────────────────────────
   Nav dropdown
───────────────────────────────────────────────────────── */
.nav-dropdown {
  position: relative;
}

.nav-dropdown-caret {
  font-size: 0.6em;
  vertical-align: middle;
  margin-left: 2px;
  opacity: 0.6;
}

.nav-dropdown-menu {
  display: none;
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  min-width: 200px;
  padding: 6px 0;
  list-style: none;
  margin: 0;
  z-index: 200;
}

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

.nav-dropdown-menu li a {
  display: block;
  padding: 10px 18px;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--ink-light);
  border-radius: 0;
  white-space: nowrap;
}

.nav-dropdown-menu li a:hover {
  color: var(--teal);
  background: rgba(42, 140, 140, 0.07);
}

/* Active state on the dropdown parent */
.nav-dropdown.active > a {
  color: var(--teal);
  background: rgba(42, 140, 140, 0.08);
}

/* Mobile: flatten dropdown into list items */
@media (max-width: 768px) {
  .nav-dropdown-menu {
    display: block;
    position: static;
    box-shadow: none;
    border: none;
    border-left: 3px solid var(--teal);
    border-radius: 0;
    padding: 0 0 4px 0;
    margin: 2px 0 4px 16px;
    background: transparent;
  }

  .nav-dropdown-menu li a {
    padding: 8px 12px;
    font-size: 0.85rem;
    color: var(--ink-light);
  }

  .nav-dropdown-caret { display: none; }
}

/* ─────────────────────────────────────────────────────────
   Three Ages visual (about.php)
───────────────────────────────────────────────────────── */
.three-ages-grid {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr;
  align-items: center;
  gap: 16px;
  margin: 40px 0 32px;
}

.age-step {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px 24px;
  text-align: center;
}

.age-step--highlight {
  background: var(--teal-bg);
  border-color: var(--teal-bg);
  color: var(--white);
}

.age-step--highlight h3,
.age-step--highlight p {
  color: var(--white);
}

.age-step--highlight .age-number {
  background: var(--gold);
  color: var(--white);
}

.age-step--arrow {
  background: none;
  border: none;
  padding: 0;
  color: var(--teal);
  display: flex;
  justify-content: center;
}

.age-number {
  width: 48px;
  height: 48px;
  background: var(--teal);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  font-weight: 700;
  margin: 0 auto 16px;
}

.age-step h3 {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  margin-bottom: 8px;
  color: var(--ink);
}

.age-step p {
  font-size: 0.9rem;
  color: var(--ink-light);
  line-height: 1.6;
  margin: 0;
}

.section-note {
  font-size: 0.95rem;
  color: var(--ink-light);
  font-style: italic;
  text-align: center;
  margin-top: 0;
  padding: 0 40px;
}

@media (max-width: 768px) {
  .three-ages-grid {
    grid-template-columns: 1fr;
  }

  .age-step--arrow {
    transform: rotate(90deg);
    justify-self: center;
  }
}

/* ─────────────────────────────────────────────────────────
   Mission callout (about-hhig.php)
───────────────────────────────────────────────────────── */
.mission-callout {
  display: flex;
  gap: 28px;
  align-items: flex-start;
  background: var(--white);
  border: 1px solid var(--border);
  border-left: 5px solid var(--gold);
  border-radius: var(--radius-lg);
  padding: 36px 40px;
  margin-top: 32px;
}

.mission-callout__icon {
  color: var(--gold);
  flex-shrink: 0;
  margin-top: 4px;
}

.mission-callout__text {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  line-height: 1.7;
  color: var(--ink);
  margin: 0;
  font-style: italic;
}

@media (max-width: 768px) {
  .mission-callout {
    flex-direction: column;
    padding: 28px 24px;
    gap: 16px;
  }

  .mission-callout__text {
    font-size: 1.05rem;
  }
}

/* ─────────────────────────────────────────────────────────
   Resources grid (about-hhig.php)
───────────────────────────────────────────────────────── */
.resources-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 40px;
}

.resource-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.resource-card__icon {
  color: var(--teal);
}

.resource-card h3 {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  color: var(--ink);
  margin: 0;
}

.resource-card p {
  font-size: 0.9rem;
  color: var(--ink-light);
  line-height: 1.65;
  margin: 0;
  flex: 1;
}

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

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

/* ─────────────────────────────────────────────────────────
   Membership indemnity box (about.php)
───────────────────────────────────────────────────────── */
.mem-indemnity {
  background: var(--cream);
  border: 1px solid var(--border);
  border-left: 4px solid var(--teal);
  border-radius: var(--radius);
  padding: 16px 20px;
  margin: 24px 0;
  font-size: 0.875rem;
  color: var(--ink-light);
  line-height: 1.65;
}

.mem-indemnity strong {
  display: block;
  margin-bottom: 6px;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--ink);
}

.mem-indemnity p { margin: 0; }

/* ─────────────────────────────────────────────────────────
   Library page (library.php)
───────────────────────────────────────────────────────── */
.lib-search-wrap {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 28px;
  flex-wrap: wrap;
}

.lib-search-field {
  position: relative;
  flex: 1;
  min-width: 240px;
}

.lib-search-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--ink-light);
  pointer-events: none;
}

#libSearch {
  width: 100%;
  padding: 12px 16px 12px 42px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 0.9375rem;
  font-family: var(--font-body);
  background: var(--white);
  color: var(--ink);
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}

#libSearch:focus {
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(42, 140, 140, 0.12);
}

.lib-result-count {
  font-size: 0.875rem;
  color: var(--ink-light);
  white-space: nowrap;
  margin: 0;
}

.lib-table-wrap {
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
}

.lib-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.875rem;
}

.lib-table thead th {
  background: var(--teal-bg);
  color: rgba(255,255,255,0.85);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  padding: 12px 14px;
  text-align: left;
  white-space: nowrap;
}

.lib-table tbody tr {
  border-bottom: 1px solid var(--border);
  transition: background 0.15s;
}

.lib-table tbody tr:last-child { border-bottom: none; }

.lib-table tbody tr:hover { background: rgba(42,140,140,0.04); }

.lib-table td {
  padding: 12px 14px;
  vertical-align: top;
  line-height: 1.5;
  color: var(--ink);
}

.lib-no {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--gold);
  white-space: nowrap;
  min-width: 52px;
}

.lib-author {
  font-weight: 500;
  min-width: 160px;
  color: var(--teal-dark);
}

.lib-title {
  min-width: 260px;
}

.lib-year {
  white-space: nowrap;
  color: var(--ink-light);
  min-width: 52px;
}

.lib-subject {
  font-size: 0.8125rem;
  color: var(--ink-light);
  min-width: 180px;
}

.lib-no-results {
  text-align: center;
  padding: 40px 20px;
  color: var(--ink-light);
  font-style: italic;
  background: var(--cream);
}

/* Hide cols on mobile */
@media (max-width: 768px) {
  .lib-th-subject, .lib-subject { display: none; }
  .lib-th-year,   .lib-year    { display: none; }
}

/* ── Pagination ─────────────────────────────────── */
.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-top: 40px;
  padding-top: 32px;
  border-top: 1px solid var(--cream-dark);
}

.pagination-btn {
  display: inline-block;
  padding: 8px 20px;
  border: 2px solid var(--teal);
  border-radius: 4px;
  color: var(--teal);
  font-size: 0.875rem;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.18s, color 0.18s;
}
.pagination-btn:hover {
  background: var(--teal);
  color: #fff;
}
.pagination-btn--disabled {
  border-color: #ccc;
  color: #aaa;
  cursor: default;
  pointer-events: none;
}
.pagination-info {
  font-size: 0.875rem;
  color: var(--ink-light);
}

/* ── Library section header (title + download button) ── */
.lib-section-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.lib-download-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  white-space: nowrap;
  flex-shrink: 0;
}

/* ── Library table — sortable column headers ── */
.lib-table th[data-col] {
  cursor: pointer;
  user-select: none;
  white-space: nowrap;
}
.lib-table th[data-col]:hover {
  background: #1a4f4f;
}
.lib-sort-icon {
  display: inline-block;
  margin-left: 5px;
  opacity: 0.35;
  font-style: normal;
  font-size: 0.7em;
  vertical-align: middle;
}
.lib-table th[aria-sort] .lib-sort-icon {
  opacity: 1;
}

/* ── Digital media ─────────────────────────────────────────── */
.media-subheading {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-heading);
  font-size: 1.25rem;
  color: var(--ink);
  margin: 0 0 28px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--cream-dark);
}
.media-subheading svg { color: var(--teal); flex-shrink: 0; }

/* DVD cover placeholder */
.media-cover-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--teal-bg);
  color: rgba(255,255,255,0.3);
}
.media-cover-placeholder--video { background: #111; }

/* YouTube video grid */
.media-video-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 24px;
}
.media-video-card {
  display: flex;
  flex-direction: column;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid var(--cream-dark);
  text-decoration: none;
  color: inherit;
  background: #fff;
  transition: box-shadow 0.2s, transform 0.2s;
}
.media-video-card:hover {
  box-shadow: 0 6px 24px rgba(0,0,0,0.12);
  transform: translateY(-2px);
}
.media-video-thumb {
  position: relative;
  aspect-ratio: 16/9;
  overflow: hidden;
  background: #000;
}
.media-video-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: opacity 0.2s;
}
.media-video-card:hover .media-video-thumb img { opacity: 0.85; }
.media-play-btn {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  background: rgba(0,0,0,0.25);
  transition: background 0.2s;
}
.media-play-btn svg {
  filter: drop-shadow(0 2px 6px rgba(0,0,0,0.5));
}
.media-video-card:hover .media-play-btn { background: rgba(220,38,38,0.65); }
.media-video-info {
  padding: 16px 18px 18px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1;
}
.media-video-info h4 {
  font-family: var(--font-heading);
  font-size: 1rem;
  color: var(--ink);
  margin: 0;
  line-height: 1.35;
}
.media-video-info p {
  font-size: 0.875rem;
  color: var(--ink-light, #4A6060);
  margin: 0;
}
.media-watch-link {
  margin-top: auto;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--teal);
  padding-top: 8px;
}
.media-video-category {
  display: inline-block;
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 6px;
}
.vid-filter-bar {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 28px;
  flex-wrap: wrap;
}
.vid-filter-bar .lib-search-field {
  flex: 1;
  min-width: 240px;
}
.vid-filter-bar #vidSearch {
  width: 100%;
  padding: 12px 16px 12px 42px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 0.9375rem;
  font-family: var(--font-body);
  background: var(--white);
  color: var(--ink);
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.vid-filter-bar #vidSearch:focus {
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(42, 140, 140, 0.12);
}
.vid-cat-select {
  height: 46px;
  padding: 0 36px 0 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--white) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%234A6060' stroke-width='2.5'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E") no-repeat right 12px center;
  -webkit-appearance: none;
  appearance: none;
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 0.9375rem;
  cursor: pointer;
  min-width: 220px;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.vid-cat-select:focus {
  outline: none;
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(42, 140, 140, 0.12);
}
@media (max-width: 768px) {
  .vid-filter-bar { gap: 12px; }
  .vid-cat-select { width: 100%; min-width: 0; }
}

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