/* =====================================================================
   NABH DECODED — MAIN STYLESHEET
   ===================================================================== */

:root {
  --navy: #0d1b3a;
  --navy-light: #16264d;
  --gold: #d4a836;
  --gold-light: #e8c766;
  --teal: #0f7d6f;
  --teal-light: #14a394;
  --grey-bg: #f4f6f8;
  --text-dark: #1a1a1a;
  --text-grey: #555;
  --white: #ffffff;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

html {
  background: var(--navy);
}

body {
  font-family: 'Segoe UI', Arial, sans-serif;
  color: var(--text-dark);
  line-height: 1.6;
  overflow-x: hidden;
  background: var(--white);
  opacity: 0;
  transition: opacity 0.35s ease;
}
body.page-loaded { opacity: 1; }
body.page-leaving { opacity: 0; }

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
}

h1, h2, h3 { font-family: Georgia, 'Times New Roman', serif; line-height: 1.3; }
a { text-decoration: none; }
ul { list-style: none; }

/* Reduced motion respect */
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

/* ===== SCROLL REVEAL ANIMATION ===== */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ===== HEADER (sticky) ===== */
.site-header {
  background: var(--navy);
  padding: 0;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 10px rgba(0,0,0,0.15);
  transition: padding 0.25s ease;
}
.site-header.scrolled { padding: 6px 0; }

.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  padding: 0 24px;
}
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
}
.logo-icon { font-size: 28px; }
.logo-text { color: var(--gold); font-family: Georgia, serif; font-weight: bold; font-size: 22px; line-height: 1.1; }
.logo-text span { display: block; font-size: 13px; letter-spacing: 1px; }

.main-nav {
  display: flex;
  align-items: center;
  gap: 8px;
}
.nav-item {
  display: flex;
  align-items: center;
  gap: 6px;
  background: none;
  border: 1.5px solid transparent;
  color: #d8dcea;
  padding: 10px 20px;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 600;
  font-family: inherit;
  line-height: 1;
  cursor: pointer;
  transition: border-color 0.2s, color 0.2s;
}
.nav-item:hover { border-color: rgba(212,168,54,0.4); color: var(--gold-light); }
.nav-item.active {
  border-color: var(--gold);
  color: var(--gold);
}
.menu-caret { font-size: 11px; }

.courses-menu-wrap {
  position: relative;
}

