.group-page {
  min-height: calc(100vh - var(--header-height));
  color: var(--text);
  background: #f7faff;
}

.group-hero {
  position: relative;
  overflow: hidden;
  padding: clamp(58px, 8vw, 96px) 24px clamp(64px, 9vw, 108px);
  color: #fff;
  background:
    linear-gradient(115deg, rgba(7, 44, 125, .98), rgba(18, 105, 189, .86) 58%, rgba(42, 165, 219, .76)),
    url('../assets/jeju-coast.jpg') center 56% / cover;
}

.group-hero::after {
  position: absolute;
  right: -90px;
  bottom: -170px;
  width: 420px;
  height: 420px;
  border: 1px solid rgba(255, 255, 255, .15);
  border-radius: 50%;
  box-shadow: 0 0 0 34px rgba(255, 255, 255, .045), 0 0 0 68px rgba(255, 255, 255, .035);
  content: '';
}

.group-container {
  width: min(1120px, 100%);
  margin: 0 auto;
}

.group-hero-inner {
  position: relative;
  z-index: 1;
  max-width: 740px;
}

.group-eyebrow {
  margin: 0 0 14px;
  color: #bfe5ff;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .16em;
}

.group-hero h1 {
  margin: 0;
  font-size: clamp(30px, 4.2vw, 52px);
  line-height: 1.25;
  letter-spacing: -.065em;
}

.group-hero h1 strong {
  color: #fff;
  font-weight: 800;
}

.group-hero-copy {
  max-width: 620px;
  margin: 18px 0 0;
  color: #e8f5ff;
  font-size: clamp(15px, 1.7vw, 19px);
  line-height: 1.75;
  letter-spacing: -.035em;
}

.group-shortcuts {
  padding: clamp(52px, 7vw, 84px) 24px clamp(68px, 9vw, 112px);
}

.group-section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 28px;
}

.group-section-heading h2 {
  margin: 0;
  color: var(--text);
  font-size: clamp(24px, 3.2vw, 36px);
  line-height: 1.3;
  letter-spacing: -.065em;
}

.group-section-heading p {
  max-width: 390px;
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.65;
  text-align: right;
}

.group-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 16px;
}

.group-card {
  position: relative;
  display: flex;
  min-height: 256px;
  grid-column: span 2;
  flex-direction: column;
  padding: 26px 24px 24px;
  overflow: hidden;
  border: 1px solid #dfebf7;
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 10px 28px rgba(26, 78, 128, .08);
  transition: transform .22s ease, border-color .22s ease, box-shadow .22s ease;
}

.group-card--featured {
  grid-column: span 3;
  min-height: 420px;
  padding: 0;
}

.group-card::after {
  position: absolute;
  right: -38px;
  bottom: -60px;
  width: 150px;
  height: 150px;
  border: 1px solid rgba(18, 57, 186, .08);
  border-radius: 50%;
  content: '';
}

.group-card:hover,
.group-card:focus-visible {
  transform: translateY(-5px);
  border-color: #9ec8f1;
  box-shadow: 0 16px 34px rgba(24, 87, 148, .15);
}

.group-card:focus-visible {
  outline: 3px solid #8bc5ff;
  outline-offset: 3px;
}

.group-card--featured::after {
  display: none;
}

.group-card-image {
  position: relative;
  height: 205px;
  flex: none;
  overflow: hidden;
  background: #dbeeff;
}

.group-card-image::after {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(8, 43, 100, 0) 38%, rgba(8, 43, 100, .35));
  content: '';
  pointer-events: none;
}

.group-card-image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .45s ease;
}

.group-card--featured:nth-child(1) .group-card-image img {
  object-position: center 62%;
}

.group-card--featured:nth-child(2) .group-card-image img {
  object-position: center 48%;
}

.group-card-badge {
  position: absolute;
  z-index: 1;
  right: 18px;
  bottom: 16px;
  padding: 6px 10px;
  border: 1px solid rgba(255, 255, 255, .55);
  border-radius: 999px;
  color: #fff;
  background: rgba(10, 73, 145, .8);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: -.02em;
}

.group-card-body {
  display: flex;
  min-height: 0;
  flex: 1;
  flex-direction: column;
  padding: 24px 25px 23px;
}

.group-card--featured h3 {
  font-size: 26px;
}

