/* ===============================
   COURSE HERO – HEADER
================================ */

.course-hero {
  position: relative;
}

/* Subtitle */
.course-subtitle {
  max-width: 620px;
  font-size: 16px;
  color: #555;
  line-height: 1.6;
}

/* Course meta info */
.course-meta {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 14px;
}

.meta-item {
  font-size: 15px;
  color: #333;
}

.meta-item strong {
  color: #2eb97e;
}

/* Actions */
.course-hero-actions {
  margin-top: 34px;
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

/* Mobile meta */
@media (max-width: 768px) {
  .course-meta {
    grid-template-columns: 1fr;
  }
}

/* ===============================
   COURSE HERO – IMAGE + RATINGS
================================ */

.course-hero-media {
  position: relative;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 20px 45px rgba(0,0,0,0.12);
}

.course-hero-media img {
  width: 100%;
  height: auto;
  display: block;
}



/* ===============================
   LAYOUT DESIGN
================================ */


        html {
          font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
        }
        section h1 {
          font-size: clamp(2rem, 4vw, 3rem);
        }
        
        body {
          margin: 0;
          font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
        }
        .site-header {
          min-height: 72px;
        }
        .hero-section {
          min-height: 520px;
        }
        
/* ===============================
   LAYOUT DESIGN
================================ */


        /* Prevent CLS from sliders */
.swiper {
  min-height: 280px;
}

/* Reserve space for enquiry popup */
.custom-popup {
  position: fixed;
  inset: 0;
  visibility: hidden;
}
.custom-popup[aria-hidden="false"] {
  visibility: visible;
}

#page-loader {
  position: fixed;
  inset: 0;
  background: #fff;
  z-index: 9999;
  opacity: 1;
  transition: opacity 0.35s ease;
}
#page-loader.hidden {
  opacity: 0;
  pointer-events: none;
}

.hero-section img {
  width: 100%;
  height: auto;
  object-fit: contain;
}


        .course-card {
  background: #fff;
  border-radius: 14px;
  padding: 14px;
  text-align: center;

  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.course-card img {
  width: 100%;
  height: auto;
  border-radius: 10px;
}

.course-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 25px rgba(0,0,0,0.08);
}

.course-title {
  margin-top: 12px;
  font-size: 1rem;
  font-weight: 600;
}

.course-title a {
  color: #111;
  text-decoration: none;
}

        .course-card h3,
.course-card h3 a {
  font-size: 18px;
  font-weight: 600;
  line-height: 1.3;
  text-align: center;
  color: #1aa36f;

  display: -webkit-box;
  -webkit-line-clamp: 2;       /* max 2 lines */
  -webkit-box-orient: vertical;
  overflow: hidden;

  min-height: 48px;            /* keeps cards equal */
  margin: 12px 10px 0;
}

@media (max-width: 576px) {
  .course-card h3,
  .course-card h3 a {
    font-size: 16px;
    min-height: 44px;
  }
}

    /* ===========================
   COURSES HERO SECTION
=========================== */

.hero-courses {
  position: relative;
  padding: 140px 0 120px;
  background: linear-gradient(
    90deg,
    #e9f8f1 0%,
    #f6fffb 45%,
    #ffffff 70%
  );
  overflow: hidden;
}

/* floating blur background */
.hero-courses::before,
.hero-courses::after {
  content: "";
  position: absolute;
  width: 380px;
  height: 380px;
  background: rgba(46, 185, 126, 0.18);
  filter: blur(120px);
  border-radius: 50%;
  z-index: 0;
}

.hero-courses::before {
  top: 60px;
  left: -120px;
}

.hero-courses::after {
  top: 120px;
  right: 140px;
}

/* ensure content stays above blur */
.hero-courses .container {
  position: relative;
  z-index: 2;
}

/* Tag */
.hero-tag {
  display: inline-block;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 1px;
  color: #2eb97e;
  margin-bottom: 16px;
}

/* Heading */
.hero-courses h1 {
  font-size: clamp(2.8rem, 4vw, 3.6rem);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 28px;
  color: #000;
}

.hero-courses h1 .highlight {
  color: #2eb97e;
}

/* Actions */
.hero-actions {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-bottom: 36px;
}

.hero-actions .btn-primary {
  background: #2eb97e;
  border: none;
  padding: 14px 26px;
  font-size: 15px;
  border-radius: 10px;
  box-shadow: 0 10px 25px rgba(46, 185, 126, 0.25);
}

