/* ==================== WO-FW-02: FITNESS GYM ==================== */
/* FitLife Gym - Modern Fitness Center Template */
/* Color Palette: Electric Blue, Orange, Dark Gray */

:root {
  --primary: #2563eb;
  --primary-dark: #1e40af;
  --secondary: #f97316;
  --accent: #10b981;
  --text-dark: #1f2937;
  --text-light: #6b7280;
  --bg-light: #f9fafb;
  --bg-gray: #f3f4f6;
  --white: #ffffff;
}

/* Override base colors */
.btn-primary {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  box-shadow: 0 4px 15px rgba(37, 99, 235, 0.3);
}

.btn-primary:hover {
  box-shadow: 0 8px 25px rgba(37, 99, 235, 0.4);
}

.btn-secondary {
  border-color: var(--primary);
  color: var(--primary);
}

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

.btn-outline {
  border-color: var(--primary);
  color: var(--primary);
}

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

.section-badge {
  background: rgba(37, 99, 235, 0.1);
  color: var(--primary);
}

/* Typography */
body {
  font-family: 'DM Sans', sans-serif;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'DM Sans', sans-serif;
  font-weight: 700;
}

/* Navbar */
.navbar-brand {
  font-size: 1.75rem;
  font-weight: 800;
}

.navbar-brand span {
  color: var(--secondary);
}

.navbar-link:hover,
.navbar-link.active {
  color: var(--primary);
}

.navbar-link::after {
  background: var(--primary);
}

/* Hero Gym */
.hero-gym {
  min-height: 100vh;
  background: url('https://images.pexels.com/photos/1552242/pexels-photo-1552242.jpeg?auto=compress&cs=tinysrgb&w=1920') center/cover no-repeat;
  position: relative;
  display: flex;
  align-items: center;
}

.hero-gym .hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(31, 41, 55, 0.85) 0%, rgba(37, 99, 235, 0.7) 100%);
}

.hero-gym .container {
  position: relative;
  z-index: 1;
}

.hero-gym .hero-content {
  max-width: 700px;
  color: var(--white);
  text-align: center;
  margin: 0 auto;
}

.hero-gym .hero-badge {
  background: rgba(37, 99, 235, 0.3);
  color: var(--white);
}

.hero-gym .hero-title {
  color: var(--white);
  font-size: clamp(2.5rem, 5vw, 3.5rem);
}

.hero-gym .hero-title span {
  color: var(--secondary);
}

.hero-gym .hero-description {
  color: rgba(255, 255, 255, 0.9);
  font-size: 1.125rem;
}

.hero-gym .hero-buttons {
  justify-content: center;
  margin-bottom: 40px;
}

.hero-gym .btn-secondary {
  border-color: rgba(255, 255, 255, 0.4);
  color: var(--white);
}

.hero-gym .btn-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
}

.hero-stats {
  display: flex;
  justify-content: center;
  gap: 50px;
  padding-top: 40px;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.stat-item {
  text-align: center;
}

.stat-number {
  display: block;
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--secondary);
}

.stat-label {
  font-size: 0.9375rem;
  color: rgba(255, 255, 255, 0.8);
}

@media (max-width: 768px) {
  .hero-stats {
    flex-wrap: wrap;
    gap: 30px;
  }

  .stat-item {
    flex: 1 1 40%;
  }
}

/* Programs Grid */
.programs-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.program-card {
  background: var(--white);
  padding: 32px;
  border-radius: 20px;
  text-align: center;
  border: 1px solid #e5e7eb;
  transition: all 0.3s ease;
}

.program-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.1);
  border-color: var(--primary);
}

.program-icon {
  font-size: 3rem;
  margin-bottom: 20px;
}

.program-card h3 {
  font-size: 1.25rem;
  margin-bottom: 12px;
  text-transform: none;
}

.program-card p {
  color: var(--text-light);
  font-size: 0.9375rem;
  margin-bottom: 20px;
  line-height: 1.6;
}

.program-features {
  margin-bottom: 20px;
}

