/* ==========================================================================
   MODERN EDITORIAL TYPOGRAPHY SYSTEM
   ========================================================================== */

:root {
  --font-heading: 'Newsreader', Georgia, 'Times New Roman', serif;
  --font-body: 'Lora', Georgia, Cambria, 'Times New Roman', serif;
  --font-ui: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --color-text-primary: #1e242d;
  --color-text-body: #2d3748;
  --color-text-muted: #5a6578;
  --color-bg-page: #fcfbf9;
  --color-accent-maroon: #5b1212;
  --color-accent-burgundy: #801818;
  --color-accent-gold: #c97a1e;
  --color-bg-quote: #faf5f4;
  --color-border-quote: #801818;
  --max-content-width: 44rem;
}

/* Base Body Font & Warm Background */
body {
  font-family: var(--font-body);
  font-size: 1.125rem; /* 18px */
  line-height: 1.8;
  color: var(--color-text-body);
  background-color: var(--color-bg-page);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

.bg-near-white {
  background-color: var(--color-bg-page) !important;
}

/* Headings Font */
h1, h2, h3, h4, h5, h6,
.athelas {
  font-family: var(--font-heading) !important;
  letter-spacing: -0.015em;
  font-weight: 600;
  line-height: 1.25;
}

/* Ensure white text on dark banners and maroon blocks is strictly preserved */
.white, h2.white, h1.white, .white-90, .white-80, .white-70,
.bg-maroon .white, .bg-maroon h2, .bg-maroon a,
.cover .white, .cover h1.white, .cover p.white {
  color: #ffffff !important;
}

/* ==========================================================================
   SLEEK MODERN STICKY NAVBAR & MOBILE DRAWER
   ========================================================================== */

.site-header-sticky {
  position: sticky;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  z-index: 1000;
  background: rgba(252, 251, 249, 0.92);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.03);
  transition: background-color 0.3s ease, border-color 0.3s ease;
}

.site-nav-container {
  height: 64px;
}

.site-brand {
  text-decoration: none;
}

.site-brand-text {
  font-family: var(--font-heading) !important;
  font-size: 1.55rem;
  font-weight: 700;
  color: #5b1212 !important;
  letter-spacing: -0.02em;
  transition: color 0.2s ease, transform 0.2s ease;
}

.site-brand:hover .site-brand-text {
  color: #c97a1e !important;
  transform: translateY(-1px);
}

.site-logo {
  max-height: 44px;
  width: auto;
}

.nav-menu {
  gap: 6px;
}

.nav-link {
  font-family: var(--font-ui) !important;
  font-size: 0.95rem;
  font-weight: 600;
  color: #374151 !important;
  padding: 8px 16px;
  border-radius: 20px;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s ease;
}

.nav-link:hover {
  color: #801818 !important;
  background: rgba(128, 24, 24, 0.06);
}

.nav-icon {
  width: 1.1rem;
  height: 1.1rem;
  vertical-align: middle;
}

/* Mobile Hamburger Button */
.hamburger-btn {
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 8px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
}

.hamburger-bar {
  display: block;
  width: 22px;
  height: 2.5px;
  background-color: #374151;
  border-radius: 2px;
  transition: all 0.25s ease;
}

.hamburger-btn.is-active .hamburger-bar:nth-child(1) {
  transform: translateY(7.5px) rotate(45deg);
}
.hamburger-btn.is-active .hamburger-bar:nth-child(2) {
  opacity: 0;
}
.hamburger-btn.is-active .hamburger-bar:nth-child(3) {
  transform: translateY(-7.5px) rotate(-45deg);
}

/* Mobile Drawer */
.mobile-drawer {
  background: #FCFBF9;
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
  animation: slideDownNav 0.25s ease-out forwards;
}