.hero-actions .btn-primary:hover {
  background: #25a66f;
}

.tally-badge img {
  height: 54px;
}

/* Stats */
.hero-stats-wrap {
  display: flex;
  gap: 48px;
}

.hero-stats strong {
  font-size: 24px;
  color: #2eb97e;
  display: block;
}

.hero-stats span {
  font-size: 14px;
  color: #555;
}

/* Mobile */
@media (max-width: 768px) {
  .hero-courses {
    padding: 100px 0 80px;
  }

  .hero-actions {
    flex-direction: column;
    align-items: flex-start;
  }

  .hero-stats-wrap {
    gap: 24px;
  }
}

    /* Right-side visual anchor */
.hero-visual {
  position: absolute;
  right: 0;
  top: 50%;
  width: 520px;
  height: 520px;
  transform: translateY(-50%);
  pointer-events: none;
  z-index: 1;

  background:
    radial-gradient(circle at 30% 30%, rgba(46,185,126,0.35), transparent 55%),
    radial-gradient(circle at 70% 70%, rgba(46,185,126,0.2), transparent 60%);
  filter: blur(40px);
}

/* Hide on mobile */
@media (max-width: 991px) {
  .hero-visual {
    display: none;
  }
}


    
    
    /* ===========================
   COURSES SECTION
=========================== */
    
.course-details {
  padding: 80px 20px;
  background: #f8fafc;
}

.course-details__container {
  max-width: 1200px;
  margin: auto;
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 40px;
}

.course-details__title {
  font-size: 32px;
  margin-bottom: 16px;
}

.course-details__intro {
  color: #555;
  line-height: 1.7;
}

/* Tabs */
.course-tabs {
  display: flex;
  gap: 12px;
  margin: 32px 0 24px;
}

.course-tabs__btn {
  padding: 10px 18px;
  border: 1px solid #ddd;
  background: #fff;
  cursor: pointer;
  font-weight: 600;
}

.course-tabs__btn.is-active {
      background: #2eb97e;
    color: #fff;
    border-color: #26a56f;
}

/* Tab Content */
.course-tab {
  display: none;
}

.course-tab.is-active {
  display: block;
}

/* Syllabus */
.syllabus__item {
  margin-bottom: 16px;
  border: 1px solid #e5e7eb;
  border-radius: 6px;
  padding: 12px;
}

.syllabus__title {
  font-weight: 600;
  cursor: pointer;
}

.syllabus__list {
  margin-top: 10px;
  padding-left: 18px;
}

.syllabus__list li {
  margin-bottom: 6px;
}

/* Sidebar */
.course-card {
  background: #fff;
  border-radius: 8px;
  padding: 20px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}

.course-card__image {
  width: 100%;
  border-radius: 6px;
  margin-bottom: 16px;
}

.course-card__meta {
  list-style: none;
  padding: 0;
  margin-bottom: 20px;
}

.course-card__meta li {
  margin-bottom: 8px;
}

.course-card__cta {
  display: block;
  text-align: center;
  padding: 12px;
  background: #2eb97e;
  color: #fff;
  font-weight: 600;
  text-decoration: none;
  border-radius: 6px;
}

/* Responsive */
@media (max-width: 992px) {
  .course-details__container {
    grid-template-columns: 1fr;
  }
}

/* ===========================
   SIDEBAR TAGS FIX
=========================== */

.course-sidebar-tags {
  margin-top: 20px;
  background: #ffffff;
  border-radius: 14px;
  padding: 18px;
  box-shadow: 0 10px 24px rgba(0,0,0,0.05);
}

.course-sidebar-tags__title {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 12px;
}

.course-sidebar-tags__list {
  list-style: none;          /* ❌ remove bullets */
  display: flex;             /* ✅ horizontal tags */
  flex-wrap: wrap;
  gap: 10px;
  padding: 0;
  margin: 0 0 16px;
}

.course-sidebar-tags__list li {
  margin: 0;
}

.course-sidebar-tags__list a {
  display: inline-block;
  padding: 6px 12px;
  border-radius: 999px;
  background: #e9f8f1;
  color: #2eb97e;
  font-size: 13px;
  font-weight: 500;
  text-decoration: none;
}

.course-sidebar-tags__list a:hover {
  background: #2eb97e;
  color: #fff;
}

