/* Team Page Styles */

/* Ensure proper mobile viewport handling */
.team-hero,
.about-section,
.coaches-section,
.training-cta-section {
  width: 100%;
  max-width: 100vw;
  overflow-x: hidden;
  box-sizing: border-box;
}

/* Prevent horizontal overflow on mobile */
@media (max-width: 768px) {
  body {
    overflow-x: hidden;
  }
  
  .main {
    overflow-x: hidden;
    width: 100%;
    max-width: 100vw;
  }
}

/* Mobile-first container approach */
@media (max-width: 768px) {
  .team-hero,
  .about-section,
  .coaches-section,
  .training-cta-section {
    padding-left: 0;
    padding-right: 0;
  }
  
  /* Mobile-specific carousel improvements */
  .coaches-carousel {
    touch-action: pan-x;
    -webkit-overflow-scrolling: touch;
    max-width: 100vw;
    overflow: hidden;
  }
  
  .coaches-track {
    scroll-snap-type: x mandatory;
    gap: 20px;
  }
  
  .coach-slide {
    scroll-snap-align: center;
    flex: 0 0 280px;
    min-width: 280px;
  }
  
  /* Mobile navigation button improvements */
  .coach-nav-btn {
    width: 44px;
    height: 44px;
    font-size: 20px;
  }
}