@keyframes slideDownNav {
  from {
    opacity: 0;
    transform: translateY(-8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.mobile-nav-link {
  font-family: var(--font-ui) !important;
  font-size: 1.1rem;
  font-weight: 600;
  color: #2D3748 !important;
  text-decoration: none;
  padding: 10px 16px;
  border-radius: 8px;
  transition: all 0.2s ease;
}

.mobile-nav-link:hover {
  color: #801818 !important;
  background: rgba(128, 24, 24, 0.06);
}

/* Clean UI / Navigation / Meta Font */
nav, .menu, nav ul li a, .tag, .category, time, .post-meta,
button, .ttu, input, select, .instapaper_ignoref.b.helvetica {
  font-family: var(--font-ui) !important;
}

/* Article Prose & Readability */
.nested-copy-line-height,
.nested-links,
article,
.lh-copy {
  font-family: var(--font-body);
  font-size: 1.125rem;
  line-height: 1.82;
  color: var(--color-text-body);
}

article h1:not(.white),
article h2:not(.white),
article h3:not(.white),
article h4:not(.white),
.nested-copy-line-height h1:not(.white),
.nested-copy-line-height h2:not(.white),
.nested-copy-line-height h3:not(.white) {
  color: var(--color-text-primary);
}

.nested-copy-line-height p,
article p {
  margin-top: 0;
  margin-bottom: 1.6rem;
}

/* Editorial Blockquotes (Quotes, Suttas, Poems) */
blockquote {
  border-left: 4px solid var(--color-border-quote) !important;
  background: var(--color-bg-quote) !important;
  margin: 2rem 0 !important;
  padding: 1.25rem 1.75rem !important;
  border-radius: 0 10px 10px 0;
  font-family: var(--font-body) !important;
  font-style: italic;
  font-size: 1.1rem;
  line-height: 1.75;
  color: #383838 !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
}

blockquote p:last-child {
  margin-bottom: 0;
}

/* Article Links */
.nested-links a:not(.no-underline):not(.btn) {
  color: var(--color-accent-burgundy);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1.5px;
  text-decoration-color: rgba(128, 24, 24, 0.35);
  transition: all 0.2s ease;
}

.nested-links a:not(.no-underline):not(.btn):hover {
  color: var(--color-accent-gold);
  text-decoration-color: var(--color-accent-gold);
}

/* ==========================================================================
   GLOBAL COLORS & BACKGROUND
   ========================================================================== */
.bg-maroon {
    background-color: #430909;
}

/* ==========================================================================
   IMAGES & FIGURES
   ========================================================================== */
figure {
    margin: 0;
}

.standard-image-size img {
    width: 100%;
    height: auto;
    margin: 0;
}

.db.grow img {
    border-radius: 20px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.db.grow img:hover,
.db.grow img:focus,
.db.grow img:active {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4);
}

.fancy-img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 1em auto;
    border-radius: 20px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
    mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, black 60%, transparent 100%);
    -webkit-mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, black 60%, transparent 100%);
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.9s ease-out, transform 0.9s ease-out;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.fancy-img.reveal {
    opacity: 1;
    transform: translateY(0);
}

/* ==========================================================================
   SEARCH BAR
   ========================================================================== */
.gcse-search {
    max-width: 600px;
    margin: auto;
    padding: 20px;
}

/* ==========================================================================
   TITLES / HEADINGS
   ========================================================================== */
.f3.fw1.athelas.mt0.lh-title {
    font-size: 2rem;
    font-weight: 600;
    color: #222;
    letter-spacing: -0.5px;
    line-height: 1.3;
    margin-bottom: 10px;
    position: relative;
    padding-bottom: 10px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.f3.fw1.athelas.mt0.lh-title a {
    color: #333;
    text-decoration: none;
    transition: color 0.3s ease, text-shadow 0.3s ease, transform 0.3s ease;
}

.f3.fw1.athelas.mt0.lh-title a:hover,
.f3.fw1.athelas.mt0.lh-title a:focus {
    color: #8b0000;
    text-shadow: 2px 2px 8px rgba(139, 0, 0, 0.3);
    transform: translateY(-1px) scale(1.05);
}

.f3.fw1.athelas.mt0.lh-title::after {
    content: "";
    display: block;
    width: 100%;
    height: 3px;
    background-color: #8b0000;
    margin-top: 5px;
    border-radius: 2px;
    position: absolute;
    bottom: 0;
    left: 0;
    transition: width 0.3s ease;
}

.f3.fw1.athelas.mt0.lh-title:hover::after {
    width: 110%;
}

/* ==========================================================================
   BUTTONS
   ========================================================================== */
a.ba.b--moon-gray.bg-light-gray.br2 {
    display: inline-block;
    padding: 8px 20px;
    border-radius: 30px;
    background-color: #8b0000;
    color: #ffffff;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    text-decoration: none;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

a.ba.b--moon-gray.bg-light-gray.br2:hover,
a.ba.b--moon-gray.bg-light-gray.br2:focus {
    background-color: #a52a2a;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(139, 0, 0, 0.4);
}

/* ==========================================================================
   NAVIGATION MENU
   ========================================================================== */
nav ul {
    display: flex;
    gap: 25px;
    list-style: none;
    padding: 0;
    margin: 0;
}

nav ul li {
    display: inline-block;
}

nav ul li a {
    display: inline-block;
    padding: 12px 25px;
    font-size: 1.4rem;
    font-weight: 600;
    border-radius: 30px;
    text-decoration: none;
    color: #ffffff;
    background-color: transparent;
    transition: all 0.3s ease;
}

nav ul li a:hover,
nav ul li a:focus {
    color: #ffffff;
    background-color: #a30000;
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(139, 0, 0, 0.6);
}

/* Active link style */
nav a.active,
nav ul li a.active {
    background-color: #8b0000;
    color: #ffffff;
    font-weight: 700;
    padding: 10px 28px;
    border-radius: 50px;
    box-shadow: 0 4px 12px rgba(139, 0, 0, 0.5);
}

nav a.active:hover,
nav a.active:focus {
    background-color: #a30000;
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.65);
}

/* Site title link (non-pill style) */
nav a.f3.fw2 {
    background-color: transparent !important;
    box-shadow: none !important;
    border-radius: 0 !important;
    padding: 0 !important;
    font-size: 1.5rem;
}

nav a.f3.fw2:hover {
    background-color: #8b0000;
    color: #ffffff;
    padding: 10px 28px;
    border-radius: 50px;
    box-shadow: 0 4px 12px rgba(139, 0, 0, 0.5);
    transform: translateY(-2px);
}

/* ==========================================================================
   MOBILE NAVIGATION
   ========================================================================== */
@media (max-width: 768px) {
    nav ul {
        width: 100%;
        flex-direction: column;
        gap: 10px;
        align-items: center;
    }

    nav ul li {
        width: 100%;
        text-align: center;
    }

    nav ul li a {
        display: block;
        width: 80%;
        margin: 5px auto;
        border-radius: 40px;
        padding: 12px 0;
        font-size: 1.3rem;
    }

    nav ul li a.active {
        background-color: #8b0000;
        box-shadow: 0 4px 10px rgba(139, 0, 0, 0.4);
    }

    nav ul li a:hover {
        background-color: #a30000;
        box-shadow: 0 6px 15px rgba(139, 0, 0, 0.5);
    }

    nav a.active {
        font-size: 1.3rem;
        padding: 8px 20px;
        border-radius: 40px;
    }
}

/* ==========================================================================
   PROGRESS INDICATORS
   ========================================================================== */
#progress-percentage {
    position: fixed;
    top: 5px;
    right: 10px;
    color: #d48806;
    font-weight: bold;
    z-index: 9999;
}

#progress-circle {
    position: fixed;
    top: 30%;
    left: 20px;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: conic-gradient(#d48806 0%, #eee 0%);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

#progress-text {
    font-size: 16px;
    color: #333;
    font-weight: bold;
}

@media (max-width: 768px) {
    #progress-circle {
        bottom: 10px;
        left: 10px;
        width: 50px;
        height: 50px;
        top: auto;
    }

    #progress-percentage {
        display: none;
    }
}

