@import url("https://fonts.googleapis.com/css2?family=Sora:wght@400;600;700;800&family=Inter:wght@400;500;600&display=swap");

:root {
  --navy-dark: #0a1628;
  --navy: #132844;
  --navy-mid: #1d3a63;
  --blue-primary: #2563a8;
  --accent-orange: #f2751a;
  --accent-orange-dark: #d96310;
  --accent-gold: #fbbf24;
  --bg-light: #f6f8fb;
  --white: #ffffff;
  --text-dark: #16213a;
  --text-muted: #64748b;
  --border-light: #e6eaf0;
  --success-green: #16a34a;
  --error-red: #b91c1c;
  --font-display: "Sora", sans-serif;
  --font-body: "Inter", sans-serif;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: var(--font-body);
  background: var(--bg-light);
  color: var(--text-dark);
  line-height: 1.6;
}

h1,
h2,
h3,
h4,
.logo,
.btn,
.btn-accent,
.section-heading {
  font-family: var(--font-display);
}

/* ===== Reset & Base ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

a {
  text-decoration: none;
  color: inherit;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 30px 20px;
  min-height: 70vh;
}
.site-header {
  background: var(--navy-dark);
  color: #fff;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 40px;
  flex-wrap: wrap;
  gap: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.site-header .logo {
  font-size: 1.4rem;
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.02em;
  white-space: nowrap;
}

.site-header .logo span {
  color: var(--accent-orange);
}

.site-header nav {
  display: flex;
  align-items: center;
  gap: 28px;
  flex-wrap: wrap;
}

.site-header nav a:not(.nav-cta)::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 2px;
  background: var(--accent-orange);
  transition: width 0.25s ease;
}

.site-header nav a:not(.nav-cta):hover::after {
  width: 100%;
}

.site-header nav a:hover {
  color: #fff;
}

.nav-cta {
  background: var(--accent-orange);
  color: #fff !important;
  padding: 8px 18px;
  border-radius: 7px;
  font-weight: 600 !important;
}

.nav-cta:hover {
  background: var(--accent-orange-dark);
}

.currency-wrap {
  position: relative;
}

.currency-select {
  appearance: none;
  -webkit-appearance: none;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #fff;
  padding: 6px 28px 6px 14px;
  border-radius: 20px;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M0 0l5 6 5-6z' fill='%23cbd5e1'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
}

.currency-select:hover {
  border-color: var(--accent-orange);
}

/* ===== Footer ===== */
.site-footer {
  background: var(--navy-dark);
  color: #94a3b8;
  text-align: center;
  padding: 24px 20px;
  font-size: 0.9rem;
}

/* ===== Hero ===== */
.hero-section {
  background: linear-gradient(135deg, var(--navy-dark) 0%, var(--navy) 100%);
  color: #fff;
  padding: 60px 40px 50px;
  text-align: center;
}

.hero-badge {
  display: inline-flex;
  gap: 16px;
  flex-wrap: wrap;
  justify-content: center;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  padding: 8px 20px;
  border-radius: 30px;
  font-size: 0.85rem;
  color: #cbd5e1;
  margin-bottom: 24px;
}

.hero-section h1 {
  font-size: 2.4rem;
  max-width: 800px;
  margin: 0 auto 16px;
  color: #fff;
  line-height: 1.25;
}

.hero-section p.hero-sub {
  max-width: 650px;
  margin: 0 auto 28px;
  color: #cbd5e1;
  font-size: 1.05rem;
}

.hero-ctas {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 30px;
}

.hero-rating {
  color: var(--accent-gold);
  font-weight: 700;
  font-size: 0.95rem;
}

.hero-rating span {
  color: #cbd5e1;
  font-weight: 400;
}

/* ===== Trust Strip ===== */
.trust-strip {
  background: var(--white);
  display: flex;
  justify-content: center;
  gap: 50px;
  flex-wrap: wrap;
  padding: 24px 20px;
  border-bottom: 1px solid var(--border-light);
  text-align: center;
}

.trust-item .trust-label {
  font-weight: 700;
  color: var(--navy-dark);
  font-size: 0.95rem;
}

.trust-item .trust-sub {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* ===== Section Headers ===== */
.section-eyebrow {
  display: inline-block;
  color: var(--accent-orange);
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-size: 0.78rem;
  margin-bottom: 8px;
}

.section-heading {
  font-size: 1.8rem;
  color: var(--navy-dark);
  margin-bottom: 10px;
}

.section-sub {
  color: var(--text-muted);
  max-width: 600px;
  margin-bottom: 30px;
}

.section-block {
  padding: 50px 0;
}

/* ===== Filter Bar ===== */
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 30px;
}

.filter-bar a {
  padding: 8px 18px;
  background: #fff;
  border: 1px solid var(--border-light);
  border-radius: 20px;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-muted);
  transition: all 0.2s;
}

.filter-bar a:hover {
  border-color: var(--accent-orange);
  color: var(--accent-orange-dark);
}

.filter-bar a.active {
  background: var(--navy-dark);
  border-color: var(--navy-dark);
  color: #fff;
}

/* ===== Search/Sort Bar ===== */
.search-sort-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 20px;
}

.search-sort-bar input[type="text"] {
  flex: 1;
  min-width: 200px;
  padding: 10px 14px;
  border: 1px solid var(--border-light);
  border-radius: 8px;
  font-size: 0.95rem;
}

.search-sort-bar select {
  padding: 10px 14px;
  border: 1px solid var(--border-light);
  border-radius: 8px;
  font-size: 0.95rem;
  background: #fff;
}

/* ===== Course Grid ===== */
.course-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 24px;
  align-items: stretch;
}

.course-card {
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
  transition:
    transform 0.2s,
    box-shadow 0.2s;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.course-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.course-card img {
  width: 100%;
  height: 160px;
  object-fit: cover;
  background: var(--border-light);
}

.course-card h3 {
  padding: 16px 16px 4px;
  font-size: 1.1rem;
  color: var(--navy-dark);
  min-height: 52px;
}

.course-card p {
  padding: 0 16px;
  font-size: 0.9rem;
  color: var(--text-muted);
  flex-grow: 0;
}

.category-tag {
  display: inline-block;
  margin: 8px 16px 0;
  padding: 3px 10px;
  background: #e8f0fb;
  color: var(--blue-primary);
  border-radius: 12px;
  font-size: 0.75rem !important;
  font-weight: 600;
  width: fit-content;
}

.price {
  padding: 12px 16px;
  font-size: 1.1rem;
  font-weight: 700;
  margin-top: auto;
}

.old-price {
  text-decoration: line-through;
  color: #94a3b8;
  font-weight: 400;
  margin-right: 8px;
  font-size: 0.95rem;
}

.new-price {
  color: var(--success-green);
}

.course-card .btn {
  margin: 0 16px 16px;
}

/* ===== Buttons ===== */
.btn {
  display: inline-block;
  background: var(--accent-orange);
  color: #fff;
  padding: 10px 20px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.9rem;
  text-align: center;
  border: none;
  cursor: pointer;
  transition: background 0.2s;
}

.btn:hover {
  background: var(--accent-orange-dark);
}

.btn-accent {
  background: var(--accent-orange);
  color: #fff;
  padding: 12px 28px;
  border-radius: 8px;
  font-weight: 700;
  border: none;
  display: inline-block;
}

.btn-accent:hover {
  background: var(--accent-orange-dark);
}

.btn-outline {
  background: transparent;
  border: 1px solid var(--border-light);
  color: var(--navy-dark);
}

.btn-outline:hover {
  background: var(--bg-light);
  color: var(--navy-dark);
}

.btn-ghost {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: #fff;
  padding: 12px 28px;
  border-radius: 8px;
  font-weight: 600;
  display: inline-block;
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.1);
}

/* ===== Why Choose Us ===== */
.why-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
}

.why-card {
  background: #fff;
  border-radius: 12px;
  padding: 22px;
  border-left: 4px solid var(--accent-orange);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
}

.why-card h4 {
  color: var(--navy-dark);
  margin-bottom: 8px;
  font-size: 1.05rem;
}

