/* =====================================================
   MOBILE-FIRST RESPONSIVE DESIGN
   Base styles for mobile (320px+), then progressive enhancement
   ===================================================== */

/* Reset and Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body,
html {
  height: 100%;
  width: 100%;
  overflow-x: hidden;
  overflow-y: auto; /* Enable body scrolling */
  scroll-snap-type: y mandatory;
  scroll-behavior: smooth;
  font-family: "Lato", sans-serif;
  background-color: #ffffff; /* White background matches first section */
  /* Note: theme-color meta tag works in Chrome/Android and older Safari versions,
     but Safari iOS 26+ ignores it due to "Liquid Glass" redesign */
}

/* Typography - Mobile First with Fluid Scaling */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: "EB Garamond", serif;
}

.hero-text {
  font-family: "EB Garamond", serif;
  font-size: clamp(1rem, 3vw, 1.4rem);
  color: #555;
  max-width: 90%;
  line-height: 1.5;
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInUp 1s ease forwards 0.6s;
  font-style: italic;
  padding: 0 24px;
}

/* =====================================================
   NAVIGATION - MOBILE BOTTOM NAV
   ===================================================== */

.navbar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  width: 100%;
  padding: 12px 10px;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
  transition: all 0.3s ease;
  background: rgba(255, 255, 255, 0.75);
  backdrop-filter: blur(10px);
  box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
}

.nav-spacer {
  display: none; /* Hidden on mobile */
}

.nav-group {
  list-style: none;
  display: flex;
  gap: clamp(15px, 6vw, 30px);
  flex: 1;
  justify-content: space-evenly;
}

.nav-group.right {
  display: flex; /* Show both groups on mobile */
}

.nav-group li {
  flex: 0 0 auto;
  text-align: center;
}

.nav-group a {
  text-decoration: none;
  color: inherit;
  font-weight: 400; /* Normal weight by default */
  font-size: clamp(0.95rem, 3vw, 0.95rem);
  display: block;
  padding: 12px 8px;
  border-radius: 8px;
  transition: all 0.2s ease;
  /* Minimum touch target size */
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.nav-group a.active {
  font-weight: 700; /* Bold when active */
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
}

.nav-group a:active {
  background: rgba(0, 0, 0, 0.05);
  transform: scale(0.98);
}

/* Dynamic Text Colors */
.text-dark {
  color: #333;
}

.text-white {
  color: #333; /* On mobile bottom nav, always dark on light background */
}

/* =====================================================
   SWIPER CONTAINER & SECTIONS
   ===================================================== */

.swiper-container {
  min-height: 100vh;
  width: 100vw;
  position: relative;
  z-index: 1;
  pointer-events: none; /* Allow clicks to pass through transparent areas */
  padding-bottom: 68px; /* Space for bottom nav */
}

.swiper-section {
  height: 100vh;
  width: 100vw;
  scroll-snap-align: start;
  scroll-snap-stop: always;
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  padding: 10px 0; /* No horizontal padding on mobile */
  padding-bottom: 80px; /* Space for bottom nav */
  overflow: hidden; /* Prevent vertical scrolling within sections */
  pointer-events: auto; /* Restore interactivity for content */
}

/* Section Colors */
.section-white {
  background-color: #ffffff;
  color: #333;
}

.section-yellow {
  background-color: #e0b12b;
  color: #333;
}

.section-blue {
  background-color: #07376c;
  color: #fff;
}

/* =====================================================
   CONTENT STYLING - MOBILE FIRST
   ===================================================== */

.content {
  text-align: center;
  padding: 10px 0; /* No horizontal padding */
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInUp 0.8s ease forwards;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 15px;
  width: 100%;
  max-width: 100%;
}

.pill {
  display: inline-block;
  padding: 5px 14px;
  border-radius: 50px;
  background-color: #333;
  color: #fff;
  text-transform: uppercase;
  font-size: clamp(0.7rem, 2.2vw, 0.75rem);
  letter-spacing: 1.2px;
  font-weight: 700;
  margin-bottom: 8px;
  margin-left: 10px;
  margin-right: 10px;
}

.content h2 {
  font-size: clamp(1.8rem, 7vw, 3rem);
  margin-bottom: 8px;
  color: #333;
  line-height: 1.2;
  padding: 0 24px;
}

.section-description {
  max-width: 100%;
  margin: 0 auto;
  line-height: 1.6;
  font-size: clamp(0.95rem, 3vw, 1.1rem);
  color: #444;
  padding: 0 24px;
}

/* =====================================================
   HERO SECTION - MOBILE FIRST
   ===================================================== */

.hero-content {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 15px;
  z-index: 10;
  margin-top: -8vh;
  padding: 10px 0; /* No horizontal padding */
}

.hero-logo {
  max-width: min(250px, 70vw);
  width: 100%;
  height: auto;
  opacity: 0;
  transform: translateY(30px);
  animation: fadeInUp 1s ease forwards 0.2s;
  margin: 0 10px; /* Add horizontal margin for logo */
  user-select: none;
  -webkit-user-drag: none;
  pointer-events: none;
}

/* =====================================================
   SCROLL INDICATOR - MOBILE OPTIMIZED
   ===================================================== */

.scroll-indicator {
  position: absolute;
  bottom: 80px; /* Above bottom nav */
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  opacity: 0;
  animation: fadeInPartial 1s ease forwards 1.2s;
  z-index: 10;
}

.mouse {
  width: 26px;
  height: 44px;
  border: 2px solid #333;
  border-radius: 13px;
  position: relative;
  display: flex;
  justify-content: center;
  animation: pulseFade 1.5s ease-out infinite;
}

.wheel {
  width: 10px;
  height: 10px;
  background-color: #333;
  border-radius: 50%;
  position: absolute;
  top: 10px;
  animation: scrollWheel 1.5s ease-out infinite;
}

/* =====================================================
   ANIMATIONS
   ===================================================== */

@keyframes fadeInUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  to {
    opacity: 1;
  }
}

