body {
  background: radial-gradient(circle, #f5ecd7 60%, #b8a98f 100%);
  font-family: 'Roboto Serif', serif;
  font-weight: 300;
  color: #6b5c3e;
  margin: 0;
  padding: 0;
}

header {
  background: rgba(245, 236, 215, 0.95);
  box-shadow: 0 4px 24px 0 rgba(184, 169, 143, 0.2);
  padding: 15px 0;
  position: relative; /* This is important for the mobile menu */
}

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 900px;
  margin: 0 auto;
  padding: 0 24px;
}

.logo {
  width: 180px;
  height: auto;
  border-radius: 0;
}

.hamburger-menu {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  z-index: 1001;
}

.hamburger-menu span {
  display: block;
  width: 25px;
  height: 3px;
  margin: 5px 0;
  background-color: #333;
  transition: all 0.3s ease-in-out;
}

.top-nav {
  display: flex;
  align-items: center;
  gap: 15px;
}

.top-nav a {
  color: #6b5c3e;
  text-decoration: none;
  font-size: 1.1em;
  font-weight: 300;
  padding: 6px 14px;
  border-radius: 18px;
  transition: background 0.2s;
  white-space: nowrap;
}

.top-nav a:hover {
  background: #b8d8c2;
  color: #3a4d3f;
}

.language-switch {
  display: flex;
  margin-left: 20px;
}

.language-switch button {
  background: none;
  border: 1px solid #333;
  padding: 5px 10px;
  margin: 0 5px;
  cursor: pointer;
  font-family: 'Roboto Serif', serif;
  font-weight: 300;
  font-size: 1em;
  border-radius: 5px;
  transition: background 0.2s, color 0.2s;
  color: black;
}

.language-switch button.active {
  background: #333;
  color: white;
}

.site-wrapper {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 24px;
}

section {
  margin-bottom: 48px;
}

.section-title {
  color: #3a4d3f;
  text-align: left;
  margin-bottom: 24px;
  font-size: 1.5em;
}

.content-box {
  background: linear-gradient(135deg, #f5ecd7 60%, #e3d7b8 100%);
  border-radius: 24px;
  box-shadow: 0 8px 32px 0 rgba(184, 169, 143, 0.15);
  padding: 32px 24px;
  border: none;
}

h1, h2, h3 {
  color: #3a4d3f;
  margin-bottom: 12px;
}

/* Hero Section */
#hero {
  height: 70vh;
  width: 100%;
  margin: 40px auto;
  padding: 0;
  background: none;
  border: none;
  box-shadow: none;
}

.hero-image {
  height: 100%;
  width: 100%;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  position: relative;
  clip-path: ellipse(150% 100% at 50% 0%);
  border-radius: 24px;
}

.hero-text {
  text-align: center;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: white;
}

.hero-text h1 {
  font-size: 1.8em;
  margin-bottom: 0.2em;
}

.hero-text p {
  font-size: 1.2em;
  margin-bottom: 1.5em;
  text-shadow: 1px 1px 4px rgba(0,0,0,0.5);
}

.cta-button {
  text-decoration: none;
  background-color: #b0c0a4;
  color: #3a4d3f;
  padding: 0.8rem 1.5rem;
  border-radius: 25px;
  font-weight: 300;
  transition: background-color 0.3s, transform 0.3s;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.cta-button:hover {
    background-color: #fff;
    transform: translateY(-2px);
}

#home p,
#about p {
  font-size: 0.85em;
  color: #444;
}

/* About Section */
.about-flex {
  display: flex;
  gap: 2rem;
  align-items: flex-start;
}

.about-image {
  width: 28%;
  min-width: 120px;
  max-width: 300px;
  height: auto;
  border-radius: 16px;
  object-fit: cover;
  flex-shrink: 0;
}

.about-text {
  flex: 1;
}

/* Class Types Section */
.class-types {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  justify-items: center;
  align-items: start;
  width: 100%;
  max-width: 100%;
}

.class-card {
  width: 100%;
  max-width: 320px;
  background: none;
  border-radius: 12px;
  box-shadow: none;
  overflow: hidden;
  margin: 0 auto;
  padding: 0;
  position: relative;
}

.class-image-wrapper {
  position: relative;
  width: 100%;
  height: 220px;
}

.class-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: 12px;
}

.class-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: #b0c0a4;
  color: #222;
  border-radius: 12px;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 1em 0.7em;
  text-align: center;
  overflow: hidden;
}

.class-overlay h3 {
  margin: 0 0 0.3em 0;
  font-size: 1em;
  font-weight: 700;
  letter-spacing: 0.01em;
  color: #79572f;
}

.class-overlay p {
  margin: 0;
  font-size: 0.75em;
  line-height: 1.4;
  color: #444;
  word-break: break-word;
}

/* Blog & Booking */
.blog-post, .booking-form-placeholder {
  background: #dad9d6;
  border-radius: 12px;
  padding: 16px;
  margin-bottom: 18px;
  box-shadow: 0 2px 8px 0 rgba(184, 169, 143, 0.07);
}

.booking-form-placeholder {
  padding: 30px 20px;
  text-align: center;
}

