/* Global Fixes */
html, body {
    overflow-x: hidden;
}

body {
  margin: 0;
  font-family: sans-serif;
  color: #2C3E50;
  background: #fff;
}

/* FIX: Prevents fixed header from covering anchor link targets */
section[id] {
  scroll-margin-top: 60px;
}
/* END FIX */

/* Navigation - Consolidated, Fixed, and Sticky */
.site-header {
  /* STICKY HEADER FIX */
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 100;
  /* END STICKY HEADER FIX */
  
  background: #fff;
  padding: 10px 0;
  border-bottom: 1px solid #ccc;
}

.nav-container {
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
}

.logo {
  font-weight: bold;
  font-size: 1.2rem;
  color: #2C3E50;
  text-decoration: none;
  z-index: 1000;
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 20px;
  margin: 0;
  padding: 0;
  flex-direction: row;
  position: static;
}

.nav-links a {
  color: #2C3E50;
  text-decoration: none;
  font-weight: 500;
  padding: 10px 0;
  display: block;
}

.nav-links a:hover {
  color: #1ABC9C;
}

/* Hamburger Menu Toggle */
.menu-icon {
  display: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: #2C3E50;
  padding: 10px;
  z-index: 1000;
}

#menu-toggle {
  display: none;
}

/* Mobile Styles for Hamburger */
@media (max-width: 768px) {
  .menu-icon {
    display: block;
  }
  
  .nav {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
  }

  .nav-links {
    flex-direction: column;
    position: absolute;
    top: 0;
    left: 0;
    background: #fff;
    width: 100%;
    display: none;
    border-top: 1px solid #ccc;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    text-align: center;
  }

  /* TIGHTER SPACING FIX */
  .nav-links a {
    padding: 5px 0; /* Reduced vertical padding */
  }
  /* END TIGHTER SPACING FIX */

  /* Show menu when checkbox is checked */
  #menu-toggle:checked ~ .nav .nav-links {
    display: flex;
  }
}
/* END NAVIGATION FIX */

/* Hero Section */
.hero {
  /* Added margin-top to push content below the fixed header */
  margin-top: 60px;
  
  background: url('images/Hero_Banner_Mobile.jpg') no-repeat center center / cover;
  padding: 100px 20px;
  height: 95vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #fff;
}

.hero-content {
  max-width: 600px;
}