@keyframes fadeInPartial {
  to {
    opacity: 0.1;
  }
}

@keyframes pulseFade {
  0% {
    opacity: 1;
  }
  60% {
    opacity: 1;
  }
  100% {
    opacity: 0;
  }
}

@keyframes scrollWheel {
  0% {
    top: 26px;
    opacity: 0;
  }
  30% {
    opacity: 1;
  }
  100% {
    top: 10px;
    opacity: 1;
  }
}

/* =====================================================
   EVENTS - MOBILE FIRST
   ===================================================== */

.events-scroll-wrapper {
  position: relative;
  width: 100%;
  max-width: 100%;
  margin-top: 5px;
  padding: 0;
}

.events-container {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
  scrollbar-width: none; /* Firefox */
  -ms-overflow-style: none; /* IE/Edge */
  padding: 10px 16px; /* added side padding for visible margin */
  scroll-padding: 0 16px; /* ensure snap respects padding */
  width: fit-content;
  max-width: 100%;
  margin: 0 auto;
}

.events-container::-webkit-scrollbar {
  display: none; /* Chrome/Safari */
}

/* Scroll Navigation Arrows - Hidden on small mobile */
.scroll-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background-color: #fff;
  border: none;
  border-radius: 50%;
  width: 36px;
  height: 36px;
  display: none; /* Hidden on mobile, shown on tablet+ */
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
  z-index: 10;
  transition: all 0.3s ease;
  opacity: 0;
  pointer-events: none;
}

.scroll-arrow.visible {
  opacity: 1;
  pointer-events: all;
}

.scroll-arrow:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
  transform: translateY(-50%) scale(1.1);
}

.scroll-arrow-left {
  left: -18px;
}

.scroll-arrow-right {
  right: -18px;
}

.section-blue .scroll-arrow {
  background-color: rgba(255, 255, 255, 0.9);
}

/* =====================================================
   EVENT CARDS - MOBILE FIRST
   ===================================================== */

.event-item {
  flex: 0 0 min(240px, 75vw);
  display: flex;
  flex-direction: column;
  background-color: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  scroll-snap-align: start;
}

.event-item:active {
  transform: scale(0.98);
}

/* Emoji Icon Container */
.event-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 90px;
  font-size: clamp(38px, 10vw, 64px);
  background-color: #f3f4f6;
  user-select: none;
  -webkit-user-drag: none;
}

/* Card Content */
.event-content {
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}

