/* ==========================================
   INTELLYJENT COURSE PAGE
========================================== */

/* Course Hero */
.course-hero {
  padding: 15px 0 25px;
}

.course-hero .container {
  display: flex;
  justify-content: center;
}

.course-hero-image {
  position: relative;
  isolation: isolate;
  width: 100%;
  max-width: 1250px;
  height: 480px;
  margin: 0 auto;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 20px;
  background: var(--home-navy);
}

/* HERO IMAGE */
.course-hero-image img {
  position: absolute;
  inset: 0;
  z-index: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

/* DARK IMAGE OVERLAY */
.course-hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: rgba(0, 0, 0, 0.55);
  pointer-events: none;
}

.course-hero h1 {
  position: relative;
  z-index: 2;
  display: block;
  width: 100%;
  max-width: 400px;
  margin: 0;
  padding: 20px;
  color: #ffffff;
  font-size: 40px;
  font-weight: 600;
  line-height: 1.25;
  text-align: center;
}

.course-overview {
  padding: 5px 0 55px;
  background: #ffffff;
}

.course-overview h2 {
  margin: 0 0 12px;
  color: var(--home-text);
  font-size: 28px;
  font-weight: 700;
  line-height: 1.3;
}

.course-overview h3 {
  margin: 0 0 18px;
  color: var(--home-text);
  font-size: 14px;
  font-weight: 500;
  line-height: 1.5;
}

.course-overview p {
  max-width: 1000px;
  margin: 0 0 18px;
  color: var(--home-text);
  font-size: 14px;
  font-weight: 400;
  line-height: 1.55;
}

/* What you will learn */

.course-learning {
  position: relative;
  overflow: hidden;
  padding: 85px 0 65px;
  background: var(--home-navy);
  color: #ffffff;
}

.course-learning .container {
  position: relative;
  z-index: 1;
  padding-left: 40px;
}

.course-learning h2 {
  margin: 0 0 22px;
  color: #ffffff;
  font-size: 23px;
  font-weight: 700;
  line-height: 1.3;
}

.course-learning ul {
  display: flex;
  flex-direction: column;
  gap: 13px;
  max-width: 1000px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.course-learning li {
  position: relative;
  padding-left: 12px;
  color: #ffffff;
  font-size: 13px;
  font-weight: 400;
  line-height: 1.8;
}

.course-learning li::before {
  content: "·";
  position: absolute;
  top: 0;
  left: 0;
  color: #ffffff;
  font-weight: 700;
}

/* WE are in class */

.course-class-section {
  position: relative;
  min-height: 120px;
  padding: 0;
  overflow: hidden;
  background: var(--home-navy);
}

.course-class-section .class-sun-decoration {
  position: absolute;
  top: 0;
  right: 7%;
  width: 105px;
  height: auto;
  display: block;
  z-index: 2;
  pointer-events: none;
}

/* Course outcomes */

.course-outcomes {
  padding: 60px 0 65px;
  background: #ffffff;
}

.course-outcomes h2 {
  margin: 0 0 15px;
  color: var(--home-text);
  font-size: 20px;
  font-weight: 700;
  line-height: 1.4;
}

.course-outcomes > .container > p {
  max-width: 480px;
  margin: 0 0 15px;
  color: var(--home-text);
  font-size: 13px;
  font-weight: 400;
  line-height: 1.7;
  margin-bottom: 50px;
}

.course-h4 {
  margin-top: 15px;
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0.4px;
}

.course-outcomes .apply-wrap {
  display: flex;
  justify-content: center;
  margin-top: 130px;
}

.course-outcomes .apply-button {
  min-width: 150px;
}

/* Tablet Responsiveness */

@media (max-width: 1000px) {
  .course-hero-image {
    height: 260px;
  }

  .course-learning::after {
    right: 3%;
  }
}

/* ==========================================
   6. MOBILE RESPONSIVENESS
========================================== */

@media (max-width: 700px) {
  .course-hero {
    padding: 15px 0 20px;
  }

  .course-hero-image {
    height: 220px;
    border-radius: 16px;
  }

  .course-hero h1 {
    font-size: 24px;
  }

  .course-overview {
    padding: 5px 0 35px;
  }

  .course-overview h2 {
    font-size: 21px;
  }

  .course-overview h3 {
    font-size: 13px;
  }

  .course-overview p {
    font-size: 13px;
    line-height: 1.65;
  }

  .course-learning {
    padding: 38px 0 45px;
  }

  .course-learning h2 {
    font-size: 21px;
  }

  .course-learning ul {
    gap: 12px;
  }

  .course-learning li {
    font-size: 12px;
  }

  .course-learning::after {
    width: 75px;
    height: 75px;
    top: -48px;
    right: 2%;
  }

  .course-outcomes {
    padding: 40px 0 50px;
  }

  .course-class-section {
    min-height: 85px;
  }

  .course-class-section .class-sun-decoration {
    width: 75px;
    right: 5%;
  }
}

/* ==========================================
   7. SMALL MOBILE
========================================== */

@media (max-width: 420px) {
  .course-hero-image {
    height: 190px;
  }

  .course-hero h1 {
    font-size: 20px;
  }
}
