/* ============================================
   Programs Offered — Modern Redesign
   Base: 1rem = 10px (html { font-size: 62.5% })
   ============================================ */

/* ---- Keyframes ---- */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(36px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes headingLine {
  from { width: 0; }
  to   { width: 60px; }
}

/* ============================================
   SECTION
   ============================================ */
.courses--modern {
  position: relative;
  padding: 8rem 3rem 6rem;
  /* Break out of main { max-width: 1280px } container */
  width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  /* Dot-grid + gradient background */
  background-color: #eef2ff;
  background-image:
    radial-gradient(circle, #c7d2fe 1.2px, transparent 1.2px);
  background-size: 26px 26px;
  overflow: hidden;
}

/* Fade dot grid out at top and bottom edges */
.courses--modern::before,
.courses--modern::after {
  content: '';
  position: absolute;
  left: 0; right: 0;
  height: 100px;
  pointer-events: none;
  z-index: 1;
}
.courses--modern::before {
  top: 0;
  background: linear-gradient(to bottom, #eef2ff 0%, transparent 100%);
}
.courses--modern::after {
  bottom: 0;
  background: linear-gradient(to top, #eef2ff 0%, transparent 100%);
}

/* All content above the fades */
.courses--modern > * {
  position: relative;
  z-index: 2;
}

/* ============================================
   SECTION HEADER
   ============================================ */
.courses__header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 5rem;
}

.courses--modern .heading-secondary {
  color: #1e3a6e;
  letter-spacing: 0.5px;
  display: inline-block;
  position: relative;
  padding-bottom: 1.6rem;
}

/* Animated underline on heading */
.courses--modern .heading-secondary::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  height: 4px;
  width: 60px;
  border-radius: 2px;
  background: linear-gradient(90deg, #1d4ed8, #06b6d4);
  animation: headingLine 0.8s ease 0.3s both;
}

.courses__subtitle {
  font-family: 'Lato', sans-serif;
  font-size: 1.6rem;
  color: #64748b;
  line-height: 1.7;
  margin-top: 1.6rem;
}

/* ============================================
   CATEGORY LABELS
   ============================================ */
.courses__category {
  max-width: 1200px;
  margin: 0 auto 1.2rem;
  display: flex;
  align-items: center;
  gap: 1.2rem;
}

.courses__category-label {
  font-family: 'Lato', sans-serif;
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #94a3b8;
}

.courses__category::after {
  content: '';
  flex: 1;
  height: 1px;
  background: #e2e8f0;
}

/* ============================================
   GRID
   ============================================ */
.courses__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto 3.5rem;
}

/* ============================================
   ACCENT COLORS PER CARD (CSS custom props)
   ============================================ */
.courses__grid:first-of-type .course-card:nth-child(1) {
  --accent:       #1e3a6e;
  --accent-light: #dbeafe;
}
.courses__grid:first-of-type .course-card:nth-child(2) {
  --accent:       #0891b2;
  --accent-light: #cffafe;
}
.courses__grid:first-of-type .course-card:nth-child(3) {
  --accent:       #059669;
  --accent-light: #d1fae5;
}
.courses__grid:last-of-type .course-card:nth-child(1) {
  --accent:       #d97706;
  --accent-light: #fef3c7;
}
.courses__grid:last-of-type .course-card:nth-child(2) {
  --accent:       #7c3aed;
  --accent-light: #ede9fe;
}
.courses__grid:last-of-type .course-card:nth-child(3) {
  --accent:       #0f766e;
  --accent-light: #ccfbf1;
}

/* ============================================
   BASE CARD
   ============================================ */
.course-card {
  --accent:       #1e3a6e;
  --accent-light: #dbeafe;

  background: #fff;
  border: 1px solid #e2e8f0;
  border-top: 4px solid var(--accent);
  border-radius: 14px;
  padding: 2.8rem 2.6rem 2.4rem;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
  transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease;
  animation: fadeInUp 0.6s ease both;
}

/* Corner decoration (top-right quadrant) */
.course-card::before {
  content: '';
  position: absolute;
  top: -1px; right: -1px;
  width: 90px; height: 90px;
  background: var(--accent-light);
  border-radius: 0 14px 0 100%;
  opacity: 0.45;
  transition: opacity 0.35s ease, width 0.35s ease, height 0.35s ease;
  pointer-events: none;
}

.course-card:hover {
  transform: translateY(-7px);
  box-shadow:
    0 20px 40px rgba(0, 0, 0, 0.09),
    0 0 0 2px var(--accent);
}

.course-card:hover::before {
  opacity: 0.75;
  width: 110px;
  height: 110px;
}

/* Stagger delays — row 1 */
.courses__grid:first-of-type .course-card:nth-child(1) { animation-delay: 0.10s; }
.courses__grid:first-of-type .course-card:nth-child(2) { animation-delay: 0.22s; }
.courses__grid:first-of-type .course-card:nth-child(3) { animation-delay: 0.34s; }

/* Stagger delays — row 2 */
.courses__grid:last-of-type  .course-card:nth-child(1) { animation-delay: 0.18s; }
.courses__grid:last-of-type  .course-card:nth-child(2) { animation-delay: 0.30s; }
.courses__grid:last-of-type  .course-card:nth-child(3) { animation-delay: 0.42s; }

/* ============================================
   CARD ELEMENTS
   ============================================ */

/* Abbreviation pill */
.course-card__abbr {
  display: inline-block;
  font-family: 'Lato', sans-serif;
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  color: #fff;
  background: var(--accent);
  text-transform: uppercase;
  border-radius: 999px;
  padding: 0.35rem 1.2rem;
  margin-bottom: 1.4rem;
  width: fit-content;
  position: relative;
  z-index: 1;
}

/* Program title */
.course-card__title {
  font-family: 'Merriweather', serif;
  font-size: 2.2rem;
  font-weight: 700;
  color: #111827;
  line-height: 1.3;
  margin-bottom: 1rem;
  position: relative;
  z-index: 1;
}

/* Description */
.course-card__desc {
  font-family: 'Lato', sans-serif;
  font-size: 1.45rem;
  font-weight: 400;
  color: #4b5563;
  line-height: 1.78;
  letter-spacing: 0.01em;
  flex: 1;
  margin-bottom: 1.8rem;
  position: relative;
  z-index: 1;
}

/* Divider (used in Nursing card) */
.course-card__divider {
  border: none;
  border-top: 1px solid #e9ecef;
  margin: 0.8rem 0 1.2rem;
}

/* Stat row (used in Nursing card) */
.course-card__stat {
  font-family: 'Lato', sans-serif;
  font-size: 1.3rem;
  color: #6b7280;
}

.course-card__stat strong {
  color: var(--accent);
  font-size: 1.55rem;
}

/* Footer */
.course-card__footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 1.2rem;
  border-top: 1px solid #f0f2f5;
  margin-top: auto;
  position: relative;
  z-index: 1;
}

.course-card__meta {
  font-family: 'Lato', sans-serif;
  font-size: 1.3rem;
  color: #6b7280;
}

/* "Learn more →" link */
.course-card__link {
  font-family: 'Lato', sans-serif;
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--accent);
  text-decoration: none;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  transition: gap 0.25s ease, color 0.2s ease;
}