.event-category {
  font-size: clamp(0.7rem, 2.2vw, 0.75rem);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #666;
  font-weight: 600;
}

.event-title {
  font-family: "EB Garamond", serif;
  font-size: clamp(1.25rem, 3.8vw, 1.5rem);
  font-weight: 700;
  color: #1a1a1a;
  line-height: 1.25;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 2.5em; /* 1.25 line-height * 2 lines */
}

.event-description {
  font-size: clamp(0.85rem, 2.8vw, 0.9rem);
  color: #666;
  line-height: 1.4;
  flex: 1;
}

.event-time {
  font-size: clamp(0.8rem, 2.5vw, 0.85rem);
  color: #888;
  font-weight: 500;
  margin-top: 4px;
}

.event-location {
  font-size: clamp(0.85rem, 2.8vw, 0.85rem);
  color: #666;
  display: flex;
  align-items: center;
  gap: 4px;
}

.event-meeting-link {
  font-size: clamp(0.85rem, 2.8vw, 0.85rem);
  color: #007bff;
  display: flex;
  align-items: center;
  gap: 4px;
  text-decoration: none;
}

.event-meeting-link:hover {
  text-decoration: underline;
}

/* View Details Button */
.event-button {
  padding: 10px 16px;
  border: none;
  border-radius: 8px;
  font-size: clamp(0.85rem, 2.8vw, 0.9rem);
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  background-color: #1a1a1a;
  color: #fff;
  margin-top: auto;
  min-height: 44px; /* Touch target */
}

.event-button:active {
  transform: scale(0.98);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.event-tags {
  display: flex;
  gap: 5px;
  flex-wrap: wrap;
}

.event-tag {
  font-size: clamp(0.75rem, 2.5vw, 0.7rem);
  padding: 4px 10px;
  background-color: #f0f0f0;
  border-radius: 12px;
  color: #555;
}

/* =====================================================
   TABS - MOBILE FIRST
   ===================================================== */

.tabs-container {
  margin-top: 10px;
  margin-bottom: 2.5px;
  width: 100%;
  max-width: 100%;
  display: flex;
  justify-content: center;
  padding: 0; /* No horizontal padding */
}

.tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  justify-content: center;
}

.tab {
  padding: 4px 10px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 20px;
  background-color: rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.8);
  cursor: pointer;
  font-size: clamp(0.8rem, 2.5vw, 0.9rem);
  transition: all 0.3s ease;
  text-transform: capitalize;
  min-height: 28px;
  display: flex;
  align-items: center;
}

.tab:active {
  transform: scale(0.96);
}

.tab.active {
  background-color: #fff;
  color: #007bff;
  border-color: #fff;
  font-weight: 600;
}

/* =====================================================
   SECTION SPECIFIC OVERRIDES
   ===================================================== */

.section-blue .pill {
  background-color: #fff;
  color: #007bff;
}

.section-blue .section-description {
  color: rgba(255, 255, 255, 0.9);
}

.section-blue h2 {
  color: #fff;
}

/* =====================================================
   RESPONSIVE BREAKPOINTS - PROGRESSIVE ENHANCEMENT
   ===================================================== */

/* Small Mobile Phones: 480px+ */
@media (min-width: 480px) {
  .hero-content {
    gap: 20px;
    margin-top: -6vh;
  }

  .hero-logo {
    max-width: min(280px, 65vw);
  }

  .event-item {
    flex: 0 0 min(300px, 80vw);
  }

  .event-icon {
    height: 160px;
  }

  .scroll-indicator {
    bottom: 90px;
  }
}

/* Tablets: 768px+ */
@media (min-width: 768px) {
  .swiper-container {
    padding-bottom: 70px;
  }

  .swiper-section {
    padding: 30px;
  }

  .content {
    padding: 20px;
    gap: 20px;
  }

  .hero-content {
    gap: 25px;
    margin-top: -5vh;
  }

  .hero-logo {
    max-width: 320px;
  }

  .pill {
    padding: 8px 20px;
  }

  .section-description {
    max-width: 600px;
  }

  /* Event Cards */
  .event-item {
    flex: 0 0 320px;
  }

  .event-icon {
    height: 180px;
  }

  .event-content {
    padding: 20px;
    gap: 12px;
  }

  /* Show scroll arrows on tablet */
  .scroll-arrow {
    display: flex;
    width: 40px;
    height: 40px;
  }

  .scroll-arrow-left {
    left: -20px;
  }

  .scroll-arrow-right {
    right: -20px;
  }

  .events-scroll-wrapper {
    max-width: 1000px;
    padding: 0;
    margin-top: 20px;
  }

  .tabs-container {
    margin-top: 20px;
    margin-bottom: 0;
  }

  .tabs {
    gap: 10px;
  }

  .tab {
    padding: 8px 16px;
    min-height: 36px;
  }

  .scroll-indicator {
    bottom: 90px;
  }
}

