/* ========================================
   教練頁共用
======================================== */

.coaches-eyebrow {
  margin: 0 0 12px;

  color: var(--color-yellow);
  font-size: 0.82rem;
  font-weight: 900;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}


/* ========================================
   教練列表 Hero
======================================== */

.coaches-hero {
  position: relative;

  min-height: 430px;
  overflow: hidden;

  color: var(--color-white);

  background:
    linear-gradient(
      90deg,
      rgba(3, 35, 29, 0.95) 0%,
      rgba(3, 35, 29, 0.82) 48%,
      rgba(3, 35, 29, 0.48) 100%
    ),
    url("../assets/images/court/court1.jpg")
    center / cover no-repeat;
}

.coaches-hero-overlay {
  position: absolute;
  inset: 0;

  background:
    linear-gradient(
      180deg,
      rgba(0, 0, 0, 0.04),
      rgba(0, 0, 0, 0.24)
    );
}

.coaches-hero-container {
  position: relative;
  z-index: 1;

  min-height: 430px;

  display: flex;
  align-items: center;
}

.coaches-hero-content {
  max-width: 700px;
  padding: 70px 0;
}

.coaches-hero-content h1 {
  margin: 0;

  color: var(--color-white);
  font-size: clamp(3rem, 7vw, 5.5rem);
  font-weight: 950;
  letter-spacing: -0.04em;
  line-height: 1;
}

.coaches-hero-content > p:last-child {
  max-width: 620px;
  margin: 28px 0 0;

  color: rgba(255, 255, 255, 0.88);
  font-size: clamp(1rem, 2vw, 1.2rem);
  font-weight: 600;
  line-height: 1.9;
}


/* ========================================
   教練列表
======================================== */

.coaches-list-section {
  padding: 96px 0;

  background:
    radial-gradient(
      circle at 10% 0,
      rgba(255, 201, 40, 0.08),
      transparent 24%
    ),
    var(--color-cream);
}

.coaches-list-heading {
  max-width: 720px;
  margin-bottom: 44px;
}

.coaches-list-heading h2 {
  margin: 0;

  color: var(--color-green-950);
  font-size: clamp(2rem, 4vw, 3.4rem);
  font-weight: 950;
  line-height: 1.15;
}

.coaches-list-heading > p:last-child {
  margin: 18px 0 0;

  color: var(--color-gray-500);
  line-height: 1.8;
}

.coaches-grid {
  display: grid;
  grid-template-columns:
    repeat(3, minmax(0, 1fr));

  gap: 28px;
}


/* ========================================
   教練卡片
======================================== */

.coach-card {
  overflow: hidden;

  background: var(--color-white);
  border: 1px solid rgba(5, 47, 40, 0.1);
  border-radius: 20px;

  box-shadow: var(--shadow-small);

  transition:
    transform var(--transition-normal),
    box-shadow var(--transition-normal),
    border-color var(--transition-normal);
}

.coach-card:hover {
  transform: translateY(-7px);

  border-color: rgba(255, 201, 40, 0.65);
  box-shadow: var(--shadow-medium);
}

.coach-card-image-link {
  display: block;
}

.coach-card-image-wrapper {
  position: relative;

  height: 380px;
  overflow: hidden;

  background:
    linear-gradient(
      135deg,
      #e8e4d9,
      #f8f4ea
    );
}

.coach-card-image {
  display: block;

  width: 100%;
  height: 100%;

  object-fit: cover;
  object-position: center top;

  transition: transform 0.55s ease;
}

.coach-card:hover .coach-card-image {
  transform: scale(1.04);
}

.coach-level {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  padding: 7px 13px;

  color: var(--color-green-950);
  background: var(--color-yellow);
  border-radius: 999px;

  font-size: 0.72rem;
  font-weight: 900;
}

.coach-card-image-wrapper .coach-level {
  position: absolute;
  top: 18px;
  right: 18px;

  box-shadow:
    0 8px 20px rgba(0, 0, 0, 0.16);
}

.coach-card-content {
  padding: 28px;
}

