/* Custom Font */
@font-face {
  font-family: 'CustomFont';
  src: url('fonts/superrichexpandedpersonaluseonlystretch-0vkav.otf') format('opentype');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'CustomFont';
  src: url('fonts/superrichexpandedpersonaluseonlystretch-0vkav.otf') format('opentype');
  font-weight: bold;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'CustomFont';
  src: url('fonts/superrichexpandedpersonaluseonlystretch-0vkav.otf') format('opentype');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

/* Page Preloader */
.preloader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: var(--darker-bg);
  z-index: 9999;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  transition: opacity 1.2s ease, visibility 1.2s ease; /* Increased from 0.8s to 1.2s */
  touch-action: none; /* Prevent touchmove events while preloader is active */
}

/* Lock scrolling while preloader is active */
body.preloader-active {
  overflow: hidden;
  height: 100%;
  position: fixed;
  width: 100%;
  touch-action: none; /* Disable all touch actions while preloader is visible */
}

.preloader.fade-out {
  opacity: 0;
  visibility: hidden;
}

/* Simple Dots Loader */
.loader {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 30px;
  gap: 15px;
}

.dot {
  width: 15px;
  height: 15px;
  background-color: var(--primary-color);
  border-radius: 50%;
  opacity: 0;
  animation: dotFade 1.5s infinite ease-in-out;
}

.dot:nth-child(1) {
  animation-delay: 0s;
}

.dot:nth-child(2) {
  animation-delay: 0.2s;
}

.dot:nth-child(3) {
  animation-delay: 0.4s;
}

.dot:nth-child(4) {
  animation-delay: 0.6s;
}

.dot:nth-child(5) {
  animation-delay: 0.8s;
}

@keyframes dotFade {
  0%, 100% {
    opacity: 0.2;
    transform: scale(0.8);
  }
  50% {
    opacity: 1;
    transform: scale(1.2);
  }
}

.loading-text {
  color: var(--primary-color);
  font-family: 'Montserrat', sans-serif;
  font-size: 1.2rem;
  font-weight: 600;
  letter-spacing: 4px;
  margin-top: 40px;
  animation: fadeInOut 3s ease-in-out infinite; /* Increased from 2s to 3s for more graceful pulsing */
}

.gym-name {
  color: var(--light-text);
  font-family: 'Montserrat', sans-serif;
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: 2px;
  margin-bottom: 40px;
  opacity: 0;
  animation: fadeIn 1s ease forwards;
  animation-delay: 0.5s;
}

/* Mobile responsive preloader adjustments */
@media (max-width: 576px) {
  .dot {
    width: 12px;
    height: 12px;
  }
  
  .loader {
    gap: 10px;
    margin-bottom: 20px;
  }
  
  .gym-name {
    font-size: 1.7rem;
    margin-bottom: 30px;
  }
}

@media (max-width: 375px) {
  .dot {
    width: 10px;
    height: 10px;
  }
  
  .loader {
    gap: 8px;
  }
  
  .gym-name {
    font-size: 1.5rem;
    margin-bottom: 25px;
  }
}

@keyframes fadeInOut {
  0%, 100% { opacity: 0.4; }
  50% { opacity: 1; }
}

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

/* Global Styles */
:root {
  --primary-color: #FFD700;
  --primary-light: #FFEB3B;
  --primary-dark: #FFC107;
  --dark-bg: #1A1A1A;
  --darker-bg: #121212;
  --light-text: #F5F5F5;
  --gray-text: #B0B0B0;
  --card-bg: #252525;
  --border-radius: 8px;            /* master bevel radius – membership card curve */
  --transition: all 0.3s ease;
  --animation-easing: cubic-bezier(0.25, 0.46, 0.45, 0.94);
  /* -------------------------------------------------
     Consistent vertical rhythm for stacked headings
     ------------------------------------------------- */
  --heading-line-height: 1.35;   /* used by all hero / section titles & sub-copy */
  /* =================================================
     Single source of truth for every <h2> title
     ================================================= */
  --section-title-size: 2.5rem;  /* desktop / tablet default */
}

/* ----------  MOBILE TYPE SCALE  ------------------- */
@media (max-width: 768px){
  :root{
    --section-title-size: 2.2rem; /* shrink all section titles uniformly */
  }
}

/* ---------- GLOBAL BEVEL CONSISTENCY -------------------------------- */
/* anything that owns a curve gets the master radius…                   */
.plan-card,
.service-card-carousel,
.mobile-testimonial-card,
.hours-box,
.class-slot,
.class-info-card,
.service-card-overlay,
.hero-image .image-placeholder,
.about-image .image-placeholder,
.contact-info .image-placeholder      { border-radius: var(--border-radius); }

/* …and every direct img respects that curve                           */
.image-placeholder,
.image-placeholder img                { border-radius: inherit !important; }

@media (max-width:768px){
  .service-card-carousel,
  .plan-card,
  .mobile-testimonial-card            { border-radius: var(--border-radius) !important; }
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Helvetica World', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  line-height: 1.6;
  color: var(--light-text);
  background-color: var(--dark-bg);
  opacity: 0;
  animation: fadeInPage 1.5s var(--animation-easing) forwards; /* Increased from 1s to 1.5s */
  animation-delay: 0.5s; /* Increased from 0.2s to 0.5s for better coordination */
}

@keyframes fadeInPage {
  from { opacity: 0; }
  to { opacity: 1; }
}

a {
  text-decoration: none;
  color: var(--light-text);
  transition: var(--transition);
}

ul {
  list-style: none;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.btn {
  display: inline-block;
  background-color: var(--primary-color);
  color: #000000;
  padding: 12px 30px;
  border-radius: var(--border-radius);
  font-family: 'Helvetica World', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: background-color 0.4s var(--animation-easing), transform 0.4s var(--animation-easing), box-shadow 0.4s var(--animation-easing);
  border: none;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.btn:hover {
  background-color: var(--primary-dark);
  transform: translateY(-3px);
  box-shadow: 0 8px 15px rgba(0, 0, 0, 0.15);
}

.btn:after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 0;
  height: 100%;
  background-color: rgba(255, 255, 255, 0.2);
  transition: width 0.4s var(--animation-easing);
}

.btn:hover:after {
  width: 100%;
}

.section-header {
  text-align: center;
  margin-bottom: 30px;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.8s var(--animation-easing), transform 0.8s var(--animation-easing);
}

.section-header.animated {
  opacity: 1;
  transform: translateY(0);
}

.section-header h2 {
  font-size: var(--section-title-size);
  text-transform: uppercase;
  position: relative;
  padding-bottom: 20px;
  display: inline-block;
  line-height: var(--heading-line-height);
}

.section-header h2::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 2px;
  background-color: var(--primary-color);
}

section {
  padding: 80px 0;
}

/* Image Placeholders */
.image-placeholder {
  background-color: #333;
  border-radius: var(--border-radius);
  position: relative;
  overflow: hidden;
  will-change: transform;
  transform: translateZ(0);
  backface-visibility: hidden;
}

.image-placeholder::before {
  content: 'Image Placeholder';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: var(--gray-text);
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.image-placeholder img {
  width: 100%;
  height: auto;
  object-fit: cover;
  position: relative;
  z-index: 1;
  display: block;
  transition: transform 0.5s ease, opacity 0.3s ease;
  opacity: 0;
  will-change: transform, opacity;
  transform: translateZ(0);
  backface-visibility: hidden;
}

.image-placeholder img.loaded,
.image-placeholder img[src] {
  opacity: 1;
}

.image-placeholder.has-image::before {
  display: none;
}

/* Header */
header {
  background-color: var(--darker-bg);
  padding: 20px 0;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
  transition: padding 0.3s ease, background-color 0.3s ease; /* Add transition for smooth changes */
}

header .container {
  display: flex;
  align-items: center;
  position: relative; /* Keep for mobile menu positioning context */
}

.logo {
  flex-shrink: 0; /* Prevent logo from shrinking */
}

.logo-img {
  max-height: 55px;
  width: auto;
  display: block;
}

.logo h1 {
  font-size: 1.8rem;
  color: var(--primary-color);
  font-weight: 700;
  letter-spacing: 1px;
}

/* Header social media links */
.header-social {
  display: flex;
  gap: 15px;
  margin-left: 30px; /* Adjust space between nav and social icons */
  flex-shrink: 0; /* Prevent social icons from shrinking */
}

.header-social a {
  color: var(--primary-color);
  font-size: 1rem;
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background-color: rgba(255, 215, 0, 0.1);
}

.header-social a:hover {
  color: #000;
  background-color: var(--primary-color);
  transform: translateY(-3px);
}

/* Desktop Navigation */
nav {
  display: block;
  margin-left: auto; /* Push nav and following elements to the right */
}

nav ul {
  display: flex;
}

nav ul li {
  margin-left: 30px;
}

nav ul li a {
  font-weight: 500;
  position: relative;
  font-size: 1.1rem; /* Increased from default value */
  transition: color 0.3s ease; /* Add transition for color changes */
}

nav ul li a::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--primary-color);
  transition: width 0.3s var(--animation-easing);
}

nav ul li a:hover::after {
  width: 100%;
}

.mobile-menu {
  display: none; /* Hide mobile menu by default */
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--primary-color);
}

/* Hero Section */
.hero {
  background-color: var(--darker-bg);
  padding: 150px 0 80px;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at top right, rgba(255, 215, 0, 0.2), transparent 60%);
  opacity: 0.4;
}

.hero .container {
  display: flex;
  align-items: center;
  gap: 40px;
}

.hero-content {
  flex: 1;
}

.hero-content h1 {
  font-size: 3.5rem;
  margin-bottom: 20px;
  line-height: var(--heading-line-height);
}

.hero-content p {
  font-size: 1.2rem;
  color: var(--gray-text);
  margin-bottom: 30px;
  line-height: var(--heading-line-height);
}

.hero-image {
  flex: 1.2;
}

/* Hero image placeholder styles */
.hero-image .image-placeholder {
  width: 100%;
  max-width: 100%;
  height: auto;
  border-radius: var(--border-radius);
  overflow: hidden;
  background-color: transparent;
  margin: 0;
  line-height: 0;
  font-size: 0;
  position: relative;
  box-shadow: none;
}

.hero-image .image-placeholder::before {
  display: none;
}

.hero-image .image-placeholder img {
  width: 100%;
  height: auto;
  object-fit: cover;
  border-radius: var(--border-radius) !important;
  max-height: 600px;
}

/* Specific hover for hero image */
.hero-image .image-placeholder.has-image:hover img {
  transform: none; /* No hover effect needed here */
}


.rating {
  margin-bottom: 30px;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
}

.stars {
  color: var(--primary-color);
  margin-right: 10px;
}

.rating-text {
  color: var(--gray-text);
  margin-right: 15px;
}

/* Profile pics styling */
.profile-pics {
  display: flex;
  margin-left: 5px;
}

.profile-pic {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background-size: cover;
  background-position: center;
  border: 2px solid var(--dark-bg);
  margin-left: -8px; /* Create overlapping effect */
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease;
}

.profile-pic:first-child {
  margin-left: 0;
}

.profile-pic:hover {
  transform: translateY(-3px) scale(1.1);
  z-index: 2;
}

/* About Section */
.about {
  background-color: var(--dark-bg);
  position: relative;
  overflow: visible;
  padding: 60px 0 80px;
}

.about-content {
  position: relative;
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  gap: 50px;
}

.about-image {
  flex: 0 0 45%;
  position: relative;
  z-index: 1;
}

.about-text {
  flex: 0 0 45%;
  position: relative;
  z-index: 2;
}

/* Create the vertical line */
.about-content::before {
  content: "";
  position: absolute;
  top: 10%;
  bottom: 10%;
  left: 50%;
  transform: translateX(-50%);
  width: 2px;
  height: 80%;
  background-color: var(--primary-color);
  z-index: 3;
}

.about-text p {
  font-size: 1.6rem;
  line-height: 1.6;
  margin-bottom: 22px;
  color: var(--light-text);
  font-family: 'Poppins', sans-serif;
  font-weight: 400;
}

.about-text .highlight {
  color: var(--primary-color);
  font-weight: 700;
  font-family: 'Poppins', sans-serif;
  font-size: 1.7rem;
}

.about-image .image-placeholder {
  width: 100%;
  height: auto;
  min-height: 300px;
  border-radius: var(--border-radius);
  overflow: hidden;
  position: relative;
  transition: none; /* Remove transition */
  background-color: transparent; /* Fix gray corners issue */
}