.blog-post h3, .booking-form-placeholder h3 {
  color: #79572f !important;
  font-size: 1em;
  font-weight: 700;
  letter-spacing: 0.01em;
  margin: 0 0 0.3em 0;
}

.booking-form-placeholder p {
  color: #222;
  font-size: 0.9em;
  font-weight: 700;
  color: #79572f !important;
}

.blog-post p,
.blog-post li {
  font-size: 0.88em;
  line-height: 1.6;
  color: #444;
}

.blog-post span,
.blog-post strong {
  color: #444 !important;
  font-size: 0.88em;
  line-height: 1.4;
  margin: 0;
  word-break: break-word;
  font-weight: normal;
}

.blog-post ul {
  list-style-type: disc;
  padding-left: 1.2em;
  margin: 0;
  font-size: 1em;
}

.blog-post li {
  font-size: 0.88em;
  margin-bottom: 0.78em;
  display: list-item;
  padding-left: 0.3em;
}

/* Styles for separated section titles */
.section-title {
  text-align: left;
  font-size: 1.5em;
  margin-bottom: 1.5rem;
  color: #3a4d3f;
}

.section-content {
  background: linear-gradient(135deg, #f5ecd7 60%, #e3d7b8 100%);
  border-radius: 24px;
  box-shadow: 0 8px 32px 0 rgba(184, 169, 143, 0.15);
  padding: 32px 24px;
  border: none;
}
/* Photo Library Section */


.photo-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1rem;
}

.photo-item img {
  display: block !important; /* Force block display */
  width: 100% !important; /* Force full width */
  height: auto !important; /* THIS IS THE CRITICAL FIX */
  object-fit: cover;
  border-radius: 12px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  min-height: 10px; /* Ensures the image is never invisible */
}

.photo-item img:hover {
  transform: scale(1.05);
  box-shadow: 0 8px 24px rgba(0,0,0,0.15);
}

footer {
  text-align: center;
  padding: 24px 0 12px 0;
  color: #b8a98f;
  font-size: 1em;
  background: none;
}

/* --- Media Queries --- */

@media (max-width: 900px) {
  .class-types {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .hamburger-menu {
    display: block;
  }

  .top-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: rgba(245, 236, 215, 0.98);
    flex-direction: column;
    align-items: center;
    padding: 20px 0;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    z-index: 1000; /* Add this line */
  }

  header.nav-active .top-nav {
    display: flex;
  }

  .top-nav a {
    margin: 10px 0;
  }
  
  .language-switch {
    margin-top: 15px;
    margin-left: 0;
  }

  header.nav-active .hamburger-menu span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
  }
  header.nav-active .hamburger-menu span:nth-child(2) {
    opacity: 0;
  }
  header.nav-active .hamburger-menu span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
  }

  .about-flex {
    flex-direction: column;
    gap: 1rem;
  }

  .about-image {
    width: 100%;
    max-width: 320px;
    margin: 0 auto;
  }
  
  #hero {
    height: 50vh;
  }

  .hero-text {
    width: 90%;
  }

  .hero-text h1 {
    font-size: 1.8em;
  }

  .hero-text p {
    font-size: 0.85em;
    margin-bottom: 2em;
  }

  .cta-button {
    padding: 0.7rem 1.2rem;
    font-size: 0.9em;
  }
}

@media (max-width: 320px) {
  .site-wrapper, section {
    padding: 0 16px;
  }
}

/* --- Horizontal scroll for class cards --- */
.class-types-scroll-wrapper {
  display: flex;
  align-items: center;
  position: relative;
  width: 100%;
  max-width: 100%;
  gap: 0.5rem;
}
.class-scroll-arrow {
  background: #b0c0a4;
  color: #3a4d3f;
  border: none;
  border-radius: 50%;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.7em;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(176,192,164,0.18);
  transition: background 0.2s, transform 0.2s;
  z-index: 2;
}
.class-scroll-arrow:hover {
  background: #a0b090;
  transform: scale(1.08);
}
.class-types {
  display: flex !important;
  flex-direction: row;
  gap: 1rem;
  overflow-x: auto;
  scroll-behavior: smooth;
  width: 100%;
  max-width: 100%;
  padding-bottom: 8px;
}
.class-types::-webkit-scrollbar {
  display: none;
}
.class-types {
  -ms-overflow-style: none;
  scrollbar-width: none;
}
@media (max-width: 900px) {
  .class-types {
    flex-direction: row;
    gap: 0.7rem;
  }
  .class-card {
    min-width: 260px;
    max-width: 80vw;
  }
  .class-scroll-arrow {
    width: 36px;
    height: 36px;
    font-size: 1.2em;
  }
}
@media (max-width: 600px) {
  .class-card {
    min-width: 210px;
    max-width: 90vw;
  }
}
/* --- Modern overlay arrows for class card scroll --- */
.class-types-scroll-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
  max-width: 100%;
}

.class-scroll-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  opacity: 0.85;
  background: #b0c0a4;
  color: #3a4d3f;
  border: none;
  border-radius: 50%;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.7em;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(176,192,164,0.18);
  transition: background 0.2s, transform 0.2s;
}

