/* ==========================================================================
   Page: Group Programs (Figma node 242:2332)
   ========================================================================== */

.gp-page {
  background-color: var(--color-header-bg, #f8f7f3);
  color: var(--color-text-dark, #151515);
  overflow-x: hidden;
}

/* --------------------------------------------------------------------------
   1. Hero Section
   -------------------------------------------------------------------------- */
.gp-hero {
  padding-top: 56px;
  padding-bottom: 48px;
  position: relative;
}

.gp-hero .section-tag {
  margin-bottom: 24px;
}

.gp-hero__grid {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: clamp(40px, 5vw, 80px);
  align-items: center;
}

.gp-hero__content {
  display: flex;
  flex-direction: column;
}

.gp-hero__title {
  margin: 0 0 24px 0;
  display: flex;
  flex-direction: column;
}

.gp-hero__title-bold {
  font-family: var(--font-family-base, 'Inter Tight', sans-serif);
  font-weight: 900;
  font-size: clamp(38px, 5.5vw, 76px);
  line-height: 1.04;
  letter-spacing: -0.03em;
  color: #151515;
}

.gp-hero__title-italic {
  font-family: var(--font-family-serif, 'Playfair Display', Georgia, serif);
  font-weight: 400;
  font-style: normal;
  font-size: clamp(36px, 5vw, 72px);
  line-height: 1.06;
  letter-spacing: -0.015em;
  color: rgba(16, 13, 9, 0.64);
  margin: 4px 0;
}

.gp-hero__desc {
  font-family: var(--font-family-base, 'Inter Tight', sans-serif);
  font-size: clamp(15px, 1.2vw, 18px);
  font-weight: 400;
  line-height: 1.55;
  color: #615D57;
  max-width: 610px;
  margin-bottom: 32px;
}

.gp-hero__actions {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

/* Hero Media Card */
.gp-hero-card {
  position: relative;
  width: 100%;
  height: 580px;
  border-radius: 36px;
  overflow: hidden;
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.08);
  background-color: #EDEBE5;
}

.gp-hero-card__bg {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 20%;
  display: block;
}

.gp-hero-card__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(20, 17, 13, 0) 50%, rgba(20, 17, 13, 0.65) 100%);
}

.gp-hero-card__badges {
  position: absolute;
  bottom: 24px;
  left: 24px;
  right: 24px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  z-index: 2;
}

.gp-badge {
  border-radius: 28px;
  padding: 20px 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  backdrop-filter: blur(12px);
}

.gp-badge--white {
  background: rgba(255, 255, 255, 0.95);
  color: #151515;
}

.gp-badge--red {
  background: #E21840;
  color: #FFFFFF;
}

.gp-badge__tag {
  font-family: var(--font-family-mono, 'JetBrains Mono', monospace);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 8px;
  opacity: 0.8;
  display: flex;
  align-items: center;
  gap: 6px;
}

.gp-badge__title {
  font-family: var(--font-family-base, 'Inter Tight', sans-serif);
  font-size: 24px;
  font-weight: 700;
  line-height: 1.2;
  margin: 0 0 4px 0;
}

.gp-badge__sub {
  font-family: var(--font-family-base, 'Inter Tight', sans-serif);
  font-size: 14px;
  line-height: 1.3;
  opacity: 0.85;
}

/* --------------------------------------------------------------------------
   2. Numbers Section (Stats Bar)
   -------------------------------------------------------------------------- */
.gp-numbers {
  padding: 40px 0 60px;
}

.gp-stats-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 24px;
  padding: 0 10px;
}

/* --------------------------------------------------------------------------
   3. Features / Advantages Section
   -------------------------------------------------------------------------- */
.gp-features-section {
  padding: 60px 0 80px;
}

.gp-features-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-top: 48px;
}

.gp-feature-card {
  background: #FFFFFF;
  border-radius: 32px;
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  min-height: 260px;
  border: none;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  position: relative;
}

.gp-feature-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 32px rgba(0, 0, 0, 0.06);
}

.gp-feature-card__icon-wrap {
  width: 63px;
  height: 58px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  margin-bottom: 24px;
}

.gp-feature-card__icon-svg {
  width: 63px;
  height: 58px;
  display: block;
}

.gp-feature-card__title {
  font-family: var(--font-family-base, 'Inter Tight', sans-serif);
  font-size: 20px;
  font-weight: 700;
  line-height: 1.25;
  color: #151515;
  margin: 0 0 12px 0;
  letter-spacing: -0.02em;
}

.gp-feature-card__desc {
  font-family: var(--font-family-base, 'Inter Tight', sans-serif);
  font-size: 14px;
  line-height: 1.5;
  color: #615D57;
  margin: 0;
}

/* --------------------------------------------------------------------------
   4. Categories Section (8 Direction Cards)
   -------------------------------------------------------------------------- */
.gp-categories-section {
  padding: 80px 0 96px;
}

.gp-categories-section .section-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 32px;
}

.gp-categories-section .section-header__left {
  max-width: none;
  flex-shrink: 0;
}

.gp-categories-section .section-title {
  white-space: nowrap;
  letter-spacing: -0.02em;
}

.gp-categories-section .section-desc-inline {
  max-width: 480px;
  text-align: right;
  font-family: var(--font-family-base, 'Inter Tight', sans-serif);
  font-size: 15px;
  line-height: 1.5;
  color: #615D57;
  margin: 0;
}

.gp-categories-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-top: 48px;
}

