/* ========================================
   COURSES PAGE STYLES
   ======================================== */

/* ── Hero with 3 Photos ── */
.courses-hero {
  position: relative;
  min-height: 85vh;
  display: flex;
  align-items: flex-end;
  padding: var(--nav-h) 0 clamp(3rem, 6vw, 5rem);
  overflow: hidden;
}

.courses-hero-photos {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 0;
}

.courses-hero-photo {
  overflow: hidden;
}

.courses-hero-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.courses-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(0,0,0,.25) 0%,
    rgba(0,0,0,.1) 30%,
    rgba(0,0,0,.2) 60%,
    rgba(0,0,0,.7) 100%
  );
  z-index: 1;
}

.courses-hero-content {
  position: relative;
  z-index: 2;
}

.courses-hero-title {
  font-family: var(--sans);
  font-size: clamp(2rem, 6vw, 4.5rem);
  font-weight: 200;
  text-transform: uppercase;
  color: var(--coral);
  line-height: .92;
  letter-spacing: .08em;
  margin-bottom: clamp(1rem, 2vw, 1.5rem);
}

.courses-hero-desc {
  max-width: 520px;
  font-size: clamp(.95rem, 1.2vw, 1.1rem);
  color: rgba(255,255,255,.75);
  line-height: 1.6;
}

/* ── Intro ── */
.courses-intro {
  text-align: center;
  max-width: 760px;
  margin: 0 auto;
}

.courses-intro-title {
  font-family: var(--sans);
  font-size: clamp(1.6rem, 3.5vw, 2.8rem);
  font-weight: 300;
  line-height: 1.1;
  margin: 1rem 0 1.5rem;
  text-transform: uppercase;
  color: var(--coral);
}

.courses-intro-text {
  font-size: 1.1rem;
  line-height: 1.8;
  color: var(--text-body);
  margin: 0;
}

/* ── Course Categories ── */
.course-category {
  margin-bottom: 2.5rem;
}

.course-category:last-child {
  margin-bottom: 0;
}

.category-header {
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid rgba(255,255,255,.08);
}

.category-tag {
  font-family: var(--sans);
  font-size: .75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .12em;
  color: var(--coral);
}

/* ── Course Cards ── */
.course-card {
  display: grid;
  grid-template-columns: 60px 1fr;
  gap: 1.5rem;
  padding: 2rem 0;
  border-bottom: 1px solid rgba(255,255,255,.06);
  border-left: 2px solid transparent;
  transition: background .4s cubic-bezier(.19,1,.22,1),
              border-left-color .4s cubic-bezier(.19,1,.22,1),
              transform .4s cubic-bezier(.19,1,.22,1),
              box-shadow .4s cubic-bezier(.19,1,.22,1);
}

.course-card:hover {
  background: rgba(255,255,255,.03);
  margin: 0 -1.5rem;
  padding: 2rem 1.5rem;
  border-radius: 12px;
  border-color: transparent;
  border-left: 2px solid var(--coral);
  transform: translateX(4px);
  box-shadow: 0 4px 24px rgba(201,168,76,.06);
}

.course-number {
  font-family: var(--serif);
  font-size: 2rem;
  color: var(--coral);
  line-height: 1;
  opacity: .6;
}

.course-info {
  display: flex;
  flex-direction: column;
  gap: .6rem;
}

.course-title {
  font-family: var(--sans);
  font-size: clamp(1.1rem, 1.6vw, 1.35rem);
  font-weight: 600;
  line-height: 1.3;
  margin: 0;
  color: var(--coral);
  text-transform: uppercase;
}

.course-subtitle {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1rem;
  color: var(--text-body);
  margin: 0;
  line-height: 1.5;
}

/* ── Topic Tags ── */
.course-topics {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  margin-top: .4rem;
}

.course-topics span {
  display: inline-block;
  font-size: .75rem;
  font-weight: 500;
  letter-spacing: .02em;
  padding: .35rem .75rem;
  background: rgba(255,255,255,.06);
  border-radius: 20px;
  color: var(--text-body);
  text-transform: uppercase;
  transition: all .3s ease;
}

