/* ===================================
   Majjhima Nikaya Book Club
   V4 Bamboo Design — Hugo Site
   Fonts: Playfair Display + Inter (self-hosted via /css/fonts.css)
   =================================== */

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

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

body {
  font-family: "Inter", sans-serif;
  font-weight: 300;
  color: #1e2e25;
  background: #f0f4f1;
  line-height: 1.7;
  overflow-x: hidden;
  position: relative;
}

/* ========== SCROLL PROGRESS BAR ========== */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 0%;
  height: 2px;
  background: linear-gradient(90deg, #3d7a54, #5a9a6e, #3d7a54);
  z-index: 10000;
  transition: width 0.05s linear;
}

/* ========== BAMBOO BACKGROUND PATTERN ========== */
body::before {
  content: "";
  position: fixed;
  top: 0;
  left: 56px;
  width: calc(60vw - 56px);
  height: 100vh;
  pointer-events: none;
  z-index: 0;
  background: repeating-linear-gradient(
    90deg,
    transparent,
    transparent 47px,
    rgba(61, 122, 84, 0.035) 47px,
    rgba(61, 122, 84, 0.035) 48px,
    transparent 48px,
    transparent 112px,
    rgba(61, 122, 84, 0.025) 112px,
    rgba(61, 122, 84, 0.025) 113px,
    transparent 113px,
    transparent 189px,
    rgba(61, 122, 84, 0.04) 189px,
    rgba(61, 122, 84, 0.04) 190px,
    transparent 190px,
    transparent 260px,
    rgba(61, 122, 84, 0.02) 260px,
    rgba(61, 122, 84, 0.02) 261px,
    transparent 261px,
    transparent 340px
  );
}

/* ========== VERTICAL SIDE NAVIGATION ========== */
.side-nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 56px;
  height: 100vh;
  z-index: 200;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 24px 0;
  background: rgba(240, 244, 241, 0.85);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-right: 1px solid rgba(200, 213, 204, 0.6);
  transition: width 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  overflow: hidden;
}

.side-nav:hover,
.side-nav.is-hovered {
  width: 175px;
}

.side-nav-brand {
  font-family: "Playfair Display", serif;
  font-size: 0.85rem;
  color: #1e2e25;
  text-align: center;
  padding: 12px 0 24px;
  letter-spacing: 0.01em;
  opacity: 0;
  transform: translateX(-10px);
  transition:
    opacity 0.3s ease 0.15s,
    transform 0.3s ease 0.15s;
  pointer-events: none;
}

.side-nav:hover .side-nav-brand,
.side-nav.is-hovered .side-nav-brand {
  opacity: 1;
  transform: translateX(0);
}

.side-nav-brand-sub {
  display: block;
  font-family: "Inter", sans-serif;
  font-size: 0.7rem;
  font-weight: 300;
  color: #3d7a54;
  letter-spacing: 0.04em;
  margin-top: 2px;
}

.side-nav-logo {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 8px;
  flex-shrink: 0;
  text-decoration: none;
}

.side-nav-logo svg {
  width: 24px;
  height: 24px;
  opacity: 0.7;
}

.side-nav-divider {
  width: 24px;
  height: 1px;
  background: rgba(200, 213, 204, 0.6);
  margin: 8px 0;
  flex-shrink: 0;
  transition: width 0.3s ease;
}

.side-nav:hover .side-nav-divider,
.side-nav.is-hovered .side-nav-divider {
  width: 120px;
}

.side-nav-links {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  flex-grow: 1;
  width: 100%;
  padding: 0 6px;
}

.side-nav-links a {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 10px 10px;
  border-radius: 10px;
  text-decoration: none;
  color: #5a7562;
  transition: all 0.3s ease;
  white-space: nowrap;
  overflow: hidden;
}

.side-nav-links a:hover {
  color: #1e2e25;
  background: rgba(61, 122, 84, 0.08);
}

.side-nav-links a.active {
  color: #1e2e25;
  background: rgba(61, 122, 84, 0.1);
}

.side-nav-links a .nav-dot {
  width: 8px;
  height: 8px;
  min-width: 8px;
  border-radius: 50%;
  border: 1.5px solid #5a7562;
  transition: all 0.3s ease;
  margin-left: 6px;
}

.side-nav-links a.active .nav-dot {
  background: #3d7a54;
  border-color: #3d7a54;
}

.side-nav-links a:hover .nav-dot {
  border-color: #3d7a54;
}

.side-nav-links a .nav-label {
  font-family: "Inter", sans-serif;
  font-size: 0.82rem;
  font-weight: 400;
  opacity: 0;
  transform: translateX(-8px);
  transition:
    opacity 0.3s ease 0.1s,
    transform 0.3s ease 0.1s;
}

.side-nav:hover .side-nav-links a .nav-label,
.side-nav.is-hovered .side-nav-links a .nav-label {
  opacity: 1;
  transform: translateX(0);
}

.side-nav-divider-sm {
  width: 16px;
  height: 1px;
  background: rgba(200, 213, 204, 0.4);
  margin: 6px auto;
  flex-shrink: 0;
  transition: width 0.3s ease;
}

.side-nav:hover .side-nav-divider-sm,
.side-nav.is-hovered .side-nav-divider-sm {
  width: 100px;
}

