/* stylelint-disable no-descending-specificity, selector-class-pattern */

/* Coaching Page — PC-first; SP overrides below
 * ================================================ */

/* Base
 * ------------------------------------------------ */

:where(.page-coaching) p {
  font-size: clamp(0.75rem, calc(0.6rem + 0.33vw), 0.9rem);
  font-feature-settings: "palt";
}

.page-coaching {
  background: white;
}

/* SP/PC display toggles (coaching uses 751px, not global 960px) */
.page-coaching .pc {
  display: block;
}

.page-coaching .sp {
  display: none;
}

/* Animations (not available in any other loaded CSS)
 * ------------------------------------------------ */

.page-coaching .fadeIn {
  opacity: 0;
  transform: translate(0, 20px);
  transition: all 0.5s ease;
}

.page-coaching .fadeIn.active {
  opacity: 1;
  transform: translate(0, 0);
}

.page-coaching .fadeLeft {
  opacity: 0;
  transform: translate(-20px, 0);
  transition: all 0.5s ease;
}

.page-coaching .fadeLeft.active {
  opacity: 1;
  transform: translate(0, 0);
}

/* First View
 * ------------------------------------------------ */

.coaching-fv {
  position: relative;
  background-color: #f2f2f2;
  padding: 2.5rem 0 3rem;
}

.coaching-fv__slider {
  width: 100%;
  margin-top: 3rem;
}

.coaching-fv .swiper-slide {
  position: relative;
}

.coaching-fv .swiper-slide img {
  width: 100%;
  pointer-events: none;
}

.coaching-fv__overlay {
  position: absolute;
  top: 55%;
  left: 4%;
  z-index: 10;
}

.coaching-fv__overlay span {
  display: block;
  color: #000;
  font-size: clamp(0.6rem, calc(0.41rem + 0.33vw), 0.7rem);
  font-weight: bold;
}

