/* Reset & Base */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Segoe UI', Arial, sans-serif;
  color: #222;
  line-height: 1.6;
}

/* Header */
header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 60px;
  background: #111;
  color: #fff;
  position: sticky;
  top: 0;
  z-index: 100;
}

.logo {
  font-size: 26px;
  font-weight: 800;
  color: #ff4500;
  letter-spacing: 1px;
}

header nav ul {
  display: flex;
  list-style: none;
  gap: 30px;
}

header nav ul li a {
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  transition: color 0.3s;
}

header nav ul li a:hover {
  color: #ff4500;
}

/* Hero Section */
.hero {
  background: linear-gradient(rgba(0,0,0,0.6), rgba(0,0,0,0.6)),
              url('https://images.unsplash.com/photo-1534438327276-14e5300c3a48?w=1600') center/cover no-repeat;
  color: #fff;
  text-align: center;
  padding: 140px 20px;
}

.hero h2 {
  font-size: 48px;
  font-weight: 800;
  margin-bottom: 20px;
}

.hero p {
  font-size: 18px;
  margin-bottom: 30px;
  color: #ddd;
}

.btn {
  display: inline-block;
  background: #ff4500;
  color: #fff;
  padding: 14px 36px;
  border-radius: 30px;
  text-decoration: none;
  font-weight: 700;
  transition: transform 0.3s, background 0.3s;
}

.btn:hover {
  background: #e03e00;
  transform: translateY(-3px);
}

/* Section common */
section {
  padding: 80px 60px;
}

section h2 {
  text-align: center;
  font-size: 34px;
  margin-bottom: 50px;
  position: relative;
}

section h2::after {
  content: '';
  width: 60px;
  height: 4px;
  background: #ff4500;
  display: block;
  margin: 12px auto 0;
}

/* Programs Section */
.programs {
  background: #f7f7f7;
}

.program-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 25px;
}

.program-card {
  background: #fff;
  padding: 30px 20px;
  border-radius: 12px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0,0,0,0.08);
  transition: transform 0.3s;
}

.program-card:hover {
  transform: translateY(-8px);
}

.program-card h3 {
  color: #ff4500;
  margin-bottom: 12px;
}

/* Trainers Section */
.trainer-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 25px;
}

.trainer-card {
  background: #111;
  color: #fff;
  padding: 40px 20px;
  border-radius: 12px;
  text-align: center;
}

.trainer-card h3 {
  color: #ff4500;
  margin-bottom: 8px;
}

/* Pricing Section */
.pricing {
  background: #f7f7f7;
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 25px;
}

.price-card {
  background: #fff;
  padding: 40px 25px;
  border-radius: 12px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0,0,0,0.08);
}

.price-card.featured {
  background: #ff4500;
  color: #fff;
  transform: scale(1.05);
}

.price-card .price {
  font-size: 28px;
  font-weight: 800;
  margin: 15px 0;
}

/* Footer */
footer {
  background: #111;
  color: #ccc;
  text-align: center;
  padding: 30px 20px;
}

/* Responsive */
@media (max-width: 900px) {
  .program-grid,
  .trainer-grid,
  .pricing-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  header {
    padding: 15px 25px;
  }

  section {
    padding: 60px 25px;
  }
}

@media (max-width: 600px) {
  header {
    flex-direction: column;
    gap: 15px;
  }

  header nav ul {
    gap: 15px;
    flex-wrap: wrap;
    justify-content: center;
  }

  .hero h2 {
    font-size: 32px;
  }

  .program-grid,
  .trainer-grid,
  .pricing-grid {
    grid-template-columns: 1fr;
  }

  .price-card.featured {
    transform: none;
  }
}
/* Hamburger icon */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
}

.hamburger span {
  width: 28px;
  height: 3px;
  background: #fff;
  border-radius: 2px;
  transition: 0.3s;
}

.hamburger.active span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}
.hamburger.active span:nth-child(2) {
  opacity: 0;
}
.hamburger.active span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