.class-scroll-arrow.left {
  left: 0;
}

.class-scroll-arrow.right {
  right: 0;
}

.class-scroll-arrow:hover {
  background: #a0b090;
  transform: scale(1.08);
}

.class-types {
  margin: 0 56px; /* leave space for arrows, adjust if needed */
  display: flex !important;
  flex-direction: row;
  gap: 1rem;
  overflow-x: auto;
  scroll-behavior: smooth;
  width: 100%;
  max-width: 100%;
  padding-bottom: 8px;
  -ms-overflow-style: none;
  scrollbar-width: none;
}
.class-types::-webkit-scrollbar {
  display: none;
}
/* --- Fix for auto-sizing class cards and overlays --- */
.class-types {
  display: flex !important;
  flex-direction: row;
  gap: 1rem;
  overflow-x: auto;
  scroll-behavior: smooth;
  width: 100%;
  max-width: 100%;
  padding-bottom: 8px;
  margin: 0 56px; /* leave space for overlay arrows */
  -ms-overflow-style: none;
  scrollbar-width: none;
}
.class-types::-webkit-scrollbar {
  display: none;
}

.class-card {
  background: none;
  border-radius: 12px;
  box-shadow: none;
  overflow: visible;
  margin: 0 auto;
  padding: 0;
  position: relative;
  width: 320px; /* You can adjust this width if you want more/less cards visible at once */
  min-width: 220px;
  max-width: 90vw;
  display: flex;
  flex-direction: column;
  height: auto; /* auto-size height */
}

.class-image-wrapper {
  width: 100%;
  min-height: 0;
  height: auto;
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
}

.class-overlay {
  position: static; /* Not absolute! */
  width: 100%;
  height: 100%;
  background: #b0c0a4;
  color: #222;
  border-radius: 12px;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 1em 0.7em;
  text-align: center;
  overflow: visible;
}

.class-overlay h3 {
  margin: 0 0 0.3em 0;
  font-size: 1em;
  font-weight: 700;
  letter-spacing: 0.01em;
  color: #79572f;
}

.class-overlay p {
  margin: 0;
  font-size: 0.95em;
  line-height: 1.5;
  color: #444;
  word-break: break-word;
}

/* --- Overlay scroll arrows --- */
.class-types-scroll-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
  max-width: 100%;
}

.class-scroll-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  opacity: 0.85;
  background: #b0c0a4;
  color: #3a4d3f;
  border: none;
  border-radius: 50%;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.7em;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(176,192,164,0.18);
  transition: background 0.2s, transform 0.2s;
}

.class-scroll-arrow.left {
  left: 0;
}

.class-scroll-arrow.right {
  right: 0;
}

.class-scroll-arrow:hover {
  background: #a0b090;
  transform: scale(1.08);
}

/* --- Responsive tweaks --- */
@media (max-width: 900px) {
  .class-types {
    gap: 0.7rem;
  }
  .class-card {
    width: 260px;
    min-width: 180px;
    max-width: 80vw;
  }
  .class-scroll-arrow {
    width: 36px;
    height: 36px;
    font-size: 1.2em;
  }
  .class-types {
    margin: 0 40px;
  }
}
@media (max-width: 600px) {
  .class-card {
    width: 210px;
    min-width: 140px;
    max-width: 95vw;
  }
  .class-types {
    margin: 0 24px;
  }
}

/* --- Uniform height for class cards in scroll area --- */
.class-types {
  display: flex !important;
  flex-direction: row;
  gap: 1rem;
  overflow-x: auto;
  scroll-behavior: smooth;
  width: 100%;
  max-width: 100%;
  padding-bottom: 8px;
  margin: 0 56px; /* leave space for overlay arrows */
  -ms-overflow-style: none;
  scrollbar-width: none;
  align-items: stretch;   /* Make all cards the same height */
}
.class-types::-webkit-scrollbar {
  display: none;
}

.class-card {
  background: none;
  border-radius: 12px;
  box-shadow: none;
  overflow: visible;
  margin: 0 auto;
  padding: 0;
  position: relative;
  width: 320px;
  min-width: 220px;
  max-width: 90vw;
  display: flex;
  flex-direction: column;
  height: auto;
  flex: 1 0 320px;   /* Allow cards to grow/shrink but keep width */
}

.class-image-wrapper {
  width: 100%;
  min-height: 0;
  height: 100%;      /* Fill parent height */
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
}

.class-overlay {
  position: static;
  width: 100%;
  height: 100%;      /* Fill parent height */
  background: #b0c0a4;
  color: #222;
  border-radius: 12px;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  justify-content: center; /* Center content vertically */
  align-items: center;
  padding: 1em 0.7em;
  text-align: center;
  overflow: visible;
}

.class-overlay h3 {
  margin: 0 0 0.3em 0;
  font-size: 1em;
  font-weight: 700;
  letter-spacing: 0.01em;
  color: #79572f;
}

.class-overlay p {
  margin: 0;
  font-size: 0.95em;
  line-height: 1.5;
  color: #444;
  word-break: break-word;
}

/* --- Overlay scroll arrows --- */
.class-types-scroll-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
  max-width: 100%;
}