.gp-cat-card {
  background: #FFFFFF;
  border-radius: 32px;
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border: 1px solid #EAE8E2;
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.35s ease, background-color 0.3s ease, border-color 0.3s ease, color 0.3s ease;
  min-height: 390px;
  cursor: pointer;
}

.gp-cat-card:hover {
  transform: translateY(-6px);
  background: #151515;
  border-color: #151515;
  color: #FFFFFF;
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.22);
}

.gp-cat-card__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
}

.gp-cat-card__icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background-color: #EDEBE5;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  overflow: hidden;
  transition: background-color 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.gp-cat-card__icon img,
.gp-cat-card__icon svg {
  width: 44px;
  height: 44px;
  display: block;
  transition: filter 0.3s cubic-bezier(0.16, 1, 0.3, 1), transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.gp-cat-card:hover .gp-cat-card__icon {
  background-color: rgba(255, 255, 255, 0.2);
}

.gp-cat-card:hover .gp-cat-card__icon img,
.gp-cat-card:hover .gp-cat-card__icon svg {
  filter: brightness(0) invert(1);
  transform: scale(1.02);
}

.gp-cat-card__count {
  font-family: var(--font-family-mono, 'JetBrains Mono', monospace);
  font-size: 13px;
  font-weight: 500;
  color: #615D57;
  letter-spacing: 2px;
  transition: color 0.3s ease;
}

.gp-cat-card:hover .gp-cat-card__count {
  color: rgba(251, 250, 246, 0.45);
}

.gp-cat-card__title {
  font-family: var(--font-family-base, 'Inter Tight', sans-serif);
  font-size: 26px;
  font-weight: 700;
  line-height: 1.2;
  color: #151515;
  margin: 0 0 20px 0;
  letter-spacing: -0.02em;
  transition: color 0.3s ease;
}

.gp-cat-card:hover .gp-cat-card__title {
  color: #FFFFFF;
}

.gp-cat-card__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 24px;
}

.gp-cat-tag {
  font-family: var(--font-family-mono, 'JetBrains Mono', monospace);
  font-size: 13px;
  font-weight: 400;
  color: #151515;
  background: #F8F7F3;
  border: 1px solid #D9D7D2;
  padding: 5px 12px;
  border-radius: 9999px;
  transition: all 0.25s ease;
}

.gp-cat-card:hover .gp-cat-tag {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.18);
  color: rgba(251, 250, 246, 0.85);
}

.gp-cat-card__footer {
  margin-top: auto;
  padding-top: 16px;
  border-top: 1px solid #F0EFEA;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: border-color 0.3s ease;
}

.gp-cat-card:hover .gp-cat-card__footer {
  border-top-color: rgba(255, 255, 255, 0.12);
}

.gp-cat-card__link {
  font-family: var(--font-family-mono, 'JetBrains Mono', monospace);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: #615D57;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  transition: color 0.25s ease;
}

.gp-cat-card__link svg,
.gp-cat-card__link img {
  transition: transform 0.25s ease, filter 0.25s ease;
}

.gp-cat-card:hover .gp-cat-card__link {
  color: #E21840;
}

.gp-cat-card:hover .gp-cat-card__link svg,
.gp-cat-card:hover .gp-cat-card__link img {
  transform: translate(3px, -3px);
}



/* --------------------------------------------------------------------------
   5. Trainers Carousel Header Buttons
   -------------------------------------------------------------------------- */
.trainers-header-nav {
  display: flex;
  align-items: center;
  gap: 8px;
}

.trainers-nav-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid #EAE8E2;
  background: #FFFFFF;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
  color: #151515;
}

.trainers-nav-btn:hover {
  background: #151515;
  color: #FFFFFF;
  border-color: #151515;
}

.trainers-nav-btn--active {
  background: #151515;
  color: #FFFFFF;
  border-color: #151515;
}

/* --------------------------------------------------------------------------
   Responsive Breakpoints
   -------------------------------------------------------------------------- */
@media (max-width: 1100px) {
  .gp-hero__grid {
    grid-template-columns: 1fr;
  }
  .gp-features-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .gp-categories-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .gp-stats-grid {
    grid-template-columns: repeat(3, 1fr);
    row-gap: 32px;
  }
}

@media (max-width: 680px) {
  .gp-hero {
    padding-top: 32px;
    padding-bottom: 32px;
  }
  .gp-hero__actions {
    flex-direction: column;
    align-items: stretch;
    width: 100%;
  }
  .gp-hero__actions .btn-pill-primary,
  .gp-hero__actions .btn-pill-outline {
    width: 100%;
    justify-content: center;
  }
  .gp-features-grid {
    grid-template-columns: 1fr;
    margin-top: 32px;
  }
  .gp-categories-grid {
    grid-template-columns: 1fr;
    margin-top: 32px;
  }
  .gp-numbers {
    padding: 24px 0 40px;
  }
  .gp-stats-grid {
    grid-template-columns: 1fr 1fr;
    gap: 24px 16px;
    padding: 0;
  }
  .gp-hero-card__badges {
    grid-template-columns: 1fr;
    left: 16px;
    right: 16px;
    bottom: 16px;
    gap: 10px;
  }
  .gp-badge {
    padding: 16px 20px;
    border-radius: 20px;
  }
  .gp-badge__title {
    font-size: 20px;
  }
  .gp-hero-card {
    height: 420px;
    border-radius: 28px;
  }
  .gp-cat-card {
    min-height: auto;
    padding: 24px 20px;
    border-radius: 24px;
  }
}
