/* =============================================================
   public/css/hackathon-event.css
   Durable Impact — WasteHack / Hackathon Event page
   Depends on public/css/styles.css (Poppins, variables, .btn-green)
   ============================================================= */

/* ══════════════════════════════════════════════════════════════
   SHARED INNER WRAPPER
   ══════════════════════════════════════════════════════════════ */
.hk-hero__inner,
.hk-overview__inner,
.hk-why__inner,
.hk-prep__inner,
.hk-body-section__inner,
.hk-process__inner,
.hk-solutions__inner,
.hk-cta__inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 110px;
}

/* ══════════════════════════════════════════════════════════════
   1. HERO
   ══════════════════════════════════════════════════════════════ */
.hk-hero {
  position: relative;
  min-height: 58vh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  overflow: hidden;
}

.hk-hero__bg {
  position: absolute;
  inset: 0;
}

.hk-hero__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 35%;
  display: block;
}

.hk-hero__overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.50);
}

.hk-hero__inner {
  position: relative;
  z-index: 1;
  width: 100%;
  padding-bottom: clamp(2.5rem, 5vw, 4rem);
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

/* Sub-nav */
.hk-subnav {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  padding-top: clamp(1.5rem, 4vw, 2.5rem);
}

.hk-subnav__label {
  font-family: var(--font-main);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.6);
  white-space: nowrap;
}