.program-features li {
  padding: 6px 0;
  color: var(--text-light);
  font-size: 0.875rem;
  position: relative;
  padding-left: 20px;
}

.program-features li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--accent);
}

.program-link {
  color: var(--primary);
  font-weight: 600;
  transition: color 0.3s ease;
}

.program-link:hover {
  color: var(--primary-dark);
}

@media (max-width: 992px) {
  .programs-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

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

/* Equipment Grid */
.equipment-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

/* Focus Areas */
.focus-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
}

.focus-card {
  border: 1px solid #e5e7eb;
  border-radius: 18px;
  padding: 20px;
  background: var(--white);
  display: flex;
  flex-direction: column;
  gap: 12px;
  text-decoration: none;
  color: inherit;
  transition: all 0.3s ease;
}

.focus-card:hover {
  border-color: var(--primary);
  box-shadow: 0 15px 35px rgba(15, 23, 42, 0.08);
  transform: translateY(-6px);
}

.focus-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: rgba(37, 99, 235, 0.08);
  color: var(--primary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
}

.focus-card span {
  font-size: 0.85rem;
  color: var(--text-light);
}

.equipment-item {
  background: var(--white);
  border-radius: 20px;
/* Training Grid */
.training-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.training-content h2 {
  font-size: 2.25rem;
  margin-bottom: 20px;
}

.training-content > p {
  color: var(--text-light);
  line-height: 1.8;
  margin-bottom: 32px;
}

.training-features {
  display: flex;
  flex-direction: column;
  gap: 24px;
  margin-bottom: 32px;
}

.training-feature {
  display: flex;
  gap: 16px;
}

.feature-icon {
  font-size: 1.5rem;
  flex-shrink: 0;
}

.training-feature h4 {
  font-size: 1.125rem;
  margin-bottom: 4px;
}

.training-feature p {
  color: var(--text-light);
  font-size: 0.9375rem;
  margin: 0;
}

.training-image {
  position: relative;
}

.training-image img {
  border-radius: 20px;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.15);
}

.training-badge {
  position: absolute;
  bottom: -20px;
  right: -20px;
  background: var(--white);
  padding: 20px 24px;
  border-radius: 16px;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
  display: flex;
  align-items: center;
  gap: 12px;
}

.badge-icon {
  font-size: 2rem;
}

.training-badge strong {
  display: block;
  font-size: 1.125rem;
  color: var(--primary);
}

.training-badge span {
  font-size: 0.8125rem;
  color: var(--text-light);
}

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

  .training-badge {
    right: 20px;
  }
}

/* Membership Grid */
.membership-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  align-items: start;
}

.membership-card {
  background: var(--white);
  border-radius: 24px;
  padding: 40px;
  border: 2px solid #e5e7eb;
  transition: all 0.3s ease;
  text-align: center;
  position: relative;
}

.membership-card.featured {
  border-color: var(--primary);
  transform: scale(1.05);
}

.membership-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: var(--white);
  padding: 6px 20px;
  border-radius: 50px;
  font-size: 0.75rem;
  font-weight: 600;
}

.membership-header {
  margin-bottom: 32px;
}

.membership-header h3 {
  font-size: 1.75rem;
  margin-bottom: 8px;
}

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

.membership-price span {
  font-size: 1rem;
  font-weight: 400;
  color: var(--text-light);
}

.membership-header p {
  color: var(--text-light);
  font-size: 0.9375rem;
  margin-top: 8px;
}

.membership-features {
  margin-bottom: 32px;
  text-align: left;
}

.membership-features li {
  padding: 12px 0;
  border-bottom: 1px solid #f3f4f6;
  color: var(--text-dark);
  font-size: 0.9375rem;
}

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

.membership-card .btn {
  width: 100%;
}

@media (max-width: 992px) {
  .membership-grid {
    grid-template-columns: 1fr;
    max-width: 400px;
    margin: 0 auto;
  }

  .membership-card.featured {
    transform: none;
  }
}

/* Retail Boutique */
.boutique-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 24px;
}

