:root {
  --ink: #1c2a22;
  --muted: #5f6f66;
  --paper: #f7f4ef;
  --panel: #ffffff;
  --accent: #1f6b4a;
  --accent-deep: #134832;
  --line: rgba(28, 42, 34, 0.12);
  --shadow: 0 18px 40px rgba(28, 42, 34, 0.08);
  --radius: 18px;
  --font-display: "Amiri", "Times New Roman", serif;
  --font-body: "Source Sans 3", "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  color: var(--ink);
  font-family: var(--font-body);
  background:
    radial-gradient(circle at top left, rgba(31, 107, 74, 0.10), transparent 32%),
    linear-gradient(180deg, #fbf8f3 0%, var(--paper) 45%, #f3efe8 100%);
  min-height: 100%;
}

a { color: var(--accent-deep); text-decoration: none; }
a:hover { color: var(--accent); }

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(10px);
  background: rgba(251, 248, 243, 0.92);
  border-bottom: 1px solid var(--line);
}

.brand-mark {
  font-family: var(--font-display);
  font-size: 1.7rem;
  font-weight: 700;
  color: var(--accent-deep);
  letter-spacing: 0.02em;
}

.navbar-nav .nav-link {
  color: var(--ink);
  font-weight: 500;
  padding: 0.55rem 0.85rem;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link:focus {
  color: var(--accent);
}

/* Visible mobile hamburger (Bootstrap icon only shows with navbar-light/dark) */
.menu-toggle {
  border: 1px solid rgba(28, 42, 34, 0.25);
  border-radius: 10px;
  padding: 0.45rem 0.6rem;
  background: #fff;
}

.menu-toggle:focus,
.menu-toggle:focus-visible {
  box-shadow: 0 0 0 0.2rem rgba(31, 107, 74, 0.25);
  outline: none;
}

.menu-toggle .navbar-toggler-icon {
  width: 1.4rem;
  height: 1.4rem;
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='%23134832' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2.5' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

@media (max-width: 991.98px) {
  .navbar-collapse {
    padding-top: 0.75rem;
  }

  .navbar-nav {
    gap: 0.15rem;
  }

  .navbar-nav .nav-link {
    padding: 0.75rem 0.25rem;
    border-bottom: 1px solid var(--line);
  }

  .navbar-nav .dropdown-menu {
    border: 0;
    box-shadow: none;
    padding-left: 0.75rem;
  }
}

.hero {
  position: relative;
  overflow: hidden;
  min-height: 72vh;
  display: flex;
  align-items: center;
  padding: 5rem 0 4rem;
  background:
    linear-gradient(120deg, rgba(19, 72, 50, 0.92), rgba(28, 42, 34, 0.55)),
    url("/images/hero-pattern.svg") center/cover;
  color: #f8f6f1;
}

.hero-content {
  max-width: 720px;
  animation: rise 0.8s ease both;
}

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2.8rem, 6vw, 4.6rem);
  line-height: 1.05;
  margin-bottom: 1rem;
}

.hero p {
  font-size: 1.15rem;
  max-width: 36rem;
  opacity: 0.92;
}

.btn-primary {
  --bs-btn-bg: var(--accent);
  --bs-btn-border-color: var(--accent);
  --bs-btn-hover-bg: var(--accent-deep);
  --bs-btn-hover-border-color: var(--accent-deep);
  --bs-btn-active-bg: var(--accent-deep);
  --bs-btn-active-border-color: var(--accent-deep);
}

.btn-outline-light,
.btn-outline-secondary {
  border-radius: 999px;
}

.btn-primary,
.btn-outline-primary {
  border-radius: 999px;
  padding-inline: 1.25rem;
}

.section {
  padding: 4.5rem 0;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 3vw, 2.6rem);
  margin-bottom: 0.5rem;
}

.section-lead {
  color: var(--muted);
  max-width: 40rem;
  margin-bottom: 2rem;
}

.content-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  height: 100%;
  min-width: 0;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

/* Don't clip Bunny player controls (play button sits at the left edge). */
.content-card:has(.video-player) {
  overflow: visible;
}

.content-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 22px 48px rgba(28, 42, 34, 0.12);
}

@media (hover: none) {
  .content-card:hover {
    transform: none;
  }
}

.content-card img {
  width: 100%;
  height: 190px;
  object-fit: cover;
  background: #dfe8e2;
}

.content-card .body {
  padding: 1.25rem 1.35rem 1.5rem;
}

.meta {
  color: var(--muted);
  font-size: 0.92rem;
}

.page-hero {
  padding: 3.5rem 0 2rem;
}

.page-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 4vw, 3.2rem);
}

.video-player {
  width: 100%;
  max-width: 100%;
  min-width: 0;
}

.video-player .ratio {
  width: 100%;
  max-width: 100%;
  background: #0f1612;
  border-radius: 14px;
  overflow: hidden;
}

.video-player iframe {
  border: 0;
  width: 100%;
  height: 100%;
  max-width: 100%;
}

.video-hint {
  color: var(--muted);
  font-size: 0.85rem;
  margin: 0.5rem 0 0;
}

@media (max-width: 991.98px) {
  .section {
    padding: 2.75rem 0;
  }

  .content-card.p-3,
  .content-card.p-md-4 {
    padding: 0.85rem !important;
  }

  /* Give the player as much width as possible on phones */
  .video-player-bleed {
    margin-left: -0.85rem;
    margin-right: -0.85rem;
    width: calc(100% + 1.7rem);
    max-width: none;
  }

  .video-player-bleed .ratio {
    border-radius: 0;
  }

  .video-player-bleed + .video-hint,
  .video-player + .video-hint {
    padding-inline: 0.15rem;
  }
}

.site-footer {
  margin-top: 3rem;
  background: #18241d;
  color: #e8ebe8;
}

.site-footer .brand-mark { color: #f4f7f4; }
.site-footer .text-muted { color: rgba(232, 235, 232, 0.7) !important; }
.footer-link {
  color: rgba(232, 235, 232, 0.85);
  margin-left: 1rem;
}
.footer-link:hover { color: #fff; }

.speaker-photo {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 50%;
  background: #d9e5dd;
}

@keyframes rise {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 991px) {
  .hero { min-height: auto; padding: 4rem 0 3rem; }
}