.class-scroll-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  opacity: 0.85;
  background: #b0c0a4;
  color: #3a4d3f;
  border: none;
  border-radius: 50%;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.7em;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(176,192,164,0.18);
  transition: background 0.2s, transform 0.2s;
}

.class-scroll-arrow.left {
  left: 0;
}

.class-scroll-arrow.right {
  right: 0;
}

.class-scroll-arrow:hover {
  background: #a0b090;
  transform: scale(1.08);
}

/* --- Responsive tweaks --- */
@media (max-width: 900px) {
  .class-types {
    gap: 0.7rem;
    margin: 0 40px;
  }
  .class-card {
    width: 260px;
    min-width: 180px;
    max-width: 80vw;
    flex: 1 0 260px;
  }
  .class-scroll-arrow {
    width: 36px;
    height: 36px;
    font-size: 1.2em;
  }
}
@media (max-width: 600px) {
  .class-card {
    width: 210px;
    min-width: 140px;
    max-width: 95vw;
    flex: 1 0 210px;
  }
  .class-types {
    margin: 0 24px;
  }
}


/* Ensures all cards have a subtle, consistent border for definition */
.class-overlay {
  border: 1px solid rgba(121, 87, 47, 0.15); /* A subtle border derived from your text color */
}

/* Beginner's Hatha Yoga - Calming & Natural */
.class-card.hatha .class-overlay {
  background: #b0c0a4; /* Earthy Green */
}

/* Restorative Yin Yoga - Grounding & Deep */
.class-card.yin .class-overlay {
  background: #c5b8a5; /* Muted Taupe - a calm, earthy stone color */
}

/* Vinyasa Flow - Warm & Energetic */
.class-card.vinyasa .class-overlay {
  background: #e3d7b8; /* changed to same color as blog background */
}

/* Ayurveda Cooking - Nourishing & Pure */
.class-card.ayurveda .class-overlay {
  background: #dad9d6; /* Soft Sage - a light, clean, and herbal green */
}

.class-overlay {
  position: static;
  width: 100%;
  height: 100%;
  background: #b0c0a4; /* Default background, overridden by specific classes */
  color: #222;
  border-radius: 12px;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 1em 0.7em;
  text-align: center;
  overflow: visible;
  border: 1px solid #e3d7b8; /* Subtle border for definition */
}

/* --- Adjust Class Card Text Size for a Refined Look --- */
.class-overlay h3 {
  font-size: 0.9em; /* A touch smaller than before */
}

.class-overlay p {
  font-size: 0.8em; /* A touch smaller than before */
  line-height: 1.45; /* Adjusted for better readability with smaller text */
}


/* --- Horizontal Scroll for Photo Library --- */
.photo-gallery-scroll-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
  max-width: 100%;
}

.photo-gallery {
  display: flex !important; /* Override previous grid display */
  flex-direction: row;
  align-items: center; /* Vertically align images */
  gap: 1rem;
  overflow-x: auto;
  scroll-behavior: smooth;
  width: 100%;
  max-width: 100%;
  margin: 0 56px; /* Leave space for overlay arrows */
  padding: 8px 0; /* Add some vertical padding */
  -ms-overflow-style: none;
  scrollbar-width: none;
}
.photo-gallery::-webkit-scrollbar {
  display: none;
}

.photo-item {
  flex-shrink: 0; /* Prevent images from shrinking */
  max-height: 300px; /* Optional: constrain the max height */
}

.photo-item img {
  display: block !important;
  height: 100% !important; /* Ensure image fits the container height */
  width: auto !important; /* Allow width to adjust based on aspect ratio */
  object-fit: cover;
  border-radius: 12px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.photo-item img:hover {
  transform: scale(1.05);
  box-shadow: 0 8px 24px rgba(0,0,0,0.15);
}

/* Re-use arrow styles for consistency */
.photo-scroll-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  opacity: 0.85;
  background: #b0c0a4;
  color: #3a4d3f;
  border: none;
  border-radius: 50%;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.7em;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(176,192,164,0.18);
  transition: background 0.2s, transform 0.2s;
}
.photo-scroll-arrow.left {
  left: 0;
}
.photo-scroll-arrow.right {
  right: 0;
}
.photo-scroll-arrow:hover {
  background: #a0b090;
  transform: scale(1.08);
}

/* Responsive tweaks for photo gallery arrows */
@media (max-width: 900px) {
  .photo-gallery {
    margin: 0 40px;
  }
  .photo-scroll-arrow {
    width: 36px;
    height: 36px;
  }
}
@media (max-width: 600px) {
  .photo-gallery {
    margin: 0 24px;
  }
}

/* --- Instagram Story Style for Photo Library --- */

/* This gives each photo container a fixed 9:16 aspect ratio */
.photo-item {
  flex-shrink: 0;      /* Prevents items from shrinking */
  width: 200px;          /* Base width for desktop */
  height: 355px;         /* Base height for desktop (maintains 9:16 ratio) */
  border-radius: 12px;   /* Keeps the rounded corners */
  overflow: hidden;      /* Important: Ensures the image respects the container's border-radius */
  box-shadow: 0 4px 12px rgba(0,0,0,0.08); /* Optional: Adds a subtle shadow for depth */
}