.hk-subnav__tabs {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.hk-subnav__tab {
  font-family: var(--font-main);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  color: rgba(255,255,255,0.75);
  border: 1.5px solid rgba(255,255,255,0.25);
  border-radius: 100px;
  padding: 8px 18px;
  transition: background var(--transition), color var(--transition), border-color var(--transition);
  white-space: nowrap;
}

.hk-subnav__tab:hover {
  color: #fff;
  border-color: rgba(255,255,255,0.6);
}

.hk-subnav__tab--active {
  background: #7EBB55;
  color: #fff;
  border-color: #7EBB55;
}

.hk-hero__content {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.hk-hero__title {
  font-family: var(--font-main);
  font-size: clamp(36px, 6vw, 72px);
  font-weight: 700;
  color: #fff;
  line-height: 1.05;
  margin: 0;
}

.hk-hero__sub {
  font-family: var(--font-main);
  font-size: clamp(15px, 2vw, 20px);
  font-weight: 400;
  color: rgba(255,255,255,0.8);
  margin: 0;
}

/* ══════════════════════════════════════════════════════════════
   2. EVENT OVERVIEW STRIP
   ══════════════════════════════════════════════════════════════ */
.hk-overview {
  background: #a2b9be;
  padding: 80px 0;
}

.hk-overview__inner {
  display: flex;
  align-items: flex-start;
  gap: 80px;
}

.hk-overview__left {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.hk-overview__eyebrow {
  font-family: var(--font-main);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-teal);
}

.hk-overview__name {
  font-family: var(--font-main);
  font-size: 38px;
  font-weight: 700;
  color: #ffffff;
  line-height: 1.1;
  margin: 0;
}

.hk-overview__date {
  font-family: var(--font-main);
  font-size: 16px;
  font-weight: 600;
  color: rgba(255,255,255,0.55);
  margin: 0;
}

.hk-overview__desc {
  font-family: var(--font-main);
  font-size: 17px;
  font-weight: 400;
  color: rgba(255,255,255,0.78);
  line-height: 1.75;
  margin: 0;
  max-width: 560px;
}

/* Stat cards */
.hk-overview__stats {
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-width: 260px;
}

.hk-stat-card {
  background: rgba(255,255,255,0.06);
  border: 2px solid rgba(255, 255, 255, 0.059);
  border-radius: 14px;
  padding: 24px 28px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.hk-stat-card--green {
  background: rgba(212, 216, 208, 0.12);
  border-color: rgba(191, 199, 186, 0.3);
}

.hk-stat-card__num {
  font-family: var(--font-main);
  font-size: 42px;
  font-weight: 700;
  color: #fdfffc;
  line-height: 1;
}

.hk-stat-card__label {
  font-family: var(--font-main);
  font-size: 15px;
  font-weight: 400;
  color: rgba(255,255,255,0.75);
  line-height: 1.5;
}

.hk-stat-card__tag {
  font-family: var(--font-main);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.35);
  margin-top: 4px;
}

/* ══════════════════════════════════════════════════════════════
   3. WHY WASTEHACK?
   ══════════════════════════════════════════════════════════════ */
.hk-why {
  background: #ffffff;
  padding: 96px 0;
}

.hk-why__inner {
  display: flex;
  gap: 80px;
  align-items: flex-start;
}

.hk-why__label {
  flex: 0 0 200px;
  padding-top: 6px;
}

.hk-why__label span {
  font-family: var(--font-main);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-teal);
}

.hk-why__body {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.hk-why__body p {
  font-family: var(--font-main);
  font-size: 17px;
  font-weight: 400;
  color: var(--color-text);
  line-height: 1.85;
  margin: 0;
}

.hk-why__subhead {
  font-family: var(--font-main);
  font-size: 17px;
  font-weight: 700 !important;
  color: var(--color-dark) !important;
  margin: 8px 0 0 !important;
}

/* Innovation paths */
.hk-paths {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 24px 28px;
  background: var(--color-bg-light);
  border-radius: 14px;
  border-left: 4px solid var(--color-bg-light);
}

.hk-path {
  display: flex;
  align-items: flex-start;
  gap: 18px;
}

.hk-path__num {
  font-family: var(--font-main);
  font-size: 13px;
  font-weight: 700;
  color: #7EBB55;
  flex-shrink: 0;
  padding-top: 2px;
}

.hk-path p {
  font-family: var(--font-main);
  font-size: 16px;
  font-weight: 600;
  color: var(--color-dark);
  margin: 0 !important;
  line-height: 1.5;
}

/* ══════════════════════════════════════════════════════════════
   4. PRE-HACKATHON PREPARATION (UPDATED LAYOUT)
   ══════════════════════════════════════════════════════════════ */
.hk-prep {
  background: var(--color-bg-light);
  padding: 96px 0;
}

.hk-prep__title {
  font-family: var(--font-main);
  font-size: 46px;
  font-weight: 700;
  color: var(--color-dark);
  line-height: 1.1;
  margin: 0 0 60px;
}

/* Each speaker block — NOW VERTICAL */
.hk-speaker {
  display: flex;
  flex-direction: column;
  gap: 28px;
  padding: 60px 0;
  border-top: 1px solid var(--color-border);
}

/* Remove reverse behavior (no longer needed but safe to keep) */
.hk-speaker--reverse {
  direction: ltr;
}

/* Speaker photos — HORIZONTAL */
.hk-speaker__photos {
  display: flex;
  gap: 16px;
}

/* Each photo */
.hk-speaker__photo {
  flex: 1;
  border-radius: 12px;
  overflow: hidden;
  aspect-ratio: 1;
}

.hk-speaker__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}

.hk-speaker__photo:hover img {
  transform: scale(1.04);
}

/* Speaker text BELOW images */
.hk-speaker__text {
  display: flex;
  flex-direction: column;
  gap: 18px;
  max-width: 900px; /* makes it more readable */
}

.hk-speaker__name {
  font-family: var(--font-main);
  font-size: 22px;
  font-weight: 700;
  color: var(--color-dark);
  line-height: 1.3;
  margin: 0;
}

.hk-speaker__name span {
  font-weight: 400;
  color: var(--color-muted);
  font-size: 18px;
}

.hk-speaker__text p {
  font-family: var(--font-main);
  font-size: 16px;
  font-weight: 400;
  color: var(--color-text);
  line-height: 1.85;
  margin: 0;
}

/* ══════════════════════════════════════════════════════════════
   5. HACKATHON BODY
   ══════════════════════════════════════════════════════════════ */
.hk-body-section {
  background: #ffffff;
  padding: 96px 0;
}

/* Conviction quote */
.hk-conviction {
  max-width: 860px;
  margin: 0 auto 72px;
  text-align: center;
}

.hk-conviction__quote {
  font-family: var(--font-main);
  font-size: 26px;
  font-weight: 700;
  color: var(--color-dark);
  line-height: 1.45;
  margin: 0 0 24px;
}

.hk-conviction__body {
  font-family: var(--font-main);
  font-size: 17px;
  font-weight: 400;
  color: var(--color-text);
  line-height: 1.85;
  margin: 0;
}

/* Teams */
.hk-teams {
  border-top: 1px solid var(--color-border);
  padding-top: 52px;
}

.hk-teams__label {
  font-family: var(--font-main);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-teal);
  margin-bottom: 8px;
}

