/* ── COURSE HERO ── */
/* ── COURSE HERO ── */
.course-hero {
  position: relative;
  padding: 100px 5% 60px;
  text-align: center;
  overflow: hidden;
  background: linear-gradient(135deg, var(--navy) 0%, #0d2d5e 60%, #163a75 100%);
  /* Fix mobile layout shift */
  transform: translateZ(0);
  -webkit-transform: translateZ(0);
  will-change: transform;
}

/* VIDEO BACKGROUND */
.course-hero-video {
  position: absolute;
  top: 50%;
  left: 50%;
  min-width: 100%;
  min-height: 100%;
  width: auto;
  height: auto;
  transform: translate(-50%, -50%);
  -webkit-transform: translate(-50%, -50%);
  object-fit: cover;
  z-index: 0;
  opacity: 0;
  transition: opacity 1.5s ease;
}


.course-hero-video.loaded {
  opacity: 1;
}

/* DARK OVERLAY */
.course-hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(10, 31, 68, 0.92) 0%,
    rgba(13, 45, 94, 0.88) 50%,
    rgba(22, 58, 117, 0.85) 100%
  );
  z-index: 1;
}

/* CONTENT SITS ABOVE VIDEO AND OVERLAY */
.course-hero-content {
  position: relative;
  z-index: 2;
  max-width: 750px;
  margin: 0 auto;
}






.course-hero-content {
  max-width: 750px;
  margin: 0 auto;
}

.course-hero .back-link {
  display: inline-block;
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.88rem;
  margin-bottom: 1.5rem;
  transition: color 0.2s;
}

.course-hero .back-link:hover {
  color: var(--sky);
}

.course-hero-icon {
  font-size: 3.5rem;
  margin-bottom: 1rem;
}

.course-hero h1 {
  color: var(--on-dark);
  margin-bottom: 1rem;
}

.course-hero p {
  color: rgba(255, 255, 255, 0.7);
  font-size: 1.05rem;
  max-width: 580px;
  margin: 0 auto 2rem;
}

.course-quick-stats {
  display: flex;
  justify-content: center;
  gap: 2rem;
  flex-wrap: wrap;
  margin-top: 1.5rem;
}

.quick-stat {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 10px;
  padding: 0.7rem 1.4rem;
  text-align: center;
}

.quick-stat-value {
  color: var(--sky);
  font-weight: 700;
  font-size: 1rem;
  display: block;
}

.quick-stat-label {
  color: rgba(255, 255, 255, 0.55);
  font-size: 0.78rem;
  margin-top: 0.2rem;
}

/* ── COURSE SECTIONS ── */
.course-section {
  padding: 80px 5%;
}

.course-section-inner {
  max-width: 900px;
  margin: 0 auto;
}

.course-section-inner h2 {
  margin-bottom: 1rem;
}

.course-section-inner > p {
  margin-bottom: 1rem;
  max-width: 680px;
}

/* ── LEARNING OUTCOMES ── */
.outcomes-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.2rem;
  margin-top: 2rem;
}

.outcome-card {
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: 12px;
  padding: 1.4rem;
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  transition: border-color 0.2s, transform 0.2s;
}

.outcome-card:hover {
  border-color: var(--sky);
  transform: translateY(-3px);
}

.outcome-num {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--light-bg);
  color: var(--royal);
  font-weight: 700;
  font-size: 0.85rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.outcome-card p {
  font-size: 0.9rem;
  color: var(--text);
  margin: 0;
  line-height: 1.55;
}

/* ── COURSE OUTLINE ── */
.outline-list {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
  margin-top: 2rem;
}

.outline-module {
  border: 1.5px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
}

.module-header {
  background: var(--light-bg);
  padding: 1rem 1.5rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  cursor: pointer;
  user-select: none;
}

.module-num {
  background: var(--royal);
  color: var(--on-dark);
  font-size: 0.78rem;
  font-weight: 700;
  padding: 0.25rem 0.65rem;
  border-radius: 20px;
  flex-shrink: 0;
}

.module-title {
  font-weight: 600;
  color: var(--heading);
  font-size: 0.97rem;
  flex: 1;
}

.module-toggle {
  font-size: 1.2rem;
  color: var(--muted);
  transition: transform 0.3s;
}

.module-header.open .module-toggle {
  transform: rotate(45deg);
}