.course-sidebar-share {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.course-sidebar-share__label {
  font-size: 14px;
  font-weight: 600;
  color: #555;
}

.course-sidebar-share__icons {
  display: flex;
  gap: 10px;
}

.course-sidebar-share__icons a {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #e9f8f1;
  color: #2eb97e;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.course-sidebar-share__icons a:hover {
  background: #2eb97e;
  color: #fff;
}

/* ===========================
   ANIMATED TAB CONTENT (CARD)
=========================== */

.course-tabs__content {
  position: relative;
}

/* Card look */
.course-tab {
  background: #ffffff;
  border-radius: 12px;
  padding: 24px;
  box-shadow: 0 12px 30px rgba(0,0,0,0.05);

  /* animation base */
  overflow: hidden;
  max-height: 0;
  opacity: 0;
  transform: translateY(10px);
  transition:
    max-height 0.45s ease,
    opacity 0.35s ease,
    transform 0.35s ease;

  display: block; /* important for animation */
}

/* Active tab (visible) */
.course-tab.is-active {
  max-height: 2000px; /* large enough for content */
  opacity: 1;
  transform: translateY(0);
}

/* spacing between tabs and card */
.course-tabs {
  margin-bottom: 20px;
}

.course-tabs__btn {
  transition: all 0.2s ease;
}

.course-tabs__btn.is-active {
  transform: translateY(-1px);
  box-shadow: 0 6px 14px rgba(46,185,126,0.25);
}
/* ===========================
   SMOOTH DETAILS ANIMATION
=========================== */

.syllabus__item {
  transition: box-shadow 0.25s ease;
}

.syllabus__item[open] {
  box-shadow: 0 8px 24px rgba(0,0,0,0.06);
}

.syllabus__item summary {
  cursor: pointer;
  list-style: none;
  font-weight: 600;
}

.syllabus__item summary::-webkit-details-marker {
  display: none;
}

/* ===============================
   COURSE HERO – RATING BAR
================================ */

.course-hero-visual {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}

.course-rating-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  background: #ffffff;
  border-radius: 12px;
  box-shadow: 0 10px 25px rgba(0,0,0,0.08);
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
}

.course-rating-bar img {
  height: 26px;
  width: auto;
}

.course-rating-bar .rating-score {
  font-weight: 700;
  color: #111;
}

.course-rating-bar .stars {
  color: #f4b400;
  font-size: 14px;
}

.course-rating-bar .divider {
  width: 1px;
  height: 20px;
  background: #e5e7eb;
  margin: 0 6px;
}

/* Image card stays clean */
.course-hero-media {
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 20px 45px rgba(0,0,0,0.12);
}

.course-hero-media img {
  display: block;
  width: 100%;
  height: auto;
}


/* ===============================
   HERO VISUAL WRAPPER
================================ */

.course-hero-visual {
  width: 100%;
  max-width: 520px;       /* 👈 controls image size */
  margin-left: auto;     /* push to right */
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}


/* ===============================
   COURSE HERO – RATING BAR
================================ */

.course-rating-bar {
  width: 100%;            /* 👈 SAME width as image */
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;

  padding: 10px 16px;
  background: #ffffff;
  border-radius: 12px;
  box-shadow: 0 10px 25px rgba(0,0,0,0.08);

  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
}

.course-rating-bar img {
  height: 26px;
  width: auto;
}

.course-rating-bar .rating-score {
  font-weight: 700;
  color: #111;
}

.course-rating-bar .stars {
  color: #f4b400;
}

.course-rating-bar .divider {
  width: 1px;
  height: 20px;
  background: #e5e7eb;
  margin: 0 6px;
}

/* ===============================
   COURSE HERO – IMAGE
================================ */

.course-hero-media {
  width: 100%;            /* 👈 KEY FIX */
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 20px 45px rgba(0,0,0,0.12);
}

.course-hero-media img {
  width: 100%;            /* 👈 ensures full width */
  height: auto;
  display: block;
}

@media (max-width: 991px) {
  .course-hero-visual {
    max-width: 100%;
    margin: 0 auto;
  }

  .course-rating-bar {
    font-size: 13px;
    flex-wrap: wrap;
  }
}

section h1 {
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.25;
  font-weight: 700;
}

/* ===========================
   COURSE SUPPORT SECTION
=========================== */