.coach-card-english-name {
  margin: 0 0 7px;

  color: #9a7700;
  font-size: 0.7rem;
  font-weight: 900;
  letter-spacing: 0.18em;
}

.coach-card-name {
  margin: 0;
}

.coach-card-name a {
  color: var(--color-green-950);
  font-size: 1.55rem;
  font-weight: 950;
  line-height: 1.3;

  transition: color var(--transition-fast);
}

.coach-card-name a:hover {
  color: var(--color-orange);
}

.coach-card-title {
  margin: 7px 0 0;

  color: var(--color-green-700);
  font-size: 0.86rem;
  font-weight: 800;
}

.coach-card-summary {
  min-height: 105px;
  margin: 18px 0 20px;

  color: var(--color-gray-500);
  font-size: 0.91rem;
  line-height: 1.8;
}

.coach-card-specialties {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;

  margin-bottom: 25px;
}

.coach-card-specialties span {
  padding: 6px 10px;

  color: var(--color-green-950);
  background: rgba(5, 47, 40, 0.06);
  border-radius: 999px;

  font-size: 0.72rem;
  font-weight: 700;
}

.coach-card-link {
  display: inline-flex;
  align-items: center;
  gap: 9px;

  color: var(--color-green-700);
  font-size: 0.86rem;
  font-weight: 900;

  transition:
    color var(--transition-fast),
    gap var(--transition-fast);
}

.coach-card-link:hover {
  gap: 14px;
  color: var(--color-orange);
}


/* ========================================
   教練詳細 Hero
======================================== */

.coach-detail-hero {
  padding: 48px 0 80px;

  color: var(--color-white);

  background:
    linear-gradient(
      120deg,
      var(--color-green-950),
      var(--color-green-800)
    );
}

.coach-breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 9px;

  margin-bottom: 38px;

  color: rgba(255, 255, 255, 0.65);
  font-size: 0.78rem;
}

.coach-breadcrumb a {
  color: rgba(255, 255, 255, 0.78);
}

.coach-breadcrumb a:hover {
  color: var(--color-yellow);
}

.coach-detail-hero-grid {
  display: grid;
  grid-template-columns:
    minmax(0, 0.9fr)
    minmax(0, 1.1fr);

  align-items: center;
  gap: 70px;
}

.coach-detail-image-wrapper {
  height: 600px;
  overflow: hidden;

  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 201, 40, 0.45);
  border-radius: 20px;

  box-shadow:
    0 25px 60px rgba(0, 0, 0, 0.3);
}

.coach-detail-image-wrapper img {
  display: block;

  width: 100%;
  height: 100%;

  object-fit: cover;
  object-position: center top;
}

.coach-detail-heading .coach-level {
  margin-bottom: 22px;
}

.coach-detail-heading h1 {
  margin: 0;

  color: var(--color-white);
  font-size: clamp(3rem, 6vw, 5.3rem);
  font-weight: 950;
  letter-spacing: -0.04em;
  line-height: 1;
}

.coach-detail-title {
  margin: 18px 0 0;

  color: var(--color-yellow);
  font-size: 1.05rem;
  font-weight: 900;
}

.coach-detail-summary {
  max-width: 620px;
  margin: 24px 0 32px;

  color: rgba(255, 255, 255, 0.79);
  font-size: 1rem;
  line-height: 1.9;
}


/* ========================================
   教練詳細內容
======================================== */

.coach-detail-main {
  padding: 90px 0;

  background:
    radial-gradient(
      circle at 8% 0,
      rgba(255, 201, 40, 0.07),
      transparent 25%
    ),
    var(--color-cream);
}

.coach-detail-layout {
  display: grid;
  grid-template-columns:
    minmax(0, 1fr)
    340px;

  align-items: start;
  gap: 65px;
}

.coach-detail-article {
  display: grid;
  gap: 70px;
}

.coach-content-section h2 {
  margin: 0 0 24px;

  color: var(--color-green-950);
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  font-weight: 950;
}

.coach-description {
  display: grid;
  gap: 18px;
}

.coach-description p {
  margin: 0;

  color: var(--color-gray-700);
  font-size: 1rem;
  line-height: 1.95;
}