.hk-teams__tagline {
  font-family: var(--font-main);
  font-size: 15px;
  font-weight: 400;
  color: var(--color-muted);
  line-height: 1.65;
  margin: 0 0 32px;
  max-width: 640px;
}

/* 5+4 photo grid using 5 cols, last row has 4 centered */
.hk-teams__grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 10px;
}

.hk-team-photo {
  aspect-ratio: 1;
  border-radius: 10px;
  overflow: hidden;
}

.hk-team-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}

.hk-team-photo:hover img {
  transform: scale(1.05);
}

/* Last 4 items — center them in the 5-col grid */
.hk-team-photo:nth-child(6) { grid-column: 1; }
.hk-team-photo:nth-child(7) { grid-column: 2; }
.hk-team-photo:nth-child(8) { grid-column: 3; }
.hk-team-photo:nth-child(9) { grid-column: 4; }

/* ══════════════════════════════════════════════════════════════
   6. WASTEHACK DESIGN PROCESS
   5-step horizontal journey
   ══════════════════════════════════════════════════════════════ */
.hk-process {
  background: var(--color-bg-light);
  padding: 96px 0;
}

.hk-process__title {
  font-family: var(--font-main);
  font-size: 46px;
  font-weight: 700;
  color: var(--color-dark);
  line-height: 1.1;
  margin: 0 0 52px;
}

.hk-process__steps {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
}

.hk-process-step {
  display: flex;
  flex-direction: column;
  gap: 0;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--color-border);
  background: #ffffff;
  transition: transform var(--transition), box-shadow var(--transition);
}

.hk-process-step:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 28px rgba(0,0,0,0.09);
}

.hk-process-step__photo {
  aspect-ratio: 4/3;
  overflow: hidden;
}

.hk-process-step__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}

.hk-process-step:hover .hk-process-step__photo img {
  transform: scale(1.04);
}

.hk-process-step__info {
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.hk-process-step__num {
  font-family: var(--font-main);
  font-size: 13px;
  font-weight: 700;
  color: #7EBB55;
  letter-spacing: 0.05em;
}

.hk-process-step__label {
  font-family: var(--font-main);
  font-size: 14px;
  font-weight: 600;
  color: var(--color-dark);
  line-height: 1.45;
}

.hk-process-step__label small {
  font-weight: 400;
  color: var(--color-muted);
}

/* ══════════════════════════════════════════════════════════════
   7. INNOVATIVE SOLUTIONS HIGHLIGHTS
   5 cards — 3+2 responsive grid
   ══════════════════════════════════════════════════════════════ */
.hk-solutions {
  background: #ffffff;
  padding: 96px 0;
}

.hk-solutions__title {
  font-family: var(--font-main);
  font-size: 46px;
  font-weight: 700;
  color: var(--color-dark);
  line-height: 1.1;
  margin: 0 0 52px;
}

.hk-solutions__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

/* Last 2 cards span wider to center them */
.hk-solution-card:nth-child(4),
.hk-solution-card:nth-child(5) {
  grid-column: span 1;
}

/* Push the last 2 to center: wrap in a sub-grid isn't needed, use auto flow */
/* Row 2 has 2 cards — use nth-child offset trick */
.hk-solutions__grid::after {
  content: '';
  grid-column: span 1;
  display: none;
}

.hk-solution-card {
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--color-border);
  display: flex;
  flex-direction: column;
  transition: transform var(--transition), box-shadow var(--transition);
}

.hk-solution-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 28px rgba(0,0,0,0.1);
}

.hk-solution-card__photo {
  aspect-ratio: 16/9;
  overflow: hidden;
  background: var(--color-bg-light);
}

.hk-solution-card__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}

.hk-solution-card:hover .hk-solution-card__photo img {
  transform: scale(1.04);
}

.hk-solution-card__body {
  padding: 22px 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
}

.hk-solution-card__name {
  font-family: var(--font-main);
  font-size: 18px;
  font-weight: 700;
  color: var(--color-dark);
  margin: 0;
  line-height: 1.25;
}