.about-image .image-placeholder img {
  width: 100%;
  height: auto;
  object-fit: cover;
  max-height: 600px;
  display: block;
  border-radius: var(--border-radius) !important;
}

/* Specific hover for about image */
.about-image .image-placeholder.has-image:hover img {
  transform: none; /* No hover effect needed here */
}

/* Services Section */
.services {
  background-color: var(--darker-bg);
  position: relative;
  overflow: visible; /* Changed to visible for potential hover effects */
  padding: 80px 0 100px;
  margin-top: 0;
}

/* Schedule Section */
.schedule {
  position: relative;
  overflow: hidden;
  padding: 60px 0 80px;
}

.schedule .section-header {
  text-align: center;
  margin-bottom: 60px;
}

.schedule .section-title {
  font-size: var(--section-title-size);
  font-weight: 700;
  margin-bottom: 15px;
  color: var(--light-text);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.schedule .section-subtitle,
.testimonials .section-subtitle {
  font-size: 1.2rem;
  color: var(--gray-text);
  max-width: 700px;
  margin: 0 auto;
  line-height: var(--heading-line-height);
}

.schedule-grid {
  background: var(--darker-bg);
  border-radius: var(--border-radius);
  padding: 30px 30px 30px 30px; /* Adjusted padding: top right bottom left */
  margin-top: 40px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  position: relative;
  overflow: hidden;
}

.schedule-header {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 15px;
  margin-bottom: 20px;
  border-bottom: 2px solid rgba(255, 215, 0, 0.2);
  padding-bottom: 15px;
}

.day-header {
  text-align: center;
  font-weight: 700;
  font-size: 1.2rem;
  color: var(--primary-color);
  letter-spacing: 1px;
}

.schedule-content {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 15px;
}

.day-column {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.class-slot {
  background: rgba(37, 37, 37, 0.7);
  border-radius: var(--border-radius);
  padding: 15px;
  display: flex;
  flex-direction: column;
  gap: 5px;
  transition: all 0.3s ease;
  border: 1px solid rgba(255, 215, 0, 0.1);
  position: relative;
  overflow: hidden;
}

.class-slot:hover {
  transform: translateY(-3px);
  background: rgba(255, 215, 0, 0.1);
  border-color: var(--primary-color);
}

.class-slot::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: var(--primary-color);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.class-slot:hover::before {
  opacity: 1;
}

.time {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--primary-color);
}

.class-name {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--light-text);
}

.trainer {
  font-size: 0.8rem;
  color: var(--gray-text);
}

/* Membership Section */
.membership {
  background-color: var(--darker-bg);
  position: relative;
  overflow: hidden;
  padding: 60px 0 80px;
}

.membership-plans {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 20px;
}

.plan-card {
  background-color: var(--card-bg);
  border-radius: var(--border-radius);
  padding: 20px;
  text-align: center;
  position: relative;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s var(--animation-easing), transform 0.8s var(--animation-easing), box-shadow 0.5s var(--animation-easing);
  font-size: 0.95rem;
  display: flex;
  flex-direction: column;
  height: auto;
  will-change: transform, opacity;
}

.plan-card.animated {
  opacity: 1;
  transform: translateY(0);
}

.plan-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
}

.plan-card h3 {
  font-size: 1.3rem;
  margin-bottom: 15px;
  white-space: nowrap;
  margin-top: 0;
}

.plan-card.featured {
  border: none; /* Remove border for featured */
  z-index: 1;
  margin-top: 0; /* Align with others */
  padding-top: 20px; /* Standard padding */
  /* Note: specific scaling removed, handled by hover if needed */
}

.popular-tag { /* Consider renaming or removing if savings-tag is used */
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background-color: var(--primary-color);
  color: #000000;
  padding: 5px 15px;
  font-size: 0.8rem;
  font-weight: 600;
  border-radius: var(--border-radius);
  width: auto;
  white-space: nowrap;
  box-shadow: 0 3px 6px rgba(0, 0, 0, 0.2);
  z-index: 2;
}

.price {
  margin-bottom: 20px;
}

.price .amount {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--primary-color);
}

.price .currency {
  font-size: 1rem;
  font-weight: 500;
  margin-left: 5px;
  color: var(--gray-text);
}

.features {
  margin-bottom: 20px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  justify-content: center; /* Align features vertically centered */
}

.features li {
  padding: 7px 0;
  color: var(--gray-text);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.9rem;
}

.features li:last-child {
  border-bottom: none;
}

.plan-card .btn {
  margin-top: auto; /* Push button to bottom */
  color: #000000;
}

.plan-card > * {
  position: relative; /* Keep for stacking context if needed */
}

/* Savings tooltip */
.savings-tag {
  position: absolute;
  top: -12px;
  right: -12px;
  background-color: #28a745;
  color: white;
  padding: 5px 10px;
  font-size: 0.9rem;
  font-weight: 700;
  border-radius: var(--border-radius);
  transform: rotate(5deg);
  box-shadow: 0 3px 6px rgba(0, 0, 0, 0.2);
  z-index: 2;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% {
    transform: rotate(5deg) scale(1);
  }
  50% {
    transform: rotate(5deg) scale(1.1);
  }
  100% {
    transform: rotate(5deg) scale(1);
  }
}

/* Hours Section */
.hours {
  background-color: var(--dark-bg);
  position: relative;
  overflow: hidden;
  padding: 60px 0 80px;
}

.hours-content {
  display: flex;
  justify-content: center;
  gap: 30px; /* Add spacing between cards */
  flex-wrap: wrap; /* Allow wrapping on smaller screens */
  max-width: 1000px; /* Limit maximum width */
  margin: 0 auto; /* Center the container */
}

.hours-box {
  background-color: var(--card-bg);
  padding: 30px 50px;
  border-radius: var(--border-radius);
  text-align: center;
  opacity: 0;
  transform: scale(0.95);
  transition: opacity 0.8s var(--animation-easing), transform 0.8s var(--animation-easing), box-shadow 0.5s var(--animation-easing);
  will-change: transform, opacity;
  min-width: 280px; /* Minimum width for each card */
  flex: 1; /* Allow cards to grow */
}

.hours-box.animated {
  opacity: 1;
  transform: scale(1);
}

.hours-box:hover {
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.hours-box h3 {
  font-size: 1.5rem;
  margin-bottom: 10px;
  color: var(--primary-color);
}

.hours-box p {
  font-size: 1.2rem;
  line-height: 1.6;
}

/* Contact Section */
.contact {
  background-color: var(--darker-bg);
  position: relative;
  overflow: hidden;
  padding: 60px 0 80px;
}

.contact-content {
  display: flex;
  gap: 30px; /* Adjust gap if needed */
  flex-wrap: wrap; /* Allow wrapping on mobile */
  margin-top: -30px !important; /* Increase negative margin and add !important */
}

.contact-form {
  flex: 1;
  opacity: 0;
  transform: translateX(-40px);
  transition: opacity 0.9s var(--animation-easing), transform 0.9s var(--animation-easing);
  will-change: transform, opacity;
}

.contact-form.animated {
  opacity: 1;
  transform: translateX(0);
}

.form-group {
  margin-bottom: 20px;
}

.form-group input,
.form-group select,
.form-group textarea {
  font-family: 'Helvetica World', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  font-size: 1rem;
  width: 100%;
  padding: 15px;
  background-color: var(--card-bg);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--light-text);
  border-radius: var(--border-radius);
}

/* Remove resize handle from textareas */
.form-group textarea {
  resize: none;
}

/* Custom styling for select dropdown */
.form-group select {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background-image: url("data:image/svg+xml;utf8,<svg fill='%23FFD700' height='24' viewBox='0 0 24 24' width='24' xmlns='http://www.w3.org/2000/svg'><path d='M7 10l5 5 5-5z'/></svg>");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 20px;
  padding-right: 40px;
  cursor: pointer;
}

/* For Firefox */
.form-group select::-ms-expand {
  display: none;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary-color);
}

.contact-info {
  flex: 1;
  opacity: 0;
  transform: translateX(40px);
  transition: opacity 0.9s var(--animation-easing), transform 0.9s var(--animation-easing);
  will-change: transform, opacity;
}

.contact-info.animated {
  opacity: 1;
  transform: translateX(0);
}

  .contact-info .image-placeholder {
    height: auto;
    margin-bottom: 30px;
    background-color: transparent; /* Ensure no bg color interferes */
  }

/* Specific handling for contact image */
.contact-info .image-placeholder img {
  object-fit: contain; /* Use contain if you don't want cropping */
  background-color: transparent;
}

.contact-info .image-placeholder.has-image:hover img {
  transform: none; /* No hover effect needed here */
}

.info-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.info-item i {
  font-size: 1.5rem;
  color: var(--primary-color);
  width: 24px; /* Fixed width for alignment */
  text-align: center;
}

.info-item div {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.info-item h4 {
  margin: 0;
  font-size: 1.1rem;
  color: var(--light-text); /* Use light text */
}

.info-item p {
  margin: 0;
  color: var(--gray-text); /* Use gray text */
  opacity: 1; /* Reset opacity if needed */
}

/* Footer */
footer {
  background-color: var(--darker-bg);
  padding: 50px 0 20px;
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 30px;
}

.footer-logo {
  margin-bottom: 10px;
}

.footer-logo img {
  max-height: 55px;
  width: auto;
}

.footer-logo h2 {
  font-size: 1.8rem;
  color: var(--primary-color);
}

.footer-links ul {
  display: flex;
  flex-wrap: wrap; /* Allow wrapping on smaller screens */
  justify-content: center; /* Center links if they wrap */
}

.footer-links ul li {
  margin: 0 15px;
}

.footer-links ul li a:hover {
  color: var(--primary-color);
}

.footer-social {
  display: flex;
  gap: 15px;
}

.social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background-color: var(--card-bg);
  border-radius: 50%;
  color: var(--primary-color);
  font-size: 1.2rem;
  transition: var(--transition);
}

.social-link:hover {
  background-color: var(--primary-color);
  color: #000000;
  transform: translateY(-5px);
}


.copyright {
  text-align: center;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 20px;
  color: var(--gray-text);
  font-size: 0.9rem;
}

/* Media Queries */
@media (max-width: 1024px) {
  .container {
    padding: 0 30px;
  }

  .hero-content h1 {
    font-size: 3rem;
  }

  .about-content {
    gap: 30px;
  }

  .about-text {
    padding-left: 0; /* Remove padding from desktop */
    margin-left: 0; /* Remove margin from desktop */
  }

  /* Services Grid Removed */

  .membership-plans {
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 25px;
  }

  .plan-card {
    padding: 15px;
  }

  .contact-content {
    gap: 30px;
  }

  /* Testimonials Desktop */
  .testimonials-container {
    height: 700px;
  }
  .testimonial-column {
    width: calc(25% - 15px);
  }
  .testimonial-column:nth-child(5) {
    display: none;
  }

  /* Services Carousel adjustments for Tablet */
  .service-card-carousel {
    width: 350px; /* Adjust width */
    height: 520px; /* Adjust height */
  }
  .service-card-overlay {
    padding: 30px 25px;
  }
  .service-card-overlay h3 {
    font-size: 1.8rem;
  }
  .service-card-overlay p {
    font-size: 1.1rem;
  }
}