.coaching-fv__overlay p {
  background: linear-gradient(65deg, #152a6d 50%, #f61a3c 100%);
  padding: 0.8rem 1rem;
  color: white;
  font-size: clamp(1.3rem, calc(0.45rem + 1.82vw), 2rem);
  font-weight: 600;
}

/* Section Title (reusable skew component)
 * ------------------------------------------------ */

.coaching-title {
  background: linear-gradient(65deg, #152a6d 50%, #f61a3c 100%);
  padding: 1.5rem;
  transform: skewX(-10deg);
  min-width: 300px;
  width: 100%;
  max-width: min(calc(910 / 1366 * 100vw), 910px);
  margin: 2rem auto 0;
}

.coaching-title p {
  transform: skewX(10deg);
  color: white;
  font-weight: bold;
  font-size: clamp(1.1rem, calc(0.61rem + 0.97vw), 1.4rem);
}

/* Coaching Intro
 * ------------------------------------------------ */

.coaching-intro {
  margin: 3rem;
}

/* Coach Cards
 * ------------------------------------------------ */

.coaching-cards {
  background: linear-gradient(90deg, #152a6d 50%, #f61a3c 100%);
  padding: 2.5rem 0;
}

.coaching-cards__body {
  padding: 1rem 0;
}

.coaching-cards__grid {
  display: flex;
  max-width: 92%;
  margin: auto;
  gap: 1rem;
}

.coaching-cards__item {
  width: calc(50% - 5%);
}

.coaching-card {
  transform: skewX(-10deg);
  background-color: white;
  position: relative;
  height: 130px;
  max-width: 280px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto;
}

.coaching-card__inner {
  transform: skewX(10deg);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 15px;
  width: 100%;
  height: 100%;
}

.coaching-card__number {
  position: absolute;
  top: 5%;
  left: 5%;
  font-size: clamp(1.1rem, calc(0.82rem + 0.65vw), 1.4rem);
  font-family: var(--font-family-en);
}

.coaching-card__icon {
  width: min(calc(80 / 1366 * 100vw), 80px);
}

.coaching-card__label {
  font-weight: 700;
  font-size: clamp(0.9rem, calc(0.75rem + 0.8vw), 1.1rem);
  color: #171c61;
}

.coaching-cards__item-text {
  margin-top: 1rem;
  color: white;
  text-align: center;
  font-weight: 600;
  font-size: clamp(0.9rem, calc(0.72rem + 0.33vw), 1rem);
}

.coaching-cards__description {
  margin: 2rem auto 0;
  text-align: center;
  max-width: 95%;
  color: white;
  font-size: clamp(0.9rem, calc(0.72rem + 0.33vw), 1rem);
  font-weight: 600;
}

/* Challenges variant (coachCard2)
 * ------------------------------------------------ */

.coaching-card__description-text {
  font-size: calc(10 / 375 * 100vw);
  text-align: left;
  line-height: 1.6;
  font-weight: 700;
  color: #171c61;
}

.coaching-cards--challenges .coaching-cards__grid {
  flex-wrap: wrap;
  justify-content: space-around;
}

/* Statement
 * ------------------------------------------------ */

.coaching-statement {
  padding: 2rem 0;
  font-weight: bold;
}

.coaching-statement p {
  max-width: 910px;
  margin: auto;
  text-align: center;
  font-size: clamp(0.9rem, calc(0.72rem + 0.33vw), 1rem);
}

/* Story
 * ------------------------------------------------ */

.coaching-story {
  background: linear-gradient(90deg, #152a6d 50%, #f61a3c 100%);
  color: white;
  padding: 3rem 0 4rem;
}

.coaching-story__body {
  max-width: min(calc(1200 / 1366 * 100vw), 1200px);
  margin: auto;
  display: flex;
  align-items: center;
  justify-content: center;
}

.coaching-story__image {
  margin-top: 2rem;
  width: min(calc(600 / 1366 * 100vw), 600px);
  max-width: 50%;
}

.coaching-story__image img {
  width: 100%;
}

.coaching-story__text {
  max-width: 95%;
  margin: auto;
  text-align: center;
  font-size: clamp(0.9rem, calc(0.24rem + 1.36vw), 1.4rem);
  line-height: 2.4;
  font-weight: bold;
}

/* Resource
 * ------------------------------------------------ */

.coaching-resource {
  padding: 2.5rem 0 1rem;
}

.coaching-resource__subtitle {
  margin-top: 2rem;
  text-align: center;
  font-size: clamp(0.9rem, calc(0.24rem + 1.36vw), 1.4rem);
  max-width: 910px;
  margin-left: auto;
  margin-right: auto;
}

/* Goal
 * ------------------------------------------------ */

.coaching-goal {
  background: linear-gradient(90deg, #152a6d 50%, #f61a3c 100%);
  color: white;
  padding: 2.5rem 0;
}

.coaching-goal__intro {
  display: flex;
  justify-content: space-between;
  position: relative;
  max-width: min(95%, 800px);
  margin: auto;
}

.coaching-goal__intro::after {
  position: absolute;
  top: 20%;
  left: 50%;
  transform: translateX(-50%);
  content: url("../../images/coaching/arrow_dashed.svg");
  height: 15px;
  width: calc(100% / 3 - 10%);
}

.coaching-goal__item {
  width: 44%;
  max-width: 284px;
  text-align: center;
}

.coaching-goal__item img {
  width: 100%;
}

.coaching-goal__item-title {
  margin: 1rem auto 0;
  font-size: clamp(0.9rem, calc(0.86rem + 0.16vw), 1rem);
  font-weight: 700;
}

.coaching-goal__label {
  background-color: white;
  color: #171c61;
  text-align: center;
  padding: 0.3rem 0.6rem;
  border-radius: 5px;
  font-size: clamp(0.8rem, calc(0.1rem + 1.53vw), 1.4rem);
  font-weight: bold;
  display: flex;
  width: min(calc(225 / 1366 * 100vw), 225px);
  height: 50px;
  justify-content: center;
  align-items: center;
  margin: 2rem auto 0;
}

.coaching-goal__content {
  margin: 3rem auto 0;
  max-width: 95%;
  text-align: center;
}

.coaching-goal__divider {
  border-bottom: white 3px solid;
  max-width: 95%;
  margin: auto;
}

.coaching-goal__text {
  padding-top: 3rem;
  max-width: 95%;
  margin: auto;
  line-height: 2;
  font-size: clamp(0.9rem, calc(0.72rem + 0.33vw), 1rem);
  font-weight: 600;
  text-align: center;
}

.coaching-goal__cta {
  margin-top: 3rem;
  font-size: clamp(1.3rem, calc(0.34rem + 1.95vw), 2rem);
  line-height: 1.6;
  font-weight: 600;
}

/* Responsive (SP: <= 750px)
 * ------------------------------------------------ */

@media screen and (width <= 750px) {
  /* SP/PC display toggles */
  .page-coaching .pc {
    display: none;
  }

  .page-coaching .sp {
    display: block;
  }

  /* First View */
  .coaching-fv__overlay {
    left: 0;
  }

  .coaching-fv__overlay span {
    padding-left: 6vw;
  }

  .coaching-fv__overlay p {
    padding: 0.6rem 1rem 0.6rem 6vw;
  }

  .coaching-fv__heading:nth-of-type(1) {
    width: min(calc(320 / 750 * 100vw), 320px);
    min-width: fit-content;
  }

  .coaching-fv__heading:nth-of-type(2) {
    width: min(calc(370 / 750 * 100vw), 370px);
    min-width: fit-content;
  }

  /* Section Title */
  .coaching-title {
    padding: 0.4rem 0.8rem;
    min-width: auto;
    width: 95%;
    max-width: none;
    margin-top: 1.5rem;
  }

  /* Coaching Intro */
  .coaching-intro {
    margin: 0 0 2rem;
  }

  /* Coach Cards */
  .coaching-cards__grid {
    display: block;
    max-width: 100%;
  }

  .coaching-cards__item {
    width: auto;
    margin-top: 3rem;
  }

  .coaching-cards__item:first-of-type {
    margin-top: 0;
  }

  .coaching-card {
    height: auto;
    padding: calc(15 / 375 * 100vw) calc(5 / 375 * 100vw);
    width: calc(330 / 375 * 100vw);
    max-width: 100%;
    box-shadow: 10px 10px 0 #171c61;
  }

  .coaching-card__inner {
    padding-left: 3rem;
    justify-content: flex-start;
  }

  .coaching-card__icon {
    width: min(calc(68 / 750 * 100vw), 68px);
  }

  /* Statement */
  .coaching-statement {
    padding: 2.5rem 0;
  }

  .coaching-statement p {
    max-width: 100%;
    font-weight: 600;
  }

  /* Story */
  .coaching-story__body {
    max-width: 95%;
    display: block;
  }

  .coaching-story__image {
    margin-left: -2.6%;
    width: 100%;
    max-width: 100%;
  }

  .coaching-story__text {
    margin: 2rem auto 0;
    font-weight: 600;
    line-height: inherit;
  }

  /* Resource */
  .coaching-resource {
    padding-bottom: 2.5rem;
  }

  .coaching-resource__subtitle {
    margin-top: 1.5rem;
    max-width: none;
  }

  /* Goal */
  .coaching-goal__intro::after {
    content: url("../../images/recruitment/coaching-pit/sp_goal_arrow.svg");
    top: 15%;
    width: calc(100% / 3 - 23%);
  }

  .coaching-goal__item {
    max-width: none;
  }

  .coaching-goal__label {
    width: min(calc(245 / 750 * 100vw), 145px);
    height: 30px;
    margin: 1rem auto 0;
  }

  .coaching-goal__divider {
    display: none;
  }

  .coaching-goal__text {
    text-align: left;
  }
}