/* This makes the image fill the container without distortion */
.photo-item img {
  display: block !important;
  width: 100% !important;   /* CRITICAL: Fills the container's width */
  height: 100% !important;  /* CRITICAL: Fills the container's height */
  object-fit: cover;      /* This crops the image to fit (like Instagram), preventing stretching */
  border-radius: 12px;
  transition: transform 0.3s ease;
}

.photo-item img:hover {
  transform: scale(1.05); /* A nice hover effect */
}


/* --- Responsive Mobile Tweaks for Story Size --- */
@media (max-width: 900px) {
  .photo-item {
    width: 160px;
    height: 284px;
  }
}

@media (max-width: 600px) {
  .photo-item {
    width: 120px;
    height: 213px;
  }
}

/* --- Fix for Photo Library: No Cropped Text --- */

/* This gives each photo container a fixed 9:16 aspect ratio */
.photo-item {
  flex-shrink: 0;
  width: 200px;
  height: 355px;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  background: #fdfaf2; /* A soft background for any empty space */
  display: flex;         /* These two lines center the image */
  align-items: center;   /* inside the container */
}

/* This makes the image fill the container without distortion */
.photo-item img {
  display: block !important;
  width: 100% !important;
  height: 100% !important;
  object-fit: contain;    /* THE FIX: Shows the whole image, no cropping */
  border-radius: 8px;     /* A slightly smaller radius for the inner image */
  transition: transform 0.3s ease;
}

.photo-item img:hover {
  transform: scale(1.03); /* A slightly more subtle hover effect */
}

/* --- Responsive Mobile Tweaks for Photo Library --- */
@media (max-width: 900px) {
  .photo-item {
    width: 160px;
    height: 284px;
  }
}

@media (max-width: 600px) {
  .photo-item {
    width: 120px;
    height: 213px;
  }
  .photo-gallery-scroll-wrapper {
    min-height: 340px !important; /* Adjust this value as needed */
    height: auto !important;
  }
}

/* --- Fix for Photo Library: Readable Text & No White Edges --- */

/* This makes each photo container have a fixed width but automatic height */
.photo-item {
  flex-shrink: 0;
  width: 320px;          /* Give images a consistent, readable width */
  height: auto;          /* THE FIX: Let height adjust to the image's aspect ratio */
  border-radius: 12px;
  overflow: hidden;
  background: none;      /* No background needed as the image fills the space */
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

/* This makes the image fill the container's width, with height adjusting automatically */
.photo-item img {
  display: block !important;
  width: 100% !important;
  height: auto !important; /* THE FIX: Preserves aspect ratio */
  object-fit: initial;    /* Reset object-fit */
  border-radius: 0;       /* The parent container handles the rounding */
  transition: transform 0.3s ease;
}

.photo-item img:hover {
  transform: scale(1.03);
}

/* --- Responsive Mobile Tweaks for Photo Library --- */
@media (max-width: 900px) {
  .photo-item {
    width: 280px; /* Adjust width for tablets */
  }
}

@media (max-width: 600px) {
  .photo-item {
    width: 240px; /* Adjust width for mobile */
  }
}

/* --- Final, Robust Fix for Photo Library --- */

/* Use CSS Grid for a bulletproof layout of arrows and scroll area */
.photo-gallery-scroll-wrapper {
  display: grid;
  grid-template-columns: auto 1fr auto; /* Left Arrow | Scroll Area | Right Arrow */
  align-items: center;
  gap: 0.5rem; /* Space between arrows and content */
  width: 100%;
}

/* The scrollable container */
.photo-gallery {
  display: flex !important;
  gap: 1rem;
  overflow-x: auto;
  scroll-behavior: smooth;
  min-width: 0; /* Prevents overflow issues within the grid layout */
  padding: 8px 4px; /* Give it a little vertical breathing room */
  -ms-overflow-style: none; /* Hide scrollbar on IE/Edge */
  scrollbar-width: none;    /* Hide scrollbar on Firefox */
}
.photo-gallery::-webkit-scrollbar {
  display: none; /* Hide scrollbar on Chrome, Safari, Opera */
}

/* Individual photo styles: width is fixed, height is auto */
.photo-item {
  flex-shrink: 0; /* Prevents images from shrinking */
  width: 320px;
  height: auto;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}
.photo-item img {
  display: block !important;
  width: 100% !important;
  height: auto !important; /* This preserves the image's aspect ratio */
}

/* The arrows are now simple, stable grid items */
.photo-scroll-arrow {
  /* These styles no longer need position:absolute or transforms */
  background: #b0c0a4;
  color: #3a4d3f;
  border: none;
  border-radius: 50%;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.7em;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(176,192,164,0.18);
  transition: background 0.2s, transform 0.2s;
  z-index: 2;
}
.photo-scroll-arrow:hover {
  background: #a0b090;
  transform: scale(1.08);
}


/* --- Responsive Tweaks for Photo Library --- */
@media (max-width: 900px) {
  .photo-item {
    width: 280px;
  }
  .photo-scroll-arrow {
    width: 36px;
    height: 36px;
  }
}
@media (max-width: 600px) {
  .photo-item {
    width: 240px;
  }
  .photo-gallery-scroll-wrapper {
    gap: 0.25rem;
  }
}

/* ---
Final, Bulletproof Fix for Photo Library
This uses a standard, robust carousel pattern to prevent all layout bugs.
--- */

/* Foundational rule to prevent padding from breaking layouts. */
*, *::before, *::after {
  box-sizing: border-box;
}

/* 1. The main wrapper is now the positioning context for the arrows. */
.photo-gallery-scroll-wrapper {
  position: relative; /* This is crucial for the new arrow positioning. */
  width: 100%;
}

/* 2. The arrows are positioned absolutely, taking them OUT of the layout flow. */
/* This prevents them from ever pushing the container or causing overflow. */
.photo-scroll-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10; /* Ensures arrows are on top of the images. */
  background: #b0c0a4;
  color: #3a4d3f;
  border: 1px solid rgba(0,0,0,0.05);
  border-radius: 50%;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.7em;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
  transition: all 0.2s ease-in-out;
}
.photo-scroll-arrow:hover {
  background: #fff;
  transform: translateY(-50%) scale(1.08);
}
.photo-scroll-arrow.left {
  left: 10px; /* Position on the left with a small margin. */
}
.photo-scroll-arrow.right {
  right: 10px; /* Position on the right with a small margin. */
}