.course-card__link:hover {
  gap: 0.8rem;
  color: var(--accent);
  text-decoration: none;
}

/* ============================================
   SHS STANDALONE — REDESIGNED
   ============================================ */

@keyframes shsSlideLeft {
  from { opacity: 0; transform: translateX(-40px); }
  to   { opacity: 1; transform: translateX(0); }
}
@keyframes shsSlideRight {
  from { opacity: 0; transform: translateX(40px); }
  to   { opacity: 1; transform: translateX(0); }
}
@keyframes strandIn {
  from { opacity: 0; transform: translateX(-12px); }
  to   { opacity: 1; transform: translateX(0); }
}
@keyframes pulse {
  0%, 100% { transform: scale(1);    opacity: 1; }
  50%       { transform: scale(1.08); opacity: 0.7; }
}

.shs-standalone {
  position: relative;
  padding: 7rem 3rem 6rem;
  width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  background: linear-gradient(160deg, #fef9ec 0%, #fffdf6 55%, #fff 100%);
  overflow: hidden;
}

/* Background orbs */
.shs-bg-orb {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
}
.shs-bg-orb--1 {
  width: 520px; height: 520px;
  top: -200px; right: -100px;
  background: radial-gradient(circle, rgba(254,243,199,0.9) 0%, transparent 70%);
}
.shs-bg-orb--2 {
  width: 400px; height: 400px;
  bottom: -150px; left: -80px;
  background: radial-gradient(circle, rgba(253,230,138,0.45) 0%, transparent 70%);
}

/* ---- Hero ---- */
.shs-hero {
  max-width: 1200px;
  margin: 0 auto 5rem;
  display: flex;
  align-items: center;
  gap: 4rem;
  position: relative;
  z-index: 2;
  animation: fadeInUp 0.7s ease 0.1s both;
}

.shs-hero__logo-wrap {
  flex-shrink: 0;
  width: 150px;
  position: relative;
}

.shs-hero__logo-wrap::before {
  content: '';
  position: absolute;
  inset: -18px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(146,113,26,0.18) 0%, transparent 70%);
  animation: pulse 3s ease-in-out infinite;
}