.why-card p {
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* ===== FAQ ===== */
.faq-item {
  background: #fff;
  border-radius: 10px;
  margin-bottom: 12px;
  border: 1px solid var(--border-light);
  overflow: hidden;
}

.faq-question {
  padding: 16px 20px;
  cursor: pointer;
  font-weight: 600;
  color: var(--navy-dark);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.faq-answer {
  padding: 0 20px 16px;
  color: var(--text-muted);
  font-size: 0.92rem;
  display: none;
}

.faq-item.open .faq-answer {
  display: block;
}

.faq-item.open .faq-toggle {
  transform: rotate(45deg);
}

.faq-toggle {
  color: var(--accent-orange);
  font-size: 1.3rem;
  font-weight: 700;
  transition: transform 0.2s;
}

/* ===== CTA Banner ===== */
.cta-banner {
  background: linear-gradient(135deg, var(--navy-dark), var(--blue-primary));
  color: #fff;
  text-align: center;
  padding: 50px 20px;
  border-radius: 16px;
  margin: 20px 0;
}

.cta-banner h2 {
  color: #fff;
  margin-bottom: 10px;
}

.cta-banner p {
  color: #cbd5e1;
  margin-bottom: 24px;
}

/* ===== Course Detail Page ===== */
.course-detail {
  max-width: 800px;
  margin: 0 auto;
  background: #fff;
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

.course-detail img {
  width: 100%;
  max-height: 350px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 20px;
}

.course-detail h1 {
  margin-bottom: 8px;
}

.course-detail .description {
  margin: 20px 0;
  color: #334155;
}

/* ===== Enroll Box ===== */
.enroll-box {
  margin-top: 30px;
  padding-top: 25px;
  border-top: 1px solid var(--border-light);
}

.enroll-form {
  display: flex;
  flex-direction: column;
  max-width: 400px;
}

.enroll-form label {
  margin: 12px 0 4px;
  font-weight: 600;
  font-size: 0.9rem;
  color: #334155;
}

.enroll-form input,
.enroll-form textarea {
  padding: 10px;
  border: 1px solid var(--border-light);
  border-radius: 6px;
  font-size: 0.95rem;
  font-family: inherit;
}

.enroll-form .btn {
  margin-top: 18px;
  width: fit-content;
}

.success {
  background: #dcfce7;
  color: var(--success-green);
  padding: 12px 16px;
  border-radius: 6px;
}

/* ===== Login / Register Box ===== */
.login-box {
  max-width: 380px;
  margin: 60px auto;
  background: #fff;
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
}

.login-box h2 {
  margin-bottom: 20px;
  text-align: center;
  color: var(--navy-dark);
}

.login-box label {
  display: block;
  margin: 12px 0 4px;
  font-size: 0.9rem;
  font-weight: 600;
  color: #334155;
}

.login-box input {
  width: 100%;
  padding: 10px;
  border: 1px solid var(--border-light);
  border-radius: 6px;
  font-size: 0.95rem;
}

.login-box .btn {
  width: 100%;
  margin-top: 20px;
}

.error {
  background: #fee2e2;
  color: var(--error-red);
  padding: 10px 14px;
  border-radius: 6px;
  font-size: 0.9rem;
  margin-bottom: 10px;
}

/* ===== Enrollment List (My Enrollments page) ===== */
.enrollment-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.enrollment-card {
  display: flex;
  align-items: center;
  gap: 20px;
  background: #fff;
  border-radius: 12px;
  padding: 16px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

.enrollment-card img {
  width: 100px;
  height: 70px;
  object-fit: cover;
  border-radius: 8px;
  flex-shrink: 0;
}

.enrollment-info {
  flex: 1;
}

.enrollment-info h3 {
  margin-bottom: 4px;
  color: var(--navy-dark);
}

.enrollment-info p {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin: 2px 0;
}

.status-badge {
  display: inline-block;
  padding: 3px 12px;
  border-radius: 12px;
  font-size: 0.75rem;
  font-weight: 600;
  margin-top: 4px;
}

.status-paid {
  background: #dcfce7;
  color: var(--success-green);
}

.status-pending {
  background: #fef9c3;
  color: #a16207;
}

.status-failed {
  background: #fee2e2;
  color: var(--error-red);
}

/* ===== Invoice ===== */
.invoice-box {
  max-width: 700px;
  margin: 0 auto;
  background: #fff;
  padding: 40px;
  border-radius: 12px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

.invoice-header {
  text-align: center;
  border-bottom: 2px solid var(--border-light);
  padding-bottom: 20px;
  margin-bottom: 20px;
}

.invoice-header h2 {
  color: var(--navy-dark);
}

.invoice-details p {
  margin: 6px 0;
  font-size: 0.95rem;
}

.invoice-actions {
  margin-top: 25px;
  display: flex;
  gap: 10px;
}

@media print {
  .site-header,
  .site-footer-full,
  .invoice-actions,
  .profile-page-header {
    display: none !important;
  }
  body,
  .container {
    margin: 0 !important;
    padding: 0 !important;
    background: #fff !important;
  }
  .invoice-box {
    box-shadow: none !important;
    border: none !important;
    max-width: 100% !important;
    margin: 0 !important;
  }
}

/* ===== Admin Panel ===== */
.admin-wrap {
  max-width: 1000px;
  margin: 30px auto;
  background: #fff;
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

.admin-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 25px;
  flex-wrap: wrap;
  gap: 10px;
}

.admin-header h2 {
  color: var(--navy-dark);
  margin-bottom: 0;
}

.admin-header div {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
}

.admin-table th,
.admin-table td {
  text-align: left;
  padding: 12px;
  border-bottom: 1px solid var(--border-light);
  font-size: 0.9rem;
  vertical-align: middle;
}

.admin-table th {
  background: var(--bg-light);
  color: var(--navy-dark);
  font-weight: 600;
}

.admin-table a {
  color: var(--blue-primary);
  font-weight: 500;
}

.admin-table a:hover {
  text-decoration: underline;
}

.admin-form {
  display: flex;
  flex-direction: column;
  max-width: 500px;
}

.admin-form label {
  margin: 14px 0 4px;
  font-weight: 600;
  font-size: 0.9rem;
  color: #334155;
}

.admin-form input,
.admin-form select,
.admin-form textarea {
  padding: 10px;
  border: 1px solid var(--border-light);
  border-radius: 6px;
  font-size: 0.95rem;
  font-family: inherit;
}

.admin-form .btn,
.admin-form .btn-outline {
  margin-top: 20px;
  margin-right: 10px;
  width: fit-content;
}

/* ===== Responsive ===== */
@media (max-width: 600px) {
  .site-header {
    flex-direction: column;
    gap: 10px;
    padding: 16px 20px;
    text-align: center;
  }
  .hero-section h1 {
    font-size: 1.7rem;
  }
  .trust-strip {
    gap: 24px;
  }
  .admin-header {
    flex-direction: column;
    align-items: flex-start;
  }
  .enrollment-card {
    flex-direction: column;
    align-items: flex-start;
  }
}

.hero-section {
  position: relative;
  background: linear-gradient(
    160deg,
    var(--navy-dark) 0%,
    var(--navy) 55%,
    var(--navy-mid) 100%
  );
  color: #fff;
  padding: 80px 40px 60px;
  text-align: center;
  overflow: hidden;
}

.hero-section::before {
  content: "";
  position: absolute;
  top: -120px;
  left: 50%;
  transform: translateX(-50%);
  width: 700px;
  height: 700px;
  background: radial-gradient(
    circle,
    rgba(242, 117, 26, 0.16) 0%,
    transparent 70%
  );
  pointer-events: none;
}

.hero-section::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(
    rgba(255, 255, 255, 0.05) 1px,
    transparent 1px
  );
  background-size: 26px 26px;
  pointer-events: none;
}

.hero-section > * {
  position: relative;
  z-index: 1;
}

.hero-badge {
  display: inline-flex;
  gap: 16px;
  flex-wrap: wrap;
  justify-content: center;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.15);
  padding: 8px 22px;
  border-radius: 30px;
  font-size: 0.82rem;
  color: #cbd5e1;
  margin-bottom: 28px;
  backdrop-filter: blur(4px);
}

.hero-section h1 {
  font-size: 3rem;
  font-weight: 800;
  max-width: 780px;
  margin: 0 auto 18px;
  color: #fff;
  line-height: 1.18;
  letter-spacing: -0.02em;
}

.hero-section p.hero-sub {
  max-width: 620px;
  margin: 0 auto 32px;
  color: #a8b4c7;
  font-size: 1.08rem;
  font-weight: 400;
}

.hero-ctas {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 34px;
}

.btn-accent {
  background: var(--accent-orange);
  color: #fff;
  padding: 14px 30px;
  border-radius: 8px;
  font-weight: 700;
  font-size: 0.95rem;
  border: none;
  box-shadow: 0 8px 20px rgba(242, 117, 26, 0.35);
  transition:
    transform 0.15s ease,
    box-shadow 0.15s ease;
}

.btn-accent:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(242, 117, 26, 0.45);
  background: var(--accent-orange-dark);
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: #fff;
  padding: 14px 30px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.95rem;
  transition:
    background 0.15s ease,
    border-color 0.15s ease;
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.4);
}

.hero-rating {
  color: var(--accent-gold);
  font-weight: 700;
  font-size: 0.92rem;
  letter-spacing: 0.01em;
}

.hero-rating span {
  color: #94a3b8;
  font-weight: 400;
}

.trust-strip {
  background: var(--white);
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0;
  padding: 32px 20px;
  border-bottom: 1px solid var(--border-light);
  text-align: center;
}

.trust-item {
  padding: 0 40px;
}

.trust-icon {
  color: var(--accent-orange);
  margin-bottom: 8px;
  display: flex;
  justify-content: center;
}

.trust-item .trust-label {
  font-weight: 700;
  color: var(--navy-dark);
  font-size: 0.95rem;
  font-family: var(--font-display);
}

.trust-item .trust-sub {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 2px;
}

.trust-divider {
  width: 1px;
  height: 44px;
  background: var(--border-light);
}

@media (max-width: 700px) {
  .trust-strip {
    flex-wrap: wrap;
  }
  .trust-divider {
    display: none;
  }
  .trust-item {
    padding: 10px 20px;
  }
}

.section-eyebrow {
  display: inline-block;
  color: var(--accent-orange);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.75rem;
  margin-bottom: 10px;
  font-family: var(--font-body);
}

.section-heading {
  font-size: 2rem;
  font-weight: 700;
  color: var(--navy-dark);
  margin-bottom: 12px;
  letter-spacing: -0.01em;
}

.section-sub {
  color: var(--text-muted);
  max-width: 600px;
  margin-bottom: 34px;
  font-size: 1rem;
}

/* ===== Hero (full-bleed) ===== */
.hero-section {
  position: relative;
  width: 100%;
  background: linear-gradient(
    160deg,
    var(--navy-dark) 0%,
    var(--navy) 55%,
    var(--navy-mid) 100%
  );
  color: #fff;
  padding: 80px 20px 64px;
  text-align: center;
  overflow: hidden;
}

.hero-section::before {
  content: "";
  position: absolute;
  top: -120px;
  left: 50%;
  transform: translateX(-50%);
  width: 700px;
  height: 700px;
  background: radial-gradient(
    circle,
    rgba(242, 117, 26, 0.18) 0%,
    transparent 70%
  );
  pointer-events: none;
}

.hero-section::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(
    rgba(255, 255, 255, 0.06) 1px,
    transparent 1px
  );
  background-size: 26px 26px;
  pointer-events: none;
}