.product-card {
  background: var(--white);
  border-radius: 22px;
  border: 1px solid #e5e7eb;
  overflow: hidden;
  box-shadow: 0 15px 35px rgba(15, 23, 42, 0.08);
}

.product-image {
  position: relative;
  height: 220px;
}

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

.product-badges {
  position: absolute;
  top: 16px;
  left: 16px;
  display: flex;
  gap: 8px;
}

.badge {
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--white);
}

.badge-primary {
  background: var(--primary);
}

.badge-success {
  background: var(--accent);
  color: var(--text-dark);
}

.product-content {
  padding: 24px;
}

.product-category {
  font-size: 0.85rem;
  color: var(--text-light);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.product-content h3 {
  margin: 8px 0;
  font-size: 1.2rem;
}

.product-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.9rem;
  color: var(--text-light);
  margin-top: 12px;
}

/* Testimonials */
.testimonial-card {
  background: var(--white);
  border: 1px solid #e5e7eb;
}

.testimonial-rating {
  color: var(--secondary);
}

/* CTA Gym */
.cta-gym {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
}

.cta-gym .btn-secondary {
  border-color: rgba(255, 255, 255, 0.4);
  color: var(--white);
}

.cta-gym .btn-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
}

/* Footer */
.footer-brand span {
  color: var(--secondary);
}

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

.footer-link:hover {
  color: var(--primary);
}

/* Section Alt */
.section-alt {
  background: var(--bg-gray);
}

/* Back to Top */
.back-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 50px;
  height: 50px;
  background: var(--primary);
  color: var(--white);
  border: none;
  border-radius: 50%;
  font-size: 1.25rem;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(37, 99, 235, 0.4);
  z-index: 999;
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
}

.back-to-top:hover {
  transform: translateY(-5px);
}

/* ==================== INNER PAGE STYLES ==================== */

/* Page Hero */
.page-hero {
  position: relative;
  padding: 140px 0 100px;
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.9), rgba(30, 64, 175, 0.95)),
    url('https://images.pexels.com/photos/414029/pexels-photo-414029.jpeg?auto=compress&cs=tinysrgb&w=1600') center/cover no-repeat;
  color: var(--white);
}

.page-hero .container {
  position: relative;
  z-index: 1;
}

.page-hero .hero-badge {
  background: rgba(255, 255, 255, 0.15);
  color: var(--white);
}

.page-hero h1 {
  font-size: clamp(2rem, 4vw, 3.25rem);
  margin-bottom: 16px;
}

.page-hero p {
  color: rgba(255, 255, 255, 0.85);
  max-width: 650px;
}

.breadcrumbs {
  display: flex;
  gap: 8px;
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.8);
  margin-top: 20px;
  align-items: center;
}

.breadcrumbs a {
  color: inherit;
}

.breadcrumbs span {
  opacity: 0.6;
}

/* Program Detail Page */
.program-layout {
  display: grid;
  grid-template-columns: 3fr 2fr;
  gap: 40px;
}

.program-card-detailed {
  background: var(--white);
  border-radius: 24px;
  padding: 32px;
  border: 1px solid #e5e7eb;
  box-shadow: 0 20px 50px rgba(15, 23, 42, 0.08);
}

.program-card-detailed h3 {
  font-size: 1.75rem;
  margin-bottom: 12px;
}

.program-card-detailed p {
  color: var(--text-light);
  line-height: 1.8;
  margin-bottom: 24px;
}

.program-highlights {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-bottom: 24px;
}

.program-highlight {
  background: var(--bg-gray);
  border-radius: 16px;
  padding: 16px;
  display: flex;
  gap: 12px;
  align-items: center;
}

.program-highlight span {
  font-size: 1.5rem;
}

.program-details-list {
  margin-bottom: 24px;
}

.program-details-list li {
  position: relative;
  padding-left: 28px;
  margin-bottom: 14px;
  color: var(--text-dark);
}

.program-details-list li::before {
  content: '•';
  position: absolute;
  left: 10px;
  color: var(--primary);
  font-size: 1.5rem;
  line-height: 1;
}