/* ==========================================================================
   TEXT WRAPPING & CONTENT some more info
   ========================================================================== */
.summary,
.post-content,
.photo-credit,
p {
    word-wrap: break-word;
    overflow-wrap: break-word;
    word-break: break-word;
}

.nested-links {
    word-break: break-word;
    overflow-wrap: anywhere;
}
/* ==========================================================================
   SIDEBAR & RELATED POSTS (Responsive, Larger, and Modern)
   ========================================================================== */
.sidebar {
  font-size: 1em;
}

.sidebar-section {
  margin-bottom: 2rem;
}

/* Container */
.related-sidebar {
  background: #f9f9f9;
  padding: 0.6rem;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

/* Header */
.related-sidebar h3 {
  font-weight: 700;
  font-size: 1.2rem;
  margin-bottom: 1.2rem;
  color: #222;
  border-bottom: 2px solid #8b0000;
  padding-bottom: 6px;
}

/* List */
.related-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

/* Cards */
.related-card {
  width: 100%;
  transition: transform 0.15s ease, box-shadow 0.2s ease;
}

.related-card-link {
  display: flex;
  align-items: center;
  gap: 1rem;
  text-decoration: none;
  color: inherit;
  padding: 0.4rem 0.2rem;
  border-radius: 10px;
}

.related-card-link:hover {
  background: rgba(139, 0, 0, 0.05);
  transform: translateY(-2px);
}

/* Thumbnail */
.related-thumb {
  width: clamp(80px, 20vw, 100px);
  height: clamp(80px, 20vw, 100px);
  border-radius: 20px;
  object-fit: cover;
  flex-shrink: 0;
  box-shadow: 0 3px 6px rgba(0, 0, 0, 0.15);
  transition: transform 0.25s ease;
}

.related-card-link:hover .related-thumb {
  transform: scale(1.05);
}

/* Title */
.related-title {
  font-size: clamp(1rem, 1.6vw, 1.15rem);
  font-weight: 600;
  line-height: 1.35;
  margin: 0;
  flex: 1;
  color: #222;
}

.related-card-link:hover .related-title {
  color: #8b0000;
  text-decoration: underline;
}

/* Responsive */
@media (max-width: 900px) {
  .related-sidebar {
    padding: 1rem;
  }

  .related-thumb {
    width: 70px;
    height: 70px;
  }

  .related-card-link {
    gap: 0.8rem;
  }
}

@media (max-width: 600px) {
  .related-sidebar {
    border-radius: 0;
    box-shadow: none;
    padding: 0.8rem;
  }

  .related-thumb {
    width: 60px;
    height: 60px;
  }

  .related-title {
    font-size: 0.95rem;
  }
}

.related-card {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 3px 10px rgba(0,0,0,0.1);
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.related-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 16px rgba(0,0,0,0.15);
}

.related-card-inner {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  padding: 0.6rem;
}

.related-card-content {
  flex: 1;
}

.related-thumb {
  width: 70px;
  height: 70px;
  object-fit: cover;
  border-radius: 10px;
}

.related-title {
  margin: 0;
  font-size: 1rem;
  line-height: 1.3;
  color: #222;
}

/* Recenter hero background */
.cover.bg-top {
  background-position: center center !important;
}

/* Optional: make sure image fills edge-to-edge smoothly */
.cover {
  background-size: cover !important;
  background-repeat: no-repeat !important;
}

/* Add spacing between footer social icons */
footer .ananke-social-link {
  margin: 0 0.4rem !important; /* increase from default 0.2rem */
}

/* Optional: vertically align with text if needed */
footer .ananke-socials {
  display: flex;
  align-items: center;
  gap: 0.4rem; /* modern method, replaces manual margin */
}
/* Optional: vertically align with text if needed */
header .ananke-socials {
  display: flex;
  align-items: center;
  gap: 0.4rem; /* modern method, replaces manual margin */
}

/* ==========================================================================
   GLOBAL TEXT COLOR OVERRIDES (remove gray everywhere)
   ========================================================================== */

/* Force all gray text to clean dark text */
.mid-gray,
.dark-gray,
.near-black,
.black-60,
.black-70,
.black-80,
.black-90 {
    color: #222 !important;
}

/* ==========================================================================
   MODERN MAGAZINE / BLOG POST CARD GRID
   ========================================================================== */

.post-card-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
  width: 100%;
}