.module-lessons {
  display: none;
  padding: 1rem 1.5rem 1.2rem;
  border-top: 1px solid var(--border);
}

.module-lessons.open {
  display: block;
}

.module-lessons ul {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.module-lessons ul li {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  font-size: 0.9rem;
  color: var(--text);
}

.module-lessons ul li::before {
  content: '▸';
  color: var(--sky);
  font-size: 0.75rem;
  flex-shrink: 0;
}

/* ── PRICING TABLE ── */
.pricing-table-wrap {
  overflow-x: auto;
  margin-top: 2rem;
}

.pricing-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 500px;
}

.pricing-table th {
  background: var(--navy);
  color: var(--on-dark);
  padding: 1rem 1.5rem;
  text-align: left;
  font-size: 0.88rem;
  font-weight: 600;
  letter-spacing: 0.04em;
}

.pricing-table th:first-child {
  border-radius: 10px 0 0 0;
}

.pricing-table th:last-child {
  border-radius: 0 10px 0 0;
}

.pricing-table td {
  padding: 1rem 1.5rem;
  font-size: 0.92rem;
  border-bottom: 1px solid var(--border);
  color: var(--text);
}

.pricing-table tr:last-child td {
  border-bottom: none;
}

.pricing-table tr:nth-child(even) td {
  background: var(--light-bg);
}

.pricing-table td:first-child {
  font-weight: 600;
  color: var(--heading);
}

.price-note {
  font-size: 0.82rem;
  color: var(--muted);
  margin-top: 1rem;
}

/* ── ENROLMENT FORM ── */
.enrolment-section {
  background: var(--navy);
  padding: 80px 5%;
}

.enrolment-section .section-label {
  color: var(--sky);
}

.enrolment-section h2 {
  color: var(--on-dark);
  margin-bottom: 0.5rem;
}

.enrolment-section > .course-section-inner > p {
  color: rgba(255, 255, 255, 0.6);
  margin-bottom: 2.5rem;
}

.enrolment-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  max-width: 620px;
}

.enrolment-form .form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.enrolment-form .form-group {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.enrolment-form label {
  font-size: 0.82rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.7);
  letter-spacing: 0.03em;
}

.enrolment-form input,
.enrolment-form select,
.enrolment-form textarea {
  background: rgba(255, 255, 255, 0.06);
  border: 1.5px solid rgba(255, 255, 255, 0.15);
  border-radius: 8px;
  padding: 0.75rem 1rem;
  color: var(--on-dark);
  font-family: 'Inter', sans-serif;
  font-size: 0.9rem;
  outline: none;
  transition: border-color 0.2s;
}

.enrolment-form select option {
  background: var(--navy);
  color: var(--on-dark);
}

.enrolment-form input:focus,
.enrolment-form select:focus,
.enrolment-form textarea:focus {
  border-color: var(--sky);
}

.enrolment-form input::placeholder,
.enrolment-form textarea::placeholder {
  color: rgba(255, 255, 255, 0.3);
}

.enrolment-form textarea {
  resize: vertical;
  min-height: 100px;
}



/* ── RESPONSIVE ── */
@media (max-width: 768px) {
  /* Disable background video on mobile */
  .course-hero-video {
    display: none;
  }

  /* Hero adjustments for mobile */
  .course-hero {
    padding: 80px 5% 50px;
  }

  .course-hero h1 {
    font-size: 1.8rem;
  }

  .course-hero p {
    font-size: 0.95rem;
  }

  /* Quick stats wrap better */
  .course-quick-stats {
    gap: 0.8rem;
    justify-content: center;
  }

  .quick-stat {
    padding: 0.6rem 1rem;
    min-width: 120px;
  }

  /* Breadcrumb smaller */
  .breadcrumb {
    font-size: 0.75rem;
    flex-wrap: wrap;
    justify-content: center;
  }
}


/* ── BREADCRUMB ── 
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
  font-size: 0.82rem;
}*/