/* 3. The scrollable gallery itself. */
.photo-gallery {
  display: flex !important; /* Ensure it's a flex container. */
  gap: 1rem;
  overflow-x: auto;
  scroll-behavior: smooth;
  /* Add padding so the first/last images don't hide under the arrows. */
  padding-left: 64px;
  padding-right: 64px;
  padding-top: 8px;
  padding-bottom: 8px;
  /* This prevents the scrollable area from affecting its parent's width. */
  width: 100%;
  margin: 0; /* Reset any margin. */
  /* Hide the scrollbar cleanly. */
  -ms-overflow-style: none;
  scrollbar-width: none;
}
.photo-gallery::-webkit-scrollbar {
  display: none;
}

/* 4. Individual photos are sized correctly and will not be cropped. */
.photo-item {
  flex-shrink: 0;
  width: auto;     /* Let the image's height dictate the width. */
  height: 280px;   /* Give all photos a consistent, readable height. */
  border-radius: 12px;
  overflow: hidden;
  background: none;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}
.photo-item img {
  display: block !important;
  width: auto !important;   /* Let width adjust based on aspect ratio. */
  height: 100% !important; /* This is now the controlling dimension. */
  object-fit: contain;
}


/* --- Responsive Tweaks for the New Layout --- */
@media (max-width: 900px) {
  .photo-item {
    height: 240px;
  }
  .photo-gallery {
    padding-left: 54px;
    padding-right: 54px;
  }
  .photo-scroll-arrow {
    width: 36px;
    height: 36px;
  }
}
@media (max-width: 600px) {
  .photo-item {
    height: 200px;
  }
  .photo-gallery {
    padding-left: 46px;
    padding-right: 46px;
  }
}
/* --- Mobile Carousel: Show One Card at a Time, Centered --- */
@media (max-width: 600px) {
  .class-types {
    scroll-snap-type: x mandatory;
    overflow-x: auto;
    gap: 0; /* Remove gap so no edge peeks out */
    padding: 0 16vw; /* Add horizontal padding to center the card */
  }
  .class-card {
    min-width: 68vw;  /* Card takes up most of the viewport width */
    max-width: 68vw;
    width: 68vw;
    scroll-snap-align: center;
    margin: 0;        /* Remove margin so only one card is visible */
    box-sizing: border-box;
  }
  .class-types-scroll-wrapper {
    padding: 0; /* Remove extra padding if any */
  }
  .class-scroll-arrow {
    top: 60%; /* Adjust arrow position for mobile if needed */
    width: 36px;
    height: 36px;
    font-size: 1.2em;
  }
}

.class-types {
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
}

/* --- Mobile: Show One Photo at a Time, Full Width --- */
@media (max-width: 600px) {
  .photo-gallery {
    scroll-snap-type: x mandatory;
    gap: 0;
    padding: 0;
    overflow-x: auto;
  }
  .photo-item {
    min-width: 96vw;  /* Almost full screen, with a little margin for aesthetics */
    max-width: 96vw;
    width: 96vw;
    height: 70vw;     /* 9:16 aspect ratio for portrait, adjust as needed */
    scroll-snap-align: center;
    margin: 0;
    border-radius: 16px;
    box-sizing: border-box;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  .photo-item img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover;
    border-radius: 16px;
  }
  .photo-gallery-scroll-wrapper {
    padding: 0;
  }
  .photo-scroll-arrow {
    top: 50%;
    width: 36px;
    height: 36px;
    font-size: 1.2em;
  }
}

/* ---
Final, Bulletproof Carousel for Class Cards
Desktop: Multi-card horizontal scroll.
Mobile: Single-card, screen-centered carousel.
--- */

/* 1. The main wrapper is the positioning context for the arrows. */
.class-types-scroll-wrapper {
  position: relative;
  width: 100%;
}