.course-support__card {
  background: #ffffff;
  border-radius: 14px;
  padding: 28px;
  box-shadow: 0 14px 30px rgba(0,0,0,0.06);
}

.course-support__title {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 18px;
  position: relative;
}

.course-support__title::after {
  content: "";
  width: 48px;
  height: 3px;
  background: #2eb97e;
  display: block;
  margin-top: 6px;
  border-radius: 2px;
}

.course-support__list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.course-support__list li {
  position: relative;
  padding-left: 28px;
  margin-bottom: 12px;
  font-size: 15px;
  line-height: 1.6;
}

.course-support__list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0;
  color: #2eb97e;
  font-weight: 700;
}

/* ===============================
   COURSE SUPPORT – PARALLAX
================================ */

.course-support-section {
  overflow: hidden;
}

/* Row base */
.course-support-row {
  position: relative;
  padding: 100px 0;
}

/* Soft parallax backgrounds (CSS-only, GPU-safe) */
.certification-parallax::before,
.support-parallax::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 30%, rgba(46,185,126,0.18), transparent 55%),
    radial-gradient(circle at 80% 70%, rgba(46,185,126,0.12), transparent 60%);
  transform: translateZ(0);
  will-change: transform;
  z-index: 0;
}

/* Slight visual separation */
.support-parallax {
  background: #f8fafc;
}

/* Card */
.course-support__card {
  position: relative;
  z-index: 1;
  background: #ffffff;
  border-radius: 18px;
  padding: 40px;
  box-shadow: 0 20px 50px rgba(0,0,0,0.06);
}

/* Title */
.course-support__title {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 22px;
  position: relative;
}

.course-support__title::after {
  content: "";
  display: block;
  width: 48px;
  height: 3px;
  background: #2eb97e;
  margin-top: 8px;
  border-radius: 2px;
}

/* List */
.course-support__list {
  list-style: none;
  padding: 0;
  margin: 0;
  columns: 2;
  column-gap: 40px;
}

.course-support__list li {
  position: relative;
  padding-left: 26px;
  margin-bottom: 14px;
  font-size: 15px;
  line-height: 1.6;
}

.course-support__list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: #2eb97e;
  font-weight: 700;
}

/* Mobile */
@media (max-width: 768px) {
  .course-support-row {
    padding: 70px 0;
  }

  .course-support__card {
    padding: 26px;
  }

  .course-support__list {
    columns: 1;
  }
}

/* ===============================
   COURSE SUPPORT – PARALLAX
================================ */

.course-support-row {
  position: relative;
  padding: 120px 0;
  overflow: hidden;
}

/* REAL PARALLAX (Desktop only) */
.parallax-bg {
  background-image: url("../../assets/images/global/global-bg.webp");
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
}

/* Mobile safety */
@media (max-width: 991px) {
  .parallax-bg {
    background-attachment: scroll;
  }
}

/* Second block */
.support-bg {
  background: #f8fafc;
}

/* Card */
.course-support__card {
  position: relative;
  background: #ffffff;
  border-radius: 18px;
  padding: 44px;
  box-shadow: 0 25px 60px rgba(0,0,0,0.08);
  z-index: 2;
}

/* Title */
.course-support__title {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 24px;
  position: relative;
}

.course-support__title::after {
  content: "";
  width: 52px;
  height: 3px;
  background: #2eb97e;
  display: block;
  margin-top: 10px;
  border-radius: 2px;
}

/* List */
.course-support__list {
  list-style: none;
  padding: 0;
  margin: 0;
  columns: 2;
  column-gap: 40px;
}

.course-support__list li {
  position: relative;
  padding-left: 26px;
  margin-bottom: 14px;
  font-size: 15px;
}

.course-support__list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: #2eb97e;
  font-weight: 700;
}

/* ===============================
   MICRO ANIMATIONS
================================ */

/* Floating dots */
.floating-dot {
  position: absolute;
  width: 10px;
  height: 10px;
  background: rgba(46,185,126,0.35);
  border-radius: 50%;
  animation: floatY 6s ease-in-out infinite;
}

.dot-1 { top: 20px; right: 40px; animation-delay: 0s; }
.dot-2 { bottom: 30px; left: 50px; animation-delay: 2s; }

@keyframes floatY {
  0%,100% { transform: translateY(0); }
  50% { transform: translateY(-14px); }
}

