/* =========================================
   COURSES - Premium minimal card system (vNext)
   Brand: #00bfff
   Clean, modern, non-generic
   Keeps "live" vs "soon" clearly different
   ========================================= */

:root {
  --brand: #00bfff;
  --brand-soft: rgba(0, 191, 255, 0.14);
  --brand-soft2: rgba(0, 191, 255, 0.08);

  --ink: #0b1220;
  --muted: rgba(11, 18, 32, 0.74);
  --muted2: rgba(11, 18, 32, 0.58);

  --stroke: rgba(2, 6, 23, 0.1);
  --stroke2: rgba(2, 6, 23, 0.07);

  --card: #ffffff;

  --shadowA: 0 1px 0 rgba(2, 6, 23, 0.05);
  --shadowB: 0 18px 52px rgba(2, 6, 23, 0.1);
  --shadowHover: 0 30px 90px rgba(2, 6, 23, 0.16);
}

body {
  background-color: var(--back-light);
}

/* HERO - keep your background image, just make the overlay premium */
.hero {
  position: relative;
  height: 100vh;
  margin-top: -10vh;
  display: flex;
  justify-content: center;
  text-align: center;
  align-items: center;
  background: url("../media/tridentu-abstract.webp") no-repeat center
    center/cover;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(0, 191, 255, 0.12) 0%,
    rgba(0, 191, 255, 0.08) 40%,
    rgba(255, 255, 255, 0.6) 75%,
    rgba(255, 255, 255, 0.9) 100%
  );
  z-index: 1;
}

.hero > div {
  position: relative;
  z-index: 2;
  padding: 0 18px;
}

.hero h1 {
  font-size: 3.6rem;
  font-weight: 800;
  letter-spacing: -0.04em;
  color: var(--ink);
  margin: 0 0 16px 0;
}

.hero p {
  font-size: 1.15rem;
  line-height: 1.7;
  color: rgba(11, 18, 32, 0.78);
  max-width: 860px;
  margin: 0 auto;
}

.hero-buttons {
  margin-top: 36px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 18px;
}

/* SECTION TITLE */
.course1 h2 {
  text-align: left;
  font-size: 2.2rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  margin: 0 0 18px 0;
  color: var(--ink);
}

/* GRID */
.course-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 22px;
}

/* =========================================
   CARD BASE
   ========================================= */

.course-card {
  position: relative;
  display: block;
  text-decoration: none;
  color: var(--ink);

  border-radius: 18px;
  overflow: hidden;

  background: var(--card);
  border: 1px solid var(--stroke2);
  box-shadow:
    0 1px 0 rgba(2, 6, 23, 0.05),
    0 10px 28px rgba(2, 6, 23, 0.08);

  transform: translateY(0);
  transition:
    transform 180ms ease,
    box-shadow 180ms ease,
    border-color 180ms ease,
    background 180ms ease;
}

/* Premium inner line (expensive finish) */
.course-card::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 18px;
  pointer-events: none;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.72);
}

/* Brand-owned top rail (subtle, not a cheap stripe) */
.course-card::before {
  content: "";
  position: absolute;
  left: 18px;
  right: 18px;
  top: 0;
  height: 1px;
  background: rgba(255, 255, 255, 0.75);
  pointer-events: none;
}

/* =========================================
   LIVE COURSES (clickable)
   ========================================= */

.course-card.is-live:hover {
  border-color: rgba(0, 191, 255, 0.28);
  background: #fcfeff;
  transform: translateY(-3px);
  box-shadow:
    0 2px 6px rgba(2, 6, 23, 0.08),
    0 16px 38px rgba(2, 6, 23, 0.12);
}

.course-card.is-live:active {
  transform: translateY(-3px);
}

.course-card.is-live:focus-visible {
  outline: 3px solid rgba(0, 191, 255, 0.26);
  outline-offset: 5px;
}

/* Top header area */
.course-card-top {
  position: relative;
  padding: 16px 16px 12px 16px;
  border-bottom: 1px solid rgba(2, 6, 23, 0.1);
  background:
    radial-gradient(
      520px 200px at 14% -35%,
      rgba(0, 191, 255, 0.24),
      transparent 58%
    ),
    radial-gradient(
      520px 220px at 90% 0%,
      rgba(2, 6, 23, 0.14),
      transparent 62%
    ),
    linear-gradient(180deg, rgba(2, 6, 23, 0.05), rgba(2, 6, 23, 0));
}

