/* ==========================================================================
   Clubs & Activities (beyond-academics.html, #clubs only).
   Six pastel club tiles on the left; the selected club's detail card on the
   right. Clicking or tapping a tile (or pressing Enter / Space) updates the card.
   "discover a passion." uses index.html's orange .hp-script. The divider line
   after the kicker is removed.
   ========================================================================== */

#clubs.clubs-sec {
  position: relative;
  background: #f8f6f1;
  overflow-x: clip;
}

#clubs .kicker::before {
  content: "";
  display: inline-block;
  width: 22px;
  height: 1.5px;
  margin-right: 12px;
  vertical-align: middle;
  background: var(--hp-orange);
}

#clubs .kicker::after {
  content: none;
  display: none;
}

#clubs .cl-head {
  text-align: center;
  max-width: 880px;
  margin: 0 auto 56px;
}

#clubs .cl-head .kicker {
  display: inline-block;
  font-family: var(--hp-nav);
  font-size: 13px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--hp-orange);
  margin-bottom: 16px;
}

#clubs .cl-head .h2 {
  font-family: var(--hp-serif);
  font-size: clamp(34px, 3.8vw, 52px);
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: -.01em;
  color: var(--hp-navy);
  margin: 0;
  text-wrap: balance;
}

#clubs .cl-head .hp-script {
  font-size: 1.1em;
  letter-spacing: 0;
  white-space: normal;
}

#clubs .cl-head .copy-18 {
  font-size: 17px;
  line-height: 1.6;
  color: var(--hp-ink);
  max-width: 760px;
  margin: 18px auto 0;
}

/* ---------- two columns: tiles + detail ---------- */
#clubs .cl-wrap {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
  gap: clamp(28px, 3.5vw, 48px);
  align-items: stretch;
}

#clubs .cl-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

#clubs .cl-grid > li {
  display: flex;
}

#clubs .cl-tile {
  position: relative;
  width: 100%;
  min-height: 150px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-end;
  gap: 4px;
  padding: 22px 20px 20px;
  border: 1.5px solid transparent;
  border-radius: 20px;
  background: var(--tile, #eef4ea);
  text-align: left;
  font: inherit;
  color: var(--hp-navy);
  cursor: pointer;
  transition: transform .35s cubic-bezier(.2, .8, .2, 1), border-color .3s ease, box-shadow .35s ease;
}

#clubs .cl-tile:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 28px rgba(14, 42, 71, .08);
}

#clubs .cl-tile:focus-visible {
  outline: 2px solid var(--hp-orange);
  outline-offset: 3px;
}

#clubs .cl-tile[aria-pressed="true"] {
  border-color: var(--hp-navy);
  box-shadow: 0 16px 32px rgba(14, 42, 71, .12);
}

#clubs .cl-ic {
  position: absolute;
  top: 18px;
  left: 18px;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 4px 12px rgba(14, 42, 71, .06);
  transition: transform .35s cubic-bezier(.2, .8, .2, 1);
}

#clubs .cl-ic svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: var(--hp-navy);
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

#clubs .cl-tile:hover .cl-ic {
  transform: rotate(-6deg) scale(1.06);
}

#clubs .cl-name {
  font-family: var(--hp-nav);
  font-size: 17px;
  font-weight: 600;
  line-height: 1.25;
  color: var(--hp-navy);
}

#clubs .cl-sub {
  font-family: var(--hp-sans);
  font-size: 13px;
  line-height: 1.4;
  color: var(--hp-ink);
  opacity: .85;
}

/* tile colours (pastel, as in the design) */
#clubs .t-green  { --tile: #e9f4e6; }
#clubs .t-blue   { --tile: #e7f0fb; }
#clubs .t-peach  { --tile: #fdf0e3; }
#clubs .t-pink   { --tile: #fbe8ef; }
#clubs .t-mint   { --tile: #e6f5ee; }
#clubs .t-yellow { --tile: #fdf6dc; }