.hero-inner {
  position: relative;
  z-index: 1;
  max-width: 1200px;
  margin: 0 auto;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.15);
  padding: 8px 22px;
  border-radius: 30px;
  font-size: 0.82rem;
  color: #cbd5e1;
  margin-bottom: 30px;
}

.badge-divider {
  width: 1px;
  height: 14px;
  background: rgba(255, 255, 255, 0.25);
}

.hero-section h1 {
  font-size: 3rem;
  font-weight: 800;
  max-width: 700px;
  margin: 0 auto 18px;
  color: #fff;
  line-height: 1.2;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

.hero-section p.hero-sub {
  max-width: 600px;
  margin: 0 auto 32px;
  color: #a8b4c7;
  font-size: 1.08rem;
}

.hero-ctas {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 34px;
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.05);
  border: 1.5px solid rgba(255, 255, 255, 0.4);
  color: #fff;
  padding: 14px 30px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.95rem;
  transition:
    background 0.15s ease,
    border-color 0.15s ease;
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.6);
}

.hero-rating {
  color: var(--accent-gold);
  font-weight: 700;
  font-size: 0.92rem;
}

.hero-rating span {
  color: #94a3b8;
  font-weight: 400;
}

/* ===== Trust Strip (full-bleed) ===== */
.trust-strip {
  width: 100%;
  background: var(--white);
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 32px 20px;
  border-bottom: 1px solid var(--border-light);
  text-align: center;
  flex-wrap: wrap;
}

.trust-item {
  padding: 8px 40px;
}

.trust-icon {
  color: var(--accent-orange);
  margin-bottom: 8px;
  display: flex;
  justify-content: center;
}

.trust-item .trust-label {
  font-weight: 700;
  color: var(--navy-dark);
  font-size: 0.95rem;
  font-family: var(--font-display);
}

.trust-item .trust-sub {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 2px;
}

.trust-divider {
  width: 1px;
  height: 44px;
  background: var(--border-light);
}

@media (max-width: 700px) {
  .trust-divider {
    display: none;
  }
  .trust-item {
    padding: 10px 20px;
  }
  .hero-section h1 {
    font-size: 2rem;
  }
}

.site-header nav > a {
  position: relative;
  color: #cbd5e1;
  font-weight: 500;
  font-size: 0.92rem;
  transition: color 0.2s;
  padding: 4px 0;
  display: inline-block;
}

.site-header nav a:not(.nav-cta)::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 2px;
  background: var(--accent-orange);
  transition: width 0.25s ease;
}

.nav-cta {
  padding: 8px 18px !important;
  background: var(--accent-orange);
  color: #fff !important;
  border-radius: 7px;
  font-weight: 600 !important;
}

.invoice-top {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  border-bottom: 2px solid var(--border-light);
  padding-bottom: 20px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.invoice-top h2 {
  color: var(--navy-dark);
  margin-bottom: 6px;
}

.invoice-company-details {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.5;
}

.invoice-meta {
  text-align: right;
}

.invoice-meta h3 {
  color: var(--accent-orange);
  margin-bottom: 8px;
  font-size: 1.1rem;
}

.invoice-meta p {
  font-size: 0.85rem;
  margin: 3px 0;
}

.invoice-parties {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}

.invoice-parties p {
  font-size: 0.9rem;
  margin: 3px 0;
}

.invoice-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  font-weight: 700;
  margin-bottom: 6px;
}

.invoice-table th,
.invoice-table td {
  font-size: 0.85rem;
}

.invoice-words {
  margin: 16px 0;
  font-size: 0.9rem;
  color: var(--text-dark);
}

.invoice-footer-note {
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid var(--border-light);
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* ===== Profile Page ===== */
.profile-layout {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 24px;
  align-items: start;
}

.profile-sidebar {
  background: #fff;
  border-radius: 14px;
  padding: 30px 24px;
  text-align: center;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
  border: 1px solid var(--border-light);
  position: sticky;
  top: 20px;
}

.profile-avatar {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: linear-gradient(
    135deg,
    var(--accent-orange),
    var(--accent-orange-dark)
  );
  color: #fff;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.6rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 14px;
}

.profile-sidebar h3 {
  color: var(--navy-dark);
  font-size: 1.1rem;
  margin-bottom: 4px;
}

.profile-email {
  color: var(--text-muted);
  font-size: 0.85rem;
  margin-bottom: 16px;
  word-break: break-word;
}

.profile-status {
  margin-bottom: 20px;
}

.profile-nav-links {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding-top: 16px;
  border-top: 1px solid var(--border-light);
}

.profile-nav-links a {
  font-size: 0.88rem;
  color: var(--blue-primary);
  font-weight: 600;
  text-align: left;
}

.profile-nav-links a:hover {
  color: var(--accent-orange);
}

.profile-main {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.profile-card {
  background: #fff;
  border-radius: 14px;
  padding: 28px 30px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
  border: 1px solid var(--border-light);
}

.profile-card-header {
  margin-bottom: 22px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border-light);
}

.profile-card-header h3 {
  color: var(--navy-dark);
  font-size: 1.2rem;
  margin: 4px 0 4px;
}

.profile-card-note {
  color: var(--text-muted);
  font-size: 0.85rem;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
}

.form-group {
  display: flex;
  flex-direction: column;
}

.form-group label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 6px;
}

.optional-tag {
  font-weight: 400;
  color: var(--text-muted);
  font-size: 0.78rem;
}

.form-group input,
.form-group select {
  padding: 11px 14px;
  border: 1px solid var(--border-light);
  border-radius: 8px;
  font-size: 0.95rem;
  font-family: inherit;
  background: #fff;
  color: var(--text-dark);
  transition:
    border-color 0.15s ease,
    box-shadow 0.15s ease;
}

.form-group input:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--accent-orange);
  box-shadow: 0 0 0 3px rgba(242, 117, 26, 0.12);
}

.form-group input:disabled {
  background: var(--bg-light);
  color: var(--text-muted);
  cursor: not-allowed;
}

.form-group select {
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='7'%3E%3Cpath d='M0 0l6 7 6-7z' fill='%2364748b'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 36px;
}

.profile-actions {
  display: flex;
  justify-content: flex-end;
}

.profile-actions .btn {
  padding: 12px 32px;
}

@media (max-width: 800px) {
  .profile-layout {
    grid-template-columns: 1fr;
  }
  .profile-sidebar {
    position: static;
  }
}

/* ===== Profile Page ===== */
.profile-page-header {
  max-width: 1200px;
  margin: 0 auto 30px;
}

.profile-layout {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 24px;
  align-items: start;
  max-width: 1200px;
  margin: 0 auto;
}

.profile-sidebar {
  background: #fff;
  border-radius: 16px;
  padding: 32px 24px;
  text-align: center;
  box-shadow: 0 4px 16px rgba(15, 31, 61, 0.06);
  border: 1px solid var(--border-light);
  position: sticky;
  top: 20px;
}