@media (max-width: 768px) {
  /* General Mobile Adjustments */
  .container {
      padding: 0 15px; /* Consistent mobile padding */
  }
  section {
      padding: 40px 0; /* Reduce section padding */
  }
   .section-header h2 {
      font-size: 2.2rem; /* Smaller section title */
  }
   .divider-content {
      width: 60px; /* Slightly smaller icon for potentially smaller mobile header */
      height: 60px;
      border-radius: 50%;
      font-size: 1.4rem; /* Adjust icon font size if needed */
      /* Remove margin-based centering */
      /* margin-top: -35px; */ /* Remove this line */
      /* margin-left: -35px; */ /* Remove this line */
      /* Ensure position and transform are correctly applied for centering */
      position: absolute;
      left: 50%;
      top: 50%; /* Set top to 50% for vertical centering */
      transform: translate(-50%, -50%); /* Use transform for centering */
      display: flex; /* Ensure flex properties for icon alignment */
      align-items: center;
      justify-content: center;
      z-index: 10; /* Keep on top */
  }
  
  /* ----------------------------------------------------------
     ABOUT photo — final mobile fix
     ----------------------------------------------------------
     1.  Let the <div class="image-placeholder"> shrink to the
         natural height of the loaded photo (no min-height).
     2.  Keep its background transparent so no grey bar shows.
     3.  Preserve the global bevel radius on both wrapper + img.
  ---------------------------------------------------------- */
  .about-image .image-placeholder{
      min-height: auto !important;          /* remove fixed 300 px */
      height: auto !important;
      background-color: transparent !important;
      border-radius: var(--border-radius) !important;
      overflow: hidden !important;          /* clip the bevel */
  }
  .about-image .image-placeholder img{
      height: auto !important;
      max-height: none !important;
      border-radius: inherit !important;    /* bevel on the image */
      display: block;                       /* wipes out stray 4 px gap */
  }

  /* keep equal 30 px spacing for the lower yellow divider */
  .about-image::after{
      margin: 30px auto 10px !important;
  }

  /* Header and Navigation */
  header .container {
    flex-wrap: wrap;
    justify-content: flex-start; /* Change from center to flex-start */
    padding: 0;
    position: relative;
    height: 60px; /* << REDUCED from 80px */
  }

  .logo {
    padding: 5px 0; /* Adjust vertical padding to center logo in new height */
    padding-left: 15px; /* Reduce left padding to move logo to the left edge */
    padding-right: 0; /* Remove right padding */
    display: flex; /* Use flex to help center */
    align-items: center; /* Vertically center logo */
    height: 100%; /* Ensure logo container takes full header height */
  }

  .logo-img {
    max-height: 40px; /* << REDUCED from 48px */
    width: auto;
    display: block;
    margin: 0; /* Remove auto margin that was centering the logo */
  }

  .mobile-menu {
    display: block; /* Show hamburger icon */
    position: absolute;
    right: 15px; /* Align with container padding */
    top: 50%;
    transform: translateY(-50%); /* Re-affirm vertical centering */
    z-index: 1100; /* Ensure it's above nav */
  }
  
  /* Header social on mobile */
  .header-social {
    position: absolute;
    right: 50px; /* Position next to mobile menu */
    top: 50%;
    transform: translateY(-50%); /* Re-affirm vertical centering */
    margin-left: 0; /* Reset desktop margin */
    gap: 10px;
  }
  
  .header-social a {
    width: 28px;
    height: 28px;
    font-size: 0.9rem;
  }

  /* Mobile Navigation */
  nav {
    display: none !important; /* Hide nav by default */
    position: absolute;
    top: 100%; /* Position below header */
    left: 0;
    width: 100%;
    background-color: var(--darker-bg);
    box-shadow: 0 5px 10px rgba(0,0,0,0.2);
    padding: 10px 0;
    z-index: 1050; /* Ensure it's below mobile menu icon but above content */
    margin-left: 0; /* Reset desktop margin */
  }

  /* Show nav when it has the active class */
  nav.active {
    display: block !important;
  }

  nav ul {
    flex-direction: column; /* Stack nav links vertically */
    align-items: center;
    width: 100%;
  }

  nav ul li {
    margin: 10px 0; /* Adjust margin for vertical layout */
    width: 100%;
    text-align: center;
  }

  nav ul li a {
    display: block; /* Make links take full width */
    padding: 10px 0;
  }
  nav ul li a::after {
      display: none; /* Remove underline effect on mobile */
  }

  /* Hero Section */
  .hero {
    padding: 120px 0 40px; /* Adjust padding */
    text-align: center;
  }

  .hero .container {
    flex-direction: column;
    gap: 30px;
  }

  .hero-content h1{
    font-size: 2.2rem;
    line-height: var(--heading-line-height);
  }

  /* keep titles & body copy in sync on small screens */
  .section-header h2,
  .section-subtitle,
  .hero-content p{
    line-height: var(--heading-line-height);
  }

  .hero-content p {
    font-size: 1.1rem;
  }

  .rating {
    justify-content: center;
    gap: 10px; /* Adjust gap */
  }

  .profile-pics {
    margin-left: 0; /* Align with center */
  }

  .hero-image {
    width: 100%;
  }

  .hero-image .image-placeholder {
    height: auto;
    max-width: 90%;
    margin: 0 auto;
    line-height: 0; /* Fix line height issue on mobile */
    border-radius: var(--border-radius) !important; /* Ensure curved corners on mobile */
    overflow: hidden !important; /* Ensure border radius clips the image properly */
  }

  .hero-image .image-placeholder img {
    border-radius: var(--border-radius) !important; /* Ensure image itself has curved corners on mobile */
  }

  /* About Section */
  .about {
    padding: 40px 0 60px;
  }

  .about-content {
    flex-direction: column;
    gap: 40px;
  }

  .about-content::before {
    display: none; /* Hide desktop vertical line */
  }

  .about-image,
  .about-text {
    flex: 0 0 100%;
    width: 100%;
    max-width: 500px;
    margin: 0 auto;
    transform: none !important; /* Remove any transforms */
  }

  .about-image::after { /* Mobile horizontal divider */
    content: "";
    display: block;
    width: 80px;
    height: 2px; /* Thinner to match section dividers */
    background-color: var(--primary-color);
    margin: 30px auto 10px;
    clear: both;
  }

  .about-text {
    text-align: center;
    padding-left: 0;
    margin-left: 0;
    border-left: none;
  }

  .about-text p {
    font-size: 1.3rem;
  }

  .about-text .highlight {
    font-size: 1.4rem;
  }

  /* Services Section */
  .services {
    padding: 40px 0 60px;
  }

  /* Services Carousel Mobile Styles */
  .services-carousel-container {
    padding: 10px 0;
    margin: 0;
    /* Ensure container takes full width */
    width: 100%;
    overflow: hidden; /* Hide overflow from potential padding */
  }

  /* Style the scroll container */
  .services-carousel {
    display: flex; /* Use Flexbox */
    overflow-x: scroll; /* Enable horizontal scrolling */
    overflow-y: hidden;
    scroll-snap-type: x mandatory; /* Snap scrolling */
    -webkit-overflow-scrolling: touch; /* Smooth scrolling on iOS */
    scroll-behavior: smooth;
    gap: 15px; /* Space between cards */

    /* Padding to allow first card to align left */
    padding: 15px; /* Equal padding all sides */

    margin: 0; /* Remove margin */
    width: 100%; /* Ensure full width */
    box-sizing: border-box; /* Include padding in width */

    /* Hide scrollbar */
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE and Edge */
  }
   .services-carousel::-webkit-scrollbar {
      display: none; /* Chrome, Safari, Opera */
  }

  /* Style individual service cards */
  .service-card-carousel {
    flex: 0 0 45%; /* Aim for ~2.2 cards visible */
    width: 45%; /* Explicit width */
    height: 280px; /* Adjust height significantly */
    scroll-snap-align: start; /* Snap start of card to container start */
    min-width: 150px; /* Set a reasonable minimum width */
    transform: none !important; /* Remove desktop animations */
    opacity: 1 !important; /* Ensure visible */
    box-sizing: border-box;
    border-radius: var(--border-radius); /* Use unified border radius */
  }

  .service-card-carousel:hover {
    transform: translateY(-5px) !important; /* Smaller hover effect */
  }

  /* Adjust Overlay */
  .service-card-overlay {
    padding: 15px 12px; /* Reduce padding */
    min-height: 30%; /* Adjust overlay height */
    border-radius: 0 0 var(--border-radius) var(--border-radius); /* Match card radius */
  }

  .service-card-overlay h3 {
    font-size: 1.1rem; /* Reduce title size */
    margin-bottom: 5px;
    height: auto; /* Allow height to adjust */
    line-height: 1.2;
  }

  .service-card-overlay p {
    font-size: 0.85rem; /* Reduce text size */
    line-height: 1.3;
  }

  /* Navigation Buttons */
  .carousel-navigation {
    margin-top: 20px; /* Space above buttons */
  }

  .carousel-nav-btn {
    width: 40px;
    height: 40px;
    font-size: 1rem;
  }

  /* Remove excessive right margin from desktop */
  .service-card-carousel:last-child {
    margin-right: 0; /* Remove desktop margin */
  }

  /* Schedule Section */
  .schedule {
    padding: 40px 0 60px;
  }

  .schedule-grid {
    overflow-x: auto; /* Allow horizontal scroll */
    padding: 15px;
  }

  .schedule-header,
  .day-header {
    padding: 10px 5px;
  }
  
  /* Next styles begin here */
  
  /* ===== Mobile Styles for Membership Carousel (Clean Flexbox) ===== */
  .membership {
    padding: 40px 0 60px; /* Keep existing section padding */
  }

  .membership-plans {
    display: flex; /* Use Flexbox */
    overflow-x: scroll; /* Enable horizontal scrolling */
    overflow-y: hidden;
    scroll-snap-type: x mandatory; /* Snap scrolling */
    -webkit-overflow-scrolling: touch; /* Smooth scrolling on iOS */
    scroll-behavior: smooth;
    gap: 15px; /* Space between cards */

    /* Padding: (100% - card_width) / 2 = (100-80)/2 = 10% */
    padding: 20px 10%; /* Top/bottom padding + Side padding for centering */

    margin: 0; /* Remove margin */
    width: 100%; /* Ensure full width */
    box-sizing: border-box; /* Include padding in width */

    /* Hide scrollbar */
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE and Edge */
  }

  .membership-plans::-webkit-scrollbar {
    display: none; /* Chrome, Safari, Opera */
  }

  /* Style individual plan cards */
  .plan-card {
    flex: 0 0 80%; /* Card width (80% leaves 10% each side for padding) */
    scroll-snap-align: center; /* Snap cards to the center */
    scroll-snap-stop: always; /* Ensure it always snaps */
    min-height: 450px; /* Maintain card height */
    margin: 0; /* Remove individual margins */
    transform: none !important; /* Override any animation transforms */
    opacity: 1 !important; /* Override any animation opacity */
    box-sizing: border-box;
    /* Ensure card height is consistent if content varies */
    display: flex;
    flex-direction: column;
    border-radius: var(--border-radius); /* Use unified border radius */
  }

   /* Ensure features list takes up available space */
    .plan-card .features {
      flex-grow: 1;
      margin-bottom: 20px; /* Add back bottom margin before button */
    }

   /* Ensure button stays at the bottom */
    .plan-card .btn {
      margin-top: auto; /* Pushes button to the bottom */
      font-weight: 700; /* Bold text for better visibility */
    }

  /* No special margins needed for first/last child with container padding */
  .plan-card:first-child,
  .plan-card:last-child {
    margin-left: 0;
    margin-right: 0;
  }

  .plan-card.featured {
    transform: none !important;
    margin-top: 0; /* Align top with other cards */
    z-index: 1; /* Ensure it's above others if needed */
  }

  /* Keep navigation dots */
  .membership-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin: 20px auto 0; /* Center dots below the carousel */
    padding: 0 15px; /* Add padding if needed */
  }

  .membership-dot {
    width: 10px;
    height: 10px;
    background-color: var(--card-bg);
    border: 1px solid var(--primary-color);
    border-radius: 50%;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.3s ease;
  }

  .membership-dot.active {
    background-color: var(--primary-color);
    transform: scale(1.2);
  }

  .membership-dots {
    position: relative;   /* create its own stacking context */
    z-index: 2;           /* higher than .pattern-waves (which is 0) */
  }

  .savings-tag {
    top: 10px;
    right: 10px;
    font-size: 0.8rem;
    padding: 4px 8px;
  }
  /* ===== END Mobile Styles for Membership Carousel ===== */


  /* Hours Section */
  .hours {
    padding: 40px 0 60px;
  }

  .hours-box {
    padding: 25px 30px; /* Adjust padding */
    margin: 0 15px; /* Add margin to prevent touching edges */
    border-radius: var(--border-radius); /* Use unified border radius */
  }

  .hours-box h3 {
    font-size: 1.3rem;
  }

  .hours-box p {
    font-size: 1.1rem;
  }

  /* Contact Section */
  .contact {
    padding: 40px 0 60px;
  }

  .contact-content {
    display: flex; /* Ensure flex is explicitly set */
    flex-direction: column;
    gap: 40px; /* Keep gap */
    margin-top: -45px !important; /* Increased negative margin for mobile */
  }

  .contact-info {
    order: 1; /* << Make info block (with image) appear FIRST */
    transform: none !important;
    opacity: 1 !important;
    /* Ensure image container takes appropriate space */
    display: flex;
    flex-direction: column;
    align-items: center; /* Center items like image */
  }

  .contact-form {
    order: 2; /* << Make form block appear SECOND */
    transform: none !important;
    opacity: 1 !important;
  }

  .contact-info .image-placeholder {
    order: -1; /* Make image appear at the top WITHIN the info block */
    width: 100%; /* Allow image container to take width */
    max-width: 400px; /* Limit max width if desired */
    height: auto; /* Adjust height automatically */
    margin: 0 auto 30px auto; /* Keep bottom margin, center horizontally */
  }

  /* Adjust contact info items alignment if needed after reordering */
  .contact-info .info-item {
     /* Styles already center these on mobile, should be okay */
     width: 100%; /* Ensure items take full width if needed */
     max-width: 400px; /* Match image max-width */
     flex-direction: column; /* Stack vertically on mobile */
     align-items: center; /* Center align */
     text-align: center; /* Center text */
     gap: 0.5rem; /* Spacing between icon and text */
  }

  .contact-info .info-item i {
    margin-bottom: 0.5rem;
    margin-right: 0; /* Reset right margin on mobile */
  }

  .form-group input,
  .form-group select,
  .form-group textarea {
    font-family: 'Helvetica World', 'Helvetica Neue', Helvetica, Arial, sans-serif;
    border-radius: var(--border-radius); /* Use unified border radius */
  }

  .info-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
  }

  .info-item i {
    font-size: 1.5rem;
    color: var(--primary-color);
    width: 24px; /* Fixed width for alignment */
    text-align: center;
  }

  .info-item div {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
  }

  .info-item h4 {
    margin: 0;
    font-size: 1.1rem;
    color: var(--light-text); /* Use light text */
  }

  .info-item p {
    margin: 0;
    color: var(--gray-text); /* Use gray text */
    opacity: 1; /* Reset opacity if needed */
  }

  /* Testimonials Section */
   .testimonials {
      padding: 60px 0 60px; /* Adjust padding */
  }
  .testimonials .section-header {
      margin-bottom: 40px;
  }
   .testimonials .section-title {
      font-size: 2.2rem;
  }
   .testimonials .section-subtitle {
      font-size: 1rem;
  }

  /* Hide desktop testimonials, show mobile */
  .testimonials-container {
    display: none !important;
  }
  
  /* Show mobile testimonials carousel */
  .testimonials-mobile.always-show {
    display: block !important;
    padding: 0; /* Remove side padding, handled by wrapper */
    margin-bottom: 0; /* Dots handle bottom margin */
    width: 100%; /* Ensure full width */
    overflow: hidden; /* Hide overflow on outer container */
  }
  
  /* Hide desktop testimonial carousel */
  .testi-carousel, #testi-dots {
    display: none !important;
  }

  /* Mobile testimonial cards wrapper */
  .mobile-testimonials-wrapper {
    display: flex;
    gap: 15px; /* Adjust gap */
    overflow-x: scroll; /* Use scroll */
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    /* Padding logic similar to membership */
    padding: 20px 10%; /* Side padding for centering */
    margin: 0; /* Remove margin */
    width: 100%;
    box-sizing: border-box;

    /* Hide scrollbar */
    scrollbar-width: none;
    -ms-overflow-style: none;
  }
  .mobile-testimonials-wrapper::-webkit-scrollbar {
    display: none;
  }

  /* Each mobile testimonial card */
  .mobile-testimonial-card {
    flex: 0 0 80%; /* Card width */
    scroll-snap-align: center; /* Center snap */
    background: rgba(37, 37, 37, 0.7);
    border-radius: var(--border-radius); /* Use unified border radius */
    padding: 25px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    box-sizing: border-box;
    min-height: 300px; /* Adjust min height if needed */
  }

   .mobile-testimonial-card .review-text {
      font-size: 0.95rem; /* Adjust size */
      font-style: normal; /* Remove italics if preferred */
  }
   .mobile-testimonial-card .reviewer-profile {
      width: 40px; /* Adjust size */
      height: 40px;
      margin-right: 10px;
      border-radius: 50%; /* Keep profile pics round */
  }
  .mobile-testimonial-card .reviewer-name {
      font-size: 0.95rem; /* Adjust size */
  }
   .mobile-testimonial-card .star-rating {
      font-size: 0.9rem; /* Adjust size */
  }


  /* Testimonial Dots */
  .testimonial-dots {
    display: flex !important;
    justify-content: center !important;
    gap: 8px !important;
    margin: 20px auto 0 !important;
    padding: 0 !important;
    animation: none !important;
    transform: none !important;
    transition: none !important;
  }
  
  .testimonial-dots .dot {
    width: 10px !important;
    height: 10px !important;
    margin: 0 !important;
    background-color: var(--card-bg) !important;
    border: 1px solid var(--primary-color) !important;
    border-radius: 50% !important;
    cursor: pointer !important;
    animation: none !important;
    transform: none !important;
    transition: background-color 0.3s ease !important;
    opacity: 1 !important;
    position: static !important;
  }
  
  .testimonial-dots .dot.active {
    background-color: var(--primary-color) !important;
    transform: scale(1) !important;
  }

  /* Footer */
  .footer-content {
    flex-direction: column;
    text-align: center;
    gap: 25px;
  }

  .footer-links ul {
    flex-direction: column;
    gap: 10px;
    margin: 0;
  }

  .footer-links ul li {
    margin: 0;
  }

  .footer-social {
    justify-content: center;
  }
  
  .footer-social a {
    width: 36px;
    height: 36px;
    border-radius: 50%;
  }
  
  .copyright p {
    font-size: 0.9rem;
  }

  .schedule {
    padding: 40px 0 60px;
  }

  .schedule-grid {
    overflow-x: auto; /* Keep horizontal scroll */
    padding: 15px;
    min-width: 100%; /* Ensure full width container */
    width: auto; /* Allow container to expand */
  }

  /* Corrected min-width for scrollable schedule content */
  .schedule-header,
  .schedule-content {
    display: grid;
    grid-template-columns: repeat(6, minmax(150px, 1fr)); /* Fixed minimum width for columns */
    min-width: 975px; /* Corrected: 6 * 150px columns + 5 * 15px gaps = 975px */
    gap: 15px;
    width: 100%;
  }

  .day-column {
    min-width: 150px; /* Ensure minimum width */
    width: 100%;
  }

  /*
  Original rule that caused title misalignment due to horizontal padding on both container and item:
  .day-header {
    padding: 10px 5px; 
  }
  */

  /* Fix for title alignment: Remove horizontal padding from header container and day cells */
  .schedule-header { /* The grid container for MON, TUE... */
    padding-top: 10px;    /* Maintain intended vertical padding */
    padding-left: 0;
    padding-right: 0;
    padding-bottom: 15px; /* Maintain base style's padding-bottom for border spacing */
  }
  .day-header { /* The MON, TUE cells themselves */
    padding-top: 10px;    /* Maintain intended vertical padding */
    padding-bottom: 10px; /* Maintain intended vertical padding */
    padding-left: 0;      /* Remove horizontal padding */
    padding-right: 0;     /* Remove horizontal padding */
    /* text-align: center; is already global and is correct */
  }
}