.program-sidebar {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.info-card {
  background: var(--white);
  border-radius: 20px;
  padding: 28px;
  border: 1px solid #e5e7eb;
  box-shadow: 0 15px 40px rgba(15, 23, 42, 0.06);
}

.info-card h4 {
  margin-bottom: 16px;
  font-size: 1.25rem;
}

.info-list li {
  display: flex;
  justify-content: space-between;
  margin-bottom: 12px;
  font-size: 0.95rem;
  color: var(--text-light);
}

.info-list li strong {
  color: var(--text-dark);
}

.benefits-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.benefit-card {
  background: var(--white);
  border-radius: 16px;
  padding: 20px;
  border: 1px solid #e5e7eb;
  text-align: center;
}

.benefit-card span {
  display: inline-flex;
  width: 48px;
  height: 48px;
  align-items: center;
  justify-content: center;
  background: rgba(37, 99, 235, 0.1);
  color: var(--primary);
  border-radius: 12px;
  font-size: 1.5rem;
  margin-bottom: 12px;
}

.benefit-card h5 {
  margin-bottom: 8px;
}

/* Trainers Page */
.trainer-hero-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 40px;
  align-items: center;
}

.trainer-spotlight {
  background: var(--white);
  border-radius: 24px;
  padding: 32px;
  border: 1px solid #e5e7eb;
  box-shadow: 0 20px 50px rgba(15, 23, 42, 0.08);
  display: flex;
  gap: 24px;
  align-items: center;
}

.trainer-spotlight img {
  width: 220px;
  height: 260px;
  object-fit: cover;
  border-radius: 20px;
  box-shadow: 0 15px 40px rgba(15, 23, 42, 0.2);
}

.trainer-spotlight h3 {
  margin-bottom: 8px;
}

.trainer-spotlight p {
  color: var(--text-light);
  margin-bottom: 16px;
}

.badge-list {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 16px;
}

.badge-list span {
  background: rgba(37, 99, 235, 0.1);
  color: var(--primary);
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 600;
}

.trainer-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.trainer-card {
  background: var(--white);
  border-radius: 20px;
  border: 1px solid #e5e7eb;
  overflow: hidden;
  transition: all 0.3s ease;
}

.trainer-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 50px rgba(15, 23, 42, 0.12);
}

.trainer-card img {
  width: 100%;
  height: 240px;
  object-fit: cover;
}

.trainer-card .card-body {
  padding: 24px;
}

.trainer-card .card-body span {
  display: block;
  color: var(--text-light);
  margin-bottom: 12px;
}

.trainer-card ul li {
  font-size: 0.9rem;
  color: var(--text-light);
  margin-bottom: 6px;
}

.certifications-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.cert-card {
  background: var(--bg-gray);
  border-radius: 16px;
  padding: 20px;
}

.cert-card strong {
  display: block;
  margin-bottom: 6px;
}

/* Membership Page */
.membership-toggle {
  display: inline-flex;
  border: 1px solid #e5e7eb;
  border-radius: 999px;
  padding: 6px;
  background: var(--white);
  gap: 6px;
}

.membership-toggle button {
  border: none;
  background: transparent;
  padding: 10px 24px;
  border-radius: 999px;
  font-weight: 600;
  color: var(--text-light);
  cursor: pointer;
  transition: all 0.3s ease;
}

.membership-toggle button.active {
  background: var(--primary);
  color: var(--white);
  box-shadow: 0 10px 30px rgba(37, 99, 235, 0.3);
}

.plan-perks {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-top: 40px;
}

.perk-card {
  background: var(--white);
  border-radius: 16px;
  border: 1px solid #e5e7eb;
  padding: 20px;
  text-align: center;
}

.perk-card span {
  display: inline-flex;
  width: 48px;
  height: 48px;
  align-items: center;
  justify-content: center;
  background: rgba(249, 115, 22, 0.1);
  color: var(--secondary);
  border-radius: 12px;
  font-size: 1.5rem;
  margin-bottom: 12px;
}