/* Minimal brand mark */
.course-mark {
  width: 52px;
  height: 10px;
  border-radius: 999px;
  background: linear-gradient(
    90deg,
    rgba(0, 191, 255, 0),
    rgba(0, 191, 255, 0.95),
    rgba(0, 191, 255, 0)
  );
  opacity: 0.95;
}

/* Badges */
.course-badges {
  margin-top: 12px;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;

  font-size: 0.7rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;

  padding: 7px 11px;
  border-radius: 999px;

  border: 1px solid rgba(2, 6, 23, 0.1);
  background: rgba(2, 6, 23, 0.04);
  color: rgba(11, 18, 32, 0.78);
}

.badge-brand {
  border-color: rgba(0, 191, 255, 0.28);
  background: rgba(0, 191, 255, 0.12);
  color: rgba(11, 18, 32, 0.92);
}

.badge-soft {
  border-color: rgba(2, 6, 23, 0.1);
  background: rgba(2, 6, 23, 0.04);
}

/* Open affordance: cleaner and more premium (no "buttony" look) */
.course-open {
  position: absolute;
  right: 14px;
  top: 14px;

  display: inline-flex;
  align-items: center;
  gap: 10px;

  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;

  color: rgba(0, 191, 255, 0.9);

  opacity: 0;
  transform: translateY(2px);
  transition:
    opacity 180ms ease,
    transform 180ms ease;
}

.course-open .arrow {
  font-size: 1rem;
  letter-spacing: 0;
}

.course-card.is-live:hover .course-open {
  opacity: 1;
  transform: translateY(0);
}

/* Body */
.course-card-body {
  padding: 16px 16px 18px 16px;
  position: relative;
  z-index: 1;
}

/* Typography */
.course-title {
  margin: 0 0 10px 0;
  font-size: 1.34rem;
  font-weight: 900;
  letter-spacing: -0.03em;
  line-height: 1.18;
  color: var(--ink);
}

.course-desc {
  margin: 0;
  font-size: 0.99rem;
  line-height: 1.7;
  color: var(--muted);
}

/* Meta chips: simpler, cleaner (less "UI kit") */
.course-meta {
  margin-top: 16px;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.chip {
  display: inline-flex;
  align-items: center;

  font-size: 0.9rem;
  color: var(--muted2);

  padding: 8px 12px;
  border-radius: 999px;

  background: rgba(2, 6, 23, 0.035);
  border: 1px solid rgba(2, 6, 23, 0.065);
}

/* =========================================
   SOON CARD (clearly different)
   ========================================= */

.course-card.is-soon {
  cursor: default;
  box-shadow: none;
  border: 1px dashed rgba(2, 6, 23, 0.22);
  background: rgba(255, 255, 255, 0.72);
}

.course-card.is-soon::after {
  display: none;
}

.course-card.is-soon .course-card-top {
  background: repeating-linear-gradient(
    45deg,
    rgba(2, 6, 23, 0.03),
    rgba(2, 6, 23, 0.03) 10px,
    rgba(2, 6, 23, 0.06) 10px,
    rgba(2, 6, 23, 0.06) 20px
  );
  border-bottom: 1px solid rgba(2, 6, 23, 0.1);
}

.course-card.is-soon .course-mark {
  opacity: 0.25;
}

.course-card.is-soon .course-title {
  color: rgba(15, 23, 42, 0.7);
}

.course-card.is-soon .course-desc {
  color: rgba(15, 23, 42, 0.58);
}

.course-card.is-soon .course-open {
  display: none;
}

.course-card.is-soon:hover {
  transform: none;
  box-shadow: none;
  border-color: rgba(2, 6, 23, 0.22);
  background: rgba(255, 255, 255, 0.72);
}

/* MOBILE */
@media (max-width: 520px) {
  .course-grid {
    grid-template-columns: 1fr;
  }

  .hero h1 {
    font-size: 2.7rem;
  }

  .hero p {
    font-size: 1.05rem;
  }
}

/* REDUCED MOTION */
@media (prefers-reduced-motion: reduce) {
  .course-card,
  .course-open {
    transition: none;
  }
  .course-card.is-live:hover {
    transform: none;
  }
  .course-card.is-live:hover .course-open {
    opacity: 0;
    transform: none;
  }
}