@media (max-width: 576px) {
  /* Adjustments for smaller mobile screens */
   .section-header h2 {
      font-size: 1.9rem;
  }

  .hero-content h1 {
      font-size: 1.9rem;
  }

  .about-text p {
      font-size: 1.1rem;
  }
   .about-text .highlight {
      font-size: 1.2rem;
  }

  .plan-card.featured {
      transform: scale(1); /* No scaling on mobile */
  }

   .price .amount {
      font-size: 2.3rem;
  }

   .form-group input,
   .form-group select,
   .form-group textarea {
      padding: 12px 15px;
      font-size: 0.95rem;
  }

   .btn {
      padding: 10px 25px;
      font-size: 0.9rem;
  }

   .footer-logo img {
      max-height: 48px;
      margin: 0 auto;
   }
   
   .copyright p {
      font-size: 0.8rem;
  }

   /* Adjust image placeholder heights */
   .hero-image .image-placeholder { height: auto; }
   .about-image .image-placeholder { height: auto; }
   .contact-info .image-placeholder { height: auto; }

   /* Services adjustments for small screens */
   .services-carousel {
     padding: 15px; /* Keep padding */
     gap: 10px; /* Reduce gap */
     margin-left: 0; /* Remove margin */
   }
   .service-card-carousel {
    flex-basis: 60%; /* Show less than 2 cards */
    width: 60%;
    height: 300px; /* Adjust height */
  }
  .service-card-overlay h3 {
    font-size: 1.2rem; /* Adjust text size */
    margin-bottom: 6px;
  }
  .service-card-overlay p {
    font-size: 0.85rem;
    line-height: 1.2;
  }
  
  /* Schedule info block on smaller screens */
  .schedule-info-block {
    flex-direction: column;
    gap: 1.5rem;
  }
  
  .schedule-info-block .info-group:first-child {
    border-right: none;
    border-bottom: 2px solid var(--primary-color);
    padding-right: 0;
    padding-bottom: 1rem;
    width: 100%;
  }

} /* End @media (max-width: 576px) */

@media (max-width: 480px) {
  /* Membership */
  .membership-plans {
    gap: 10px; /* Slightly reduce gap */
     /* Adjust padding: (100% - 85%) / 2 = 7.5% */
    padding: 20px 7.5%;
  }
 .plan-card {
    flex: 0 0 85%; /* Make cards slightly wider */
    min-height: 420px; /* Adjust height slightly */
  }

  /* Testimonials */
  .mobile-testimonials-wrapper {
      gap: 10px;
      padding: 20px 7.5%; /* Match membership */
  }
   .mobile-testimonial-card {
      flex: 0 0 85%; /* Match membership */
      min-height: 280px; /* Adjust height */
      padding: 20px;
  }
   .mobile-testimonial-card .review-text {
      font-size: 0.9rem;
  }
   .mobile-testimonial-card .reviewer-name {
      font-size: 0.9rem;
  }
   .mobile-testimonial-card .star-rating {
      font-size: 0.85rem;
  }

  /* Service Carousel on small screens */
  .services-carousel {
    gap: 10px; /* Keep reduced gap */
    padding: 15px; /* Adjust padding */
  }
   .service-card-carousel {
    flex-basis: 70%; /* Show ~1.4 cards */
    width: 70%;
    height: 260px; /* Adjust height */
    min-width: 0; /* Remove min-width */
   }
   .service-card-overlay {
    padding: 15px 12px; /* Adjust padding */
    min-height: 30%;
   }
   .service-card-overlay h3 {
    font-size: 1rem;
    margin-bottom: 4px;
   }
   .service-card-overlay p {
    font-size: 0.8rem; /* Slightly smaller */
    line-height: 1.2;
   }
   .carousel-nav-btn {
    width: 36px;
    height: 36px;
    font-size: 0.9rem;
   }
   /* Remove last child margin for snap */
   .service-card-carousel:last-child {
    margin-right: 0;
   }

   /* Schedule on small screens */
   .schedule-info-overlay {
      flex-direction: column;
      gap: 1rem;
      padding: 0.8rem;
      align-items: flex-start;
      margin-top: 30px; /* Increase top margin for more space */
    }
    .info-group-title {
      border-bottom: none;
      padding-bottom: 0;
    }

} /* End @media (max-width: 480px) */

/* Add extra small screen adjustments */
@media (max-width: 375px) {
 .service-card-carousel {
    flex-basis: 75%; /* Show slightly more than one card */
    width: 75%;
    height: 250px; /* Adjust height */
  }

  .service-card-overlay {
    padding: 12px 10px;
  }

  .service-card-overlay h3 {
    font-size: 1rem;
    margin-bottom: 3px;
  }

  .service-card-overlay p {
    font-size: 0.75rem;
    line-height: 1.15;
  }

  /* Membership/Testimonials */
   .membership-plans, .mobile-testimonials-wrapper {
      padding: 20px 5%; /* Reduce side padding */
   }
    .plan-card, .mobile-testimonial-card {
      flex: 0 0 90%; /* Make cards wider */
   }
}

/* Scrolled Header */
header.scrolled {
  padding: 20px 0; /* Changed from 10px 0 to match default header padding */
  background-color: rgba(18, 18, 18, 0.95);
  backdrop-filter: blur(10px);
}

/* Form Validation */
.form-group input.error,
.form-group select.error,
.form-group textarea.error {
  border-color: #E53935; /* Red border for errors */
}