/* ========================================
   專長列表
======================================== */

.coach-specialty-list {
  display: grid;
  grid-template-columns:
    repeat(2, minmax(0, 1fr));

  gap: 14px;

  margin: 0;
  padding: 0;

  list-style: none;
}

.coach-specialty-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;

  padding: 17px 18px;

  color: var(--color-green-950);
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(5, 47, 40, 0.09);
  border-radius: 12px;

  font-weight: 700;
  line-height: 1.65;
}

.coach-specialty-list li span {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;

  width: 22px;
  height: 22px;
  margin-top: 2px;

  color: var(--color-green-950);
  background: var(--color-yellow);
  border-radius: 50%;

  font-size: 0.7rem;
  font-weight: 900;
}


/* ========================================
   教練課程費用
======================================== */

.coach-lesson-heading {
  margin-bottom: 28px;
}

.coach-lesson-heading h2 {
  margin-bottom: 12px;
}

.coach-lesson-heading p {
  max-width: 680px;
  margin: 0;

  color: var(--color-gray-500);
  font-size: 0.96rem;
  line-height: 1.8;
}

.coach-lesson-grid {
  display: grid;
  grid-template-columns:
    repeat(4, minmax(0, 1fr));

  gap: 16px;
}

.coach-lesson-card {
  position: relative;

  min-height: 205px;
  padding: 23px;
  overflow: hidden;

  background: var(--color-white);
  border: 1px solid rgba(5, 47, 40, 0.1);
  border-radius: 16px;

  box-shadow: var(--shadow-small);

  transition:
    transform var(--transition-normal),
    border-color var(--transition-normal),
    box-shadow var(--transition-normal);
}

.coach-lesson-card:hover {
  transform: translateY(-5px);

  border-color: rgba(255, 201, 40, 0.72);
  box-shadow: var(--shadow-medium);
}

.coach-lesson-card::after {
  content: "";

  position: absolute;
  right: -28px;
  bottom: -35px;

  width: 90px;
  height: 90px;

  background: rgba(255, 201, 40, 0.1);
  border-radius: 50%;
}

.coach-lesson-card-header {
  position: relative;
  z-index: 1;

  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;

  margin-bottom: 30px;
}

.coach-lesson-people {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  min-width: 45px;
  min-height: 29px;
  padding: 0 10px;

  color: var(--color-green-950);
  background: var(--color-yellow);
  border-radius: 999px;

  font-size: 0.72rem;
  font-weight: 900;
}

.coach-lesson-card h3 {
  margin: 0;

  color: var(--color-green-950);
  font-size: 1.05rem;
  font-weight: 950;
}

.coach-lesson-price {
  position: relative;
  z-index: 1;

  display: grid;
  gap: 5px;
}

.coach-lesson-price strong {
  color: var(--color-green-950);
  font-size: clamp(1.3rem, 2vw, 1.5rem);
  font-weight: 950;
  line-height: 1.2;
}

.coach-lesson-price span {
  color: var(--color-gray-500);
  font-size: 0.72rem;
  font-weight: 700;
}

.coach-lesson-per-person {
  position: relative;
  z-index: 1;

  margin: 20px 0 0;
  padding-top: 15px;

  color: var(--color-green-700);
  border-top: 1px solid var(--color-gray-200);

  font-size: 0.78rem;
  font-weight: 900;
  line-height: 1.5;
}

.coach-lesson-note {
  margin: 22px 0 0;
  padding: 17px 19px;

  color: var(--color-gray-500);
  background: rgba(255, 201, 40, 0.09);
  border-left: 4px solid var(--color-yellow);
  border-radius: 0 9px 9px 0;

  font-size: 0.82rem;
  line-height: 1.75;
}


/* ========================================
   教練側欄
======================================== */

.coach-detail-sidebar {
  position: sticky;
  top: 118px;

  display: grid;
  gap: 20px;
}

.coach-info-card {
  padding: 28px;

  background: var(--color-white);
  border: 1px solid rgba(5, 47, 40, 0.1);
  border-top: 5px solid var(--color-yellow);
  border-radius: 17px;

  box-shadow: var(--shadow-small);
}

