/* ================================================================
   CYBER SECURITY COURSE PAGE — courses-cyber-security.css
   Matches Stitch reference: cyber_security_curriculum_refined_parity
   Zero inline styles.
   ================================================================ */

/* ── Hero ── */
.cs-hero {
  padding: 96px 32px;
  background: linear-gradient(135deg, var(--surface) 0%, var(--surface-low) 100%);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
  overflow: hidden;
  position: relative;
}
@media (max-width: 1024px) { .cs-hero { grid-template-columns: 1fr; padding: 56px 20px; } }

.cs-hero__admit-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 18px;
  background: var(--crimson);
  color: #fff;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  clip-path: polygon(0 0, calc(100% - 14px) 0, 100% 14px, 100% 100%, 0 100%);
  margin-bottom: 32px;
}
.cs-hero__admit-badge i { font-size: 14px; }

.cs-hero__h1 {
  font-family: var(--f-display);
  font-size: 3.25rem;
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--primary);
  margin-bottom: 24px;
}
.cs-hero__h1 span { color: var(--crimson); }
@media (max-width: 768px) { .cs-hero__h1 { font-size: 2.25rem; } }

.cs-hero__sub {
  font-size: 1.125rem;
  color: var(--on-surface-var);
  line-height: 1.75;
  max-width: 52ch;
  margin-bottom: 40px;
}

.cs-hero__ctas { display: flex; flex-wrap: wrap; gap: 14px; }

.cs-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 36px;
  font-family: var(--f-body);
  font-size: 0.875rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: all 0.2s;
  clip-path: polygon(0 0, calc(100% - 20px) 0, 100% 20px, 100% 100%, 0 100%);
}
.cs-btn:hover { filter: brightness(1.08); transform: translateY(-2px); }
.cs-btn--navy    { background: var(--primary); color: #fff; box-shadow: 0 8px 24px rgba(1,21,80,0.2); }
.cs-btn--outline { background: var(--surface-low); color: var(--crimson); border: 2px solid var(--crimson); clip-path: none; }

.cs-hero__img-wrap {
  position: relative;
  aspect-ratio: 1/1;
  max-width: 500px;
  margin-inline: auto;
}
.cs-hero__img-wrap::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(149,3,41,0.05);
  border-radius: 50%;
  filter: blur(80px);
}
.cs-hero__img-frame {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  overflow: hidden;
  border: 8px solid #fff;
  box-shadow: 0 24px 64px rgba(1,21,80,0.2);
  clip-path: polygon(0 0, calc(100% - 40px) 0, 100% 40px, 100% 100%, 0 100%);
}
.cs-hero__img { width: 100%; height: 100%; object-fit: cover; display: block; }
.cs-hero__img-badge {
  position: absolute;
  top: 0;
  right: 0;
  background: #fff;
  padding: 14px 18px;
  border-radius: 16px;
  box-shadow: 0 8px 24px rgba(1,21,80,0.12);
  border: 1px solid var(--outline-var);
  display: flex;
  align-items: center;
  gap: 12px;
  z-index: 20;
  animation: bounce-subtle 2s infinite;
}
@keyframes bounce-subtle {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-6px); }
}
.cs-hero__img-badge-icon {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: var(--crimson);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; font-size: 18px;
}
.cs-hero__img-badge-title { font-weight: 700; font-size: 0.875rem; color: var(--primary); }
.cs-hero__img-badge-sub   { font-size: 0.6875rem; color: var(--on-surface-var); margin-top: 2px; }

/* ── Scientific Foundation ── */
.cs-foundation {
  padding: 96px 32px;
  background: var(--surface);
  text-align: center;
}
.cs-section-header { max-width: 640px; margin-inline: auto; margin-bottom: 64px; }
.cs-h2 {
  font-family: var(--f-display);
  font-size: 2rem; font-weight: 700;
  color: var(--primary); margin-bottom: 12px;
}
.cs-h2--white { color: #fff; }
.cs-section-sub { font-size: 1rem; color: var(--on-surface-var); line-height: 1.65; }
.cs-section-sub--white { color: rgba(255,255,255,0.7); }

.cs-foundation__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  text-align: left;
}
@media (max-width: 768px) { .cs-foundation__grid { grid-template-columns: 1fr; } }

