/* ==========================================================================
   EdCatalyst — CTF Page Styles
   (Layers on top of styles/main.css — shared variables/navbar/footer live there)
   ========================================================================== */

/* ---------------- Hero ---------------- */
.ctf-hero {
  position: relative;
  overflow: hidden;
  background: var(--ec-gradient-1);
  color: #fff;
}

.ctf-hero .blob-1 {
  width: 320px;
  height: 320px;
  background: rgba(255, 255, 255, 0.18);
  top: -110px;
  right: -90px;
  filter: blur(60px);
}

.ctf-hero .blob-2 {
  width: 260px;
  height: 260px;
  background: rgba(255, 255, 255, 0.12);
  bottom: -90px;
  left: -70px;
  filter: blur(60px);
}

.ctf-hero .badge-pill-glow {
  background: rgba(255, 255, 255, 0.2);
  box-shadow: none;
}

.ctf-hero .text-gradient {
  background: linear-gradient(135deg, #fff, #ffe6c2);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.ctf-hero-title {
  font-size: 2.4rem;
  font-weight: 800;
  color: #fff;
  margin: 1rem 0 0.6rem;
}

.ctf-hero-sub {
  font-size: 1.05rem;
  opacity: 0.95;
  max-width: 560px;
  margin: 0 auto;
}

/* ---------------- Challenge jump nav ---------------- */
.ctf-jump-group {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  justify-content: center;
}

.btn-ctf-jump {
  background: #fff;
  color: var(--ec-terracotta);
  font-weight: 700;
  font-size: 0.9rem;
  border: 2px solid var(--ec-terracotta);
  border-radius: 30px;
  padding: 0.55rem 1.3rem;
  text-decoration: none;
  transition: all 0.25s ease;
}

.btn-ctf-jump:hover {
  background: var(--ec-gradient-1);
  color: #fff;
  border-color: transparent;
  transform: translateY(-2px);
  text-decoration: none;
}

.btn-ctf-jump.active-jump {
  background: var(--ec-gradient-1);
  color: #fff;
  border-color: transparent;
}

/* ---------------- Challenge cards ---------------- */
.ctf-card {
  background: #fff;
  border-radius: 20px;
  padding: 2.2rem;
  margin-top: 2.5rem;
  box-shadow: var(--ec-shadow-soft);
  border: 1px solid rgba(168, 60, 12, 0.06);
  position: relative;
  scroll-margin-top: 100px;
}

.ctf-card-badge {
  display: inline-block;
  color: #fff;
  font-weight: 700;
  font-size: 0.82rem;
  padding: 0.4rem 1rem;
  border-radius: 20px;
  margin-bottom: 1rem;
}

.ctf-badge-1 { background: var(--ec-gradient-1); }
.ctf-badge-2 { background: var(--ec-gradient-3); }

.ctf-heading {
  font-weight: 800;
  font-size: 1.5rem;
  color: var(--ec-ink);
  margin-bottom: 1rem;
}

.ctf-subheading {
  color: var(--ec-terracotta);
  font-weight: 700;
  font-size: 1.05rem;
  margin-top: 1.5rem;
  margin-bottom: 0.7rem;
}

.ctf-para {
  text-align: justify;
  color: var(--ec-ink-soft);
  font-size: 0.96rem;
  line-height: 1.7;
}

.ctf-pointers {
  padding-left: 1.2rem;
}

.ctf-pointers li {
  margin-bottom: 0.6rem;
  color: var(--ec-ink-soft);
  font-size: 0.95rem;
}

.ctf-release-date {
  color: var(--ec-gold);
  font-weight: 700;
}

.ctf-video-wrap {
  border-radius: 14px;
  overflow: hidden;
  box-shadow: var(--ec-shadow-strong);
  max-width: 700px;
  margin: 0 auto;
}

.ctf-video-wrap iframe {
  width: 100%;
  height: 400px;
  border: none;
  display: block;
}

/* ---------------- Responsive ---------------- */
@media (max-width: 768px) {
  .ctf-hero-title {
    font-size: 1.9rem;
  }
  .ctf-card {
    padding: 1.6rem 1.3rem;
  }
  .ctf-video-wrap iframe {
    height: 220px;
  }
}
