/* ══════════════════════════════════════════
   COURSES PAGE — courses.css
   Extends style.css — do NOT modify style.css
   Uses: --navy, --gold, --gold2, --cream,
         --light, --border, --text, --muted, --white
   Fonts: Cormorant Garamond · Plus Jakarta Sans · Bebas Neue
══════════════════════════════════════════ */

/* ── Courses Grid ────────────────────────── */
.courses-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1.5rem;
}

/* ── Course Card ─────────────────────────── */
.course-card {
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: 18px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform .3s, box-shadow .3s, border-color .3s;
  cursor: pointer;
}

.course-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 50px rgba(0,0,0,.1);
  border-color: rgba(212,146,42,.35);
}

.course-card.hidden { display: none; }

/* ── Card Top Banner ─────────────────────── */
.cc-top {
  background: var(--cream);
  padding: 1.6rem 2rem 1.5rem;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

/* Gold gradient top line */
.cc-top::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--gold), var(--gold2));
}

/* Ghost icon watermark */
.cc-top::after {
  content: attr(data-icon);
  position: absolute;
  right: -6px;
  bottom: -10px;
  font-size: 5.5rem;
  opacity: .07;
  line-height: 1;
  pointer-events: none;
}

/* Icon badge */
.cc-icon-badge {
  width: 50px;
  height: 50px;
  flex-shrink: 0;
  border-radius: 12px;
  background: var(--white);
  border: 1.5px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  box-shadow: 0 2px 8px rgba(0,0,0,.05);
  transition: background .25s, border-color .25s;
  margin-top: .1rem;
  position: relative;
  z-index: 1;
}

.course-card:hover .cc-icon-badge {
  background: rgba(212,146,42,.09);
  border-color: rgba(212,146,42,.3);
}

.cc-top-text {
  flex: 1;
  min-width: 0;
  position: relative;
  z-index: 1;
}

.cc-tag {
  font-size: .68rem;
  letter-spacing: 1.8px;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 700;
  margin-bottom: .35rem;
  display: block;
}

.cc-name {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--navy);
  line-height: 1.2;
}

/* ── Card Body ───────────────────────────── */
.cc-body {
  padding: 1.4rem 2rem 1.8rem;
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
  flex: 1;
}

.cc-desc {
  font-size: .875rem;
  color: var(--muted);
  line-height: 1.75;
}

.cc-pills {
  display: flex;
  gap: .45rem;
  flex-wrap: wrap;
}

.cc-pill {
  background: var(--cream);
  border: 1px solid var(--border);
  font-size: .7rem;
  font-weight: 600;
  color: var(--navy);
  padding: .28rem .75rem;
  border-radius: 20px;
  font-family: 'Plus Jakarta Sans', sans-serif;
  white-space: nowrap;
}

/* ── Card Footer — No price, Enroll only ─── */
.cc-footer {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding-top: 1.1rem;
  border-top: 1px solid var(--border);
  margin-top: auto;
}

.cc-enroll {
  background: var(--navy);
  color: var(--white);
  padding: .55rem 1.3rem;
  border-radius: 8px;
  font-size: .8rem;
  font-weight: 700;
  font-family: 'Plus Jakarta Sans', sans-serif;
  transition: background .25s, transform .2s, box-shadow .25s;
  text-decoration: none;
  display: inline-block;
  border: 2px solid var(--navy);
}

.cc-enroll:hover {
  background: var(--gold);
  border-color: var(--gold);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(212,146,42,.3);
}

/* ── Responsive ──────────────────────────── */
@media (max-width: 768px) {
  .courses-grid { grid-template-columns: 1fr; }
  .cc-top { padding: 1.4rem 1.4rem 1.3rem; }
  .cc-body { padding: 1.2rem 1.4rem 1.5rem; }
}