/*Fix the Summary Banner on Mobile*/
@media (max-width: 768px) {

  /* Summary banner stacks vertically */
  .summary-banner {
    flex-direction: column;
    padding: 0;
  }

  .summary-divider {
    display: none;
  }

  .summary-item {
    width: 100%;
    border-bottom: 1px solid var(--border);
  }

  .summary-item-top {
    padding: 0.9rem 1.2rem;
    justify-content: flex-start;
  }

  /* Dropdown appears below on mobile too */
  .summary-dropdown {
    position: static;
    opacity: 1;
    transform: none;
    pointer-events: all;
    display: none;
    border-radius: 0;
    border-top: none;
    border-left: 3px solid var(--royal);
    border-right: none;
    border-bottom: none;
    margin: 0;
    padding: 0.8rem 1.2rem;
    box-shadow: none;
    background: var(--light-bg);
  }

  /* On mobile use click instead of hover */
  .summary-item.mobile-open .summary-dropdown {
    display: block;
  }

  .summary-item.mobile-open .summary-item-arrow {
    transform: rotate(90deg);
    color: var(--royal);
  }
}


/* Mobile layout for .section-indicator now lives in style.css. */


/*Fix the Enrolment Section on Mobile*/
@media (max-width: 768px) {

  .enrolment-inner {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .certificate {
    max-width: 100%;
  }

  .cert-name {
    font-size: 1.1rem;
    min-width: unset;
  }

  .cert-body {
    padding: 0.8rem 1.2rem 1rem;
  }

  .cert-header {
    padding: 1rem 1.2rem 0.5rem;
  }

  .cert-footer {
    padding: 0.8rem 1.2rem 1rem;
    gap: 1rem;
  }

  .cert-logo-text {
    font-size: 0.9rem;
  }

  /* Certificate modal on mobile */
  .cert-modal-content {
    padding: 0 1rem;
  }

  .certificate-large {
    width: 95vw;
  }

  .certificate-large .cert-name {
    font-size: 1.3rem;
  }

  .certificate-large .cert-body {
    padding: 1rem 1.5rem 1.2rem;
  }
}



/* Fix the Navbar on Mobile */


.breadcrumb a {
  color: rgba(255, 255, 255, 0.55);
  transition: color 0.2s;
}

.breadcrumb a:hover {
  color: var(--sky);
}

.breadcrumb span {
  color: rgba(255, 255, 255, 0.35);
}

.breadcrumb-current {
  color: var(--sky);
  font-weight: 600;
}


/* ── SUMMARY BANNER ── */
.summary-banner {
  background: var(--surface);
  border-bottom: 2px solid var(--light-bg);
  padding: 1.5rem 5%;
  display: flex;
  justify-content: center;
  gap: 3rem;
  flex-wrap: wrap;
  box-shadow: 0 4px 16px rgba(10, 31, 68, 0.06);
}

.summary-item {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.summary-icon {
  font-size: 1.6rem;
}

.summary-item strong {
  display: block;
  font-size: 0.92rem;
  color: var(--heading);
  font-weight: 600;
}

.summary-item p {
  font-size: 0.78rem;
  color: var(--muted);
  margin: 0;
}


/* ── SCROLL PROGRESS BAR ── */
.progress-bar {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  width: 0%;
  background: linear-gradient(to right, var(--royal), var(--sky));
  z-index: 9999;
  transition: width 0.1s;
}



/* ── STICKY ENROL BUTTON ── */
/* ── STICKY ENROL BUTTON ── */
.sticky-enrol {
  position: fixed;
  bottom: 7rem;
  right: 2rem;
  background: var(--royal);
  color: var(--on-dark);
  padding: 0.75rem 1.4rem;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.9rem;
  box-shadow: 0 4px 16px rgba(30, 94, 188, 0.35);
  z-index: 998;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.3s, transform 0.3s, background 0.2s;
  pointer-events: none;
  text-decoration: none;
  /* ADD THESE TWO */
  will-change: transform, opacity;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
}


.sticky-enrol.visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: all;
}

.sticky-enrol:hover {
  background: var(--navy);
  color: var(--on-dark);
}



/* ── INSTRUCTOR ── */
.instructor-card {
  display: flex;
  gap: 2rem;
  align-items: flex-start;
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: 16px;
  padding: 2rem;
  margin-top: 1.5rem;
}

.instructor-avatar {
  font-size: 4rem;
  width: 90px;
  height: 90px;
  background: var(--light-bg);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.instructor-info h3 {
  color: var(--heading);
  margin-bottom: 0.3rem;
}

.instructor-title {
  color: var(--royal);
  font-size: 0.88rem;
  font-weight: 600;
  margin-bottom: 0.8rem !important;
}

.instructor-info p {
  font-size: 0.92rem;
  color: var(--muted);
  line-height: 1.7;
  margin-bottom: 1rem !important;
}

.instructor-tags {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.instructor-tags span {
  background: var(--light-bg);
  border: 1px solid var(--border);
  color: var(--royal);
  font-size: 0.78rem;
  font-weight: 600;
  padding: 0.3rem 0.8rem;
  border-radius: 20px;
}

@media (max-width: 600px) {
  .instructor-card {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .instructor-tags {
    justify-content: center;
  }
}


/* ── Real Life APPLICATIONS ── */
.applications-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.2rem;
  margin-top: 2rem;
}

.application-card {
  background: var(--light-bg);
  border: 1.5px solid var(--border);
  border-radius: 12px;
  padding: 1.6rem;
  transition: border-color 0.2s, transform 0.2s;
}

.application-card:hover {
  border-color: var(--sky);
  transform: translateY(-3px);
}

.app-icon {
  font-size: 2rem;
  margin-bottom: 0.8rem;
}

.application-card h3 {
  font-size: 1rem;
  color: var(--heading);
  margin-bottom: 0.5rem;
}

.application-card p {
  font-size: 0.88rem;
  color: var(--muted);
  line-height: 1.65;
}


/* ── VIDEO EMBED ── */
.video-wrap {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
  border-radius: 14px;
  margin-top: 2rem;
  box-shadow: 0 8px 32px rgba(10, 31, 68, 0.15);
}

.video-wrap iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border-radius: 14px;
}

.video-note {
  font-size: 0.85rem;
  color: var(--muted);
  margin-top: 1rem !important;
  font-style: italic;
}


/* ── TESTIMONIALS ── */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

.testimonial-card {
  background: var(--light-bg);
  border: 1.5px solid var(--border);
  border-radius: 14px;
  padding: 1.8rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  transition: border-color 0.2s, transform 0.2s;
}

.testimonial-card:hover {
  border-color: var(--sky);
  transform: translateY(-3px);
}

.testimonial-stars {
  color: #F5A623;
  font-size: 1rem;
  letter-spacing: 0.1em;
}

.testimonial-card p {
  font-size: 0.92rem;
  color: var(--text);
  line-height: 1.7;
  font-style: italic;
  flex: 1;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  margin-top: 0.5rem;
}

.testimonial-avatar {
  font-size: 1.8rem;
  width: 44px;
  height: 44px;
  background: var(--surface);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.testimonial-author strong {
  display: block;
  font-size: 0.9rem;
  color: var(--heading);
}

.testimonial-author span {
  font-size: 0.78rem;
  color: var(--muted);
}


/* ── FAQ ── */
.faq-list {
  margin-top: 2rem;
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.faq-item {
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
}

.faq-question {
  padding: 1.1rem 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--heading);
  user-select: none;
  gap: 1rem;
}

.faq-toggle {
  font-size: 1.2rem;
  color: var(--muted);
  flex-shrink: 0;
  transition: transform 0.3s;
}

.faq-question.open .faq-toggle {
  transform: rotate(45deg);
}

.faq-answer {
  display: none;
  padding: 0 1.5rem 1.2rem;
  border-top: 1px solid var(--border);
}

.faq-answer.open {
  display: block;
}

.faq-answer p {
  font-size: 0.9rem;
  color: var(--muted);
  line-height: 1.7;
  padding-top: 1rem;
  margin: 0;
}


/* ── RELATED COURSES ── */
.related-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.2rem;
  margin-top: 2rem;
}

.related-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  background: var(--light-bg);
  border: 1.5px solid var(--border);
  border-radius: 12px;
  padding: 1.4rem;
  text-decoration: none;
  transition: border-color 0.2s, transform 0.2s;
}

.related-card:hover {
  border-color: var(--sky);
  transform: translateY(-3px);
}

.related-icon {
  font-size: 2rem;
  flex-shrink: 0;
}

.related-card h3 {
  font-size: 1rem;
  color: var(--heading);
  margin-bottom: 0.3rem;
}

.related-card p {
  font-size: 0.82rem;
  color: var(--muted);
  line-height: 1.5;
  margin: 0;
}

.related-arrow {
  margin-left: auto;
  color: var(--sky);
  font-size: 1.2rem;
  flex-shrink: 0;
}


/* .section-indicator and friends now live in the shared style.css,
   since thesis-editing.html reuses the same pattern — see that
   file's "STICKY SECTION INDICATOR" section. The mobile
   "disable sticky" override just below stays here since it's
   course-page-specific. */





/* ── SUMMARY BANNER ── */
.summary-banner {
  background: var(--surface);
  border-bottom: 2px solid var(--light-bg);
  padding: 0 5%;
  display: flex;
  align-items: stretch;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(10, 31, 68, 0.06);
  position: relative;
  flex-wrap: wrap;
  z-index: 95;
}

.summary-divider {
  width: 1px;
  background: var(--border);
  margin: 0.8rem 0;
  flex-shrink: 0;
}

/* ── SUMMARY ITEM ── */
.summary-item {
  position: relative;
  flex: 1;
  min-width: 150px;
  cursor: default;
}

.summary-item-top {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  padding: 1.2rem 1.5rem;
  transition: background 0.2s;
  justify-content: center;
}

.summary-item:hover .summary-item-top {
  background: var(--light-bg);
}

.summary-icon {
  font-size: 1.6rem;
  flex-shrink: 0;
  display: inline-block;
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.summary-item:hover .summary-icon {
  transform: scale(1.25) rotate(-5deg);
}

.summary-item strong {
  display: block;
  font-size: 0.88rem;
  color: var(--heading);
  font-weight: 600;
  white-space: nowrap;
  transition: color 0.2s;
}

.summary-item:hover strong {
  color: var(--royal);
}

.summary-item p {
  font-size: 0.75rem;
  color: var(--muted);
  margin: 0;
  white-space: nowrap;
}

.summary-item-arrow {
  font-size: 1rem;
  color: var(--muted);
  flex-shrink: 0;
  transition: transform 0.3s, color 0.2s;
  display: inline-block;
}

.summary-item:hover .summary-item-arrow {
  color: var(--royal);
  transform: rotate(90deg);
}

/* ── DROPDOWN ── */
.summary-dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 240px;
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-top: 3px solid var(--royal);
  border-radius: 0 0 10px 10px;
  padding: 1rem 1.2rem;
  box-shadow: 0 8px 24px rgba(10, 31, 68, 0.12);
  z-index: 300;
  opacity: 0;
  transform: translateY(-6px);
  pointer-events: none;
  transition: opacity 0.25s ease,
              transform 0.25s ease;
}

.summary-item:hover .summary-dropdown {
  opacity: 1;
  transform: translateY(0);
  pointer-events: all;
}

.summary-dropdown p {
  font-size: 0.85rem;
  color: var(--muted);
  line-height: 1.7;
  margin: 0;
  white-space: normal;
}

/* prevent dropdown from going off right edge
   for the last two items */
.summary-item:nth-last-child(-n+3) .summary-dropdown {
  left: auto;
  right: 0;
}

/* ── RESPONSIVE ── */
@media (max-width: 768px) {
  .summary-item-top {
    padding: 1rem;
  }

  .summary-divider {
    display: none;
  }

  .summary-dropdown {
    min-width: 200px;
  }

  .summary-item:nth-last-child(-n+3) .summary-dropdown {
    left: 0;
    right: auto;
  }
}





/* ── BADGE PREVIEW ── */
/* ── ENROLMENT SECTION LAYOUT ── */
.enrolment-inner {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 4rem;
  align-items: start;
  max-width: 1100px;
}

.enrolment-right .section-label {
  color: var(--sky);
}

.enrolment-right h2 {
  color: var(--on-dark);
  margin-bottom: 0.8rem;
}

.enrolment-right > p {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.9rem;
  line-height: 1.7;
  margin-bottom: 2rem;
}

/* ── CERTIFICATE ── */
.certificate-wrap {
  position: relative;
}

.certificate {
  background: #fffef9;
  border-radius: 4px;
  overflow: hidden;
  box-shadow:
    0 0 0 1px rgba(200, 170, 100, 0.4),
    0 8px 40px rgba(0, 0, 0, 0.35),
    inset 0 0 0 8px rgba(255, 255, 255, 0.9);
  position: relative;
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1),
              box-shadow 0.4s;
}

