/* Main Content */
.main-content {
  padding-top: 80px; /* Account for fixed header */
}

/* Container */
.container {
  max-width: 1300px;
  margin: 0 auto;
}

/* Coaches Section */
.coaches-section {
  padding: 24px 0 66px 0;
  background: transparent;
}

.coaches-content {
  background: linear-gradient(4deg, #FFF 14.12%, #E8E0D6 55.55%, #DCE1EB 97.19%);
  border-radius: 25px;
  padding: 41px 53px;
}

/* Header Row */
.coaches-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 37px;
}

.coaches-title-section {
  flex: 1;
}

.coaches-title {
  font-size: 42px;
  font-weight: 700;
  color: #2C3342;
  margin: 0;
  line-height: 1.2;
}

.coaches-search-section {
  flex: 1;
  display: flex;
  justify-content: flex-end;
}

.search-field {
  position: relative;
  max-width: 400px;
  width: 100%;
}

.search-icon {
  position: absolute;
  left: 20px;
  top: 27%;
  z-index: 1;
}

.search-input {
  width: 100%;
  padding: 12px 18px 12px 55px;
  background: #FFF;
  border: 1px solid #E8E0D6;
  border-radius: 15px;
  height: 50px;
  font-family: 'Chewie DEMO';
  font-size: 16px;
  color: #5E6678;
  transition: all 0.3s ease;
}

.search-input:focus {
  outline: none;
  border-color: #ECA455;
  box-shadow: 0 0 8px rgba(236, 164, 85, 0.2);
}

.search-input::placeholder {
  color: #5E6678;
  font-family: 'Chewie DEMO';
}

/* Filters Row */
.coaches-filters {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 27px;
}

.category-tabs {
  display: flex;
  gap: 22px;
  flex-wrap: wrap;
}

.category-tab {
  padding: 3px 24px;
  border: 1px solid #2C3342;
  background: transparent;
  border-radius: 10px;
  font-size: 12px;
  font-weight: 500;
  color: #2C3342;
  line-height: 30px;
  cursor: pointer;
  transition: all 0.3s ease;
  font-family: 'Chewie DEMO';
}

.category-tab:hover {
  border-color: #ECA455;
  color: #2C3342;
}

.category-tab.active {
  border-color: #ECA455;
  font-weight: 700;
}

.filter-button-section {
  display: flex;
  justify-content: flex-end;
}

.filter-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 3px 25px;
  border: 1px solid #2C3342;
  background: transparent;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.filter-btn:hover {
  border-color: #ECA455;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(236, 164, 85, 0.2);
}

.filter-icon {
  display: flex;
  align-items: center;
  justify-content: center;
}

.filter-label {
  font-size: 12px;
  font-weight: 500;
  line-height: 30px;
  color: #2C3342;
  font-family: 'Chewie DEMO';
}

/* Coaches Grid */
.coaches-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-bottom: 40px;
}

.coach-card {
  border-radius: 25px;
  border: 1px solid #EDE8E2;
  background: #FFF;
  box-shadow: 0 0 10px 0 rgba(0, 0, 0, 0.05);
  padding: 34px 40px 23px 40px;
  text-align: center;
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
  cursor: pointer;
}

.coach-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

.coach-avatar {
  margin-bottom: 17px;
}

.avatar-img {
  width: 125px;
  height: 125px;
  border-radius: 50%;
  margin: 0 auto;
  display: block;
}

.coach-name {
  font-size: 18px;
  font-weight: 700;
  color: #2C3342;
  margin-bottom: 14px;
}

.coach-function {
  font-size: 14px;
  color: #2C3342;
  font-weight: 600;
  line-height: 24px;
  margin-bottom: 21px;
  flex-grow: 1;
}

.coach-footer {
  border-top: 1px solid #EDE8E2;
  padding-top: 1rem;
  margin-top: auto;
}

.coach-badge {
  border-radius: 20px;
  background: rgba(236, 164, 85, 0.10);
  display: inline-block;
  padding: 0 18px;
  color: #5E6678;
  font-size: 12px;
  font-weight: 500;
  line-height: 30px;
  cursor: pointer;
  transition: all 0.2s ease;
}

/* Action Button */
.coaches-action {
  text-align: center;
}

.btn {
  padding: 10px 55px;
  border-radius: 15px;
  font-family: 'Chewie DEMO';
  font-weight: 500;
  font-size: 16px;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  width: auto;
  align-self: flex-start;
}

.btn-outline {
  background: transparent;
  color: #27221D;
  border-color: #27221D;
}

.btn-outline:hover {
  background: #2C3342;
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(44, 51, 66, 0.3);
}

.btn-primary {
  background: #ECA455;
  color: #252A34;
  border-color: #252A34;
}

.btn-primary:hover {
  background: #D6943A;
  border-color: #1A1E24;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(236, 164, 85, 0.3);
}

.btn-large {
  padding: 10px 55px;
  font-size: 16px;
  font-weight: 600;
}

/* Animation Classes */
.animate-on-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.animate-on-scroll.animate-in {
  opacity: 1;
  transform: translateY(0);
}