@media (min-width: 640px) {
  .post-card-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .post-card-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* Post Card Container */
.post-card {
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.07);
  border-radius: 18px;
  padding: 12px 12px 16px 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  height: 100%;
  transition: transform 0.35s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.35s ease, border-color 0.3s ease;
}

.post-card:hover {
  transform: translateY(-9px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.10), 0 4px 12px rgba(128, 24, 24, 0.06);
  border-color: rgba(128, 24, 24, 0.28);
}

/* 16:9 Aspect Ratio Thumbnail with Soft Rounded Corners */
.post-card-thumbnail-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 16px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.10);
  background-color: #f0ede8;
}

.post-card-thumb-link {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 16px;
  overflow: hidden;
}

.post-card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: 16px;
  transition: transform 0.45s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.post-card:hover .post-card-img {
  transform: scale(1.04);
}

/* Thumbnail Placeholder when no image */
.post-card-no-img {
  aspect-ratio: auto;
  padding: 8px 12px 0 12px;
  background: transparent;
  box-shadow: none;
}

/* Category Pill Badge */
.post-card-category-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: #801818;
  font-family: var(--font-ui) !important;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 4px 10px;
  border-radius: 20px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
  pointer-events: none;
  transition: transform 0.35s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.post-card:hover .post-card-category-badge {
  transform: translateY(-2px) scale(1.04);
}

