/*=============================
    Intermediate
    (copy of every .degree-* / #degree-* rule, renamed)
    Append this to the END of courses.css
=============================*/

.intermediate-hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 70px;
  align-items: center;
  padding-top: 110px;
  padding-bottom: 60px;
}

.intermediate-hero-content h1 {
  font-size: clamp(3.2rem, 6vw, 5.8rem);
  line-height: 1.05;
  font-weight: 700;
}

.intermediate-hero-tag {
  display: inline-flex;
  gap: 10px;
  padding: 10px 18px;
  border-radius: 50px;
  background: rgba(139, 92, 246, .12);
  border: 1px solid rgba(139, 92, 246, .25);
  margin-bottom: 25px;
}

.intermediate-hero-btns {
  display: flex;
  gap: 18px;
  padding: 10px;
  margin: 65px 0;
}

.intermediate-hero-stats {
  display: flex;
  gap: 35px;
}

.intermediate-hero-stats h3 {
  font-size: 2rem;
}

.intermediate-hero-showcase {
  position: relative;
  width: 100%;
  max-width: 560px;
  aspect-ratio: 1 / 1;
  height: auto;
  margin: auto;
}

@media (max-width: 425px) {
  .intermediate-hero-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
    align-items: start;
    padding: 20px 0px 0px 20px;
  }
}

/*==========================
         Programs
==========================*/

#intermediate-programs {
  position: relative;
  overflow: hidden;
}

.intermediate-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 30px;
}

.intermediate-card {
  position: relative;
  overflow: hidden;
  background: var(--sf);
  border: 1px solid var(--bd);
  border-radius: 22px;
  padding: 35px 28px;
  transition: .4s;
  backdrop-filter: blur(18px);
  display: block;
  text-decoration: none;
  color: inherit;
}

.intermediate-card::before {
  content: '';
  pointer-events: none;
  background:
    radial-gradient(circle at top right,
      rgba(99, 71, 246, .12),
      transparent 60%);
  opacity: 0;
  transition: .4s;
  position: absolute;
  inset: 0;
}

.intermediate-card:hover {
  transform: translateY(-12px);
  border-color: #6347f6;
  box-shadow: 0 25px 60px rgba(99, 71, 246, .18);
  color: inherit;
}

.intermediate-card:visited {
  color: inherit;
}

.intermediate-card:hover::before {
  opacity: 1;
}

.intermediate-icon {
  width: 72px;
  height: 72px;
  border-radius: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  color: #fff;
  background: linear-gradient(135deg, #6347f6, #8d7bff);
  margin-bottom: 22px;
  transition: .4s;
}

.intermediate-card:hover .intermediate-icon {
  transform: rotate(-8deg) scale(1.08);
}

.intermediate-card h3 {
  font-size: 26px;
  margin-bottom: 15px;
  font-weight: 700;
}

.intermediate-card p {
  color: var(--tx2);
  line-height: 1.8;
  margin-bottom: 22px;
}

.intermediate-card ul {
  list-style: none;
  padding: 0;
  margin: 0 0 28px;
}

.intermediate-card ul li {
  margin-bottom: 12px;
  color: var(--tx2);
  display: flex;
  align-items: center;
}

.intermediate-card ul li::before {
  content: "✓";
  color: #6347f6;
  font-weight: 700;
  margin-right: 10px;
}

.intermediate-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #6347f6;
  font-weight: 700;
  text-decoration: none;
  transition: .35s;
}

.intermediate-btn i {
  transition: .35s;
}

.intermediate-btn:hover {
  color: #4028d6;
}

.intermediate-btn:hover i {
  transform: translateX(6px);
}

.intermediate-card-link {
  display: block;
  text-decoration: none;
  color: inherit;
}

.intermediate-card-link:hover,
.intermediate-card-link:visited {
  color: inherit;
  text-decoration: none;
}

/*==============================
           BENEFITS
==============================*/

#intermediate-benefits {
  position: relative;
  overflow: hidden;
}