/* Form Success Message */
#form-success-message {
  background-color: rgba(40, 167, 69, 0.1) !important;
  color: var(--light-text) !important;
  border: 1px solid var(--primary-color) !important;
  border-radius: var(--border-radius) !important;
  animation: slideIn 0.5s ease-out;
}

#form-success-message i {
  color: var(--primary-color) !important;
}

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

/* Active Navigation Link */
nav ul li a.active {
  color: var(--primary-color);
}

nav ul li a.active::after {
  width: 100%;
}

/* Enhanced Animations & Transitions */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.8s var(--animation-easing), transform 0.8s var(--animation-easing);
  will-change: opacity, transform;
}

.fade-in.animated {
  opacity: 1;
  transform: translateY(0);
}

.fade-in-left {
  opacity: 0;
  transform: translateX(-30px);
  transition: opacity 0.8s var(--animation-easing), transform 0.8s var(--animation-easing);
  will-change: opacity, transform;
}

.fade-in-right {
  opacity: 0;
  transform: translateX(30px);
  transition: opacity 0.8s var(--animation-easing), transform 0.8s var(--animation-easing);
  will-change: opacity, transform;
}

.fade-in-left.animated,
.fade-in-right.animated {
  opacity: 1;
  transform: translateX(0);
}

.delay-100 { transition-delay: 0.1s; }
.delay-200 { transition-delay: 0.2s; }
.delay-300 { transition-delay: 0.3s; }
.delay-400 { transition-delay: 0.4s; }
.delay-500 { transition-delay: 0.5s; }
.delay-600 { transition-delay: 0.6s; }
.delay-700 { transition-delay: 0.7s; }
.delay-800 { transition-delay: 0.8s; }

/* Abstract Background Patterns */
.pattern-grid {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image:
    linear-gradient(to right, rgba(255, 215, 0, 0.05) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 215, 0, 0.05) 1px, transparent 1px);
  background-size: 30px 30px;
  z-index: 0;
  opacity: 0.5;
}

.pattern-diagonal {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: repeating-linear-gradient(
    45deg,
    rgba(255, 215, 0, 0.03) 0px,
    rgba(255, 215, 0, 0.03) 2px,
    transparent 2px,
    transparent 10px
  );
  z-index: 0;
  opacity: 0.7;
}

.pattern-dots {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: radial-gradient(rgba(255, 215, 0, 0.1) 1px, transparent 1px);
  background-size: 20px 20px;
  z-index: 0;
  opacity: 0.3;
}

.pattern-waves {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background:
    repeating-linear-gradient(
      0deg,
      transparent,
      transparent 20px,
      rgba(255, 215, 0, 0.03) 20px,
      rgba(255, 215, 0, 0.03) 21px
    );
  z-index: 0;
  opacity: 0.4;
}

.pattern-circle {
  position: absolute;
  bottom: -150px;
  left: -150px;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  border: 30px solid rgba(255, 215, 0, 0.03);
  z-index: 0;
}

/* Section Divider */
.section-divider {
  position: relative;
  height: 2px;
  background: linear-gradient(to right, transparent, var(--primary-color), transparent);
  overflow: visible;
  margin: 0;
  padding: 0;
  z-index: 10;
}

.section-divider::before,
.section-divider::after {
  display: none;
}

.divider-content {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 60px;
  height: 60px;
  background-color: var(--primary-color);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: black;
  font-size: 24px;
  box-shadow: 0 0 25px rgba(255, 215, 0, 0.6);
  z-index: 10;
  border: 3px solid rgba(255, 255, 255, 0.2);
}

#about-services-divider {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  margin-top: 0;
  z-index: 20;
  height: 2px;
  background: linear-gradient(to right, transparent, var(--primary-color), transparent);
  transform: translateY(-50%);
}

#about-services-divider .divider-content {
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 25;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 60px;
  height: 60px;
  background-color: var(--primary-color);
  border-radius: 50%;
  box-shadow: 0 0 25px rgba(255, 215, 0, 0.6);
  border: 3px solid rgba(255, 255, 255, 0.2);
}

/* NEW – sits flush against Services */
#schedule-membership-divider {
  margin-top: 0;
}

#hours-contact-divider {
  margin-top: 30px;
}

#contact-footer-divider { /* Removed reference to testimonials */
  margin-bottom: 0;
  position: relative;
  z-index: 5;
  background: linear-gradient(to right, transparent, var(--primary-color), transparent);
}

#contact-footer-divider .divider-content { /* Removed reference to testimonials */
  background-color: var(--primary-color);
  box-shadow: 0 0 20px rgba(255, 215, 0, 0.5);
}

#hero-about-divider {
  margin-bottom: 0;
  position: relative;
  z-index: 5;
  background: linear-gradient(to right, transparent, var(--primary-color), transparent);
}

/* Testimonials Section (Desktop) */
.testimonials {
  background-color: var(--darker-bg);
  position: relative;
  overflow: hidden;
  padding: 60px 0 80px;
}

.testimonials .section-header {
  text-align: center;
  margin-bottom: 60px;
}

.testimonials .section-title {
  font-size: var(--section-title-size);
  font-weight: 700;
  margin-bottom: 15px;
  color: var(--light-text);
  text-transform: uppercase;
  letter-spacing: 1px;
}



.testimonials-container {
  position: relative;
  width: 100%;
  height: 800px;
  overflow: hidden;
  display: flex; /* Will be overridden on mobile */
  justify-content: center;
  gap: 20px;
  background: transparent;
}

.testimonial-column {
  position: relative;
  width: calc(20% - 16px);
  height: 100%;
  overflow: hidden;
  background: transparent;
}

/* Restore testimonial animations for desktop */
.testimonial-track {
  display: flex;
  flex-direction: column;
  width: 100%;
  animation: scroll-vertical 120s linear infinite;
  background: transparent;
}

.testimonial-track.up {
  animation-name: scroll-vertical-reverse;
}

.testimonial-track.fast {
  animation-duration: 100s;
}

.testimonial-column:hover .testimonial-track {
  animation-play-state: paused;
}

.testimonial-card {
  width: 100%;
  min-height: 200px;
  margin: 10px 0;
  background: rgba(37, 37, 37, 0.7);
  border-radius: 20px;
  flex-shrink: 0;
  position: relative;
  overflow: hidden;
  padding: 25px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border: 1px solid rgba(192, 192, 192, 0.1);
  box-shadow:
    0 4px 15px rgba(0, 0, 0, 0.1),
    0 0 2px rgba(192, 192, 192, 0.1),
    0 0 15px rgba(192, 192, 192, 0.05);
  backdrop-filter: blur(5px);
}

.testimonial-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(45deg, var(--primary-color), var(--primary-light));
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 1;
}

.testimonial-card:hover::before {
  opacity: 0.1;
}

.testimonial-card::after {
  display: none;
}

.card-content {
  position: relative;
  z-index: 2;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.review-text {
  font-size: 1rem;
  line-height: 1.6;
  color: var(--light-text);
  margin-bottom: 20px;
  flex-grow: 1;
  opacity: 0.9;
}

.reviewer-info {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: auto;
  padding-top: 15px;
  border-top: 1px solid rgba(192, 192, 192, 0.1);
  padding-top: 15px;
}

.reviewer-profile {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(192, 192, 192, 0.2);
}

.reviewer-details {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.reviewer-name {
  font-size: 1.1rem;
  font-weight: 500;
  color: var(--light-text);
  opacity: 0.9;
}

.star-rating {
  color: var(--primary-color);
  font-size: 1rem;
  letter-spacing: 1px;
}

@keyframes scroll-vertical {
  0% { transform: translateY(0); }
  100% { transform: translateY(-50%); }
}

@keyframes scroll-vertical-reverse {
  0% { transform: translateY(-50%); }
  100% { transform: translateY(0); }
}

/* Gradient overlays */
.gradient-overlay {
  position: absolute;
  left: 0;
  right: 0;
  height: 150px;
  pointer-events: none;
  z-index: 2;
}

.gradient-overlay.top {
  top: 0;
  background: linear-gradient(to bottom, var(--darker-bg) 0%, transparent 100%);
}

.gradient-overlay.bottom {
  bottom: 0;
  background: linear-gradient(to top, var(--darker-bg) 0%, transparent 100%);
}

/* Adjust spacing for new section dividers */
#contact-testimonials-divider, /* This still exists */
#testimonials-footer-divider { /* This needs to be adjusted */
  margin: 0;
  position: relative;
  z-index: 5;
}
/* Example: If divider should be after testimonials */
#testimonials-footer-divider {
    /* Styles for the divider after testimonials */
}

/* Schedule Details Section */
.schedule-details {
  margin-top: 2rem;
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

/* Class Types Grid */
.class-types-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2.5rem;
  padding: 1.5rem 0;
  margin-top: 1rem;
}

.class-type-card {
  background: transparent;
  border-radius: 0;
  padding: 1.5rem 1rem;
  text-align: center;
  position: relative;
  box-shadow: none;
  border: none;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s var(--animation-easing),
              transform 0.5s var(--animation-easing);
}

.class-type-card.animated {
  opacity: 1;
  transform: translateY(0);
}

.class-icon {
  width: 50px;
  height: 50px;
  background: var(--primary-color);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
}

.class-icon i {
  font-size: 1.5rem;
  color: #000000;
}

.class-type-card h3 {
  color: var(--primary-color);
  margin-bottom: 0.75rem;
  font-size: 1.1rem;
  font-weight: 600;
}

.class-type-card p {
  color: var(--light-text);
  font-size: 0.9rem;
  line-height: 1.5;
  max-width: 280px;
  margin: 0 auto;
}

/* Schedule Grid with Info */
.schedule-container { /* This class wasn't used, but keeping related styles grouped */
  position: relative;
  margin-top: 2rem;
}

.schedule-info-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  background: rgba(18, 18, 18, 0.95);
  padding: 1.2rem;
  border-radius: 0 0 0 15px; /* Only bottom-left corner */
  font-size: 0.8rem;
  display: flex;
  gap: 2rem;
  max-width: 380px;
  z-index: 1;
}

.info-group {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  min-width: 130px;
}

.info-group-title {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--primary-color);
  padding-bottom: 0.3rem;
  margin-bottom: 0.2rem;
  border-bottom: 1px solid rgba(255, 215, 0, 0.3);
  white-space: nowrap;
  font-weight: 600;
}

.info-group span {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--light-text);
  font-size: 0.85rem;
  white-space: nowrap;
}

.info-group span i {
  color: var(--primary-color);
  font-size: 0.9rem;
  width: 15px;
  text-align: center;
}

.info-group span strong {
  color: var(--primary-color);
  font-weight: 600;
  margin-left: auto;
}

/* Services Carousel Styles */
.services-carousel-container {
  position: relative;
  overflow: hidden;
  padding: 20px 0;
  width: 100%;
  margin-top: 0;
}

.services-carousel {
  display: flex;
  gap: 30px;
  padding: 30px 0;
  overflow-x: auto;
  scroll-behavior: smooth;
  scrollbar-width: none;
  -ms-overflow-style: none;
  padding-bottom: 40px;
  margin-left: 20px;
  -webkit-overflow-scrolling: touch;
  transform: translateZ(0);
  will-change: scroll-position;
  scroll-snap-type: x mandatory;
}

.services-carousel::-webkit-scrollbar {
  display: none;
}

.service-card-carousel {
  flex: 0 0 auto;
  width: 400px;
  height: 600px;
  position: relative;
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.5);
  opacity: 0;
  transform: translateY(30px);
  transition:
    opacity 0.8s var(--animation-easing),
    transform 0.8s var(--animation-easing),
    box-shadow 0.5s var(--animation-easing);
  will-change: transform, opacity;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  transform: translateZ(0);
  border: none;
  outline: none;
  background-color: transparent;   /* removes black bleed                 */
  scroll-snap-align: start;
  scroll-snap-stop: always;
}

.service-card-carousel.animated {
  opacity: 1;
  transform: translateY(0);
}

.service-card-carousel:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6);
}

.service-card-inner {
  position: relative;
  width: 100%;
  height: 100%;
  border: none;
  outline: none;
  background-color: #000000;
}

.service-card-front {
  position: absolute;
  width: 100%;
  height: 100%;
  display: flex; /* Although content is positioned absolutely */
  flex-direction: column;
  background-color: transparent;
  backface-visibility: hidden;
  overflow: hidden;
  border-radius: inherit;          /* identical clipping path             */
  border: none;
  outline: none;
}