/* 2. The arrows are positioned absolutely to prevent layout bugs. */
.class-scroll-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  background: #b0c0a4;
  color: #3a4d3f;
  border: 1px solid rgba(0,0,0,0.05);
  border-radius: 50%;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.7em;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
  transition: all 0.2s ease-in-out;
}
.class-scroll-arrow:hover {
  background: #fff;
  transform: translateY(-50%) scale(1.08);
}
.class-scroll-arrow.left {
  left: 10px;
}
.class-scroll-arrow.right {
  right: 10px;
}

/* 3. The scrollable gallery itself. */
.class-types {
  display: flex !important;
  align-items: stretch; /* Ensures all cards have the same height */
  gap: 1rem;
  overflow-x: auto;
  scroll-behavior: smooth;
  /* Padding creates space so cards don't hide under the arrows. */
  padding: 8px 64px;
  width: 100%;
  margin: 0;
  /* Hide scrollbar cleanly. */
  -ms-overflow-style: none;
  scrollbar-width: none;
}
.class-types::-webkit-scrollbar {
  display: none;
}

/* 4. Individual class cards. */
.class-card {
  flex: 0 0 280px; /* Gives cards a fixed width so they don't squash. */
  display: flex;
}
.class-overlay {
  border: 1px solid rgba(121, 87, 47, 0.1);
}


/* --- MOBILE CAROUSEL: Show One Card at a Time (Same effect as Photo Library) --- */
@media (max-width: 600px) {
  /* A. Enable snapping behavior on the container. */
  .class-types {
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch; /* Smooth scrolling on iOS. */
    gap: 2rem; /* The space between the centered cards. */
    /* Adjust padding for the new layout. */
    padding-left: calc(50% - 140px); /* These two lines perfectly center the card. */
    padding-right: calc(50% - 140px);
  }

  /* B. Make each card the target of the snap. */
  .class-card {
    flex: 0 0 280px; /* Define the width of the card. */
    scroll-snap-align: center;
  }
  
  /* C. Adjust arrow positions for mobile. */
  .class-scroll-arrow {
    width: 36px;
    height: 36px;
  }
  .class-scroll-arrow.left {
    left: 5px;
  }
  .class-scroll-arrow.right {
    right: 5px;
  }
}

/* ---
Final, Bulletproof Carousel for Blog Section
--- */

/* 1. The main wrapper is the positioning context for the arrows. */
.blog-scroll-wrapper {
  position: relative;
  width: 100%;
}

/* 2. The arrows are positioned absolutely to prevent layout bugs. */
.blog-scroll-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  background: #b0c0a4;
  color: #3a4d3f;
  border: 1px solid rgba(0,0,0,0.05);
  border-radius: 50%;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.7em;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
  transition: all 0.2s ease-in-out;
}
.blog-scroll-arrow:hover {
  background: #fff;
  transform: translateY(-50%) scale(1.08);
}
.blog-scroll-arrow.left {
  left: 10px;
}
.blog-scroll-arrow.right {
  right: 10px;
}

/* 3. The scrollable container for the blog posts. */
.blog-posts {
  display: flex !important;
  align-items: stretch; /* Ensures all blog cards have the same height */
  gap: 1.5rem;
  overflow-x: auto;
  scroll-behavior: smooth;
  padding: 8px 64px; /* Space for arrows */
  width: 100%;
  margin: 0;
  /* Hide scrollbar cleanly. */
  -ms-overflow-style: none;
  scrollbar-width: none;
}
.blog-posts::-webkit-scrollbar {
  display: none;
}

/* 4. Individual blog post styling. */
.blog-post {
  flex: 0 0 320px; /* Fixed width for desktop */
  border-radius: 12px;
  padding: 24px;
  box-shadow: 0 2px 8px 0 rgba(184, 169, 143, 0.07);
}

/* 5. CUSTOM BACKGROUND COLORS FOR EACH BLOG POST */
.blog-post.benefits-post {
  background: #e3d7b8; /* Soft Sage */
}
.blog-post.mindful-post {
  background: #e3d7b8; /* Golden Sand */
}


/* --- MOBILE CAROUSEL: Show One Blog Post at a Time --- */
@media (max-width: 600px) {
  .blog-posts {
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    gap: 2rem;
    padding-left: calc(50% - 150px); /* Centers a 300px card */
    padding-right: calc(50% - 150px);
  }
  .blog-post {
    flex: 0 0 300px; /* Define the width of the card on mobile */
    scroll-snap-align: center;
  }
  .blog-scroll-arrow {
    width: 36px;
    height: 36px;
  }
  .blog-scroll-arrow.left {
    left: 5px;
  }
  .blog-scroll-arrow.right {
    right: 5px;
  }
}

/* ---
Final, Bulletproof Fix for Blog Carousel
This architecture prevents stacking and layout bugs.
--- */

/* 1. The main wrapper is the positioning context for the arrows. */
.blog-scroll-wrapper {
  position: relative;
  width: 100%;
}