.side-nav-lang {
  font-family: "Inter", sans-serif;
  font-size: 0.72rem;
  font-weight: 400;
  color: #5a7562;
  padding: 8px 0;
  white-space: nowrap;
  flex-shrink: 0;
}

.side-nav-lang a {
  color: #5a7562;
  text-decoration: none;
  transition: color 0.3s ease;
}

.side-nav-lang a:hover {
  color: #1e2e25;
}

.side-nav-lang span.active {
  color: #1e2e25;
  font-weight: 500;
}

/* ========== FIXED IMAGE PANEL ========== */
.image-panel {
  position: fixed;
  top: 0;
  right: 0;
  width: 40vw;
  height: 100vh;
  z-index: 1;
  overflow: hidden;
}

.image-panel img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  display: block;
}

.image-panel::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 180px;
  height: 100%;
  z-index: 2;
  background: linear-gradient(
    to right,
    #f0f4f1 0%,
    rgba(240, 244, 241, 0.95) 15%,
    rgba(240, 244, 241, 0.7) 40%,
    rgba(240, 244, 241, 0.3) 70%,
    rgba(240, 244, 241, 0) 100%
  );
}

.image-panel::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 120px;
  z-index: 2;
  background: linear-gradient(
    to top,
    rgba(240, 244, 241, 0.4) 0%,
    rgba(240, 244, 241, 0) 100%
  );
}

/* ========== CONTENT AREA ========== */
.content-area {
  position: relative;
  z-index: 2;
  width: 60vw;
  min-height: 100vh;
  margin-left: 56px;
  padding: 0 60px 0 40px;
}

.content-inner {
  max-width: 560px;
  margin: 0 auto;
  padding-top: 0;
}

/* ========== SECTIONS ========== */
section {
  scroll-margin-top: 20px;
}

.fade-in {
  opacity: 0;
  transform: translateX(-30px);
  transition:
    opacity 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94),
    transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.fade-in.visible {
  opacity: 1;
  transform: translateX(0);
}

/* ========== THIN DIVIDER (hero/about internal) ========== */
.divider-thin {
  height: 1px;
  margin: 16px 0;
  background: linear-gradient(
    to right,
    rgba(61, 122, 84, 0) 0%,
    rgba(61, 122, 84, 0.2) 30%,
    rgba(61, 122, 84, 0.2) 70%,
    rgba(61, 122, 84, 0) 100%
  );
}

/* ========== DHARMA WHEEL DIVIDERS ========== */
.section-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 60px 0;
  gap: 0;
}

.section-divider .divider-line {
  flex: 1;
  height: 1px;
}

.section-divider .divider-line-left {
  background: linear-gradient(
    to right,
    rgba(61, 122, 84, 0) 0%,
    rgba(61, 122, 84, 0.25) 100%
  );
}

.section-divider .divider-line-right {
  background: linear-gradient(
    to left,
    rgba(61, 122, 84, 0) 0%,
    rgba(61, 122, 84, 0.25) 100%
  );
}

.section-divider .divider-ornament {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 16px;
  opacity: 0.3;
  transition: opacity 0.6s ease;
}

.section-divider.visible .divider-ornament {
  opacity: 0.4;
}

.section-divider .divider-ornament svg {
  width: 28px;
  height: 28px;
}

/* ========== HERO + ABOUT COMBINED (100vh) ========== */
.hero-about-wrapper {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-top: 80px;
  padding-bottom: 40px;
  position: relative;
}

/* ========== HERO ========== */
.hero {
  padding-bottom: 0;
  margin-bottom: 0;
}

.hero-pali {
  font-family: "Inter", sans-serif;
  font-size: 0.8rem;
  font-weight: 400;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: #5a7562;
  margin-bottom: 16px;
  opacity: 0;
  animation: paliReveal 1s 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}