.certificate:hover {
  transform: translateY(-6px) rotate(-0.5deg);
  box-shadow:
    0 0 0 1px rgba(200, 170, 100, 0.5),
    0 20px 60px rgba(0, 0, 0, 0.4),
    inset 0 0 0 8px rgba(255, 255, 255, 0.9);
}

/* decorative inner border */
.certificate::before {
  content: '';
  position: absolute;
  inset: 12px;
  border: 1.5px solid rgba(180, 145, 60, 0.25);
  border-radius: 2px;
  pointer-events: none;
  z-index: 1;
}

/* TOP STRIP */
.cert-top-strip {
  height: 10px;
  background: linear-gradient(90deg, var(--navy), var(--royal), var(--sky), var(--royal), var(--navy));
}

/* HEADER */
.cert-header {
  text-align: center;
  padding: 1.4rem 2rem 0.5rem;
  border-bottom: 1px solid rgba(180, 145, 60, 0.2);
}

.cert-logo-text {
  font-family: 'Playfair Display', serif;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--heading);
  letter-spacing: 0.04em;
}

.cert-logo-text span {
  color: var(--royal);
}

.cert-tagline {
  font-size: 0.65rem;
  color: var(--muted);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-top: 0.2rem;
}

/* SEAL */
.cert-seal {
  display: flex;
  justify-content: center;
  margin: 1rem 0 0.5rem;
}