.group-card--featured:hover .group-card-image img,
.group-card--featured:focus-visible .group-card-image img {
  transform: scale(1.06);
}

.group-card-icon {
  display: grid;
  width: 64px;
  height: 64px;
  margin-bottom: 22px;
  place-items: center;
  border-radius: 18px;
  color: var(--brand-blue);
  background: #edf5ff;
}

.group-card-icon svg {
  width: 36px;
  height: 36px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.55;
}

.group-card:nth-child(2) .group-card-icon {
  color: #1679c8;
  background: #e9f8ff;
}

.group-card:nth-child(3) .group-card-icon {
  color: #2c63b6;
  background: #eef2ff;
}

.group-card:nth-child(4) .group-card-icon {
  color: #1d58a9;
  background: #eaf3ff;
}

.group-card:nth-child(5) .group-card-icon {
  color: #0d73ae;
  background: #e6f7ff;
}

.group-card h3 {
  position: relative;
  z-index: 1;
  margin: 0;
  color: var(--text);
  font-size: 21px;
  letter-spacing: -.055em;
}

.group-card p {
  position: relative;
  z-index: 1;
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.7;
  letter-spacing: -.035em;
}

.group-card-link {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: auto;
  padding-top: 22px;
  color: var(--brand-blue);
  font-size: 13px;
  font-weight: 700;
}

.group-card-link::after {
  content: '��';
  font-size: 18px;
  line-height: 1;
  transition: transform .2s ease;
}

.group-card:hover .group-card-link::after,
.group-card:focus-visible .group-card-link::after {
  transform: translateX(4px);
}

.group-contact {
  margin-top: 44px;
  padding: 27px clamp(22px, 4vw, 42px);
  border-radius: 18px;
  color: #fff;
  background: linear-gradient(105deg, #0a4f9b, #1d8bc9);
  box-shadow: 0 12px 28px rgba(20, 91, 155, .16);
}

.group-contact-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.group-contact strong {
  display: block;
  font-size: 18px;
  letter-spacing: -.045em;
}

.group-contact p {
  margin: 5px 0 0;
  color: #dcefff;
  font-size: 13px;
}

.group-contact a {
  display: inline-flex;
  min-width: 150px;
  height: 42px;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, .72);
  border-radius: 8px;
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  transition: background-color .2s ease, color .2s ease;
}

.group-contact a:hover,
.group-contact a:focus-visible {
  color: var(--brand-blue);
  background: #fff;
}

@media (max-width: 760px) {
  .group-section-heading {
    display: block;
  }

  .group-section-heading p {
    max-width: none;
    margin-top: 12px;
    text-align: left;
  }

  .group-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }

  .group-card,
  .group-card:nth-child(4),
  .group-card:nth-child(5) {
    grid-column: span 1;
  }

  .group-card--featured {
    grid-column: span 2;
  }

  .group-card {
    min-height: 236px;
    padding: 22px 18px 20px;
  }

  .group-card--featured {
    min-height: 370px;
    padding: 0;
  }

  .group-card-image {
    height: 170px;
  }

  .group-card-body {
    padding: 20px 20px 20px;
  }

  .group-card--featured h3 {
    font-size: 22px;
  }

  .group-card-icon {
    width: 56px;
    height: 56px;
    margin-bottom: 18px;
    border-radius: 16px;
  }

  .group-card-icon svg {
    width: 32px;
    height: 32px;
  }

  .group-card h3 {
    font-size: 18px;
  }

  .group-card p {
    font-size: 13px;
  }

  .group-contact-inner {
    display: block;
  }

  .group-contact a {
    width: 100%;
    margin-top: 18px;
  }
}

@media (max-width: 430px) {
  .group-hero,
  .group-shortcuts {
    padding-right: 16px;
    padding-left: 16px;
  }

  .group-hero h1 {
    font-size: 29px;
  }

  .group-hero-copy {
    font-size: 14px;
  }

  .group-grid {
    grid-template-columns: 1fr;
  }

  .group-card,
  .group-card:nth-child(4),
  .group-card:nth-child(5) {
    grid-column: auto;
    min-height: 214px;
  }

  .group-card--featured {
    min-height: 340px;
    padding: 0;
  }

  .group-card-image {
    height: 150px;
  }

  .group-card-body {
    padding: 18px 18px 18px;
  }
}