.shs-hero__logo {
  width: 100%;
  height: auto;
  object-fit: contain;
  position: relative;
  z-index: 1;
  filter: drop-shadow(0 6px 18px rgba(146,113,26,0.3));
}

.shs-hero__content {
  flex: 1;
}

.shs-hero__eyebrow {
  display: inline-block;
  font-family: 'Lato', sans-serif;
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: #92711a;
  background: #fef3c7;
  border: 1px solid #fcd34d;
  border-radius: 999px;
  padding: 0.4rem 1.4rem;
  margin-bottom: 1.6rem;
}

.shs-hero__title {
  font-family: 'Merriweather', serif;
  font-size: 3.4rem;
  font-weight: 700;
  color: #111827;
  line-height: 1.25;
  margin-bottom: 1.4rem;
}

.shs-hero__desc {
  font-family: 'Lato', sans-serif;
  font-size: 1.6rem;
  color: #4b5563;
  line-height: 1.75;
  margin-bottom: 2.4rem;
  max-width: 620px;
}

.shs-hero__btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  background: #92711a;
  color: #fff;
  font-family: 'Lato', sans-serif;
  font-size: 1.5rem;
  font-weight: 700;
  text-decoration: none;
  border-radius: 999px;
  padding: 1.2rem 2.8rem;
  box-shadow: 0 4px 14px rgba(146,113,26,0.3);
  transition: background 0.25s ease, box-shadow 0.25s ease, gap 0.25s ease;
}

.shs-hero__btn:hover {
  background: #7a5e15;
  gap: 1rem;
  color: #fff;
  text-decoration: none;
  box-shadow: 0 8px 24px rgba(146,113,26,0.45);
}

/* ---- Track Cards ---- */
.shs-tracks {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2.4rem;
  position: relative;
  z-index: 2;
}

.shs-track-card {
  border-radius: 20px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 4px 24px rgba(146,113,26,0.1);
  border: 1px solid #fde68a;
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.shs-track-card--academic {
  animation: shsSlideLeft 0.7s ease 0.25s both;
}
.shs-track-card--techpro {
  animation: shsSlideRight 0.7s ease 0.4s both;
}

.shs-track-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 24px 48px rgba(146,113,26,0.22);
}

/* Gradient header band */
.shs-track-card__head {
  position: relative;
  padding: 3.2rem 3.2rem 2.8rem;
  overflow: hidden;
}