@keyframes paliReveal {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero h1 {
  font-family: "Playfair Display", serif;
  font-size: clamp(2.4rem, 4.5vw, 3.4rem);
  font-weight: 400;
  color: #1e2e25;
  line-height: 1.15;
  margin-bottom: 14px;
  opacity: 0;
  animation: heroTitleIn 1s 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}

@keyframes heroTitleIn {
  from {
    opacity: 0;
    transform: translateX(-40px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.hero .subtitle {
  font-family: "Inter", sans-serif;
  font-size: 1rem;
  font-weight: 300;
  color: #5a7562;
  line-height: 1.6;
  max-width: 460px;
  opacity: 0;
  animation: heroSubIn 1s 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}

@keyframes heroSubIn {
  from {
    opacity: 0;
    transform: translateX(-30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.hero-line {
  width: 60px;
  height: 1px;
  background: linear-gradient(to right, #3d7a54, transparent);
  margin-top: 16px;
  opacity: 0;
  animation: heroSubIn 1s 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}

/* ========== ABOUT (compact, within 100vh) ========== */
.about-compact {
  margin-top: 0;
}

.about-compact h2 {
  font-family: "Playfair Display", serif;
  font-size: 1.5rem;
  font-weight: 400;
  color: #1e2e25;
  margin-bottom: 14px;
  opacity: 0;
  animation: aboutIn 0.8s 0.9s ease forwards;
}

@keyframes aboutIn {
  from {
    opacity: 0;
    transform: translateX(-20px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.about-compact > p {
  font-size: 0.92rem;
  line-height: 1.7;
  color: #2a3e31;
  margin-bottom: 16px;
  opacity: 0;
  animation: aboutIn 0.8s 1s ease forwards;
}

.about-features-compact {
  display: flex;
  flex-direction: column;
  gap: 10px;
  opacity: 0;
  animation: aboutIn 0.8s 1.1s ease forwards;
}

a.about-feature-compact {
  text-decoration: none;
  color: inherit;
}

.about-feature-compact {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 16px;
  background: rgba(61, 122, 84, 0.04);
  border-radius: 10px;
  border-left: 2px solid rgba(61, 122, 84, 0.2);
  transition: all 0.3s ease;
  cursor: pointer;
}

.about-feature-compact:hover {
  background: rgba(61, 122, 84, 0.07);
  border-left-color: #3d7a54;
  transform: translateX(4px);
}

.about-feature-compact .feature-icon {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #3d7a54;
}

.about-feature-compact .feature-text {
  font-size: 0.88rem;
  color: #2a3e31;
  line-height: 1.5;
}

/* ========== SCROLL DOWN INDICATOR ========== */
.scroll-down-indicator {
  display: flex;
  flex-direction: column;
  align-items: center;
  align-self: flex-start;
  gap: 12px;
  margin-top: auto;
  padding-top: 20px;
  opacity: 0;
  animation: scrollIndicatorIn 1s 1.5s ease forwards;
  cursor: pointer;
}

.scroll-down-indicator.hidden {
  opacity: 0;
  transition: opacity 0.5s ease;
  pointer-events: none;
}

.scroll-down-indicator:hover .scroll-down-text {
  color: #3d7a54;
}

.scroll-down-text {
  font-family: "Inter", sans-serif;
  font-size: 0.7rem;
  font-weight: 400;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #5a7562;
  transition: color 0.3s ease;
}

.scroll-down-arrow {
  width: 12px;
  height: 40px;
  position: relative;
  overflow: hidden;
  display: flex;
  justify-content: center;
}

.scroll-down-arrow::after {
  content: "";
  position: absolute;
  top: -40px;
  left: 50%;
  transform: translateX(-50%);
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, transparent, #3d7a54);
  animation: scrollArrowMove 2s infinite ease-in-out;
}

@keyframes scrollArrowMove {
  0% {
    top: -40px;
    opacity: 0;
  }
  30% {
    opacity: 1;
  }
  100% {
    top: 40px;
    opacity: 0;
  }
}

.scroll-down-chevron {
  width: 12px;
  height: 12px;
  border-right: 1px solid #3d7a54;
  border-bottom: 1px solid #3d7a54;
  transform: rotate(45deg);
}

@keyframes chevronBounce {
  0%,
  100% {
    transform: rotate(45deg) translateY(0);
    opacity: 0.4;
  }
  50% {
    transform: rotate(45deg) translateY(4px);
    opacity: 1;
  }
}

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

/* ========== STATS COUNTER ========== */
.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 0;
}

.stat-item {
  text-align: center;
  padding: 24px 14px;
  background: rgba(255, 255, 255, 0.45);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(200, 213, 204, 0.5);
  border-radius: 14px;
  transition: all 0.4s ease;
}

.stat-item:hover {
  border-color: rgba(61, 122, 84, 0.25);
  background: rgba(255, 255, 255, 0.6);
  transform: translateY(-2px);
  box-shadow: 0 4px 20px rgba(30, 46, 37, 0.06);
}

.stat-number {
  font-family: "Playfair Display", serif;
  font-size: 2rem;
  color: #3d7a54;
  line-height: 1;
  margin-bottom: 6px;
}

.stat-suffix {
  font-family: "Playfair Display", serif;
  font-size: 1.3rem;
  color: #3d7a54;
}

.stat-label {
  font-family: "Inter", sans-serif;
  font-size: 0.78rem;
  font-weight: 300;
  color: #5a7562;
  letter-spacing: 0.03em;
}

/* ========== SUBSCRIBE ========== */
.subscribe {
  margin-bottom: 80px;
}

.subscribe h2 {
  font-family: "Playfair Display", serif;
  font-size: 1.8rem;
  font-weight: 400;
  color: #1e2e25;
  margin-bottom: 16px;
}

.subscribe > p {
  font-size: 0.95rem;
  color: #5a7562;
  line-height: 1.7;
  margin-bottom: 36px;
  max-width: 500px;
}

.form-container {
  background: rgba(255, 255, 255, 0.5);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid #c8d5cc;
  border-radius: 16px;
  padding: 36px 32px;
  position: relative;
  overflow: hidden;
}

/* ========== FLOATING LABELS ========== */
.form-group {
  margin-bottom: 22px;
  position: relative;
}

.form-group input[type="text"],
.form-group input[type="email"] {
  width: 100%;
  padding: 18px 16px 8px;
  font-family: "Inter", sans-serif;
  font-size: 0.95rem;
  font-weight: 300;
  color: #1e2e25;
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid #c8d5cc;
  border-radius: 10px;
  outline: none;
  transition: all 0.35s ease;
}

.form-group input[type="text"]:focus,
.form-group input[type="email"]:focus {
  border-color: #3d7a54;
  box-shadow:
    0 0 0 3px rgba(61, 122, 84, 0.1),
    0 0 16px rgba(61, 122, 84, 0.06);
  background: rgba(255, 255, 255, 0.9);
}

/* Floating label positioning */
.form-group .float-label {
  position: absolute;
  left: 16px;
  top: 14px;
  font-size: 0.92rem;
  font-weight: 300;
  color: #8a9e90;
  pointer-events: none;
  transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  transform-origin: left top;
  background: transparent;
  padding: 0 4px;
}

.form-group .float-label .required {
  color: #3d7a54;
}

.form-group .float-label .optional {
  font-size: 0.78rem;
  color: #a3b5a9;
  font-weight: 300;
}

/* Floating label active states */
.form-group input:focus + .float-label,
.form-group input.has-value + .float-label {
  top: -8px;
  left: 12px;
  font-size: 0.72rem;
  color: #3d7a54;
  background: rgba(248, 251, 249, 0.95);
  padding: 0 6px;
  border-radius: 4px;
}

/* Error state for floating label inputs */
.form-group input[type="text"].input-error,
.form-group input[type="email"].input-error {
  border-color: #b33a3a;
}

.form-group input[type="text"].input-error:focus,
.form-group input[type="email"].input-error:focus {
  box-shadow: 0 0 0 3px rgba(179, 58, 58, 0.2);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

/* ========== CHECKBOXES ========== */
.checkbox-group {
  margin-bottom: 16px;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  cursor: pointer;
}

.checkbox-group input[type="checkbox"] {
  appearance: none;
  -webkit-appearance: none;
  width: 18px;
  height: 18px;
  min-width: 18px;
  border: 1.5px solid #c8d5cc;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.7);
  cursor: pointer;
  transition: all 0.25s ease;
  margin-top: 2px;
  position: relative;
  flex-shrink: 0;
}

.checkbox-group input[type="checkbox"]:checked {
  background: #3d7a54;
  border-color: #3d7a54;
}

.checkbox-group input[type="checkbox"]:checked::after {
  content: "";
  position: absolute;
  top: 2px;
  left: 5px;
  width: 5px;
  height: 9px;
  border: solid #fff;
  border-width: 0 1.5px 1.5px 0;
  transform: rotate(45deg);
}

.checkbox-group input[type="checkbox"]:focus {
  box-shadow: 0 0 0 3px rgba(61, 122, 84, 0.12);
}

.checkbox-group label,
.checkbox-group .checkbox-text {
  font-size: 0.82rem;
  color: #5a7562;
  line-height: 1.5;
  cursor: pointer;
}

.checkbox-group label a,
.checkbox-group .checkbox-text a {
  color: #3d7a54;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.checkbox-group label a:hover,
.checkbox-group .checkbox-text a:hover {
  color: #1e2e25;
}

/* ========== HONEYPOT (hidden from humans) ========== */
.form-hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
}

/* ========== FIELD ERRORS ========== */
.field-error {
  display: block;
  font-size: 0.85rem;
  color: #b33a3a;
  margin-top: 0.25rem;
}

.field-error:empty {
  display: none;
}

/* ========== FORM MESSAGES ========== */
.form-message {
  margin-top: 1rem;
  padding: 0;
  border-radius: 4px;
  font-size: 0.95rem;
  line-height: 1.5;
}

.form-message:empty {
  display: none;
}

.form-message.msg-success {
  display: block;
  padding: 0.85rem 1rem;
  background-color: rgba(61, 122, 84, 0.08);
  color: #2d5e3f;
  border: 1px solid rgba(61, 122, 84, 0.2);
  border-radius: 10px;
}

.form-message.msg-error {
  display: block;
  padding: 0.85rem 1rem;
  background-color: #fbe9e7;
  color: #b33a3a;
  border: 1px solid #ef9a9a;
  border-radius: 10px;
}

/* ========== SUBMIT BUTTON ========== */
.btn-submit {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 10px;
  padding: 14px 36px;
  font-family: "Inter", sans-serif;
  font-size: 0.9rem;
  font-weight: 400;
  color: #fff;
  background: #2d5e3f;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  letter-spacing: 0.02em;
  position: relative;
  overflow: hidden;
}

.btn-submit::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.1),
    transparent
  );
  transition: left 0.5s ease;
}

.btn-submit:hover {
  background: #245233;
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(45, 94, 63, 0.25);
}

.btn-submit:hover::before {
  left: 100%;
}

.btn-submit:active {
  transform: translateY(0);
  box-shadow: 0 2px 8px rgba(45, 94, 63, 0.2);
}

.btn-submit:disabled {
  background-color: #7a9e84;
  cursor: not-allowed;
  opacity: 0.7;
  transform: none;
  box-shadow: none;
}

.btn-submit svg {
  width: 16px;
  height: 16px;
  transition: transform 0.3s ease;
}

.btn-submit:hover svg {
  transform: translateX(3px);
}

/* ========== SUCCESS ANIMATION — LOTUS / SADHU ========== */
.success-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: rgba(240, 244, 241, 0.94);
  backdrop-filter: blur(4px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.5s ease;
  z-index: 10;
  border-radius: 16px;
}

.success-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.lotus-container {
  position: relative;
  width: 120px;
  height: 120px;
  margin-bottom: 20px;
}

.lotus-petal {
  position: absolute;
  width: 20px;
  height: 45px;
  bottom: 35px;
  left: 50%;
  margin-left: -10px;
  border-radius: 50% 50% 50% 50% / 70% 70% 30% 30%;
  opacity: 0;
  transform-origin: bottom center;
}

/* Outer petals */
.lotus-petal:nth-child(1) {
  background: linear-gradient(
    to top,
    rgba(61, 122, 84, 0.3),
    rgba(61, 122, 84, 0.7)
  );
  --r: -60deg;
}
.lotus-petal:nth-child(2) {
  background: linear-gradient(
    to top,
    rgba(61, 122, 84, 0.3),
    rgba(61, 122, 84, 0.7)
  );
  --r: -30deg;
}
.lotus-petal:nth-child(3) {
  background: linear-gradient(
    to top,
    rgba(61, 122, 84, 0.35),
    rgba(61, 122, 84, 0.8)
  );
  --r: 0deg;
}
.lotus-petal:nth-child(4) {
  background: linear-gradient(
    to top,
    rgba(61, 122, 84, 0.3),
    rgba(61, 122, 84, 0.7)
  );
  --r: 30deg;
}
.lotus-petal:nth-child(5) {
  background: linear-gradient(
    to top,
    rgba(61, 122, 84, 0.3),
    rgba(61, 122, 84, 0.7)
  );
  --r: 60deg;
}
/* Inner petals (brighter, smaller) */
.lotus-petal:nth-child(6) {
  width: 16px;
  height: 36px;
  margin-left: -8px;
  background: linear-gradient(
    to top,
    rgba(90, 154, 110, 0.4),
    rgba(90, 154, 110, 0.9)
  );
  --r: -45deg;
}
.lotus-petal:nth-child(7) {
  width: 16px;
  height: 36px;
  margin-left: -8px;
  background: linear-gradient(
    to top,
    rgba(90, 154, 110, 0.4),
    rgba(90, 154, 110, 0.9)
  );
  --r: -15deg;
}
.lotus-petal:nth-child(8) {
  width: 16px;
  height: 36px;
  margin-left: -8px;
  background: linear-gradient(
    to top,
    rgba(90, 154, 110, 0.5),
    rgba(90, 154, 110, 1)
  );
  --r: 15deg;
}
.lotus-petal:nth-child(9) {
  width: 16px;
  height: 36px;
  margin-left: -8px;
  background: linear-gradient(
    to top,
    rgba(90, 154, 110, 0.4),
    rgba(90, 154, 110, 0.9)
  );
  --r: 45deg;
}
/* Center dot */
.lotus-petal:nth-child(10) {
  width: 10px;
  height: 10px;
  margin-left: -5px;
  bottom: 55px;
  border-radius: 50%;
  background: radial-gradient(circle, #5a9a6e, #3d7a54);
  box-shadow: 0 0 20px rgba(90, 154, 110, 0.5);
}

/* Petals animate only when overlay is active */
.success-overlay.active .lotus-petal:nth-child(1) {
  animation: petalBloom 0.8s 0.2s ease-out forwards;
}
.success-overlay.active .lotus-petal:nth-child(2) {
  animation: petalBloom 0.8s 0.3s ease-out forwards;
}
.success-overlay.active .lotus-petal:nth-child(3) {
  animation: petalBloom 0.8s 0.4s ease-out forwards;
}
.success-overlay.active .lotus-petal:nth-child(4) {
  animation: petalBloom 0.8s 0.5s ease-out forwards;
}
.success-overlay.active .lotus-petal:nth-child(5) {
  animation: petalBloom 0.8s 0.6s ease-out forwards;
}
.success-overlay.active .lotus-petal:nth-child(6) {
  animation: petalBloom 0.8s 0.7s ease-out forwards;
}
.success-overlay.active .lotus-petal:nth-child(7) {
  animation: petalBloom 0.8s 0.8s ease-out forwards;
}
.success-overlay.active .lotus-petal:nth-child(8) {
  animation: petalBloom 0.8s 0.9s ease-out forwards;
}
.success-overlay.active .lotus-petal:nth-child(9) {
  animation: petalBloom 0.8s 1s ease-out forwards;
}
.success-overlay.active .lotus-petal:nth-child(10) {
  animation: centerGlow 0.6s 1.2s ease-out forwards;
}

@keyframes petalBloom {
  0% {
    opacity: 0;
    transform: rotate(var(--r, 0deg)) translateY(15px) scaleY(0.3);
  }
  100% {
    opacity: 1;
    transform: rotate(var(--r, 0deg)) translateY(0) scaleY(1);
  }
}

@keyframes centerGlow {
  0% {
    opacity: 0;
    transform: scale(0);
  }
  60% {
    opacity: 1;
    transform: scale(1.3);
  }
  100% {
    opacity: 1;
    transform: scale(1);
  }
}

.success-text {
  font-family: "Playfair Display", serif;
  font-size: 1.2rem;
  color: #1e2e25;
  opacity: 0;
}

.success-overlay.active .success-text {
  animation: successTextIn 0.6s 1.4s ease forwards;
}

.success-subtext {
  font-family: "Inter", sans-serif;
  font-size: 0.85rem;
  font-weight: 300;
  color: #5a7562;
  margin-top: 8px;
  opacity: 0;
}

.success-overlay.active .success-subtext {
  animation: successTextIn 0.6s 1.6s ease forwards;
}

@keyframes successTextIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Floating particles */
.success-overlay.active .lotus-container::before,
.success-overlay.active .lotus-container::after {
  content: "";
  position: absolute;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: rgba(61, 122, 84, 0.5);
}

.success-overlay.active .lotus-container::before {
  top: 10px;
  left: 20px;
  animation: floatParticle 3s 1.2s infinite ease-in-out;
}

.success-overlay.active .lotus-container::after {
  top: 15px;
  right: 20px;
  animation: floatParticle 3s 1.5s infinite ease-in-out;
}

@keyframes floatParticle {
  0%,
  100% {
    transform: translateY(0) scale(1);
    opacity: 0.5;
  }
  50% {
    transform: translateY(-15px) scale(1.3);
    opacity: 1;
  }
}

/* ========== TELEGRAM ========== */
.telegram {
  text-align: left;
  margin-bottom: 80px;
}

.telegram h2 {
  font-family: "Playfair Display", serif;
  font-size: 1.8rem;
  font-weight: 400;
  color: #1e2e25;
  margin-bottom: 16px;
}

.telegram p {
  font-size: 0.95rem;
  color: #5a7562;
  line-height: 1.7;
  margin-bottom: 28px;
}

.telegram-links {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
}

.telegram-links .telegram-link {
  flex: 1;
  text-align: center;
  justify-content: center;
}

.telegram-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 28px;
  background: rgba(61, 122, 84, 0.08);
  border: 1px solid rgba(61, 122, 84, 0.2);
  border-radius: 12px;
  text-decoration: none;
  color: #2d5e3f;
  font-size: 0.9rem;
  font-weight: 400;
  transition: all 0.35s ease;
}

.telegram-link:hover {
  background: rgba(61, 122, 84, 0.15);
  border-color: rgba(61, 122, 84, 0.35);
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(45, 94, 63, 0.1);
}

.telegram-link svg {
  width: 20px;
  height: 20px;
  fill: #3d7a54;
}

.telegram-link-chat {
  background: rgba(61, 122, 84, 0.03);
  border-color: rgba(61, 122, 84, 0.12);
  color: #4a8c62;
}

.telegram-link-chat:hover {
  background: rgba(61, 122, 84, 0.1);
  border-color: rgba(61, 122, 84, 0.25);
}

.telegram-link-chat svg {
  fill: #4a8c62;
}

/* ========== FOOTER ========== */
footer {
  padding: 40px 0 48px;
  border-top: 1px solid #c8d5cc;
  margin-top: 40px;
}

.footer-links {
  display: flex;
  gap: 24px;
  margin-bottom: 16px;
}

.footer-links a {
  font-size: 0.82rem;
  color: #5a7562;
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-links a:hover {
  color: #1e2e25;
}

.footer-links span {
  color: #c8d5cc;
}

.footer-copy {
  font-size: 0.78rem;
  color: #5a7562;
}

/* ========== SELECTION COLOR ========== */
::selection {
  background: rgba(61, 122, 84, 0.15);
  color: #1e2e25;
}

/* ========== PAGE CONTENT (non-home pages) ========== */
.page-content {
  padding-top: 80px;
  padding-bottom: 40px;
}

.page-content h1 {
  font-family: "Playfair Display", serif;
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  font-weight: 400;
  color: #1e2e25;
  line-height: 1.2;
  margin-bottom: 1.5rem;
}

.page-content h2 {
  font-family: "Playfair Display", serif;
  font-size: 1.5rem;
  font-weight: 400;
  color: #1e2e25;
  margin-top: 2rem;
  margin-bottom: 0.75rem;
}

.page-content h3 {
  font-family: "Inter", sans-serif;
  font-size: 1.1rem;
  font-weight: 500;
  color: #2a3e31;
  margin-top: 1.5rem;
  margin-bottom: 0.5rem;
}

.page-content p {
  font-size: 0.95rem;
  line-height: 1.7;
  color: #2a3e31;
  margin-bottom: 1rem;
}

.page-content ul,
.page-content ol {
  margin-bottom: 1rem;
  padding-left: 1.5rem;
}

.page-content li {
  margin-bottom: 0.35rem;
  font-size: 0.95rem;
  line-height: 1.6;
  color: #2a3e31;
}

.page-content a {
  color: #3d7a54;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.page-content a.btn {
  color: #fff;
  text-decoration: none;
}

.page-content a.btn-outline {
  color: #2d5e3f;
  text-decoration: none;
}

.page-content a.btn-outline:hover {
  color: #fff;
}

.page-content a:hover {
  color: #1e2e25;
}

.page-content hr {
  border: none;
  border-top: 1px solid #c8d5cc;
  margin: 2rem 0;
}

.page-content strong {
  color: #1e2e25;
  font-weight: 500;
}

.page-content em {
  font-style: italic;
  color: #5a7562;
}

.page-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0;
  font-size: 0.95rem;
}

.page-content th {
  text-align: left;
  padding: 0.65rem 0.85rem;
  background-color: rgba(61, 122, 84, 0.06);
  color: #1e2e25;
  font-weight: 500;
  border-bottom: 2px solid #c8d5cc;
}

.page-content td {
  padding: 0.55rem 0.85rem;
  border-bottom: 1px solid rgba(200, 213, 204, 0.5);
}

.page-content tr:hover td {
  background-color: rgba(61, 122, 84, 0.03);
}

/* ========== BUTTONS (for content pages) ========== */
.btn {
  display: inline-block;
  padding: 0.65rem 1.5rem;
  background-color: #2d5e3f;
  color: #fff;
  text-decoration: none;
  border: none;
  border-radius: 10px;
  font-size: 0.9rem;
  font-weight: 400;
  cursor: pointer;
  transition: all 0.35s ease;
  line-height: 1.4;
}

.btn:hover {
  background-color: #245233;
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(45, 94, 63, 0.15);
}

.btn:focus-visible {
  outline: 3px solid rgba(61, 122, 84, 0.3);
  outline-offset: 2px;
}

.btn-outline {
  background-color: transparent;
  color: #2d5e3f;
  border: 1.5px solid rgba(61, 122, 84, 0.3);
}

.btn-outline:hover {
  background-color: #2d5e3f;
  color: #fff;
  border-color: #2d5e3f;
}

/* CTA Buttons Group */
.cta-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin: 1.5rem 0;
}

/* ========== TEAM CARDS (About page) ========== */
.team-section {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
  margin-top: 1rem;
}

.team-card {
  overflow: hidden;
  padding: 1.75rem;
  background: rgba(255, 255, 255, 0.5);
  border: 1px solid rgba(200, 213, 204, 0.5);
  border-radius: 14px;
  transition: all 0.3s ease;
}

.team-card:hover {
  box-shadow: 0 4px 20px rgba(30, 46, 37, 0.06);
  border-color: rgba(61, 122, 84, 0.2);
}

.team-photo {
  float: left;
  width: 160px;
  height: 200px;
  overflow: hidden;
  border-radius: 10px;
  margin: 0 1.5rem 0.75rem 0;
  shape-outside: inset(0 0 0 0 round 10px);
}

.team-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 15%;
  filter: grayscale(15%);
  transition: filter 0.3s;
}

.team-card:hover .team-photo img {
  filter: grayscale(0%);
}

.team-card h2 {
  font-family: "Playfair Display", serif;
  font-size: 1.35rem;
  font-weight: 400;
  margin-top: 0;
  margin-bottom: 0.25rem;
  color: #1e2e25;
}

.team-role {
  font-size: 0.82rem;
  color: #3d7a54;
  font-weight: 500;
  margin-bottom: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.team-card p {
  margin-bottom: 0.65rem;
  font-size: 0.92rem;
  line-height: 1.65;
  color: #2a3e31;
}

.team-card ul {
  padding-left: 1.25rem;
  margin-bottom: 0.75rem;
}

.team-card li {
  font-size: 0.92rem;
  line-height: 1.6;
  margin-bottom: 0.35rem;
  color: #2a3e31;
}

/* ========== SUBSCRIBE PAGE (standalone) ========== */
.subscribe-page {
  padding-top: 80px;
  padding-bottom: 40px;
}

.subscribe-page h1 {
  font-family: "Playfair Display", serif;
  font-size: 1.8rem;
  font-weight: 400;
  color: #1e2e25;
  margin-bottom: 1rem;
}

.subscribe-page > p {
  font-size: 0.95rem;
  color: #5a7562;
  line-height: 1.7;
  margin-bottom: 1.5rem;
}

/* ========== MOBILE BOTTOM NAV ========== */
.mobile-nav {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 200;
  background: rgba(240, 244, 241, 0.9);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-top: 1px solid rgba(200, 213, 204, 0.6);
  padding: 6px 8px;
  padding-bottom: max(6px, env(safe-area-inset-bottom));
  justify-content: space-between;
  align-items: center;
}

.mobile-nav a,
.mobile-nav .mobile-nav-more-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  text-decoration: none;
  color: #5a7562;
  font-size: 0.6rem;
  font-weight: 400;
  padding: 6px 8px;
  border-radius: 8px;
  transition: all 0.3s ease;
  white-space: nowrap;
  flex: 1;
  min-width: 0;
}

.mobile-nav .mobile-nav-more-btn {
  background: none;
  border: none;
  cursor: pointer;
  font-family: "Inter", sans-serif;
}

.mobile-nav a.active,
.mobile-nav .mobile-nav-more-btn.active {
  color: #1e2e25;
}

.mobile-nav a .mobile-nav-dot,
.mobile-nav .mobile-nav-more-btn .mobile-nav-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  border: 1.5px solid #5a7562;
  transition: all 0.3s ease;
}

.mobile-nav a.active .mobile-nav-dot,
.mobile-nav .mobile-nav-more-btn.active .mobile-nav-dot {
  background: #3d7a54;
  border-color: #3d7a54;
}

/* ========== MOBILE NAV BOTTOM SHEET ========== */
.mobile-nav-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.3);
  z-index: 199;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.mobile-nav-overlay.is-open {
  opacity: 1;
  pointer-events: auto;
}

.mobile-nav-sheet {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 201;
  background: rgba(240, 244, 241, 0.97);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-top-left-radius: 16px;
  border-top-right-radius: 16px;
  padding: 12px 20px;
  padding-bottom: max(20px, calc(env(safe-area-inset-bottom) + 60px));
  transform: translateY(100%);
  transition: transform 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  box-shadow: 0 -4px 24px rgba(30, 46, 37, 0.1);
}

.mobile-nav-sheet.is-open {
  transform: translateY(0);
}

.mobile-nav-sheet-handle {
  width: 36px;
  height: 4px;
  background: rgba(200, 213, 204, 0.6);
  border-radius: 2px;
  margin: 0 auto 16px;
}

.mobile-nav-sheet a {
  display: block;
  padding: 14px 16px;
  text-decoration: none;
  color: #5a7562;
  font-family: "Inter", sans-serif;
  font-size: 0.92rem;
  font-weight: 400;
  border-radius: 10px;
  transition: all 0.2s ease;
}

.mobile-nav-sheet a:hover,
.mobile-nav-sheet a:active {
  background: rgba(61, 122, 84, 0.08);
  color: #1e2e25;
}

.mobile-nav-sheet a.active {
  color: #1e2e25;
  background: rgba(61, 122, 84, 0.1);
  font-weight: 500;
}

/* Mobile floating language switcher (hidden on desktop) */
.mobile-lang-float {
  display: none;
  position: fixed;
  top: 16px;
  right: 16px;
  z-index: 150;
  align-items: center;
  gap: 0;
  background: rgba(30, 46, 37, 0.6);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-radius: 20px;
  padding: 3px;
  box-shadow: 0 2px 12px rgba(30, 46, 37, 0.2);
  transition:
    transform 0.3s ease,
    opacity 0.3s ease;
}

.mobile-lang-float.is-hidden {
  transform: translateY(-60px);
  opacity: 0;
  pointer-events: none;
}

.mobile-lang-float a,
.mobile-lang-float span {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 28px;
  border-radius: 16px;
  font-family: "Inter", sans-serif;
  font-size: 0.65rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-decoration: none;
  color: rgba(240, 244, 241, 0.6);
  transition: all 0.25s ease;
}

.mobile-lang-float span.active {
  background: rgba(240, 244, 241, 0.95);
  color: #1e2e25;
  box-shadow: 0 1px 6px rgba(0, 0, 0, 0.15);
}

.mobile-lang-float a:hover,
.mobile-lang-float a:active {
  color: rgba(240, 244, 241, 0.9);
}

/* ========== MOBILE RESPONSIVE ========== */
@media (max-width: 1024px) {
  html {
    scroll-padding-top: 20px;
  }

  /* Hide side nav on mobile */
  .side-nav {
    display: none !important;
  }

  /* Show bottom nav + floating lang switcher on mobile */
  .mobile-nav {
    display: flex !important;
  }

  .mobile-lang-float {
    display: flex;
  }

  .mobile-nav-overlay,
  .mobile-nav-sheet {
    display: block;
  }

  .image-panel {
    position: relative;
    width: 100%;
    height: 40vh;
    min-height: 300px;
  }

  .image-panel img {
    object-position: center 65%;
  }

  .image-panel::before {
    display: none;
  }

  .image-panel::after {
    height: 100px;
    background: linear-gradient(
      to top,
      #f0f4f1 0%,
      rgba(240, 244, 241, 0.8) 40%,
      rgba(240, 244, 241, 0) 100%
    );
  }

  body::before {
    left: 0;
    width: 100%;
  }

  .content-area {
    width: 100%;
    margin-left: 0;
    padding: 0 32px;
  }

  .content-inner {
    max-width: 600px;
    padding-top: 0;
  }

  .hero-about-wrapper {
    min-height: auto;
    padding-top: 40px;
    padding-bottom: 30px;
  }

  .hero h1 {
    font-size: clamp(2rem, 7vw, 2.8rem);
  }

  .scroll-down-indicator {
    display: none;
  }

  section {
    scroll-margin-top: 20px;
  }

  .stats {
    gap: 10px;
  }

  .stat-item {
    padding: 18px 10px;
  }

  .stat-number {
    font-size: 1.6rem;
  }

  .form-row {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .form-row .form-group {
    margin-bottom: 6px;
  }

  .page-content {
    padding-top: 40px;
  }

  .subscribe-page {
    padding-top: 40px;
  }

  /* Team cards mobile */
  .team-card {
    padding: 1.25rem;
  }

  .team-photo {
    width: 120px;
    height: 150px;
  }

  .cta-buttons {
    flex-direction: column;
  }

  .cta-buttons .btn {
    text-align: center;
  }

  /* Add bottom padding for mobile nav */
  footer {
    padding-bottom: 80px;
  }
}

@media (max-width: 480px) {
  .content-area {
    padding: 0 20px;
  }

  .content-inner {
    padding-top: 0;
  }

  .hero h1 {
    font-size: 2rem;
  }

  .form-container {
    padding: 24px 20px;
  }

  .about-feature-compact {
    padding: 8px 12px;
  }

  .stats {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .section-divider {
    margin: 40px 0;
  }
}

/* ========== SECRET PAGE ========== */
.page-content:has(.secret-page) h1 {
  display: none;
}

.secret-void {
  height: 75vh;
}

.secret-text {
  color: rgba(200, 213, 204, 0.3);
  font-family: "Inter", sans-serif;
  font-size: 0.75rem;
  font-weight: 300;
  text-align: center;
  padding-bottom: 40px;
  user-select: none;
}

/* ========== PRINT ========== */
@media print {
  .image-panel,
  .side-nav,
  .mobile-nav,
  .mobile-nav-overlay,
  .mobile-nav-sheet,
  .scroll-down-indicator,
  .scroll-progress {
    display: none;
  }
  .content-area {
    width: 100%;
    margin-left: 0;
    padding: 20px;
  }
}
