/* =============================================
   EXTRACURRICULAR PAGE — uses home.css tokens
============================================= */

/* =============================================
   PAGE HEADER
============================================= */
.xc-header {
  min-height: 65vh;
  background: linear-gradient(140deg, #e8f9fd 0%, #fff0d6 50%, #fde8fa 100%);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 9rem 0 0;
}

.xc-header::before {
  content: '';
  position: absolute;
  top: -10rem;
  left: -8rem;
  width: 45vw;
  height: 45vw;
  background: radial-gradient(circle, #3dbde8 0%, transparent 65%);
  border-radius: 50%;
  opacity: 0.14;
  pointer-events: none;
}

.xc-header::after {
  content: '';
  position: absolute;
  bottom: -6rem;
  right: -6rem;
  width: 30vw;
  height: 30vw;
  background: radial-gradient(circle, #ffc842 0%, transparent 70%);
  border-radius: 50%;
  opacity: 0.25;
  pointer-events: none;
}

.xc-header__dots {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}

.xc-dot {
  position: absolute;
  border-radius: 50%;
  opacity: 0.55;
  animation: floatDot 6s ease-in-out infinite;
}

.xc-header__content {
  position: relative;
  z-index: 2;
  max-width: 680px;
  padding-bottom: 4rem;
  animation: slideUp 0.7s cubic-bezier(0.16, 1, 0.3, 1) forwards 0.3s;
  opacity: 0;
}

.xc-header__title {
  font-size: clamp(2.8rem, 5.5vw, 5.5rem) !important;
  margin-bottom: 1rem !important;
}

.xc-header__desc {
  font-family: var(--body-font);
  font-size: 1.35rem;
  color: var(--text-soft);
  line-height: 1.8;
  margin-bottom: 1.75rem;
}

.xc-header__badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.xc-badge {
  font-family: var(--body-font);
  font-weight: 700;
  font-size: 1rem;
  padding: 0.45rem 1.2rem;
  border-radius: 50px;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.xc-badge--teal   { background: var(--soft-tel); color: var(--teal-dk); }
.xc-badge--blue   { background: #e0f7fa; color: #006064; }
.xc-badge--purple { background: #f3e8ff; color: var(--purple); }

/* =============================================
   STATS BAR
============================================= */
.xc-stats {
  background: #fff;
  padding: 3rem 0;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

.xc-stats__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}

.xc-stat {
  text-align: center;
  padding: 1.5rem 1rem;
  background: var(--bg);
  border-radius: var(--radius-lg);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
  transition: transform 0.25s var(--ease-out), box-shadow 0.25s;
}

@media (hover: hover) and (pointer: fine) {
  .xc-stat:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.09);
  }
}

.xc-stat__number {
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(2.2rem, 4vw, 3.2rem);
  line-height: 1;
}

.xc-stat__label {
  font-family: var(--body-font);
  font-weight: 600;
  font-size: 1rem;
  color: var(--text-soft);
}

/* =============================================
   INTRO SECTION
============================================= */
.xc-intro {
  background: var(--bg);
  padding: 5.5rem 0 5rem;
}

.xc-intro__header {
  max-width: 680px;
  margin-bottom: 3rem;
}

.xc-intro__sub {
  font-family: var(--body-font);
  font-size: 1.25rem;
  color: var(--text-soft);
  line-height: 1.8;
  margin-top: 0.75rem;
}

.xc-intro__cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.xc-intro-card {
  background: var(--surface);
  border-radius: var(--radius-lg);
  padding: 2.25rem 1.75rem;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
  transition: transform 0.25s var(--ease-out), box-shadow 0.25s;
}

.xc-intro-card:nth-child(1) { border-top: 5px solid var(--green); }
.xc-intro-card:nth-child(2) { border-top: 5px solid var(--orange); }
.xc-intro-card:nth-child(3) { border-top: 5px solid var(--yellow); }

@media (hover: hover) and (pointer: fine) {
  .xc-intro-card:hover {
    transform: translateY(-6px) rotate(-0.5deg);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.1);
  }
}

.xc-intro-card__icon {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  display: block;
}

.xc-intro-card__title {
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.4rem;
  color: var(--text);
  margin: 0 0 0.75rem;
}

.xc-intro-card__text {
  font-family: var(--body-font);
  font-size: 1.15rem;
  color: var(--text-soft);
  line-height: 1.75;
  margin: 0;
}

/* =============================================
   ACTIVITY ROWS
============================================= */
.xc-activity {
  padding: 5.5rem 0;
  position: relative;
  overflow: hidden;
}

.xc-activity--teal   { background: var(--soft-tel); }
.xc-activity--cyan   { background: #e8f9fd; }
.xc-activity--purple { background: #fdf4ff; }

.xc-activity__layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.xc-activity__layout--reverse {
  direction: rtl;
}

.xc-activity__layout--reverse > * {
  direction: ltr;
}

.xc-activity__img-wrap {
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: 0 16px 50px rgba(0, 0, 0, 0.14);
  aspect-ratio: 4/3;
}

.xc-activity__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.35s var(--ease-out);
}

@media (hover: hover) and (pointer: fine) {
  .xc-activity__img-wrap:hover .xc-activity__img {
    transform: scale(1.05);
  }
}

.xc-activity__emoji {
  font-size: 2.8rem;
  display: block;
  margin-bottom: 0.5rem;
  animation: bounce 3s ease-in-out infinite;
}

.xc-activity__tag {
  font-family: var(--body-font);
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 0.3rem 0.9rem;
  border-radius: 50px;
  display: inline-block;
  margin-bottom: 0.75rem;
}

.xc-activity__title {
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(2rem, 3.5vw, 3rem);
  line-height: 1.1;
  margin: 0 0 1rem;
}

.xc-activity__desc {
  font-family: var(--body-font);
  font-size: 1.2rem;
  color: var(--text-soft);
  line-height: 1.85;
  margin-bottom: 1.5rem;
}

.xc-pills {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.xc-pill {
  font-family: var(--body-font);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.4rem 1rem;
  border-radius: 50px;
  line-height: 1.4;
}

/* =============================================
   VIDEO SECTION
============================================= */
.xc-video {
  background: var(--bg);
  padding: 5.5rem 0 6rem;
}

.xc-video__header {
  text-align: center;
  margin-bottom: 2.5rem;
}

.xc-video__sub {
  font-family: var(--body-font);
  font-size: 1.2rem;
  color: var(--text-soft);
  margin-top: 0.5rem;
}

.xc-video__frame {
  max-width: 820px;
  margin: 0 auto;
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
}

.xc-video__frame video {
  width: 100%;
  display: block;
}

/* =============================================
   RESPONSIVE
============================================= */
@media (max-width: 900px) {
  .xc-stats__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .xc-activity__layout,
  .xc-activity__layout--reverse {
    grid-template-columns: 1fr;
    direction: ltr;
    gap: 2rem;
  }

  .xc-intro__cards {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 600px) {
  .xc-stats__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
