@import url('https://fonts.googleapis.com/css2?family=Nunito:wght@400;600;700;800;900&display=swap');

/* ── Reset ── */
.cert-section *,
.cert-section *::before,
.cert-section *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* ── Section ── */
.cert-section {
  font-family: 'Nunito', sans-serif;
  background: linear-gradient(to bottom, #f0f4fb 0%, #f0f4fb 80%, #ffffff 100%);
  padding: 32px 14px 48px;
}

.cert-section__inner {
  max-width: 1200px;
  margin: 0 auto;
}

/* ── Title ── */
.cert-section__title {
  text-align: center;
  font-size: clamp(1.25rem, 5vw, 2rem);
  font-weight: 900;
  color: #0d2d6e;
  line-height: 1.25;
  margin-bottom: 32px;
}

.cert-section__title span {
  color: #1a6de0;
}

/* ── Tile ── */
.cert-tile {
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 4px 28px rgba(13, 45, 110, 0.10);
  overflow: hidden;
}

/* ── Banner: stacked on mobile, side-by-side on desktop ── */
.cert-tile__banner {
  background:
    radial-gradient(ellipse at 70% 0%, rgba(99, 152, 255, 0.18) 0%, transparent 60%),
    radial-gradient(ellipse at 10% 100%, rgba(10, 122, 143, 0.14) 0%, transparent 55%),
    linear-gradient(135deg, #0e2556 0%, #153580 45%, #0f3d6b 100%);
  padding: 24px 20px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  position: relative;
  overflow: hidden;
}

.cert-tile__banner::before {
  content: '';
  position: absolute;
  top: -80px;
  right: -80px;
  width: 260px;
  height: 260px;
  border-radius: 50%;
  background: rgba(100, 160, 255, 0.07);
  pointer-events: none;
}

.cert-tile__banner::after {
  content: '';
  position: absolute;
  bottom: -50px;
  left: 30%;
  width: 180px;
  height: 180px;
  border-radius: 50%;
  background: rgba(92, 224, 200, 0.06);
  pointer-events: none;
}

/* ── Admissions Badge (Starburst shape) ── */
.cert-admissions-badge-wrapper {
  position: absolute;
  top: 15px;
  right: 15px;
  z-index: 10;
  filter: drop-shadow(0 4px 10px rgba(249, 86, 2, 0.45));
}

.cert-admissions-badge {
  width: 115px;
  height: 115px;
  background: linear-gradient(135deg, #ff7b2b 0%, #f95602 100%);
  clip-path: polygon(50.0% 0.0%, 54.8% 13.3%, 62.9% 1.7%, 64.2% 15.8%, 75.0% 6.7%,
      72.5% 20.6%, 85.4% 14.6%, 79.4% 27.5%, 93.3% 25.0%, 84.2% 35.8%,
      98.3% 37.1%, 86.7% 45.2%, 100.0% 50.0%, 86.7% 54.8%, 98.3% 62.9%,
      84.2% 64.2%, 93.3% 75.0%, 79.4% 72.5%, 85.4% 85.4%, 72.5% 79.4%,
      75.0% 93.3%, 64.2% 84.2%, 62.9% 98.3%, 54.8% 86.7%, 50.0% 100.0%,
      45.2% 86.7%, 37.1% 98.3%, 35.8% 84.2%, 25.0% 93.3%, 27.5% 79.4%,
      14.6% 85.4%, 20.6% 72.5%, 6.7% 75.0%, 15.8% 64.2%, 1.7% 62.9%,
      13.3% 54.8%, 0.0% 50.0%, 13.3% 45.2%, 1.7% 37.1%, 15.8% 35.8%,
      6.7% 25.0%, 20.6% 27.5%, 14.6% 14.6%, 27.5% 20.6%, 25.0% 6.7%,
      35.8% 15.8%, 37.1% 1.7%, 45.2% 13.3%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 12px;
  box-sizing: border-box;
}

.cert-admissions-badge span {
  display: block;
  color: #ffffff;
  font-family: 'Outfit', 'Inter', sans-serif;
  font-weight: 900;
  line-height: 1.25;
}

.cert-admissions-badge .cert-star-line-1 {
  font-size: 0.65rem;
}

.cert-admissions-badge .cert-star-line-2 {
  font-size: 0.58rem;
  font-weight: 700;
  margin: 2px 0;
}

.cert-admissions-badge .cert-star-line-3 {
  font-size: 0.65rem;
}

.cert-tile__heading {
  font-size: clamp(1.3rem, 5vw, 1.6rem);
  font-weight: 900;
  color: #fff;
  line-height: 1.2;
  margin-bottom: 6px;
  padding-right: 120px;
}

.cert-tile__tagline {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.65);
  font-weight: 600;
  margin-bottom: 0;
  padding-right: 120px;
}

/* Audience pills */
.cert-tile__audience-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 12px;
}

.cert-audience-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.71rem;
  font-weight: 700;
  padding: 4px 11px;
  border-radius: 50px;
  white-space: nowrap;
}

.cert-audience-pill--date {
  background: rgba(120, 180, 255, 0.14);
  border-color: rgba(120, 180, 255, 0.28);
  color: #a8d4ff;
}

/* Stats: 2x2 on mobile, 4-col on tablet+ */
.cert-banner-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 36px;
}