.service-card-front .image-placeholder {
  width: 100%;
  height: 100%;
  border-radius: inherit;
  margin-bottom: 0;
  border: none;
  outline: none;
  overflow: hidden;
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background-color: transparent;   /* let parent colour through           */
}

.service-card-front .image-placeholder img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0; /* Fade in on load */
  transition: opacity 0.5s ease, transform 0.7s ease; /* Add transform transition */
}

.service-card-front .image-placeholder img.loaded {
  opacity: 1;
}

.service-card-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  background: linear-gradient(0deg,
    rgba(0, 0, 0, 1) 0%,
    rgba(0, 0, 0, 0.95) 20%,
    rgba(0, 0, 0, 0.8) 40%,
    rgba(0, 0, 0, 0.5) 70%,
    rgba(0, 0, 0, 0.1) 90%,
    transparent 100%);
  padding: 40px 25px 40px; /* Generous padding */
  color: var(--light-text);
  transition: transform 0.4s ease;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  z-index: 2;
  min-height: 40%; /* Ensure overlay covers significant part */
  height: auto;
  border: none;
  outline: none;
  border-bottom-left-radius: var(--border-radius);
  border-bottom-right-radius: var(--border-radius);
}

.service-card-overlay h3 {
  color: var(--primary-color);
  margin: 0 0 12px;
  font-size: 1.8rem;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.7);
  font-weight: 700;
  letter-spacing: 0.5px;
  line-height: 1.2;
  height: 2.4em; /* Limit height to prevent pushing content */
  display: flex;
  align-items: flex-end;
}

.service-card-overlay p {
  color: var(--light-text);
  font-size: 1.1rem;
  opacity: 1; /* Ensure text is visible */
  line-height: 1.4;
  margin: 0;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
  max-width: 100%;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

/* Carousel Navigation */
.carousel-navigation {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin-top: 30px;
}

.carousel-nav-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  background-color: var(--primary-color);
  color: var(--darker-bg);
  border: none;
  border-radius: 50%;
  cursor: pointer;
  font-size: 1.2rem;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
}

.carousel-nav-btn:hover {
  background-color: var(--primary-dark);
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.25);
}

.carousel-nav-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

/* Make the last card more visible to hint at more content */
.service-card-carousel:last-child {
  margin-right: 60px; /* Add space after the last card */
}

/* Hover effect for image */
.service-card-carousel:hover .image-placeholder img {
  transform: scale(1.12);
}

/* Quick fade for JS reveals */
.service-card-carousel.quick-fade {
  transition: opacity 0.3s ease-out, transform 0.3s ease-out !important;
  transition-delay: 0s !important;
}

/* Mobile Services Carousel Override - MUST appear at the end of the stylesheet */
@media (max-width: 768px) {
  .services-carousel-container {
    padding: 10px 0 !important;
    margin: 0 !important;
    width: 100% !important;
    overflow: hidden !important;
  }
  
  .services-carousel {
    display: flex !important;
    flex-wrap: nowrap !important;
    overflow-x: scroll !important;
    overflow-y: hidden !important;
    scroll-snap-type: x mandatory !important;
    -webkit-overflow-scrolling: touch !important;
    scroll-behavior: smooth !important;
    gap: 12px !important;
    padding: 15px !important;
    margin: 0 !important;
    width: 100% !important;
    box-sizing: border-box !important;
    scrollbar-width: none !important;
    -ms-overflow-style: none !important;
  }
  
  .services-carousel::-webkit-scrollbar {
    display: none !important;
  }
  
  .service-card-carousel {
    flex: 0 0 80% !important;
    width: 80% !important;
    height: 320px !important;
    min-width: 0 !important;
    max-width: none !important;
    opacity: 1 !important;
    transform: none !important;
    scroll-snap-align: center !important;
    border-radius: var(--border-radius) !important;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3) !important;
  }
  
  .service-card-carousel:hover {
    transform: translateY(-5px) !important;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4) !important;
  }
  
  .service-card-overlay {
    padding: 15px !important;
    min-height: 35% !important;
    border-radius: 0 0 var(--border-radius) var(--border-radius) !important;
  }
  
  .service-card-overlay h3 {
    font-size: 1.3rem !important;
    margin-bottom: 8px !important;
    height: auto !important;
    line-height: 1.2 !important;
  }
  
  .service-card-overlay p {
    font-size: 0.9rem !important;
    line-height: 1.3 !important;
    margin: 0 !important;
  }
  
  .carousel-navigation {
    margin-top: 15px !important;
  }
  
  .carousel-nav-btn {
    width: 40px !important;
    height: 40px !important;
    font-size: 1rem !important;
  }
  
  .service-card-carousel:last-child {
    margin-right: 0 !important;
  }
}

@media (max-width: 576px) {
  .service-card-carousel {
    flex: 0 0 85% !important;
    width: 85% !important;
    height: 280px !important;
  }
  
  .service-card-overlay h3 {
    font-size: 1.2rem !important;
  }
  
  .service-card-overlay p {
    font-size: 0.85rem !important;
  }
}

@media (max-width: 480px) {
  .service-card-carousel {
    flex: 0 0 90% !important;
    width: 90% !important;
    height: 240px !important;
  }
  
  .service-card-overlay {
    padding: 12px !important;
  }
  
  .service-card-overlay h3 {
    font-size: 1.1rem !important;
    margin-bottom: 6px !important;
  }
  
  .service-card-overlay p {
    font-size: 0.8rem !important;
  }
  
  .carousel-nav-btn {
    width: 36px !important;
    height: 36px !important;
  }
}

@media (max-width: 375px) {
  .service-card-carousel {
    flex: 0 0 92% !important;
    width: 92% !important;
    height: 220px !important;
  }
  
  .service-card-overlay h3 {
    font-size: 1rem !important;
    margin-bottom: 4px !important;
  }
  
  .service-card-overlay p {
    font-size: 0.75rem !important;
  }
}

/* Add this at the end of the CSS file to override any previous styles */

/* Fix for testimonial dots on mobile - completely override any animations */
@media (max-width: 768px) {
  .testimonial-dots {
    display: flex !important;
    justify-content: center !important;
    gap: 8px !important;
    margin: 20px auto 0 !important;
    padding: 0 !important;
    animation: none !important;
    transform: none !important;
    transition: none !important;
  }
  
  .testimonial-dots .dot {
    width: 10px !important;
    height: 10px !important;
    margin: 0 !important;
    background-color: var(--card-bg) !important;
    border: 1px solid var(--primary-color) !important;
    border-radius: 50% !important;
    cursor: pointer !important;
    animation: none !important;
    transform: none !important;
    transition: background-color 0.3s ease !important;
    opacity: 1 !important;
    position: static !important;
  }
  
  .testimonial-dots .dot.active {
    background-color: var(--primary-color) !important;
    transform: scale(1) !important;
  }
  
  /* Also ensure the mobile testimonial wrapper doesn't animate */
  .mobile-testimonials-wrapper {
    animation: none !important;
    transition: scroll-behavior 0.3s ease !important;
  }
}

/* Make sure our mobile override at the end of the file still disables animations for mobile screens */
@media (max-width: 768px) {
  /* Add this to the existing mobile media query at the end of the file */
  .testimonial-track {
    animation: none !important;
  }
  
  .testimonial-track.up,
  .testimonial-track.fast {
    animation: none !important;
  }
}

/* Schedule Info Block - General Styles (Desktop/Base) */
.schedule-info-block {
  display: flex;
  flex-direction: row;
  gap: 2rem;
  background: transparent; /* Changed from rgba(18, 18, 18, 0.95) to transparent */
  padding: 1.2rem;
  border-radius: var(--border-radius);
  font-size: 0.8rem;
  margin-top: 30px;
  box-shadow: none; /* Removed box-shadow */
}

/* Info Group - General Styles */
.info-group {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  min-width: 130px;
}

.info-group-title {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--primary-color);
  padding-bottom: 0.3rem;
  margin-bottom: 0.2rem;
  border-bottom: 1px solid rgba(255, 215, 0, 0.3);
  white-space: nowrap;
  font-weight: 600;
}

.info-group span {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--light-text);
  font-size: 0.85rem;
  white-space: nowrap;
}

.info-group span i {
  color: var(--primary-color);
  font-size: 0.9rem;
  width: 15px;
  text-align: center;
}

.info-group span strong {
  color: var(--primary-color);
  font-weight: 600;
  margin-left: auto;
}

/* Mobile styles */
@media (max-width: 768px) {
  /* Schedule Info Block - Mobile Styles */
  .schedule-info-block {
    flex-direction: row;
    justify-content: space-around;
    gap: 1rem;
    width: 100%;
    margin: 30px auto 0 auto;
    padding: 1.2rem 1rem;
    background: transparent; /* Ensure it's transparent on mobile too */
    box-shadow: none; /* Ensure no shadow on mobile */
    text-align: left; /* Left align text instead of center */
  }
  
  .info-group {
    min-width: auto;
    flex: 1;
    text-align: left; /* Left align text */
  }
  
  /* Add divider between pricing and duration */
  .info-group:first-child {
    border-right: 2px solid var(--primary-color); /* Sharp divider */
    padding-right: 1rem; /* Add some space before divider */
  }
}

@media (max-width: 480px) {
  /* Schedule on small screens */
  .schedule-info-block {
    flex-direction: column;
    gap: 1rem;
    padding: 1rem;
    align-items: flex-start; /* Align items to the left */
    margin-top: 30px;
    text-align: left; /* Left align text */
    background: transparent; /* Ensure it's transparent on small screens too */
  }
  
  .info-group-title {
    border-bottom: none;
    padding-bottom: 0;
    margin-bottom: 0.5rem;
  }
  
  .info-group span {
    justify-content: flex-start; /* Align content to the left */
  }
  
  .info-group span strong {
    margin-left: 0.5rem;
  }
  
  /* Change divider to horizontal for column layout */
  .info-group:first-child {
    border-right: none; /* Remove vertical divider */
    border-bottom: 2px solid var(--primary-color); /* Add horizontal divider */
    padding-right: 0; /* Remove right padding */
    padding-bottom: 1rem; /* Add padding below first group */
    margin-bottom: 1rem; /* Add margin below divider */
    width: 100%; /* Make divider full width */
  }
}

/* Remove old schedule-info-overlay styles if they exist elsewhere in the file */

/* === TESTIMONIAL CAROUSEL (namespaced) ============== */
.testi-carousel {
  max-width: 1170px;
  margin: 0 auto 40px;
  display: flex;
  align-items: center;
  gap: 20px;
  position: relative; /* Crucial for positioning pseudo-elements */
  padding-top: 10px; /* Add space above cards for hover effect */
  padding-bottom: 10px; /* Add space below cards */
}

/* Add fade overlay on the LEFT edge */
.testi-carousel::before {
  content: '';
  position: absolute;
  /* Position it starting after the 'Prev' button and its gap */
  left: calc(48px + 10px); /* Button width (48px) + half gap (10px) */
  top: 10px; /* Match parent's top padding */
  bottom: 10px; /* Match parent's bottom padding */
  width: 60px; /* Width of the fade effect */
  background: linear-gradient(to right, var(--darker-bg) 20%, transparent 100%); /* Adjust gradient */
  z-index: 2; /* Position it above cards but below buttons */
  pointer-events: none; /* Allow interaction with elements underneath */
  border-radius: 5px 0 0 5px; /* Optional: slightly round the edge */
}

/* Add fade overlay on the RIGHT edge */
.testi-carousel::after {
  content: '';
  position: absolute;
  /* Position it starting before the 'Next' button and its gap */
  right: calc(48px + 10px); /* Button width (48px) + half gap (10px) */
  top: 10px; /* Match parent's top padding */
  bottom: 10px; /* Match parent's bottom padding */
  width: 60px; /* Width of the fade effect */
  background: linear-gradient(to left, var(--darker-bg) 20%, transparent 100%); /* Adjust gradient */
  z-index: 2; /* Position it above cards but below buttons */
  pointer-events: none; /* Allow interaction with elements underneath */
  border-radius: 0 5px 5px 0; /* Optional: slightly round the edge */
}

#testi-track {
  display: flex;
  overflow: hidden; /* Keep overflow hidden for the track itself */
  scroll-behavior: smooth;
  gap: 20px;
  flex: 1; /* Takes available space */
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  /* Add slight padding inside the track so cards don't start fully under the fade */
  padding-left: 10px;
  padding-right: 10px;
}