.courses-menu-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  width: min(320px, calc(100vw - 28px));
  min-width: 245px;
  max-height: min(68vh, 470px);
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
  scrollbar-color: var(--gold) var(--navy);
  background: #142447;
  border: 1px solid rgba(212,168,54,0.42);
  border-radius: 10px;
  box-shadow: 0 16px 36px rgba(0,0,0,0.32);
  padding: 5px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-5px);
  transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s;
  z-index: 150;
}
.courses-menu-dropdown.open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.courses-menu-item {
  display: block;
  padding: 9px 12px;
  margin: 1px 0;
  border: 0;
  border-radius: 6px;
  font-size: 13.5px;
  line-height: 1.4;
  font-weight: 600;
  color: #edf1fa;
  overflow-wrap: anywhere;
  transition: background 0.15s ease, color 0.15s ease;
}
.courses-menu-item:hover { background: rgba(212,168,54,0.13); color: var(--gold-light); }
.courses-menu-item.active { background: var(--gold); color: var(--navy); }
.courses-menu-item.is-soon { color: #c0c8da; }
.courses-menu-item.is-soon em { display: inline-block; margin-left: 4px; font-style: normal; font-size: 10px; font-weight: 500; opacity: 0.78; }
@media (max-width: 600px) {
  .courses-menu-dropdown { width: min(300px, calc(100vw - 20px)); min-width: 0; max-height: 65vh; }
  .courses-menu-item { padding: 10px 11px; font-size: 13px; }
}
.footer-cols a.is-soon { color: #6c7592; }

@media (max-width: 480px) {
  .nav-item { padding: 9px 14px; font-size: 14px; }
}

/* ===== HERO ===== */
.hero {
  background: linear-gradient(160deg, var(--navy) 0%, var(--navy-light) 55%, var(--teal) 140%);
  text-align: center;
  padding: 70px 20px 60px;
  color: var(--white);
}
.badge {
  display: inline-block;
  background: var(--gold);
  color: var(--navy);
  padding: 6px 18px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.5px;
  margin-bottom: 20px;
}
.hero h1 {
  font-size: 40px;
  margin-bottom: 8px;
}
.hero h2.hero-subtitle {
  font-size: 22px;
  font-weight: 400;
  color: #cfd6e6;
  margin-bottom: 28px;
  font-family: 'Segoe UI', Arial, sans-serif;
}
.hero-pills {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 35px;
}
.pill {
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.18);
  padding: 8px 18px;
  border-radius: 20px;
  font-size: 14px;
}

/* Countdown */
.countdown {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin-bottom: 35px;
  flex-wrap: wrap;
}
.countdown-box {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 10px;
  padding: 14px 20px;
  min-width: 70px;
}
.countdown-box .num {
  font-size: 28px;
  font-weight: 700;
  color: var(--gold-light);
  font-family: Georgia, serif;
}
.countdown-box .label {
  font-size: 11px;
  letter-spacing: 1px;
  color: #b8c0d4;
  text-transform: uppercase;
  margin-top: 4px;
}

.btn-primary {
  display: inline-block;
  background: var(--gold);
  color: var(--navy);
  padding: 14px 36px;
  border-radius: 8px;
  font-weight: 700;
  font-size: 16px;
  border: none;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(212,168,54,0.35); }

.btn-pay {
  display: inline-block;
  background: #4d7ff0;
  color: #fff;
  padding: 14px 36px;
  border-radius: 8px;
  font-weight: 700;
  font-size: 16px;
  margin-top: 14px;
  transition: transform 0.2s;
}
.btn-pay:hover { transform: translateY(-2px); }
.powered-by { font-size: 12px; color: #a8b1c4; margin-top: 8px; }

.hero-note { margin-top: 20px; font-size: 14px; color: #b8c0d4; }

/* Course switch pills (bottom of hero) */
.course-switch {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-top: 40px;
  flex-wrap: wrap;
}
.switch-pill {
  padding: 12px 24px;
  border-radius: 12px;
  font-size: 14px;
  text-align: center;
  min-width: 160px;
  transition: transform 0.2s;
}
.switch-pill:hover { transform: translateY(-2px); }
.switch-pill.active { background: var(--gold); color: var(--navy); }
.switch-pill:not(.active) { background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.18); color: #e8e8e8; }
.switch-pill strong { display: block; font-size: 15px; }
.switch-pill span { font-size: 12px; opacity: 0.85; }

/* ===== SECTION HEADERS ===== */
.section-title {
  text-align: center;
  font-size: 30px;
  margin-bottom: 10px;
  color: var(--navy);
}
.section-sub {
  text-align: center;
  color: var(--text-grey);
  margin-bottom: 40px;
}

/* ===== COURSE DETAILS ===== */
.course-details { padding: 70px 20px; }
.details-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-bottom: 50px;
}
.detail-card {
  background: var(--white);
  border-top: 3px solid var(--teal-light);
  border-radius: 10px;
  padding: 22px;
  box-shadow: 0 3px 14px rgba(0,0,0,0.06);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.detail-card:hover { transform: translateY(-4px); box-shadow: 0 10px 24px rgba(0,0,0,0.1); }
.detail-card .icon { margin-bottom: 10px; }
.detail-card .icon svg { width: 26px; height: 26px; stroke: var(--teal); }
.logo-img {
  height: 62px;
  width: auto;
  display: block;
}
.receive-card .icon-wrap { width: 54px; height: 54px; margin: 0 auto 12px; display: flex; align-items: center; justify-content: center; background: var(--grey-bg); border-radius: 50%; }
.receive-card .icon-wrap svg { width: 26px; height: 26px; stroke: var(--teal); }
.whatsapp-float svg { width: 28px; height: 28px; fill: #fff; }
.faq-question .plus svg { width: 16px; height: 16px; stroke: var(--teal); }
.detail-card h3 { font-size: 13px; color: var(--teal); text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 6px; font-family: 'Segoe UI', sans-serif; }
.detail-card p { font-weight: 700; color: var(--navy); font-size: 17px; }

.receive-title { text-align: center; margin-bottom: 24px; color: var(--navy); font-size: 22px; }
.receive-grid {
  display: flex;
  justify-content: center;
  gap: 50px;
  flex-wrap: wrap;
}
.receive-card { text-align: center; }
.receive-card .emoji { font-size: 46px; display: block; margin-bottom: 10px; }
.receive-card p { font-weight: 600; color: var(--navy); }

/* ===== TOPICS ===== */
.topics { background: var(--grey-bg); padding: 70px 20px; }
.topics-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  max-width: 850px;
  margin: 0 auto;
}
.topics-list li {
  background: var(--white);
  padding: 16px 20px;
  border-radius: 8px;
  border-left: 4px solid var(--teal);
  font-weight: 500;
  transition: transform 0.2s;
}
.topics-list li:hover { transform: translateX(4px); }
.topics-list li::before { content: "✔  "; color: var(--teal); font-weight: bold; }

/* ===== WHO SHOULD ATTEND ===== */
.who-attend { padding: 70px 20px; text-align: center; }
.attend-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  max-width: 850px;
  margin: 0 auto 30px;
}
.attend-card {
  background: var(--grey-bg);
  padding: 18px;
  border-radius: 10px;
  font-weight: 500;
  color: var(--navy);
}
.attend-note {
  max-width: 620px;
  margin: 0 auto;
  color: var(--text-grey);
  font-size: 16px;
}

/* ===== TRAINER ===== */
.trainer { background: var(--grey-bg); padding: 70px 20px; }
.trainer-card {
  max-width: 900px;
  margin: 40px auto 0;
  background: var(--white);
  border-radius: 16px;
  padding: 40px;
  display: flex;
  align-items: center;
  gap: 40px;
  text-align: left;
  box-shadow: 0 8px 30px rgba(0,0,0,0.08);
  border-top: 4px solid var(--teal);
}
.trainer-photo {
  width: 180px;
  height: 180px;
  min-width: 180px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--teal-light);
}
.trainer-details { flex: 1; }
.trainer-card h3 { color: var(--navy); font-size: 26px; margin-bottom: 4px; }
.trainer-role { color: var(--teal); font-weight: 600; margin-bottom: 8px; }
.trainer-exp {
  display: inline-block;
  background: var(--gold);
  color: var(--navy);
  padding: 6px 16px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 16px;
}
.trainer-card p.bio { color: var(--text-grey); margin-bottom: 18px; }
.trainer-card blockquote {
  font-style: italic;
  color: var(--navy);
  border-left: 3px solid var(--gold);
  padding-left: 16px;
}

@media (max-width: 700px) {
  .trainer-card { flex-direction: column; text-align: center; }
  .trainer-card blockquote { text-align: left; }
}

/* ===== FAQ ===== */
.faq { padding: 70px 20px; }
.faq-list { max-width: 750px; margin: 0 auto; }
.faq-item {
  background: var(--grey-bg);
  border-radius: 10px;
  margin-bottom: 12px;
  overflow: hidden;
}
.faq-question {
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  padding: 18px 22px;
  font-weight: 600;
  color: var(--navy);
  font-size: 16px;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.faq-question .plus { transition: transform 0.25s; color: var(--teal); font-size: 20px; }
.faq-item.open .faq-question .plus { transform: rotate(45deg); }
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
  padding: 0 22px;
}
.faq-item.open .faq-answer { max-height: 200px; padding: 0 22px 18px; }
.faq-answer p { color: var(--text-grey); }

/* ===== REGISTER CTA ===== */
.register-cta {
  text-align: center;
  padding: 70px 20px;
  background: linear-gradient(135deg, var(--teal), var(--navy));
  color: var(--white);
}
.register-cta .badge { background: var(--white); color: var(--teal); }
.register-cta h2 { margin: 16px 0 6px; font-size: 28px; }
.register-cta p { color: #d8e4e2; margin-bottom: 10px; }

/* ===== FOOTER ===== */
.site-footer {
  background: var(--navy);
  color: #c4cbe0;
  padding: 48px 24px 22px;
  text-align: center;
}
.footer-logo-img { height: 88px; width: auto; margin: 0 auto 14px; display: block; }
.footer-inner > #footerTagline { max-width: 500px; margin: 0 auto 28px !important; color: #a8b1c4; line-height: 1.7; }
.footer-cols {
  display: grid;
  grid-template-columns: minmax(170px, 0.9fr) minmax(150px, 0.8fr) minmax(420px, 2fr);
  justify-content: stretch;
  align-items: start;
  gap: clamp(24px, 4vw, 56px);
  margin: 32px auto 34px;
  max-width: 1050px;
  text-align: left;
}
.footer-cols > div { min-width: 0; }
.footer-cols h4 { color: var(--gold); margin: 0 0 14px; font-family: 'Segoe UI', sans-serif; font-size: 15px; font-weight: 700; letter-spacing: .2px; }
.footer-socials-row { display: flex; align-items: center; gap: 12px; margin-top: 2px; }
.footer-social-icon {
  width: 36px; height: 36px; display: inline-flex; align-items: center; justify-content: center;
  border-radius: 50%; background: rgba(255,255,255,.045); transition: transform .2s, background .2s, color .2s;
}
.footer-social-icon svg { width: 23px; height: 23px; color: var(--gold); display: block; margin: 0 auto; }
.footer-social-icon:hover { transform: translateY(-2px); background: rgba(255,255,255,.1); }
.footer-social-icon:hover svg { color: var(--gold-light); }
.footer-cols p, .footer-cols a { font-size: 14px; line-height: 1.6; color: #a8b1c4; display: block; margin: 0 0 8px; text-decoration: none; }
.footer-cols a:hover { color: var(--gold-light); }
#footerCoursesList { display: grid; grid-template-columns: repeat(3, minmax(130px, 1fr)); column-gap: 22px; row-gap: 2px; }
#footerCoursesList a { overflow-wrap: anywhere; }
@media (max-width: 900px) {
  .footer-cols { grid-template-columns: minmax(150px, 1fr) minmax(130px, .8fr); gap: 28px; }
  .footer-cols > div:last-child { grid-column: 1 / -1; }
  #footerCoursesList { grid-template-columns: repeat(2, minmax(130px, 1fr)); }
}
@media (max-width: 560px) {
  .site-footer { padding: 38px 20px 20px; }
  .footer-logo-img { height: 72px; }
  .footer-cols { grid-template-columns: 1fr; gap: 24px; margin: 26px auto; }
  .footer-cols > div:last-child { grid-column: auto; }
  #footerCoursesList { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 16px; }
}
.btn-disabled {
  opacity: 0.55;
  cursor: not-allowed;
  pointer-events: none;
}
.footer-social {
  display: flex;
  gap: 10px;
  margin-top: 10px;
}
.social-icon {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.18);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s, transform 0.2s;
}
.social-icon svg { width: 18px; height: 18px; color: var(--gold); }
.social-icon:hover { background: var(--gold); transform: translateY(-2px); }
.social-icon:hover svg { color: var(--navy); }
.copyright { font-size: 13px; color: #7c86a3; border-top: 1px solid #26325a; padding-top: 20px; margin-top: 10px; }

/* ===== WHATSAPP FLOAT BUTTON ===== */
.whatsapp-float {
  position: fixed;
  bottom: 22px;
  right: 22px;
  background: #25D366;
  color: #fff;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  box-shadow: 0 4px 14px rgba(0,0,0,0.25);
  z-index: 200;
  transition: transform 0.2s;
}
.whatsapp-float:hover { transform: scale(1.08); }

.social-float {
  position: fixed;
  right: 26px;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 14px rgba(0,0,0,0.25);
  z-index: 200;
  transition: transform 0.2s;
  color: #fff;
}
.social-float svg { width: 20px; height: 20px; display: block; }
.social-float:hover { transform: scale(1.08); }
.instagram-float {
  bottom: 88px;
  background: radial-gradient(circle at 30% 110%, #fdf497, #fdf497 5%, #fd5949 45%, #d6249f 60%, #285AEB 90%);
}
.facebook-float {
  bottom: 148px;
  background: #1877F2;
}

/* ===== REGISTRATION FORM MODAL ===== */
.form-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(6,14,32,0.78);
  z-index: 300;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.form-overlay.open { display: flex; }
.form-modal {
  background:
    linear-gradient(165deg, rgba(13,27,58,0.95) 0%, rgba(22,38,77,0.93) 55%, rgba(12,47,69,0.92) 130%),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cg fill='none' stroke='%23d4a836' stroke-width='1.2' opacity='0.14'%3E%3Cpath d='M30 20h10v10h10v10H40v10H30V40H20V30h10z'/%3E%3Ccircle cx='150' cy='40' r='16'/%3E%3Cpath d='M150 32v16M142 40h16'/%3E%3Cpath d='M40 140c0-8 10-8 10 0 0-8 10-8 10 0 0 6-10 14-10 14s-10-8-10-14z'/%3E%3Crect x='130' y='120' width='16' height='26' rx='2'/%3E%3Cline x1='138' y1='114' x2='138' y2='120'/%3E%3Ccircle cx='170' cy='150' r='2.5' fill='%23d4a836'/%3E%3Ccircle cx='178' cy='165' r='2.5' fill='%23d4a836'/%3E%3Cline x1='170' y1='150' x2='178' y2='165'/%3E%3C/g%3E%3C/svg%3E");
  background-size: cover, 220px 220px;
  background-position: center, center;
  border-radius: 16px;
  max-width: 460px;
  width: 100%;
  max-height: 96vh;
  max-height: 96dvh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  position: relative;
  box-shadow: 0 20px 60px rgba(0,0,0,0.5);
}

/* ===== SPLIT-PANEL REGISTRATION MODAL (image + form side by side) ===== */
.form-modal-split {
  max-width: 940px;
  flex-direction: row;
  background: var(--white);
}
.form-modal-illustration {
  display: none;
  flex: 0 0 42%;
  background: linear-gradient(165deg, var(--navy) 0%, var(--navy-light) 60%, var(--teal) 140%);
  padding: 36px 28px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}
.illustration-logo { width: 165px; max-width: 80%; height: auto; margin-bottom: 22px; display: block; }
.form-modal-illustration h3 { color: #fff; font-size: 19px; margin-bottom: 8px; }
.form-modal-illustration p { color: #c4cbe0; font-size: 13px; line-height: 1.5; }
.form-modal-form-side {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.form-modal-split .form-modal-banner {
  background: var(--white);
  padding: 20px 30px 10px;
}
.form-modal-split .form-modal-banner h3 { color: var(--navy); }
.form-modal-split .form-modal-banner p { color: var(--text-grey); }
.form-modal-split .form-modal-banner::after { background: #eee; }
.form-modal-split .form-modal-body { background: var(--white); }
.form-modal-split .form-group label { color: var(--navy); }
.form-modal-split .form-group input {
  color: var(--text-dark);
  border-bottom-color: #ccc;
}
.form-modal-split .form-group input::placeholder { color: #999; }
.form-modal-split .email-check-wrap input { color: var(--text-dark); border-bottom-color: #ccc; }
.form-modal-split .close-btn { background: rgba(0,0,0,0.08); color: var(--navy); }
.form-modal-split .close-btn:hover { background: rgba(0,0,0,0.16); }

@media (min-width: 700px) {
  .form-modal-illustration { display: flex; }
}

.close-btn {
  position: absolute;
  top: 14px;
  right: 16px;
  background: rgba(255,255,255,0.1);
  border: none;
  font-size: 22px;
  cursor: pointer;
  color: #fff;
  line-height: 1;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  transition: background 0.2s;
  z-index: 2;
}
.form-modal .close-btn:hover { background: rgba(255,255,255,0.22); }

.form-modal-banner {
  text-align: center;
  padding: 22px 32px 14px;
  flex-shrink: 0;
  position: relative;
}
.form-modal-banner::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 32px;
  right: 32px;
  height: 1px;
  background: rgba(212,168,54,0.25);
}
.form-banner-icon { width: 36px; height: 36px; color: var(--gold); margin-bottom: 6px; filter: drop-shadow(0 2px 6px rgba(0,0,0,0.4)); }
.form-modal-banner h3 { color: #fff; font-size: 19px; margin-bottom: 3px; }
.form-modal-banner p { color: #b8c0d4; font-size: 12.5px; font-family: 'Segoe UI', sans-serif; }

.form-modal-body {
  padding: 12px 30px 20px;
  overflow-y: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.form-modal-body::-webkit-scrollbar { display: none; }
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.form-group { margin-bottom: 7px; }
.form-group label { display: block; font-size: 12px; font-weight: 600; margin-bottom: 6px; color: #cfd6e6; }
.form-group input {
  width: 100%;
  padding: 6px 2px;
  background: transparent;
  border: none;
  border-bottom: 1.5px solid rgba(255,255,255,0.28);
  border-radius: 0;
  font-size: 15px;
  color: #fff;
  transition: border-color 0.2s;
}
.form-group input::placeholder { color: #7c86a3; }
.form-group input:focus { outline: none; border-bottom-color: var(--gold); }

.email-input-wrap {
  display: flex;
  align-items: stretch;
  border: none;
  border-bottom: 1.5px solid rgba(255,255,255,0.28);
  border-radius: 0;
  overflow: hidden;
  transition: border-color 0.2s;
}
.email-input-wrap:focus-within { border-bottom-color: var(--gold); }
.email-input-wrap input {
  flex: 1;
  min-width: 0;
  border: none;
  border-radius: 0;
  padding: 9px 2px;
  font-size: 15px;
  background: transparent;
  color: #fff;
}
.email-input-wrap input:focus { outline: none; border: none; }
.email-suffix {
  display: flex;
  align-items: center;
  padding: 0 4px;
  color: #8892ac;
  font-size: 14px;
  white-space: nowrap;
}
.email-check-wrap { position: relative; }
.email-check-tick {
  display: none;
  font-size: 12px;
  color: #299b51;
  font-weight: 700;
  margin-top: 5px;
}
.email-check-tick.show { display: block; }
.otp-verification { margin-top: 6px; }
.otp-head {
  align-items: center;
  display: flex;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 7px;
}
.otp-head label { margin-bottom: 0 !important; }
.otp-button-row {
  display: flex;
  align-items: center;
  gap: 6px;
}
.otp-resend-btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}
.otp-sent-btn {
  min-width: 78px;
}

.otp-resend-btn {
  background: none;
  border: 1px solid var(--gold);
  border-radius: 6px;
  color: var(--gold);
  cursor: pointer;
  font-size: 11.5px;
  font-weight: 700;
  padding: 5px 12px;
  white-space: nowrap;
  transition: background 0.18s, color 0.18s;
}
.otp-resend-btn:hover { background: var(--gold); color: var(--navy); }

/* Amount shown inside the registration form, just above Register */
.form-fee-box {
  background: rgba(212, 168, 54, 0.1);
  border: 1px solid rgba(212, 168, 54, 0.45);
  border-radius: 9px;
  margin: 10px 0 9px;
  padding: 9px 13px;
}
.form-fee-row {
  align-items: baseline;
  display: flex;
  justify-content: space-between;
  gap: 10px;
}
.form-fee-label { color: var(--navy); font-size: 13px; font-weight: 600; }
.form-fee-amount { color: var(--navy); font-size: 17px; font-weight: 800; }
.form-fee-note { color: var(--text-grey); font-size: 11.5px; line-height: 1.4; margin-top: 5px; }
.otp-verification label { color: var(--navy); display: block; font-size: 12px; font-weight: 600; margin-bottom: 7px; }
.otp-inputs { display: flex; gap: 7px; }
.otp-input {
  padding: 6px 0;
  border: 1px solid #c7c7c7 !important;
  border-radius: 6px !important;
  color: var(--text-dark) !important;
  font-size: 17px !important;
  font-weight: 700;
  height: 38px;
  padding: 0 !important;
  text-align: center;
  width: 38px !important;
}
.otp-input:focus { border-color: var(--gold) !important; }
.otp-status { color: var(--text-grey); font-size: 12px; line-height: 1.35; margin: 7px 0 0; }
.form-submit-btn {
  width: 100%;
  background: var(--gold);
  color: var(--navy);
  border: none;
  padding: 11px;
  border-radius: 8px;
  font-weight: 700;
  font-size: 16px;
  cursor: pointer;
  margin-top: 10px;
  transition: transform 0.15s, box-shadow 0.15s;
}
.form-submit-btn:hover { transform: translateY(-1px); box-shadow: 0 8px 20px rgba(212,168,54,0.3); }
.form-status { text-align: center; margin-top: 14px; font-size: 14px; font-weight: 600; }

.cert-result {
  margin-top: 18px;
  border-radius: 10px;
  font-size: 14px;
  display: none;
}
.cert-result.show { display: block; }
.cert-result.success {
  padding: 16px;
  background: rgba(126,231,135,0.12);
  border: 1px solid rgba(126,231,135,0.35);
  color: #d4f5d8;
}
.cert-result.fail {
  padding: 16px;
  background: rgba(255,138,138,0.12);
  border: 1px solid rgba(255,138,138,0.35);
  color: #ffd0d0;
}
.cert-result strong { display: block; color: #fff; font-size: 15px; margin-bottom: 6px; }
.cert-result p { margin: 2px 0; }

/* ===== CERTIFICATE — FULL-SCREEN PLAIN VIEW ===== */
.cert-view-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 500;
  background: rgba(6, 14, 32, 0.92);
  overflow-y: auto;
  padding: 40px 20px;
}
.cert-view-overlay.open { display: block; }
.cert-view-inner {
  max-width: 900px;
  margin: 0 auto;
}
.cert-view-close {
  position: fixed;
  top: 18px;
  right: 22px;
  width: 42px;
  height: 42px;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
  font-size: 26px;
  line-height: 1;
  cursor: pointer;
  z-index: 510;
}
.cert-view-close:hover { background: rgba(255, 255, 255, 0.26); }

.cert-sheet {
  background: #fff;
  border: 2px solid var(--gold);
  border-radius: 4px;
  padding: 10px;
}
.cert-sheet-inner {
  border: 1px solid #dcdcdc;
  padding: 48px 50px 40px;
  text-align: center;
  color: var(--navy);
}
.cert-logo-img { height: 58px; width: auto; margin: 0 auto 26px; display: block; }
.cert-label {
  font-family: Georgia, serif;
  font-size: 26px;
  font-weight: 700;
  letter-spacing: 4px;
  color: var(--navy);
  margin-bottom: 34px;
}
.cert-certifies, .cert-completed {
  font-size: 14px;
  color: #555;
  margin-bottom: 8px;
}
.cert-name {
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 34px;
  font-weight: 400;
  color: var(--navy);
  margin-bottom: 26px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--gold);
  display: inline-block;
  min-width: 55%;
}
.cert-course-title {
  font-size: 17px;
  font-weight: 700;
  color: var(--navy);
  line-height: 1.5;
  max-width: 80%;
  margin: 0 auto 14px;
}
.cert-dates { font-size: 13px; color: #666; margin-bottom: 44px; }
.cert-footer-row {
  display: flex;
  justify-content: space-between;
  gap: 30px;
  max-width: 80%;
  margin: 0 auto 30px;
}
.cert-sign-block { flex: 1; text-align: center; }
.cert-sign-line { display: block; border-top: 1px solid #999; margin-bottom: 8px; }
.cert-sign-block strong { display: block; font-size: 14px; color: var(--navy); }
.cert-sign-block small { display: block; font-size: 11.5px; color: #777; margin-top: 3px; }
.cert-number { font-size: 13px; color: #444; margin-bottom: 8px; }
.cert-number strong { color: var(--navy); letter-spacing: 0.5px; }
.cert-disclaimer { font-size: 10px; color: #aaa; }

@media (max-width: 640px) {
  .cert-view-overlay { padding: 60px 12px 30px; }
  .cert-sheet-inner { padding: 30px 22px 26px; }
  .cert-label { font-size: 19px; letter-spacing: 2px; margin-bottom: 24px; }
  .cert-name { font-size: 25px; min-width: 80%; }
  .cert-course-title { font-size: 15px; max-width: 100%; }
  .cert-dates { margin-bottom: 30px; }
  .cert-footer-row { flex-direction: column; gap: 22px; max-width: 100%; }
}

/* ===== GENERIC ALERT POPUP ===== */
.alert-popup-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(6,14,32,0.8);
  z-index: 400;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.alert-popup-overlay.open { display: flex; }
.alert-popup-box {
  background: var(--navy);
  border: 1px solid rgba(212,168,54,0.3);
  border-top: 4px solid var(--gold);
  border-radius: 14px;
  padding: 28px 26px;
  max-width: 380px;
  width: 100%;
  text-align: center;
  box-shadow: 0 20px 60px rgba(0,0,0,0.5);
}
.alert-popup-box h3 { color: var(--gold); font-size: 19px; margin-bottom: 10px; }
.alert-popup-box p { color: #d8dcea; font-size: 14.5px; line-height: 1.6; margin-bottom: 20px; }
.alert-popup-btn {
  background: var(--gold);
  color: var(--navy);
  border: none;
  padding: 11px 32px;
  border-radius: 8px;
  font-weight: 700;
  font-size: 15px;
  cursor: pointer;
}
.alert-popup-btn:hover { transform: translateY(-1px); }

@media (max-width: 480px) {
  .form-row { grid-template-columns: 1fr; gap: 0; }
  .form-overlay { padding: 0; }
  .form-modal {
    max-width: 100%;
    width: 100%;
    height: 100vh;
    height: 100dvh;
    max-height: 100vh;
    max-height: 100dvh;
    border-radius: 0;
  }
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  .details-grid { grid-template-columns: repeat(2, 1fr); }
  .topics-list { grid-template-columns: 1fr; }
  .attend-grid { grid-template-columns: 1fr; }
  .hero h1 { font-size: 30px; }
  .hero h2.hero-subtitle { font-size: 18px; }
  .countdown-box { min-width: 60px; padding: 10px 14px; }
  .countdown-box .num { font-size: 22px; }
}


/* Registration unavailable state — keep the site's navy/gold visual theme. */
.btn-primary:disabled, .btn-primary.btn-disabled { opacity: .78; cursor: not-allowed; box-shadow: none; filter: saturate(.65); }
.course-unavailable-link { opacity: .9; }