.hero h1 {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.buttons {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
}

.btn {
  background: #E1B12C;
  border: none;
  color: #fff;
  padding: 12px 24px;
  text-decoration: none;
  font-weight: bold;
  border-radius: 4px;
  transition: background 0.3s ease;
}

.btn:hover {
  background: #1ABC9C;
  color: #fff;
}

/* Intro Section */
.intro {
  padding: 60px 20px;
  background: #FDF6E3;
}

.container {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  max-width: 1000px;
  margin: 0 auto;
  align-items: center;
}

.column.image {
  flex: 1 1 300px;
}

.column.image img {
  width: 100%;
  max-width: 400px;
  height: auto;
  border-radius: 10px;
  display: block;
}

.column.text {
  flex: 1 1 400px;
}

.column.text h2 {
  font-size: 2rem;
  margin-bottom: 1rem;
  color: #2C3E50;
}

.column.text p {
  font-size: 1rem;
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

/* Class Types Section & Testimonials */
.classes {
  background: #FDF6E3;
  padding: 60px 20px;
  text-align: center;
}

.classes h2 {
  font-size: 2rem;
  margin-bottom: 2rem;
  color: #2C3E50;
}

.class-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
  justify-content: center;
}

.class-box {
  background: #fff;
  padding: 20px;
  border-radius: 8px;
  max-width: 300px;
  box-shadow: 0 0 10px rgba(0,0,0,0.05);
  border-left: 6px solid #2C3E50;
}

.class-box h3 {
  margin-bottom: 10px;
  font-size: 1.2rem;
  color: #2C3E50;
}

.class-box p {
  font-size: 0.95rem;
  line-height: 1.5;
}

/* Timetable Section */
.timetable {
  background: #FDF6E3;
  padding: 60px 20px;
  text-align: center;
}

.timetable h2 {
  font-size: 2rem;
  margin-bottom: 1rem;
  color: #2C3E50;
}

.timetable p {
  font-size: 1rem;
  color: #2C3E50;
}

/* Pricing Section */
.pricing {
  background: #FDF6E3;
  padding: 60px 20px;
  text-align: center;
}

.pricing h2 {
  font-size: 2rem;
  margin-bottom: 1rem;
  color: #2C3E50;
}

.pricing p {
  font-size: 1rem;
  color: #2C3E50;
}

/* Booking CTA Section */
.booking {
  background: #FDF6E3;
  color: #2C3E50;
  padding: 60px 20px;
  text-align: center;
}

.booking h2 {
  font-size: 2rem;
  margin-bottom: 1rem;
}

.booking p {
  font-size: 1.1rem;
  margin-bottom: 2rem;
}

.social-links {
  margin-top: 20px;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 15px;
}

.social-links a {
  display: inline-block;
  color: #E1B12C;
  text-decoration: none;
}

.social-links a:hover {
  color: #1ABC9C;
}

/* Contact Section */
.contact {
  background: #FDF6E3;
  padding: 60px 20px;
  text-align: center;
}

.contact h2 {
  font-size: 2rem;
  margin-bottom: 1rem;
  color: #2C3E50;
}

.contact p {
  font-size: 1rem;
  margin-bottom: 2rem;
  color: #2C3E50;
}

/* Footer */
.site-footer {
  background: #2C3E50;
  color: #fff;
  padding: 40px 20px;
  text-align: center;
  font-size: 0.9rem;
}

.site-footer p {
  margin: 8px 0;
}

.site-footer a {
  color: #E1B12C;
  text-decoration: none;
  margin: 0 6px;
}

.site-footer a:hover {
  color: #1ABC9C;
}

/* Timetable Table Styles */
.schedule {
  width: 100%;
  border-collapse: collapse;
  margin-top: 30px;
}

.schedule th,
.schedule td {
  border: 1px solid #ccc;
  padding: 12px;
  text-align: left;
  font-size: 0.95rem;
}

.schedule th {
  background-color: #E1B12C;
  color: #fff;
}

.schedule tr:nth-child(even) {
  background-color: #f9f9f9;
}

/* Social Links Icon Spacing */
.social-links i {
  margin-right: 8px;
}

/* --- CAROUSEL STYLES --- */
.image-gallery {
  background: #FDF6E3;
  padding: 60px 0;
  text-align: center;
}

.carousel-wrapper {
    max-width: 1000px;
    margin: 0 auto;
    position: relative;
}

.carousel-container {
  margin: 0 auto;
  overflow-x: scroll;
  scroll-snap-type: x mandatory;
  display: flex;
  -webkit-overflow-scrolling: touch;
  list-style: none;
  padding: 0;
}

.carousel-container::-webkit-scrollbar {
  height: 0;
  width: 0;
  display: none;
}

.carousel-slide {
  flex: 0 0 100%;
  scroll-snap-align: center;
  display: flex;
  justify-content: center;
  align-items: center;
  box-sizing: border-box;
}

.carousel-slide img {
  width: 100%;
  /* FIX: Changed fixed height to auto to show the full image, uncropped */
  height: auto;
  /* Removed object-fit and object-position as they are for cropping */
  border-radius: 8px;
  max-width: 100%;
  padding: 0 20px;
  box-sizing: border-box;
}

/* Arrow Button Styles */
.carousel-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(44, 62, 80, 0.6);
    color: #fff;
    border: none;
    padding: 10px;
    cursor: pointer;
    z-index: 10;
    font-size: 1.5rem;
    transition: background 0.3s;
    border-radius: 4px;
    height: 50px;
    width: 50px;
}

.carousel-nav:hover {
    background: rgba(225, 177, 44, 0.8);
}

#nav-left {
    left: 0;
    margin-left: 5px;
}

#nav-right {
    right: 0;
    margin-right: 5px;
}
/* --- END CAROUSEL STYLES --- */

/* --- MAP STYLES --- */
.find-us {
    background: #FDF6E3;
    padding: 60px 20px;
    text-align: center;
}

.find-us h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: #2C3E50;
}

.map-container {
    max-width: 1000px;
    margin: 0 auto;
    width: 100%;
    max-width: 600px;
    height: 450px;
    padding-top: 0;
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.map-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

/* Mobile Responsive Fix */
@media (max-width: 600px) {
  .hero h1 {
    font-size: 2rem;
  }

  .container {
    flex-direction: column;
    text-align: center;
  }
  
  .carousel-slide img {
    /* FIX: Changed fixed height to auto to show the full image on mobile too */
    height: auto;
  }

  .carousel-nav {
      display: none;
  }

  /* NEW FIX: Reduce vertical padding for all main content sections on mobile */
  .intro, 
  .classes, 
  .timetable, 
  .pricing, 
  .find-us, 
  .booking, 
  .contact {
      padding: 40px 20px; /* Consistent vertical padding of 40px */
  }

  /* Handle image gallery separately as it has 0 horizontal padding */
  .image-gallery {
      padding: 40px 0; /* Consistent vertical padding of 40px */
  }
}
/* ADDED to improve hero image quality on large screens */
@media (min-width: 601px) {
  .hero {
    background: url('images/Hero_Banner_Desktop.jpg') no-repeat center center / cover;
  }
}