/* Pulse line */
.pulse-line {
  position: absolute;
  top: 0;
  left: 0;
  height: 4px;
  width: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    #2eb97e,
    transparent
  );
  animation: pulseLine 3.5s ease-in-out infinite;
}

@keyframes pulseLine {
  0% { opacity: 0; }
  50% { opacity: 1; }
  100% { opacity: 0; }
}

/* Mobile */
@media (max-width: 768px) {
  .course-support-row {
    padding: 80px 0;
  }

  .course-support__list {
    columns: 1;
  }

  .course-support__card {
    padding: 28px;
  }
}

/* ===============================
   COURSE SUPPORT – VISUAL SECTION
================================ */

.course-support-visual {
  position: relative;
  padding: 120px 0;
  background: #ffffff;
  overflow: hidden;
}

/* Subtle background texture */
.course-support-visual::after {
  content: "";
  position: absolute;
  inset: 0;

  background-image: url("../../assets/images/global/global-bg-1.webp");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;


  z-index: 1;                 /* 👈 ABOVE green shape */
  pointer-events: none;
}

/* GREEN DIAGONAL SHAPE (LEFT) */
.support-diagonal {
  position: absolute;
  left: -120px;
  top: 0;
  width: 990px;
  height: 100%;

  background: #2eb97e;
  clip-path: polygon(0 0, 75% 0, 100% 100%, 0 100%);

  z-index: 2;                 /* 👈 BELOW background image */
}

/* Keep content above visuals */
.course-support-visual .container {
  position: relative;
  z-index: 2;
}

/* ===============================
   LEFT MEDIA CARD
================================ */

.support-media-card {
  position: relative;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 25px 55px rgba(0,0,0,0.15);
}

.support-media-card img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 18px;
}

/* Play button */
.play-btn {
  position: absolute;
  inset: 0;
  margin: auto;
  width: 70px;
  height: 70px;
  border-radius: 50%;
  background: #ffffff;
  border: none;
  color: #2eb97e;
  font-size: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 12px 30px rgba(0,0,0,0.25);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.play-btn:hover {
  transform: scale(1.08);
  box-shadow: 0 18px 40px rgba(0,0,0,0.3);
}

/* ===============================
   INFO CARDS (RIGHT)
================================ */

.support-info-card {
  background: #ffffff;
  border-radius: 16px;
  padding: 28px 32px;
  box-shadow: 0 14px 35px rgba(0,0,0,0.08);
}

.support-info-card h3 {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 18px;
  position: relative;
}

/* Accent underline */
.support-info-card h3::after {
  content: "";
  width: 42px;
  height: 3px;
  background: #2eb97e;
  display: block;
  margin-top: 8px;
  border-radius: 2px;
}

/* List */
.support-info-card ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.support-info-card li {
  position: relative;
  padding-left: 26px;
  margin-bottom: 10px;
  font-size: 15px;
  color: #333;
}

/* Green check icon */
.support-info-card li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0;
  color: #2eb97e;
  font-weight: 700;
}

/* ===============================
   RESPONSIVE
================================ */

@media (max-width: 991px) {
  .course-support-visual {
    padding: 80px 0;
  }

  .support-diagonal {
    display: none;
  }

  .support-media-card {
    margin-bottom: 30px;
  }
}

/* ===============================
   SUPPORT SECTION – HEADING
================================ */

.support-section-title {
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  font-weight: 700;
  margin-bottom: 10px;
}

.support-section-underline {
  display: inline-block;
  width: 60px;
  height: 4px;
  background: #2eb97e;
  border-radius: 4px;
}

/* ===============================
   GREEN CONTACT BOX
================================ */

.support-contact-box {
  background: #ffe425;
  border-radius: 14px;
  padding: 22px 24px;
  text-align: center;

  box-shadow: 0 18px 40px rgba(46, 185, 126, 0.35);

  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

/* Small label */
.support-call-label {
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.5px;
  color: rgba(0,0,0,0.9);
}

/* BIG CLICKABLE NUMBER */
.support-call-number {
  font-size: clamp(1.6rem, 2.5vw, 2rem);
  font-weight: 800;
  color: #000;
  text-decoration: none;
  line-height: 1.2;
}

.support-call-number:hover {
  color: #fff;
}

/* ===============================
   MOBILE ADJUSTMENTS
================================ */

@media (max-width: 768px) {
  .support-contact-box {
    padding: 20px;
  }
}