.cert-banner-stat {
  background: rgba(255, 255, 255, 0.13);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 10px;
  padding: 10px 8px 9px;
  text-align: center;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: background 0.22s, transform 0.18s, box-shadow 0.22s;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.18), inset 0 1px 0 rgba(255, 255, 255, 0.15);
  position: relative;
  overflow: hidden;
}

.cert-banner-stat::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 40%;
  height: 2px;
  border-radius: 0 0 4px 4px;
  background: linear-gradient(90deg, transparent, rgba(180, 215, 255, 0.7), transparent);
}

.cert-banner-stat:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.22), inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.cert-banner-stat__number {
  display: block;
  font-size: 1.05rem;
  font-weight: 900;
  color: #ffffff;
  line-height: 1.2;
  margin-bottom: 5px;
  letter-spacing: 0;
  text-shadow: 0 1px 8px rgba(120, 180, 255, 0.4);
}

.cert-banner-stat__label {
  font-size: 0.67rem;
  font-weight: 700;
  color: rgba(200, 220, 255, 0.82);
  line-height: 1.3;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

/* ── Body ── */
.cert-tile__body {
  padding: 20px 20px 24px;
}

/* Single column on mobile */
.cert-tile__columns {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  margin-bottom: 18px;
}

.cert-tile__desc {
  font-size: 0.88rem;
  color: #5a6a85;
  line-height: 1.75;
}

/* Highlights */
.cert-highlights {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.cert-highlights li {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 0.85rem;
  color: #2c3e60;
  line-height: 1.45;
  font-weight: 600;
}

.cert-highlight-dot {
  flex-shrink: 0;
  width: 17px;
  height: 17px;
  background: #e8f0fe;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 1px;
  font-size: 0.6rem;
  color: #1a6de0;
  font-weight: 900;
}


/* ── Footer ── */
.cert-tile__footer {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding-top: 16px;
  border-top: 1px solid #edf2fb;
}

.cert-meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.cert-meta-pill {
  background: #f0f4fb;
  border: 1px solid #d0ddf5;
  color: #2c3e60;
  font-size: 0.76rem;
  font-weight: 700;
  padding: 5px 11px;
  border-radius: 6px;
  white-space: nowrap;
}

.cert-meta-pill span {
  color: #1a6de0;
}

.cert-cta-row {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.cert-cta-primary {
  display: inline-block;
  background: #ff6b1a;
  color: #fff;
  font-family: 'Nunito', sans-serif;
  font-size: 1rem;
  font-weight: 800;
  padding: 14px 28px;
  border-radius: 8px;
  text-decoration: none;
  border: none;
  cursor: pointer;
  text-align: center;
  transition: background 0.2s, transform 0.18s;
}

.cert-cta-primary:hover {
  background: #e05510;
  transform: translateY(-2px);
  color: #fff;
  text-decoration: none;
}

.cert-cta-note {
  font-size: 0.78rem;
  color: #8a9ab8;
  font-weight: 600;
  text-align: center;
}

/* ── Tablet (600px+) ── */
@media (min-width: 600px) {
  .cert-section {
    padding: 40px 20px 56px;
  }

  .cert-tile__banner {
    flex-direction: row;
    align-items: center;
    padding: 26px 28px;
    gap: 24px;
  }

  .cert-admissions-badge-wrapper {
    top: 50%;
    right: 12px;
    transform: translateY(-50%);
    filter: drop-shadow(0 5px 12px rgba(249, 86, 2, 0.45));
  }

  .cert-admissions-badge {
    width: 140px;
    height: 140px;
    padding: 14px;
  }

  .cert-admissions-badge .cert-star-line-1 {
    font-size: 0.8rem;
  }

  .cert-admissions-badge .cert-star-line-2 {
    font-size: 0.72rem;
    margin: 2px 0;
  }

  .cert-admissions-badge .cert-star-line-3 {
    font-size: 0.8rem;
  }

  .cert-tile__heading {
    padding-right: 0;
  }

  .cert-tile__tagline {
    padding-right: 0;
  }

  .cert-tile__body {
    padding: 22px 28px 26px;
  }

  .cert-banner-stats {
    display: grid;
    grid-template-columns: repeat(2, 95px);
    gap: 8px;
    margin-top: 0;
    margin-right: 155px;
    /* Sit to the left of the star badge */
    flex-shrink: 0;
  }

  .cert-banner-stat {
    padding: 8px 4px;
    border-radius: 8px;
  }

  .cert-banner-stat__number {
    font-size: 0.82rem;
    margin-bottom: 2px;
  }

  .cert-banner-stat__label {
    font-size: 0.54rem;
  }

  .cert-tile__columns {
    grid-template-columns: 1fr 1fr;
    gap: 28px;
  }

  .cert-tile__footer {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }

  .cert-cta-row {
    flex-direction: row;
    align-items: center;
    flex-shrink: 0;
    gap: 12px;
  }

  .cert-cta-primary {
    display: inline-block;
    white-space: nowrap;
  }

  .cert-cta-note {
    text-align: left;
  }
}

/* ── Desktop (900px+) ── */
@media (min-width: 900px) {
  .cert-section {
    padding: 52px 24px 60px;
  }

  .cert-tile__banner {
    flex-direction: row;
    align-items: center;
    padding: 35px 40px;
    gap: 32px;
  }

  .cert-admissions-badge-wrapper {
    top: 50%;
    right: 20px;
    transform: translateY(-50%);
    filter: drop-shadow(0 8px 18px rgba(249, 86, 2, 0.5));
  }

  .cert-admissions-badge {
    width: 185px;
    /* Enlarge the star */
    height: 185px;
    padding: 20px;
  }

  .cert-admissions-badge .cert-star-line-1 {
    font-size: 1.05rem;
  }

  .cert-admissions-badge .cert-star-line-2 {
    font-size: 0.9rem;
    margin: 4px 0;
  }

  .cert-admissions-badge .cert-star-line-3 {
    font-size: 1.05rem;
  }

  .cert-tile__heading {
    padding-right: 0;
  }

  .cert-tile__banner-left {
    flex: 1;
  }

  .cert-banner-stats {
    display: grid;
    grid-template-columns: repeat(2, 105px);
    /* Shrunken width */
    gap: 8px;
    width: auto;
    margin-right: 205px;
    /* Sit to the left of the star badge with nice gap */
    margin-top: 0;
    flex-shrink: 0;
  }

  .cert-banner-stat {
    padding: 9px 6px;
    border-radius: 8px;
  }

  .cert-banner-stat__number {
    font-size: 0.88rem;
    margin-bottom: 2px;
  }

  .cert-banner-stat__label {
    font-size: 0.58rem;
  }

  .cert-tile__body {
    padding: 24px 40px 30px;
  }

  .cert-benefits-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}