.cs-found-card {
  padding: 40px;
  background: #fff;
  border: 1px solid rgba(197,197,209,0.3);
  box-shadow: 0 2px 8px rgba(14,22,51,0.05);
  clip-path: polygon(0 0, calc(100% - 32px) 0, 100% 32px, 100% 100%, 0 100%);
  transition: box-shadow 0.25s, transform 0.25s;
}
.cs-found-card:hover { box-shadow: 0 12px 40px rgba(1,21,80,0.12); transform: translateY(-4px); }

.cs-found-card__icon {
  width: 64px; height: 64px;
  background: var(--crimson);
  color: #fff;
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 28px;
  margin-bottom: 28px;
  transition: transform 0.25s;
}
.cs-found-card:hover .cs-found-card__icon { transform: scale(1.1); }

.cs-found-card__h3 {
  font-family: var(--f-display);
  font-size: 1.25rem; font-weight: 700;
  color: var(--primary); margin-bottom: 12px;
}
.cs-found-card__desc { font-size: 0.9375rem; color: var(--on-surface-var); line-height: 1.65; margin-bottom: 20px; }

.cs-found-card__list { display: flex; flex-direction: column; gap: 8px; }
.cs-found-card__list-item {
  display: flex; align-items: center; gap: 8px;
  font-size: 0.875rem; color: rgba(1,21,80,0.8); font-weight: 500;
}
.cs-found-card__dot { width: 6px; height: 6px; background: var(--crimson); flex-shrink: 0; }