.hk-solution-card__desc {
  font-family: var(--font-main);
  font-size: 15px;
  font-weight: 400;
  color: var(--color-text);
  line-height: 1.7;
  margin: 0;
}

/* ══════════════════════════════════════════════════════════════
   CTA SECTION
   ══════════════════════════════════════════════════════════════ */
.hk-cta {
  background: #1a1a1a;
  padding: 96px 0;
}

.hk-cta__title {
  font-family: var(--font-main);
  font-size: 46px;
  font-weight: 700;
  color: #ffffff;
  line-height: 1.1;
  margin: 0 0 20px;
}

.hk-cta__body {
  font-family: var(--font-main);
  font-size: 17px;
  font-weight: 400;
  color: rgba(255,255,255,0.72);
  line-height: 1.75;
  margin: 0 0 36px;
  max-width: 620px;
}

.hk-cta__actions {
  display: flex;
  align-items: center;
  gap: 28px;
  flex-wrap: wrap;
}

.hk-cta__link {
  font-family: var(--font-main);
  font-size: 15px;
  font-weight: 600;
  color: rgba(255,255,255,0.65);
  text-decoration: none;
  transition: color var(--transition);
}

.hk-cta__link:hover { color: #ffffff; }

/* ══════════════════════════════════════════════════════════════
   SCROLL REVEAL
   ══════════════════════════════════════════════════════════════ */
.hk-reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.4s ease, transform 0.4s ease;
}

.hk-reveal.hk-visible {
  opacity: 1;
  transform: none;
}

/* ══════════════════════════════════════════════════════════════
   RESPONSIVE
   ══════════════════════════════════════════════════════════════ */
@media (max-width: 1024px) {
  .hk-hero__inner,
  .hk-overview__inner,
  .hk-why__inner,
  .hk-prep__inner,
  .hk-body-section__inner,
  .hk-process__inner,
  .hk-solutions__inner,
  .hk-cta__inner {
    padding-left: 60px;
    padding-right: 60px;
  }

  .hk-process__steps    { grid-template-columns: repeat(3, 1fr); }
  .hk-solutions__grid   { grid-template-columns: repeat(2, 1fr); }
  .hk-overview__name    { font-size: 30px; }
  .hk-prep__title,
  .hk-solutions__title,
  .hk-process__title,
  .hk-cta__title        { font-size: 38px; }
}

@media (max-width: 900px) {
  .hk-overview__inner { flex-direction: column; gap: 48px; }
  .hk-overview__stats { flex-direction: row; min-width: unset; width: 100%; }
  .hk-stat-card       { flex: 1; }

  .hk-why__inner      { flex-direction: column; gap: 32px; }
  .hk-why__label      { flex: none; }

  .hk-speaker,
  .hk-speaker--reverse { grid-template-columns: 1fr; gap: 36px; direction: ltr; }
}

@media (max-width: 767px) {
  .hk-hero__inner,
  .hk-overview__inner,
  .hk-why__inner,
  .hk-prep__inner,
  .hk-body-section__inner,
  .hk-process__inner,
  .hk-solutions__inner,
  .hk-cta__inner {
    padding-left: 20px;
    padding-right: 20px;
  }

  .hk-why,
  .hk-prep,
  .hk-body-section,
  .hk-process,
  .hk-solutions,
  .hk-cta     { padding: 72px 0; }

  .hk-overview { padding: 60px 0; }

  .hk-subnav  { flex-direction: column; align-items: flex-start; gap: 10px; }

  .hk-prep__title,
  .hk-solutions__title,
  .hk-process__title,
  .hk-cta__title,
  .hk-conviction__quote { font-size: 26px; }

  .hk-teams__grid      { grid-template-columns: repeat(3, 1fr); }
  .hk-team-photo:nth-child(6),
  .hk-team-photo:nth-child(7),
  .hk-team-photo:nth-child(8),
  .hk-team-photo:nth-child(9) { grid-column: auto; }

  .hk-process__steps   { grid-template-columns: repeat(2, 1fr); }
  .hk-solutions__grid  { grid-template-columns: 1fr; }
  .hk-overview__stats  { flex-direction: column; }

  .hk-speaker__photos  { grid-template-columns: 1fr; }
  .hk-speaker__photo:last-child { display: none; }
}