/* Show hamburger + hide nav on mobile */
@media (max-width: 600px) {
  .hamburger {
    display: flex;
  }

  nav#nav {
    display: none;
    width: 100%;
  }

  nav#nav.active {
    display: block;
  }

  header nav ul {
    flex-direction: column;
    text-align: center;
  }
}
/* Counters */
.counters {
  background: #ff4500;
  color: #fff;
  display: flex;
  justify-content: space-around;
  text-align: center;
  flex-wrap: wrap;
  padding: 60px 20px;
}

.counter {
  font-size: 42px;
  font-weight: 800;
}

/* Testimonials Slider */
.testimonials {
  text-align: center;
  background: #f7f7f7;
}

.slider {
  max-width: 600px;
  margin: 0 auto;
  position: relative;
  min-height: 120px;
}

.slide {
  display: none;
  font-size: 18px;
  font-style: italic;
}

.slide.active {
  display: block;
}

.slide h4 {
  margin-top: 15px;
  color: #ff4500;
  font-style: normal;
}

.slider-dots {
  margin-top: 25px;
  display: flex;
  justify-content: center;
  gap: 10px;
}

.dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #ccc;
  cursor: pointer;
  transition: background 0.3s;
}

.dot.active {
  background: #ff4500;
}

/* BMI Calculator */
.bmi-calculator {
  text-align: center;
}

.bmi-box {
  max-width: 400px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.bmi-box input {
  padding: 12px;
  border: 1px solid #ccc;
  border-radius: 8px;
  font-size: 16px;
}

.bmi-box button {
  border: none;
  cursor: pointer;
  font-size: 16px;
}

#bmiResult {
  font-size: 20px;
  font-weight: 700;
  color: #ff4500;
  margin-top: 10px;
}

/* FAQ Accordion */
.faq {
  max-width: 700px;
  margin: 0 auto;
}

.faq-item {
  border-bottom: 1px solid #ddd;
  padding: 18px 0;
  cursor: pointer;
}

.faq-question {
  display: flex;
  justify-content: space-between;
  font-weight: 700;
  font-size: 17px;
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
  color: #555;
  margin-top: 10px;
}

.faq-item.open .faq-answer {
  max-height: 200px;
}

.faq-item.open .faq-question span {
  color: #ff4500;
  transform: rotate(45deg);
}

.faq-question span {
  transition: transform 0.3s;
}

/* Sticky Join Button */
.sticky-btn {
  position: fixed;
  bottom: 25px;
  right: 25px;
  background: #ff4500;
  color: #fff;
  padding: 14px 26px;
  border-radius: 30px;
  text-decoration: none;
  font-weight: 700;
  box-shadow: 0 4px 15px rgba(0,0,0,0.3);
  z-index: 200;
  transition: transform 0.3s;
}

.sticky-btn:hover {
  transform: translateY(-4px);
}

/* Scroll Animation */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}
/* Gallery Image Slider */
.gallery {
  text-align: center;
}

.img-slider {
  position: relative;
  max-width: 800px;
  margin: 0 auto;
  height: 450px;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 8px 25px rgba(0,0,0,0.2);
}

.img-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.6s ease-in-out;
}

.img-slide.active {
  opacity: 1;
}

.slider-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0,0,0,0.5);
  color: #fff;
  border: none;
  font-size: 20px;
  padding: 12px 16px;
  cursor: pointer;
  border-radius: 50%;
  z-index: 10;
  transition: background 0.3s;
}

.slider-arrow:hover {
  background: #ff4500;
}

.slider-arrow.prev {
  left: 15px;
}

.slider-arrow.next {
  right: 15px;
}

.img-slider-dots {
  position: absolute;
  bottom: 15px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 10;
}

.img-slider-dots .dot {
  width: 10px;
  height: 10px;
  background: rgba(255,255,255,0.6);
}

.img-slider-dots .dot.active {
  background: #ff4500;
}

@media (max-width: 600px) {
  .img-slider {
    height: 260px;
  }
}