.cs-found-card__tags { display: flex; gap: 8px; flex-wrap: wrap; }
.cs-found-card__tag {
  padding: 4px 10px;
  background: var(--surface-high);
  color: var(--primary);
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.cs-found-card__network {
  height: 80px;
  background: var(--surface-low);
  border: 1px solid var(--outline-var);
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
}
.cs-found-card__network-icon { font-size: 2.5rem; color: rgba(1,21,80,0.2); }

/* ── Learning Journey ── */
.cs-journey {
  padding: 96px 32px;
  background: var(--surface-low);
  overflow: hidden;
}
.cs-journey__h2 {
  font-family: var(--f-display);
  font-size: 2rem; font-weight: 700;
  color: var(--primary); margin-bottom: 48px;
}

.cs-journey__grid {
  display: grid;
  grid-template-columns: 7fr 5fr;
  gap: 24px;
}
@media (max-width: 1024px) { .cs-journey__grid { grid-template-columns: 1fr; } }

.cs-phase {
  background: var(--primary);
  padding: 48px;
  color: #fff;
  clip-path: polygon(0 0, calc(100% - 40px) 0, 100% 40px, 100% 100%, 0 100%);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}
.cs-phase__bg-icon {
  position: absolute;
  top: 0; right: 0;
  padding: 32px;
  font-size: 10rem;
  color: rgba(255,255,255,0.08);
  line-height: 1;
  pointer-events: none;
}
.cs-phase__badge {
  display: inline-block;
  padding: 4px 16px;
  background: var(--crimson);
  color: #fff;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  clip-path: polygon(0 0, calc(100% - 10px) 0, 100% 10px, 100% 100%, 0 100%);
  margin-bottom: 20px;
  position: relative; z-index: 1;
}
.cs-phase__h3 {
  font-family: var(--f-display);
  font-size: 1.75rem; font-weight: 700;
  color: #fff; margin-bottom: 16px;
  position: relative; z-index: 1;
}
.cs-phase__desc {
  font-size: 1rem;
  color: rgba(255,255,255,0.7);
  line-height: 1.75;
  max-width: 52ch;
  margin-bottom: 32px;
  position: relative; z-index: 1;
}
.cs-phase__list { display: flex; flex-direction: column; gap: 14px; position: relative; z-index: 1; }
.cs-phase__item { display: flex; align-items: center; gap: 12px; font-size: 1rem; color: #fff; }
.cs-phase__item i { color: var(--coral); font-size: 18px; }

.cs-journey__side { display: flex; flex-direction: column; gap: 24px; }

.cs-lab-card {
  background: #fff;
  padding: 40px;
  clip-path: polygon(0 0, calc(100% - 32px) 0, 100% 32px, 100% 100%, 0 100%);
  border: 1px solid rgba(197,197,209,0.3);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  flex: 1;
}
.cs-lab-card__head { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 14px; }
.cs-lab-card__h3 { font-family: var(--f-display); font-size: 1.25rem; font-weight: 700; color: var(--primary); }
.cs-lab-card__icon { font-size: 24px; color: var(--crimson); transition: transform 0.4s; }
.cs-lab-card:hover .cs-lab-card__icon { transform: rotate(45deg); }
.cs-lab-card__desc { font-size: 0.9375rem; color: var(--on-surface-var); line-height: 1.65; }
.cs-lab-card__avatars { display: flex; margin-top: 28px; }
.cs-lab-card__avatar {
  width: 44px; height: 44px;
  border-radius: 50%;
  border: 3px solid #fff;
  background: var(--surface-cont);
  overflow: hidden;
  margin-left: -12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.75rem; font-weight: 700;
}
.cs-lab-card__avatar:first-child { margin-left: 0; }
.cs-lab-card__avatar--count { background: var(--primary); color: #fff; font-size: 0.6875rem; }

.cs-africa-card {
  background: var(--crimson);
  color: #fff;
  padding: 40px;
  clip-path: polygon(0 0, calc(100% - 32px) 0, 100% 32px, 100% 100%, 0 100%);
  position: relative;
  overflow: hidden;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.cs-africa-card__bg-icon {
  position: absolute;
  right: -40px; bottom: -40px;
  font-size: 10rem;
  color: rgba(255,255,255,0.08);
  pointer-events: none;
}
.cs-africa-card__h3 { font-family: var(--f-display); font-size: 1.25rem; font-weight: 700; color: #fff; margin-bottom: 10px; position: relative; z-index: 1; }
.cs-africa-card__desc { font-size: 0.9375rem; color: rgba(255,255,255,0.8); line-height: 1.65; position: relative; z-index: 1; }
.cs-africa-card__link { font-size: 0.875rem; font-weight: 700; color: #fff; text-decoration: underline; text-underline-offset: 4px; margin-top: 20px; position: relative; z-index: 1; display: inline-block; }

/* ── Tech Stack ── */
.cs-stack {
  padding: 96px 32px;
  background: var(--surface);
  text-align: center;
}
.cs-stack__h2 {
  font-family: var(--f-display);
  font-size: 2rem; font-weight: 700;
  color: var(--primary); margin-bottom: 64px;
}
.cs-stack__grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 64px;
  opacity: 0.6;
  transition: opacity 0.3s;
}
.cs-stack__grid:hover { opacity: 1; }
.cs-stack__item { display: flex; flex-direction: column; align-items: center; gap: 14px; }
.cs-stack__icon { font-size: 3rem; color: var(--primary); }
.cs-stack__label {
  font-size: 0.6875rem; font-weight: 700;
  letter-spacing: 0.15em; text-transform: uppercase;
  color: var(--primary);
}

/* ── Career Outcomes ── */
.cs-careers {
  padding: 96px 32px;
  background: var(--primary);
  color: #fff;
  position: relative;
  overflow: hidden;
}
.cs-careers::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at center, rgba(149,3,41,0.08) 0%, transparent 70%);
  pointer-events: none;
}
.cs-careers__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
  position: relative;
  z-index: 1;
}
@media (max-width: 1024px) { .cs-careers__grid { grid-template-columns: 1fr; gap: 48px; } }

.cs-careers__h2 {
  font-family: var(--f-display);
  font-size: 3rem; font-weight: 800;
  color: #fff; margin-bottom: 24px; letter-spacing: -0.02em;
}
@media (max-width: 768px) { .cs-careers__h2 { font-size: 2rem; } }
.cs-careers__sub { font-size: 1.0625rem; color: rgba(255,255,255,0.7); line-height: 1.75; margin-bottom: 48px; }

.cs-career-list { display: flex; flex-direction: column; gap: 20px; }
.cs-career-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 24px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  clip-path: polygon(0 0, calc(100% - 24px) 0, 100% 24px, 100% 100%, 0 100%);
  transition: background 0.2s;
}
.cs-career-item:hover { background: rgba(255,255,255,0.1); }
.cs-career-item__icon { font-size: 22px; color: var(--coral); flex-shrink: 0; margin-top: 2px; }
.cs-career-item__title { font-family: var(--f-display); font-size: 1.0625rem; font-weight: 700; color: var(--coral); margin-bottom: 6px; }
.cs-career-item__desc  { font-size: 0.9375rem; color: rgba(255,255,255,0.7); line-height: 1.6; }

/* Apply form box */
.cs-apply-box {
  background: #fff;
  color: var(--on-surface);
  padding: 40px;
  clip-path: polygon(0 0, calc(100% - 32px) 0, 100% 32px, 100% 100%, 0 100%);
  box-shadow: 0 24px 64px rgba(1,21,80,0.3);
}
.cs-apply-box__h3 { font-family: var(--f-display); font-size: 1.75rem; font-weight: 700; color: var(--primary); margin-bottom: 8px; }
.cs-apply-box__sub { font-size: 0.9375rem; color: var(--on-surface-var); margin-bottom: 28px; }

.cs-form { display: flex; flex-direction: column; gap: 16px; }
.cs-form__label { display: block; font-size: 0.875rem; font-weight: 600; color: var(--primary); margin-bottom: 6px; }
.cs-form__input {
  width: 100%;
  padding: 16px 20px;
  border: 1px solid var(--outline-var);
  background: #fff;
  font-family: var(--f-body);
  font-size: 0.9375rem;
  color: var(--on-surface);
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.cs-form__input:focus { border-color: var(--crimson); box-shadow: 0 0 0 3px rgba(149,3,41,0.08); }
.cs-form__input::placeholder { color: var(--on-surface-var); }
.cs-form__submit {
  width: 100%;
  padding: 18px;
  background: var(--crimson);
  color: #fff;
  font-family: var(--f-body);
  font-size: 0.875rem;
  font-weight: 700;
  border: none;
  cursor: pointer;
  clip-path: polygon(0 0, calc(100% - 16px) 0, 100% 16px, 100% 100%, 0 100%);
  transition: filter 0.2s;
  margin-top: 8px;
}
.cs-form__submit:hover { filter: brightness(1.1); }
.cs-form__note { font-size: 0.75rem; color: var(--on-surface-var); text-align: center; margin-top: 12px; }

/* ════════ COURSE META BAR ════════ */
.cs-meta-bar {
  background: #fff;
  border-top: 1px solid var(--outline-var);
  border-bottom: 1px solid var(--outline-var);
  position: sticky;
  top: 72px;
  z-index: 900;
  box-shadow: 0 4px 12px rgba(1,21,80,0.07);
}
.cs-meta-bar__inner {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  divide-x: 1px solid var(--outline-var);
}
@media (max-width: 768px) { .cs-meta-bar__inner { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .cs-meta-bar__inner { grid-template-columns: 1fr; } }

.cs-meta-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 24px 28px;
  border-right: 1px solid var(--outline-var);
}
.cs-meta-item:last-child { border-right: none; }
@media (max-width: 768px) {
  .cs-meta-item:nth-child(2n) { border-right: none; }
  .cs-meta-item { border-bottom: 1px solid var(--outline-var); }
}

.cs-meta-item__icon {
  width: 40px; height: 40px;
  border-radius: 50%;
  border: 2px solid rgba(149,3,41,0.15);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  color: var(--crimson);
  font-size: 16px;
}
.cs-meta-item__label {
  font-size: 0.625rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--on-surface-var);
  margin-bottom: 4px;
}
.cs-meta-item__value {
  font-family: var(--f-display);
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--primary);
}

