/* Success Message */
.success-message {
  text-align: center;
  padding: 2rem;
  margin: 2rem auto;
  max-width: 500px;
}

.success-message i {
  font-size: 4rem;
  color: #4CAF50;
  margin-bottom: 1rem;
}

.success-message h3 {
  color: #4CAF50;
  margin-bottom: 1rem;
}

.success-message p {
  margin-bottom: 1rem;
  color: #666;
}

.success-message .btn {
  margin-top: 1rem;
}

/* Auth Forms */
.auth-form {
  display: flex;

.success-message {
  text-align: center;
  padding: 2rem;
  background-color: #f8f9fa;
  border-radius: 8px;
  margin: 2rem 0;
}

.success-message i {
  font-size: 3rem;
  color: #28a745;
  margin-bottom: 1rem;
}

.success-message h3 {
  color: #28a745;
  margin-bottom: 1rem;
}

.success-message p {
  margin-bottom: 1rem;
  color: #666;
}

.success-message .btn {
  margin-top: 1rem;
}

  flex-direction: column;
}

.hidden {
  display: none !important;
  visibility: hidden !important;
  opacity: 0 !important;
}

/* Variables */
:root {
  --primary-color: #e63946;
  --secondary-color: #1d3557;
  --light-color: #f1faee;
  --dark-color: #1d3557;
  --grey-color: #a8dadc;
  --max-width: 1200px;
}

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

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

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.6;
  color: var(--dark-color);
  background-color: #fff;
}

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

ul {
  list-style: none;
}

img {
  max-width: 100%;
  height: auto;
}

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 2rem;
}

.section-title {
  text-align: center;
  margin-bottom: 3rem;
  font-size: 2.5rem;
  position: relative;
}

.section-title::after {
  content: '';
  display: block;
  width: 80px;
  height: 4px;
  background: var(--primary-color);
  margin: 0.5rem auto;
}

/* Utility Classes */
.btn {
  display: inline-block;
  padding: 0.8rem 2rem;
  border-radius: 30px;
  font-weight: bold;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn-primary {
  background-color: var(--primary-color);
  color: white;
}

.btn-primary:hover {
  background-color: #d32836;
}

.btn-secondary {
  background-color: var(--secondary-color);
  color: white;
}

.btn-secondary:hover {
  background-color: #152a45;
}

.btn-light {
  background-color: var(--light-color);
  color: var(--dark-color);
}

.btn-light:hover {
  background-color: #e0e9dd;
}

.btn-outlined {
  background-color: transparent;
  border: 2px solid var(--primary-color);
  color: var(--primary-color);
}

.btn-outlined:hover {
  background-color: var(--primary-color);
  color: white;
}

.btn-sm {
  padding: 0.5rem 1.2rem;
  font-size: 0.9rem;
}

/* Header */
header {
  background-color: white;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 2rem;
}

.logo h1 {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--dark-color);
}

.logo h1 span {
  color: var(--primary-color);
}

.logo-img {
  max-height: 80px;
  width: auto;
  object-fit: contain;
}

nav ul {
  display: flex;
}

nav ul li {
  margin-left: 1.5rem;
}

nav ul li a {
  font-weight: 600;
  position: relative;
}

nav ul li a:hover {
  color: var(--primary-color);
}

nav ul li a.active {
  color: var(--primary-color);
}

nav ul li a.active::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 100%;
  height: 2px;
  background-color: var(--primary-color);
}

.login-btn {
  background-color: var(--primary-color);
  color: white;
  padding: 0.5rem 1.2rem;
  border-radius: 20px;
}

.login-btn:hover {
  background-color: #d32836;
  color: white;
}

.menu-toggle {
  display: none;
  cursor: pointer;
  font-size: 1.5rem;
}

/* Hero Section */
.hero {
  background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), url('https://images.unsplash.com/photo-1534438327276-14e5300c3a48?ixlib=rb-1.2.1&auto=format&fit=crop&w=1950&q=80');
  background-size: cover;
  background-position: center;
  height: 80vh;
  color: white;
  display: flex;
  align-items: center;
  text-align: center;
}

/* Slideshow Section */
.slideshow {
  padding: 2rem 0;
  background-color: #f8f9fa;
}