/* 2. The arrows are positioned absolutely to prevent layout bugs. */
.blog-scroll-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  background: #b0c0a4;
  color: #3a4d3f;
  border: 1px solid rgba(0,0,0,0.05);
  border-radius: 50%;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.7em;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
  transition: all 0.2s ease-in-out;
}
.blog-scroll-arrow:hover {
  background: #fff;
  transform: translateY(-50%) scale(1.08);
}
.blog-scroll-arrow.left { left: 10px; }
.blog-scroll-arrow.right { right: 10px; }

/* 3. The scrollable container. THE MOST IMPORTANT RULE IS 'display: flex'. */
.blog-posts {
  display: flex !important; /* THIS IS THE KEY: It forces the horizontal layout. */
  align-items: stretch;
  gap: 1.5rem;
  overflow-x: auto;
  scroll-behavior: smooth;
  padding: 8px 64px; /* Space for arrows */
  width: 100%;
  margin: 0;
  -ms-overflow-style: none;
  scrollbar-width: none;
}
.blog-posts::-webkit-scrollbar { display: none; }

/* 4. Individual blog post styling. */
.blog-post {
  flex: 0 0 320px;
  border-radius: 12px;
  padding: 24px;
  box-shadow: 0 2px 8px 0 rgba(184, 169, 143, 0.07);
}

/* 5. CUSTOM BACKGROUND COLORS */
.blog-post.benefits-post { background: #e3d7b8; }
.blog-post.mindful-post { background: #e3d7b8; }

/* --- MOBILE CAROUSEL: Show One Blog Post at a Time --- */
@media (max-width: 600px) {
  .blog-posts {
    scroll-snap-type: x mandatory;
    gap: 2rem;
    padding-left: calc(50% - 150px);
    padding-right: calc(50% - 150px);
  }
  .blog-post {
    flex: 0 0 300px;
    scroll-snap-align: center;
  }
  .blog-scroll-arrow { width: 36px; height: 36px; }
  .blog-scroll-arrow.left { left: 5px; }
  .blog-scroll-arrow.right { right: 5px; }
}

/* --- Bulletproof Fix for Blog Carousel --- */
.blog-scroll-wrapper { position: relative; width: 100%; }
.blog-scroll-arrow { position: absolute; top: 50%; transform: translateY(-50%); z-index: 10; background: #b0c0a4; color: #3a4d3f; border: 1px solid rgba(0,0,0,0.05); border-radius: 50%; width: 44px; height: 44px; display: flex; align-items: center; justify-content: center; font-size: 1.7em; cursor: pointer; box-shadow: 0 2px 8px rgba(0,0,0,0.15); transition: all 0.2s ease-in-out; }
.blog-scroll-arrow:hover { background: #fff; transform: translateY(-50%) scale(1.08); }
.blog-scroll-arrow.left { left: 10px; }
.blog-scroll-arrow.right { right: 10px; }
.blog-posts { display: flex !important; align-items: stretch; gap: 1.5rem; overflow-x: auto; scroll-behavior: smooth; padding: 8px 64px; width: 100%; margin: 0; -ms-overflow-style: none; scrollbar-width: none; }
.blog-posts::-webkit-scrollbar { display: none; }
.blog-post { flex: 0 0 320px; border-radius: 12px; padding: 24px; box-shadow: 0 2px 8px 0 rgba(184, 169, 143, 0.07); }
.blog-post.benefits-post { background: #e3d7b8; }
.blog-post.mindful-post { background: #e3d7b8; }
@media (max-width: 600px) {
  .blog-posts { scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch; gap: 2rem; padding-left: calc(50% - 150px); padding-right: calc(50% - 150px); }
  .blog-post { flex: 0 0 300px; scroll-snap-align: center; }
  .blog-scroll-arrow { width: 36px; height: 36px; }
  .blog-scroll-arrow.left { left: 5px; }
  .blog-scroll-arrow.right { right: 5px; }
}


.photo-item {
  width: 120px;
  height: 213px;
}
.photo-gallery-scroll-wrapper {
  min-height: 340px !important; /* Adjust this value as needed */
  height: auto !important;
}
}

@media (max-width: 600px) {
  .photo-item {
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
    width: 96vw !important;
    max-width: 96vw !important;
    border-radius: 16px !important;
    box-sizing: border-box;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  .photo-item img {
    width: 100% !important;
    height: auto !important;
    max-width: 100% !important;
    max-height: 70vw !important;
    object-fit: contain !important;
    border-radius: 16px !important;
    display: block;
  }
}

.photo-item {
  /* Remove any fixed width/height/max-height from previous rules */
  width: 100%;
  max-width: 340px;      /* or whatever max width you want for desktop */
  height: auto;
  min-height: 0;
  max-height: none;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 16px;
  box-sizing: border-box;
  overflow: hidden;
  background: none;
}

.photo-item img {
  width: 100%;
  height: auto;
  max-width: 100%;
  max-height: 420px;     /* or whatever max height you want for desktop */
  object-fit: contain;   /* Ensures the whole image is visible, never cropped */
  border-radius: 16px;
  display: block;
}

@media (max-width: 600px) {
  .photo-item {
    max-width: 96vw;
  }
  .photo-item img {
    max-height: 60vw;
  }
}