.cert-seal-inner {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--navy), var(--royal));
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  box-shadow:
    0 0 0 3px #fffef9,
    0 0 0 5px rgba(180, 145, 60, 0.4);
}

.cert-seal-icon {
  font-size: 1.6rem;
  line-height: 1;
}

.cert-seal-text {
  font-size: 0.45rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  color: rgba(255, 255, 255, 0.8);
  margin-top: 0.15rem;
}

/* BODY */
.cert-body {
  text-align: center;
  padding: 0.8rem 2.5rem 1.2rem;
}

.cert-presents {
  font-size: 0.72rem;
  color: var(--muted);
  letter-spacing: 0.06em;
  margin-bottom: 0.4rem;
  font-style: italic;
}

.cert-name {
  font-family: 'Playfair Display', serif;
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--heading);
  border-bottom: 1.5px solid rgba(180, 145, 60, 0.35);
  display: inline-block;
  padding-bottom: 0.3rem;
  margin-bottom: 0.6rem;
  min-width: 200px;
}

.cert-course {
  font-family: 'Playfair Display', serif;
  font-size: 1rem;
  font-weight: 700;
  color: var(--royal);
  margin: 0.3rem 0 0.6rem;
  letter-spacing: 0.02em;
}

.cert-desc {
  font-size: 0.68rem;
  color: var(--muted);
  line-height: 1.6;
  max-width: 280px;
  margin: 0 auto;
  font-style: italic;
}