/* Desktop: 1024px+ - Transition to top nav */
@media (min-width: 1024px) {
  /* Move navigation to top */
  .navbar {
    top: 0;
    bottom: auto;
    padding: 20px;
    background: transparent;
    box-shadow: none;
    backdrop-filter: none;
    justify-content: center;
    max-width: 60vw;
    margin: 0 auto;
    left: 0;
    right: 0;
  }

  /* Liquid glass background for footer section (desktop only) */
  .navbar.nav-translucent::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 80px; /* Cover navbar height including padding */
    background: rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.08);
    border-bottom: 1px solid rgba(255, 255, 255, 0.18);
    z-index: -1;
    pointer-events: none;
  }

  .nav-spacer {
    display: block; /* Show spacer on desktop */
    width: 120px; /* Spacing between divisions */
    flex-shrink: 0;
  }

  .nav-group {
    gap: 0;
    width: auto;
    justify-content: space-around;
  }

  .nav-group li {
    flex: 0 0 auto;
  }

  .nav-group a {
    padding: 8px 0;
    font-size: 0.95rem;
    min-height: auto;
  }

  .nav-group a:hover {
    background: transparent;
    opacity: 0.7;
  }

  .nav-group a:active {
    background: transparent;
    transform: none;
  }

  /* Restore text color switching for top nav */
  .text-white {
    color: #fff;
  }

  /* Remove bottom padding from container */
  .swiper-container {
    padding-bottom: 0;
  }

  .swiper-section {
    padding: 40px;
  }

  .content {
    padding: 20px;
  }

  .hero-content {
    margin-top: -5vh;
  }

  /* Event hover effects for desktop */
  .event-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
  }

  .event-item:active {
    transform: translateY(-4px);
  }

  .event-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  }

  .event-button:active {
    transform: translateY(-1px);
  }

  .tab:hover {
    background-color: rgba(255, 255, 255, 0.2);
    color: #fff;
  }

  .tab:active {
    transform: none;
  }

  .events-scroll-wrapper {
    max-width: 1200px;
  }

  .scroll-indicator {
    bottom: 40px;
  }
}

/* Large Desktop: 1280px+ */
@media (min-width: 1280px) {
  .hero-logo {
    max-width: 360px;
  }

  .content h2 {
    font-size: 3.2rem;
  }

  .section-description {
    font-size: 1.15rem;
    max-width: 700px;
  }
}

/* =====================================================
   MODAL STYLES - MOBILE FIRST
   ===================================================== */

/* Mobile first - gradient background: dark at top, white at bottom to blend with modal */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0.6) 0%,
    rgba(0, 0, 0, 0.6) 80%,
    rgba(255, 255, 255, 1) 100%
  );
  display: flex;
  justify-content: center;
  align-items: flex-end;
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
  padding: 0;
  overflow: hidden; /* Prevent background from showing through when dragging */
}

.modal-overlay:not(.hidden) {
  opacity: 1;
  visibility: visible;
}

.modal-content {
  background-color: #fff;
  border-radius: 24px 24px 0 0;
  width: 100%;
  max-height: 90vh;
  position: relative;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  overflow-x: hidden;
  transform: translateY(100%);
  transition: transform 0.3s ease;
}

.modal-overlay:not(.hidden) .modal-content {
  transform: translateY(0);
}