/* ---------- detail card ---------- */
#clubs .cl-detail {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: 30px 30px 26px;
  background: #fff;
  border: 1px solid #e8e4da;
  border-radius: 24px;
  box-shadow: 0 18px 40px rgba(14, 42, 71, .07);
  transition: opacity .35s ease;
}

#clubs .cl-detail.is-swapping {
  opacity: .35;
}

#clubs .cl-detail-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
}

#clubs .cl-cat {
  margin: 0 0 6px;
  font-family: var(--hp-nav);
  font-size: 12px;
  letter-spacing: .14em;
  color: var(--hp-orange);
}

#clubs .cl-title {
  margin: 0;
  font-family: var(--hp-serif);
  font-size: 30px;
  font-weight: 600;
  line-height: 1.1;
  color: var(--hp-navy);
}

#clubs .cl-bubble {
  flex: 0 0 auto;
  padding: 6px 12px;
  border-radius: 999px;
  background: #fdf0e7;
  font-family: var(--hp-nav);
  font-size: 13px;
  color: var(--hp-navy);
  white-space: nowrap;
}

#clubs .cl-bubble b {
  color: var(--hp-orange);
  font-weight: 600;
}

#clubs .cl-mascot {
  position: absolute;
  top: 74px;
  right: 22px;
  width: 52px;
  height: auto;
  pointer-events: none;
}

#clubs .cl-desc {
  margin: 0;
  font-family: var(--hp-sans);
  font-size: 16px;
  line-height: 1.65;
  color: var(--hp-ink);
  padding-right: 56px;
}

#clubs .cl-focus {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 14px 18px;
  border: 1px solid #e8e4da;
  border-radius: 14px;
  background: #faf8f3;
  font-family: var(--hp-nav);
  font-size: 13px;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--hp-ink);
}

#clubs .cl-focus b {
  font-weight: 600;
  letter-spacing: 0;
  text-transform: none;
  font-size: 15px;
  color: var(--hp-blue);
}

#clubs .cl-btns {
  margin-top: 4px;
}

/* medium-size button: index.html pill styling, reduced height and padding */
#clubs .cl-pill {
  min-height: 46px;
  padding: 0 22px;
  font-size: 15px;
}

/* ---------- tablet ---------- */
@media (max-width: 1024px) {
  #clubs .cl-wrap {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* ---------- phone ---------- */
@media (max-width: 640px) {
  #clubs .cl-head {
    margin-bottom: 36px;
  }
  #clubs .cl-head .h2 {
    font-size: clamp(30px, 8.6vw, 38px);
  }
  #clubs .cl-head .hp-script {
    font-size: 1.05em;
  }
  #clubs .cl-head .copy-18 {
    font-size: 16px;
  }
  #clubs .cl-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }
  #clubs .cl-tile {
    min-height: 130px;
    padding: 18px 14px 16px;
    border-radius: 18px;
  }
  #clubs .cl-ic {
    top: 14px;
    left: 14px;
    width: 34px;
    height: 34px;
  }
  #clubs .cl-name {
    font-size: 15px;
  }
  #clubs .cl-sub {
    font-size: 12px;
  }
  #clubs .cl-detail {
    padding: 24px 20px 22px;
    border-radius: 20px;
  }
  #clubs .cl-title {
    font-size: 26px;
  }
  #clubs .cl-mascot {
    top: 62px;
    right: 16px;
    width: 44px;
  }
  #clubs .cl-desc {
    padding-right: 0;
    font-size: 15px;
  }
  #clubs .cl-btns .hp-pill {
    width: 100%;
    min-height: 52px;
    font-size: 16px;
    padding: 0 20px;
  }
  @media (prefers-reduced-motion: reduce) {
  #clubs .cl-tile,
  #clubs .cl-ic,
  #clubs .cl-detail {
    transition: none;
  }
}