/* Team Hero Section */
.team-hero {
  position: relative;
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 25%, #dee2e6 50%, #e9ecef 75%, #f8f9fa 100%);
  overflow: hidden;
  min-height: 60vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.team-hero-image {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.team-showcase-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  top: 0;
  left: 0;
  z-index: 1;
}

.team-hero-overlay {
  position: relative;
  z-index: 2;
  text-align: center;
  color: white;
  background: rgba(0, 0, 0, 0.6);
  padding: 40px 60px;
  border-radius: 16px;
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.team-hero-title {
  font-size: 48px;
  font-weight: 900;
  margin: 0 0 16px 0;
  letter-spacing: 0.02em;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.team-hero-subtitle {
  font-size: 20px;
  margin: 0;
  opacity: 0.9;
  font-weight: 500;
}

/* About Us Section */
.about-section {
  padding: 80px 0;
  background: white;
  width: 100%;
  max-width: 100vw;
  overflow-x: hidden;
}

.about-inner {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 20px;
  text-align: center;
}

.about-text {
  font-size: 18px;
  line-height: 1.6;
  color: #6c757d;
  margin: 0;
}

/* Coaches Section */
.coaches-section {
  padding: 80px 0;
  background: #f8f9fa;
}

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

.coaches-inner .section-h {
  text-align: center;
  margin-bottom: 60px;
}

.coaches-carousel {
  position: relative;
  max-width: 100%;
  margin: 0 auto;
  overflow: hidden;
  width: 100%;
}

.coaches-track {
  display: flex;
  gap: 40px;
  transition: transform 0.5s ease-in-out;
  align-items: center;
  will-change: transform;
  padding: 20px 40px;
  min-width: max-content;
}

.coach-slide {
  flex: 0 0 300px;
  background: white;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  cursor: pointer;
}

.coach-slide:hover {
  transform: translateY(-8px);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.15);
}



.coach-image {
  width: 100%;
  height: 300px;
  overflow: hidden;
  background: #e9ecef;
}

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

.coach-slide:hover .coach-img {
  transform: scale(1.1);
}

.coach-info {
  padding: 24px;
  text-align: center;
}

.coach-name {
  font-size: 24px;
  font-weight: 700;
  margin: 0 0 12px 0;
  color: #1f1f1f;
}

.coach-bio {
  font-size: 16px;
  margin: 0;
  color: #6c757d;
  font-weight: 500;
  line-height: 1.4;
}

/* Coaches Navigation */
.coaches-nav {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 40px;
  position: relative;
  z-index: 10;
}

.coach-nav-btn {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  border: 2px solid #dee2e6;
  background: white;
  color: #6c757d;
  font-size: 24px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.coach-nav-btn:hover {
  border-color: var(--color-primary);
  color: var(--color-primary);
  background: var(--color-primary);
  color: white;
  transform: scale(1.1);
  box-shadow: 0 6px 20px rgba(193, 58, 52, 0.3);
}

.coach-nav-btn:active {
  transform: scale(0.95);
}

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

/* Training CTA Section */
.training-cta-section {
  padding: 80px 0;
  background: linear-gradient(135deg, #1f1f1f 0%, #2b2b2b 100%);
  color: white;
}

.training-cta-inner {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
  padding: 0 20px;
}

.training-cta-inner .section-h {
  color: white;
  margin-bottom: 24px;
}

.training-cta-text {
  font-size: 18px;
  line-height: 1.6;
  margin-bottom: 40px;
  opacity: 0.9;
}

.training-cta-actions {
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-items: center;
  width: 100%;
  max-width: 100%;
}

.training-cta-actions .btn-primary-red {
  min-width: 200px;
}

.training-cta-actions .btn-dark {
  min-width: 180px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: white;
}

.training-cta-actions .btn-dark:hover {
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.3);
}

/* Mobile Responsive */
@media (max-width: 768px) {
  .team-hero {
    min-height: 50vh;
  }
  
  .team-hero-overlay {
    padding: 30px 40px;
    margin: 0 20px;
    max-width: calc(100vw - 40px);
  }
  
  .team-hero-title {
    font-size: 36px;
  }
  
  .team-hero-subtitle {
    font-size: 18px;
  }
  
  .about-section {
    padding: 60px 0;
  }
  
  .about-inner {
    padding: 0 20px;
    max-width: 100%;
  }
  
  .about-text {
    font-size: 16px;
    line-height: 1.6;
  }
  
  .coaches-section {
    padding: 60px 0;
  }
  
  .coaches-inner {
    padding: 0 20px;
    max-width: 100%;
  }
  
  .coaches-carousel {
    max-width: 100%;
    overflow: hidden;
  }
  
  .coaches-track {
    gap: 20px;
    justify-content: flex-start;
    padding: 0 10px;
  }
  
  .coach-slide {
    flex: 0 0 280px;
    min-width: 280px;
  }
  
  .coach-image {
    height: 250px;
  }
  
  .training-cta-section {
    padding: 60px 0;
  }
  
  .training-cta-inner {
    padding: 0 20px;
    max-width: 100%;
  }
  
  .training-cta-actions {
    gap: 12px;
  }
  
  .training-cta-actions .btn-primary-red,
  .training-cta-actions .btn-dark {
    width: 100%;
    max-width: 300px;
  }
}

@media (max-width: 480px) {
  .team-hero {
    min-height: 40vh;
  }
  
  .team-hero-overlay {
    padding: 24px 32px;
    margin: 0 16px;
    max-width: calc(100vw - 32px);
  }
  
  .team-hero-title {
    font-size: 28px;
  }
  
  .team-hero-subtitle {
    font-size: 16px;
  }
  
  .about-section {
    padding: 40px 0;
  }
  
  .about-inner {
    padding: 0 16px;
  }
  
  .about-text {
    font-size: 15px;
  }
  
  .coaches-section {
    padding: 40px 0;
  }
  
  .coaches-inner {
    padding: 0 16px;
  }
  
  .coaches-track {
    gap: 16px;
    padding: 0 8px;
  }
  
  .coach-slide {
    flex: 0 0 260px;
    min-width: 260px;
  }
  
  .coach-image {
    height: 220px;
  }
  
  .coach-info {
    padding: 20px;
  }
  
  .coach-name {
    font-size: 20px;
  }
  
  .coach-bio {
    font-size: 14px;
  }
  
  .training-cta-section {
    padding: 40px 0;
  }
  
  .training-cta-inner {
    padding: 0 16px;
  }
  
  .training-cta-text {
    font-size: 16px;
  }
  
  .training-cta-actions .btn-primary-red,
  .training-cta-actions .btn-dark {
    max-width: 280px;
  }
  
  /* Extra small mobile improvements */
  .coach-nav-btn {
    width: 40px;
    height: 40px;
    font-size: 18px;
  }
  
  .team-hero-overlay {
    padding: 20px 24px;
  }
}