/* ===========================
   TABLET (below 992px)
=========================== */
@media (max-width: 991.98px) {
  #intermediate-hero .intermediate-hero-showcase {
    display: none !important;
  }

  /* Intermediate tablet layout */
  #intermediate-hero .intermediate-hero-grid {
    grid-template-columns: 1fr;
    gap: 25px;
    padding: 100px 35px 40px;
  }

  #intermediate-hero .intermediate-hero-content h1 {
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    line-height: 1.12;
  }

  #intermediate-hero .intermediate-hero-tag {
    font-size: 0.9rem;
    padding: 8px 14px;
    margin-bottom: 18px;
  }

  #intermediate-hero .intermediate-hero-btns {
    gap: 12px;
    padding: 0;
    margin: 30px 0;
    flex-wrap: wrap;
  }

  #intermediate-hero .intermediate-hero-btns .btn {
    padding: 12px 20px;
    font-size: 0.9rem;
  }

  #intermediate-hero .intermediate-hero-stats {
    gap: 25px;
    flex-wrap: wrap;
  }

  #intermediate-hero .intermediate-hero-stats h3 {
    font-size: 1.6rem;
  }

  /* NOTE: the degree page sets #degree-hero { background: var(--bg2) } here.
     It is intentionally NOT copied, because intermediate.html uses its own
     dark hero background (set in the page's <style> block). */
}

/* Intermediate hero button */
#intermediate-hero .btn.boc {
  background: #4c92dd;
  color: #fff;
}

#intermediate-hero .btn.boc:hover {
  background: #4065df;
  border-color: #3b82f6;
  color: #fff;
}

/* ============ MOBILE FIXES ============ */
@media (max-width: 767.98px) {
  #intermediate-hero {
    padding-top: 110px;
  }

  /* Hide Intermediate animation on mobile only */
  #intermediate-hero .intermediate-hero-showcase {
    display: none !important;
  }
}

/* Intermediate Scholarships - Desktop
   (Degree uses 5 columns for 5 cards; Intermediate has only 2 cards: MPC & BiPC) */
@media (min-width: 992px) {
  .intermediate-scholarships .intermediate-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 30px;
    max-width: 900px;
    margin: 0 auto;
  }

  .intermediate-scholarships .intermediate-card {
    height: 100%;
    display: flex;
    flex-direction: column;
  }

  .intermediate-scholarships .intermediate-btn {
    margin-top: auto;
  }
}

/*=============================
    WHY CHOOSE AchievOs
    (scoped to .why-AchievOs so other .feature-item uses are not affected)
=============================*/

.why-AchievOs {
  position: relative;
  overflow: hidden;
}

/* soft background glow */
.why-AchievOs::before {
  content: "";
  position: absolute;
  top: -120px;
  right: -120px;
  width: 420px;
  height: 420px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(122, 106, 216, .22), transparent 70%);
  pointer-events: none;
}

.why-AchievOs .container {
  position: relative;
  z-index: 1;
}

.why-AchievOs .why-wrapper {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px 40px;
  align-items: stretch;
}

/* both columns use 4 equal rows so cards line up side by side */
.why-AchievOs .feature-list {
  display: grid;
  grid-template-rows: repeat(4, 1fr);
  gap: 24px;
}

.why-AchievOs .feature-item {
  position: relative;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: flex-start;
  text-align: left;
  gap: 22px;
  padding: 28px 30px;
  margin-bottom: 0;
  height: 100%;
  border-radius: 22px;
  background: var(--sf, rgba(255, 255, 255, .04));
  border: 1px solid var(--bd, rgba(255, 255, 255, .08));
  backdrop-filter: blur(14px);
  cursor: pointer;
  overflow: hidden;
  transition: transform .35s ease, border-color .35s ease,
    box-shadow .35s ease, background .35s ease;
}

/* left accent bar on hover */
.why-AchievOs .feature-item::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: linear-gradient(180deg, #7a6ad8, #4cc9f0);
  transform: scaleY(0);
  transform-origin: top;
  transition: transform .35s ease;
}

.why-AchievOs .feature-item:hover,
.why-AchievOs .feature-item.active {
  transform: translateX(10px);
  border-color: #7a6ad8;
  background: rgba(122, 106, 216, .09);
  box-shadow: 0 18px 40px rgba(122, 106, 216, .18);
}

