/* ============================================================
   Index — Hero, How (redesigned), Categories, CTA
   ============================================================ */

/* ---------- Hero ---------- */
.hero {
  position: relative; min-height: 92vh;
  display: flex; align-items: center; overflow: hidden;
}
.hero-bg {
  position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(45,106,79,0.45) 0%, rgba(28,28,28,0.55) 100%),
              url('../image/hero-campus.jpg') center / cover no-repeat;
  z-index: 0; will-change: transform;
}
.hero-bg-fallback { position: absolute; inset: 0; background: var(--pine); z-index: -1; }
.hero-content { position: relative; z-index: 1; max-width: 1200px; margin: 0 auto; padding: 0 5vw; width: 100%; }

.hero-tag {
  display: inline-block; font-size: 13px; font-weight: 600;
  color: var(--cream); letter-spacing: 0.06em;
  margin-bottom: 20px; padding-bottom: 8px; border-bottom: 2px solid #F4A261;
  opacity: 0; transform: translateY(16px);
  animation: slideUp 0.6s 0.15s ease forwards;
}
.hero h1 {
  font-size: clamp(36px, 6vw, 64px); font-weight: 900; color: #fff;
  line-height: 1.2; letter-spacing: 0.03em; margin-bottom: 16px;
  opacity: 0; transform: translateY(20px);
  animation: slideUp 0.7s 0.25s ease forwards;
}
.hero-desc {
  font-size: clamp(15px, 1.6vw, 18px); color: rgba(255,255,255,0.80);
  max-width: 460px; margin-bottom: 36px;
  opacity: 0; transform: translateY(20px);
  animation: slideUp 0.7s 0.35s ease forwards;
}
.hero-btns {
  display: flex; align-items: center; gap: 14px; flex-wrap: wrap;
  opacity: 0; transform: translateY(20px);
  animation: slideUp 0.7s 0.45s ease forwards;
}
@keyframes slideUp { to { opacity: 1; transform: translateY(0); } }

/* ============================================================
   HOW IT WORKS — redesigned: visual flow
   ============================================================ */
.how {
  padding: 100px 5vw;
  background: var(--cream);
}
.how-inner {
  max-width: 960px;
  margin: 0 auto;
  text-align: center;
}

.how-eyebrow {
  font-size: 13px; font-weight: 600;
  letter-spacing: 0.08em; color: var(--clay);
  text-transform: uppercase; margin-bottom: 10px;
}

.how h2 {
  font-size: clamp(26px, 3.5vw, 36px);
  font-weight: 800; letter-spacing: 0.02em;
  margin-bottom: 56px;
}

/* Flow: three connected circles */
.how-flow {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  gap: 0;
}

.how-node {
  flex: 1;
  text-align: center;
  padding: 0 28px;
  position: relative;
}

/* Connecting line */
.how-node::after {
  content: '';
  position: absolute;
  top: 32px;
  left: calc(50% + 48px);
  width: calc(100% - 32px);
  height: 2px;
  background: var(--border);
  transition: background 0.4s;
}
.how-node:last-child::after { display: none; }

/* Circle */
.how-circle {
  width: 64px; height: 64px;
  border-radius: 50%;
  margin: 0 auto 20px;
  display: flex; align-items: center; justify-content: center;
  font-size: 22px; font-weight: 800;
  color: #fff;
  position: relative;
  z-index: 1;
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}
.how-node:nth-child(1) .how-circle { background: var(--pine); }
.how-node:nth-child(2) .how-circle { background: var(--clay); }
.how-node:nth-child(3) .how-circle { background: #F4A261; }

.how-node:hover .how-circle {
  transform: scale(1.12);
  box-shadow: 0 8px 24px rgba(0,0,0,0.15);
}

/* Labels */
.how-node h3 {
  font-size: 17px; font-weight: 700;
  margin-bottom: 6px;
}
.how-node p {
  font-size: 14px; color: var(--stone);
  line-height: 1.6; max-width: 220px;
  margin: 0 auto;
}

/* Scroll reveal for how nodes */
.how-node.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.how-node.reveal.visible { opacity: 1; transform: translateY(0); }

/* ---------- Categories ---------- */
.cats { padding: 0 5vw 100px; background: var(--cream); }
.cats-inner { max-width: 1100px; margin: 0 auto; }
.cats-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.cats-grid a { display: block; }
.cat-card { position: relative; border-radius: 8px; overflow: hidden; aspect-ratio: 3 / 2; cursor: pointer; }
.cat-card img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.cat-card:hover img { transform: scale(1.06); }
.cat-card-overlay { position: absolute; inset: 0; background: linear-gradient(to top, rgba(0,0,0,0.55) 0%, rgba(0,0,0,0.05) 60%); display: flex; align-items: flex-end; padding: 24px; }
.cat-card-label { color: #fff; font-size: 18px; font-weight: 700; letter-spacing: 0.04em; transition: transform 0.3s ease; }
.cat-card:hover .cat-card-label { transform: translateY(-4px); }

/* CTA */
.cta { padding: 80px 5vw; background: var(--bark); }
.cta-inner { max-width: 800px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 24px; }
.cta-text { color: var(--cream); font-size: 22px; font-weight: 700; letter-spacing: 0.03em; }
.btn-cta { background: #F4A261; color: var(--ink); }
.btn-cta:hover { background: #E88C40; }

/* ---------- Responsive ---------- */
@media (max-width: 768px) {
  .how-flow { flex-direction: column; align-items: center; gap: 0; }
  .how-node {
    padding: 20px 0 30px;
    max-width: 360px;
    width: 100%;
  }
  .how-node::after {
    top: auto; bottom: -20px;
    left: 50%; transform: translateX(-50%);
    width: 2px; height: 50px;
  }
  .how-node:last-child::after { display: none; }
  .how-node p { max-width: 100%; }
  .cats-grid { grid-template-columns: 1fr; }
  .cta-inner { flex-direction: column; text-align: center; }
  .hero h1 { font-size: 32px; }
  .hero { min-height: 80vh; }
  .cta-text { font-size: 18px; }
  .how { padding: 70px 4vw; }
  .hero-content { padding-top: 20px; padding-bottom: 20px; }
  .hero-btns { gap: 10px; }
}

@media (max-width: 480px) {
  .hero h1 { font-size: 28px; }
  .hero-btns { flex-direction: column; align-items: stretch; }
  .hero-btns .btn { justify-content: center; text-align: center; }
  .how h2 { font-size: 24px; margin-bottom: 40px; }
  .cats { padding: 0 4vw 60px; }
  .cta { padding: 60px 4vw; }
  .cat-card-overlay { padding: 16px; }
  .cat-card-label { font-size: 16px; }
  .how-node h3 { font-size: 16px; }
  .how-node p { font-size: 13px; }
}