.profile-avatar {
  width: 76px;
  height: 76px;
  border-radius: 50%;
  background: linear-gradient(
    135deg,
    var(--accent-orange),
    var(--accent-orange-dark)
  );
  color: #fff;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.7rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
  box-shadow: 0 6px 16px rgba(242, 117, 26, 0.3);
}

.profile-sidebar h3 {
  color: var(--navy-dark);
  font-size: 1.15rem;
  margin-bottom: 4px;
}

.profile-email {
  color: var(--text-muted);
  font-size: 0.85rem;
  margin-bottom: 18px;
  word-break: break-word;
}

.profile-status {
  margin-bottom: 22px;
}

.profile-nav-links {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding-top: 18px;
  border-top: 1px solid var(--border-light);
}

.profile-nav-links a {
  font-size: 0.88rem;
  color: var(--navy-dark);
  font-weight: 600;
  text-align: left;
  padding: 8px 4px;
  border-radius: 6px;
  transition:
    background 0.15s ease,
    color 0.15s ease;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.profile-nav-links a span {
  color: var(--accent-orange);
  transition: transform 0.15s ease;
}

.profile-nav-links a:hover {
  background: var(--bg-light);
  color: var(--accent-orange);
}

.profile-nav-links a:hover span {
  transform: translateX(3px);
}

.profile-main {
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.profile-card {
  background: #fff;
  border-radius: 16px;
  padding: 30px 32px;
  box-shadow: 0 4px 16px rgba(15, 31, 61, 0.06);
  border: 1px solid var(--border-light);
}

.profile-card-header {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 18px;
}

.card-icon {
  width: 42px;
  height: 42px;
  min-width: 42px;
  border-radius: 10px;
  background: linear-gradient(135deg, #fef3e8, #fde3cc);
  color: var(--accent-orange-dark);
  display: flex;
  align-items: center;
  justify-content: center;
}

.profile-card-header h3 {
  color: var(--navy-dark);
  font-size: 1.15rem;
  margin: 0;
}

.profile-card-note {
  color: var(--text-muted);
  font-size: 0.85rem;
  margin: -8px 0 20px 56px;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.form-grid.form-grid-2 {
  grid-template-columns: repeat(2, 1fr);
}

@media (max-width: 800px) {
  .form-grid,
  .form-grid.form-grid-2 {
    grid-template-columns: 1fr;
  }
}

.form-group {
  display: flex;
  flex-direction: column;
}

.form-group label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 7px;
}

.optional-tag {
  font-weight: 400;
  color: var(--text-muted);
  font-size: 0.76rem;
}

.form-group input,
.form-group select {
  padding: 11px 14px;
  border: 1px solid var(--border-light);
  border-radius: 8px;
  font-size: 0.95rem;
  font-family: inherit;
  background: #fff;
  color: var(--text-dark);
  transition:
    border-color 0.15s ease,
    box-shadow 0.15s ease;
}

.form-group input:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--accent-orange);
  box-shadow: 0 0 0 3px rgba(242, 117, 26, 0.12);
}

.form-group input:disabled {
  background: var(--bg-light);
  color: var(--text-muted);
  cursor: not-allowed;
}

.form-group select {
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='7'%3E%3Cpath d='M0 0l6 7 6-7z' fill='%2364748b'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 36px;
}

.card-footer {
  margin-top: 24px;
  padding-top: 20px;
  padding-left: 56px;
  border-top: 1px solid var(--border-light);
  display: flex;
  justify-content: flex-end;
}

.card-footer .btn {
  padding: 11px 30px;
}

@media (max-width: 800px) {
  .profile-layout {
    grid-template-columns: 1fr;
  }
  .profile-sidebar {
    position: static;
  }
  .form-grid,
  .card-footer {
    padding-left: 0;
  }
  .profile-card-note {
    margin-left: 0;
  }
}

/* ===== Profile Tabs ===== */
.profile-tabs {
  display: flex;
  gap: 4px;
  background: #fff;
  border-radius: 12px;
  padding: 6px;
  margin-bottom: 0;
  box-shadow: 0 4px 16px rgba(15, 31, 61, 0.06);
  border: 1px solid var(--border-light);
}

.profile-tabs a {
  flex: 1;
  text-align: center;
  padding: 10px 16px;
  border-radius: 8px;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-muted);
  transition:
    background 0.15s ease,
    color 0.15s ease;
}

.profile-tabs a:hover {
  background: var(--bg-light);
  color: var(--navy-dark);
}

.profile-tabs a.active {
  background: var(--navy-dark);
  color: #fff;
}

@media (max-width: 600px) {
  .profile-tabs {
    flex-direction: column;
  }
}

/* ===== Password Toggle ===== */
.password-wrap {
  position: relative;
}

.password-wrap input {
  width: 100%;
  padding-right: 42px !important;
}

.password-toggle {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  cursor: pointer;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  background: none;
  border: none;
  padding: 4px;
}

.password-toggle:hover {
  color: var(--accent-orange);
}

.password-toggle svg {
  width: 18px;
  height: 18px;
}

/* Password requirements hint */
.password-hint {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-top: 6px;
}

.security-note {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--bg-light);
  border-radius: 10px;
  padding: 14px 18px;
  margin-top: 24px;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.security-note svg {
  color: var(--accent-orange);
  flex-shrink: 0;
}

.section-header-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 30px;
}

.section-header-row .section-heading,
.section-header-row .section-sub {
  margin-bottom: 0;
}

.category-hero {
  width: 100%;
  background: linear-gradient(160deg, var(--navy-dark) 0%, var(--navy) 100%);
  color: #fff;
  padding: 50px 20px 44px;
  text-align: center;
}

.category-hero h1 {
  color: #fff;
  font-size: 2.2rem;
  margin: 6px 0 10px;
}

.category-hero .hero-sub {
  max-width: 560px;
  margin: 0 auto 14px;
}

.category-hero .hero-rating {
  font-size: 0.85rem;
}

/* ===== Mega Menu ===== */
.nav-dropdown {
  position: relative;
}

.dropdown-trigger {
  display: flex;
  align-items: center;
  gap: 7px;
  cursor: pointer;
}

.dropdown-arrow {
  transition: transform 0.2s ease;
  opacity: 0.7;
}

.nav-dropdown:hover .dropdown-arrow {
  transform: rotate(180deg);
  opacity: 1;
}

.mega-menu {
  position: absolute;
  top: calc(100% + 20px);
  left: 50%;
  transform: translateX(-50%) translateY(6px);
  background: #fff;
  border-radius: 16px;
  box-shadow:
    0 24px 60px -12px rgba(10, 22, 40, 0.35),
    0 0 0 1px rgba(10, 22, 40, 0.04);
  width: 680px;
  opacity: 0;
  visibility: hidden;
  transition:
    opacity 0.2s ease,
    transform 0.2s ease,
    visibility 0.2s;
  z-index: 100;
  overflow: hidden;
}

.nav-dropdown:hover .mega-menu {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

.mega-menu-inner {
  display: grid;
  grid-template-columns: 1.1fr 1.1fr 0.9fr;
}

.mega-menu-col {
  padding: 24px 22px;
}

.mega-menu-col-border {
  border-left: 1px solid var(--border-light);
}

.mega-menu-item {
  display: flex;
  align-items: center;
  width: 100%;
  gap: 10px;
  padding: 10px;
  border-radius: 9px;
  color: var(--text-dark);
  font-weight: 500;
  font-size: 0.9rem;
  transition:
    background 0.15s ease,
    color 0.15s ease;
}

.mega-menu-item-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  min-width: 28px;
  border-radius: 7px;
  background: var(--bg-light);
  color: var(--text-muted);
  transition:
    background 0.15s ease,
    color 0.15s ease;
}

.mega-menu-item-label {
  flex: 1;
  line-height: 1.3;
}

.mega-menu-item:hover {
  background: var(--bg-light);
  color: var(--navy-dark);
}

.mega-menu-item:hover .mega-menu-item-icon {
  background: #fde3cc;
  color: var(--accent-orange-dark);
}

.mega-menu-count {
  font-size: 0.72rem;
  color: var(--text-muted);
  background: var(--bg-light);
  padding: 2px 9px;
  border-radius: 20px;
  font-weight: 700;
  min-width: 22px;
  text-align: center;
}

.mega-menu-item:hover .mega-menu-count {
  background: #fde3cc;
  color: var(--accent-orange-dark);
}