.why-AchievOs .feature-item:hover::before,
.why-AchievOs .feature-item.active::before {
  transform: scaleY(1);
}

.why-AchievOs .feature-item i {
  flex-shrink: 0;
  width: 62px;
  height: 62px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 18px;
  font-size: 26px;
  color: #fff;
  background: linear-gradient(135deg, #5b4fd6, #7a6ad8);
  box-shadow: 0 10px 25px rgba(122, 106, 216, .30);
  transition: transform .35s ease;
}

.why-AchievOs .feature-item:hover i,
.why-AchievOs .feature-item.active i {
  transform: rotate(-8deg) scale(1.1);
}

.why-AchievOs .feature-item h3 {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 8px;
  transition: color .3s ease;
}

.why-AchievOs .feature-item:hover h3,
.why-AchievOs .feature-item.active h3 {
  color: #9f7aea;
}

.why-AchievOs .feature-item p {
  color: var(--tx2);
  line-height: 1.7;
  margin: 0;
}

/* Tablet */
@media (max-width: 991.98px) {
  .why-AchievOs .why-wrapper {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .why-AchievOs .feature-list {
    grid-template-rows: none;
  }

  .why-AchievOs .feature-item {
    height: auto;
  }

  .why-AchievOs .feature-item {
    padding: 24px;
    gap: 18px;
    border-radius: 20px;
  }

  .why-AchievOs .feature-item i {
    width: 56px;
    height: 56px;
    font-size: 24px;
    border-radius: 16px;
  }

  .why-AchievOs .feature-item:hover,
  .why-AchievOs .feature-item.active {
    transform: translateX(6px);
  }
}

/* Mobile - same alignment as desktop (icon left, text left) */
@media (max-width: 767.98px) {
  .why-AchievOs .feature-list {
    grid-template-rows: none;
  }

  .why-AchievOs .feature-item {
    flex-direction: row;
    align-items: center;
    text-align: left;
    gap: 16px;
    padding: 20px 18px;
    border-radius: 18px;
    height: auto;
  }

  .why-AchievOs .feature-item i {
    width: 50px;
    height: 50px;
    font-size: 21px;
    border-radius: 14px;
  }

  .why-AchievOs .feature-item h3 {
    font-size: 1.05rem;
  }

  .why-AchievOs .feature-item p {
    font-size: .9rem;
    line-height: 1.55;
  }

  .why-AchievOs .feature-item:hover,
  .why-AchievOs .feature-item.active {
    transform: translateX(4px);
  }
}

/* Intermediate Eligibility Box Only */

#eligibility .intermediate-eligibility-box {
    background: var(--sf);
    border: 1px solid var(--bd);
    border-radius: 22px;
    padding: 30px !important;
    transition: .4s ease;
}

#eligibility .intermediate-eligibility-box {
    max-width: 600px;
    margin: 0 auto;
}

#eligibility .intermediate-eligibility-box:hover {
    transform: translateY(-8px);
    border-color: #6347f6;
    box-shadow: 0 20px 45px rgba(99, 71, 246, .16);
}
/* Center Intermediate Eligibility Box */

#eligibility .row {
    justify-content: center;
}

#eligibility .intermediate-eligibility-box {
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}
@media (max-width: 767.98px) {
    #eligibility .intermediate-eligibility-box {
        padding: 22px !important;
    }
}
/* Center and reduce Exam Pattern titles */

#exam-pattern .mtitle {
    text-align: center;
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 20px;
}

@media (max-width: 767.98px) {
    #exam-pattern .mtitle {
        font-size: 17px;
    }
}
/* Exam Pattern - MPC & BiPC Heading Fix */

#exam-pattern .table-wrapper h2.mtitle {
    font-size: 22px !important;
    text-align: center !important;
    font-weight: 700;
    margin: 0 auto 20px !important;
    padding: 10px 0;
}

@media (max-width: 767.98px) {
    #exam-pattern .table-wrapper h2.mtitle {
        font-size: 18px !important;
    }
}