/* FOOTER */
.cert-footer {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  padding: 1rem 2rem 1.2rem;
  border-top: 1px solid rgba(180, 145, 60, 0.2);
}

.cert-footer-item {
  text-align: center;
}

.cert-signature {
  font-family: 'Playfair Display', serif;
  font-size: 1rem;
  color: var(--heading);
  margin-bottom: 0.3rem;
  letter-spacing: 0.1em;
}

.cert-date {
  font-family: 'Playfair Display', serif;
  font-size: 0.85rem;
  color: var(--heading);
  margin-bottom: 0.3rem;
}

.cert-footer-label {
  font-size: 0.65rem;
  font-weight: 700;
  color: var(--heading);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.cert-footer-sub {
  font-size: 0.6rem;
  color: var(--muted);
  margin-top: 0.1rem;
}

.cert-footer-divider {
  width: 1px;
  height: 40px;
  background: rgba(180, 145, 60, 0.3);
}

/* BOTTOM STRIP */
.cert-bottom-strip {
  height: 10px;
  background: linear-gradient(90deg, var(--navy), var(--royal), var(--sky), var(--royal), var(--navy));
}

.cert-note {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.4);
  text-align: center;
  margin-top: 1rem !important;
  line-height: 1.6;
}

/* ── RESPONSIVE ── */
@media (max-width: 960px) {
  .enrolment-inner {
    grid-template-columns: 1fr;
  }

  .certificate {
    max-width: 420px;
    margin: 0 auto;
  }
}






/* ── CERTIFICATE CLICK HINT ── */
.cert-click-hint {
  text-align: center;
  margin-bottom: 0.6rem;
}