.mega-menu-empty {
  padding: 10px;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.mega-menu-cta {
  background: linear-gradient(160deg, var(--navy-dark), var(--navy));
  padding: 26px 22px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 18px;
}

.mega-menu-cta-title {
  color: #fff;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1rem;
  margin-bottom: 6px;
}

.mega-menu-cta-text {
  color: #a8b4c7;
  font-size: 0.82rem;
  line-height: 1.5;
}

.mega-menu-cta-btn {
  width: 100%;
  text-align: center;
  font-size: 0.85rem;
  padding: 11px 16px;
}

@media (max-width: 900px) {
  .mega-menu {
    position: static;
    transform: none;
    width: 100%;
    box-shadow: none;
    border: 1px solid var(--border-light);
    border-radius: 12px;
    margin-top: 10px;
    opacity: 1;
    visibility: visible;
    display: none;
  }
  .mega-menu-inner {
    grid-template-columns: 1fr;
  }
  .mega-menu-col-border {
    border-left: none;
    border-top: 1px solid var(--border-light);
  }
  .mega-menu-cta {
    border-radius: 0;
  }
  .nav-dropdown.mobile-open .mega-menu {
    display: block;
  }
}

.mega-menu-heading {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #0f172a;
  font-weight: 700;
  margin-bottom: 14px;
  padding: 0 10px;
}

.mega-menu-item {
  display: flex;
  align-items: center;
  width: 100%;
  gap: 10px;
  padding: 11px 12px;
  border-radius: 9px;
  color: #0f172a;
  font-weight: 600;
  font-size: 0.92rem;
  transition:
    background 0.15s ease,
    color 0.15s ease;
}

.mega-menu-item-label {
  flex: 1;
  line-height: 1.3;
}

.mega-menu-item:hover,
.mega-menu-item.active {
  background: var(--bg-light);
  color: var(--accent-orange-dark);
}

.mega-menu-item-arrow {
  opacity: 0;
  color: var(--accent-orange);
  font-weight: 700;
  transition:
    opacity 0.15s ease,
    transform 0.15s ease;
  transform: translateX(-4px);
}

.mega-menu-item:hover .mega-menu-item-arrow,
.mega-menu-item.active .mega-menu-item-arrow {
  opacity: 1;
  transform: translateX(0);
}

.mega-menu-empty {
  padding: 10px 12px;
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* ===== Course Hero ===== */
.course-hero {
  width: 100%;
  background: linear-gradient(160deg, var(--navy-dark) 0%, var(--navy) 100%);
  color: #fff;
  padding: 56px 20px 40px;
  text-align: center;
}

.course-hero h1 {
  color: #fff;
  font-size: 2.2rem;
  max-width: 750px;
  margin: 0 auto 14px;
}

.course-hero .hero-sub {
  max-width: 600px;
  margin: 0 auto 26px;
}

/* ===== Sticky Info Bar ===== */
.course-info-bar {
  background: #fff;
  border-bottom: 1px solid var(--border-light);
  padding: 16px 20px;
  position: sticky;
  top: 0;
  z-index: 50;
  box-shadow: 0 2px 12px rgba(15, 31, 61, 0.06);
}

.course-info-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 30px;
  flex-wrap: wrap;
}

.info-item {
  display: flex;
  flex-direction: column;
  text-align: center;
}

.info-item strong {
  color: var(--navy-dark);
  font-size: 0.95rem;
}

.info-item span {
  color: var(--text-muted);
  font-size: 0.78rem;
}

.info-divider {
  width: 1px;
  height: 30px;
  background: var(--border-light);
}

/* ===== Course Layout ===== */
.course-layout {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 30px;
  align-items: start;
  padding: 40px 0;
}

.course-main-image {
  width: 100%;
  max-height: 380px;
  object-fit: cover;
  border-radius: 14px;
  margin-bottom: 30px;
}

.course-section {
  background: #fff;
  border-radius: 14px;
  padding: 30px;
  margin-bottom: 22px;
  border: 1px solid var(--border-light);
}

.course-description {
  color: var(--text-dark);
  line-height: 1.7;
}

/* Included grid */
.included-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 12px;
}

.included-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.92rem;
  color: var(--text-dark);
}

.included-check {
  color: var(--success-green);
  font-weight: 700;
}

/* Outcomes */
.outcomes-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.outcome-item {
  padding: 16px 18px;
  background: var(--bg-light);
  border-radius: 10px;
  border-left: 3px solid var(--accent-orange);
}

.outcome-number {
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--accent-orange-dark);
  letter-spacing: 0.05em;
  margin-bottom: 6px;
}

/* Curriculum */
.curriculum-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.curriculum-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 14px 16px;
  border: 1px solid var(--border-light);
  border-radius: 10px;
}

.curriculum-number {
  width: 32px;
  height: 32px;
  min-width: 32px;
  border-radius: 50%;
  background: var(--navy-dark);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.85rem;
}

.curriculum-text {
  font-size: 0.92rem;
  color: var(--text-dark);
}

/* Attend list */
.attend-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.attend-list li {
  padding-left: 22px;
  position: relative;
  color: var(--text-dark);
  font-size: 0.92rem;
}

.attend-list li::before {
  content: "•";
  color: var(--accent-orange);
  font-weight: 700;
  position: absolute;
  left: 0;
}

/* Sidebar */
.course-sidebar {
  position: sticky;
  top: 90px;
}

.course-sidebar .enroll-box {
  background: #fff;
  border-radius: 16px;
  padding: 28px;
  border: 1px solid var(--border-light);
  box-shadow: 0 8px 30px rgba(15, 31, 61, 0.08);
  margin-top: 0;
  padding-top: 28px;
}

.enroll-price {
  text-align: center;
  margin-bottom: 20px;
}

.new-price-lg {
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--navy-dark);
  font-family: var(--font-display);
}

.enroll-meta {
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid var(--border-light);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.enroll-meta-item {
  display: flex;
  justify-content: space-between;
  font-size: 0.85rem;
}

.enroll-meta-item span {
  color: var(--text-muted);
}

.enroll-meta-item strong {
  color: var(--navy-dark);
}

@media (max-width: 900px) {
  .course-layout {
    grid-template-columns: 1fr;
  }
  .course-sidebar {
    position: static;
  }
  .course-info-bar {
    position: static;
  }
  .course-info-inner {
    justify-content: flex-start;
  }
}

.site-header nav > a:not(.nav-cta)::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 2px;
  background: var(--accent-orange);
  transition: width 0.25s ease;
}

.site-header nav > a:not(.nav-cta):hover::after {
  width: 100%;
}

.site-header nav > a:hover {
  color: #fff;
}

.mega-menu-item,
.mega-menu-item-label {
  color: #0f172a !important;
}

.mega-menu-item:hover,
.mega-menu-item.active {
  color: var(--accent-orange-dark) !important;
}

.nav-dropdown {
  position: static;
}

.mega-menu {
  position: absolute;
  top: 74px;
  right: 20px;
  left: auto;
  transform: translateY(6px);
  background: #fff;
  border-radius: 16px;
  border: 1.5px solid rgba(15, 31, 61, 0.12);
  box-shadow: 0 24px 60px -12px rgba(10, 22, 40, 0.35);
  width: 680px;
  max-width: calc(100vw - 40px);
  opacity: 0;
  visibility: hidden;
  transition:
    opacity 0.2s ease,
    transform 0.2s ease,
    visibility 0.2s;
  z-index: 100;
  overflow: hidden;
}
.nav-dropdown:hover .mega-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

@media (max-width: 900px) {
  .mega-menu {
    position: static;
    transform: none;
    width: 100%;
    max-width: 100%;
    box-shadow: none;
    border: 1.5px solid rgba(15, 31, 61, 0.12);
    border-radius: 12px;
    margin-top: 10px;
    opacity: 1;
    visibility: visible;
    display: none;
  }
  .mega-menu-inner {
    grid-template-columns: 1fr;
  }
  .mega-menu-col-border {
    border-left: none;
    border-top: 1px solid var(--border-light);
  }
  .mega-menu-cta {
    border-radius: 0;
  }
  .nav-dropdown.mobile-open .mega-menu {
    display: block;
  }
}

.mega-menu-view-all {
  display: block;
  margin-top: 8px;
  padding: 10px 12px;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--accent-orange-dark);
  border-top: 1px solid var(--border-light);
}

.mega-menu-view-all:hover  {
  color: var(--accent-orange) !important;
}

.mega-menu-heading {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 700;
  margin-bottom: 14px;
  padding: 0 10px;
  color: var(--accent-orange-dark);
}

.mega-menu-cta-title {
  color: var(--accent-gold);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1rem;
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.mega-menu-col .mega-menu-heading {
  color: var(--accent-orange-dark); /* Categories column */
}

.mega-menu-col-border .mega-menu-heading {
  color: var(--blue-primary); /* Courses column */
}

.mega-menu-cta-title {
  color: var(--accent-gold); /* CTA panel */
}

.mega-menu-col .mega-menu-heading {
  color: var(--accent-orange-dark);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 700;
  margin-bottom: 14px;
  padding: 0 10px;
}

.mega-menu-col-border .mega-menu-heading {
  color: var(--blue-primary);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 700;
  margin-bottom: 14px;
  padding: 0 10px;
}

.mega-menu-cta-title {
  color: var(--accent-gold) !important;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1rem;
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}
/* Skills tags */
.skills-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.skill-tag {
  background: var(--bg-light);
  color: var(--navy-dark);
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 600;
  border: 1px solid var(--border-light);
}

/* Career steps */
.career-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 18px;
}