#testi-track .mobile-testimonial-card {
  flex: 0 0 360px;
  scroll-snap-align: start; /* Or 'center' if preferred */
  background-color: rgba(37, 37, 37, 0.7);
  border-radius: var(--border-radius);
  padding: 30px;
  border: 1px solid rgba(255, 215, 0, 0.1);
  transition: all 0.3s ease;
  transform: translateY(0); /* Base state for hover */
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
  position: relative; /* Ensure cards are stacked correctly */
  z-index: 1; /* Below the fade overlays */
}

#testi-track .mobile-testimonial-card:hover {
  transform: translateY(-5px); /* Existing hover effect */
  border-color: var(--primary-color);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.4);
}

#testi-track .review-text {
  font-size: 1rem;
  line-height: 1.6;
  margin-bottom: 20px;
  color: var(--light-text);
  font-style: italic;
  position: relative;
}

#testi-track .reviewer-info {
  display: flex;
  align-items: center;
  gap: 15px;
  border-top: 1px solid rgba(255, 215, 0, 0.1);
  padding-top: 15px;
}

#testi-track .reviewer-profile {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  border: 2px solid var(--primary-color);
  object-fit: cover;
}

#testi-track .reviewer-name {
  font-weight: 600;
  color: var(--light-text);
  margin-bottom: 5px;
}

#testi-track .star-rating {
  color: var(--primary-color);
  letter-spacing: 2px;
}

/* Ensure Nav Buttons are on top */
.testi-nav {
  width: 48px;
  height: 48px;
  border: none;
  border-radius: 50%;
  background: var(--primary-color);
  color: #000;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform .3s, background-color .3s;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  z-index: 3; /* Make sure buttons are above the fade overlays */
  flex-shrink: 0; /* Prevent buttons from shrinking */
}

.testi-nav:hover {
  transform: translateY(-3px);
  background: var(--primary-dark);
}

.testimonial-dots,
#testi-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin: 20px auto 0;
}

.testimonial-dots .dot,
#testi-dots .dot {
  width: 10px;
  height: 10px;
  background-color: var(--card-bg);
  border: 1px solid var(--primary-color);
  border-radius: 50%;
  cursor: pointer;
  transition: all 0.3s;
}

.testimonial-dots .dot.active,
#testi-dots .dot.active {
  background-color: var(--primary-color);
  transform: scale(1.2);
}

/* Hide duplicate mobile testimonials on desktop */
.testimonials-mobile.always-show {
  display: none !important;
}

/* Make sure desktop carousel shows on desktop */
.testi-carousel, #testi-dots {
  display: flex;
}

/* Hide desktop testimonial dots completely */
#testi-dots {
  display: none !important; /* Add !important to override JS inline style */
}

/* Responsive: Hide fade effects on mobile */
@media (max-width: 768px) {
  .testi-carousel::before,
  .testi-carousel::after {
    display: none;
  }

  .testi-carousel {
    padding-top: 0; /* Remove extra padding on mobile */
    padding-bottom: 0;
  }

  #testi-track {
    padding-left: 0; /* Reset internal padding */
    padding-right: 0;
    overflow-x: scroll; /* Ensure mobile scroll is enabled */
  }

  .testi-nav { 
    display: none; 
  }
  
  #testi-track .mobile-testimonial-card { 
    flex: 0 0 85%; 
    padding: 20px;
  }
  
  /* Show mobile testimonials only on mobile */
  .testimonials-mobile.always-show {
    display: block !important;
  }
  
  /* Hide desktop carousel on mobile */
  .testi-carousel, #testi-dots {
    display: none !important;
  }
}
/* ==================================================== */

/* ==================================================== */

/* Class Details Card Section */
.class-details-container {
  margin-top: 40px; /* Space between grid and card */
  padding: 0 15px; /* Consistent horizontal padding */
  display: flex;
  justify-content: center;
}

.class-info-card {
  background-color: var(--card-bg);
  padding: 30px 40px;
  border-radius: var(--border-radius);
  display: flex;
  gap: 40px; /* Space between columns */
  max-width: 700px; /* Max width for the card */
  width: 100%;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
  /* Inherit fade-in animation styles */
  opacity: 0;
  transform: scale(0.95);
  transition: opacity 0.8s var(--animation-easing), transform 0.8s var(--animation-easing), box-shadow 0.5s var(--animation-easing);
  will-change: transform, opacity;
}

.class-info-card.animated {
 opacity: 1;
 transform: scale(1);
}

.class-info-card:hover {
 box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

.info-column {
  flex: 1; /* Each column takes equal space */
  display: flex;
  flex-direction: column;
  gap: 10px; /* Space between items in a column */
}

.info-column h4 {
  font-size: 1.1rem;
  color: var(--primary-color);
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  border-bottom: 1px solid rgba(255, 215, 0, 0.2);
  padding-bottom: 8px;
}

.info-column h4 i {
  font-size: 1rem; /* Slightly smaller icon */
}

.info-column p {
  font-size: 0.95rem;
  color: var(--light-text);
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0;
}

.info-column p i {
  color: var(--primary-color);
  width: 16px; /* Icon alignment */
  text-align: center;
  font-size: 0.9rem;
}

.info-column p strong {
  font-weight: 600;
  color: var(--primary-color);
  margin-left: auto; /* Push price/time to the right */
}

.info-column small {
  font-size: 0.8rem;
  color: var(--gray-text);
  margin-top: 5px;
  line-height: 1.4;
}

/* Responsive adjustments for the new card */
@media (max-width: 768px) {
  .class-info-card {
    padding: 25px 30px;
    gap: 30px;
  }
  .info-column h4 {
    font-size: 1rem;
  }
  .info-column p {
    font-size: 0.9rem;
  }
}

@media (max-width: 576px) {
  .class-info-card {
    flex-direction: column; /* Stack columns vertically */
    padding: 20px;
    gap: 20px;
    max-width: 90%; /* Allow slightly more width */
  }

  .info-column:first-child {
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(255, 215, 0, 0.2); /* Divider between stacked columns */
  }

  .info-column h4 {
    margin-bottom: 8px;
  }
}

/* Fix hover and active states for navigation links */
nav ul li a:hover,
nav ul li a.active {
  color: var(--primary-color); /* Ensure hover/active color is set */
}

nav ul li a:hover::after,
nav ul li a.active::after {
  width: 100%;
}

/* === TESTIMONIAL CAROUSEL Enhancements (Revision 2) ============== */

.testi-carousel {
  max-width: 1170px;
  margin: 0 auto 40px;
  display: flex;
  align-items: center; /* Vertically align buttons and track */
  gap: 20px;
  position: relative;
  /* Padding on outer container mainly for vertical button alignment now */
  padding-top: 10px;
  padding-bottom: 10px;
}

/* Adjust Fade overlay TOP position */
.testi-carousel::before {
  content: '';
  position: absolute;
  left: calc(48px + 10px); /* Button width + half gap */
  /* Account for outer padding (10px) + inner track padding (10px) */
  top: 20px; /* ADJUSTED */
  bottom: 10px; /* Adjust if needed, matches outer padding */
  width: 60px;
  background: linear-gradient(to right, var(--darker-bg) 20%, transparent 100%);
  z-index: 2;
  pointer-events: none;
  border-radius: 5px 0 0 5px;
}

/* Adjust Fade overlay TOP position */
.testi-carousel::after {
  content: '';
  position: absolute;
  right: calc(48px + 10px); /* Button width + half gap */
  /* Account for outer padding (10px) + inner track padding (10px) */
  top: 20px; /* ADJUSTED */
  bottom: 10px; /* Adjust if needed */
  width: 60px;
  background: linear-gradient(to left, var(--darker-bg) 20%, transparent 100%);
  z-index: 2;
  pointer-events: none;
  border-radius: 0 5px 5px 0;
}

#testi-track {
  display: flex;
  overflow: hidden; /* Keep hidden */
  scroll-behavior: smooth;
  gap: 20px;
  flex: 1;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  /* --- Adjustments --- */
  /* Increased left/right padding to push cards away from edge fades */
  padding-left: 30px; /* Increased from 10px */
  padding-right: 30px; /* Increased from 10px */
  /* Add top/bottom padding INSIDE track for hover effect */
  padding-top: 10px; /* ADDED */
  padding-bottom: 5px; /* ADDED */
  /* --- End Adjustments --- */
}

/* Card styles */
#testi-track .mobile-testimonial-card {
  flex: 0 0 360px;
  scroll-snap-align: start;
  background-color: rgba(37, 37, 37, 0.7);
  border-radius: var(--border-radius);
  padding: 30px;
  border: 1px solid rgba(255, 215, 0, 0.1);
  transition: all 0.3s ease;
  transform: translateY(0);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
  position: relative;
  z-index: 1;
  margin-bottom: 5px; /* Ensure space below card within padding */
}

#testi-track .mobile-testimonial-card:hover {
  transform: translateY(-5px); /* This should now have space */
  border-color: var(--primary-color);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.4);
}

/* Button styles (Ensure vertical alignment is correct) */
.testi-nav {
  width: 48px;
  height: 48px;
  border: none;
  border-radius: 50%;
  background: var(--primary-color);
  color: #000;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform .3s, background-color .3s;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  z-index: 3;
  flex-shrink: 0;
  /* Ensure buttons align with the vertical center of the track */
  align-self: center; /* Added for better alignment */
}

/* Updated Testimonial Carousel Mobile Styles */
@media (max-width: 768px) {
  /* Revised testimonial carousel styles for mobile */
  .testi-carousel::before,
  .testi-carousel::after {
    display: none;
  }

  .testi-carousel {
    padding-top: 0;
    padding-bottom: 0;
  }

  #testi-track {
    /* Adjust mobile padding for better spacing */
    padding-left: 15px;
    padding-right: 15px;
    padding-top: 0;
    padding-bottom: 0;
    overflow-x: scroll;
  }
  
  #testi-track .mobile-testimonial-card {
    margin-bottom: 0;
    flex: 0 0 85%;
    padding: 20px;
  }
  
  .testi-nav { 
    display: none; 
  }
  
  /* Show mobile testimonials only on mobile */
  .testimonials-mobile.always-show {
    display: block !important;
  }
  
  /* Hide desktop carousel on mobile */
  .testi-carousel, #testi-dots {
    display: none !important;
  }
}

/* Adjust image placeholder heights */
.hero-image .image-placeholder { height: auto; }
.about-image .image-placeholder { height: auto; }
.contact-info .image-placeholder { height: auto; }

.contact-info .image-placeholder img {
  width: 100%;
  height: auto;
  max-height: 400px;
  object-fit: cover;
}

/* Ensure about-content children are synced */
.about-content.fade-in .about-image,
.about-content.fade-in .about-text {
  opacity: 0;
  transition: opacity 0.8s var(--animation-easing), transform 0.8s var(--animation-easing);
  will-change: opacity, transform;
}

.about-content.animated .about-image,
.about-content.animated .about-text {
  opacity: 1;
}

/* Adjust Fade overlay LEFT - Hide by default */
.testi-carousel::before {
  content: '';
  position: absolute;
  left: calc(48px + 10px); /* Button width + half gap */
  /* Account for outer padding (10px) + inner track padding (10px) */
  top: 20px; /* Match inner track top padding */
  bottom: 15px; /* Match inner track bottom padding approx */
  width: 60px; /* Width of the fade effect */
  background: linear-gradient(to right, var(--darker-bg) 20%, transparent 100%); /* Adjust gradient */
  z-index: 2; /* Position it above cards but below buttons */
  pointer-events: none; /* Allow interaction with elements underneath */
  border-radius: 5px 0 0 5px; /* Optional: slightly round the edge */
  opacity: 0 !important; /* HIDE BY DEFAULT - ADD !important FOR TESTING */
  transition: opacity 0.3s ease; /* ADD TRANSITION */
}

/* NEW RULE: Show left overlay when class is present */
.testi-carousel.show-left-overlay::before {
  opacity: 1 !important; /* SHOW WHEN CLASS IS ADDED - ADD !important FOR TESTING */
}

/* Adjust Fade overlay RIGHT (No changes needed here) */
.testi-carousel::after {
  content: '';
  position: absolute;
  right: calc(48px + 10px); /* Button width + half gap */
  top: 20px; /* Match inner track top padding */
  bottom: 15px; /* Match inner track bottom padding approx */
  width: 60px;
  background: linear-gradient(to left, var(--darker-bg) 20%, transparent 100%);
  z-index: 2;
  pointer-events: none;
  border-radius: 0 5px 5px 0;
  opacity: 1; /* Ensure right overlay is always visible */
}