.course-card:hover .course-topics span {
  background: rgba(201,168,76,.1);
  color: var(--coral);
}

/* ── Vote Section ── */
.vote-block {
  text-align: center;
  max-width: 900px;
  margin: 0 auto;
}

.vote-title {
  font-family: var(--sans);
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 700;
  text-transform: uppercase;
  line-height: 1.1;
  margin: 1rem 0;
  color: var(--coral);
}

.vote-desc {
  font-size: 1.05rem;
  color: var(--text-body);
  line-height: 1.7;
  margin-bottom: 2.5rem;
  max-width: 620px;
  margin-left: auto;
  margin-right: auto;
}

/* Step 1: Email */
.vote-email-form {
  display: flex;
  gap: .75rem;
  max-width: 480px;
  margin: 0 auto;
}

.vote-email-form .form-input {
  flex: 1;
  padding: .85rem 1.25rem;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 50px;
  background: #141414;
  color: inherit;
  font-size: .95rem;
  outline: none;
  transition: border-color .3s;
}

.vote-email-form .form-input::placeholder {
  opacity: .4;
}

.vote-email-form .form-input:focus {
  border-color: var(--coral);
}

.vote-email-form .btn-pill {
  white-space: nowrap;
  flex-shrink: 0;
}

/* Step 2: Pick */
.vote-pick-label {
  font-size: .9rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: #999;
  margin-bottom: 1.5rem;
}

.vote-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: .75rem;
}

.vote-option {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.25rem;
  background: #141414;
  border: 2px solid rgba(255,255,255,.08);
  border-radius: 12px;
  cursor: pointer;
  text-align: left;
  transition: all .3s ease;
}

.vote-option:hover {
  border-color: var(--coral);
  background: rgba(201,168,76,.05);
  transform: translateY(-2px);
  box-shadow: 0 4px 20px rgba(0,0,0,.3);
}

.vote-option--selected {
  border-color: var(--coral) !important;
  background: var(--coral) !important;
}

.vote-option--selected .vote-num,
.vote-option--selected .vote-name {
  color: #fff !important;
}

.vote-num {
  font-family: var(--serif);
  font-size: 1.5rem;
  color: var(--coral);
  opacity: .5;
  flex-shrink: 0;
  min-width: 2rem;
}

.vote-name {
  font-family: var(--sans);
  font-size: .9rem;
  font-weight: 500;
  color: var(--dark);
  line-height: 1.3;
}

/* Step 3: Thanks */
.vote-thanks-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--coral);
  color: #fff;
  font-size: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
}

.vote-thanks-title {
  font-family: var(--sans);
  font-size: 1.8rem;
  font-weight: 700;
  text-transform: uppercase;
  margin: 0 0 1rem;
}

.vote-thanks-text {
  font-size: 1.05rem;
  color: var(--text-body);
  line-height: 1.7;
  max-width: 480px;
  margin: 0 auto;
}

/* ── Responsive ── */
@media (max-width: 768px) {
  .courses-hero {
    min-height: 70vh;
  }

  .courses-hero-photos {
    grid-template-columns: 1fr 1fr;
  }

  .courses-hero-photo:last-child {
    display: none;
  }

  .course-card {
    grid-template-columns: 40px 1fr;
    gap: 1rem;
    padding: 1.5rem 0;
  }

  .course-card:hover {
    margin: 0 -1rem;
    padding: 1.5rem 1rem;
  }

  .course-number {
    font-size: 1.5rem;
  }

  .course-category {
    margin-bottom: 2rem;
  }

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

  .vote-email-form {
    flex-direction: column;
  }

  .vote-email-form .form-input,
  .vote-email-form .btn-pill {
    width: 100%;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .courses-hero-photos {
    grid-template-columns: 1fr;
  }

  .courses-hero-photo:nth-child(2),
  .courses-hero-photo:last-child {
    display: none;
  }

  .course-card {
    grid-template-columns: 1fr;
    gap: .75rem;
  }

  .course-number {
    font-size: 1.2rem;
  }

  .vote-thanks-icon {
    width: 48px;
    height: 48px;
    font-size: 1.5rem;
  }

}