/* ════════ BREADCRUMB ════════ */
.cs-breadcrumb {
  padding: 14px 32px;
  background: var(--surface-low);
  border-bottom: 1px solid var(--outline-var);
}
.cs-breadcrumb__list {
  display: flex;
  align-items: center;
  gap: 8px;
  list-style: none;
  margin: 0; padding: 0;
  font-size: 0.875rem;
}
.cs-breadcrumb__item { display: flex; align-items: center; gap: 8px; }
.cs-breadcrumb__item::after { content: ">"; color: var(--on-surface-var); font-size: 0.75rem; }
.cs-breadcrumb__item:last-child::after { display: none; }
.cs-breadcrumb__link { color: var(--primary); font-weight: 600; text-decoration: none; }
.cs-breadcrumb__link:hover { color: var(--crimson); }
.cs-breadcrumb__link i { margin-right: 4px; }
.cs-breadcrumb__current { color: var(--on-surface-var); }

/* ── Form additions ── */
.cs-form__req { color: var(--crimson); }
.cs-form__select {
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23011550' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 44px;
  cursor: pointer;
}
.cs-form__feedback {
  padding: 14px 18px;
  border-radius: 6px;
  font-size: 0.9375rem;
  font-weight: 600;
  line-height: 1.55;
}
.cs-form__feedback--ok  { background: #e6f9ee; color: #0a5c2e; border: 1px solid #9adbb8; }
.cs-form__feedback--err { background: #fef0ee; color: #7a1010; border: 1px solid #f5b8b0; }
.cs-form__submit-spinner { display: inline-block; }