.career-step {
  padding: 20px;
  background: var(--bg-light);
  border-radius: 12px;
  border-top: 3px solid var(--accent-orange);
}

.career-step-number {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--accent-orange-dark);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 8px;
}

.career-step h4 {
  color: var(--navy-dark);
  margin-bottom: 6px;
  font-size: 1rem;
}

.career-step p {
  font-size: 0.87rem;
  color: var(--text-muted);
}

/* Schedule cards */
.schedule-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.schedule-card {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 20px;
  border: 1px solid var(--border-light);
  border-radius: 12px;
}

.schedule-card h4 {
  color: var(--navy-dark);
  font-size: 1rem;
  margin-bottom: 4px;
}

.schedule-date {
  font-size: 0.85rem;
  color: var(--text-dark);
  font-weight: 600;
}

.schedule-timing {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.seats-badge {
  background: #fef3e8;
  color: var(--accent-orange-dark);
  padding: 5px 12px;
  border-radius: 14px;
  font-size: 0.78rem;
  font-weight: 700;
  white-space: nowrap;
}

.search-input-wrap {
  position: relative;
  flex: 1;
  min-width: 200px;
}

.search-input-wrap input {
  width: 100%;
  padding: 10px 40px 10px 14px;
  border: 1px solid var(--border-light);
  border-radius: 8px;
  font-size: 0.95rem;
}

.search-spinner {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  width: 16px;
  height: 16px;
  border: 2px solid var(--border-light);
  border-top-color: var(--accent-orange);
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
}

@keyframes spin {
  to {
    transform: translateY(-50%) rotate(360deg);
  }
}

.result-count {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 16px;
}

.filter-pill {
  cursor: pointer;
}

.rating-summary {
  display: inline-block;
  margin-left: 12px;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--accent-gold);
  vertical-align: middle;
}

.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}

.testimonial-card {
  background: #fff;
  border-radius: 14px;
  padding: 24px;
  border: 1px solid var(--border-light);
}

.testimonial-stars {
  color: var(--accent-gold);
  font-size: 1rem;
  margin-bottom: 12px;
  letter-spacing: 2px;
}

.testimonial-text {
  font-size: 0.92rem;
  color: var(--text-dark);
  line-height: 1.6;
  margin-bottom: 14px;
  font-style: italic;
}

.testimonial-author {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--navy-dark);
}

.testimonial-author span {
  font-weight: 400;
  color: var(--text-muted);
}

.testimonial-course {
  font-size: 0.78rem;
  color: var(--accent-orange-dark);
  font-weight: 600;
}

.accreditation-strip {
  display: inline-flex;
  align-items: center;
  /* gap: 12px; */
  /* background: rgba(255, 255, 255, 0.07); */
  /* border: 1px solid rgba(255, 255, 255, 0.15); */
  /* padding: 10px 20px;
  border-radius: 12px;
  margin-top: 20px; */
}

.accreditation-strip img {
  height: 60px;
  width: auto;
}

.accreditation-strip span {
  color: #cbd5e1;
  font-size: 0.85rem;
  font-weight: 600;
}

/* ===== Full Footer ===== */
.site-footer-full {
  background: var(--navy-dark);
  color: #94a3b8;
  padding: 50px 40px 0;
}

.footer-main {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 40px;
}

.footer-col h4 {
  color: #fff;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 16px;
}

.footer-col a {
  display: block;
  color: #94a3b8;
  font-size: 0.88rem;
  margin-bottom: 10px;
  transition: color 0.15s ease;
}

.footer-col a:hover {
  color: var(--accent-orange);
}

.footer-brand .logo {
  font-size: 1.3rem;
  font-weight: 800;
  color: #fff;
  display: inline-block;
  margin-bottom: 10px;
}

.footer-brand .logo span {
  color: var(--accent-orange);
}

.footer-tagline {
  font-size: 0.85rem;
  color: #cbd5e1;
  margin-bottom: 10px;
}

.footer-address {
  font-size: 0.85rem;
  line-height: 1.6;
  margin-bottom: 16px;
}

.footer-social {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.footer-social a {
  margin-bottom: 0;
  font-size: 0.82rem;
  font-weight: 600;
  color: #cbd5e1;
  border: 1px solid rgba(255, 255, 255, 0.15);
  padding: 6px 12px;
  border-radius: 16px;
}

.footer-social a:hover {
  border-color: var(--accent-orange);
  color: var(--accent-orange);
}

.footer-contact-item {
  font-size: 0.88rem;
  margin-bottom: 10px;
  color: #94a3b8;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 20px 0;
  text-align: center;
  font-size: 0.82rem;
  color: #64748b;
}

@media (max-width: 800px) {
  .footer-main {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 500px) {
  .footer-main {
    grid-template-columns: 1fr;
  }
}

.legal-page {
  max-width: 800px;
  margin: 40px auto;
  background: #fff;
  padding: 40px;
  border-radius: 14px;
  border: 1px solid var(--border-light);
}

.legal-page h1 {
  color: var(--navy-dark);
  margin-bottom: 6px;
}

.legal-updated {
  color: var(--text-muted);
  font-size: 0.85rem;
  margin-bottom: 30px;
}

.legal-page h2 {
  color: var(--navy-dark);
  font-size: 1.15rem;
  margin: 28px 0 10px;
}

.legal-page p {
  color: var(--text-dark);
  line-height: 1.7;
  margin-bottom: 12px;
}

.legal-page ul {
  margin: 0 0 16px 20px;
  color: var(--text-dark);
  line-height: 1.7;
}

.legal-page a {
  color: var(--blue-primary);
  font-weight: 600;
}

.footer-contact-item {
  display: block;
  font-size: 0.88rem;
  margin-bottom: 10px;
  color: #94a3b8;
  transition: color 0.15s ease;
}

.footer-contact-item:hover {
  color: var(--accent-orange);
}

.profile-missing-list {
  margin-top: 12px;
  text-align: left;
  background: #fef9c3;
  border-radius: 10px;
  padding: 12px 14px;
}

.profile-missing-heading {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 700;
  color: #a16207;
  margin-bottom: 8px;
}

.profile-missing-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
  font-weight: 600;
  color: #92400e;
  padding: 6px 0;
  border-bottom: 1px solid rgba(161, 98, 7, 0.15);
}

.profile-missing-item:last-child {
  border-bottom: none;
}

.profile-missing-item span {
  color: #d97706;
}

.profile-missing-item:hover {
  color: var(--accent-orange-dark);
}

/* ===== Custom Select ===== */
.custom-select-wrap {
  position: relative;
}

.custom-select-wrap select {
  display: none;
}

.custom-select-trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 11px 14px;
  border: 1px solid var(--border-light);
  border-radius: 8px;
  font-size: 0.95rem;
  background: #fff;
  color: var(--text-dark);
  cursor: pointer;
  transition:
    border-color 0.15s ease,
    box-shadow 0.15s ease;
}

.custom-select-trigger:hover {
  border-color: var(--accent-orange);
}

.custom-select-wrap.open .custom-select-trigger {
  border-color: var(--accent-orange);
  box-shadow: 0 0 0 3px rgba(242, 117, 26, 0.12);
}

.custom-select-trigger-arrow {
  color: var(--text-muted);
  transition: transform 0.15s ease;
  flex-shrink: 0;
  margin-left: 8px;
}

.custom-select-wrap.open .custom-select-trigger-arrow {
  transform: rotate(180deg);
}

.custom-select-trigger-label.placeholder {
  color: var(--text-muted);
}

.custom-select-panel {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  background: #fff;
  border: 1px solid var(--border-light);
  border-radius: 10px;
  box-shadow: 0 12px 30px rgba(15, 31, 61, 0.15);
  z-index: 200;
  display: none;
  max-height: 280px;
  overflow: hidden;
  flex-direction: column;
}

.custom-select-wrap.open .custom-select-panel {
  display: flex;
}

.custom-select-search {
  padding: 10px;
  border-bottom: 1px solid var(--border-light);
}

.custom-select-search input {
  width: 100%;
  padding: 8px 10px;
  border: 1px solid var(--border-light);
  border-radius: 6px;
  font-size: 0.88rem;
}

.custom-select-search input:focus {
  outline: none;
  border-color: var(--accent-orange);
}

.custom-select-options {
  overflow-y: auto;
  padding: 6px;
}

.custom-select-option {
  padding: 9px 12px;
  border-radius: 6px;
  font-size: 0.9rem;
  color: var(--text-dark);
  cursor: pointer;
  transition: background 0.12s ease;
}

.custom-select-option:hover,
.custom-select-option.highlighted {
  background: var(--bg-light);
  color: var(--accent-orange-dark);
}

.custom-select-option.selected {
  background: #fde3cc;
  color: var(--accent-orange-dark);
  font-weight: 600;
}

.custom-select-empty {
  padding: 14px;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.85rem;
}

.form-subgroup {
  margin-bottom: 24px;
}