.slideshow-container {
  position: relative;
  max-width: 100%;
  margin: auto;
  overflow: hidden;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.slide {
  display: none;
  position: relative;
  height: 500px;
}

.slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.slide-content {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
  color: white;
  padding: 2rem;
  text-align: center;
}

.slide-content h2 {
  font-size: 2.2rem;
  margin-bottom: 1rem;
}

.slide-content p {
  font-size: 1.2rem;
  margin-bottom: 1.5rem;
}

.prev, .next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  font-size: 2rem;
  font-weight: bold;
  padding: 16px;
  color: white;
  background-color: rgba(0, 0, 0, 0.3);
  cursor: pointer;
  z-index: 10;
  transition: all 0.3s ease;
}

.prev {
  left: 0;
  border-radius: 0 5px 5px 0;
}

.next {
  right: 0;
  border-radius: 5px 0 0 5px;
}

.prev:hover, .next:hover {
  background-color: rgba(0, 0, 0, 0.8);
}

.dots-container {
  text-align: center;
  padding: 1rem 0;
}

.dot {
  height: 12px;
  width: 12px;
  margin: 0 5px;
  background-color: #bbb;
  border-radius: 50%;
  display: inline-block;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.active-dot, .dot:hover {
  background-color: var(--primary-color);
}

.fade {
  animation-name: fade;
  animation-duration: 1.5s;
}

@keyframes fade {
  from {opacity: 0.4}
  to {opacity: 1}
}

.hero-content {
  max-width: 800px;
  margin: 0 auto;
}

.hero-content h1 {
  font-size: 3.5rem;
  margin-bottom: 1.5rem;
}

.hero-content p {
  font-size: 1.2rem;
  margin-bottom: 2rem;
}

.cta-buttons {
  display: flex;
  justify-content: center;
  gap: 1rem;
}

/* Features Section */
.features {
  padding: 5rem 0;
  background-color: #f8f9fa;
}

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

.feature-card {
  background-color: white;
  padding: 2rem;
  text-align: center;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
}

.feature-card:hover {
  transform: translateY(-10px);
}

.feature-card i {
  font-size: 3rem;
  color: var(--primary-color);
  margin-bottom: 1.5rem;
}

.feature-card h3 {
  margin-bottom: 1rem;
}

/* Classes Section */
.classes {
  padding: 5rem 0;
}

.class-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-bottom: 3rem;
  align-items: stretch;
}

.class-card {
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.class-card:hover {
  transform: translateY(-10px);
}

.class-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
}

.class-info {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  height: 180px;
}

.class-info h3 {
  margin-bottom: 0.5rem;
  font-size: 1.3rem;
}

.class-info p {
  margin-bottom: 1rem;
  flex-grow: 1;
}

.view-all {
  text-align: center;
}

/* CTA Section */
.cta {
  background: linear-gradient(rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0.8)), url('https://images.unsplash.com/photo-1571019613454-1cb2f99b2d8b?ixlib=rb-1.2.1&auto=format&fit=crop&w=1050&q=80');
  background-size: cover;
  background-position: center;
  padding: 5rem 0;
  color: white;
  text-align: center;
}

.cta-content {
  max-width: 700px;
  margin: 0 auto;
}

.cta-content h2 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.cta-content p {
  margin-bottom: 2rem;
  font-size: 1.2rem;
}

/* Testimonials Section */
.testimonials {
  padding: 5rem 0;
  background-color: #f8f9fa;
}

.testimonial-slider {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  gap: 2rem;
  padding-bottom: 2rem;
}

.testimonial {
  min-width: calc(50% - 1rem);
  scroll-snap-align: start;
}