.modal-close {
  position: absolute;
  top: 12px;
  right: 12px;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(0, 0, 0, 0.1);
  width: 36px;
  height: 36px;
  border-radius: 8px;
  cursor: pointer;
  color: #333;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
  transition: all 0.2s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.modal-close:active {
  background: rgba(255, 255, 255, 1);
  transform: scale(0.95);
}

/* Icon Section (like card design) */
.modal-icon {
  width: 100%;
  height: 180px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 64px;
  background-color: #f3f4f6;
  flex-shrink: 0;
  border-radius: 24px 24px 0 0;
  user-select: none;
  -webkit-user-drag: none;
}

/* Body Content */
.modal-body {
  padding: 20px 24px 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex: 1;
  overflow-y: auto;
}

.modal-category {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #666;
  font-weight: 600;
}

.modal-title {
  font-family: "EB Garamond", serif;
  font-size: clamp(1.5rem, 5vw, 2rem);
  font-weight: 700;
  color: #1a1a1a;
  line-height: 1.2;
  margin: 0;
}

.modal-time {
  font-size: clamp(0.85rem, 2.5vw, 0.95rem);
  color: #666;
  font-weight: 500;
  margin-top: 4px;
}

.modal-location {
  font-size: clamp(0.85rem, 2.5vw, 0.95rem);
  color: #666;
  display: flex;
  align-items: center;
  gap: 4px;
}

.modal-description {
  font-size: clamp(0.9rem, 2.5vw, 1rem);
  color: #444;
  line-height: 1.6;
  margin-top: 8px;
}

/* Action Buttons Container */
.modal-actions {
  margin-top: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* Button Base Styles */
.modal-btn {
  padding: 14px 20px;
  border-radius: 8px;
  font-weight: 600;
  font-size: clamp(0.9rem, 2.5vw, 0.95rem);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all 0.2s ease;
  min-height: 48px;
  text-decoration: none;
}

/* Primary Button (Filled) */
.modal-btn-primary {
  background-color: #1a1a1a;
  color: #fff;
  border: 2px solid #1a1a1a;
}

.modal-btn-primary:active {
  background-color: #000;
  border-color: #000;
  transform: scale(0.98);
}

/* Secondary Button (Outline) */
.modal-btn-secondary {
  background-color: transparent;
  color: #1a1a1a;
  border: 2px solid #1a1a1a;
}

.modal-btn-secondary:active {
  background-color: rgba(0, 0, 0, 0.05);
  transform: scale(0.98);
}

/* Tablet and Desktop */
@media (min-width: 768px) {
  .modal-overlay {
    align-items: center;
    background: rgba(0, 0, 0, 0.6); /* Solid dark overlay for desktop/tablet */
  }

  .modal-content {
    width: 90%;
    max-width: 500px;
    height: auto;
    max-height: 90vh;
    border-radius: 16px;
  }

  .modal-close {
    top: 16px;
    right: 16px;
    width: 40px;
    height: 40px;
  }

  .modal-close:hover {
    background: #fff;
    transform: scale(1.05);
  }

  .modal-close:active {
    transform: scale(0.95);
  }

  .modal-icon {
    height: 200px;
    font-size: 72px;
    border-radius: 16px 16px 0 0;
  }

  .modal-body {
    padding: 24px 28px 28px;
  }

  .modal-btn-primary:hover {
    background-color: #000;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  }

  .modal-btn-primary:active {
    transform: translateY(-1px);
  }

  .modal-btn-secondary:hover {
    background-color: rgba(0, 0, 0, 0.05);
    transform: translateY(-1px);
  }
}

/* =====================================================
   TERM LINKS - CLICKABLE TERMS
   ===================================================== */

.term-link {
  font-family: "EB Garamond", serif;
  font-style: italic;
  font-size: 120%;
  text-decoration: underline;
  font-weight: 700;
  cursor: pointer;
  color: inherit;
  transition: opacity 0.2s ease;
}

.term-link:hover {
  opacity: 0.7;
}

.term-link:active {
  opacity: 0.5;
}

/* =====================================================
   DICTIONARY MODAL - MOBILE FIRST
   ===================================================== */

.dictionary-modal-content {
  background-color: #fff;
  border-radius: 24px 24px 0 0;
  width: 100%;
  max-height: 90vh;
  position: relative;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  overflow-x: hidden;
  transform: translateY(100%);
  transition: transform 0.3s ease;
}

.modal-overlay:not(.hidden) .dictionary-modal-content {
  transform: translateY(0);
}

.dictionary-content {
  padding: 60px 24px 32px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.dictionary-word {
  font-family: "EB Garamond", serif;
  font-size: clamp(2rem, 6vw, 2.5rem);
  font-weight: 700;
  color: #1a1a1a;
  margin: 0;
  line-height: 1.2;
  text-transform: capitalize;
}

.dictionary-transcription {
  font-family: "Lato", sans-serif;
  font-size: clamp(1rem, 3vw, 1.1rem);
  color: #666;
  font-style: italic;
  margin-top: -8px;
}

.dictionary-definition-section,
.dictionary-example-section {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.dictionary-section-title {
  font-family: "Lato", sans-serif;
  font-size: clamp(0.75rem, 2.5vw, 0.85rem);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #999;
  margin: 0;
}

.dictionary-definition,
.dictionary-example {
  font-family: "Lato", sans-serif;
  font-size: clamp(0.95rem, 3vw, 1.05rem);
  color: #333;
  line-height: 1.6;
  margin: 0;
}

.dictionary-example {
  font-style: italic;
  color: #555;
  padding-left: 16px;
  border-left: 3px solid #e0b12b;
}

/* Tablet and Desktop */
@media (min-width: 768px) {
  .dictionary-modal-content {
    width: 90%;
    max-width: 500px;
    height: auto;
    max-height: 90vh;
    border-radius: 16px;
  }

  .dictionary-content {
    padding: 70px 32px 40px;
    gap: 24px;
  }

  .dictionary-word {
    font-size: 2.75rem;
  }

  .dictionary-transcription {
    font-size: 1.15rem;
  }

  .dictionary-definition,
  .dictionary-example {
    font-size: 1.1rem;
  }
}

/* =====================================================
   CONFESSION MODAL - MOBILE FIRST
   ===================================================== */

.confession-modal-content {
  background-color: #fff;
  border-radius: 24px 24px 0 0;
  width: 100%;
  max-height: 90vh;
  position: relative;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  overflow-x: hidden;
  transform: translateY(100%);
  transition: transform 0.3s ease;
}

.modal-overlay:not(.hidden) .confession-modal-content {
  transform: translateY(0);
}

/* Header Section (like event modal) */
.confession-header {
  width: 100%;
  height: 180px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #f3f4f6;
  flex-shrink: 0;
  border-radius: 24px 24px 0 0;
}

.confession-icon {
  font-size: clamp(64px, 15vw, 72px);
  user-select: none;
  -webkit-user-drag: none;
}

/* Body Content */
.confession-content {
  padding: 20px 24px 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex: 1;
}

.confession-title {
  font-family: "EB Garamond", serif;
  font-size: clamp(1.5rem, 5vw, 2rem);
  font-weight: 700;
  color: #1a1a1a;
  margin: 0;
  line-height: 1.2;
  text-align: left;
}

.confession-summary {
  font-family: "Lato", sans-serif;
  font-size: clamp(0.9rem, 2.5vw, 1rem);
  color: #444;
  line-height: 1.6;
  margin: 0;
  margin-top: 8px;
  text-align: left;
}

.confession-btn {
  margin-top: 16px;
  padding: 14px 20px;
  background-color: #1a1a1a;
  color: #fff;
  border: 2px solid #1a1a1a;
  border-radius: 8px;
  font-weight: 600;
  font-size: clamp(0.9rem, 2.5vw, 0.95rem);
  text-decoration: none;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all 0.2s ease;
  min-height: 48px;
  width: 100%;
}

.confession-btn:active {
  background-color: #000;
  border-color: #000;
  transform: scale(0.98);
}

/* Tablet and Desktop */
@media (min-width: 768px) {
  .confession-modal-content {
    width: 90%;
    max-width: 500px;
    height: auto;
    max-height: 90vh;
    border-radius: 16px;
  }

  .confession-header {
    height: 200px;
    border-radius: 16px 16px 0 0;
  }

  .confession-icon {
    font-size: 80px;
  }

  .confession-content {
    padding: 24px 28px 28px;
  }

  .confession-title {
    font-size: 2rem;
  }

  .confession-summary {
    font-size: 1rem;
  }

  .confession-btn:hover {
    background-color: #000;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  }

  .confession-btn:active {
    transform: translateY(-1px);
  }
}

/* =====================================================
   FOOTER - PARALLAX REVEAL
   ===================================================== */

.site-footer {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 75vh; /* Mobile height */
  background-color: #fff;
  color: #333;
  z-index: 0; /* Behind content but interactive */
  display: flex;
  justify-content: center;
  pointer-events: none; /* Allow scrolling through footer background */
  align-items: center;
  text-align: center;
  overflow: hidden; /* Ensure big text doesn't spill out */
}

.footer-content {
  padding: 20px;
  position: relative;
  z-index: 1; /* Above the big text */
}

.footer-big-text {
  position: absolute;
  bottom: 20px; /* Sit partially behind mobile nav */
  left: 50%;
  transform: translateX(-50%);
  font-family: "Lato", sans-serif;
  font-size: 35vw; /* Massive size */
  font-weight: 900; /* Extra bold for impact */
  color: rgba(0, 0, 0, 0.03); /* Very subtle transparent black */
  line-height: 1;
  white-space: nowrap;
  z-index: 0;
  pointer-events: none;
  width: 100%;
  text-align: center;
}

.footer-grid {
  display: flex;
  flex-direction: column;
  gap: 30px;
  align-items: center;
  text-align: center;
}

.footer-col-logo {
  display: flex;
  justify-content: center;
  align-items: center;
}

.footer-logo {
  max-width: 120px;
  height: auto;
  filter: grayscale(
    100%
  ); /* Optional: make logo monochrome to fit footer style */
  opacity: 0.8;
  user-select: none;
  -webkit-user-drag: none;
  pointer-events: none;
}

.footer-col-info {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-contact-row {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-bottom: 10px;
  margin-top: 60px; /* Space before buttons */
}

.footer-contact-link {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #333;
  text-decoration: none;
  font-size: 1rem;
  font-weight: 600;
  transition: all 0.2s ease;
}

.footer-btn {
  padding: 10px 20px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-size: 0.85rem;
  pointer-events: auto; /* Restore clickability */
}

.footer-btn-primary {
  background-color: #1a1a1a;
  color: #fff;
  border: 1px solid #1a1a1a;
}

.footer-btn-primary:hover {
  background-color: #333;
  border-color: #333;
  opacity: 1;
  transform: translateY(-2px);
}

.footer-btn-secondary {
  background-color: transparent;
  color: #1a1a1a;
  border: 1px solid #ccc;
}

.footer-btn-secondary:hover {
  border-color: #1a1a1a;
  opacity: 1;
  transform: translateY(-2px);
}

.footer-slogan {
  font-size: 1.2rem;
  color: #555;
  font-style: italic;
  margin: 0;
  font-weight: 600;
}

.footer-copyright {
  font-size: 0.8rem;
  color: #888;
  margin-top: 10px;
}

@media (min-width: 768px) {
  .footer-grid {
    display: grid;
    grid-template-columns: 1fr 3fr; /* 1:3 split */
    text-align: right;
    align-items: center;
    gap: 40px;
  }

  .footer-col-logo {
    justify-content: flex-start;
    border-right: 1px solid #eee;
    padding-right: 20px;
  }

  .footer-logo {
    max-width: 100%;
  }

  .footer-col-info {
    align-items: flex-end;
    padding-right: 5%; /* Right margin */
  }

  .footer-contact-row {
    justify-content: flex-end;
  }

  /* Restore 50vh height on desktop */
  /* Restore 50vh height on desktop */
  .site-footer,
  .footer-spacer {
    height: 50vh !important; /* Force override if needed, or just ensure order */
  }
}

/* Spacer to allow scrolling "past" the last section to reveal footer */
.footer-spacer {
  height: 75vh; /* Matches mobile footer height */
  width: 100%;
  background: transparent;
  pointer-events: none;
  scroll-snap-align: end; /* Optional: snap to end of footer */
}

/* Ensure swiper container background is transparent where needed */
.swiper-container {
  background-color: transparent; /* Important for reveal */
}

/* Adjust last section to not cover the footer when scrolled past */
.swiper-section:last-of-type {
  margin-bottom: 0;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1); /* Shadow to separate from footer */
}

@media (min-width: 1024px) {
  .footer-big-text {
    bottom: -0.35em; /* Restore truncation on desktop */
  }
}