.cert-click-hint span {
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.5);
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 20px;
  padding: 0.3rem 0.9rem;
  display: inline-block;
}

#certPreview {
  cursor: pointer;
}

#certPreview:hover::after {
  content: 'Click to preview';
  position: absolute;
  bottom: 1rem;
  left: 50%;
  transform: translateX(-50%);
  background: var(--royal);
  color: var(--on-dark);
  font-size: 0.78rem;
  font-weight: 600;
  padding: 0.4rem 1rem;
  border-radius: 20px;
  white-space: nowrap;
  pointer-events: none;
}

.certificate-wrap {
  position: relative;
}

/* ── CERTIFICATE MODAL ── */
.cert-modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
}

.cert-modal.open {
  opacity: 1;
  pointer-events: all;
}

.cert-modal-overlay {
  position: absolute;
  inset: 0;
  background: rgba(6, 15, 34, 0.85);
  backdrop-filter: blur(6px);
}

.cert-modal-content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.2rem;
  transform: scale(0.9) translateY(20px);
  transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
  max-height: 90vh;
  overflow-y: auto;
  scrollbar-width: none;
}

.cert-modal-content::-webkit-scrollbar {
  display: none;
}

.cert-modal.open .cert-modal-content {
  transform: scale(1) translateY(0);
}

.cert-modal-close {
  position: fixed;
  top: 1.5rem;
  right: 1.5rem;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  border: 1.5px solid rgba(255, 255, 255, 0.2);
  color: var(--on-dark);
  font-size: 1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s, transform 0.2s;
  z-index: 2;
}

.cert-modal-close:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: rotate(90deg);
}



/*General Mobile Polish*/
@media (max-width: 768px) {

  /* Prevent horizontal overflow */
  body {
    overflow-x: hidden;
  }

  /* Section padding tighter on mobile */
  section {
    padding: 60px 5%;
  }

  /* About grid */
  .about-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  /* Services grid */
  .services-grid {
    grid-template-columns: 1fr;
  }

  /* Courses grid */
  .courses-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  /* Contact grid */
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  /* Form row stacks */
  .form-row {
    grid-template-columns: 1fr;
  }

  /* Footer stacks */
  .footer-top {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 0.5rem;
    text-align: center;
  }

  /* Hero buttons stack */
  .hero-buttons {
    flex-direction: column;
  }

  .btn-primary,
  .btn-outline {
    text-align: center;
    width: 100%;
  }

  /* Sticky buttons smaller on mobile */
  .sticky-enrol {
    font-size: 0.82rem;
    padding: 0.6rem 1rem;
    bottom: 6rem;
    right: 1rem;
  }


  @media (max-width: 768px) {
  .sticky-enrol {
    display: none !important;
  }
}

 .whatsapp-btn {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 56px;
  height: 56px;
  background: #25D366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 1.6rem;
  box-shadow: 0 4px 16px rgba(37, 211, 102, 0.4);
  z-index: 999;
  transition: transform 0.2s, box-shadow 0.2s;
  text-decoration: none;
  /* ADD THESE TWO */
  will-change: transform;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
}

.whatsapp-btn svg {
  width: 28px;
  height: 28px;
  fill: currentColor;
}
}

@media (max-width: 480px) {

  /* Courses grid single column on very small screens */
  .courses-grid {
    grid-template-columns: 1fr;
  }

  /* Hero stats wrap */
  .hero-stats {
    gap: 1rem;
  }

  /* Delivery badges stack */
  .delivery-badges {
    flex-direction: column;
  }

}


/* Hide Both Buttons on Mobile Scroll */
@media (max-width: 768px) {
  .sticky-enrol.scrolling,
  .whatsapp-btn.scrolling {
    opacity: 0 !important;
    pointer-events: none;
  }

  .whatsapp-btn {
    transition: opacity 0.3s, transform 0.2s;
  }
}

/* .nav-hamburger / mobile .nav-links collapse now live in the
   shared style.css, since every page needs them, not just course
   pages — see that file's "HAMBURGER BUTTON" section. */


@media (max-width: 768px) {

  /* Make summary banner scroll normally */
  .summary-banner {
    position: relative !important;
    top: auto !important;
    z-index: auto !important;
  }

  /* Make section indicator scroll normally */
  .section-indicator {
    position: relative !important;
    top: auto !important;
    z-index: auto !important;
  }

}