.coach-info-card h2 {
  margin: 0 0 18px;

  color: var(--color-green-950);
  font-size: 1.25rem;
  font-weight: 950;
}

.coach-simple-list {
  display: grid;
  gap: 12px;

  margin: 0;
  padding-left: 20px;
}

.coach-simple-list li {
  color: var(--color-gray-700);
  font-size: 0.88rem;
  line-height: 1.7;
}

.coach-simple-list li::marker {
  color: var(--color-yellow);
}

.coach-line-link {
  display: flex;
  align-items: center;
  justify-content: center;

  min-height: 50px;
  padding: 0 20px;

  color: var(--color-green-950);
  background: var(--color-yellow);
  border-radius: 9px;

  font-size: 0.88rem;
  font-weight: 900;

  box-shadow: var(--shadow-small);
}

.coach-line-link:hover {
  transform: translateY(-2px);
}

.coach-back-link {
  display: inline-flex;
  align-items: center;
  gap: 9px;

  color: var(--color-green-700);
  font-size: 0.84rem;
  font-weight: 900;
}

.coach-back-link:hover {
  color: var(--color-orange);
}


/* ========================================
   找不到教練
======================================== */

.coach-not-found {
  min-height: 620px;
  padding: 100px 0;

  background: var(--color-cream);
}

.coach-not-found-card {
  max-width: 650px;
  margin: 0 auto;
  padding: 60px 35px;

  text-align: center;

  background: var(--color-white);
  border: 1px solid rgba(5, 47, 40, 0.1);
  border-radius: 20px;

  box-shadow: var(--shadow-medium);
}

.coach-not-found-card h1 {
  margin: 0;

  color: var(--color-green-950);
  font-size: clamp(2rem, 5vw, 3.4rem);
  font-weight: 950;
}

.coach-not-found-card > p:not(
  .coaches-eyebrow
) {
  margin: 18px 0 28px;

  color: var(--color-gray-500);
  line-height: 1.8;
}


/* ========================================
   平板
======================================== */

@media (max-width: 1100px) {
  .coaches-grid {
    grid-template-columns:
      repeat(2, minmax(0, 1fr));
  }

  .coach-detail-hero-grid {
    gap: 45px;
  }

  .coach-detail-layout {
    grid-template-columns:
      minmax(0, 1fr)
      300px;

    gap: 40px;
  }

  .coach-lesson-grid {
    grid-template-columns: 1fr;
  }

  .coach-lesson-card {
    min-height: auto;
  }
}


/* ========================================
   手機與小平板
======================================== */

@media (max-width: 850px) {
  .coaches-hero,
  .coaches-hero-container {
    min-height: 360px;
  }

  .coaches-list-section {
    padding: 72px 0;
  }

  .coaches-grid {
    grid-template-columns: 1fr;
  }

  .coach-card-summary {
    min-height: auto;
  }

  .coach-detail-hero {
    padding: 38px 0 60px;
  }

  .coach-detail-hero-grid {
    grid-template-columns: 1fr;
  }

  .coach-detail-image-wrapper {
    height: 520px;
  }

  .coach-detail-main {
    padding: 70px 0;
  }

  .coach-detail-layout {
    grid-template-columns: 1fr;
  }

  .coach-detail-sidebar {
    position: static;
  }
}


/* ========================================
   手機
======================================== */

@media (max-width: 560px) {
  .coaches-hero,
  .coaches-hero-container {
    min-height: 320px;
  }

  .coaches-hero-content {
    padding: 55px 0;
  }

  .coaches-hero-content h1 {
    font-size: 3rem;
  }

  .coach-card-image-wrapper {
    height: 340px;
  }

  .coach-card-content {
    padding: 23px 20px;
  }

  .coach-detail-heading h1 {
    font-size: 3rem;
  }

  .coach-detail-image-wrapper {
    height: 400px;
  }

  .coach-detail-main {
    padding: 58px 0;
  }

  .coach-detail-article {
    gap: 56px;
  }

  .coach-specialty-list {
    grid-template-columns: 1fr;
  }

  .coach-info-card {
    padding: 24px 21px;
  }
}