html { scroll-behavior: smooth; }

.home-approval-marquee {
  overflow: hidden;
  padding: 56px 0;
  background: #f8fafc;
}

.approval-marquee {
  overflow: hidden;
  direction: ltr;
  padding: 8px 2px 20px;
  mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent);
}

.approval-track {
  display: flex;
  width: max-content;
  animation: approval-scroll 34s linear infinite;
  will-change: transform;
}

.approval-marquee:hover .approval-track,
.approval-marquee:focus-within .approval-track {
  animation-play-state: paused;
}

.approval-group {
  display: flex;
  align-items: stretch;
  gap: 20px;
  padding-inline-end: 20px;
}

.approval-tile {
  display: flex;
  flex: 0 0 220px;
  width: 220px;
  min-height: 145px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 20px;
  border: 1px solid #e4e7ec;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 8px 24px rgba(16, 24, 40, .06);
  text-align: center;
}

.approval-tile img {
  width: 100%;
  height: 76px;
  object-fit: contain;
}

.approval-tile-nqi img,
.approval-tile-amideast img,
.approval-tile-iso img { height: 100px; }
.approval-tile-amideast img { object-fit: cover; object-position: center; }

.approval-tile span {
  color: #344054;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.6;
}

.approval-manar img {
  height: 80px;
  object-fit: contain;
}

.career-cta {
  position: relative;
  overflow: hidden;
  padding: clamp(52px, 8vw, 92px) 20px;
  background: linear-gradient(125deg, #1e40af, #17358f);
  color: #fff;
  text-align: center;
}

.career-cta::before,
.career-cta::after {
  position: absolute;
  width: 280px;
  height: 280px;
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 50%;
  content: "";
  pointer-events: none;
}

.career-cta::before { top: -180px; right: -90px; }
.career-cta::after { bottom: -200px; left: -110px; }
.career-cta h2 { position: relative; margin: 0 0 12px; font-size: clamp(30px, 5vw, 48px); }
.career-cta p { position: relative; margin: 0 auto 26px; color: rgba(255,255,255,.88); font-size: 18px; }
.career-cta-link {
  position: relative;
  display: inline-flex;
  min-height: 52px;
  align-items: center;
  justify-content: center;
  padding: 0 24px;
  border-radius: 999px;
  background: #16a34a;
  color: #fff;
  font-weight: 900;
  text-decoration: none;
  transition: transform .2s ease, background-color .2s ease;
}

.career-cta-link:hover { transform: translateY(-2px); background: #15803d; }
.career-cta-link:active { transform: scale(.98); }

#featuredProgramsGrid .card { padding: 18px; }
#featuredProgramsGrid > [data-course-id="business-management"] { order: -2; }
#featuredProgramsGrid > [data-course-id="human-resources"] { order: -1; }
#featuredProgramsGrid > [data-course-id="project-management"] { order: 0; }
#featuredProgramsGrid .featured-card-clickable { position: relative; }
#featuredProgramsGrid .featured-card-details-link {
  position: absolute;
  z-index: 1;
  inset: 0;
  border-radius: inherit;
}
#featuredProgramsGrid .featured-card-details-link:focus-visible {
  outline: 3px solid #1e40af;
  outline-offset: 4px;
}
#featuredProgramsGrid .featured-category,
#featuredProgramsGrid .featured-description,
#featuredProgramsGrid .featured-rating { display: none; }
#featuredProgramsGrid .space-y-4 > .flex.items-center.justify-between:has(a[href*="program_details.html"]) { display: none !important; }
#featuredProgramsGrid .home-course-price { display: grid; gap: 5px; margin-top: 14px; }
#featuredProgramsGrid .home-course-discount { color: #b54708; font-size: 13px; font-weight: 800; }
#featuredProgramsGrid .home-course-current { color: #1e40af; font-weight: 900; }
#featuredProgramsGrid .home-course-previous { color: #98a2b3; font-size: 13px; text-decoration: line-through; }
#featuredProgramsGrid .home-course-buy {
  position: relative;
  z-index: 2;
  display: flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  margin-top: 14px;
  border-radius: 12px;
  background: #16803c;
  color: #fff;
  font-weight: 800;
  text-decoration: none;
  transition: transform .2s ease, background-color .2s ease;
}

#featuredProgramsGrid .home-course-buy:hover { transform: translateY(-2px); background: #11632f; }

.motion-ready .reveal-on-scroll {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity .45s ease, transform .45s ease;
}

.motion-ready .reveal-on-scroll.is-visible { opacity: 1; transform: none; }

.footer-social-link {
  display: inline-flex;
  width: 42px;
  height: 42px;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255,255,255,.2);
  border-radius: 50%;
  background: rgba(255,255,255,.08);
  color: #fff;
  font-size: 14px;
  font-weight: 800;
  text-decoration: none;
  transition: background-color .2s ease, transform .2s ease;
}

.footer-social-link:hover { transform: translateY(-2px); background: #1e40af; }

@keyframes approval-scroll {
  to { transform: translateX(-50%); }
}

@media (max-width: 600px) {
  .approval-group { gap: 14px; padding-inline-end: 14px; }
  .approval-tile { flex-basis: 170px; width: 170px; min-height: 130px; padding: 14px; }
  .approval-tile img { height: 68px; }
  .approval-manar img { height: 78px; }
  .approval-tile.approval-manar {
    flex-basis: 150px;
    width: 150px;
    min-height: 112px;
    gap: 8px;
    padding: 12px;
  }
  .approval-tile.approval-manar img { height: 60px; }
  .approval-tile.approval-manar span { font-size: 12px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .approval-marquee { overflow-x: auto; mask-image: none; }
  .approval-track { animation: none; transform: none; will-change: auto; }
  .motion-ready .reveal-on-scroll,
  .motion-ready .reveal-on-scroll.is-visible { opacity: 1; transform: none; transition: none; }
  .career-cta-link, #featuredProgramsGrid .home-course-buy, .footer-social-link { transition: none; }
}