#testi-track {
  display: flex;
  /* IMPORTANT: Change overflow to allow scrolling detection */
  overflow-x: auto !important; /* CHANGE FROM hidden TO auto - Ensure this isn't overridden */
  /* --- HIDE SCROLLBAR VISUALLY --- */
  scrollbar-width: none; /* Firefox */
  -ms-overflow-style: none; /* IE and Edge */
  /* ----------------------------- */
  scroll-behavior: smooth;
  gap: 20px;
  flex: 1;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  padding-left: 30px;
  padding-right: 30px;
  padding-top: 10px;
  padding-bottom: 5px;
}

#testi-track::-webkit-scrollbar {
    display: none; /* Chrome, Safari, Opera */
}

/* Make sure mobile overrides still hide the desktop version */
@media (max-width: 768px) {
  /* Ensure overlay is definitely hidden on mobile */
  .testi-carousel::before, /* Hide overlays on mobile */
  .testi-carousel::after {
    display: none !important;
    opacity: 0 !important;
  }

  #testi-track {
     overflow-x: scroll; /* Keep scrollable for mobile swipe */
     /* Reset desktop padding if needed */
     padding-left: 15px;
     padding-right: 15px;
     padding-top: 0;
     padding-bottom: 0;
  }

  .testi-carousel, #testi-dots {
    display: none !important; /* Hide desktop elements */
  }
  .testimonials-mobile.always-show {
      display: block !important; /* Show mobile elements */
  }
}

/* === TESTIMONIAL OVERLAY FIX V3 (Index-Based) === */

#testi-track {
  overflow-x: auto; /* Keep scrollable */
  /* Hide scrollbar visually */
  scrollbar-width: none; /* Firefox */
  -ms-overflow-style: none; /* IE and Edge */
}
#testi-track::-webkit-scrollbar {
  display: none; /* Chrome, Safari, Opera */
}

/* Define BASE styles for the LEFT overlay */
.testi-carousel::before {
  content: '';
  position: absolute;
  left: calc(48px + 10px); /* Adjust as needed */
  top: 20px;             /* Adjust as needed */
  bottom: 15px;            /* Adjust as needed */
  width: 60px;             /* Adjust as needed */
  background: linear-gradient(to right, var(--darker-bg) 20%, transparent 100%);
  z-index: 2;
  pointer-events: none;
  border-radius: 5px 0 0 5px;
  opacity: 1; /* << DEFAULT VISIBLE */
  transition: opacity 0.3s ease; /* Smooth transition */
}

/* HIDE the left overlay specifically when the first slide is active */
.testi-carousel.is-first-slide::before {
  opacity: 0; /* << HIDE WHEN FIRST */
  pointer-events: none; /* Ensure it's not interactive when hidden */
}

/* Define styles for the RIGHT overlay (Ensure it's always visible) */
.testi-carousel::after {
  content: '';
  position: absolute;
  right: calc(48px + 10px); /* Adjust as needed */
  top: 20px;              /* Adjust as needed */
  bottom: 15px;             /* Adjust as needed */
  width: 60px;              /* Adjust as needed */
  background: linear-gradient(to left, var(--darker-bg) 20%, transparent 100%);
  z-index: 2;
  pointer-events: none;
  border-radius: 0 5px 5px 0;
  opacity: 1; /* Keep right overlay always visible */
}

/* Ensure mobile overrides hide pseudo-elements */
@media (max-width: 768px) {
  .testi-carousel::before,
  .testi-carousel::after {
    display: none !important;
    opacity: 0 !important; /* Double ensure hidden */
  }
  #testi-track {
     overflow-x: scroll; /* Keep scrollable */
  }
  .testi-carousel, #testi-dots {
      display: none !important; /* Hide desktop elements */
  }
  .testimonials-mobile.always-show {
      display: block !important; /* Show mobile elements */
  }
}
/* === END TESTIMONIAL OVERLAY FIX V3 === */

/* === TESTIMONIAL OVERLAY FIX (FINAL CLEANUP) === */

#testi-track {
  display: flex;
  /* Ensure track is scrollable */
  overflow-x: auto !important;
  scroll-behavior: smooth;
  gap: 20px; /* Match card gap */
  flex: 1;
  scroll-snap-type: x mandatory; /* Keep snapping */
  -webkit-overflow-scrolling: touch;
  /* Padding to prevent cards touching absolute positioned overlays */
  padding-left: 30px;  /* Adjust if needed */
  padding-right: 30px; /* Adjust if needed */
  padding-top: 10px;
  padding-bottom: 5px;
  /* Hide scrollbar visually */
  scrollbar-width: none; /* Firefox */
  -ms-overflow-style: none; /* IE and Edge */
}
#testi-track::-webkit-scrollbar {
  display: none; /* Chrome, Safari, Opera */
}

/* --- Left Overlay (Shadow) --- */
.testi-carousel::before {
  content: '';
  position: absolute;
  /* Position relative to buttons/padding */
  left: calc(48px + 10px); /* PrevBtn width + half gap */
  top: 20px;    /* Align with track top padding */
  bottom: 15px;   /* Align with track bottom padding */
  width: 60px;    /* Width of fade */
  background: linear-gradient(to right, var(--darker-bg) 20%, transparent 100%);
  z-index: 2;     /* Above cards, below buttons */
  pointer-events: none;
  border-radius: 5px 0 0 5px;
  /* --- Behavior --- */
  opacity: 1 !important; /* DEFAULT VISIBLE - with !important */
  transition: opacity 0.3s ease;
}

/* HIDE Left Overlay ONLY when first slide is active */
.testi-carousel.is-first-slide::before {
  opacity: 0 !important; /* With !important to ensure it overrides */
}

/* --- Right Overlay (Shadow) --- */
.testi-carousel::after {
  content: '';
  position: absolute;
  /* Position relative to buttons/padding */
  right: calc(48px + 10px); /* NextBtn width + half gap */
  top: 20px;     /* Align with track top padding */
  bottom: 15px;    /* Align with track bottom padding */
  width: 60px;     /* Width of fade */
  background: linear-gradient(to left, var(--darker-bg) 20%, transparent 100%);
  z-index: 2;      /* Above cards, below buttons */
  pointer-events: none;
  border-radius: 0 5px 5px 0;
  opacity: 1 !important; /* Always visible - with !important */
}


/* --- Ensure Nav Buttons are on top --- */
.testi-nav {
  /* Existing styles... */
  z-index: 3; /* Ensure buttons are above overlays */
  align-self: center; /* Align vertically */
}

/* --- Mobile Overrides --- */
@media (max-width: 768px) {
  /* Hide desktop overlays */
  .testi-carousel::before,
  .testi-carousel::after {
    display: none !important; /* Force hide */
  }
  /* Ensure mobile track is scrollable and padding is suitable */
  #testi-track {
     overflow-x: scroll !important;
     padding-left: 15px !important;
     padding-right: 15px !important;
     padding-top: 0 !important;
     padding-bottom: 0 !important;
  }
  /* Hide desktop carousel parts, show mobile parts */
  .testi-carousel, #testi-dots {
    display: none !important;
  }
  .testimonials-mobile.always-show {
      display: block !important;
  }
}
/* === END TESTIMONIAL OVERLAY FIX === */

/* Google Map Styling */
.map-container {
  position: relative;
  overflow: hidden;
  width: 100%;
  padding-top: 75%; /* Aspect ratio 4:3 - Adjust if needed (e.g., 56.25% for 16:9) */
  margin-bottom: 30px; /* Spacing below map */
  border-radius: var(--border-radius); /* Match theme */
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1); /* Subtle shadow */
}

.map-container iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* Mobile adjustments for map container */
@media (max-width: 768px) {
  .contact-info .map-container {
    padding-top: 75%; /* Maintain aspect ratio */
    max-width: 90%; /* Limit max width slightly */
    margin: 0 auto 30px auto; /* Center map */
  }
}

@media (max-width: 576px) {
  .contact-info .map-container {
     /* Adjustments for very small screens if needed */
  }
}

/* === END TESTIMONIAL OVERLAY FIX === */

/* Responsive Google Map Styling (User Provided) */
.mapouter {
  position: relative;
  text-align: right;
  width: 100%;
  max-width: 500px; /* Reduced max-width for smaller map */
  margin: 0 auto 30px auto;
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.gmap_canvas {
  overflow: hidden;
  background: none !important;
  position: relative;
  padding-top: 66.67%; 
}

.gmap_iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* Adjust contact section layout */
.contact-header-image {
  width: 100%;
  display: flex;
  justify-content: center;
  margin-bottom: 40px; /* Match the gap above the image */
}

.contact-header-image .image-placeholder {
  width: 100%;
  max-width: 600px; /* Adjust max-width as desired */
  height: auto;
  background-color: transparent; /* Remove background */
  box-shadow: none; /* Remove shadow */
  border: none; /* Remove border */
  padding: 0; /* Remove padding if any */
}

.contact-header-image .image-placeholder img {
  /* Ensure image itself doesn't have conflicting styles */
  border-radius: 0; /* Remove radius if applied to image */
}

.contact-content {
  display: flex;
  gap: 30px; /* Adjust gap if needed */
  flex-wrap: wrap; /* Allow wrapping on mobile */
  margin-top: -30px !important; /* Increase negative margin and add !important */
}

.contact-form,
.contact-info {
  flex: 1; 
  min-width: 300px; /* Prevent columns from becoming too narrow */
  display: flex;
  flex-direction: column;
  align-items: center; 
}

.contact-form form {
  width: 100%; /* Form takes full width of its column */
}

.contact-info .mapouter {
   /* Uses .mapouter styles defined above */
   width: 100%; /* Ensure map takes full width of its column */
}

.contact-info .info-item {
  width: 100%; /* Info items take full width of column */
  max-width: 500px; /* Optional: Limit width */
}

/* Mobile adjustments */
@media (max-width: 768px) {
  .contact-content {
    gap: 40px; /* Increase gap when stacked */
    margin-top: -45px !important; /* Increased negative margin for mobile */
  }
  
  .contact-header-image .image-placeholder {
     max-width: 90%;
  }

  .contact-form,
  .contact-info {
     flex-basis: 100%; /* Make columns full width on mobile */
     min-width: unset; /* Remove min-width */
  }
  
  .contact-info .mapouter,
  .contact-info .info-item {
    max-width: 90%; /* Consistent mobile width */
  }

  /* Control stacking order */
  .contact-form {
     order: 1;
  }
  .contact-info {
     order: 2; 
  }
}

/* Desktop vs Mobile Map Display */
.desktop-map {
  display: block; /* Visible by default (desktop) */
}

.mobile-map {
  display: none; /* Hidden by default (desktop) */
}

/* Mobile Map Styles - Simplified Square Approach */
.mobile-map {
  width: 100%;
  max-width: 400px; 
  height: 400px;
  margin: 0 auto 30px auto;
}

.mobile-map .gmap_canvas {
  width: 100% !important;
  height: 100% !important;
  background: none !important;
  overflow: hidden;
}

.mobile-map .gmap_iframe {
  width: 100% !important;
  height: 100% !important;
  border: 0;
}

/* Show/hide maps based on screen size */
@media (max-width: 768px) {
  .desktop-map {
    display: none; /* Hide desktop map on mobile */
  }
  
  .mobile-map {
    display: block; /* Show mobile map on mobile */
    height: 400px; /* Maintain square on medium mobile */
  }
}

/* Additional sizes for smaller screens */
@media (max-width: 576px) {
  .mobile-map {
    height: 350px; /* Slightly smaller square for small screens */
    max-width: 350px;
  } 
}

@media (max-width: 480px) {
  .mobile-map {
    height: 300px; /* Even smaller square for very small screens */
    max-width: 300px;
  }
}

/* Align header logo with hero text on desktop */
@media (min-width: 1025px) {
  .logo-img {
    /* adjust until it lines up perfectly – ~8-15 px for most exports */
    margin-left: -14px;
    display: block;           /* removes inline-image whitespace */
  }
}

/* --- Contact header image keeps its space before it loads --- */
.contact-header-image .image-placeholder{
  max-width:600px;           /* desktop cap – match your old file  */
  min-height:200px;          /* reserve space so layout doesn't jump */
  margin: 0 auto;            /* center image, margin controlled by parent */
}

/* mobile-width tweaks (keeps the same behaviour phones had before) */
@media(max-width:768px){
  .contact-header-image .image-placeholder{ 
    max-width:90%; 
    min-height:150px;  /* slightly smaller on mobile */
  }

}