.form-subgroup:last-of-type {
  margin-bottom: 0;
}

.form-subgroup-label {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 700;
  color: var(--text-muted);
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 1px dashed var(--border-light);
}

.form-group input,
.form-group select {
  width: 100%;
  box-sizing: border-box;
}

.card-footer {
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--border-light);
  display: flex;
  justify-content: flex-end;
}

.profile-card-note {
  color: var(--text-muted);
  font-size: 0.85rem;
  margin-bottom: 20px;
}

.field-hint {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-top: 6px;
  line-height: 1.4;
}

.form-grid.form-grid-2 {
  grid-template-columns: repeat(2, 1fr);
}

@media (max-width: 800px) {
  .form-grid.form-grid-2 {
    grid-template-columns: 1fr;
  }
}

.form-grid-single {
  grid-template-columns: 1fr !important;
}

.form-group-full {
  grid-column: 1 / -1;
}

.payment-result-page {
  max-width: 560px;
  margin: 60px auto;
  background: #fff;
  border-radius: 18px;
  padding: 50px 40px;
  text-align: center;
  box-shadow: 0 12px 40px rgba(15, 31, 61, 0.1);
}

.payment-result-icon {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 24px;
}

.success-icon {
  background: #dcfce7;
  color: var(--success-green);
}

.error-icon {
  background: #fee2e2;
  color: var(--error-red);
}

.payment-result-page h1 {
  color: var(--navy-dark);
  margin-bottom: 12px;
}

.payment-result-sub {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: 30px;
}

.payment-result-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 20px;
}

.payment-back-link {
  display: inline-block;
  font-size: 0.85rem;
  color: var(--text-muted);
  font-weight: 600;
}

.payment-back-link:hover {
  color: var(--accent-orange-dark);
}

/* ===== Course Card v2 ===== */
.course-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 24px;
  align-items: stretch;
}

.course-card-v2 {
  background: #fff;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(15, 31, 61, 0.08);
  display: flex;
  flex-direction: column;
  height: 100%;
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease;
}

.course-card-v2:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 28px rgba(15, 31, 61, 0.14);
}

.course-card-header {
  padding: 20px 22px;
  color: #fff;
}

.course-card-code {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: rgba(255, 255, 255, 0.85);
  background: rgba(255, 255, 255, 0.15);
  padding: 4px 10px;
  border-radius: 12px;
  margin-bottom: 10px;
}

.course-card-header h3 {
  color: #fff;
  font-size: 1.15rem;
  line-height: 1.3;
  margin: 0;
}

.course-card-body {
  padding: 20px 22px 22px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.course-card-desc {
  font-size: 0.88rem;
  color: var(--text-muted);
  margin-bottom: 14px;
}

.course-card-highlights {
  list-style: none;
  margin-bottom: 18px;
  flex: 1;
}

.course-card-highlights li {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 0.85rem;
  color: var(--text-dark);
  margin-bottom: 8px;
  line-height: 1.4;
}

.hl-check {
  font-weight: 700;
  flex-shrink: 0;
}

.course-card-price {
  margin-bottom: 16px;
  padding-top: 14px;
  border-top: 1px solid var(--border-light);
}

.course-card-price .new-price {
  font-size: 1.3rem;
  font-weight: 800;
  font-family: var(--font-display);
  color: var(--navy-dark);
}

.course-card-price .old-price {
  font-size: 0.95rem;
  margin-right: 6px;
}

.course-card-price-note {
  display: block;
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 3px;
}

.course-card-btn-view {
  display: block;
  text-align: center;
  color: #fff;
  padding: 11px;
  border-radius: 8px;
  font-weight: 700;
  font-size: 0.9rem;
  margin-bottom: 10px;
  transition: opacity 0.15s ease;
}

.course-card-btn-view:hover {
  opacity: 0.9;
}

.course-card-btn-enroll {
  display: block;
  text-align: center;
  background: var(--accent-gold);
  color: #4a3300;
  padding: 11px;
  border-radius: 8px;
  font-weight: 700;
  font-size: 0.9rem;
  transition: background 0.15s ease;
}

.course-card-btn-enroll:hover {
  background: #f0b429;
}

.course-card-btn-enroll.enrolled {
  background: #dcfce7;
  color: var(--success-green);
  cursor: default;
}

/* ===== Enrollment Grid v2 ===== */
.enrollment-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 20px;
  margin-top: 10px;
}

.enrollment-card-v2 {
  background: #fff;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(15, 31, 61, 0.08);
  display: flex;
  flex-direction: column;
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease;
}

.enrollment-card-v2:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 24px rgba(15, 31, 61, 0.12);
}

.enrollment-thumb {
  width: 100%;
  height: 140px;
  object-fit: cover;
  background: var(--bg-light);
}

.enrollment-content {
  padding: 18px 20px 20px;
}

.enrollment-top-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}

.enrollment-date {
  font-size: 0.78rem;
  color: var(--text-muted);
}

.enrollment-content h3 {
  color: var(--navy-dark);
  font-size: 1.05rem;
  margin-bottom: 8px;
  line-height: 1.3;
}

.enrollment-amount {
  font-size: 1.1rem;
  font-weight: 700;
  font-family: var(--font-display);
  color: var(--navy-dark);
  margin-bottom: 16px;
}

.enrollment-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.enrollment-actions .btn {
  flex: 1;
  text-align: center;
  padding: 9px 14px;
  font-size: 0.85rem;
  min-width: 120px;
}

/* ===== Empty State ===== */
.empty-state {
  text-align: center;
  background: #fff;
  border-radius: 16px;
  padding: 60px 30px;
  box-shadow: 0 4px 16px rgba(15, 31, 61, 0.06);
}

.empty-state-icon {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: var(--bg-light);
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
}

.empty-state h3 {
  color: var(--navy-dark);
  margin-bottom: 8px;
}

.empty-state p {
  color: var(--text-muted);
  margin-bottom: 24px;
}

/* ===== Enrollments Toolbar ===== */
.enrollments-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}

.enrollments-toolbar .custom-select-wrap {
  min-width: 220px;
}

.view-toggle {
  display: flex;
  background: #fff;
  border: 1px solid var(--border-light);
  border-radius: 8px;
  padding: 3px;
  gap: 3px;
}

.view-toggle-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border: none;
  background: transparent;
  border-radius: 6px;
  color: var(--text-muted);
  cursor: pointer;
  transition:
    background 0.15s ease,
    color 0.15s ease;
}

.view-toggle-btn:hover {
  background: var(--bg-light);
}

.view-toggle-btn.active {
  background: var(--navy-dark);
  color: #fff;
}

/* ===== Enrollment Cards v3 (matches featured course style) ===== */
.enrollment-container.view-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
}

.enrollment-card-v3 {
  background: #fff;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(15, 31, 61, 0.08);
  display: flex;
  flex-direction: column;
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease;
}

.enrollment-card-v3:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 24px rgba(15, 31, 61, 0.12);
}

.enrollment-card-header {
  padding: 18px 20px;
  color: #fff;
}

.enrollment-card-code {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: rgba(255, 255, 255, 0.85);
  background: rgba(255, 255, 255, 0.15);
  padding: 4px 10px;
  border-radius: 12px;
  margin-bottom: 10px;
}

.enrollment-card-header h3 {
  color: #fff;
  font-size: 1.05rem;
  line-height: 1.3;
  margin: 0;
}

.enrollment-card-body {
  padding: 18px 20px 20px;
}

.enrollment-meta-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.enrollment-date {
  font-size: 0.78rem;
  color: var(--text-muted);
}

.enrollment-amount {
  font-size: 1.15rem;
  font-weight: 800;
  font-family: var(--font-display);
  color: var(--navy-dark);
  margin-bottom: 16px;
}

.enrollment-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.enrollment-actions .btn {
  flex: 1;
  text-align: center;
  padding: 9px 14px;
  font-size: 0.84rem;
  min-width: 120px;
}

/* ===== List View Variant ===== */
.enrollment-container.view-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.view-list .enrollment-card-v3 {
  flex-direction: row;
  align-items: stretch;
}