.testimonial-content {
  background-color: white;
  padding: 2rem;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.testimonial-content p {
  font-style: italic;
  margin-bottom: 1.5rem;
}

.testimonial-author {
  display: flex;
  align-items: center;
}

.testimonial-author img {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  margin-right: 1rem;
}

.testimonial-author h4 {
  font-weight: 600;
}

/* Footer */
footer {
  background-color: var(--dark-color);
  color: white;
  padding: 4rem 0 1rem;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-bottom: 3rem;
  align-items: start;
}

.footer-section {
  min-width: 0; /* Prevent overflow on small screens */
  display: flex;
  flex-direction: column;
  align-self: flex-start;
}

.footer-section h3 {
  margin-bottom: 1.5rem;
  position: relative;
  font-size: 1.2rem;
}

.footer-section h3::after {
  content: '';
  display: block;
  width: 50px;
  height: 2px;
  background: var(--primary-color);
  margin-top: 0.5rem;
}

.footer-section p {
  margin-bottom: 1rem;
}

.social {
  display: flex;
  gap: 1rem;
  margin-top: 1.5rem;
}

.social a {
  display: inline-block;
  width: 40px;
  height: 40px;
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  color: white;
  transition: background-color 0.3s ease;
}

.social a:hover {
  background-color: var(--primary-color);
}

.footer-section.links ul {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-section.links ul li {
  margin-bottom: 0.8rem;
  white-space: nowrap;
}

.footer-section.links ul li a {
  color: white;
  transition: color 0.3s ease;
}

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

.footer-section.contact p {
  display: flex;
  align-items: flex-start;
  margin-bottom: 0.8rem;
  white-space: normal; /* Allow wrapping for better mobile display */
  line-height: 1.4;
}

.footer-section.contact p i {
  min-width: 20px;
  margin-right: 0.8rem;
  color: var(--primary-color);
  margin-top: 0.25rem;
  text-align: center;
}

.footer-section.contact h3 {
  margin-top: 0;
}

.footer-bottom {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Page Header */
.page-header {
  background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), url('https://images.unsplash.com/photo-1517836357463-d25dfeac3438?ixlib=rb-1.2.1&auto=format&fit=crop&w=1050&q=80');
  background-size: cover;
  background-position: center;
  padding: 5rem 0;
  color: white;
  text-align: center;
}

.page-header h1 {
  font-size: 3rem;
  margin-bottom: 1rem;
}

/* Services Page */
.services {
  padding: 5rem 0;
}

.services-overview {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-bottom: 4rem;
}

.service-overview-item {
  background-color: white;
  padding: 2rem;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  text-align: center;
}

.service-overview-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.service-overview-item .service-icon {
  font-size: 2.5rem;
  color: var(--primary-color);
  margin-bottom: 1rem;
}

.service-overview-item h3 {
  margin-bottom: 1rem;
  font-size: 1.3rem;
}

.service-overview-item p {
  color: #666;
  line-height: 1.6;
}

.mt-5 {
  margin-top: 5rem;
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.service-card {
  background-color: white;
  padding: 2.5rem 2rem;
  text-align: center;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
  position: relative;
  overflow: hidden;
  border: 1px solid #f1f1f1;
}

.service-card:hover {
  transform: translateY(-10px);
}

.service-card.featured {
  border: 2px solid var(--primary-color);
  transform: scale(1.05);
}

.service-card.featured:hover {
  transform: scale(1.05) translateY(-10px);
}

.service-icon {
  font-size: 3rem;
  color: var(--primary-color);
  margin-bottom: 1.5rem;
}

.service-card h3 {
  margin-bottom: 1.5rem;
  font-size: 1.5rem;
}

.service-card ul {
  text-align: left;
  margin-bottom: 1.5rem;
}

.service-card ul li {
  margin-bottom: 0.8rem;
  display: flex;
  align-items: center;
}

.service-card ul li i {
  margin-right: 0.8rem;
  color: var(--primary-color);
}

.service-card ul li i.fa-times {
  color: #ccc;
}

.price {
  font-size: 2rem;
  font-weight: bold;
  margin-bottom: 1.5rem;
  color: var(--dark-color);
}

.price span {
  font-size: 1rem;
  font-weight: normal;
}

/* Class Schedule */
.class-schedule {
  padding: 5rem 0;
  background-color: #f8f9fa;
}

.schedule-tabs {
  background-color: white;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.tab-links {
  display: flex;
  overflow-x: auto;
  background-color: var(--dark-color);
}

.tab-link {
  padding: 1rem 1.5rem;
  background-color: transparent;
  color: white;
  border: none;
  cursor: pointer;
  flex: 1;
  font-weight: 600;
  transition: all 0.3s ease;
}

.tab-link:hover {
  background-color: rgba(255, 255, 255, 0.1);
}

.tab-link.active {
  background-color: var(--primary-color);
}

.tab-content {
  padding: 2rem;
}

.tab-pane {
  display: none;
}

.tab-pane.active {
  display: block;
}

.schedule-item {
  display: flex;
  align-items: center;
  margin-bottom: 1.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid #eee;
}

.schedule-item:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: none;
}

.schedule-time {
  background-color: var(--primary-color);
  color: white;
  padding: 0.8rem;
  border-radius: 5px;
  text-align: center;
  min-width: 180px;
  font-weight: 600;
}

.schedule-details {
  flex: 1;
  padding: 0 1.5rem;
}

.schedule-details h4 {
  margin-bottom: 0.5rem;
}

/* Personal Training */
.personal-training {
  padding: 5rem 0;
}

.training-info {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  align-items: center;
}

.training-image img {
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.training-details h3 {
  margin-bottom: 1.5rem;
  font-size: 2rem;
}

.training-details h4 {
  margin: 1.5rem 0 1rem;
  font-size: 1.2rem;
}

.training-details ul {
  margin-bottom: 2rem;
}

.training-details ul li {
  margin-bottom: 0.8rem;
  display: flex;
  align-items: center;
}

.training-details ul li i {
  margin-right: 0.8rem;
  color: var(--primary-color);
}

.training-packages {
  display: flex;
  gap: 1rem;
  margin-bottom: 2rem;
}

.package {
  background-color: #f8f9fa;
  padding: 1rem;
  border-radius: 5px;
  text-align: center;
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.package h4 {
  margin: 0 0 0.5rem;
}

.package .price {
  margin: 0 0 1rem 0;
  font-size: 1.5rem;
}

.package .price span {
  font-size: 0.9rem;
  color: #666;
}

.package .btn {
  background-color: var(--primary-color);
  color: white;
  font-weight: bold;
  min-width: 140px;
  margin-top: 10px;
  padding: 8px 15px;
  border-radius: 25px;
  transition: all 0.3s ease;
}

.package .btn:hover {
  background-color: #d32836;
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

/* Booking Page */
.booking {
  padding: 5rem 0;
}

.booking-container {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 2rem;
  margin-bottom: 3rem;
}

.booking-sidebar {
  background-color: #f8f9fa;
  padding: 2rem;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.booking-sidebar h3 {
  margin-bottom: 1.5rem;
}

.filter-group {
  margin-bottom: 1.5rem;
}

.filter-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 600;
}

.filter-group select,
.filter-group input {
  width: 100%;
  padding: 0.8rem;
  border: 1px solid #ddd;
  border-radius: 5px;
}

.booking-results h3 {
  margin-bottom: 1.5rem;
}

.class-results {
  display: grid;
  gap: 1.5rem;
}

.class-item {
  background-color: white;
  padding: 1.5rem;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.select-class {
  cursor: pointer !important;
  pointer-events: auto !important;
  z-index: 10;
  position: relative;
}

.class-details h4 {
  margin-bottom: 0.8rem;
  font-size: 1.2rem;
}

.class-details p {
  margin-bottom: 0.5rem;
}

.class-details p i {
  margin-right: 0.5rem;
  color: var(--primary-color);
}

.booking-form-container {
  background-color: white;
  padding: 2rem;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.booking-form-container h3 {
  margin-bottom: 1.5rem;
}

.selected-class-details {
  background-color: #f8f9fa;
  padding: 1.5rem;
  border-radius: 10px;
  margin-bottom: 2rem;
}

.selected-class h4 {
  margin-bottom: 0.8rem;
  font-size: 1.2rem;
}

.selected-class p {
  margin-bottom: 0.5rem;
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 600;
}

.form-group input {
  width: 100%;
  padding: 0.8rem;
  border: 1px solid #ddd;
  border-radius: 5px;
}

.form-row {
  display: flex;
  gap: 1rem;
}

.form-row .form-group {
  flex: 1;
}

.payment-section {
  margin-bottom: 2rem;
}

.payment-section h4 {
  margin-bottom: 1rem;
}

.payment-options {
  margin-bottom: 1.5rem;
}

.payment-option {
  margin-bottom: 0.8rem;
}

.payment-option input {
  margin-right: 0.5rem;
}

.form-actions {
  display: flex;
  justify-content: flex-end;
  gap: 1rem;
}

.booking-confirmation {
  background-color: white;
  padding: 3rem 2rem;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  text-align: center;
}

.confirmation-content {
  max-width: 600px;
  margin: 0 auto;
}

.confirmation-content i {
  font-size: 5rem;
  color: var(--primary-color);
  margin-bottom: 1.5rem;
}

.confirmation-content h3 {
  margin-bottom: 1rem;
  font-size: 2rem;
}

.confirmation-content p {
  margin-bottom: 1.5rem;
}

.confirmed-details {
  background-color: #f8f9fa;
  padding: 1.5rem;
  border-radius: 10px;
  margin: 2rem 0;
  text-align: left;
}

/* Contact Page */
.contact {
  padding: 5rem 0;
}

.contact .container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 3rem;
}

.contact-info {
  display: grid;
  gap: 2rem;
}

.info-item {
  display: flex;
  align-items: flex-start;
  background-color: white;
  padding: 2rem;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.info-item i {
  font-size: 2rem;
  color: var(--primary-color);
  margin-right: 1.5rem;
}

.info-item h3 {
  margin-bottom: 0.5rem;
}

.contact-form-container {
  background-color: white;
  padding: 2rem;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.contact-form-container .section-title {
  text-align: left;
  margin-bottom: 2rem;
}

.contact-form-container .section-title::after {
  margin-left: 0;
}

textarea {
  width: 100%;
  padding: 0.8rem;
  border: 1px solid #ddd;
  border-radius: 5px;
  resize: vertical;
}

/* Map Section */
.map {
  padding: 5rem 0;
  background-color: #f8f9fa;
}

.map-container {
  height: 400px;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.map-container iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

/* FAQ Section */
.faq {
  padding: 5rem 0;
}

.faq-container {
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  background-color: white;
  margin-bottom: 1.5rem;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  overflow: hidden;
}

.faq-question {
  padding: 1.5rem;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.faq-question h3 {
  margin: 0;
  font-size: 1.2rem;
}

.faq-answer {
  padding: 0 1.5rem;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

.faq-answer p {
  padding-bottom: 1.5rem;
}

.faq-item.active .faq-answer {
  max-height: 200px;
}

/* Gallery Page */
.gallery {
  padding: 5rem 0;
}

.gallery-filter {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 3rem;
}

.filter-btn {
  padding: 0.8rem 1.5rem;
  background-color: white;
  border: 2px solid #f1f1f1;
  border-radius: 30px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.filter-btn:hover, .filter-btn.active {
  background-color: var(--primary-color);
  color: white;
  border-color: var(--primary-color);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem;
}

.gallery-item {
  position: relative;
  border-radius: 10px;
  overflow: hidden;
  height: 250px;
  cursor: pointer;
  transition: transform 0.3s ease;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.gallery-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.7);
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.gallery-info {
  text-align: center;
  color: white;
  padding: 1rem;
}

.gallery-info h3 {
  margin-bottom: 0.5rem;
}

.gallery-item:hover .gallery-overlay {
  opacity: 1;
}

.gallery-item:hover img {
  transform: scale(1.1);
}

.gallery-item.zoom {
  transform: scale(1.05);
  z-index: 10;
}

.gallery-item.zoom .gallery-overlay {
  opacity: 1;
}

/* Trainers Page */
.trainers {
  padding: 5rem 0;
}

.trainer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 2rem;
}

.trainer-card {
  background-color: white;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
}

.trainer-card:hover {
  transform: translateY(-10px);
}

.trainer-image {
  height: 300px;
  overflow: hidden;
}

.trainer-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.trainer-card:hover .trainer-image img {
  transform: scale(1.1);
}

.trainer-info {
  padding: 1.5rem;
}

.trainer-info h3 {
  margin-bottom: 0.5rem;
  font-size: 1.5rem;
}

.trainer-title {
  color: var(--primary-color);
  font-weight: 600;
  margin-bottom: 1rem;
}

.trainer-bio {
  margin-bottom: 1.5rem;
}

.trainer-specialties {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}

.trainer-specialties span {
  background-color: #f1f1f1;
  padding: 0.4rem 0.8rem;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
}

.trainer-social {
  display: flex;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.trainer-social a {
  display: inline-block;
  width: 40px;
  height: 40px;
  background-color: #f1f1f1;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  color: var(--dark-color);
  transition: all 0.3s ease;
}

.trainer-social a:hover {
  background-color: var(--primary-color);
  color: white;
}

.trainer-cta {
  background: linear-gradient(rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0.8)), url('https://images.unsplash.com/photo-1571019613454-1cb2f99b2d8b?ixlib=rb-1.2.1&auto=format&fit=crop&w=1050&q=80');
  background-size: cover;
  background-position: center;
  padding: 5rem 0;
  color: white;
  text-align: center;
  margin: 5rem 0;
}

.certification {
  padding: 5rem 0;
  background-color: #f8f9fa;
}

.certification-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.certification-item {
  background-color: white;
  padding: 2rem;
  border-radius: 10px;
  text-align: center;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.certification-item img {
  height: 60px;
  margin-bottom: 1rem;
  object-fit: contain;
}

.certification-item h3 {
  margin-bottom: 0.5rem;
}

/* Authentication Pages */
.auth-section {
  padding: 4rem 0;
  background-color: #f5f5f5;
}

.auth-container {
  max-width: 600px;
  margin: 0 auto;
  padding: 2rem;
  background-color: white;
  border-radius: 8px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.auth-container h2 {
  color: var(--primary-color);
  margin-bottom: 0.5rem;
  text-align: center;
}

.auth-container p {
  margin-bottom: 2rem;
  text-align: center;
  color: #666;
}

.auth-form .form-group {
  margin-bottom: 1.5rem;
}

.auth-form label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 500;
}

/* Style for login button */
.login-btn {
  display: inline-block;
  padding: 8px 16px;
  background-color: #cccccc;
  color: #666666;
  text-decoration: none;
  border-radius: 4px;
  pointer-events: none;
  opacity: 0.7;
  cursor: not-allowed;
}

.login-btn:hover {
  background-color: var(--primary-color-dark);
}

.auth-form input[type="text"],
.auth-form input[type="password"],
.auth-form input[type="email"],
.auth-form input[type="tel"] {
  width: 100%;
  padding: 0.8rem 1rem;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 1rem;
}

.auth-form .checkbox {
  display: flex;
  align-items: center;
}

.auth-form .checkbox input {
  margin-right: 10px;
}

.auth-form .checkbox label {
  margin-bottom: 0;
}

.auth-form .form-actions {
  margin-top: 2rem;
}

.auth-form .form-actions button {
  width: 100%;
  padding: 0.8rem;
  font-size: 1rem;
  border: none;
  border-radius: 4px;
  cursor: pointer;
}

.auth-form .form-links {
  margin-top: 1.5rem;
  text-align: center;
}

.auth-form .form-links a {
  color: var(--primary-color);
  text-decoration: none;
}

.auth-form .form-links a:hover {
  text-decoration: underline;
}

.error-message {
  background-color: #ffebee;
  color: #f44336;
  padding: 0.8rem;
  margin-bottom: 1.5rem;
  border-radius: 4px;
  font-size: 0.9rem;
}

/* Login Page */
.login-page {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
}

.login-form {
  width: 400px;
}

.login-form input[type="text"],
.login-form input[type="password"] {
  margin-bottom: 1rem;
  padding: 0.8rem;
  border: 1px solid #ccc;
  border-radius: 4px;
}

.login-btn {
  background-color: #e63946;
  color: white;
  padding: 0.8rem 1.5rem;
  border: none;
  border-radius: 4px;
  cursor: pointer;
}

.login-form a {
  display: block;
  text-align: center;
  margin-top: 1rem;
}

.login-form p {
  text-align: center;
  margin-top: 1rem;
}

/* Registration Page */
.register-page {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
}

.register-form {
  width: 400px;
}

.register-form input[type="text"],
.register-form input[type="email"],
.register-form input[type="tel"] {
  margin-bottom: 1rem;
  padding: 0.8rem;
  border: 1px solid #ccc;
  border-radius: 4px;
}

.register-btn {
  background-color: #e63946;
  color: white;
  padding: 0.8rem 1.5rem;
  border: none;
  border-radius: 4px;
  cursor: pointer;
}

/* About Us Page */
.about-intro {
  padding: 5rem 0;
  background-color: #fff;
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.about-content h2 {
  margin-bottom: 2rem;
  text-align: left;
}

.about-content h2::after {
  margin-left: 0;
}

.about-content p {
  margin-bottom: 1.5rem;
  line-height: 1.8;
}

.about-image img {
  width: 100%;
  border-radius: 10px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.mission-vision {
  padding: 5rem 0;
  background-color: #f8f9fa;
}

.mission-vision-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(450px, 1fr));
  gap: 2rem;
}

.mission-box, .vision-box {
  background-color: white;
  padding: 3rem;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
}

.mission-box:hover, .vision-box:hover {
  transform: translateY(-10px);
}

.mission-icon {
  font-size: 3rem;
  color: var(--primary-color);
  margin-bottom: 1.5rem;
}

.mission-box h2, .vision-box h2 {
  margin-bottom: 1.5rem;
  font-size: 1.8rem;
}

.mission-box p, .vision-box p {
  margin-bottom: 1rem;
  line-height: 1.7;
}

.about-features {
  padding: 5rem 0;
}

@media (max-width: 992px) {
  .about-grid {
    grid-template-columns: 1fr;
  }

  .mission-vision-grid {
    grid-template-columns: 1fr;
  }
}

/* Members Page */
.members-content {
  padding: 3rem 0;
}

.auth-alert {
  text-align: center;
  padding: 3rem;
  background-color: #f5f5f5;
  border-radius: 10px;
  margin-bottom: 2rem;
}

.auth-alert i {
  font-size: 3rem;
  color: var(--primary-color);
  margin-bottom: 1rem;
}

.auth-alert h2 {
  margin-bottom: 1rem;
}

.auth-alert a {
  color: var(--primary-color);
  font-weight: 600;
}

.member-benefits {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.benefit-card {
  background-color: white;
  border-radius: 10px;
  padding: 2rem;
  text-align: center;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
}

.benefit-card:hover {
  transform: translateY(-5px);
}

.benefit-card i {
  font-size: 2.5rem;
  color: var(--primary-color);
  margin-bottom: 1rem;
}

.benefit-card h3 {
  margin-bottom: 1rem;
}

.benefit-card p {
  margin-bottom: 1.5rem;
  color: #666;
}

/* Location Page Styles */
.location-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  margin: 3rem 0;
}

.location-info {
  padding: 2rem;
  background: white;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.nearby-landmarks {
  margin: 2rem 0;
}

.nearby-landmarks ul {
  list-style: none;
  margin-top: 1rem;
}

.nearby-landmarks ul li {
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
}

.nearby-landmarks ul li i {
  margin-right: 1rem;
  color: var(--primary-color);
}

.directions {
  margin: 2rem 0;
}

.direction-method {
  display: flex;
  align-items: flex-start;
  margin-bottom: 1.5rem;
}

.direction-method i {
  font-size: 1.5rem;
  color: var(--primary-color);
  margin-right: 1rem;
  margin-top: 0.2rem;
}

.direction-method h4 {
  margin-bottom: 0.5rem;
}

.map-container {
  height: 100%;
  min-height: 400px;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.map-container iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

@media (max-width: 768px) {
  .location-grid {
    grid-template-columns: 1fr;
  }
  
  .map-container {
    height: 400px;
  }
}

/* Media Queries */
@media (max-width: 992px) {
  .hero-content h1 {
    font-size: 2.8rem;
  }

  .booking-container {
    grid-template-columns: 1fr;
  }

  .profile-container {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .footer-content {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .footer-section h3::after {
    margin: 0.5rem auto;
  }

  .footer-section.links ul {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
  }

  .footer-section.contact p {
    justify-content: center;
  }

  .social {
    justify-content: center;
  }

  .menu-toggle {
    display: block;
  }

  nav ul {
    display: none;
    position: absolute;
    top: 70px;
    left: 0;
    width: 100%;
    background-color: white;
    flex-direction: column;
    padding: 1rem 0;
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
    max-height: calc(100vh - 70px);
    overflow-y: auto;
    z-index: 1000;
  }

  nav ul.show {
    display: flex;
  }

  nav ul li {
    margin: 0;
    text-align: center;
  }

  nav ul li a {
    display: block;
    padding: 1rem;
  }

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

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

  .testimonial {
    min-width: 100%;
  }
}

@media (max-width: 576px) {
  .hero-content h1 {
    font-size: 1.8rem;
  }

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

.form-group.checkbox {
  display: flex;
  align-items: center;
  margin-bottom: 15px;
}

.form-group.checkbox input {
  margin-right: 10px;
}

.radio-group {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-top: 5px;
}

.radio-group input[type="radio"] {
  margin-right: 5px;
}

/* Transformation Slideshow */
.slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  filter: brightness(0.85);
  max-height: 550px;
}

.slideshow-container {
  height: auto;
  max-height: 550px;
  position: relative;
  overflow: hidden;
}

.slide {
  height: auto;
  max-height: 550px;
  position: relative;
  display: none;
}

.slide-content {
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.85));
}