.shs-track-card--academic .shs-track-card__head {
  background: linear-gradient(135deg, #7c5a12 0%, #92711a 50%, #b8901f 100%);
}
.shs-track-card--techpro .shs-track-card__head {
  background: linear-gradient(135deg, #3d2f0a 0%, #5c4510 50%, #7c5a12 100%);
}

/* Large watermark number */
.shs-track-card__bg-num {
  position: absolute;
  right: 2.4rem;
  bottom: -1.5rem;
  font-family: 'Merriweather', serif;
  font-size: 11rem;
  font-weight: 700;
  line-height: 1;
  color: rgba(255,255,255,0.1);
  pointer-events: none;
  user-select: none;
}

.shs-track-card__label {
  font-family: 'Lato', sans-serif;
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.65);
  margin-bottom: 0.6rem;
  position: relative;
  z-index: 1;
}

.shs-track-card__title {
  font-family: 'Merriweather', serif;
  font-size: 2.8rem;
  font-weight: 700;
  color: #fff;
  line-height: 1.2;
  margin-bottom: 1.2rem;
  position: relative;
  z-index: 1;
}

.shs-track-card__desc {
  font-family: 'Lato', sans-serif;
  font-size: 1.45rem;
  color: rgba(255,255,255,0.82);
  line-height: 1.75;
  position: relative;
  z-index: 1;
}

/* White body with strand list */
.shs-track-card__body {
  padding: 2.6rem 3.2rem 2.8rem;
}

.shs-track-card__strands {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.shs-track-card__strands li {
  font-family: 'Lato', sans-serif;
  font-size: 1.4rem;
  color: #374151;
  padding-left: 2.6rem;
  position: relative;
  line-height: 1.55;
}

.shs-track-card__strands li::before {
  content: '✓';
  position: absolute;
  left: 0;
  top: 0.05rem;
  color: #92711a;
  font-weight: 700;
  font-size: 1.5rem;
}

/* Stagger strand items */
.shs-track-card__strands li:nth-child(1) { animation: strandIn 0.45s ease 0.5s  both; }
.shs-track-card__strands li:nth-child(2) { animation: strandIn 0.45s ease 0.62s both; }
.shs-track-card__strands li:nth-child(3) { animation: strandIn 0.45s ease 0.74s both; }
.shs-track-card__strands li:nth-child(4) { animation: strandIn 0.45s ease 0.86s both; }
.shs-track-card__strands li:nth-child(5) { animation: strandIn 0.45s ease 0.98s both; }

/* ============================================
   RESPONSIVE — TABLET  ≤ 992px
   ============================================ */
@media (max-width: 992px) {
  .courses--modern {
    padding: 6rem 2rem 4rem;
    width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
  }

  .courses__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .shs-standalone {
    padding: 5rem 2rem 4rem;
  }

  .shs-hero {
    gap: 2.5rem;
  }

  .shs-hero__logo-wrap {
    width: 120px;
  }

  .shs-hero__title {
    font-size: 2.8rem;
  }

  .shs-tracks {
    grid-template-columns: 1fr;
  }
}

/* ============================================
   RESPONSIVE — MOBILE  ≤ 576px
   ============================================ */
@media (max-width: 576px) {
  .courses--modern {
    padding: 4rem 1.5rem 3rem;
    width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
  }

  .courses__grid {
    grid-template-columns: 1fr;
    gap: 1.6rem;
    margin-bottom: 2.4rem;
  }

  .course-card {
    padding: 2.2rem 2rem;
  }

  .course-card__title {
    font-size: 2rem;
  }

  .course-card__desc {
    font-size: 1.4rem;
    line-height: 1.7;
  }

  .courses__subtitle {
    font-size: 1.5rem;
  }

  .shs-standalone {
    padding: 4rem 1.5rem 3.5rem;
  }

  .shs-hero {
    flex-direction: column;
    align-items: flex-start;
    gap: 2rem;
  }

  .shs-hero__logo-wrap {
    width: 100px;
  }

  .shs-hero__title {
    font-size: 2.4rem;
  }

  .shs-hero__desc {
    font-size: 1.5rem;
  }

  .shs-tracks {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .shs-track-card__title {
    font-size: 2.2rem;
  }

  .shs-track-card__head {
    padding: 2.4rem 2.4rem 2rem;
  }

  .shs-track-card__body {
    padding: 2rem 2.4rem 2.4rem;
  }
}