.comparison-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 40px;
  background: var(--white);
  border-radius: 24px;
  overflow: hidden;
  border: 1px solid #e5e7eb;
}

.comparison-table th,
.comparison-table td {
  padding: 16px 24px;
  text-align: center;
  border-bottom: 1px solid #f3f4f6;
}

.comparison-table th {
  background: var(--bg-gray);
  font-weight: 600;
}

.comparison-table td:first-child {
  text-align: left;
  font-weight: 600;
}

/* Schedule Page */
.schedule-filter-bar {
  background: var(--white);
  border-radius: 20px;
  padding: 20px;
  border: 1px solid #e5e7eb;
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
  justify-content: space-between;
}

.filter-group {
  display: flex;
  gap: 12px;
  align-items: center;
}

.filter-group label {
  font-weight: 600;
  color: var(--text-dark);
}

.filter-tags {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.filter-tags button {
  border: 1px solid #e5e7eb;
  border-radius: 999px;
  background: transparent;
  padding: 8px 18px;
  font-weight: 600;
  color: var(--text-light);
  cursor: pointer;
  transition: all 0.3s ease;
}

.filter-tags button.active,
.filter-tags button:hover {
  background: rgba(37, 99, 235, 0.1);
  color: var(--primary);
  border-color: rgba(37, 99, 235, 0.2);
}

.schedule-table {
  margin-top: 30px;
  overflow-x: auto;
}

.schedule-table table {
  width: 100%;
  border-collapse: collapse;
  min-width: 800px;
}

.schedule-table th,
.schedule-table td {
  border: 1px solid #e5e7eb;
  padding: 16px;
  text-align: center;
}

.schedule-table th {
  background: var(--bg-gray);
  font-weight: 600;
}

.schedule-table td {
  background: var(--white);
  min-width: 130px;
}

.class-slot {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.class-slot strong {
  color: var(--primary);
}

.class-slot span {
  color: var(--text-light);
  font-size: 0.85rem;
}

.schedule-cta {
  margin-top: 40px;
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.08), rgba(16, 185, 129, 0.08));
  border-radius: 24px;
  padding: 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
}

.schedule-cta h3 {
  margin: 0;
}

.schedule-cta p {
  margin: 0;
  color: var(--text-light);
}

.booking-form {
  background: var(--white);
  border-radius: 24px;
  padding: 32px;
  border: 1px solid #e5e7eb;
  box-shadow: 0 20px 50px rgba(15, 23, 42, 0.08);
}

.booking-form h3 {
  margin-bottom: 20px;
}

.booking-form .form-row {
  grid-template-columns: repeat(2, 1fr);
}

.booking-form .btn {
  width: 100%;
}

/* Responsive adjustments */
@media (max-width: 1200px) {
  .trainer-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .plan-perks {
    grid-template-columns: repeat(2, 1fr);
  }
}

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

  .program-highlights {
    grid-template-columns: 1fr;
  }

  .benefits-grid {
    grid-template-columns: 1fr 1fr;
  }

  .trainer-hero-grid {
    grid-template-columns: 1fr;
  }

  .trainer-spotlight {
    flex-direction: column;
    text-align: center;
  }

  .trainer-spotlight img {
    width: 100%;
    height: 320px;
  }

  .certifications-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .plan-perks {
    grid-template-columns: repeat(2, 1fr);
  }

  .schedule-cta {
    flex-direction: column;
    text-align: center;
  }
}

@media (max-width: 768px) {
  .program-layout,
  .program-sidebar,
  .trainer-grid,
  .benefits-grid,
  .plan-perks {
    grid-template-columns: 1fr;
  }

  .trainer-card img {
    height: 220px;
  }

  .program-card-detailed,
  .info-card,
  .perk-card,
  .trainer-spotlight,
  .booking-form {
    padding: 24px;
  }

  .membership-toggle {
    width: 100%;
    justify-content: space-between;
  }

  .schedule-filter-bar {
    flex-direction: column;
    align-items: flex-start;
  }

  .schedule-table table {
    min-width: auto;
  }
}