/* Scale animation for cards */
.animate-scale {
  opacity: 0;
  transform: scale(0.9);
  transition: all 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.animate-scale.animate-in {
  opacity: 1;
  transform: scale(1);
}

/* Delay classes for staggered animations */
.animate-delay-1 { transition-delay: 0.1s; }
.animate-delay-2 { transition-delay: 0.2s; }
.animate-delay-3 { transition-delay: 0.3s; }
.animate-delay-4 { transition-delay: 0.4s; }
.animate-delay-5 { transition-delay: 0.5s; }
.animate-delay-6 { transition-delay: 0.6s; }
.animate-delay-7 { transition-delay: 0.7s; }
.animate-delay-8 { transition-delay: 0.8s; }

/* Final CTA Section */
.final-cta-section {
  padding: 0 0 26px 0;
  background: transparent;
}

.cta-block {
  background: transparent;
  width: 100%;
}

.cta-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: linear-gradient(90deg, #FFF 0%, #E8E0D6 49.88%, #DCE1EB 100%);
  border-radius: 25px;
  border: 1px solid #E8E0D6;
  box-shadow: 0 0 4px 0 rgba(0, 0, 0, 0.10);
  gap: 69px;
  align-items: center;
  padding: 22px 25px;
}

.cta-left {
  display: flex;
  justify-content: center;
  align-items: center;
}

.cta-image {
  display: flex;
  justify-content: center;
  align-items: center;
}

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

.cta-right {
  display: flex;
  flex-direction: column;
  max-width: 450px;
}

.cta-title {
  font-size: 40px;
  font-weight: 700;
  line-height: 57px;
  color: #2C3342;
  margin-bottom: 19px;
}

.cta-description {
  font-size: 16px;
  line-height: 30px;
  color: #2C3342;
  margin-bottom: 28px;
}

.cta-right .btn-large {
  width: auto;
  display: inline-flex;
}


/* Slide from left animation */
.animate-slide-left {
  opacity: 0;
  transform: translateX(-30px);
  transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.animate-slide-left.animate-in {
  opacity: 1;
  transform: translateX(0);
}

/* Slide from right animation */
.animate-slide-right {
  opacity: 0;
  transform: translateX(30px);
  transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.animate-slide-right.animate-in {
  opacity: 1;
  transform: translateX(0);
}

/* Responsive Design */
@media (max-width: 1024px) {
  .coaches-content {
    padding: 30px 24px;
  }

  .coaches-title {
    font-size: 32px;
  }

  .coaches-header {
    flex-direction: column;
    gap: 20px;
    align-items: flex-start;
  }

  .coaches-search-section {
    width: 100%;
    justify-content: flex-start;
  }

  .search-field {
    max-width: 100%;
  }

  .coaches-filters {
    flex-direction: column;
    gap: 14px;
    align-items: flex-start;
  }

  .filter-button-section {
    width: 100%;
    justify-content: flex-start;
  }

  .coaches-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }

  .cta-content {
    grid-template-columns: 1fr;
    gap: 2rem;
    text-align: center;
  }

  .cta-right {
    max-width: 100%;
  }

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

@media (max-width: 768px) {
  /* Container */
  .coaches-section {
    padding: 16px 0 40px 0;
  }

  .coaches-section .container {
    padding: 0 16px;
  }

  .coaches-content {
    padding: 20px 16px;
    border-radius: 16px;
  }

  /* Header */
  .coaches-header {
    margin-bottom: 16px;
    gap: 14px;
  }

  .coaches-title {
    font-size: 22px;
  }

  .search-input {
    height: 44px;
    padding: 10px 16px 10px 45px;
    font-size: 14px;
    border-radius: 12px;
  }

  .search-icon {
    top: 24%;
    left: 16px;
  }

  /* Filters */
  .coaches-filters {
    margin-bottom: 16px;
    gap: 12px;
  }

  .category-tabs {
    gap: 8px;
    flex-wrap: wrap;
  }

  .category-tab {
    padding: 2px 14px;
    font-size: 11px;
    line-height: 26px;
    border-radius: 8px;
  }

  .filter-btn {
    padding: 2px 16px;
    border-radius: 8px;
  }

  .filter-label {
    font-size: 11px;
    line-height: 26px;
  }

  /* Grid */
  .coaches-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    margin-bottom: 24px;
  }

  .coach-card {
    padding: 16px 12px;
    border-radius: 16px;
  }

  .avatar-img {
    width: 72px;
    height: 72px;
  }

  .coach-avatar {
    margin-bottom: 10px;
  }

  .coach-name {
    font-size: 13px;
    margin-bottom: 6px;
  }

  .coach-function {
    font-size: 11px;
    line-height: 18px;
    margin-bottom: 10px;
  }

  .coach-badge {
    font-size: 10px;
    padding: 0 10px;
    line-height: 24px;
  }

  .coaches-action .btn {
    width: 100%;
    padding: 12px 20px;
  }

  .coaches-empty {
    padding: 24px 16px;
    text-align: center;
  }

  /* CTA */
  .final-cta-section {
    padding: 0 0 20px 0;
  }

  .final-cta-section .container {
    padding: 0 16px;
  }

  .cta-content {
    padding: 16px;
    border-radius: 16px;
    gap: 1.25rem;
  }

  .cta-title {
    font-size: 1.4rem;
    line-height: 1.35;
    margin-bottom: 10px;
  }

  .cta-description {
    font-size: 13px;
    line-height: 22px;
    margin-bottom: 16px;
  }

  .cta-right .btn {
    width: 100%;
  }
}

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

  .coaches-title {
    font-size: 20px;
  }
}