.view-list .enrollment-card-header {
  width: 220px;
  min-width: 220px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.view-list .enrollment-card-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.view-list .enrollment-meta-row {
  margin-bottom: 6px;
}

.view-list .enrollment-amount {
  margin-bottom: 10px;
}

@media (max-width: 700px) {
  .view-list .enrollment-card-v3 {
    flex-direction: column;
  }
  .view-list .enrollment-card-header {
    width: 100%;
    min-width: 0;
  }
}

/* ===== Empty State ===== */
.empty-state {
  text-align: center;
  background: #fff;
  border-radius: 16px;
  padding: 60px 30px;
  box-shadow: 0 4px 16px rgba(15, 31, 61, 0.06);
}

.empty-state-icon {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: var(--bg-light);
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
}

.empty-state h3 {
  color: var(--navy-dark);
  margin-bottom: 8px;
}

.empty-state p {
  color: var(--text-muted);
  margin-bottom: 24px;
}

.pending-note {
  font-size: 0.72rem;
  font-weight: 400;
  color: var(--text-muted);
}

.pdu-progress-wrap {
  margin: 10px 0;
}
.pdu-progress-label {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-bottom: 4px;
}
.pdu-progress-bar {
  height: 8px;
  background: var(--bg-light);
  border-radius: 6px;
  overflow: hidden;
}
.pdu-progress-fill {
  height: 100%;
  background: var(--accent-orange);
  border-radius: 6px;
}


.pdu-progress-wrap {
    margin: 12px 0 8px;
}

.pdu-progress-label {
    font-size: 0.78rem;
    color: var(--text-muted);
    margin-bottom: 5px;
    font-weight: 600;
}

.pdu-progress-bar {
    height: 8px;
    background: var(--bg-light);
    border-radius: 6px;
    overflow: hidden;
}

.pdu-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--accent-orange), var(--accent-gold));
    border-radius: 6px;
    transition: width 0.3s ease;
}

.pdu-locked-note {
    font-size: 0.78rem;
    color: var(--text-muted);
    margin-top: 8px;
    font-style: italic;
}

.quiz-locked-banner {
    display: flex;
    align-items: center;
    gap: 8px;
    background: var(--bg-light);
    border: 1px dashed var(--border-light);
    border-radius: 8px;
    padding: 10px 12px;
    margin-top: 10px;
    color: var(--text-muted);
    font-size: 0.78rem;
    font-weight: 500;
}

.quiz-locked-banner svg {
    flex-shrink: 0;
    color: var(--text-muted);
}

/* ===== Page Header ===== */
.profile-page-header {
    max-width: 1200px;
    margin: 0 auto 28px;
}

/* ===== Toolbar ===== */
.enrollments-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    margin-bottom: 22px;
    flex-wrap: wrap;
}

.enrollments-toolbar .custom-select-wrap {
    min-width: 200px;
}

.view-toggle {
    display: flex;
    background: #fff;
    border: 1px solid var(--border-light);
    border-radius: 9px;
    padding: 3px;
    gap: 3px;
    box-shadow: 0 1px 3px rgba(15,31,61,0.05);
}

.view-toggle-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border: none;
    background: transparent;
    border-radius: 7px;
    color: var(--text-muted);
    cursor: pointer;
    transition: background 0.15s ease, color 0.15s ease;
}

.view-toggle-btn:hover {
    background: var(--bg-light);
    color: var(--navy-dark);
}

.view-toggle-btn.active {
    background: var(--navy-dark);
    color: #fff;
}

/* ===== Empty State ===== */
.empty-state {
    text-align: center;
    background: #fff;
    border-radius: 18px;
    padding: 64px 30px;
    box-shadow: 0 4px 20px rgba(15,31,61,0.06);
}

.empty-state-icon {
    width: 84px;
    height: 84px;
    border-radius: 50%;
    background: var(--bg-light);
    color: var(--text-muted);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 22px;
}

.empty-state h3 {
    color: var(--navy-dark);
    font-size: 1.2rem;
    margin-bottom: 8px;
}

.empty-state p {
    color: var(--text-muted);
    margin-bottom: 26px;
}

/* ===== Enrollment Grid/List Containers ===== */
.enrollment-container.view-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(310px, 1fr));
    gap: 22px;
}

.enrollment-container.view-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

/* ===== Enrollment Card ===== */
.enrollment-card-v3 {
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 3px 14px rgba(15,31,61,0.08);
    display: flex;
    flex-direction: column;
    transition: transform 0.22s ease, box-shadow 0.22s ease;
    border: 1px solid rgba(15,31,61,0.04);
}

.enrollment-card-v3:hover {
    transform: translateY(-4px);
    box-shadow: 0 14px 32px rgba(15,31,61,0.14);
}

.enrollment-card-header {
    padding: 20px 22px;
    color: #fff;
    position: relative;
    overflow: hidden;
}

.enrollment-card-header::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at top right, rgba(255,255,255,0.12), transparent 60%);
    pointer-events: none;
}

.enrollment-card-code {
    display: inline-block;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.07em;
    color: rgba(255,255,255,0.9);
    background: rgba(255,255,255,0.16);
    padding: 4px 11px;
    border-radius: 20px;
    margin-bottom: 12px;
    position: relative;
}

.enrollment-card-header h3 {
    color: #fff;
    font-size: 1.08rem;
    font-weight: 700;
    line-height: 1.35;
    margin: 0;
    position: relative;
}

.enrollment-card-body {
    padding: 20px 22px 22px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

/* ===== Meta Row (status + date) ===== */
.enrollment-meta-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 14px;
}

.enrollment-date {
    font-size: 0.76rem;
    color: var(--text-muted);
    font-weight: 500;
}

/* ===== Amount ===== */
.enrollment-amount {
    font-size: 1.25rem;
    font-weight: 800;
    font-family: var(--font-display);
    color: var(--navy-dark);
    margin-bottom: 4px;
    line-height: 1.3;
}

.pending-note {
    display: block;
    font-size: 0.74rem;
    font-weight: 500;
    color: var(--text-muted);
    margin-top: 3px;
    letter-spacing: 0.01em;
}

/* ===== PDU Progress ===== */
.pdu-progress-wrap {
    margin: 14px 0 4px;
    padding-top: 14px;
    border-top: 1px solid var(--border-light);
}

.pdu-progress-label {
    font-size: 0.76rem;
    color: var(--text-muted);
    margin-bottom: 6px;
    font-weight: 600;
    display: flex;
    justify-content: space-between;
}

.pdu-progress-bar {
    height: 7px;
    background: var(--bg-light);
    border-radius: 6px;
    overflow: hidden;
}

.pdu-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--accent-orange), var(--accent-gold));
    border-radius: 6px;
    transition: width 0.4s ease;
}

/* ===== Quiz Locked Banner ===== */
.quiz-locked-banner {
    display: flex;
    align-items: center;
    gap: 9px;
    background: var(--bg-light);
    border: 1px dashed #cbd5e1;
    border-radius: 9px;
    padding: 10px 13px;
    margin: 14px 0 0;
    color: var(--text-muted);
    font-size: 0.76rem;
    font-weight: 500;
    line-height: 1.4;
}

.quiz-locked-banner svg {
    flex-shrink: 0;
    color: #94a3b8;
}

/* ===== Actions ===== */
.enrollment-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: auto;
    padding-top: 16px;
}

.enrollment-actions .btn {
    flex: 1;
    text-align: center;
    padding: 9px 14px;
    font-size: 0.84rem;
    min-width: 120px;
}

.enrollment-actions form {
    flex: 1;
    display: flex;
}

.enrollment-actions form .btn {
    width: 100%;
}

/* Quiz CTA button — full width, sits below actions */
.enrollment-card-body > a.btn[href*="quiz.php"] {
    margin-top: 12px;
    font-weight: 700;
    box-shadow: 0 4px 14px rgba(242,117,26,0.28);
}

/* ===== List View Overrides ===== */
.view-list .enrollment-card-v3 {
    flex-direction: row;
    align-items: stretch;
}

.view-list .enrollment-card-header {
    width: 240px;
    min-width: 240px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.view-list .enrollment-card-body {
    flex: 1;
    padding: 18px 24px;
}

.view-list .enrollment-meta-row {
    margin-bottom: 10px;
}

.view-list .pdu-progress-wrap {
    margin: 10px 0 4px;
    padding-top: 10px;
}

.view-list .enrollment-actions {
    padding-top: 12px;
}

@media (max-width: 700px) {
    .view-list .enrollment-card-v3 {
        flex-direction: column;
    }
    .view-list .enrollment-card-header {
        width: 100%;
        min-width: 0;
    }
    .enrollments-toolbar {
        flex-direction: column;
        align-items: stretch;
    }
    .enrollments-toolbar .view-toggle {
        align-self: flex-start;
    }
}

.enrollment-card-header {
    height: 120px;
    padding: 20px 22px;
    color: #fff;
    position: relative;
    overflow: hidden;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.enrollment-card-header h3 {
    color: #fff;
    font-size: 1.08rem;
    font-weight: 700;
    line-height: 1.35;
    margin: 0;
    position: relative;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.enrollment-container.view-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(310px, 1fr));
    gap: 22px;
    align-items: stretch;
}

.course-card-header {
    height: 120px;
    padding: 20px 22px;
    color: #fff;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.course-card-header h3 {
    color: #fff;
    font-size: 1.15rem;
    line-height: 1.3;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.course-card-v2 {
    background: #fff;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 4px 16px rgba(15,31,61,0.08);
    display: flex;
    flex-direction: column;
    height: 100%;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.course-card-body {
    padding: 20px 22px 22px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.course-card-price {
    margin-top: auto;
    padding-top: 14px;
    border-top: 1px solid var(--border-light);
    margin-bottom: 16px;
}