.post-card-no-img .post-card-category-badge {
  position: static;
  display: inline-block;
}

/* Card Content Area */
.post-card-content {
  padding: 14px 8px 0 8px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.post-card-meta {
  font-family: var(--font-ui) !important;
  font-size: 0.8rem;
  font-weight: 500;
  color: #718096;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.meta-dot {
  color: #a0aec0;
}

.post-card-title {
  font-family: var(--font-heading) !important;
  font-size: 1.28rem;
  font-weight: 600;
  line-height: 1.35;
  margin: 0 0 10px 0;
}

.post-card-title-link {
  color: #1a202c !important;
  text-decoration: none;
  transition: color 0.2s ease;
}

.post-card-title-link:hover {
  color: #801818 !important;
}

.post-card-excerpt {
  font-family: var(--font-body);
  font-size: 0.95rem;
  line-height: 1.6;
  color: #4a5568;
  margin: 0 0 16px 0;
  flex-grow: 1;
}

.post-card-footer {
  margin-top: auto;
  padding-top: 12px;
  border-top: 1px solid rgba(0, 0, 0, 0.05);
}

.post-card-readmore {
  font-family: var(--font-ui) !important;
  font-size: 0.85rem;
  font-weight: 600;
  color: #801818 !important;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: all 0.2s ease;
}

.post-card-readmore:hover {
  color: #c97a1e !important;
}

.readmore-arrow {
  transition: transform 0.2s ease;
}

.post-card:hover .readmore-arrow {
  transform: translateX(4px);
}

/* ==========================================================================
   UNIFIED MODERN BUTTONS & EXPLORE CARDS
   ========================================================================== */

.explore-card,
.bg-card {
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.07);
  border-radius: 18px !important;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
  transition: transform 0.35s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.35s ease, border-color 0.3s ease;
}

.explore-card:hover,
.bg-card:hover,
.bg-card:focus-within {
  transform: translateY(-9px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.10), 0 4px 12px rgba(128, 24, 24, 0.06);
  border-color: rgba(128, 24, 24, 0.28);
}

.btn-pill,
.btn-primary {
  font-family: var(--font-ui) !important;
  font-size: 0.92rem;
  font-weight: 600;
  color: #374151 !important;
  background-color: rgba(0, 0, 0, 0.04) !important;
  border: 1px solid rgba(0, 0, 0, 0.08);
  padding: 8px 20px;
  border-radius: 20px !important;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  text-decoration: none !important;
  box-shadow: none;
  transition: transform 0.35s cubic-bezier(0.2, 0.8, 0.2, 1), background-color 0.25s ease, color 0.25s ease, box-shadow 0.35s ease, border-color 0.25s ease;
  cursor: pointer;
}

/* When the card is hovered, the button inside also raises and tints like the navbar link */
.explore-card:hover .btn-pill {
  background-color: rgba(128, 24, 24, 0.08) !important;
  border-color: rgba(128, 24, 24, 0.25);
  color: #801818 !important;
  transform: translateY(-4px);
  box-shadow: 0 4px 14px rgba(128, 24, 24, 0.12);
}

/* When hovering directly on the button */
.btn-pill:hover,
.btn-primary:hover {
  background-color: rgba(128, 24, 24, 0.14) !important;
  border-color: rgba(128, 24, 24, 0.35);
  color: #5b1212 !important;
  transform: translateY(-4px) scale(1.02);
  box-shadow: 0 6px 16px rgba(128, 24, 24, 0.16);
}

.btn-pill-solid {
  color: #ffffff !important;
  background-color: #801818 !important;
  border: none;
  box-shadow: 0 2px 8px rgba(128, 24, 24, 0.25);
}

.btn-pill-solid:hover {
  background-color: #5b1212 !important;
  color: #ffffff !important;
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(128, 24, 24, 0.35);
}

.btn-pill-lg {
  font-size: 0.95rem;
  padding: 10px 24px;
}

/* Floating Year Navigation Sidebar */
.year-sidebar {
  position: fixed;
  top: 120px;
  left: 20px;
  width: 80px;
  background: #ffffff;
  border-radius: 14px;
  padding: 10px 5px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.15);
  z-index: 999;
}

.year-sidebar ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.year-sidebar li {
  margin: 6px 0;
  text-align: center;
}

.year-sidebar a {
  text-decoration: none;
  color: #333;
  font-weight: 600;
  display: block;
  padding: 4px 0;
  border-radius: 8px;
  transition: all 0.2s ease;
}

.year-sidebar a:hover {
  background: #ffe5e5;
  color: #8b0000;
}

/* Highlight active year */
.year-sidebar a.active {
  background: #8b0000;
  color: white;
}

/* Mobile: hide sidebar */
@media (max-width: 900px) {
  .year-sidebar {
    display: none;
  }
}

#year-nav .top-link {
  font-weight: 700;
  color: #8b0000;
  margin-bottom: 8px;
  display: block;
}
/* Floating FAB container */
.year-fab {
  position: fixed;
  bottom: 18px;
  right: 18px;
  z-index: 9999;
}

/* The round button */
#year-fab-btn {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  border: none;
  background: #8b0000;
  color: white;
  font-size: 22px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.25);
  cursor: pointer;
  transition: transform 0.2s ease;
}

#year-fab-btn:hover {
  transform: scale(1.06);
}

/* The popup menu */
.year-fab-menu {
  position: absolute;
  bottom: 70px;
  right: 0;
  display: none;
  flex-direction: column;
  gap: 8px;
  background: white;
  padding: 12px;
  border-radius: 10px;
  box-shadow: 0 4px 18px rgba(0,0,0,0.25);
}

.year-fab-menu a {
  display: block;
  padding: 6px 12px;
  text-decoration: none;
  font-weight: 600;
  color: #333;
  border-radius: 6px;
  white-space: nowrap;
}

.year-fab-menu a:hover {
  background: #8b0000;
  color: white;
}

/* Highlight active */
.year-fab-menu a.active {
  background: #8b0000;
  color: white;
}

/* FAB visible only on mobile */
@media (max-width: 900px) {
  .year-fab {
    display: block !important;
  }
}

/* Hide FAB on desktop/tablet */
@media (min-width: 901px) {
  .year-fab {
    display: none !important;
  }
}

/* Video card layout */
.video-card {
  display: flex;
  flex-direction: column;
  max-width: 800px;
  margin: 1.5rem auto;
  background: #ffffff;
  border-radius: 16px;
  box-shadow: 0 4px 14px rgba(0,0,0,0.12);
  overflow: hidden;
}

/* Thumbnail button */
.video-card-thumb {
  position: relative;
  padding: 0;
  border: none;
  background: transparent;
  cursor: pointer;
  display: block;
}

.video-card-thumb img {
  display: block;
  width: 100%;
  height: auto;
}

/* Dark overlay + play icon */
.video-card-overlay {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at center,
              rgba(0,0,0,0.0) 40%,
              rgba(0,0,0,0.45) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}

.video-card-play {
  font-size: 3rem;
  color: #ffffff;
  text-shadow: 0 2px 6px rgba(0,0,0,0.6);
}

/* Text block */
.video-card-body {
  padding: 1rem 1.2rem 0.8rem;
}

.video-card-title {
  font-size: 1.25rem;
  font-weight: 700;
  margin: 0 0 0.3rem;
}

.video-card-date {
  margin: 0 0 0.6rem;
  font-size: 0.85rem;
  color: #666;
}

.video-card-desc {
  font-size: 0.95rem;
  line-height: 1.5;
  color: #333;
}

/* Embed area */
.video-card-embed {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease;
}

.video-card-embed.open {
  max-height: 600px; /* enough to show iframe */
}

/* Responsive */
@media (max-width: 600px) {
  .video-card {
    margin: 1rem 0.5rem;
  }

  .video-card-title {
    font-size: 1.1rem;
  }
}

.video-card-embed {
  margin-top: 1rem;
  width: 100%;
}

.video-card-iframe-wrapper {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%; /* 16:9 aspect ratio */
  height: 0;
  overflow: hidden;
}

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


/* ==========================================================================
   YouTube Embed Rounded Corners
   ========================================================================== */
.youtube-wrapper,
iframe[src*="youtube.com"],
iframe[src*="youtu.be"] {
  border-radius: 20px !important;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
  overflow: hidden;
  display: block;
}
