﻿@import url('https://fonts.googleapis.com/css2?family=Alexandria:wght@300;400;600;700;800&family=Cairo:wght@300;400;600;700&family=Poppins:wght@300;400;600;700&display=swap');

/* Use Alexandria for all headings */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: 'Alexandria', 'Cairo', sans-serif;
  font-weight: 700;
}

/* ===========================
   Top Contact Bar
   =========================== */
.top-bar {
  background: var(--accent-hover, #018a72);
  color: #fff;
  font-size: 0.8rem;
  padding: 6px 0;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1050;
  font-family: 'Cairo', sans-serif;
}

html[data-theme="dark"] .top-bar {
  /* Keep brand color — same as light mode */
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.top-bar-item {
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.78rem;
}

.top-bar-item i {
  color: rgba(255, 255, 255, 0.7);
}

.top-bar-social {
  color: rgba(255, 255, 255, 0.75);
  width: 26px;
  height: 26px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
  text-decoration: none;
  transition: all 0.2s ease;
  font-size: 0.75rem;
  background: rgba(255, 255, 255, 0.1);
}

.top-bar-social:hover {
  background: rgba(255, 255, 255, 0.25);
  color: #fff;
  transform: translateY(-1px);
}

/* ===========================
   Navbar with Top Bar offset
   =========================== */
.main-nav {
  position: fixed;
  top: 37px;
  left: 0;
  right: 0;
  z-index: 1040;
  padding: 0 !important;
}

body {
  padding-top: 122px;
  overflow-x: hidden;
  position: relative;
  width: 100%;
}

@media (max-width: 767px) {
  .main-nav {
    top: 0;
  }

  body {
    padding-top: 74px;
  }
}

@media (min-width: 768px) and (max-width: 1199px) {
  body.has-nav-search-open {
    padding-top: 140px;
  }
}

/* ===========================
   Team Section (Home)
   =========================== */
.team-section {
  --team-card-bg: #ffffff;
  --team-card-border: rgba(2, 173, 143, 0.1);
  --team-card-shadow: 0 10px 36px rgba(2, 173, 143, 0.07);
  --team-card-title: #0f2a4a;
  --team-card-meta: rgba(15, 42, 74, 0.62);
  padding: 0;
}

html[data-theme="dark"] .team-section {
  --team-card-bg: rgba(6, 20, 39, 0.82);
  --team-card-border: rgba(2, 173, 143, 0.22);
  --team-card-shadow: 0 12px 40px rgba(6, 20, 39, 0.35);
  --team-card-title: #eef7fc;
  --team-card-meta: rgba(199, 228, 245, 0.62);
}

.team-header {
  max-width: 640px;
  margin: 0 auto 2.5rem;
}

.team-eyebrow {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--accent-color);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 0.5rem;
}

.team-title {
  font-family: 'Alexandria', sans-serif;
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 800;
  color: var(--team-card-title) !important;
  margin: 0 0 0.75rem;
}

.team-subtitle {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.7;
  color: var(--team-card-meta) !important;
  max-width: 520px;
}

.team-swiper-wrap {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
}

.team-swiper {
  flex: 1;
  overflow: hidden;
  padding: 10px 4px 14px;
  min-width: 0;
}

.team-swiper .swiper-slide {
  height: auto;
}

.team-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  height: 100%;
  padding: 2rem 1.35rem 1.5rem;
  background: var(--team-card-bg);
  border: 1px solid var(--team-card-border);
  border-radius: 22px;
  overflow: hidden;
  box-shadow: var(--team-card-shadow);
  transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 0.4s ease,
    border-color 0.35s ease;
}

.team-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: color-mix(in srgb, var(--team-color, var(--accent-color)) 5%, transparent);
  opacity: 0;
  transition: opacity 0.35s ease;
  pointer-events: none;
}

.team-card:hover {
  transform: translateY(-10px);
  border-color: color-mix(in srgb, var(--team-color, var(--accent-color)) 40%, transparent);
  box-shadow: 0 20px 48px rgba(2, 173, 143, 0.14);
}

html[data-theme="dark"] .team-card:hover {
  box-shadow: 0 22px 50px rgba(6, 20, 39, 0.45);
}

.team-card:hover::before {
  opacity: 1;
}

.team-card-avatar {
  position: relative;
  z-index: 1;
  width: 96px;
  height: 96px;
  margin-bottom: 1.1rem;
  border-radius: 50%;
  padding: 3px;
  background: color-mix(in srgb, var(--team-color, var(--accent-color)) 35%, transparent);
  transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

.team-card:hover .team-card-avatar {
  transform: scale(1.06);
}

.team-card-avatar-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: color-mix(in srgb, var(--team-color, var(--accent-color)) 12%, var(--team-card-bg));
  border: 2px solid color-mix(in srgb, var(--team-color, var(--accent-color)) 25%, transparent);
  font-size: 2rem;
  color: var(--team-color, var(--accent-color));
}

.team-card-avatar-img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid color-mix(in srgb, var(--team-color, var(--accent-color)) 25%, transparent);
  background: var(--team-card-bg);
}

.team-card-name {
  position: relative;
  z-index: 1;
  font-family: 'Alexandria', sans-serif;
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--team-card-title) !important;
  margin: 0 0 0.35rem;
}

.team-card-role {
  position: relative;
  z-index: 1;
  margin: 0 0 0.65rem;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--team-color, var(--accent-color)) !important;
  letter-spacing: 0.02em;
}

.team-card-rating {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  margin-bottom: 0.85rem;
  padding: 4px 12px;
  border-radius: 50px;
  background: rgba(51, 164, 218, 0.1);
  border: 1px solid rgba(51, 164, 218, 0.2);
}

.team-rating-stars {
  display: inline-flex;
  gap: 2px;
  color: #33a4da;
  font-size: 0.68rem;
}

.team-rating-value {
  font-size: 0.78rem;
  font-weight: 800;
  color: var(--team-card-meta) !important;
}

.team-card-bio {
  position: relative;
  z-index: 1;
  margin: 0 0 1.15rem;
  font-size: 0.86rem;
  line-height: 1.75;
  color: var(--team-card-meta) !important;
  flex: 1;
}

.team-card-social {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin-top: auto;
}

.team-social-btn {
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  color: var(--team-color, var(--accent-color));
  background: color-mix(in srgb, var(--team-color, var(--accent-color)) 10%, transparent);
  border: 1px solid color-mix(in srgb, var(--team-color, var(--accent-color)) 22%, transparent);
  text-decoration: none;
  font-size: 0.85rem;
  transition: all 0.3s ease;
}

.team-social-btn:hover {
  background: var(--team-color, var(--accent-color));
  color: #fff !important;
  border-color: var(--team-color, var(--accent-color));
  transform: translateY(-3px);
  box-shadow: 0 8px 20px color-mix(in srgb, var(--team-color, var(--accent-color)) 30%, transparent);
}

.team-swiper-btn {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  border: 1px solid var(--team-card-border);
  background: var(--team-card-bg);
  color: var(--accent-color);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.22, 1, 0.36, 1);
  box-shadow: var(--team-card-shadow);
  flex-shrink: 0;
  z-index: 2;
}

html[data-theme="dark"] .team-swiper-btn {
  background: rgba(6, 20, 39, 0.85);
  border-color: rgba(2, 173, 143, 0.3);
}

.team-swiper-btn:hover {
  background: var(--accent-color);
  border-color: var(--accent-color);
  color: #fff;
  transform: translateY(-3px);
  box-shadow: 0 10px 28px rgba(2, 173, 143, 0.35);
}

.team-swiper-btn:active {
  transform: scale(0.96);
}

.team-swiper-btn.swiper-button-disabled {
  opacity: 0.35;
  pointer-events: none;
  transform: none;
}

.team-swiper-pagination {
  position: static !important;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100% !important;
  margin-top: 1.25rem;
}

.team-swiper-pagination .swiper-pagination-bullet {
  width: 10px;
  height: 10px;
  background: rgba(2, 173, 143, 0.25);
  opacity: 1;
  margin: 0 !important;
  border-radius: 50%;
  transition: all 0.35s ease;
}

html[data-theme="dark"] .team-swiper-pagination .swiper-pagination-bullet {
  background: rgba(255, 255, 255, 0.25);
}

.team-swiper-pagination .swiper-pagination-bullet-active {
  width: 32px;
  border-radius: 6px;
  background: var(--accent-color);
}

.team-footer-cta {
  margin-top: 2rem;
}

.team-view-all {
  display: inline-flex;
  align-items: center;
  padding: 12px 28px;
  background: var(--accent-color);
  border: 2px solid var(--accent-color);
  color: #fff !important;
  border-radius: 50px;
  font-weight: 700;
  font-size: 0.92rem;
  text-decoration: none;
  transition: all 0.3s ease;
}

.team-view-all:hover {
  background: var(--accent-hover);
  border-color: var(--accent-hover);
  color: #fff !important;
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(2, 173, 143, 0.35);
}

@media (max-width: 767px) {
  .team-swiper-wrap {
    gap: 8px;
  }

  .team-swiper-btn {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    font-size: 0.85rem;
  }

  .team-card {
    padding: 1.65rem 1.15rem 1.35rem;
  }

  .team-card-avatar {
    width: 84px;
    height: 84px;
  }

  .team-card-avatar-inner {
    font-size: 1.65rem;
  }
}

/* ===========================
   Testimonials Section (Home)
   =========================== */
.testimonials-section {
  --testimonial-bg: #ffffff;
  --testimonial-border: rgba(2, 173, 143, 0.1);
  --testimonial-shadow: 0 10px 36px rgba(2, 173, 143, 0.07);
  --testimonial-title: #0f2a4a;
  --testimonial-text: rgba(15, 42, 74, 0.72);
  --testimonial-meta: rgba(15, 42, 74, 0.55);
  --testimonial-section-bg: transparent;
  padding: 0;
}

html[data-theme="dark"] .testimonials-section {
  --testimonial-bg: rgba(6, 20, 39, 0.82);
  --testimonial-border: rgba(2, 173, 143, 0.22);
  --testimonial-shadow: 0 12px 40px rgba(6, 20, 39, 0.35);
  --testimonial-title: #eef7fc;
  --testimonial-text: rgba(220, 243, 244, 0.78);
  --testimonial-meta: rgba(199, 228, 245, 0.55);
  --testimonial-section-bg: transparent;
}

.testimonials-header {
  max-width: 640px;
  margin: 0 auto 2.75rem;
}

.testimonials-eyebrow {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--accent-color);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 0.5rem;
}

.testimonials-title {
  font-family: 'Alexandria', sans-serif;
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 800;
  color: var(--testimonial-title) !important;
  margin: 0 0 0.75rem;
}

.testimonials-subtitle {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.7;
  color: var(--testimonial-meta) !important;
  max-width: 520px;
}

.testimonials-grid {
  margin: 0 auto;
}

.testimonial-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  height: 100%;
  margin: 0;
  padding: 2.25rem 1.75rem 1.75rem;
  background: var(--testimonial-bg);
  border: 1px solid var(--testimonial-border);
  border-radius: 22px;
  box-shadow: var(--testimonial-shadow);
  overflow: hidden;
  transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 0.4s ease,
    border-color 0.35s ease;
}

.testimonial-card::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--testimonial-color, var(--accent-color));
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

.testimonial-card:hover {
  transform: translateY(-8px);
  border-color: color-mix(in srgb, var(--testimonial-color, var(--accent-color)) 40%, transparent);
  box-shadow: 0 20px 48px rgba(2, 173, 143, 0.14);
}

html[data-theme="dark"] .testimonial-card:hover {
  box-shadow: 0 22px 50px rgba(6, 20, 39, 0.45);
}

.testimonial-card:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}

.testimonial-quote-icon {
  position: absolute;
  top: 16px;
  left: 18px;
  font-size: 2.5rem;
  line-height: 1;
  color: color-mix(in srgb, var(--testimonial-color, var(--accent-color)) 18%, transparent);
  pointer-events: none;
}

.testimonial-avatar {
  position: relative;
  z-index: 1;
  width: 80px;
  height: 80px;
  margin-bottom: 1.15rem;
  border-radius: 50%;
  padding: 3px;
  background: color-mix(in srgb, var(--testimonial-color, var(--accent-color)) 35%, transparent);
  transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

.testimonial-card:hover .testimonial-avatar {
  transform: scale(1.06);
}

.testimonial-avatar-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: color-mix(in srgb, var(--testimonial-color, var(--accent-color)) 12%, var(--testimonial-bg));
  border: 2px solid color-mix(in srgb, var(--testimonial-color, var(--accent-color)) 25%, transparent);
  font-size: 1.65rem;
  color: var(--testimonial-color, var(--accent-color));
}

.testimonial-text {
  position: relative;
  z-index: 1;
  margin: 0 0 1.1rem;
  font-size: 0.92rem;
  line-height: 1.85;
  color: var(--testimonial-text) !important;
  font-style: normal;
}

.testimonial-text::before {
  content: '\201C';
  color: var(--testimonial-color, var(--accent-color));
  font-size: 1.4rem;
  font-weight: 800;
  margin-left: 4px;
}

.testimonial-text::after {
  content: '\201D';
  color: var(--testimonial-color, var(--accent-color));
  font-size: 1.4rem;
  font-weight: 800;
  margin-right: 4px;
}

.testimonial-rating {
  position: relative;
  z-index: 1;
  margin-bottom: 1rem;
}

.testimonial-stars {
  display: inline-flex;
  gap: 3px;
  padding: 5px 14px;
  border-radius: 50px;
  background: rgba(51, 164, 218, 0.1);
  border: 1px solid rgba(51, 164, 218, 0.2);
  color: #33a4da;
  font-size: 0.72rem;
}

.testimonial-author {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.2rem;
  margin-top: auto;
}

.testimonial-name {
  font-family: 'Alexandria', sans-serif;
  font-size: 1rem;
  font-weight: 800;
  font-style: normal;
  color: var(--testimonial-title) !important;
}

.testimonial-role {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--testimonial-color, var(--accent-color)) !important;
  letter-spacing: 0.02em;
}

@media (max-width: 767px) {
  .testimonials-header {
    margin-bottom: 2rem;
  }

  .testimonial-card {
    padding: 2rem 1.35rem 1.5rem;
  }

  .testimonial-avatar {
    width: 72px;
    height: 72px;
  }

  .testimonial-avatar-inner {
    font-size: 1.45rem;
  }

  .testimonial-quote-icon {
    font-size: 2rem;
    top: 12px;
    left: 14px;
  }
}

/* ===========================
   Newsletter Section (Home)
   =========================== */
.newsletter-section {
  --nl-bg: #ffffff;
  --nl-border: rgba(2, 173, 143, 0.12);
  --nl-title: #0f2a4a;
  --nl-text: rgba(15, 42, 74, 0.68);
  --nl-form-bg: rgba(2, 173, 143, 0.04);
  padding: 0;
}

html[data-theme="dark"] .newsletter-section {
  --nl-bg: rgba(6, 20, 39, 0.88);
  --nl-border: rgba(2, 173, 143, 0.25);
  --nl-title: #eef7fc;
  --nl-text: rgba(199, 228, 245, 0.68);
  --nl-form-bg: rgba(2, 173, 143, 0.1);
}

.newsletter-box {
  background: var(--nl-bg);
  border: 1px solid var(--nl-border);
  border-radius: 24px;
  padding: 2.5rem 1.75rem;
  box-shadow: 0 16px 48px rgba(2, 173, 143, 0.08);
}

html[data-theme="dark"] .newsletter-box {
  box-shadow: 0 16px 48px rgba(6, 20, 39, 0.35);
}

.newsletter-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--accent-color);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 0.65rem;
}

.newsletter-title {
  font-family: 'Alexandria', sans-serif;
  font-size: clamp(1.45rem, 3vw, 2rem);
  font-weight: 800;
  color: var(--nl-title) !important;
  margin: 0 0 0.75rem;
}

.newsletter-desc {
  margin: 0 0 1.5rem;
  font-size: 0.95rem;
  line-height: 1.75;
  color: var(--nl-text) !important;
}

.newsletter-benefits {
  list-style: none;
  padding: 0;
  margin: 0 0 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.newsletter-benefits li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  font-size: 0.9rem;
  line-height: 1.6;
  color: var(--nl-text) !important;
}

.newsletter-benefits strong {
  color: var(--nl-title);
}

.newsletter-benefit-icon {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(2, 173, 143, 0.1);
  border: 1px solid rgba(2, 173, 143, 0.18);
  color: var(--accent-color);
  font-size: 0.85rem;
}

.newsletter-trust {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem 1.25rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--nl-border);
}

.newsletter-trust-item {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.newsletter-trust-item strong {
  font-family: 'Alexandria', sans-serif;
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--accent-color);
}

.newsletter-trust-item span {
  font-size: 0.78rem;
  color: var(--nl-text) !important;
}

.newsletter-trust-divider {
  width: 1px;
  height: 32px;
  background: var(--nl-border);
}

.newsletter-form-card {
  background: var(--nl-form-bg);
  border: 1px solid var(--nl-border);
  border-radius: 20px;
  padding: 1.75rem 1.5rem;
}

.newsletter-form-header {
  text-align: center;
  margin-bottom: 1.35rem;
}

.newsletter-form-badge {
  display: inline-block;
  padding: 4px 14px;
  border-radius: 50px;
  background: var(--accent-color);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 800;
  margin-bottom: 0.65rem;
}

.newsletter-form-title {
  font-family: 'Alexandria', sans-serif;
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--nl-title) !important;
  margin: 0 0 0.35rem;
}

.newsletter-form-subtitle {
  margin: 0;
  font-size: 0.85rem;
  color: var(--nl-text) !important;
}

.newsletter-form {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.newsletter-input-wrap {
  position: relative;
}

.newsletter-input-icon {
  position: absolute;
  top: 50%;
  right: 16px;
  transform: translateY(-50%);
  color: var(--accent-color);
  font-size: 0.9rem;
  pointer-events: none;
}

.newsletter-input {
  width: 100%;
  padding: 14px 44px 14px 18px;
  border-radius: 14px;
  border: 1px solid var(--nl-border);
  background: var(--nl-bg);
  color: var(--nl-title);
  font-size: 0.92rem;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.newsletter-input::placeholder {
  color: color-mix(in srgb, var(--nl-text) 70%, transparent);
}

.newsletter-input:focus {
  outline: none;
  border-color: var(--accent-color);
  box-shadow: 0 0 0 3px rgba(2, 173, 143, 0.15);
}

.newsletter-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  width: 100%;
  padding: 14px 24px;
  border: none;
  border-radius: 14px;
  background: var(--accent-color);
  color: #fff;
  font-weight: 700;
  font-size: 0.95rem;
  cursor: pointer;
  transition: background 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
}

.newsletter-submit:hover {
  background: var(--accent-hover);
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(2, 173, 143, 0.35);
}

.newsletter-privacy {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  margin: 1rem 0 0;
  font-size: 0.78rem;
  color: var(--nl-text) !important;
}

.newsletter-privacy i {
  color: var(--accent-color);
  font-size: 0.72rem;
}

.newsletter-alert {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  padding: 0.85rem 1rem;
  border-radius: 12px;
  font-size: 0.92rem;
  line-height: 1.55;
  margin-bottom: 1rem;
}

.newsletter-alert[hidden] {
  display: none !important;
}

.newsletter-alert--success {
  background: rgba(2, 173, 143, 0.12);
  border: 1px solid rgba(2, 173, 143, 0.35);
  color: #123b6e;
}

.newsletter-alert--error {
  background: rgba(220, 38, 38, 0.08);
  border: 1px solid rgba(220, 38, 38, 0.25);
  color: #991b1b;
}

.newsletter-alert__icon {
  font-size: 1.15rem;
  flex-shrink: 0;
  margin-top: 0.1rem;
}

.newsletter-alert--success .newsletter-alert__icon {
  color: #02ad8f;
}

.newsletter-alert--error .newsletter-alert__icon {
  color: #dc2626;
}

.newsletter-alert--compact {
  margin-bottom: 0.65rem;
  padding: 0.55rem 0.75rem;
  font-size: 0.8rem;
}

html[data-theme="dark"] .newsletter-alert--success {
  background: rgba(2, 173, 143, 0.18);
  color: #c7ebf1;
}

html[data-theme="dark"] .newsletter-alert--error {
  background: rgba(220, 38, 38, 0.15);
  color: #fecaca;
}

@media (min-width: 992px) {
  .newsletter-box {
    padding: 3rem 2.75rem;
  }
}

@media (max-width: 767px) {
  .newsletter-box {
    padding: 1.75rem 1.25rem;
  }

  .newsletter-trust-divider {
    display: none;
  }
}


:root {
  /* Educational Green Theme */
  --bg-gradient-1: #dcf3f4;
  --bg-gradient-2: #f2f8fc;
  --bg-gradient-3: #c7ebf1;

  --text-primary: #0f2a4a;
  --text-secondary: rgba(15, 42, 74, 0.65);
  --accent-color: #02ad8f;
  --accent-hover: #018a72;
  --accent-light: #06b59c;
  --accent-rgb: 2, 173, 143;
  --accent-light-rgb: 6, 181, 156;

  --glass-bg: rgba(246, 250, 253, 0.98);
  --glass-border: rgba(2, 173, 143, 0.14);
  --glass-shadow: rgba(15, 42, 74, 0.07);

  --glass-hover-bg: #ffffff;
  --glass-hover-border: rgba(2, 173, 143, 0.28);

  --page-bg: #ffffff;
  --card-surface: #f6fafd;
  --card-border: rgba(2, 173, 143, 0.14);
  --card-shadow: 0 4px 20px rgba(15, 42, 74, 0.06), 0 1px 3px rgba(2, 173, 143, 0.06);
}

.text-accent {
  color: var(--accent-color) !important;
}

.bg-glass {
  background: var(--glass-bg);
}

[data-theme="dark"] {
  --text-primary: #f2f8fc;
  --text-secondary: rgba(199, 228, 245, 0.7);

  --glass-bg: rgba(6, 20, 39, 0.45);
  --glass-border: rgba(2, 173, 143, 0.3);
  --glass-shadow: rgba(6, 20, 39, 0.6);

  --glass-hover-bg: rgba(6, 20, 39, 0.6);
  --glass-hover-border: rgba(6, 181, 156, 0.55);

  background: linear-gradient(135deg, #061427 0%, #08192f 40%, #0b2140 70%, #071a33 100%) fixed;
}

body[data-theme="dark"],
html[data-theme="dark"] body {
  background: linear-gradient(135deg, #061427 0%, #08192f 40%, #0b2140 70%, #071a33 100%);
  background-attachment: fixed;
  animation: none;
}

html[data-theme="dark"] .glass-nav {
  background: rgba(6, 20, 39, 0.85);
  border-bottom: 1px solid rgba(2, 173, 143, 0.3);
  box-shadow: 0 2px 20px rgba(6, 20, 39, 0.5);
}

html[data-theme="dark"] .glass-panel,
html[data-theme="dark"] .glass-card {
  background: rgba(6, 20, 39, 0.7);
  border-color: rgba(2, 173, 143, 0.25);
  box-shadow: 0 8px 32px rgba(6, 20, 39, 0.5);
}

html[data-theme="dark"] .glass-card:hover {
  background: rgba(11, 33, 64, 0.8);
  border-color: rgba(6, 181, 156, 0.5);
}

html[data-theme="dark"] .text-white,
html[data-theme="dark"] h1,
html[data-theme="dark"] h2,
html[data-theme="dark"] h3,
html[data-theme="dark"] h4,
html[data-theme="dark"] h5,
html[data-theme="dark"] h6 {
  color: #f2f8fc !important;
}

html[data-theme="dark"] .nav-link {
  color: #c7ebf1 !important;
}

html[data-theme="dark"] .accordion-button {
  background-color: rgba(6, 20, 39, 0.7);
  color: #f2f8fc;
}

html[data-theme="dark"] .accordion-button:not(.collapsed) {
  background-color: rgba(2, 173, 143, 0.15);
  color: #45bec4;
}

html[data-theme="dark"] .form-control.bg-glass {
  background-color: rgba(6, 20, 39, 0.6);
  border-color: rgba(2, 173, 143, 0.3);
  color: #f2f8fc;
}

html[data-theme="dark"] p,
html[data-theme="dark"] body p {
  color: rgba(199, 228, 245, 0.7);
}

body {
  font-family: 'Cairo', sans-serif;
  background: #ffffff;
  background-size: auto;
  background-attachment: scroll;
  animation: none;
  color: var(--text-primary);
  min-height: 100vh;
  margin: 0;
  transition: color 0.4s ease, background 0.4s ease;
}

@keyframes bgShift {
  0% {
    background-position: 0% 50%;
  }

  50% {
    background-position: 100% 50%;
  }

  100% {
    background-position: 0% 50%;
  }
}

/* For English elements */
.en-text {
  font-family: 'Poppins', sans-serif;
}

/* Glassmorphism Utilities */
.glass-panel {
  background: var(--glass-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--glass-border);
  border-radius: 5px;
  box-shadow: 0 8px 32px var(--glass-shadow);
  transition: all 0.4s ease;
}

.glass-card {
  background: var(--glass-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--glass-border);
  border-radius: 5px;
  box-shadow: 0 8px 32px var(--glass-shadow);
  transition: all 0.4s ease;
  overflow: hidden;
}

.glass-card:hover {
  background: var(--glass-hover-bg);
  border-color: var(--glass-hover-border);
  transform: translateY(-4px);
  box-shadow: 0 12px 40px var(--glass-shadow);
}

html {
  overflow-x: hidden;
  scroll-behavior: smooth;
}

/* ===========================
   Site Navbar (Modern)
   =========================== */
.site-navbar {
  --nav-bg: rgba(255, 255, 255, 0.92);
  --nav-border: rgba(2, 173, 143, 0.14);
  --nav-text: #0f2a4a;
  --nav-muted: rgba(15, 42, 74, 0.62);
  --nav-hover-bg: rgba(2, 173, 143, 0.08);
  --nav-active-bg: rgba(2, 173, 143, 0.12);
  --search-bg: #ffffff;
  --search-border: rgba(2, 173, 143, 0.18);
  background: var(--nav-bg);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--nav-border);
  box-shadow: 0 4px 24px rgba(2, 173, 143, 0.06);
  transition: box-shadow 0.35s ease, border-color 0.35s ease, background 0.35s ease;
}

html[data-theme="dark"] .site-navbar {
  --nav-bg: rgba(8, 25, 47, 0.94);
  --nav-border: rgba(6, 181, 156, 0.22);
  --nav-text: #f2f8fc;
  --nav-muted: rgba(199, 228, 245, 0.62);
  --nav-hover-bg: rgba(2, 173, 143, 0.16);
  --nav-active-bg: rgba(2, 173, 143, 0.24);
  --search-bg: rgba(11, 35, 70, 0.95);
  --search-border: rgba(6, 181, 156, 0.28);
  box-shadow: 0 4px 28px rgba(6, 20, 39, 0.35);
}

.site-navbar.is-scrolled {
  box-shadow: 0 8px 32px rgba(2, 173, 143, 0.12);
  border-bottom-color: rgba(2, 173, 143, 0.22);
}

html[data-theme="dark"] .site-navbar.is-scrolled {
  box-shadow: 0 8px 36px rgba(6, 20, 39, 0.5);
}

.site-navbar.site-navbar--standalone {
  top: 0 !important;
}

.site-navbar-container {
  min-height: 72px;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.75rem;
  padding-top: 0.5rem;
  padding-bottom: 0.5rem;
}

.site-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
  margin-left: 0;
  padding: 0;
}

.site-brand-mark {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: rgba(2, 173, 143, 0.1);
  border: 1px solid rgba(2, 173, 143, 0.2);
  color: var(--accent-color);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
  transition: transform 0.35s ease, background 0.35s ease;
}

.site-brand:hover .site-brand-mark {
  transform: rotate(-8deg) scale(1.05);
  background: rgba(2, 173, 143, 0.16);
}

.site-brand-name {
  font-family: 'Alexandria', sans-serif;
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--nav-text) !important;
  line-height: 1.2;
}

.site-brand-name span {
  color: var(--accent-color);
}

.site-nav-collapse {
  align-items: center;
  gap: 0.75rem;
}

.site-nav-menu {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  margin-left: auto;
  margin-right: 0.5rem;
}

body:has(.site-navbar--standalone) {
  padding-top: 74px !important;
}

@media (max-width: 767px) {
  body:has(.site-navbar--standalone) {
    padding-top: 68px !important;
  }
}

.site-nav-menu .nav-link {
  color: var(--nav-muted) !important;
  font-weight: 700;
  font-size: 0.88rem;
  padding: 0.55rem 0.9rem !important;
  border-radius: 10px;
  position: relative;
  transition: color 0.25s ease, background 0.25s ease;
}

.site-nav-menu .nav-link::after {
  display: none;
}

.site-nav-menu .nav-link:hover {
  color: var(--accent-color) !important;
  background: var(--nav-hover-bg);
}

.site-nav-menu .nav-link.active {
  color: var(--accent-color) !important;
  background: var(--nav-active-bg);
  box-shadow: inset 0 0 0 1px rgba(2, 173, 143, 0.15);
}

.site-nav-search-wrap {
  flex: 1;
  min-width: 0;
  max-width: 420px;
  position: relative;
}

.site-search-form {
  width: 100%;
  position: relative;
}

.site-search-box {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.35rem;
  min-height: 46px;
  padding: 0 0.45rem 0 0.85rem;
  background: var(--search-bg);
  border: 2px solid var(--search-border);
  border-radius: 14px;
  overflow: hidden;
  transition: border-color 0.35s ease, box-shadow 0.35s ease, transform 0.35s ease;
}

.site-search-glow {
  position: absolute;
  inset: -2px;
  border-radius: 16px;
  background: rgba(2, 173, 143, 0.15);
  opacity: 0;
  filter: blur(10px);
  transition: opacity 0.35s ease;
  pointer-events: none;
  z-index: 0;
}

.site-search-ring {
  position: absolute;
  inset: 0;
  border-radius: 12px;
  border: 2px solid transparent;
  pointer-events: none;
  z-index: 1;
  transition: border-color 0.35s ease;
}

.site-search-box.is-focused,
.site-search-box.is-open {
  border-color: var(--accent-color);
  box-shadow: 0 0 0 4px rgba(2, 173, 143, 0.12), 0 12px 32px rgba(2, 173, 143, 0.15);
  transform: translateY(-1px);
}

.site-search-box.is-focused .site-search-glow,
.site-search-box.is-open .site-search-glow {
  opacity: 1;
}

.site-search-box.is-focused .site-search-ring,
.site-search-box.is-open .site-search-ring {
  border-color: rgba(2, 173, 143, 0.35);
}

.site-search-icon {
  position: relative;
  z-index: 2;
  color: var(--accent-color);
  font-size: 0.95rem;
  flex-shrink: 0;
}

.site-search-input {
  position: relative;
  z-index: 2;
  flex: 1;
  min-width: 0;
  border: none;
  background: transparent;
  color: var(--nav-text);
  font-size: 0.88rem;
  font-weight: 600;
  padding: 0.65rem 0.25rem;
}

.site-search-input::placeholder {
  color: var(--nav-muted);
  font-weight: 500;
}

.site-search-input:focus {
  outline: none;
}

.site-search-kbd {
  position: relative;
  z-index: 2;
  align-items: center;
  justify-content: center;
  min-width: 34px;
  height: 24px;
  padding: 0 6px;
  border-radius: 6px;
  background: rgba(2, 173, 143, 0.08);
  border: 1px solid rgba(2, 173, 143, 0.15);
  color: var(--nav-muted);
  font-family: 'Poppins', sans-serif;
  font-size: 0.68rem;
  font-weight: 600;
}

.site-search-submit {
  position: relative;
  z-index: 2;
  width: 36px;
  height: 36px;
  border: none;
  border-radius: 10px;
  background: var(--accent-color);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
  transition: background 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
}

.site-search-submit:hover {
  background: var(--accent-hover);
  transform: scale(1.05);
  box-shadow: 0 6px 18px rgba(2, 173, 143, 0.35);
}

.site-search-results {
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  right: 0;
  background: var(--search-bg);
  border: 1px solid var(--search-border);
  border-radius: 16px;
  box-shadow: 0 20px 50px rgba(2, 173, 143, 0.18);
  overflow: hidden;
  z-index: 1060;
  max-height: 320px;
  overflow-y: auto;
}

html[data-theme="dark"] .site-search-results {
  box-shadow: 0 20px 50px rgba(6, 20, 39, 0.5);
}

.site-search-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.85rem 1rem;
  text-decoration: none;
  border-bottom: 1px solid var(--nav-border);
  transition: background 0.25s ease;
}

.site-search-item:last-child {
  border-bottom: none;
}

.site-search-item:hover {
  background: var(--nav-hover-bg);
}

.site-search-item-icon {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: rgba(2, 173, 143, 0.1);
  color: var(--accent-color);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.site-search-item-body {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  min-width: 0;
  text-align: right;
}

.site-search-item-body strong {
  font-size: 0.86rem;
  color: var(--nav-text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.site-search-item-body small {
  font-size: 0.74rem;
  color: var(--nav-muted);
}

.site-search-empty {
  padding: 1.25rem;
  text-align: center;
  color: var(--nav-muted);
  font-size: 0.85rem;
}

.site-search-empty i {
  display: block;
  font-size: 1.25rem;
  color: var(--accent-color);
  margin-bottom: 0.5rem;
  opacity: 0.6;
}

.site-search-footer {
  padding: 0.65rem 1rem;
  background: rgba(2, 173, 143, 0.06);
  border-top: 1px solid var(--nav-border);
  text-align: center;
}

.site-search-footer a {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--accent-color);
  text-decoration: none;
}

.site-nav-actions {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  margin-right: auto;
}

.site-nav-icon-btn {
  width: 40px;
  height: 40px;
  border-radius: 11px;
  border: 1px solid var(--nav-border);
  background: transparent;
  color: var(--nav-text);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  text-decoration: none;
  position: relative;
  transition: all 0.3s ease;
}

.site-nav-icon-btn:hover {
  background: var(--nav-hover-bg);
  border-color: rgba(2, 173, 143, 0.3);
  color: var(--accent-color);
}

.site-nav-cart .cart-badge {
  top: -4px;
  right: -4px;
  background: var(--accent-color);
  box-shadow: 0 2px 8px rgba(2, 173, 143, 0.4);
}

.site-nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.55rem 1.1rem;
  border-radius: 12px;
  background: var(--accent-color);
  border: 2px solid var(--accent-color);
  color: #fff !important;
  font-weight: 700;
  font-size: 0.84rem;
  text-decoration: none;
  white-space: nowrap;
  transition: all 0.3s ease;
}

.site-nav-cta:hover {
  background: var(--accent-hover);
  border-color: var(--accent-hover);
  color: #fff !important;
  transform: translateY(-2px);
  box-shadow: 0 8px 22px rgba(2, 173, 143, 0.35);
}

.site-nav-toggler {
  width: 42px;
  height: 42px;
  padding: 0;
  border: 1px solid var(--nav-border);
  border-radius: 11px;
  background: transparent;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
}

.site-nav-toggler span {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--nav-text);
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.site-nav-toggler[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.site-nav-toggler[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.site-nav-toggler[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.site-nav-mobile-tools {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  margin-right: auto;
}

@media (max-width: 1199px) {
  .site-navbar-container {
    min-height: 64px;
  }

  .site-nav-collapse {
    width: 100%;
    padding: 0.75rem 0 1rem;
    border-top: 1px solid var(--nav-border);
    margin-top: 0.35rem;
  }

  .site-nav-menu {
    width: 100%;
    margin: 0 0 0.75rem;
    flex-wrap: wrap;
  }

  .site-nav-search-wrap {
    max-width: none;
    width: 100%;
    margin-bottom: 0.75rem;
  }

  .site-nav-search-wrap.show,
  .site-nav-search-wrap.collapsing {
    display: flex !important;
  }

  .site-nav-actions {
    width: 100%;
    justify-content: flex-start;
    margin: 0;
  }

  .site-nav-cta span {
    display: inline;
  }
}

@media (max-width: 575px) {
  .site-nav-cta span {
    display: none;
  }

  .site-nav-cta {
    padding: 0.55rem 0.75rem;
  }
}

/* Legacy glass-nav fallback */
.glass-nav {
  background: var(--nav-bg, rgba(255, 255, 255, 0.72));
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(2, 173, 143, 0.18);
}

/* Custom Buttons */
.btn-accent {
  background: linear-gradient(135deg, #02ad8f, #06b59c);
  color: #fff;
  border: none;
  border-radius: 5px;
  padding: 10px 24px;
  font-weight: 600;
  transition: all 0.3s ease;
}

.btn-accent:hover {
  background: linear-gradient(135deg, #018a72, #02ad8f);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(2, 173, 143, 0.4);
}

.btn-outline-accent {
  background: transparent;
  color: #02ad8f;
  border: 1px solid rgba(2, 173, 143, 0.45);
  border-radius: 5px;
  padding: 10px 24px;
  font-weight: 600;
  transition: all 0.3s ease;
}

.btn-outline-accent:hover {
  background: rgba(2, 173, 143, 0.08);
  color: #018a72;
  border-color: #02ad8f;
}

html[data-theme="dark"] .btn-outline-accent {
  color: #45bec4;
  border-color: rgba(69, 190, 196, 0.4);
}

html[data-theme="dark"] .btn-outline-accent:hover {
  background: rgba(69, 190, 196, 0.1);
  color: #8fd9e0;
}

.btn-glass {
  background: var(--glass-bg);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid var(--glass-border);
  color: var(--text-primary);
  border-radius: 5px;
  padding: 10px 24px;
  font-weight: 600;
  transition: all 0.3s ease;
}

.btn-glass:hover {
  background: var(--glass-hover-bg);
  border-color: var(--glass-hover-border);
  color: var(--text-primary);
}

/* Theme Toggle Button */
.theme-toggle {
  background: transparent;
  border: none;
  color: var(--text-primary);
  font-size: 1.2rem;
  cursor: pointer;
  transition: transform 0.4s ease;
}

.theme-toggle:hover {
  transform: rotate(20deg) scale(1.1);
}

/* Custom Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-weight: 700;
}

p {
  color: var(--text-secondary);
}

/* Typing Animation Cursor */
.typing-cursor {
  display: inline-block;
  width: 3px;
  background-color: var(--accent-color);
  animation: blink 0.8s infinite;
}

@keyframes blink {

  0%,
  100% {
    opacity: 1;
  }

  50% {
    opacity: 0;
  }
}

/* Cart Badge */
.cart-badge {
  position: absolute;
  top: -5px;
  right: -5px;
  background: linear-gradient(135deg, #02ad8f, #06b59c);
  color: white;
  font-size: 0.7rem;
  font-family: 'Poppins', sans-serif;
  border-radius: 50%;
  width: 18px;
  height: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  box-shadow: 0 2px 8px rgba(2, 173, 143, 0.5);
}

.nav-link {
  color: #0f2a4a !important;
  font-weight: 600;
  position: relative;
  transition: color 0.3s ease;
}

.nav-link:hover {
  color: #02ad8f !important;
}

.nav-link::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  bottom: 0;
  right: 0;
  background: linear-gradient(90deg, #02ad8f, #06b59c);
  transition: width 0.3s ease;
  border-radius: 2px;
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
  left: 0;
  right: auto;
}

/* Scrollbar styling */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: #dcf3f4;
}

::-webkit-scrollbar-thumb {
  background: #8fd9e0;
  border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
  background: #02ad8f;
}

/* Base Utility Classes */
.bg-gradient-opacity {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0) 0%, rgba(6, 20, 39, 0.1) 100%);
}

.max-w-lg {
  max-width: 600px;
}

/* Form Styles Override for Glass */
.form-control.bg-glass {
  background-color: var(--glass-bg);
  border-color: var(--glass-border);
  color: var(--text-primary);
}

.form-control.bg-glass:focus {
  background-color: var(--glass-hover-bg);
  border-color: var(--accent-color);
  box-shadow: 0 0 10px rgba(26, 131, 193, 0.2);
  color: var(--text-primary);
}

/* Animations ON Scroll */
.section-fade-up {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.section-fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ===========================
   Home Page — Layout & Zones
   =========================== */
.home-main {
  --home-gutter: #ffffff;
  --home-surface: #ffffff;
  --home-surface-alt: #f2f8fc;
  --home-surface-elevated: #ffffff;
  --home-surface-featured: #f2f8fc;
  --home-pattern-line: rgba(2, 173, 143, 0.045);
  --home-pattern-dot: rgba(2, 173, 143, 0.06);
  --home-pattern-size: 36px;
  --home-border: rgba(2, 173, 143, 0.28);
  --home-border-strong: rgba(1, 138, 114, 0.42);
  --home-section-py: clamp(3rem, 5.5vw, 4.75rem);
  --home-subsection-py: clamp(2.25rem, 4vw, 3.25rem);
  background: var(--home-gutter);
  overflow-x: clip;
}

html[data-theme="dark"] .home-main {
  --home-gutter: #061427;
  --home-surface: #06172b;
  --home-surface-alt: #0f2a4a;
  --home-surface-elevated: #0b2140;
  --home-surface-featured: #123b6e;
  --home-border: rgba(6, 181, 156, 0.32);
  --home-border-strong: rgba(69, 190, 196, 0.48);
  background: var(--home-gutter);
}

.home-hero-bridge {
  height: 48px;
  background: #ffffff;
}

.home-section-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.85rem;
  padding: 0.85rem 1.5rem;
  background: var(--home-gutter);
}

.home-section-divider::before,
.home-section-divider::after {
  content: '';
  flex: 1;
  max-width: 280px;
  height: 3px;
  background: var(--home-border-strong);
  border-radius: 3px;
  opacity: 0.85;
}

.home-section-divider span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--accent-color);
  border: 2px solid #ffffff;
  box-shadow: 0 0 0 4px rgba(2, 173, 143, 0.22);
  flex-shrink: 0;
}

html[data-theme="dark"] .home-section-divider span {
  border-color: rgba(255, 255, 255, 0.15);
  box-shadow: 0 0 0 4px rgba(6, 181, 156, 0.28);
}

.home-zone {
  position: relative;
  isolation: isolate;
}

.home-zone--base {
  background: var(--home-surface);
}

.home-zone--alt {
  background-color: var(--home-surface-alt);
  background-image:
    linear-gradient(to right, var(--home-pattern-line) 1px, transparent 1px),
    linear-gradient(to bottom, var(--home-pattern-line) 1px, transparent 1px),
    radial-gradient(circle at 50% 50%, var(--home-pattern-dot) 1px, transparent 1px);
  background-size:
    var(--home-pattern-size) var(--home-pattern-size),
    var(--home-pattern-size) var(--home-pattern-size),
    var(--home-pattern-size) var(--home-pattern-size);
  background-position: center center;
}

html[data-theme="dark"] .home-zone--alt {
  background-color: var(--home-surface-alt);
  background-image:
    linear-gradient(to right, rgba(6, 181, 156, 0.06) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(6, 181, 156, 0.06) 1px, transparent 1px),
    radial-gradient(circle at 50% 50%, rgba(6, 181, 156, 0.08) 1px, transparent 1px);
  background-size: 36px 36px, 36px 36px, 36px 36px;
}

.home-zone--elevated {
  background: var(--home-surface-elevated);
  padding-top: clamp(1.75rem, 3vw, 2.5rem) !important;
  padding-bottom: clamp(2rem, 3.5vw, 3rem) !important;
}

.home-zone--featured {
  background: var(--home-surface-featured);
}

.home-zone--last {
  padding-bottom: clamp(3.5rem, 6vw, 5rem) !important;
}

.home-zone-group {
  background: var(--home-surface-alt);
}

.home-inner-divider {
  max-width: min(1140px, calc(100% - 2rem));
  margin: 0 auto;
  height: 3px;
  background: var(--home-border-strong);
  opacity: 0.55;
  border-radius: 3px;
}

.home-subsection {
  padding-top: var(--home-subsection-py);
  padding-bottom: var(--home-subsection-py);
}

.home-subsection--compact {
  padding-top: 0;
  padding-bottom: var(--home-subsection-py);
}

/* Unified section spacing inside home */
.home-main .stats-section,
.home-main .categories-section,
.home-main .features-section,
.home-main .team-section,
.home-main .testimonials-section,
.home-main .newsletter-section,
.home-main .blog-section,
.home-main .courses-section,
.home-main .courses-slider-section {
  padding-top: var(--home-section-py);
  padding-bottom: var(--home-section-py);
}

.home-main .courses-section,
.home-main .courses-slider-section {
  padding-left: 0;
  padding-right: 0;
}

/* Section header accent line (left-aligned headers) */
.home-main .categories-header [class$="-eyebrow"]::before,
.home-main .courses-header [class$="-eyebrow"]::before,
.home-main .blog-header [class$="-eyebrow"]::before {
  content: '';
  display: inline-block;
  width: 22px;
  height: 2px;
  background: var(--accent-color);
  border-radius: 2px;
  margin-left: 0.5rem;
  vertical-align: middle;
}

.home-main .categories-header,
.home-main .courses-header,
.home-main .blog-header {
  margin-bottom: clamp(1.75rem, 3vw, 2.5rem);
}

.home-main .features-header,
.home-main .team-header,
.home-main .testimonials-header {
  margin-bottom: clamp(2rem, 3.5vw, 2.75rem);
}

@media (max-width: 767px) {
  .home-main {
    --home-section-py: 2.75rem;
    --home-subsection-py: 2rem;
  }

  .home-hero-bridge {
    height: 32px;
  }

  .home-section-divider {
    padding: 0.65rem 1rem;
  }

  .home-section-divider::before,
  .home-section-divider::after {
    max-width: 80px;
  }
}

/* Hero Section — Swiper Slider (Light/Dark) */
.hero-section {
  --hero-bg: #ffffff;
  --hero-surface: #ffffff;
  --hero-text: #0f2a4a;
  --hero-text-muted: rgba(15, 42, 74, 0.72);
  --hero-badge-bg: rgba(2, 173, 143, 0.08);
  --hero-badge-border: rgba(2, 173, 143, 0.18);
  --hero-glass-bg: rgba(255, 255, 255, 0.85);
  --hero-glass-border: rgba(2, 173, 143, 0.15);
  --hero-nav-bg: rgba(255, 255, 255, 0.92);
  --hero-nav-border: rgba(2, 173, 143, 0.12);
  --hero-nav-text: #0f2a4a;
  --hero-shape-opacity: 0.35;
  --hero-visual-bg: rgba(2, 173, 143, 0.08);
  --hero-visual-border: rgba(2, 173, 143, 0.15);
  --hero-float-bg: #ffffff;
  --hero-float-text: #0f2a4a;
  --hero-float-muted: rgba(15, 42, 74, 0.6);
  --hero-code-bg: #123b6e;
  position: relative;
  overflow: visible;
  padding-bottom: 0 !important;
}

html[data-theme="dark"] .hero-section {
  --hero-bg: #08192f;
  --hero-surface: rgba(255, 255, 255, 0.04);
  --hero-text: #eef7fc;
  --hero-text-muted: rgba(220, 243, 244, 0.72);
  --hero-badge-bg: rgba(255, 255, 255, 0.08);
  --hero-badge-border: rgba(255, 255, 255, 0.15);
  --hero-glass-bg: rgba(255, 255, 255, 0.08);
  --hero-glass-border: rgba(255, 255, 255, 0.18);
  --hero-nav-bg: rgba(6, 20, 39, 0.35);
  --hero-nav-border: rgba(255, 255, 255, 0.12);
  --hero-nav-text: #ffffff;
  --hero-shape-opacity: 1;
  --hero-visual-bg: rgba(2, 173, 143, 0.2);
  --hero-visual-border: rgba(255, 255, 255, 0.12);
  --hero-float-bg: rgba(255, 255, 255, 0.1);
  --hero-float-text: #ffffff;
  --hero-float-muted: rgba(255, 255, 255, 0.65);
  --hero-code-bg: rgba(6, 20, 39, 0.55);
}

.hero-swiper {
  width: 100%;
  height: auto;
  min-height: 560px;
  position: relative;
  overflow: hidden;
  border-radius: 0 0 28px 28px;
  background: var(--hero-bg);
  border-bottom: 1px solid var(--hero-badge-border);
}

.hero-swiper .swiper-wrapper {
  min-height: 560px;
}

.hero-swiper .swiper-slide {
  height: auto;
  min-height: 560px;
}

@media (max-width: 767px) {
  .hero-swiper,
  .hero-swiper .swiper-wrapper,
  .hero-swiper .swiper-slide {
    min-height: 620px;
  }
}

.hero-slide {
  position: relative;
  overflow: hidden;
}

.min-vh-hero {
  min-height: 560px;
  padding: 48px 0 110px;
  align-items: center;
}

@media (max-width: 767px) {
  .min-vh-hero {
    min-height: 620px;
    padding: 36px 0 120px;
  }
}

/* Slide background — solid, no gradients */
.hero-slide-bg {
  position: absolute;
  inset: 0;
  background: var(--hero-bg);
  z-index: 0;
}

.hero-slide-bg--custom::before,
.hero-slide-bg--custom::after {
  display: none;
}

.hero-slide-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
}

.hero-slide--tall .min-vh-hero {
  min-height: 680px;
}

.hero-slide--compact .min-vh-hero {
  min-height: 460px;
  padding-bottom: 80px;
}

.hero-visual-image img {
  max-height: 420px;
  width: 100%;
  object-fit: contain;
}

.cursor-grab {
  cursor: grab;
}

.hero-slide-bg::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(2, 173, 143, 0.08) 1px, transparent 1px);
  background-size: 28px 28px;
  opacity: var(--hero-shape-opacity);
}

.hero-slide-bg::after {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 45%;
  height: 100%;
  background: var(--slide-accent, var(--accent-color));
  opacity: 0.04;
  clip-path: polygon(25% 0, 100% 0, 100% 100%, 0 100%);
}

html[data-theme="dark"] .hero-slide-bg::after {
  opacity: 0.07;
}

.hero-slide-inner {
  position: relative;
  z-index: 2;
}

.hero-bg-shapes {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
}

.hero-bg-shapes .shape {
  position: absolute;
  border-radius: 50%;
  filter: blur(50px);
}

.hero-bg-shapes .shape-1 {
  width: 280px;
  height: 280px;
  top: 8%;
  right: -40px;
  background: rgba(2, 173, 143, 0.12);
  animation: float 6s infinite ease-in-out;
}

.hero-bg-shapes .shape-2 {
  width: 320px;
  height: 320px;
  bottom: 5%;
  left: -80px;
  background: rgba(51, 164, 218, 0.1);
  animation: float 8s infinite ease-in-out reverse;
}

.hero-bg-shapes .shape-3 {
  width: 180px;
  height: 180px;
  top: 45%;
  left: 55%;
  background: rgba(2, 173, 143, 0.08);
  animation: heroPulse 4s infinite ease-in-out;
}

html[data-theme="dark"] .hero-bg-shapes .shape-1 { background: rgba(2, 173, 143, 0.22); }
html[data-theme="dark"] .hero-bg-shapes .shape-2 { background: rgba(51, 164, 218, 0.15); }
html[data-theme="dark"] .hero-bg-shapes .shape-3 { background: rgba(6, 181, 156, 0.12); }

@keyframes heroPulse {
  0%, 100% { transform: scale(1); opacity: 0.7; }
  50% { transform: scale(1.15); opacity: 0.4; }
}

/* Typography */
.hero-section .hero-title {
  color: var(--hero-text) !important;
}

.hero-section .hero-desc {
  color: var(--hero-text-muted) !important;
}

.hero-accent-text {
  color: var(--slide-accent, var(--accent-color)) !important;
}

.hero-section .typing-cursor {
  background-color: var(--accent-color);
}

/* Slide animations */
.hero-slide.swiper-slide-active .hero-badge { animation: heroFadeUp 0.7s ease 0.1s both; }
.hero-slide.swiper-slide-active .hero-title { animation: heroFadeUp 0.7s ease 0.25s both; }
.hero-slide.swiper-slide-active .hero-desc { animation: heroFadeUp 0.7s ease 0.4s both; }
.hero-slide.swiper-slide-active .hero-actions { animation: heroFadeUp 0.7s ease 0.55s both; }
.hero-slide.swiper-slide-active .hero-visual-card { animation: heroVisualIn 1s ease 0.3s both; }

@keyframes heroFadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes heroVisualIn {
  from { opacity: 0; transform: translateX(-30px) scale(0.96); }
  to { opacity: 1; transform: translateX(0) scale(1); }
}

/* Badge */
.hero-badge {
  display: inline-flex;
  align-items: center;
  background: var(--hero-badge-bg);
  border: 1px solid var(--hero-badge-border);
  color: var(--hero-text);
  padding: 8px 18px;
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 1.25rem;
  box-shadow: 0 4px 16px rgba(2, 173, 143, 0.08);
}

.hero-badge i {
  color: var(--slide-accent, var(--accent-color));
}

/* Buttons */
.btn-hero-primary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 28px;
  background: var(--accent-color);
  color: #fff !important;
  border: none;
  border-radius: 14px;
  font-size: 1.05rem;
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 8px 24px rgba(2, 173, 143, 0.3);
  transition: transform 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
}

.btn-hero-primary:hover {
  transform: translateY(-3px);
  background: var(--accent-hover);
  box-shadow: 0 12px 32px rgba(2, 173, 143, 0.4);
  color: #fff !important;
}

.btn-hero-primary i { transition: transform 0.3s ease; }
.btn-hero-primary:hover i { transform: translateX(-4px); }

.btn-hero-glass {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 28px;
  background: var(--hero-glass-bg);
  border: 1px solid var(--hero-glass-border);
  color: var(--hero-text) !important;
  border-radius: 14px;
  font-size: 1.05rem;
  font-weight: 600;
  text-decoration: none;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: all 0.3s ease;
}

.btn-hero-glass:hover {
  border-color: var(--accent-color);
  transform: translateY(-3px);
  color: var(--hero-text) !important;
  box-shadow: 0 8px 24px rgba(2, 173, 143, 0.15);
}

html[data-theme="dark"] .btn-hero-glass:hover {
  background: rgba(255, 255, 255, 0.12);
}

/* Visual cards */
.hero-visual-card {
  position: relative;
  max-width: 460px;
  margin-right: auto;
}

.hero-visual-main {
  width: 100%;
  height: 380px;
  border-radius: 24px;
  background: var(--hero-visual-bg);
  border: 1px solid var(--hero-visual-border);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--stat-shadow);
  animation: heroFloatCard 5s ease-in-out infinite;
}

.hero-visual-main i {
  font-size: 5.5rem;
  color: var(--accent-color);
  opacity: 0.75;
}

@keyframes heroFloatCard {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

.hero-float-card {
  position: absolute;
  background: var(--hero-float-bg);
  border: 1px solid var(--hero-visual-border);
  border-radius: 16px;
  padding: 14px 18px;
  display: flex;
  align-items: center;
  gap: 12px;
  box-shadow: var(--stat-shadow);
  color: var(--hero-float-text);
  z-index: 3;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.hero-float-card strong {
  display: block;
  font-size: 1.1rem;
  color: var(--hero-float-text);
}

.hero-float-card small {
  color: var(--hero-float-muted);
  font-size: 0.75rem;
}

.hero-float-top {
  top: 8%;
  right: -8%;
  animation: heroFloatBadge 4s ease-in-out infinite;
}

.hero-float-bottom {
  bottom: 12%;
  left: -5%;
  animation: heroFloatBadge 4s ease-in-out infinite 0.5s;
}

@keyframes heroFloatBadge {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

.hero-float-icon {
  width: 42px;
  height: 42px;
  background: var(--stat-icon-bg);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-color);
}

/* Code window */
.hero-code-window {
  background: var(--hero-code-bg);
  border: 1px solid var(--hero-visual-border);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--stat-shadow);
  animation: heroFloatCard 5s ease-in-out infinite;
}

.hero-code-bar {
  display: flex;
  gap: 8px;
  padding: 14px 16px;
  background: rgba(255, 255, 255, 0.05);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.hero-code-bar span {
  width: 12px;
  height: 12px;
  border-radius: 50%;
}

.hero-code-bar span:nth-child(1) { background: #02ad8f; }
.hero-code-bar span:nth-child(2) { background: #45bec4; }
.hero-code-bar span:nth-child(3) { background: #06b59c; }

.hero-code-body {
  padding: 24px;
  margin: 0;
  font-family: 'Courier New', monospace;
  font-size: 0.95rem;
  color: #dde8f1;
  direction: ltr;
  text-align: left;
  line-height: 1.7;
}

.hero-code-body .c-keyword { color: #45bec4; }
.hero-code-body .c-string { color: #45bec4; }
.hero-code-body .c-bool { color: #45bec4; }

/* Design orbit */
.hero-design-orbit {
  position: relative;
  width: 360px;
  height: 360px;
  margin: 0 auto;
}

.hero-orbit-ring {
  position: absolute;
  inset: 20px;
  border: 2px dashed var(--hero-visual-border);
  border-radius: 50%;
  animation: heroOrbitSpin 20s linear infinite;
}

@keyframes heroOrbitSpin {
  to { transform: rotate(360deg); }
}

.hero-orbit-center {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 110px;
  height: 110px;
  background: var(--slide-accent, #33a4da);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.2rem;
  color: #fff;
  box-shadow: 0 12px 32px rgba(2, 173, 143, 0.25);
}

.hero-orbit-icon {
  position: absolute;
  width: 52px;
  height: 52px;
  background: var(--hero-float-bg);
  border: 1px solid var(--hero-visual-border);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  color: var(--accent-color);
  box-shadow: var(--stat-shadow);
}

.hero-orbit-1 { top: 0; left: 50%; transform: translateX(-50%); }
.hero-orbit-2 { bottom: 15%; right: 5%; }
.hero-orbit-3 { bottom: 15%; left: 5%; }

/* AI visual */
.hero-ai-core {
  position: relative;
  width: 300px;
  height: 300px;
  margin: 0 auto;
}

.hero-ai-ring {
  position: absolute;
  border-radius: 50%;
  border: 2px solid rgba(6, 181, 156, 0.35);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.hero-ai-ring-1 { width: 100%; height: 100%; animation: heroAiPulse 3s ease-in-out infinite; }
.hero-ai-ring-2 { width: 75%; height: 75%; animation: heroAiPulse 3s ease-in-out infinite 0.5s; }
.hero-ai-ring-3 { width: 50%; height: 50%; animation: heroAiPulse 3s ease-in-out infinite 1s; }

@keyframes heroAiPulse {
  0%, 100% { transform: translate(-50%, -50%) scale(1); opacity: 0.7; }
  50% { transform: translate(-50%, -50%) scale(1.06); opacity: 1; }
}

.hero-ai-icon {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 96px;
  height: 96px;
  background: #06b59c;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.4rem;
  color: #fff;
  box-shadow: 0 12px 32px rgba(6, 181, 156, 0.3);
}

.hero-ai-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin-top: 24px;
}

.hero-ai-tags span {
  padding: 6px 14px;
  background: rgba(6, 181, 156, 0.12);
  border: 1px solid rgba(6, 181, 156, 0.25);
  border-radius: 20px;
  color: #02ad8f;
  font-size: 0.8rem;
  font-weight: 600;
  font-family: 'Poppins', sans-serif;
}

html[data-theme="dark"] .hero-ai-tags span {
  color: #8fd9e0;
}

/* Swiper Navigation */
.hero-swiper-nav {
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 14px;
  z-index: 10;
  padding: 8px 16px;
  background: var(--hero-nav-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--hero-nav-border);
  border-radius: 60px;
  box-shadow: var(--stat-shadow);
}

.hero-nav-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--hero-nav-border);
  background: var(--hero-surface);
  color: var(--hero-nav-text);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 0.9rem;
  flex-shrink: 0;
}

.hero-nav-btn:hover {
  background: var(--accent-color);
  border-color: var(--accent-color);
  color: #fff;
  transform: scale(1.08);
}

.hero-pagination {
  position: static !important;
  display: flex !important;
  align-items: center;
  gap: 8px;
  width: auto !important;
}

.hero-pagination .swiper-pagination-bullet {
  width: auto;
  height: auto;
  background: transparent;
  opacity: 1;
  margin: 0 !important;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
}

.hero-bullet-inner {
  display: block;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(2, 173, 143, 0.25);
  transition: all 0.35s ease;
}

html[data-theme="dark"] .hero-bullet-inner {
  background: rgba(255, 255, 255, 0.3);
}

.hero-bullet-label {
  font-size: 0.65rem;
  color: var(--hero-text-muted);
  font-weight: 600;
  white-space: nowrap;
}

.hero-pagination .swiper-pagination-bullet-active .hero-bullet-inner {
  width: 28px;
  border-radius: 6px;
  background: var(--accent-color);
}

.hero-pagination .swiper-pagination-bullet-active .hero-bullet-label {
  color: var(--hero-text);
}

@media (max-width: 576px) {
  .hero-bullet-label { display: none; }
  .hero-nav-btn { width: 38px; height: 38px; }
}

/* Progress bar */
.hero-autoplay-progress {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: rgba(2, 173, 143, 0.1);
  z-index: 10;
}

html[data-theme="dark"] .hero-autoplay-progress {
  background: rgba(255, 255, 255, 0.08);
}

.hero-progress-fill {
  display: block;
  height: 100%;
  width: 0%;
  background: var(--accent-color);
  transition: width 0.05s linear;
}

/* Stats Section */
.stats-section {
  --stat-bg: #ffffff;
  --stat-border: rgba(2, 173, 143, 0.12);
  --stat-shadow: 0 10px 40px rgba(2, 173, 143, 0.08);
  --stat-icon-bg: rgba(2, 173, 143, 0.1);
  --stat-number: #0f2a4a;
  --stat-label: rgba(15, 42, 74, 0.65);
  padding: 0;
  position: relative;
  z-index: 5;
}

html[data-theme="dark"] .stats-section {
  --stat-bg: #0b2346;
  --stat-border: rgba(6, 181, 156, 0.28);
  --stat-shadow: 0 12px 40px rgba(6, 20, 39, 0.35);
  --stat-icon-bg: rgba(6, 181, 156, 0.18);
  --stat-number: #f2f8fc;
  --stat-label: rgba(199, 228, 245, 0.65);
}

.stats-row {
  margin-top: 0;
}

.stat-card {
  background: var(--stat-bg);
  border: 1px solid var(--stat-border);
  border-radius: 20px;
  padding: 1.75rem 1.25rem;
  text-align: center;
  height: 100%;
  position: relative;
  overflow: hidden;
  box-shadow: var(--stat-shadow);
  transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease;
}

.stat-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--accent-color);
  opacity: 0;
  transition: opacity 0.35s ease;
}

.stat-card:hover {
  transform: translateY(-6px);
  border-color: rgba(2, 173, 143, 0.35);
  box-shadow: 0 16px 48px rgba(2, 173, 143, 0.15);
}

html[data-theme="dark"] .stat-card:hover {
  box-shadow: 0 16px 48px rgba(6, 20, 39, 0.45);
}

.stat-card:hover::before {
  opacity: 1;
}

.stat-card-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 1rem;
  background: var(--stat-icon-bg);
  border-radius: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: var(--accent-color);
  transition: transform 0.35s ease, background 0.35s ease;
}

.stat-card:hover .stat-card-icon {
  transform: scale(1.08);
  background: rgba(2, 173, 143, 0.15);
}

.stat-card-number {
  font-family: 'Poppins', 'Alexandria', sans-serif;
  font-size: clamp(1.6rem, 3vw, 2rem);
  font-weight: 800;
  color: var(--stat-number) !important;
  margin-bottom: 0.35rem;
  line-height: 1.2;
}

.stat-card-label {
  margin: 0;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--stat-label) !important;
}

/* ===========================
   Categories Section (Home)
   =========================== */
.categories-section {
  --cat-bg: var(--card-surface, #f6fafd);
  --cat-border: var(--card-border, rgba(2, 173, 143, 0.14));
  --cat-title: #0f2a4a;
  --cat-meta: rgba(15, 42, 74, 0.55);
  --cat-section-bg: transparent;
  padding: 0;
}

html[data-theme="dark"] .categories-section {
  --cat-bg: #0b2346;
  --cat-border: rgba(6, 181, 156, 0.24);
  --cat-title: #f2f8fc;
  --cat-meta: rgba(199, 228, 245, 0.55);
}

.categories-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1.5rem;
  margin-bottom: 2rem;
  flex-wrap: wrap;
}

.categories-eyebrow {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--accent-color);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 0.5rem;
}

.categories-title {
  font-family: 'Alexandria', sans-serif;
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 800;
  color: var(--cat-title) !important;
  margin: 0 0 0.4rem;
}

.categories-subtitle {
  margin: 0;
  font-size: 0.92rem;
  color: var(--cat-meta) !important;
  max-width: 480px;
}

.categories-view-all {
  display: inline-flex;
  align-items: center;
  padding: 10px 22px;
  background: transparent;
  border: 2px solid var(--accent-color);
  color: var(--accent-color) !important;
  border-radius: 50px;
  font-weight: 700;
  font-size: 0.9rem;
  text-decoration: none;
  transition: all 0.3s ease;
  white-space: nowrap;
}

.categories-view-all:hover {
  background: var(--accent-color);
  color: #fff !important;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(2, 173, 143, 0.25);
}

.category-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  text-decoration: none;
  background: var(--cat-bg);
  border: 1px solid var(--cat-border);
  border-radius: 20px;
  padding: 1.75rem 1rem 1.5rem;
  height: 100%;
  position: relative;
  overflow: hidden;
  box-shadow: var(--card-shadow, 0 4px 20px rgba(15, 42, 74, 0.06), 0 1px 3px rgba(2, 173, 143, 0.06));
  transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease;
}

html[data-theme="dark"] .category-item {
  box-shadow: 0 8px 30px rgba(6, 20, 39, 0.25);
}

.category-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--cat-color, var(--accent-color));
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.35s ease;
}

.category-item:hover {
  transform: translateY(-8px);
  border-color: var(--cat-color, var(--accent-color));
  box-shadow: 0 16px 40px rgba(2, 173, 143, 0.12);
}

html[data-theme="dark"] .category-item:hover {
  box-shadow: 0 16px 40px rgba(6, 20, 39, 0.4);
}

.category-item:hover::before {
  transform: scaleX(1);
  transform-origin: left;
}

.category-item-icon {
  width: 68px;
  height: 68px;
  border-radius: 18px;
  background: color-mix(in srgb, var(--cat-color, var(--accent-color)) 12%, transparent);
  border: 1px solid color-mix(in srgb, var(--cat-color, var(--accent-color)) 25%, transparent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  color: var(--cat-color, var(--accent-color));
  margin-bottom: 1rem;
  transition: transform 0.35s ease, background 0.35s ease;
}

.category-item:hover .category-item-icon {
  transform: scale(1.1);
  background: color-mix(in srgb, var(--cat-color, var(--accent-color)) 18%, transparent);
}

.category-item-title {
  display: block;
  font-family: 'Alexandria', sans-serif;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--cat-title) !important;
  margin-bottom: 0.35rem;
  line-height: 1.4;
}

.category-item-meta {
  display: block;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--cat-meta) !important;
}

.category-item-arrow {
  position: absolute;
  bottom: 12px;
  left: 12px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: color-mix(in srgb, var(--cat-color, var(--accent-color)) 12%, transparent);
  color: var(--cat-color, var(--accent-color));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.65rem;
  opacity: 0;
  transform: translateX(8px);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.category-item:hover .category-item-arrow {
  opacity: 1;
  transform: translateX(0);
}

@media (max-width: 575px) {
  .category-item {
    padding: 1.25rem 0.75rem 1.1rem;
  }

  .category-item-icon {
    width: 56px;
    height: 56px;
    font-size: 1.3rem;
  }

  .category-item-title {
    font-size: 0.85rem;
  }
}

/* ===========================
   Features Section (Why Us)
   =========================== */
.features-section {
  --feature-bg: #ffffff;
  --feature-border: rgba(2, 173, 143, 0.1);
  --feature-title: #0f2a4a;
  --feature-desc: rgba(15, 42, 74, 0.62);
  --feature-section-bg: transparent;
  padding: 0;
}

html[data-theme="dark"] .features-section {
  --feature-bg: rgba(6, 20, 39, 0.82);
  --feature-border: rgba(2, 173, 143, 0.22);
  --feature-title: #eef7fc;
  --feature-desc: rgba(199, 228, 245, 0.62);
  --feature-section-bg: transparent;
}

.features-header {
  max-width: 640px;
  margin: 0 auto 2.75rem;
}

.features-eyebrow {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--accent-color);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 0.5rem;
}

.features-title {
  font-family: 'Alexandria', sans-serif;
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 800;
  color: var(--feature-title) !important;
  margin: 0 0 0.75rem;
}

.features-subtitle {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.7;
  color: var(--feature-desc) !important;
  max-width: 520px;
}

.feature-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  height: 100%;
  padding: 2rem 1.5rem 1.75rem;
  background: var(--feature-bg);
  border: 1px solid var(--feature-border);
  border-radius: 22px;
  overflow: hidden;
  box-shadow: 0 10px 36px rgba(2, 173, 143, 0.07);
  transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 0.4s ease,
    border-color 0.35s ease;
}

html[data-theme="dark"] .feature-card {
  box-shadow: 0 12px 40px rgba(6, 20, 39, 0.3);
}

.feature-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: color-mix(in srgb, var(--feature-color, var(--accent-color)) 6%, transparent);
  opacity: 0;
  transition: opacity 0.35s ease;
  pointer-events: none;
}

.feature-card:hover {
  transform: translateY(-10px);
  border-color: color-mix(in srgb, var(--feature-color, var(--accent-color)) 45%, transparent);
  box-shadow: 0 20px 48px rgba(2, 173, 143, 0.14);
}

html[data-theme="dark"] .feature-card:hover {
  box-shadow: 0 22px 50px rgba(6, 20, 39, 0.45);
}

.feature-card:hover::before {
  opacity: 1;
}

.feature-card-number {
  position: absolute;
  top: 14px;
  left: 16px;
  font-family: 'Alexandria', sans-serif;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: color-mix(in srgb, var(--feature-color, var(--accent-color)) 55%, transparent);
  opacity: 0.85;
}

.feature-card-icon {
  position: relative;
  z-index: 1;
  width: 72px;
  height: 72px;
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.65rem;
  color: var(--feature-color, var(--accent-color));
  background: color-mix(in srgb, var(--feature-color, var(--accent-color)) 12%, transparent);
  border: 1px solid color-mix(in srgb, var(--feature-color, var(--accent-color)) 28%, transparent);
  margin-bottom: 1.25rem;
  transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1),
    background 0.35s ease,
    box-shadow 0.35s ease;
}

.feature-card:hover .feature-card-icon {
  transform: scale(1.08) translateY(-4px);
  background: color-mix(in srgb, var(--feature-color, var(--accent-color)) 18%, transparent);
  box-shadow: 0 12px 28px color-mix(in srgb, var(--feature-color, var(--accent-color)) 25%, transparent);
}

.feature-card-title {
  position: relative;
  z-index: 1;
  font-family: 'Alexandria', sans-serif;
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--feature-title) !important;
  margin: 0 0 0.65rem;
  line-height: 1.45;
}

.feature-card-desc {
  position: relative;
  z-index: 1;
  margin: 0;
  font-size: 0.88rem;
  line-height: 1.75;
  color: var(--feature-desc) !important;
}

.feature-card-accent {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--feature-color, var(--accent-color));
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

.feature-card:hover .feature-card-accent {
  transform: scaleX(1);
  transform-origin: left;
}

@media (max-width: 767px) {
  .features-header {
    margin-bottom: 2rem;
  }

  .feature-card {
    padding: 1.65rem 1.25rem 1.5rem;
  }

  .feature-card-icon {
    width: 64px;
    height: 64px;
    font-size: 1.45rem;
  }
}

/* ===========================
   Courses Section & Cards
   =========================== */
.courses-section,
.courses-slider-section,
.courses-page-main,
.course-detail-main,
.categories-page-main {
  --course-card-bg: var(--card-surface, #f6fafd);
  --course-card-border: var(--card-border, rgba(2, 173, 143, 0.14));
  --course-card-shadow: var(--card-shadow, 0 4px 20px rgba(15, 42, 74, 0.06), 0 1px 3px rgba(2, 173, 143, 0.06));
  --course-card-title: #0f2a4a;
  --course-card-meta: rgba(15, 42, 74, 0.6);
  --course-thumb-bg: rgba(2, 173, 143, 0.06);
  padding: 0;
}

html[data-theme="dark"] .courses-section,
html[data-theme="dark"] .courses-slider-section,
html[data-theme="dark"] .courses-page-main,
html[data-theme="dark"] .course-detail-main,
html[data-theme="dark"] .categories-page-main {
  --course-card-bg: rgba(6, 20, 39, 0.82);
  --course-card-border: rgba(2, 173, 143, 0.22);
  --course-card-shadow: 0 12px 40px rgba(6, 20, 39, 0.35);
  --course-card-title: #eef7fc;
  --course-card-meta: rgba(199, 228, 245, 0.6);
  --course-thumb-bg: rgba(2, 173, 143, 0.15);
}

.courses-section {
  padding: 0;
}

.courses-slider-section {
  padding: 0;
}

.courses-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1.5rem;
  margin-bottom: 2rem;
  flex-wrap: wrap;
}

.courses-eyebrow {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--accent-color);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 0.5rem;
}

.courses-title {
  font-family: 'Alexandria', sans-serif;
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 800;
  color: var(--course-card-title) !important;
  margin: 0 0 0.4rem;
}

.courses-subtitle {
  margin: 0;
  font-size: 0.92rem;
  color: var(--course-card-meta) !important;
  max-width: 480px;
}

.courses-view-all {
  display: inline-flex;
  align-items: center;
  padding: 10px 22px;
  background: transparent;
  border: 2px solid var(--accent-color);
  color: var(--accent-color) !important;
  border-radius: 50px;
  font-weight: 700;
  font-size: 0.9rem;
  text-decoration: none;
  transition: all 0.3s ease;
  white-space: nowrap;
}

.courses-view-all:hover {
  background: var(--accent-color);
  color: #fff !important;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(2, 173, 143, 0.25);
}

/* Course Card */
.course-card {
  background: var(--course-card-bg);
  border: 1px solid var(--course-card-border);
  border-radius: 22px;
  overflow: hidden;
  height: 100%;
  display: flex;
  flex-direction: column;
  box-shadow: var(--course-card-shadow);
  transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1),
              box-shadow 0.4s ease,
              border-color 0.35s ease;
}

.course-card:hover {
  transform: translateY(-10px);
  border-color: var(--course-color, var(--accent-color));
  box-shadow: 0 20px 50px rgba(2, 173, 143, 0.14);
}

html[data-theme="dark"] .course-card:hover {
  box-shadow: 0 20px 50px rgba(6, 20, 39, 0.45);
}

/* Thumb */
.course-card-thumb {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  flex-shrink: 0;
  background: var(--course-thumb-bg);
  background-color: color-mix(in srgb, var(--course-color, var(--accent-color)) 10%, var(--course-card-bg));
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border-bottom: 1px solid var(--course-card-border);
}

.course-card-thumb::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, 0.15) 1px, transparent 1px);
  background-size: 20px 20px;
  opacity: 0.5;
  pointer-events: none;
}

html[data-theme="light"] .course-card-thumb::before {
  background-image: radial-gradient(rgba(2, 173, 143, 0.08) 1px, transparent 1px);
}

.course-card-badge {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 3;
  background: var(--course-color, var(--accent-color));
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 5px 12px;
  border-radius: 8px;
  box-shadow: 0 4px 14px rgba(6, 20, 39, 0.15);
}

.course-card-icon-wrap {
  width: 88px;
  height: 88px;
  border-radius: 22px;
  background: var(--course-card-bg);
  border: 1px solid var(--course-card-border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.2rem;
  color: var(--course-color, var(--accent-color));
  box-shadow: var(--course-card-shadow);
  transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1);
  position: relative;
  z-index: 2;
}

.course-card .course-card-thumb .course-card-image {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: block;
  width: 100%;
  height: 100%;
  max-width: none;
  min-width: 100%;
  min-height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}

.course-card:hover .course-card-image {
  transform: scale(1.03);
}

.course-card:hover .course-card-icon-wrap {
  transform: scale(1.12) rotate(-4deg);
}

.course-card-overlay {
  position: absolute;
  inset: 0;
  background: rgba(15, 42, 74, 0.55);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.35s ease;
  z-index: 4;
}

.course-card:hover .course-card-overlay {
  opacity: 1;
}

.course-card-preview-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  background: #fff;
  color: var(--course-color, var(--accent-color)) !important;
  border-radius: 50px;
  font-weight: 700;
  font-size: 0.85rem;
  text-decoration: none;
  transform: translateY(12px);
  transition: transform 0.35s ease, box-shadow 0.35s ease;
  box-shadow: 0 8px 24px rgba(6, 20, 39, 0.2);
}

.course-card:hover .course-card-preview-btn {
  transform: translateY(0);
}

.course-card-preview-btn:hover {
  box-shadow: 0 12px 32px rgba(6, 20, 39, 0.25);
  color: var(--course-color, var(--accent-color)) !important;
}

/* Body */
.course-card-body {
  padding: 1.25rem 1.25rem 1.35rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.course-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
}

.course-card-cat {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--course-color, var(--accent-color));
  background: color-mix(in srgb, var(--course-color, var(--accent-color)) 10%, transparent);
  border: 1px solid color-mix(in srgb, var(--course-color, var(--accent-color)) 22%, transparent);
  padding: 4px 10px;
  border-radius: 8px;
}

.course-card-rating {
  font-size: 0.8rem;
  font-weight: 700;
  color: #1a83c1;
  background: rgba(51, 164, 218, 0.12);
  padding: 4px 10px;
  border-radius: 8px;
  white-space: nowrap;
}

html[data-theme="dark"] .course-card-rating {
  color: #45bec4;
}

.course-card-rating i {
  font-size: 0.7rem;
}

.course-card-title {
  font-family: 'Alexandria', sans-serif;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.55;
  margin: 0 0 0.85rem;
  flex-grow: 1;
}

.course-card-title a {
  color: var(--course-card-title) !important;
  text-decoration: none;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  transition: color 0.25s ease;
}

.course-card-title a:hover {
  color: var(--course-color, var(--accent-color)) !important;
}

.course-card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
  font-size: 0.78rem;
  color: var(--course-card-meta) !important;
  margin-bottom: 1rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--course-card-border);
}

.course-card-meta span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.course-card-meta i {
  color: var(--course-color, var(--accent-color));
  font-size: 0.72rem;
}

.course-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-top: auto;
}

.course-card-prices {
  display: flex;
  align-items: baseline;
  gap: 8px;
}

.course-card-price {
  font-family: 'Poppins', sans-serif;
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--accent-color);
}

.course-card-old-price {
  font-family: 'Poppins', sans-serif;
  font-size: 0.85rem;
  color: var(--course-card-meta);
  text-decoration: line-through;
}

.course-card-cart {
  display: inline-flex;
  align-items: center;
  gap: 0;
  height: 42px;
  width: 42px;
  padding: 0;
  justify-content: center;
  overflow: hidden;
  background: var(--accent-color);
  color: #fff;
  border: none;
  border-radius: 12px;
  font-weight: 700;
  font-size: 0.82rem;
  cursor: pointer;
  transition: width 0.35s ease, gap 0.35s ease, padding 0.35s ease,
              background 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
  flex-shrink: 0;
}

.course-card-cart i {
  font-size: 0.95rem;
  flex-shrink: 0;
}

.course-card-cart span {
  max-width: 0;
  opacity: 0;
  overflow: hidden;
  white-space: nowrap;
  transition: max-width 0.35s ease, opacity 0.25s ease;
}

.course-card:hover .course-card-cart,
.course-card-cart:focus-visible {
  width: auto;
  padding: 0 16px;
  gap: 8px;
  box-shadow: 0 8px 20px rgba(2, 173, 143, 0.35);
}

.course-card:hover .course-card-cart span,
.course-card-cart:focus-visible span {
  max-width: 80px;
  opacity: 1;
}

.course-card-cart:hover {
  background: var(--accent-hover);
  transform: scale(1.04);
}

.course-card-cart:active {
  transform: scale(0.97);
}

@media (max-width: 767px) {
  .course-card-cart {
    width: auto;
    padding: 0 14px;
    gap: 6px;
  }

  .course-card-cart span {
    max-width: 80px;
    opacity: 1;
  }
}

/* Courses Slider Section */
.courses-slider-section .courses-header {
  margin-bottom: 1.75rem;
}

.courses-swiper-wrap {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
}

.courses-swiper {
  flex: 1;
  overflow: hidden;
  padding: 8px 4px 12px;
  min-width: 0;
}

.courses-swiper .swiper-slide {
  height: auto;
}

.course-card-slide {
  height: 100%;
}

.course-card-slide .course-card {
  height: 100%;
}

.courses-swiper-btn {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  border: 1px solid var(--course-card-border, rgba(2, 173, 143, 0.15));
  background: var(--course-card-bg, #fff);
  color: var(--accent-color);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.22, 1, 0.36, 1);
  box-shadow: var(--course-card-shadow, 0 8px 24px rgba(2, 173, 143, 0.08));
  flex-shrink: 0;
  z-index: 2;
}

html[data-theme="dark"] .courses-swiper-btn {
  background: rgba(6, 20, 39, 0.85);
  border-color: rgba(2, 173, 143, 0.3);
}

.courses-swiper-btn:hover {
  background: var(--accent-color);
  border-color: var(--accent-color);
  color: #fff;
  transform: translateY(-3px);
  box-shadow: 0 10px 28px rgba(2, 173, 143, 0.35);
}

.courses-swiper-btn:active {
  transform: scale(0.96);
}

.courses-swiper-btn.swiper-button-disabled {
  opacity: 0.35;
  pointer-events: none;
  transform: none;
}

.courses-swiper-pagination {
  position: static !important;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100% !important;
  margin-top: 1.25rem;
}

.courses-swiper-pagination .swiper-pagination-bullet {
  width: 10px;
  height: 10px;
  background: rgba(2, 173, 143, 0.25);
  opacity: 1;
  margin: 0 !important;
  border-radius: 50%;
  transition: all 0.35s ease;
}

html[data-theme="dark"] .courses-swiper-pagination .swiper-pagination-bullet {
  background: rgba(255, 255, 255, 0.25);
}

.courses-swiper-pagination .swiper-pagination-bullet-active {
  width: 32px;
  border-radius: 6px;
  background: var(--accent-color);
}

@media (max-width: 767px) {
  .courses-swiper-wrap {
    gap: 8px;
  }

  .courses-swiper-btn {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    font-size: 0.85rem;
  }
}

/* Legacy hero (kept for reference) */
.hero-section-legacy {
  min-height: 90vh;
  position: relative;
  overflow: hidden;
}

/* Category Cards */
.category-card {
  text-align: center;
  padding: 30px 20px;
  cursor: pointer;
  height: 100%;
}

.category-icon {
  font-size: 3rem;
  color: var(--accent-color);
  margin-bottom: 15px;
  transition: all 0.3s ease;
}

.category-card:hover .category-icon {
  transform: scale(1.2);
  text-shadow: 0 0 15px var(--accent-color);
}

/* Course Cards */
.course-img {
  height: 200px;
  background: linear-gradient(135deg, #018a72 0%, #06b59c 50%, #45bec4 100%);
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.course-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.glass-card:hover .course-img img {
  transform: scale(1.05);
}

.course-badge {
  position: absolute;
  top: 15px;
  right: 15px;
  background: linear-gradient(135deg, #018a72, #06b59c);
  color: #fff;
  padding: 4px 12px;
  border-radius: 4px;
  font-size: 0.8rem;
  z-index: 2;
  font-weight: 600;
  box-shadow: 0 2px 10px rgba(2, 173, 143, 0.4);
}

.old-price {
  text-decoration: line-through;
  opacity: 0.6;
  font-size: 0.9rem;
  font-family: 'Poppins', sans-serif;
}

.new-price {
  color: var(--accent-color);
  font-weight: 700;
  font-size: 1.25rem;
  font-family: 'Poppins', sans-serif;
}

/* Accordion Override for Glass */
.accordion-item {
  background-color: transparent;
  border: 1px solid var(--glass-border);
  margin-bottom: 1rem;
  border-radius: 5px !important;
  overflow: hidden;
}

.accordion-button {
  background-color: rgba(255, 255, 255, 0.6);
  color: #0f2a4a;
  box-shadow: none !important;
  font-weight: 600;
  padding: 1.25rem 1.5rem;
  font-family: 'Cairo', sans-serif;
}

.accordion-button:not(.collapsed) {
  background-color: rgba(2, 173, 143, 0.08);
  color: #02ad8f;
  box-shadow: none;
}

.accordion-button::after {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23059669'%3e%3cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e");
}

.accordion-button:not(.collapsed)::after {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23059669'%3e%3cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e");
}

.accordion-body {
  background-color: rgba(6, 20, 39, 0.2);
  color: var(--text-secondary);
}

/* Course Detail Tabs */
.course-tabs .nav-link {
  color: var(--text-secondary);
  border: none;
  font-weight: 600;
  padding: 1rem 1.5rem;
  border-bottom: 3px solid transparent;
  border-radius: 0;
  transition: all 0.3s ease;
}

.course-tabs .nav-link:hover {
  color: var(--text-primary);
}

.course-tabs .nav-link.active {
  color: #02ad8f !important;
  background: rgba(2, 173, 143, 0.06) !important;
  border-bottom-color: #02ad8f;
}

/* ===========================
   Course Detail Page
   =========================== */
.course-detail-page {
  background: #ffffff;
}

html[data-theme="dark"] .course-detail-page {
  background: #06172b;
}

.course-detail-hero {
  padding: 1.25rem 0 1rem;
  background: #eef7fc;
  border-bottom: 1px solid rgba(2, 173, 143, 0.12);
}

html[data-theme="dark"] .course-detail-hero {
  background: #0b2140;
  border-bottom-color: rgba(6, 181, 156, 0.15);
}

.course-detail-breadcrumb {
  margin: 0;
  padding: 0;
  background: transparent;
  font-size: 0.85rem;
}

.course-detail-breadcrumb .breadcrumb-item a {
  color: rgba(15, 42, 74, 0.65);
  text-decoration: none;
  transition: color 0.2s ease;
}

.course-detail-breadcrumb .breadcrumb-item a:hover {
  color: #02ad8f;
}

.course-detail-breadcrumb .breadcrumb-item.active {
  color: #0f2a4a;
  font-weight: 600;
}

html[data-theme="dark"] .course-detail-breadcrumb .breadcrumb-item a {
  color: rgba(199, 228, 245, 0.55);
}

html[data-theme="dark"] .course-detail-breadcrumb .breadcrumb-item a:hover {
  color: #45bec4;
}

html[data-theme="dark"] .course-detail-breadcrumb .breadcrumb-item.active {
  color: #f2f8fc;
}

.course-detail-main {
  padding-top: 1.5rem !important;
}

.course-detail-page .course-detail-intro .badge.bg-glass {
  background: rgba(2, 173, 143, 0.08);
  border: 1px solid rgba(2, 173, 143, 0.15);
}

.course-detail-page .course-detail-intro h1 {
  color: #0f2a4a !important;
}

.course-detail-page .course-detail-intro .course-detail-meta strong,
.course-detail-page .course-detail-intro .course-detail-meta .meta-value {
  color: #0f2a4a;
}

html[data-theme="dark"] .course-detail-page .course-detail-intro h1 {
  color: #eef7fc !important;
}

html[data-theme="dark"] .course-detail-page .course-detail-intro .course-detail-meta strong,
html[data-theme="dark"] .course-detail-page .course-detail-intro .course-detail-meta .meta-value {
  color: #f2f8fc;
}

/* Tabs card */
.course-detail-tabs-card {
  background: #fff;
  border: 1px solid rgba(2, 173, 143, 0.12);
  border-radius: 16px 16px 0 0;
  overflow: hidden;
  margin-bottom: 0;
  box-shadow: 0 4px 24px rgba(2, 173, 143, 0.06);
}

html[data-theme="dark"] .course-detail-tabs-card {
  background: #0b2140;
  border-color: rgba(6, 181, 156, 0.18);
  box-shadow: 0 8px 32px rgba(6, 20, 39, 0.25);
}

.course-detail-page .course-tabs .nav-link {
  padding: 1rem 1.35rem;
}

.course-detail-page #courseTabContent .tab-pane {
  background: #fff;
  border: 1px solid rgba(2, 173, 143, 0.12);
  border-top: none;
  border-radius: 0 0 16px 16px;
  padding: 1.75rem;
  margin-bottom: 2rem;
  box-shadow: 0 8px 32px rgba(2, 173, 143, 0.05);
}

.course-detail-page #courseTabContent h4,
.course-detail-page #courseTabContent .fw-bold.text-white {
  color: #0f2a4a !important;
}

html[data-theme="dark"] .course-detail-page #courseTabContent h4,
html[data-theme="dark"] .course-detail-page #courseTabContent .fw-bold.text-white {
  color: #f2f8fc !important;
}

html[data-theme="dark"] .course-detail-page #courseTabContent .tab-pane {
  background: #0b2140;
  border-color: rgba(6, 181, 156, 0.18);
  box-shadow: 0 8px 32px rgba(6, 20, 39, 0.2);
}

/* Purchase card */
.course-purchase-card {
  top: 96px;
  z-index: 10;
  background: #fff;
  border: 1px solid rgba(2, 173, 143, 0.14);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 16px 48px rgba(2, 173, 143, 0.1);
  transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.course-purchase-card:hover {
  box-shadow: 0 20px 56px rgba(2, 173, 143, 0.14);
}

html[data-theme="dark"] .course-purchase-card {
  background: #0b2140;
  border-color: rgba(6, 181, 156, 0.22);
  box-shadow: 0 16px 48px rgba(6, 20, 39, 0.35);
}

.course-purchase-preview {
  position: relative;
  height: 150px;
  min-height: 150px;
  max-height: 150px;
  overflow: hidden;
  background: #0f2a4a;
  display: flex;
  align-items: center;
  justify-content: center;
}

html[data-theme="dark"] .course-purchase-preview {
  background: #0b2346;
}

.course-purchase-preview-bg {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 4rem;
  color: rgba(255, 255, 255, 0.08);
}

.course-purchase-preview .course-purchase-preview-image {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  max-width: none;
  min-width: 100%;
  min-height: 100%;
  object-fit: cover;
  object-position: center;
}

.course-purchase-play {
  position: relative;
  z-index: 2;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  border: none;
  background: #02ad8f;
  color: #fff;
  font-size: 1.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-right: 4px;
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(2, 173, 143, 0.45);
  transition: transform 0.25s ease, background 0.25s ease;
}

.course-purchase-play:hover {
  transform: scale(1.08);
  background: #018a72;
}

.course-purchase-preview-label {
  position: absolute;
  bottom: 12px;
  right: 14px;
  z-index: 2;
  padding: 4px 12px;
  border-radius: 50px;
  background: rgba(6, 20, 39, 0.45);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
}

.course-purchase-body {
  padding: 1.35rem 1.5rem 1.5rem;
}

.course-purchase-pricing {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}

.course-purchase-prices {
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
}

.course-purchase-price {
  font-family: 'Poppins', sans-serif;
  font-size: 2rem;
  font-weight: 800;
  color: #02ad8f;
  line-height: 1;
}

.course-purchase-old {
  font-family: 'Poppins', sans-serif;
  font-size: 1rem;
  color: rgba(15, 42, 74, 0.45);
  text-decoration: line-through;
}

html[data-theme="dark"] .course-purchase-old {
  color: rgba(199, 228, 245, 0.4);
}

.course-purchase-discount {
  padding: 4px 10px;
  border-radius: 8px;
  background: #fee2e2;
  color: #1a83c1;
  font-size: 0.78rem;
  font-weight: 800;
  white-space: nowrap;
}

html[data-theme="dark"] .course-purchase-discount {
  background: rgba(220, 38, 38, 0.18);
  color: #fca5a5;
}

.course-purchase-urgency {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  margin: 0 0 1.15rem;
  color: #02ad8f;
  font-size: 0.82rem;
  font-weight: 700;
}

html[data-theme="dark"] .course-purchase-urgency {
  color: #45bec4;
}

.course-purchase-actions {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  margin-bottom: 1rem;
}

.course-purchase-btn-primary {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  width: 100%;
  padding: 0.9rem 1rem;
  border: none;
  border-radius: 12px;
  background: #02ad8f;
  color: #fff;
  font-weight: 800;
  font-size: 1rem;
  cursor: pointer;
  transition: background 0.25s ease, transform 0.2s ease;
}

.course-purchase-btn-primary:hover {
  background: #018a72;
  transform: translateY(-1px);
}

.course-purchase-btn-secondary {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 0.75rem 1rem;
  border: 2px solid #02ad8f;
  border-radius: 12px;
  background: transparent;
  color: #02ad8f;
  font-weight: 700;
  font-size: 0.95rem;
  text-decoration: none;
  transition: background 0.25s ease, color 0.25s ease;
}

.course-purchase-btn-secondary:hover {
  background: rgba(2, 173, 143, 0.08);
  color: #018a72;
}

html[data-theme="dark"] .course-purchase-btn-secondary {
  color: #45bec4;
  border-color: rgba(51, 164, 218, 0.5);
}

.course-purchase-guarantee {
  text-align: center;
  margin: 0 0 1.25rem;
  font-size: 0.8rem;
  color: rgba(15, 42, 74, 0.55);
}

html[data-theme="dark"] .course-purchase-guarantee {
  color: rgba(199, 228, 245, 0.5);
}

.course-purchase-includes-title {
  font-size: 0.92rem;
  font-weight: 800;
  color: #0f2a4a;
  margin: 0 0 0.85rem;
}

html[data-theme="dark"] .course-purchase-includes-title {
  color: #f2f8fc;
}

.course-purchase-includes {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.course-purchase-includes li {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-size: 0.82rem;
  color: rgba(15, 42, 74, 0.7);
}

.course-purchase-includes li i {
  width: 18px;
  text-align: center;
  color: #02ad8f;
  flex-shrink: 0;
}

html[data-theme="dark"] .course-purchase-includes li {
  color: rgba(199, 228, 245, 0.65);
}

.course-purchase-share {
  margin-top: 1.25rem;
  padding-top: 1.15rem;
  border-top: 1px solid rgba(2, 173, 143, 0.1);
  text-align: center;
}

.course-purchase-share a {
  color: rgba(15, 42, 74, 0.6);
  font-size: 0.82rem;
  font-weight: 700;
  text-decoration: none;
  transition: color 0.2s ease;
}

.course-purchase-share a:hover {
  color: #02ad8f;
}

html[data-theme="dark"] .course-purchase-share {
  border-top-color: rgba(6, 181, 156, 0.15);
}

html[data-theme="dark"] .course-purchase-share a {
  color: rgba(199, 228, 245, 0.55);
}

/* Curriculum accordion */
.course-detail-page .course-curriculum .curriculum-module {
  background: transparent;
  border: 1px solid rgba(2, 173, 143, 0.12);
  border-radius: 14px !important;
  margin-bottom: 0.75rem;
  overflow: hidden;
}

html[data-theme="dark"] .course-detail-page .course-curriculum .curriculum-module {
  border-color: rgba(6, 181, 156, 0.18);
}

.course-detail-page .course-curriculum .accordion-button {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  background: #f7fbfe;
  color: #0f2a4a;
  padding: 1.1rem 1.25rem;
  font-weight: 700;
  font-size: 0.92rem;
}

html[data-theme="dark"] .course-detail-page .course-curriculum .accordion-button {
  background: rgba(15, 42, 74, 0.5);
  color: #f2f8fc;
}

.course-detail-page .course-curriculum .accordion-button:not(.collapsed) {
  background: rgba(2, 173, 143, 0.08);
  color: #02ad8f;
}

html[data-theme="dark"] .course-detail-page .course-curriculum .accordion-button:not(.collapsed) {
  background: rgba(2, 173, 143, 0.15);
  color: #45bec4;
}

.curriculum-module-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 32px;
  height: 32px;
  border-radius: 8px;
  background: rgba(2, 173, 143, 0.1);
  color: #02ad8f;
  font-family: 'Poppins', sans-serif;
  font-size: 0.78rem;
  font-weight: 800;
  flex-shrink: 0;
}

.curriculum-module-title {
  flex: 1;
  text-align: right;
}

.curriculum-module-meta {
  font-size: 0.78rem;
  color: rgba(15, 42, 74, 0.5);
  flex-shrink: 0;
}

html[data-theme="dark"] .curriculum-module-meta {
  color: rgba(199, 228, 245, 0.45);
}

.course-detail-page .course-curriculum .accordion-body {
  background: #fff;
  padding: 0;
}

html[data-theme="dark"] .course-detail-page .course-curriculum .accordion-body {
  background: rgba(8, 25, 47, 0.5);
}

.curriculum-lessons {
  list-style: none;
  margin: 0;
  padding: 0;
}

.curriculum-lesson {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.85rem 1.25rem;
  border-top: 1px solid rgba(2, 173, 143, 0.08);
  transition: background 0.2s ease;
  cursor: pointer;
}

.curriculum-lesson:hover {
  background: rgba(2, 173, 143, 0.04);
}

html[data-theme="dark"] .curriculum-lesson {
  border-top-color: rgba(6, 181, 156, 0.1);
}

html[data-theme="dark"] .curriculum-lesson:hover {
  background: rgba(2, 173, 143, 0.08);
}

.curriculum-lesson.is-locked {
  opacity: 0.55;
  cursor: default;
}

.curriculum-lesson-icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 0.72rem;
}

.curriculum-lesson-icon.is-video {
  background: rgba(2, 173, 143, 0.1);
  color: #02ad8f;
}

.curriculum-lesson-icon.is-file {
  background: rgba(51, 164, 218, 0.12);
  color: #1a83c1;
}

.curriculum-lesson-icon.is-locked {
  background: rgba(90, 112, 137, 0.12);
  color: #5a7089;
}

.curriculum-lesson-title {
  flex: 1;
  font-size: 0.88rem;
  color: rgba(15, 42, 74, 0.85);
}

html[data-theme="dark"] .curriculum-lesson-title {
  color: rgba(226, 243, 247, 0.85);
}

.curriculum-lesson-duration {
  font-size: 0.78rem;
  color: rgba(15, 42, 74, 0.45);
  flex-shrink: 0;
}

html[data-theme="dark"] .curriculum-lesson-duration {
  color: rgba(199, 228, 245, 0.4);
}

.curriculum-resource {
  padding: 0;
}

.curriculum-resource-link {
  padding: 0.85rem 1.25rem;
  color: inherit;
  width: 100%;
}

.curriculum-resource-link:hover .curriculum-lesson-title {
  color: #02ad8f;
}

html[data-theme="dark"] .curriculum-resource-link:hover .curriculum-lesson-title {
  color: #45bec4;
}

/* Course resources pages */
.course-resources-page,
.course-resource-detail-page {
  background: #fff;
}

html[data-theme="dark"] .course-resources-page,
html[data-theme="dark"] .course-resource-detail-page {
  background: var(--body-bg, #0b2140);
}

.course-resources-hero {
  padding: 2rem 0 2.5rem;
  background: linear-gradient(180deg, rgba(2, 173, 143, 0.06) 0%, transparent 100%);
  border-bottom: 1px solid rgba(2, 173, 143, 0.1);
}

html[data-theme="dark"] .course-resources-hero {
  background: linear-gradient(180deg, rgba(2, 173, 143, 0.12) 0%, transparent 100%);
  border-bottom-color: rgba(6, 181, 156, 0.12);
}

.course-resources-hero__body {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 1.25rem 1.5rem;
  align-items: center;
  margin-top: 1rem;
}

@media (max-width: 991.98px) {
  .course-resources-hero__body {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .course-resources-hero__actions {
    justify-content: center;
  }
}

.course-resources-hero__visual {
  width: 72px;
  height: 72px;
  border-radius: 18px;
  background: linear-gradient(135deg, var(--course-color, #02ad8f), color-mix(in srgb, var(--course-color, #02ad8f) 70%, #fff));
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.75rem;
  box-shadow: 0 8px 24px rgba(2, 173, 143, 0.2);
}

.course-resources-hero__title {
  font-size: clamp(1.35rem, 2.5vw, 2rem);
  font-weight: 800;
  color: rgba(15, 42, 74, 0.95);
  margin-bottom: 0.5rem;
}

html[data-theme="dark"] .course-resources-hero__title {
  color: rgba(226, 243, 247, 0.95);
}

.course-resources-hero__subtitle,
.course-resources-hero__count {
  color: rgba(15, 42, 74, 0.6);
  font-size: 0.95rem;
}

html[data-theme="dark"] .course-resources-hero__subtitle,
html[data-theme="dark"] .course-resources-hero__count {
  color: rgba(199, 228, 245, 0.55);
}

.course-resources-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.course-resources-main,
.course-resource-detail-main {
  min-height: 50vh;
}

.course-resources-section-title {
  font-size: 1.35rem;
  font-weight: 700;
  color: rgba(15, 42, 74, 0.9);
  margin-bottom: 0.35rem;
}

html[data-theme="dark"] .course-resources-section-title {
  color: rgba(226, 243, 247, 0.9);
}

.course-resources-eyebrow {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 600;
  color: #02ad8f;
  margin-bottom: 0.5rem;
}

.course-resource-card {
  position: relative;
  background: var(--card-surface, #f6fafd);
  border: 1px solid var(--card-border, rgba(2, 173, 143, 0.12));
  border-radius: 16px;
  padding: 1.5rem;
  box-shadow: var(--card-shadow, 0 4px 20px rgba(2, 173, 143, 0.06));
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
  color: inherit;
  display: flex;
  flex-direction: column;
}

.course-resource-card:hover {
  transform: translateY(-3px);
  border-color: rgba(2, 173, 143, 0.25);
  box-shadow: 0 8px 28px rgba(2, 173, 143, 0.1);
}

.course-resource-card__icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: rgba(2, 173, 143, 0.1);
  color: #02ad8f;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  margin-bottom: 1rem;
}

.course-resource-card__title {
  font-size: 1rem;
  font-weight: 700;
  color: rgba(15, 42, 74, 0.9);
  margin-bottom: 0.35rem;
}

.course-resource-card__title a {
  color: inherit;
}

html[data-theme="dark"] .course-resource-card__title {
  color: rgba(226, 243, 247, 0.9);
}

.course-resource-card__meta,
.course-resource-card__excerpt {
  font-size: 0.85rem;
}

.course-resource-card__footer {
  margin-top: auto;
  padding-top: 1rem;
}

.course-resource-card__cta {
  font-size: 0.85rem;
  font-weight: 600;
  color: #02ad8f;
  text-decoration: none;
}

.course-resource-card__cta:hover {
  color: #018a72;
}

.course-resource-detail {
  background: var(--card-surface, #f6fafd);
  border: 1px solid var(--card-border, rgba(2, 173, 143, 0.12));
  border-radius: 20px;
  padding: 2rem;
  box-shadow: var(--card-shadow, 0 4px 20px rgba(2, 173, 143, 0.06));
}

html[data-theme="dark"] .course-resource-detail {
  background: rgba(15, 42, 74, 0.6);
  border-color: rgba(6, 181, 156, 0.15);
}

.course-resource-detail__section + .course-resource-detail__section {
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(2, 173, 143, 0.1);
}

.course-resource-detail__heading {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: rgba(15, 42, 74, 0.9);
}

html[data-theme="dark"] .course-resource-detail__heading {
  color: rgba(226, 243, 247, 0.9);
}

.course-resource-preview-frame {
  width: 100%;
  min-height: 480px;
  border: 1px solid rgba(2, 173, 143, 0.15);
  border-radius: 12px;
  background: #fff;
}

.course-resource-preview-image {
  max-height: 480px;
  object-fit: contain;
}

.course-resource-sidebar__card {
  background: var(--card-surface, #f6fafd);
  border: 1px solid var(--card-border, rgba(2, 173, 143, 0.12));
  border-radius: 16px;
  padding: 1.25rem;
  margin-bottom: 1rem;
}

html[data-theme="dark"] .course-resource-sidebar__card {
  background: rgba(15, 42, 74, 0.6);
  border-color: rgba(6, 181, 156, 0.15);
}

.course-resource-sidebar__title {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.course-resource-sidebar__list li {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.55rem 0;
  border-bottom: 1px solid rgba(2, 173, 143, 0.08);
  font-size: 0.88rem;
}

.course-resource-sidebar__list li:last-child {
  border-bottom: 0;
}

.course-resource-sidebar__list .label {
  color: rgba(15, 42, 74, 0.5);
  flex-shrink: 0;
}

.course-resource-sidebar__list .value {
  text-align: left;
  font-weight: 600;
}

html[data-theme="dark"] .course-resource-sidebar__list .label {
  color: rgba(199, 228, 245, 0.45);
}

.course-global-resources-banner {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  padding: 1.25rem 1.5rem;
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(2, 173, 143, 0.08), rgba(6, 181, 156, 0.04));
  border: 1px solid rgba(2, 173, 143, 0.18);
}

.course-global-resources-banner__icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: rgba(2, 173, 143, 0.15);
  color: #02ad8f;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  flex-shrink: 0;
}

.course-global-resources-banner__content {
  flex: 1;
  min-width: 200px;
}

.course-global-resources-banner__title {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
  color: rgba(15, 42, 74, 0.9);
}

html[data-theme="dark"] .course-global-resources-banner__title {
  color: rgba(226, 243, 247, 0.9);
}

.course-global-resources-banner__text {
  font-size: 0.88rem;
  color: rgba(15, 42, 74, 0.6);
}

html[data-theme="dark"] .course-global-resources-banner__text {
  color: rgba(199, 228, 245, 0.55);
}

.course-tab-external {
  color: #02ad8f !important;
}

.course-tab-external:hover {
  color: #018a72 !important;
}

.course-purchase-resources-link {
  color: #02ad8f;
  text-decoration: none;
  font-weight: 600;
}

.course-purchase-resources-link:hover {
  color: #018a72;
  text-decoration: underline;
}

.course-purchase-resources {
  margin: 1.25rem 0;
  padding: 1.15rem;
  border-radius: 14px;
  background: rgba(2, 173, 143, 0.06);
  border: 1px solid rgba(2, 173, 143, 0.18);
}

html[data-theme="dark"] .course-purchase-resources {
  background: rgba(2, 173, 143, 0.1);
  border-color: rgba(6, 181, 156, 0.2);
}

.course-purchase-resources__title {
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 0.35rem;
  color: rgba(15, 42, 74, 0.9);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

html[data-theme="dark"] .course-purchase-resources__title {
  color: rgba(226, 243, 247, 0.9);
}

.course-purchase-resources__title i {
  color: #02ad8f;
}

.course-purchase-resources__subtitle {
  font-size: 0.8rem;
  color: rgba(15, 42, 74, 0.55);
  margin-bottom: 0.85rem;
}

html[data-theme="dark"] .course-purchase-resources__subtitle {
  color: rgba(199, 228, 245, 0.5);
}

.course-purchase-resources__list li + li {
  margin-top: 0.35rem;
}

.course-purchase-resources__link {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.45rem 0.5rem;
  border-radius: 8px;
  text-decoration: none;
  color: rgba(15, 42, 74, 0.85);
  font-size: 0.85rem;
  font-weight: 600;
  transition: background 0.2s ease, color 0.2s ease;
}

.course-purchase-resources__link:hover {
  background: rgba(2, 173, 143, 0.1);
  color: #02ad8f;
}

html[data-theme="dark"] .course-purchase-resources__link {
  color: rgba(226, 243, 247, 0.85);
}

html[data-theme="dark"] .course-purchase-resources__link:hover {
  color: #45bec4;
}

.course-purchase-resources__link i {
  width: 1.25rem;
  text-align: center;
  color: #02ad8f;
  flex-shrink: 0;
}

.course-purchase-resources__btn {
  font-size: 0.88rem;
  padding: 0.55rem 1rem;
}

.course-resource-sidebar-sticky {
  top: 6rem;
}

.course-resource-sidebar__course-name {
  font-size: 0.9rem;
  font-weight: 600;
  color: rgba(15, 42, 74, 0.85);
}

html[data-theme="dark"] .course-resource-sidebar__course-name {
  color: rgba(226, 243, 247, 0.85);
}

.course-resource-sidebar__nav-item + .course-resource-sidebar__nav-item {
  margin-top: 0.25rem;
}

.course-resource-sidebar__nav-link {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.6rem 0.75rem;
  border-radius: 10px;
  text-decoration: none;
  color: rgba(15, 42, 74, 0.8);
  font-size: 0.88rem;
  font-weight: 600;
  transition: background 0.2s ease, color 0.2s ease;
}

.course-resource-sidebar__nav-link:hover {
  background: rgba(2, 173, 143, 0.08);
  color: #02ad8f;
}

.course-resource-sidebar__nav-link.is-active {
  background: rgba(2, 173, 143, 0.12);
  color: #02ad8f;
}

html[data-theme="dark"] .course-resource-sidebar__nav-link {
  color: rgba(226, 243, 247, 0.8);
}

html[data-theme="dark"] .course-resource-sidebar__nav-link:hover,
html[data-theme="dark"] .course-resource-sidebar__nav-link.is-active {
  color: #45bec4;
  background: rgba(69, 190, 196, 0.1);
}

.course-resource-sidebar__nav-link i {
  width: 1.1rem;
  text-align: center;
  flex-shrink: 0;
}

.curriculum-locked-body {
  text-align: center;
  padding: 2rem 1.5rem !important;
  color: rgba(15, 42, 74, 0.55);
}

.curriculum-locked-body i {
  display: block;
  font-size: 1.75rem;
  margin-bottom: 0.75rem;
  opacity: 0.45;
}

html[data-theme="dark"] .curriculum-locked-body {
  color: rgba(199, 228, 245, 0.5);
}

/* Related courses section */
.course-detail-related {
  margin-top: 3rem;
  padding-top: 2.5rem;
  border-top: 1px solid rgba(2, 173, 143, 0.12);
}

html[data-theme="dark"] .course-detail-related {
  border-top-color: rgba(6, 181, 156, 0.15);
}

.course-detail-related-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.75rem;
  flex-wrap: wrap;
}

.course-detail-related-eyebrow {
  display: block;
  font-size: 0.78rem;
  font-weight: 700;
  color: #02ad8f;
  margin-bottom: 0.35rem;
}

.course-detail-related-title {
  font-family: 'Alexandria', sans-serif;
  font-size: clamp(1.25rem, 3vw, 1.6rem);
  font-weight: 800;
  color: #0f2a4a;
  margin: 0;
}

html[data-theme="dark"] .course-detail-related-title {
  color: #f2f8fc;
}

.course-detail-related-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: #02ad8f;
  font-weight: 700;
  font-size: 0.88rem;
  text-decoration: none;
  transition: gap 0.25s ease;
}

.course-detail-related-link:hover {
  gap: 0.65rem;
  color: #018a72;
}

/* Rating bars — solid fill (no gradient) */
.course-detail-page .rating-fill {
  background: #33a4da;
}

@media (max-width: 991px) {
  .course-purchase-card {
    position: static !important;
    margin-bottom: 2rem;
  }
}

/* Rating Bar */
.rating-bar {
  height: 8px;
  background-color: var(--glass-border);
  border-radius: 4px;
  overflow: hidden;
  flex-grow: 1;
  margin: 0 15px;
}

.rating-fill {
  height: 100%;
  background: linear-gradient(90deg, #33a4da, #45bec4);
  border-radius: 4px;
}

/* Override p color for light bg */
body p {
  color: var(--text-secondary);
}

/* .text-white only maps to dark text in light mode */
:root .text-white {
  color: #0f2a4a !important;
}

/* In dark mode - restore white-ish text */
html[data-theme="dark"] .text-white {
  color: #f2f8fc !important;
}

/* These should always be white regardless of mode */
.card-front,
.card-back,
.card-front *,
.card-back *,
.btn-accent,
.course-img {
  color: #ffffff !important;
}

/* ===========================
   Credit Card Preview
   =========================== */
.credit-card-preview {
  perspective: 1000px;
  width: 100%;
  max-width: 380px;
  height: 220px;
  margin: 0 auto;
}

.card-inner {
  position: relative;
  width: 100%;
  height: 100%;
  transform-style: preserve-3d;
  transition: transform 0.7s cubic-bezier(0.25, 0.8, 0.25, 1);
  border-radius: 5px;
}

.credit-card-preview.flipped .card-inner {
  transform: rotateY(180deg);
}

.card-front,
.card-back {
  position: absolute;
  width: 100%;
  height: 100%;
  border-radius: 5px;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  padding: 28px 30px;
  box-shadow: 0 20px 60px rgba(6, 20, 39, 0.5);
  overflow: hidden;
}

.card-front {
  background: linear-gradient(135deg, #018a72 0%, #06b59c 55%, #45bec4 100%);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.card-back {
  background: linear-gradient(135deg, #123b6e 0%, #02ad8f 100%);
  transform: rotateY(180deg);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 0;
}

.card-stripe {
  background: #0b2346;
  height: 48px;
  margin-bottom: 20px;
}

.card-cvv-strip {
  background: rgba(255, 255, 255, 0.1);
  margin: 0 20px;
  padding: 10px 15px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
}

.cvv-display {
  background: white;
  color: #0f2a4a;
  padding: 4px 12px;
  border-radius: 4px;
  letter-spacing: 4px;
  font-size: 1rem;
}

.card-number-display {
  font-size: 1.3rem;
  letter-spacing: 3px;
  color: rgba(255, 255, 255, 0.9);
  font-weight: 600;
}

.card-holder-display,
.card-exp-display {
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.9rem;
  letter-spacing: 1px;
  font-weight: 600;
  text-transform: uppercase;
}

/* Category card cursor pointer (legacy glass cards) */
.glass-card.category-card-interactive {
  cursor: pointer;
}

.glass-card.category-card-interactive:hover {
  background: var(--glass-hover-bg);
  border-color: var(--accent-color);
  transform: translateY(-6px);
}

.glass-card.category-card-interactive:hover .category-icon {
  transform: scale(1.2);
  filter: drop-shadow(0 0 8px currentColor);
}

/* ===========================
   Page Hero Banner
   =========================== */
html[data-theme="dark"] {
  --page-bg: #08192f;
}

.page-hero {
  background: linear-gradient(135deg, #0b2346 0%, #02ad8f 45%, #018a72 80%, #123b6e 100%);
  position: relative;
  padding: 70px 0 0;
  overflow: hidden;
  text-align: center;
}

/* Dot grid overlay */
.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, 0.12) 1px, transparent 1px);
  background-size: 28px 28px;
  pointer-events: none;
}

/* Glow blob top-left */
.page-hero::after {
  content: '';
  position: absolute;
  width: 300px;
  height: 300px;
  top: -80px;
  left: -80px;
  background: rgba(255, 255, 255, 0.07);
  border-radius: 50%;
  filter: blur(60px);
  pointer-events: none;
}

.page-hero-content {
  position: relative;
  z-index: 2;
  padding-bottom: 30px;
}

.page-hero-icon {
  width: 72px;
  height: 72px;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  color: #fff;
  margin-bottom: 1rem;
  box-shadow: 0 8px 24px rgba(6, 20, 39, 0.2);
  transition: transform 0.3s ease;
}

.page-hero-icon:hover {
  transform: scale(1.08) rotate(5deg);
}

.page-hero-title {
  font-family: 'Alexandria', 'Cairo', sans-serif !important;
  font-size: clamp(1.6rem, 4vw, 2.4rem);
  font-weight: 800;
  color: #ffffff !important;
  margin-bottom: 0.6rem;
  text-shadow: 0 2px 12px rgba(6, 20, 39, 0.2);
}

.page-hero-subtitle {
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.95rem;
  max-width: 520px;
  margin: 0 auto 1.2rem;
  line-height: 1.7;
}

.page-hero-breadcrumb {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.65);
  padding-bottom: 2rem;
}

.page-hero-breadcrumb a {
  color: rgba(255, 255, 255, 0.9);
  text-decoration: none;
  font-weight: 600;
  transition: color 0.2s;
}

.page-hero-breadcrumb a:hover {
  color: #fff;
}

.page-hero-breadcrumb .sep {
  opacity: 0.4;
  font-size: 0.7rem;
}

.page-hero-breadcrumb .current {
  color: rgba(255, 255, 255, 0.55);
}

/* Wave at bottom */
.page-hero-wave {
  position: relative;
  z-index: 2;
  line-height: 0;
  margin-bottom: -1px;
}

.page-hero-wave svg {
  display: block;
  width: 100%;
  height: 65px;
}

/* ===========================
   Page Hero — Dark Mode
   =========================== */
html[data-theme="dark"] .page-hero {
  background: linear-gradient(135deg,
      #061427 0%,
      #061427 30%,
      #0b2140 60%,
      #0b2346 90%,
      #08192f 100%);
}

/* Keep the wave fill in sync with dark bg */
html[data-theme="dark"] .page-hero-wave path {
  fill: #08192f !important;
}

/* ===========================
   Checkout Page
   =========================== */
.checkout-page {
  background: #ffffff;
}

html[data-theme="dark"] .checkout-page {
  background: #06172b;
}

.checkout-page-hero {
  padding: 2.5rem 0 2.25rem;
  text-align: center;
  background: #018a72;
  border-bottom: 2px solid rgba(255, 255, 255, 0.15);
}

html[data-theme="dark"] .checkout-page-hero {
  background: #0b2346;
  border-bottom-color: rgba(6, 181, 156, 0.2);
}

.checkout-page-hero-inner {
  position: relative;
  z-index: 1;
}

.checkout-page-hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 6px 16px;
  border-radius: 50px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.22);
  color: #fff;
  font-size: 0.78rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.checkout-page-hero-title {
  font-family: 'Alexandria', sans-serif;
  font-size: clamp(1.65rem, 4vw, 2.4rem);
  font-weight: 800;
  color: #fff !important;
  margin: 0 0 0.65rem;
}

.checkout-page-hero-desc {
  max-width: 520px;
  margin: 0 auto 1.25rem;
  color: rgba(255, 255, 255, 0.88);
  font-size: 0.95rem;
  line-height: 1.75;
}

.checkout-page-breadcrumb {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.45rem;
  font-size: 0.82rem;
}

.checkout-page-breadcrumb a {
  color: rgba(255, 255, 255, 0.9);
  text-decoration: none;
  font-weight: 600;
  transition: color 0.2s ease;
}

.checkout-page-breadcrumb a:hover {
  color: #fff;
}

.checkout-page-breadcrumb i {
  font-size: 0.65rem;
  opacity: 0.45;
  color: #fff;
}

.checkout-page-breadcrumb .current {
  color: rgba(255, 255, 255, 0.55);
}

.checkout-main {
  padding: 1.75rem 0 3rem;
}

/* Steps */
.checkout-steps {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin-bottom: 2rem;
  flex-wrap: wrap;
}

.checkout-step {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.checkout-step-num {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: 'Poppins', sans-serif;
  font-size: 0.82rem;
  font-weight: 800;
  background: #fff;
  border: 2px solid rgba(2, 173, 143, 0.2);
  color: rgba(15, 42, 74, 0.45);
}

.checkout-step-label {
  font-size: 0.85rem;
  font-weight: 700;
  color: rgba(15, 42, 74, 0.45);
}

.checkout-step.is-done .checkout-step-num {
  background: #02ad8f;
  border-color: #02ad8f;
  color: #fff;
}

.checkout-step.is-done .checkout-step-label {
  color: #02ad8f;
}

.checkout-step.is-active .checkout-step-num {
  background: #02ad8f;
  border-color: #02ad8f;
  color: #fff;
}

.checkout-step.is-active .checkout-step-label {
  color: #02ad8f;
}

.checkout-step-line {
  width: 40px;
  height: 2px;
  background: rgba(2, 173, 143, 0.15);
  border-radius: 2px;
}

html[data-theme="dark"] .checkout-step-num {
  background: #0b2140;
  border-color: rgba(6, 181, 156, 0.25);
  color: rgba(199, 228, 245, 0.4);
}

html[data-theme="dark"] .checkout-step-label {
  color: rgba(199, 228, 245, 0.4);
}

html[data-theme="dark"] .checkout-step-line {
  background: rgba(6, 181, 156, 0.2);
}

/* Cards */
.checkout-card,
.checkout-summary-card {
  background: #fff;
  border: 1px solid rgba(2, 173, 143, 0.12);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 8px 32px rgba(2, 173, 143, 0.06);
  margin-bottom: 1.25rem;
}

html[data-theme="dark"] .checkout-card,
html[data-theme="dark"] .checkout-summary-card {
  background: #0b2140;
  border-color: rgba(6, 181, 156, 0.18);
  box-shadow: 0 12px 40px rgba(6, 20, 39, 0.28);
}

.checkout-summary-card {
  position: sticky;
  top: 96px;
  z-index: 5;
}

.checkout-card-head {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1.15rem 1.35rem;
  border-bottom: 1px solid rgba(2, 173, 143, 0.1);
  background: rgba(2, 173, 143, 0.04);
}

html[data-theme="dark"] .checkout-card-head {
  background: rgba(2, 173, 143, 0.08);
  border-bottom-color: rgba(6, 181, 156, 0.12);
}

.checkout-card-icon {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(2, 173, 143, 0.12);
  color: #02ad8f;
  font-size: 1rem;
  flex-shrink: 0;
}

.checkout-card-title {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 800;
  color: #0f2a4a;
}

html[data-theme="dark"] .checkout-card-title {
  color: #f2f8fc;
}

.checkout-card-body {
  padding: 1.35rem;
}

/* Form inputs */
.checkout-label {
  display: block;
  margin-bottom: 0.4rem;
  font-size: 0.82rem;
  font-weight: 700;
  color: rgba(15, 42, 74, 0.7);
}

html[data-theme="dark"] .checkout-label {
  color: rgba(199, 228, 245, 0.65);
}

.checkout-input {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1.5px solid rgba(2, 173, 143, 0.18);
  border-radius: 12px;
  background: #f7fbfe;
  color: #0f2a4a;
  font-size: 0.92rem;
  font-family: inherit;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.checkout-input::placeholder {
  color: rgba(15, 42, 74, 0.35);
}

.checkout-input:focus {
  outline: none;
  border-color: #02ad8f;
  background: #fff;
  box-shadow: 0 0 0 3px rgba(2, 173, 143, 0.12);
}

html[data-theme="dark"] .checkout-input {
  background: rgba(8, 25, 47, 0.6);
  border-color: rgba(6, 181, 156, 0.22);
  color: #f2f8fc;
}

html[data-theme="dark"] .checkout-input::placeholder {
  color: rgba(199, 228, 245, 0.35);
}

html[data-theme="dark"] .checkout-input:focus {
  background: #0b2140;
  border-color: #06b59c;
  box-shadow: 0 0 0 3px rgba(6, 181, 156, 0.15);
}

/* Order items */
.checkout-order-items {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  margin-bottom: 1.25rem;
  max-height: 320px;
  overflow-y: auto;
  padding-left: 2px;
}

.checkout-order-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem;
  border-radius: 12px;
  border: 1px solid rgba(2, 173, 143, 0.1);
  background: rgba(2, 173, 143, 0.03);
  transition: border-color 0.2s ease, background 0.2s ease;
}

.checkout-order-item:hover {
  border-color: rgba(2, 173, 143, 0.22);
  background: rgba(2, 173, 143, 0.06);
}

html[data-theme="dark"] .checkout-order-item {
  background: rgba(15, 42, 74, 0.35);
  border-color: rgba(6, 181, 156, 0.12);
}

.checkout-order-item-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(2, 173, 143, 0.1);
  color: #02ad8f;
  flex-shrink: 0;
}

.checkout-order-item-info {
  flex: 1;
  min-width: 0;
}

.checkout-order-item-info strong {
  display: block;
  font-size: 0.85rem;
  font-weight: 700;
  color: #0f2a4a;
  line-height: 1.4;
  margin-bottom: 0.15rem;
}

.checkout-order-item-info small {
  display: block;
  font-size: 0.75rem;
  color: rgba(15, 42, 74, 0.5);
}

html[data-theme="dark"] .checkout-order-item-info strong {
  color: #f2f8fc;
}

html[data-theme="dark"] .checkout-order-item-info small {
  color: rgba(199, 228, 245, 0.45);
}

.checkout-order-item-price {
  font-family: 'Poppins', sans-serif;
  font-weight: 800;
  color: #02ad8f;
  flex-shrink: 0;
}

.checkout-empty {
  text-align: center;
  padding: 1.5rem 1rem;
  color: rgba(15, 42, 74, 0.55);
}

.checkout-empty i {
  font-size: 2rem;
  opacity: 0.35;
  margin-bottom: 0.75rem;
  display: block;
}

.checkout-empty a {
  color: #02ad8f;
  font-weight: 700;
  text-decoration: none;
}

html[data-theme="dark"] .checkout-empty {
  color: rgba(199, 228, 245, 0.5);
}

/* Summary totals */
.checkout-summary-totals {
  padding-top: 1rem;
  border-top: 1px solid rgba(2, 173, 143, 0.1);
}

html[data-theme="dark"] .checkout-summary-totals {
  border-top-color: rgba(6, 181, 156, 0.12);
}

.checkout-summary-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.55rem;
  font-size: 0.88rem;
  color: rgba(15, 42, 74, 0.65);
}

.checkout-summary-row.is-discount {
  color: #02ad8f;
  font-weight: 700;
}

.checkout-summary-row.is-total {
  margin-top: 0.75rem;
  padding-top: 0.85rem;
  border-top: 1px dashed rgba(2, 173, 143, 0.15);
  font-size: 1rem;
  color: #0f2a4a;
}

.checkout-summary-row.is-total strong {
  font-family: 'Poppins', sans-serif;
  font-size: 1.5rem;
  font-weight: 800;
  color: #02ad8f;
}

html[data-theme="dark"] .checkout-summary-row {
  color: rgba(199, 228, 245, 0.55);
}

html[data-theme="dark"] .checkout-summary-row.is-total {
  color: #f2f8fc;
  border-top-color: rgba(6, 181, 156, 0.15);
}

.checkout-trust-list {
  list-style: none;
  margin: 1.15rem 0 0;
  padding: 0.85rem 0 0;
  border-top: 1px solid rgba(2, 173, 143, 0.1);
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}

.checkout-trust-list li {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.75rem;
  font-weight: 700;
  color: rgba(15, 42, 74, 0.55);
  padding: 4px 10px;
  border-radius: 50px;
  background: rgba(2, 173, 143, 0.06);
}

.checkout-trust-list li i {
  color: #02ad8f;
  font-size: 0.7rem;
}

html[data-theme="dark"] .checkout-trust-list {
  border-top-color: rgba(6, 181, 156, 0.12);
}

html[data-theme="dark"] .checkout-trust-list li {
  color: rgba(199, 228, 245, 0.5);
  background: rgba(2, 173, 143, 0.1);
}

/* Payment badges */
.checkout-payment-badges {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-top: 1.25rem;
  padding-top: 1.15rem;
  border-top: 1px solid rgba(2, 173, 143, 0.1);
}

.checkout-payment-label {
  font-size: 0.82rem;
  font-weight: 700;
  color: rgba(15, 42, 74, 0.5);
}

.checkout-payment-badges i {
  font-size: 1.75rem;
  color: rgba(15, 42, 74, 0.35);
  transition: color 0.2s ease;
}

.checkout-payment-badges i:hover {
  color: #02ad8f;
}

html[data-theme="dark"] .checkout-payment-label {
  color: rgba(199, 228, 245, 0.45);
}

html[data-theme="dark"] .checkout-payment-badges {
  border-top-color: rgba(6, 181, 156, 0.12);
}

html[data-theme="dark"] .checkout-payment-badges i {
  color: rgba(199, 228, 245, 0.35);
}

/* Submit */
.checkout-submit-wrap {
  margin-top: 0.5rem;
}

.checkout-submit-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  width: 100%;
  padding: 1rem 1.25rem;
  border: none;
  border-radius: 14px;
  background: #02ad8f;
  color: #fff;
  font-weight: 800;
  font-size: 1.05rem;
  cursor: pointer;
  transition: background 0.25s ease, transform 0.2s ease, box-shadow 0.25s ease;
  box-shadow: 0 8px 24px rgba(2, 173, 143, 0.3);
}

.checkout-submit-btn:hover:not(:disabled) {
  background: #018a72;
  transform: translateY(-1px);
  box-shadow: 0 12px 32px rgba(2, 173, 143, 0.35);
}

.checkout-submit-btn:disabled {
  opacity: 0.75;
  cursor: wait;
}

.checkout-submit-note {
  text-align: center;
  margin: 0.85rem 0 0;
  font-size: 0.8rem;
  color: rgba(15, 42, 74, 0.5);
}

.checkout-submit-note i {
  color: #02ad8f;
  margin-left: 0.25rem;
}

html[data-theme="dark"] .checkout-submit-note {
  color: rgba(199, 228, 245, 0.45);
}

/* Success state */
.checkout-success {
  padding: 2rem 1.5rem;
  text-align: center;
  border-top: 1px solid rgba(2, 173, 143, 0.1);
}

.checkout-success-icon {
  font-size: 3rem;
  color: #02ad8f;
  margin-bottom: 1rem;
}

.checkout-success h3 {
  font-size: 1.15rem;
  font-weight: 800;
  color: #0f2a4a;
  margin-bottom: 0.5rem;
}

.checkout-success p {
  font-size: 0.88rem;
  color: rgba(15, 42, 74, 0.55);
  margin-bottom: 1.25rem;
}

.checkout-success-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.65rem 1.35rem;
  border-radius: 50px;
  background: #02ad8f;
  color: #fff;
  font-weight: 700;
  font-size: 0.88rem;
  text-decoration: none;
  transition: background 0.2s ease;
}

.checkout-success-btn:hover {
  background: #018a72;
  color: #fff;
}

html[data-theme="dark"] .checkout-success {
  border-top-color: rgba(6, 181, 156, 0.12);
}

html[data-theme="dark"] .checkout-success h3 {
  color: #f2f8fc;
}

html[data-theme="dark"] .checkout-success p {
  color: rgba(199, 228, 245, 0.5);
}

/* Credit card — solid colors on checkout */
.checkout-page .card-front {
  background: #02ad8f;
  border-radius: 14px;
}

.checkout-page .card-back {
  background: #1a83c1;
  border-radius: 14px;
}

.checkout-page .card-inner {
  border-radius: 14px;
}

.checkout-page .card-label-sm {
  font-size: 0.65rem;
  letter-spacing: 1px;
  color: rgba(255, 255, 255, 0.55);
  margin-bottom: 0.25rem;
}

@media (max-width: 991px) {
  .checkout-summary-card {
    position: static;
  }

  .checkout-steps {
    gap: 0.35rem;
  }

  .checkout-step-label {
    display: none;
  }

  .checkout-step-line {
    width: 24px;
  }
}

@media (max-width: 575px) {
  .checkout-page-hero {
    padding: 2rem 0 1.75rem;
  }

  .checkout-card-body {
    padding: 1.1rem;
  }

  .checkout-order-items {
    max-height: none;
  }

  .checkout-payment-badges i {
    font-size: 1.5rem;
  }
}

/* ===========================
   Categories Page
   =========================== */
.categories-page {
  background: #ffffff;
}

html[data-theme="dark"] .categories-page {
  background: #06172b;
}

.categories-page-hero {
  padding: 2.5rem 0 2.25rem;
  text-align: center;
  background: #018a72;
  border-bottom: 2px solid rgba(255, 255, 255, 0.15);
}

html[data-theme="dark"] .categories-page-hero {
  background: #0b2346;
  border-bottom-color: rgba(6, 181, 156, 0.2);
}

.categories-page-hero-inner {
  position: relative;
  z-index: 1;
}

.categories-page-hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 6px 16px;
  border-radius: 50px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.22);
  color: #fff;
  font-size: 0.78rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.categories-page-hero-title {
  font-family: 'Alexandria', sans-serif;
  font-size: clamp(1.65rem, 4vw, 2.4rem);
  font-weight: 800;
  color: #fff !important;
  margin: 0 0 0.65rem;
}

.categories-page-hero-desc {
  max-width: 560px;
  margin: 0 auto 1.25rem;
  color: rgba(255, 255, 255, 0.88);
  font-size: 0.95rem;
  line-height: 1.75;
}

.categories-page-hero-stats {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
}

.categories-hero-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.15rem;
  min-width: 100px;
  padding: 0.75rem 1.15rem;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.18);
}

.categories-hero-stat strong {
  font-family: 'Poppins', sans-serif;
  font-size: 1.2rem;
  font-weight: 800;
  color: #fff;
}

.categories-hero-stat span {
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.75);
}

.categories-page-breadcrumb {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.45rem;
  font-size: 0.82rem;
}

.categories-page-breadcrumb a {
  color: rgba(255, 255, 255, 0.9);
  text-decoration: none;
  font-weight: 600;
}

.categories-page-breadcrumb a:hover {
  color: #fff;
}

.categories-page-breadcrumb i {
  font-size: 0.65rem;
  opacity: 0.45;
  color: #fff;
}

.categories-page-breadcrumb span {
  color: rgba(255, 255, 255, 0.55);
}

.categories-page-main {
  padding: 2rem 0 3.5rem;
}

.categories-page-intro {
  margin-bottom: 2rem;
}

.categories-page-intro-eyebrow {
  display: block;
  font-size: 0.78rem;
  font-weight: 700;
  color: #02ad8f;
  margin-bottom: 0.35rem;
}

.categories-page-intro-title {
  font-family: 'Alexandria', sans-serif;
  font-size: clamp(1.25rem, 3vw, 1.65rem);
  font-weight: 800;
  color: #0f2a4a;
  margin: 0 0 0.5rem;
}

.categories-page-intro-desc {
  margin: 0;
  font-size: 0.92rem;
  color: rgba(15, 42, 74, 0.6);
  max-width: 520px;
}

html[data-theme="dark"] .categories-page-intro-title {
  color: #f2f8fc;
}

html[data-theme="dark"] .categories-page-intro-desc {
  color: rgba(199, 228, 245, 0.55);
}

/* Category cards */
.category-page-card {
  --cat-bg: var(--card-surface, #f6fafd);
  --cat-border: var(--card-border, rgba(2, 173, 143, 0.14));
  --cat-title: #0f2a4a;
  --cat-meta: rgba(15, 42, 74, 0.55);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  width: 100%;
  height: 100%;
  padding: 2rem 1.5rem 1.5rem;
  border: 1px solid var(--cat-border);
  border-radius: 20px;
  background: var(--cat-bg);
  box-shadow: var(--card-shadow, 0 4px 20px rgba(15, 42, 74, 0.06), 0 1px 3px rgba(2, 173, 143, 0.06));
  position: relative;
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease;
}

html[data-theme="dark"] .category-page-card {
  --cat-bg: rgba(6, 20, 39, 0.82);
  --cat-border: rgba(6, 181, 156, 0.18);
  --cat-title: #eef7fc;
  --cat-meta: rgba(199, 228, 245, 0.55);
  box-shadow: 0 10px 36px rgba(6, 20, 39, 0.28);
}

.category-page-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--cat-color, #02ad8f);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.35s ease;
}

.category-page-card:hover,
.category-page-card.is-active {
  transform: translateY(-8px);
  border-color: var(--cat-color, #02ad8f);
  box-shadow: 0 16px 44px rgba(2, 173, 143, 0.12);
}

html[data-theme="dark"] .category-page-card:hover,
html[data-theme="dark"] .category-page-card.is-active {
  box-shadow: 0 16px 44px rgba(6, 20, 39, 0.4);
}

.category-page-card:hover::before,
.category-page-card.is-active::before {
  transform: scaleX(1);
  transform-origin: left;
}

.category-page-card.is-active {
  outline: 2px solid color-mix(in srgb, var(--cat-color, #02ad8f) 35%, transparent);
  outline-offset: 2px;
}

.category-page-card-icon {
  width: 72px;
  height: 72px;
  border-radius: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.75rem;
  color: var(--cat-color, #02ad8f);
  background: color-mix(in srgb, var(--cat-color, #02ad8f) 12%, transparent);
  border: 1px solid color-mix(in srgb, var(--cat-color, #02ad8f) 22%, transparent);
  margin-bottom: 1.15rem;
  transition: transform 0.35s ease, background 0.35s ease;
}

.category-page-card:hover .category-page-card-icon,
.category-page-card.is-active .category-page-card-icon {
  transform: scale(1.08);
  background: color-mix(in srgb, var(--cat-color, #02ad8f) 18%, transparent);
}

.category-page-card-title {
  font-family: 'Alexandria', sans-serif;
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--cat-title) !important;
  margin: 0 0 0.65rem;
  line-height: 1.45;
}

.category-page-card-desc {
  font-size: 0.85rem;
  line-height: 1.7;
  color: var(--cat-meta) !important;
  margin: 0 0 1rem;
  flex-grow: 1;
}

.category-page-card-meta {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 4px 12px;
  border-radius: 50px;
  background: rgba(2, 173, 143, 0.06);
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--cat-color, #02ad8f);
  margin-bottom: 1rem;
}

html[data-theme="dark"] .category-page-card-meta {
  background: rgba(2, 173, 143, 0.12);
}

.category-page-card-action {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--cat-color, #02ad8f);
  transition: gap 0.25s ease;
}

.category-page-card:hover .category-page-card-action {
  gap: 0.65rem;
}

/* Dynamic courses section */
.categories-courses-section {
  margin-top: 3.5rem;
  padding-top: 2.5rem;
  border-top: 1px solid rgba(2, 173, 143, 0.12);
}

html[data-theme="dark"] .categories-courses-section {
  border-top-color: rgba(6, 181, 156, 0.15);
}

.categories-courses-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1.25rem;
  margin-bottom: 1.75rem;
  flex-wrap: wrap;
}

.categories-courses-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.78rem;
  font-weight: 700;
  color: #02ad8f;
  margin-bottom: 0.35rem;
}

.categories-courses-title {
  font-family: 'Alexandria', sans-serif;
  font-size: clamp(1.2rem, 3vw, 1.55rem);
  font-weight: 800;
  color: #0f2a4a;
  margin: 0;
}

.categories-courses-title span {
  color: #02ad8f;
}

html[data-theme="dark"] .categories-courses-title {
  color: #f2f8fc;
}

.categories-level-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.categories-level-chip {
  padding: 0.45rem 1rem;
  border-radius: 50px;
  border: 1.5px solid rgba(2, 173, 143, 0.18);
  background: #fff;
  color: rgba(15, 42, 74, 0.7);
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.25s ease;
}

.categories-level-chip:hover {
  border-color: #02ad8f;
  color: #02ad8f;
}

.categories-level-chip.active {
  background: #02ad8f;
  border-color: #02ad8f;
  color: #fff;
}

html[data-theme="dark"] .categories-level-chip {
  background: rgba(8, 25, 47, 0.6);
  border-color: rgba(6, 181, 156, 0.22);
  color: rgba(199, 228, 245, 0.65);
}

html[data-theme="dark"] .categories-level-chip.active {
  background: #02ad8f;
  color: #fff;
}

.categories-courses-footer {
  text-align: center;
  margin-top: 2.5rem;
}

.categories-courses-link {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.75rem 1.5rem;
  border: 2px solid #02ad8f;
  border-radius: 50px;
  color: #02ad8f;
  font-weight: 700;
  font-size: 0.9rem;
  text-decoration: none;
  transition: all 0.25s ease;
}

.categories-courses-link:hover {
  background: #02ad8f;
  color: #fff;
  gap: 0.65rem;
}

html[data-theme="dark"] .categories-courses-link {
  color: #45bec4;
  border-color: rgba(51, 164, 218, 0.5);
}

html[data-theme="dark"] .categories-courses-link:hover {
  background: #02ad8f;
  color: #fff;
}

.categories-empty {
  text-align: center;
  padding: 3rem 1.5rem;
  border-radius: 18px;
  border: 1px dashed rgba(2, 173, 143, 0.2);
  background: rgba(2, 173, 143, 0.03);
}

.categories-empty i {
  font-size: 2.5rem;
  color: rgba(2, 173, 143, 0.25);
  margin-bottom: 1rem;
}

.categories-empty h5 {
  font-weight: 800;
  color: #0f2a4a;
  margin-bottom: 0.5rem;
}

.categories-empty p {
  margin: 0;
  color: rgba(15, 42, 74, 0.55);
  font-size: 0.9rem;
}

html[data-theme="dark"] .categories-empty {
  background: rgba(15, 42, 74, 0.25);
  border-color: rgba(6, 181, 156, 0.18);
}

html[data-theme="dark"] .categories-empty h5 {
  color: #f2f8fc;
}

html[data-theme="dark"] .categories-empty p {
  color: rgba(199, 228, 245, 0.5);
}

@media (max-width: 767px) {
  .categories-page-hero {
    padding: 2rem 0 1.75rem;
  }

  .categories-page-hero-stats {
    gap: 0.5rem;
  }

  .categories-hero-stat {
    min-width: 88px;
    padding: 0.6rem 0.85rem;
  }

  .category-page-card {
    padding: 1.5rem 1.15rem 1.25rem;
  }

  .categories-courses-header {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* ===========================
   Blog Page
   =========================== */
.blog-page {
  background: #ffffff;
}

html[data-theme="dark"] .blog-page {
  background: #06172b;
}

.blog-page-hero {
  padding: 2.5rem 0 2.25rem;
  text-align: center;
  background: #018a72;
  border-bottom: 2px solid rgba(255, 255, 255, 0.15);
}

html[data-theme="dark"] .blog-page-hero {
  background: #0b2346;
  border-bottom-color: rgba(6, 181, 156, 0.2);
}

.blog-page-hero-inner {
  position: relative;
  z-index: 1;
}

.blog-page-hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 6px 16px;
  border-radius: 50px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.22);
  color: #fff;
  font-size: 0.78rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.blog-page-hero-title {
  font-family: 'Alexandria', sans-serif;
  font-size: clamp(1.65rem, 4vw, 2.4rem);
  font-weight: 800;
  color: #fff !important;
  margin: 0 0 0.65rem;
}

.blog-page-hero-desc {
  max-width: 560px;
  margin: 0 auto 1.25rem;
  color: rgba(255, 255, 255, 0.88);
  font-size: 0.95rem;
  line-height: 1.75;
}

.blog-page-hero-stats {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
}

.blog-hero-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.15rem;
  min-width: 100px;
  padding: 0.75rem 1.15rem;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.18);
}

.blog-hero-stat strong {
  font-family: 'Poppins', sans-serif;
  font-size: 1.2rem;
  font-weight: 800;
  color: #fff;
}

.blog-hero-stat span {
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.75);
}

.blog-page-breadcrumb {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.45rem;
  font-size: 0.82rem;
}

.blog-page-breadcrumb a {
  color: rgba(255, 255, 255, 0.9);
  text-decoration: none;
  font-weight: 600;
}

.blog-page-breadcrumb a:hover {
  color: #fff;
}

.blog-page-breadcrumb i {
  font-size: 0.65rem;
  opacity: 0.45;
  color: #fff;
}

.blog-page-breadcrumb span {
  color: rgba(255, 255, 255, 0.55);
}

.blog-page-main {
  --blog-card-bg: #ffffff;
  --blog-card-border: rgba(2, 173, 143, 0.12);
  --blog-card-shadow: 0 10px 36px rgba(2, 173, 143, 0.07);
  --blog-card-title: #0f2a4a;
  --blog-card-meta: rgba(15, 42, 74, 0.55);
  --blog-card-excerpt: rgba(15, 42, 74, 0.65);
  padding: 2rem 0 3.5rem;
}

html[data-theme="dark"] .blog-page-main {
  --blog-card-bg: rgba(6, 20, 39, 0.82);
  --blog-card-border: rgba(2, 173, 143, 0.22);
  --blog-card-shadow: 0 12px 40px rgba(6, 20, 39, 0.35);
  --blog-card-title: #eef7fc;
  --blog-card-meta: rgba(199, 228, 245, 0.55);
  --blog-card-excerpt: rgba(199, 228, 245, 0.65);
}

.blog-featured {
  margin-bottom: 2rem;
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid var(--blog-card-border);
  background: var(--blog-card-bg);
  box-shadow: var(--blog-card-shadow);
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.blog-featured:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 48px rgba(2, 173, 143, 0.14);
}

html[data-theme="dark"] .blog-featured:hover {
  box-shadow: 0 20px 52px rgba(6, 20, 39, 0.42);
}

.blog-featured-link {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  align-items: stretch;
  text-decoration: none;
  color: inherit;
}

.blog-featured-image {
  position: relative;
  min-height: 280px;
  overflow: hidden;
  background: rgba(2, 173, 143, 0.06);
}

.blog-featured-image img {
  width: 100%;
  height: 100%;
  min-height: 280px;
  object-fit: cover;
  display: block;
  transition: transform 0.45s ease;
}

.blog-featured:hover .blog-featured-image img {
  transform: scale(1.04);
}

.blog-featured-body {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.85rem;
  padding: 2rem 2.25rem;
}

.blog-featured-badge {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  background: rgba(2, 173, 143, 0.12);
  color: #02ad8f;
  font-size: 0.78rem;
  font-weight: 700;
}

html[data-theme="dark"] .blog-featured-badge {
  background: rgba(6, 181, 156, 0.18);
  color: #8fd9e0;
}

.blog-featured-body h2 {
  margin: 0;
  font-size: clamp(1.35rem, 2.2vw, 1.85rem);
  line-height: 1.45;
  font-weight: 800;
  color: var(--blog-card-title);
}

.blog-featured-body p {
  margin: 0;
  font-size: 0.98rem;
  line-height: 1.75;
  color: var(--blog-card-excerpt);
}

.blog-featured-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  margin-top: 0.35rem;
  font-size: 0.92rem;
  font-weight: 700;
  color: #02ad8f;
}

html[data-theme="dark"] .blog-featured-cta {
  color: #8fd9e0;
}

.blog-featured-cta i {
  transition: transform 0.25s ease;
}

.blog-featured:hover .blog-featured-cta i {
  transform: translateX(-4px);
}

.blog-results-count {
  margin-bottom: 1.25rem;
  font-size: 0.92rem;
  color: var(--blog-card-meta);
}

@media (max-width: 991.98px) {
  .blog-featured-link {
    grid-template-columns: 1fr;
  }

  .blog-featured-image,
  .blog-featured-image img {
    min-height: 220px;
  }

  .blog-featured-body {
    padding: 1.5rem 1.35rem 1.75rem;
  }
}

.blog-page-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.15rem 1.25rem;
  margin-bottom: 1.25rem;
  background: #fff;
  border: 1px solid rgba(2, 173, 143, 0.12);
  border-radius: 18px;
  box-shadow: 0 8px 32px rgba(2, 173, 143, 0.06);
}

html[data-theme="dark"] .blog-page-toolbar {
  background: #0b2140;
  border-color: rgba(6, 181, 156, 0.18);
  box-shadow: 0 10px 36px rgba(6, 20, 39, 0.28);
}

.blog-page-search {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  flex: 1;
  min-width: 220px;
  max-width: 420px;
  padding: 0.65rem 1rem;
  border: 1.5px solid rgba(2, 173, 143, 0.18);
  border-radius: 12px;
  background: #f7fbfe;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.blog-page-search:focus-within {
  border-color: #02ad8f;
  box-shadow: 0 0 0 3px rgba(2, 173, 143, 0.12);
}

.blog-page-search i {
  color: rgba(15, 42, 74, 0.4);
  flex-shrink: 0;
}

.blog-page-search input {
  flex: 1;
  border: none;
  background: transparent;
  outline: none;
  font-size: 0.92rem;
  color: #0f2a4a;
  font-family: inherit;
}

.blog-page-search input::placeholder {
  color: rgba(15, 42, 74, 0.4);
}

html[data-theme="dark"] .blog-page-search {
  background: rgba(8, 25, 47, 0.6);
  border-color: rgba(6, 181, 156, 0.22);
}

html[data-theme="dark"] .blog-page-search i {
  color: rgba(199, 228, 245, 0.4);
}

html[data-theme="dark"] .blog-page-search input {
  color: #f2f8fc;
}

html[data-theme="dark"] .blog-page-search input::placeholder {
  color: rgba(199, 228, 245, 0.35);
}

.blog-page-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.blog-filter-chip {
  padding: 0.45rem 1rem;
  border-radius: 50px;
  border: 1.5px solid rgba(2, 173, 143, 0.18);
  background: #fff;
  color: rgba(15, 42, 74, 0.7);
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.25s ease;
}

.blog-filter-chip:hover {
  border-color: #02ad8f;
  color: #02ad8f;
}

.blog-filter-chip.active {
  background: #02ad8f;
  border-color: #02ad8f;
  color: #fff;
}

html[data-theme="dark"] .blog-filter-chip {
  background: rgba(8, 25, 47, 0.6);
  border-color: rgba(6, 181, 156, 0.22);
  color: rgba(199, 228, 245, 0.65);
}

html[data-theme="dark"] .blog-filter-chip.active {
  background: #02ad8f;
  color: #fff;
}

.blog-results-count {
  font-size: 0.85rem;
  font-weight: 600;
  color: rgba(15, 42, 74, 0.55);
  margin-bottom: 1.25rem;
}

html[data-theme="dark"] .blog-results-count {
  color: rgba(199, 228, 245, 0.5);
}

.blog-page-main .blog-post-item {
  display: flex;
}

.blog-page-main .blog-card {
  width: 100%;
}

.blog-empty-state {
  text-align: center;
  padding: 3.5rem 1.5rem;
  border-radius: 18px;
  border: 1px dashed rgba(2, 173, 143, 0.2);
  background: rgba(2, 173, 143, 0.03);
  margin-bottom: 2rem;
}

.blog-empty-state i {
  font-size: 2.5rem;
  color: rgba(2, 173, 143, 0.25);
  margin-bottom: 1rem;
}

.blog-empty-state h5 {
  font-weight: 800;
  color: #0f2a4a;
  margin-bottom: 0.5rem;
}

.blog-empty-state p {
  margin: 0;
  color: rgba(15, 42, 74, 0.55);
}

html[data-theme="dark"] .blog-empty-state {
  background: rgba(15, 42, 74, 0.25);
  border-color: rgba(6, 181, 156, 0.18);
}

html[data-theme="dark"] .blog-empty-state h5 {
  color: #f2f8fc;
}

html[data-theme="dark"] .blog-empty-state p {
  color: rgba(199, 228, 245, 0.5);
}

.blog-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 2.5rem;
  flex-wrap: wrap;
}

.blog-page-btn {
  min-width: 42px;
  height: 42px;
  padding: 0 0.85rem;
  border-radius: 12px;
  border: 1.5px solid rgba(2, 173, 143, 0.18);
  background: #fff;
  color: rgba(15, 42, 74, 0.7);
  font-family: 'Poppins', sans-serif;
  font-size: 0.88rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.25s ease;
}

.blog-page-btn:hover:not(.is-disabled):not(.is-active) {
  border-color: #02ad8f;
  color: #02ad8f;
}

.blog-page-btn.is-active {
  background: #02ad8f;
  border-color: #02ad8f;
  color: #fff;
}

.blog-page-btn.is-disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

html[data-theme="dark"] .blog-page-btn {
  background: rgba(8, 25, 47, 0.6);
  border-color: rgba(6, 181, 156, 0.22);
  color: rgba(199, 228, 245, 0.65);
}

html[data-theme="dark"] .blog-page-btn.is-active {
  background: #02ad8f;
  color: #fff;
}

@media (max-width: 767px) {
  .blog-page-hero {
    padding: 2rem 0 1.75rem;
  }

  .blog-page-toolbar {
    flex-direction: column;
    align-items: stretch;
  }

  .blog-page-search {
    max-width: none;
  }

  .blog-page-filters {
    overflow-x: auto;
    flex-wrap: nowrap;
    padding-bottom: 0.25rem;
    -webkit-overflow-scrolling: touch;
  }
}

/* ===========================
   Blog Detail Page
   =========================== */
.blog-detail-page {
  background: #ffffff;
}

html[data-theme="dark"] .blog-detail-page {
  background: #06172b;
}

.blog-detail-hero {
  padding: 2.25rem 0 2rem;
  text-align: center;
  background: #018a72;
  border-bottom: 2px solid rgba(255, 255, 255, 0.15);
}

html[data-theme="dark"] .blog-detail-hero {
  background: #0b2346;
  border-bottom-color: rgba(6, 181, 156, 0.2);
}

.blog-detail-hero-inner {
  max-width: 820px;
  margin: 0 auto;
}

.blog-detail-category {
  display: inline-block;
  padding: 5px 14px;
  border-radius: 50px;
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: #fff;
  font-size: 0.78rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.blog-detail-hero-title {
  font-family: 'Alexandria', sans-serif;
  font-size: clamp(1.35rem, 3.5vw, 2rem);
  font-weight: 800;
  color: #fff !important;
  line-height: 1.45;
  margin: 0 0 1rem;
}

.blog-detail-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.85rem 1.25rem;
  margin-bottom: 1.15rem;
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.82);
}

.blog-detail-meta i {
  margin-left: 0.3rem;
  opacity: 0.85;
}

.blog-detail-breadcrumb {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.45rem;
  font-size: 0.82rem;
}

.blog-detail-breadcrumb a {
  color: rgba(255, 255, 255, 0.9);
  text-decoration: none;
  font-weight: 600;
}

.blog-detail-breadcrumb a:hover {
  color: #fff;
}

.blog-detail-breadcrumb i {
  font-size: 0.65rem;
  opacity: 0.45;
  color: #fff;
}

.blog-detail-breadcrumb span {
  color: rgba(255, 255, 255, 0.55);
}

.blog-detail-main {
  padding: 2rem 0 3.5rem;
}

.blog-detail-article {
  background: #fff;
  border: 1px solid rgba(2, 173, 143, 0.12);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 10px 40px rgba(2, 173, 143, 0.07);
  margin-bottom: 1.25rem;
}

html[data-theme="dark"] .blog-detail-article {
  background: #0b2140;
  border-color: rgba(6, 181, 156, 0.18);
  box-shadow: 0 12px 40px rgba(6, 20, 39, 0.28);
}

.blog-detail-featured {
  aspect-ratio: 16/9;
  overflow: hidden;
}

.blog-detail-featured-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.blog-detail-page .blog-post-content {
  padding: 1.75rem 1.75rem 0;
  color: rgba(15, 42, 74, 0.85);
  line-height: 1.85;
  font-size: 1rem;
}

.blog-detail-page .blog-post-content h2 {
  font-family: 'Alexandria', sans-serif;
  font-size: 1.2rem;
  font-weight: 800;
  color: #0f2a4a;
  margin: 2rem 0 0.85rem;
}

.blog-detail-page .blog-post-content p {
  margin-bottom: 1rem;
}

.blog-detail-lead {
  font-size: 1.08rem;
  font-weight: 600;
  color: #0f2a4a !important;
  line-height: 1.75;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid rgba(2, 173, 143, 0.1);
  margin-bottom: 1.25rem !important;
}

html[data-theme="dark"] .blog-detail-page .blog-post-content {
  color: rgba(226, 243, 247, 0.85);
}

html[data-theme="dark"] .blog-detail-page .blog-post-content h2,
html[data-theme="dark"] .blog-detail-lead {
  color: #f2f8fc !important;
}

.blog-detail-quote {
  position: relative;
  margin: 2rem 0;
  padding: 1.35rem 1.5rem 1.35rem 1.25rem;
  border-right: 4px solid #02ad8f;
  border-radius: 0 14px 14px 0;
  background: rgba(2, 173, 143, 0.06);
}

.blog-detail-quote i {
  position: absolute;
  top: 1rem;
  left: 1rem;
  font-size: 1.25rem;
  color: rgba(2, 173, 143, 0.25);
}

.blog-detail-quote p {
  margin: 0 !important;
  font-size: 1.02rem;
  font-weight: 600;
  font-style: italic;
  color: #0f2a4a;
  line-height: 1.75;
}

html[data-theme="dark"] .blog-detail-quote {
  background: rgba(2, 173, 143, 0.12);
}

html[data-theme="dark"] .blog-detail-quote p {
  color: #f2f8fc;
}

.blog-detail-article-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.25rem 1.75rem 1.75rem;
  margin-top: 1.5rem;
  border-top: 1px solid rgba(2, 173, 143, 0.1);
}

html[data-theme="dark"] .blog-detail-article-footer {
  border-top-color: rgba(6, 181, 156, 0.12);
}

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

.blog-detail-tag {
  padding: 5px 12px;
  border-radius: 50px;
  background: rgba(2, 173, 143, 0.08);
  border: 1px solid rgba(2, 173, 143, 0.15);
  color: #02ad8f;
  font-size: 0.78rem;
  font-weight: 700;
}

html[data-theme="dark"] .blog-detail-tag {
  background: rgba(2, 173, 143, 0.15);
  color: #45bec4;
}

.blog-detail-share {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.82rem;
  font-weight: 600;
  color: rgba(15, 42, 74, 0.55);
}

html[data-theme="dark"] .blog-detail-share {
  color: rgba(199, 228, 245, 0.5);
}

.blog-detail-share-btn {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(2, 173, 143, 0.08);
  border: 1px solid rgba(2, 173, 143, 0.15);
  color: #02ad8f;
  text-decoration: none;
  transition: all 0.25s ease;
}

.blog-detail-share-btn:hover {
  background: #02ad8f;
  color: #fff;
}

.blog-detail-author {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1.35rem;
  margin-bottom: 1.25rem;
  background: #fff;
  border: 1px solid rgba(2, 173, 143, 0.12);
  border-radius: 18px;
  box-shadow: 0 8px 32px rgba(2, 173, 143, 0.06);
}

html[data-theme="dark"] .blog-detail-author {
  background: #0b2140;
  border-color: rgba(6, 181, 156, 0.18);
}

.blog-detail-author-avatar {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(2, 173, 143, 0.1);
  color: #02ad8f;
  font-size: 1.15rem;
  flex-shrink: 0;
}

.blog-detail-author-label {
  display: block;
  font-size: 0.72rem;
  font-weight: 700;
  color: rgba(15, 42, 74, 0.45);
  margin-bottom: 0.15rem;
}

.blog-detail-author-name {
  display: block;
  font-size: 1rem;
  font-weight: 800;
  color: #0f2a4a;
  margin-bottom: 0.35rem;
}

.blog-detail-author p {
  margin: 0;
  font-size: 0.85rem;
  color: rgba(15, 42, 74, 0.6);
  line-height: 1.65;
}

html[data-theme="dark"] .blog-detail-author-label {
  color: rgba(199, 228, 245, 0.45);
}

html[data-theme="dark"] .blog-detail-author-name {
  color: #f2f8fc;
}

html[data-theme="dark"] .blog-detail-author p {
  color: rgba(199, 228, 245, 0.55);
}

.blog-detail-comments,
.blog-detail-widget {
  background: #fff;
  border: 1px solid rgba(2, 173, 143, 0.12);
  border-radius: 18px;
  padding: 1.35rem;
  margin-bottom: 1.25rem;
  box-shadow: 0 8px 32px rgba(2, 173, 143, 0.06);
}

html[data-theme="dark"] .blog-detail-comments,
html[data-theme="dark"] .blog-detail-widget {
  background: #0b2140;
  border-color: rgba(6, 181, 156, 0.18);
  box-shadow: 0 10px 36px rgba(6, 20, 39, 0.28);
}

.blog-detail-widget-head {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  margin-bottom: 1.15rem;
}

.blog-detail-widget-head h2 {
  margin: 0;
  font-size: 1rem;
  font-weight: 800;
  color: #0f2a4a;
}

html[data-theme="dark"] .blog-detail-widget-head h2 {
  color: #f2f8fc;
}

.blog-detail-widget-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(2, 173, 143, 0.1);
  color: #02ad8f;
  flex-shrink: 0;
}

.blog-detail-label {
  display: block;
  margin-bottom: 0.4rem;
  font-size: 0.82rem;
  font-weight: 700;
  color: rgba(15, 42, 74, 0.7);
}

html[data-theme="dark"] .blog-detail-label {
  color: rgba(199, 228, 245, 0.65);
}

.blog-detail-input {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1.5px solid rgba(2, 173, 143, 0.18);
  border-radius: 12px;
  background: #f7fbfe;
  color: #0f2a4a;
  font-size: 0.92rem;
  font-family: inherit;
  resize: vertical;
}

.blog-detail-input:focus {
  outline: none;
  border-color: #02ad8f;
  box-shadow: 0 0 0 3px rgba(2, 173, 143, 0.12);
}

html[data-theme="dark"] .blog-detail-input {
  background: rgba(8, 25, 47, 0.6);
  border-color: rgba(6, 181, 156, 0.22);
  color: #f2f8fc;
}

.blog-detail-submit-btn {
  padding: 0.75rem 1.5rem;
  border: none;
  border-radius: 12px;
  background: #02ad8f;
  color: #fff;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.25s ease;
}

.blog-detail-submit-btn:hover {
  background: #018a72;
}

.blog-detail-sidebar {
  top: 96px;
}

.blog-detail-sidebar-search {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.45rem 0.45rem 0.45rem 1rem;
  border: 1.5px solid rgba(2, 173, 143, 0.18);
  border-radius: 12px;
  background: #f7fbfe;
}

.blog-detail-sidebar-search input {
  flex: 1;
  border: none;
  background: transparent;
  outline: none;
  font-size: 0.9rem;
  color: #0f2a4a;
  font-family: inherit;
}

.blog-detail-sidebar-search button {
  width: 40px;
  height: 40px;
  border: none;
  border-radius: 10px;
  background: #02ad8f;
  color: #fff;
  cursor: pointer;
  flex-shrink: 0;
}

html[data-theme="dark"] .blog-detail-sidebar-search {
  background: rgba(8, 25, 47, 0.6);
  border-color: rgba(6, 181, 156, 0.22);
}

html[data-theme="dark"] .blog-detail-sidebar-search input {
  color: #f2f8fc;
}

.blog-sidebar-categories {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.blog-sidebar-category {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.65rem 0.85rem;
  border-radius: 12px;
  border: 1px solid transparent;
  text-decoration: none;
  color: #0f2a4a;
  transition: background 0.25s ease, border-color 0.25s ease, color 0.25s ease;
}

.blog-sidebar-category:hover {
  background: rgba(2, 173, 143, 0.06);
  border-color: rgba(2, 173, 143, 0.12);
  color: #018a72;
}

html[data-theme="dark"] .blog-sidebar-category {
  color: #f2f8fc;
}

html[data-theme="dark"] .blog-sidebar-category:hover {
  background: rgba(2, 173, 143, 0.12);
  border-color: rgba(6, 181, 156, 0.2);
  color: #8fd9e0;
}

.blog-sidebar-category-name {
  font-size: 0.9rem;
  font-weight: 600;
  line-height: 1.4;
}

.blog-sidebar-category-count {
  flex-shrink: 0;
  min-width: 1.75rem;
  padding: 0.15rem 0.55rem;
  border-radius: 999px;
  background: rgba(2, 173, 143, 0.1);
  color: #02ad8f;
  font-size: 0.75rem;
  font-weight: 700;
  text-align: center;
}

html[data-theme="dark"] .blog-sidebar-category-count {
  background: rgba(6, 181, 156, 0.16);
  color: #8fd9e0;
}

.blog-sidebar-posts {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.blog-sidebar-post {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.65rem;
  border-radius: 12px;
  border: 1px solid transparent;
  text-decoration: none;
  transition: all 0.25s ease;
}

.blog-sidebar-post:hover {
  background: rgba(2, 173, 143, 0.05);
  border-color: rgba(2, 173, 143, 0.12);
}

html[data-theme="dark"] .blog-sidebar-post:hover {
  background: rgba(2, 173, 143, 0.1);
}

.blog-sidebar-post-img {
  width: 72px;
  height: 56px;
  border-radius: 10px;
  object-fit: cover;
  flex-shrink: 0;
}

.blog-sidebar-post-body {
  min-width: 0;
}

.blog-sidebar-post-body h3 {
  margin: 0 0 0.3rem;
  font-size: 0.88rem;
  font-weight: 700;
  color: #0f2a4a;
  line-height: 1.45;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.blog-sidebar-post-body span {
  font-size: 0.72rem;
  color: rgba(15, 42, 74, 0.5);
}

.blog-sidebar-post-body i {
  color: #02ad8f;
  margin-left: 0.25rem;
}

html[data-theme="dark"] .blog-sidebar-post-body h3 {
  color: #f2f8fc;
}

html[data-theme="dark"] .blog-sidebar-post-body span {
  color: rgba(199, 228, 245, 0.45);
}

.blog-detail-newsletter {
  padding: 1.5rem;
  border-radius: 18px;
  background: #02ad8f;
  border: 1px solid rgba(255, 255, 255, 0.15);
  text-align: center;
}

.blog-detail-newsletter-icon {
  display: inline-flex;
  width: 48px;
  height: 48px;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
  font-size: 1.15rem;
  margin-bottom: 0.85rem;
}

.blog-detail-newsletter h3 {
  font-size: 1.05rem;
  font-weight: 800;
  color: #fff;
  margin: 0 0 0.5rem;
}

.blog-detail-newsletter p {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.85);
  margin: 0 0 1rem;
  line-height: 1.65;
}

.blog-detail-newsletter-form {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.blog-detail-newsletter-form input {
  padding: 0.75rem 1rem;
  border: none;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.95);
  color: #0f2a4a;
  font-size: 0.9rem;
}

.blog-detail-newsletter-form button {
  padding: 0.75rem 1rem;
  border: none;
  border-radius: 12px;
  background: #fff;
  color: #02ad8f;
  font-weight: 800;
  cursor: pointer;
  transition: transform 0.2s ease;
}

.blog-detail-newsletter-form button:hover {
  transform: translateY(-1px);
}

@media (max-width: 991px) {
  .blog-detail-sidebar {
    position: static !important;
  }
}

@media (max-width: 767px) {
  .blog-detail-hero {
    padding: 1.75rem 0 1.5rem;
  }

  .blog-detail-page .blog-post-content {
    padding: 1.25rem 1.25rem 0;
  }

  .blog-detail-article-footer {
    padding: 1.15rem 1.25rem 1.35rem;
    flex-direction: column;
    align-items: flex-start;
  }
}

/* ===========================
   Who We Are Page
   =========================== */
.who-we-are-page {
  background: #ffffff;
}

html[data-theme="dark"] .who-we-are-page {
  background: #06172b;
}

.who-we-are-hero {
  padding: 2.5rem 0 2.25rem;
  text-align: center;
  background: #018a72;
  border-bottom: 2px solid rgba(255, 255, 255, 0.15);
}

html[data-theme="dark"] .who-we-are-hero {
  background: #0b2346;
  border-bottom-color: rgba(6, 181, 156, 0.2);
}

.who-we-are-hero-inner {
  position: relative;
  z-index: 1;
}

.who-we-are-hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 6px 16px;
  border-radius: 50px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.22);
  color: #fff;
  font-size: 0.78rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.who-we-are-hero-title {
  font-family: 'Alexandria', sans-serif;
  font-size: clamp(1.65rem, 4vw, 2.4rem);
  font-weight: 800;
  color: #fff !important;
  margin: 0 0 0.65rem;
}

.who-we-are-hero-desc {
  max-width: 560px;
  margin: 0 auto 1.25rem;
  color: rgba(255, 255, 255, 0.88);
  font-size: 0.95rem;
  line-height: 1.75;
}

.who-we-are-hero-stats {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
}

.who-hero-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.15rem;
  min-width: 100px;
  padding: 0.75rem 1.15rem;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.18);
}

.who-hero-stat strong {
  font-family: 'Poppins', sans-serif;
  font-size: 1.2rem;
  font-weight: 800;
  color: #fff;
}

.who-hero-stat span {
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.75);
}

.who-we-are-breadcrumb {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.45rem;
  font-size: 0.82rem;
}

.who-we-are-breadcrumb a {
  color: rgba(255, 255, 255, 0.9);
  text-decoration: none;
  font-weight: 600;
}

.who-we-are-breadcrumb a:hover {
  color: #fff;
}

.who-we-are-breadcrumb i {
  font-size: 0.65rem;
  opacity: 0.45;
  color: #fff;
}

.who-we-are-breadcrumb span {
  color: rgba(255, 255, 255, 0.55);
}

.who-we-are-main {
  padding: 2rem 0 3.5rem;
}

.who-we-are-intro {
  margin-bottom: 2rem;
  text-align: center;
}

.who-we-are-intro-eyebrow {
  display: block;
  font-size: 0.78rem;
  font-weight: 700;
  color: #02ad8f;
  margin-bottom: 0.35rem;
}

.who-we-are-intro-title {
  font-family: 'Alexandria', sans-serif;
  font-size: clamp(1.25rem, 3vw, 1.65rem);
  font-weight: 800;
  color: #0f2a4a;
  margin: 0 0 0.5rem;
}

.who-we-are-intro-desc {
  margin: 0 auto;
  font-size: 0.92rem;
  color: rgba(15, 42, 74, 0.6);
  max-width: 560px;
  line-height: 1.75;
}

html[data-theme="dark"] .who-we-are-intro-title {
  color: #f2f8fc;
}

html[data-theme="dark"] .who-we-are-intro-desc {
  color: rgba(199, 228, 245, 0.55);
}

.who-we-are-team {
  margin-bottom: 2.5rem;
}

.who-we-are-page .team-card-courses {
  position: relative;
  z-index: 1;
  margin: 0 0 0.65rem;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--team-card-meta) !important;
}

.who-we-are-page .team-card-courses i {
  margin-inline-end: 0.35rem;
  color: var(--team-color, var(--accent-color));
}

.who-we-are-page .team-card-rating {
  margin-bottom: 0.5rem;
}

.team-page-cta {
  margin-top: 0.5rem;
}

.team-page-cta-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 2.5rem 2rem;
  border-radius: 22px;
  background: #ffffff;
  border: 1px solid rgba(2, 173, 143, 0.12);
  box-shadow: 0 10px 36px rgba(2, 173, 143, 0.07);
}

html[data-theme="dark"] .team-page-cta-inner {
  background: rgba(6, 20, 39, 0.82);
  border-color: rgba(2, 173, 143, 0.22);
  box-shadow: 0 12px 40px rgba(6, 20, 39, 0.35);
}

.team-page-cta-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  margin-bottom: 1rem;
  border-radius: 16px;
  background: rgba(2, 173, 143, 0.1);
  border: 1px solid rgba(2, 173, 143, 0.2);
  color: #02ad8f;
  font-size: 1.35rem;
}

.team-page-cta-inner h2 {
  font-family: 'Alexandria', sans-serif;
  font-size: clamp(1.15rem, 3vw, 1.5rem);
  font-weight: 800;
  color: #0f2a4a;
  margin: 0 0 0.65rem;
}

.team-page-cta-inner p {
  max-width: 520px;
  margin: 0 0 1.35rem;
  font-size: 0.92rem;
  line-height: 1.75;
  color: rgba(15, 42, 74, 0.62);
}

html[data-theme="dark"] .team-page-cta-inner h2 {
  color: #f2f8fc;
}

html[data-theme="dark"] .team-page-cta-inner p {
  color: rgba(199, 228, 245, 0.62);
}

.team-page-cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.75rem;
  border-radius: 50px;
  background: #02ad8f;
  color: #fff !important;
  font-weight: 800;
  font-size: 0.95rem;
  text-decoration: none;
  border: 2px solid #02ad8f;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

.team-page-cta-btn:hover {
  background: #018a72;
  border-color: #018a72;
  color: #fff !important;
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(2, 173, 143, 0.28);
}

@media (max-width: 767px) {
  .who-we-are-hero {
    padding: 1.75rem 0 1.5rem;
  }

  .who-we-are-hero-stats {
    gap: 0.5rem;
  }

  .who-hero-stat {
    min-width: 88px;
    padding: 0.6rem 0.85rem;
  }

  .team-page-cta-inner {
    padding: 2rem 1.25rem;
  }
}

/* ===========================
   About Page
   =========================== */
.about-page {
  background: #ffffff;
}

html[data-theme="dark"] .about-page {
  background: #06172b;
}

.about-page-hero {
  padding: 2.5rem 0 2.25rem;
  text-align: center;
  background: #018a72;
  border-bottom: 2px solid rgba(255, 255, 255, 0.15);
}

html[data-theme="dark"] .about-page-hero {
  background: #0b2346;
  border-bottom-color: rgba(6, 181, 156, 0.2);
}

.about-page-hero-inner {
  position: relative;
  z-index: 1;
}

.about-page-hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 6px 16px;
  border-radius: 50px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.22);
  color: #fff;
  font-size: 0.78rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.about-page-hero-title {
  font-family: 'Alexandria', sans-serif;
  font-size: clamp(1.65rem, 4vw, 2.4rem);
  font-weight: 800;
  color: #fff !important;
  margin: 0 0 0.65rem;
}

.about-page-hero-desc {
  max-width: 560px;
  margin: 0 auto 1.25rem;
  color: rgba(255, 255, 255, 0.88);
  font-size: 0.95rem;
  line-height: 1.75;
}

.about-page-hero-stats {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
}

.about-hero-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.15rem;
  min-width: 100px;
  padding: 0.75rem 1.15rem;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.18);
}

.about-hero-stat strong {
  font-family: 'Poppins', sans-serif;
  font-size: 1.2rem;
  font-weight: 800;
  color: #fff;
}

.about-hero-stat span {
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.75);
}

.about-page-breadcrumb {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.45rem;
  font-size: 0.82rem;
}

.about-page-breadcrumb a {
  color: rgba(255, 255, 255, 0.9);
  text-decoration: none;
  font-weight: 600;
}

.about-page-breadcrumb a:hover {
  color: #fff;
}

.about-page-breadcrumb i {
  font-size: 0.65rem;
  opacity: 0.45;
  color: #fff;
}

.about-page-breadcrumb span {
  color: rgba(255, 255, 255, 0.55);
}

.about-page-main {
  padding: 2rem 0 3.5rem;
}

.about-story {
  margin-bottom: 3rem;
}

.about-story-media {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 360px;
  padding: 2rem;
  border-radius: 22px;
  background: #ffffff;
  border: 1px solid rgba(2, 173, 143, 0.12);
  box-shadow: 0 10px 36px rgba(2, 173, 143, 0.07);
  text-align: center;
}

html[data-theme="dark"] .about-story-media {
  background: rgba(6, 20, 39, 0.82);
  border-color: rgba(2, 173, 143, 0.22);
  box-shadow: 0 12px 40px rgba(6, 20, 39, 0.35);
}

.about-story-media-badge {
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 6px 14px;
  border-radius: 50px;
  background: rgba(2, 173, 143, 0.1);
  border: 1px solid rgba(2, 173, 143, 0.2);
  color: #02ad8f;
  font-size: 0.78rem;
  font-weight: 700;
}

.about-story-media-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 96px;
  height: 96px;
  margin-bottom: 1.25rem;
  border-radius: 50%;
  background: rgba(2, 173, 143, 0.1);
  border: 2px solid rgba(2, 173, 143, 0.2);
  color: #02ad8f;
  font-size: 2.5rem;
}

.about-story-media-caption {
  margin: 0;
  max-width: 280px;
  font-size: 0.92rem;
  line-height: 1.75;
  color: rgba(15, 42, 74, 0.62);
}

html[data-theme="dark"] .about-story-media-caption {
  color: rgba(199, 228, 245, 0.62);
}

.about-story-eyebrow {
  display: block;
  font-size: 0.78rem;
  font-weight: 700;
  color: #02ad8f;
  margin-bottom: 0.35rem;
}

.about-story-title {
  font-family: 'Alexandria', sans-serif;
  font-size: clamp(1.35rem, 3vw, 1.85rem);
  font-weight: 800;
  color: #0f2a4a;
  margin: 0 0 1rem;
}

html[data-theme="dark"] .about-story-title {
  color: #f2f8fc;
}

.about-story-text {
  margin: 0 0 1rem;
  font-size: 0.92rem;
  line-height: 1.85;
  color: rgba(15, 42, 74, 0.65);
}

html[data-theme="dark"] .about-story-text {
  color: rgba(199, 228, 245, 0.62);
}

.about-story-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.35rem;
}

.about-btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  border-radius: 50px;
  background: #02ad8f;
  color: #fff !important;
  font-weight: 800;
  font-size: 0.92rem;
  text-decoration: none;
  border: 2px solid #02ad8f;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

.about-btn-primary:hover {
  background: #018a72;
  border-color: #018a72;
  color: #fff !important;
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(2, 173, 143, 0.28);
}

.about-btn-outline {
  display: inline-flex;
  align-items: center;
  padding: 0.75rem 1.5rem;
  border-radius: 50px;
  background: transparent;
  color: #02ad8f !important;
  font-weight: 800;
  font-size: 0.92rem;
  text-decoration: none;
  border: 2px solid rgba(2, 173, 143, 0.35);
  transition: transform 0.25s ease, background 0.25s ease, border-color 0.25s ease;
}

html[data-theme="dark"] .about-btn-outline {
  color: #8fd9e0 !important;
  border-color: rgba(143, 217, 224, 0.35);
}

.about-btn-outline:hover {
  background: rgba(2, 173, 143, 0.08);
  border-color: #02ad8f;
  transform: translateY(-2px);
}

.about-values {
  margin-bottom: 3rem;
}

.about-section-header {
  margin-bottom: 1.75rem;
}

.about-section-header.text-center .about-section-desc {
  margin-inline: auto;
}

.about-section-eyebrow {
  display: block;
  font-size: 0.78rem;
  font-weight: 700;
  color: #02ad8f;
  margin-bottom: 0.35rem;
}

.about-section-title {
  font-family: 'Alexandria', sans-serif;
  font-size: clamp(1.25rem, 3vw, 1.65rem);
  font-weight: 800;
  color: #0f2a4a;
  margin: 0 0 0.5rem;
}

.about-section-desc {
  margin: 0;
  max-width: 520px;
  font-size: 0.92rem;
  line-height: 1.75;
  color: rgba(15, 42, 74, 0.6);
}

html[data-theme="dark"] .about-section-title {
  color: #f2f8fc;
}

html[data-theme="dark"] .about-section-desc {
  color: rgba(199, 228, 245, 0.55);
}

.about-value-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  height: 100%;
  padding: 2rem 1.75rem;
  border-radius: 22px;
  background: #ffffff;
  border: 1px solid rgba(2, 173, 143, 0.12);
  box-shadow: 0 10px 36px rgba(2, 173, 143, 0.07);
  overflow: hidden;
  transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 0.4s ease,
    border-color 0.35s ease;
}

html[data-theme="dark"] .about-value-card {
  background: rgba(6, 20, 39, 0.82);
  border-color: rgba(2, 173, 143, 0.22);
  box-shadow: 0 12px 40px rgba(6, 20, 39, 0.35);
}

.about-value-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: color-mix(in srgb, var(--value-color, var(--accent-color)) 5%, transparent);
  opacity: 0;
  transition: opacity 0.35s ease;
  pointer-events: none;
}

.about-value-card:hover {
  transform: translateY(-8px);
  border-color: color-mix(in srgb, var(--value-color, var(--accent-color)) 40%, transparent);
  box-shadow: 0 20px 48px rgba(2, 173, 143, 0.14);
}

html[data-theme="dark"] .about-value-card:hover {
  box-shadow: 0 22px 50px rgba(6, 20, 39, 0.45);
}

.about-value-card:hover::before {
  opacity: 1;
}

.about-value-icon {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  margin-bottom: 1.15rem;
  border-radius: 18px;
  background: color-mix(in srgb, var(--value-color, var(--accent-color)) 12%, transparent);
  border: 1px solid color-mix(in srgb, var(--value-color, var(--accent-color)) 28%, transparent);
  color: var(--value-color, var(--accent-color));
  font-size: 1.45rem;
}

.about-value-title {
  position: relative;
  z-index: 1;
  font-family: 'Alexandria', sans-serif;
  font-size: 1.15rem;
  font-weight: 800;
  color: #0f2a4a;
  margin: 0 0 0.75rem;
}

html[data-theme="dark"] .about-value-title {
  color: #f2f8fc;
}

.about-value-text {
  position: relative;
  z-index: 1;
  margin: 0;
  font-size: 0.92rem;
  line-height: 1.85;
  color: rgba(15, 42, 74, 0.65);
}

html[data-theme="dark"] .about-value-text {
  color: rgba(199, 228, 245, 0.62);
}

.about-stats {
  --stat-bg: #ffffff;
  --stat-border: rgba(2, 173, 143, 0.12);
  --stat-shadow: 0 10px 40px rgba(2, 173, 143, 0.08);
  --stat-icon-bg: rgba(2, 173, 143, 0.1);
  --stat-number: #0f2a4a;
  --stat-label: rgba(15, 42, 74, 0.65);
  padding: 0;
}

html[data-theme="dark"] .about-stats {
  --stat-bg: rgba(6, 20, 39, 0.85);
  --stat-border: rgba(2, 173, 143, 0.25);
  --stat-shadow: 0 12px 40px rgba(6, 20, 39, 0.35);
  --stat-icon-bg: rgba(2, 173, 143, 0.2);
  --stat-number: #ffffff;
  --stat-label: rgba(199, 228, 245, 0.65);
}

.about-stats .about-section-header {
  margin-bottom: 1.5rem;
}

@media (max-width: 767px) {
  .about-page-hero {
    padding: 1.75rem 0 1.5rem;
  }

  .about-page-hero-stats {
    gap: 0.5rem;
  }

  .about-hero-stat {
    min-width: 88px;
    padding: 0.6rem 0.85rem;
  }

  .about-story-media {
    min-height: 280px;
  }

  .about-story-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .about-btn-primary,
  .about-btn-outline {
    justify-content: center;
  }
}

/* ===========================
   Cart Page
   =========================== */
.cart-page {
  background: #ffffff;
}

html[data-theme="dark"] .cart-page {
  background: #06172b;
}

.cart-page-hero {
  padding: 2.5rem 0 2.25rem;
  text-align: center;
  background: #018a72;
  border-bottom: 2px solid rgba(255, 255, 255, 0.15);
}

html[data-theme="dark"] .cart-page-hero {
  background: #0b2346;
  border-bottom-color: rgba(6, 181, 156, 0.2);
}

.cart-page-hero-inner {
  position: relative;
  z-index: 1;
}

.cart-page-hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 6px 16px;
  border-radius: 50px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.22);
  color: #fff;
  font-size: 0.78rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.cart-page-hero-title {
  font-family: 'Alexandria', sans-serif;
  font-size: clamp(1.65rem, 4vw, 2.4rem);
  font-weight: 800;
  color: #fff !important;
  margin: 0 0 0.65rem;
}

.cart-page-hero-desc {
  max-width: 560px;
  margin: 0 auto 1.25rem;
  color: rgba(255, 255, 255, 0.88);
  font-size: 0.95rem;
  line-height: 1.75;
}

.cart-page-breadcrumb {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.45rem;
  font-size: 0.82rem;
}

.cart-page-breadcrumb a {
  color: rgba(255, 255, 255, 0.9);
  text-decoration: none;
  font-weight: 600;
}

.cart-page-breadcrumb a:hover {
  color: #fff;
}

.cart-page-breadcrumb i {
  font-size: 0.65rem;
  opacity: 0.45;
  color: #fff;
}

.cart-page-breadcrumb span {
  color: rgba(255, 255, 255, 0.55);
}

.cart-page-main {
  padding: 1.75rem 0 3rem;
}

.cart-page-main .checkout-steps {
  margin-bottom: 2rem;
}

.cart-items-section {
  background: #ffffff;
  border: 1px solid rgba(2, 173, 143, 0.12);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 8px 32px rgba(2, 173, 143, 0.06);
}

html[data-theme="dark"] .cart-items-section {
  background: #0b2140;
  border-color: rgba(6, 181, 156, 0.18);
  box-shadow: 0 12px 40px rgba(6, 20, 39, 0.28);
}

.cart-items-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  padding: 1.15rem 1.35rem;
  border-bottom: 1px solid rgba(2, 173, 143, 0.1);
  background: rgba(2, 173, 143, 0.04);
}

html[data-theme="dark"] .cart-items-head {
  background: rgba(2, 173, 143, 0.08);
  border-bottom-color: rgba(6, 181, 156, 0.12);
}

.cart-items-title {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 800;
  color: #0f2a4a;
}

html[data-theme="dark"] .cart-items-title {
  color: #f2f8fc;
}

.cart-clear-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.45rem 0.9rem;
  border-radius: 50px;
  border: 1.5px solid rgba(220, 38, 38, 0.35);
  background: rgba(220, 38, 38, 0.06);
  color: #dc2626;
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.cart-clear-btn:hover {
  background: rgba(220, 38, 38, 0.12);
  border-color: #dc2626;
  transform: translateY(-1px);
}

.cart-items-list {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  padding: 1.25rem;
}

.cart-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.1rem;
  border-radius: 14px;
  border: 1px solid rgba(2, 173, 143, 0.12);
  background: rgba(2, 173, 143, 0.03);
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

.cart-item:hover {
  transform: translateY(-2px);
  border-color: rgba(2, 173, 143, 0.28);
  background: rgba(2, 173, 143, 0.06);
  box-shadow: 0 8px 24px rgba(2, 173, 143, 0.1);
}

html[data-theme="dark"] .cart-item {
  background: rgba(15, 42, 74, 0.35);
  border-color: rgba(6, 181, 156, 0.14);
}

html[data-theme="dark"] .cart-item:hover {
  border-color: rgba(6, 181, 156, 0.28);
  box-shadow: 0 10px 28px rgba(6, 20, 39, 0.35);
}

.cart-item-icon {
  width: 64px;
  height: 64px;
  border-radius: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(2, 173, 143, 0.1);
  color: #02ad8f;
  font-size: 1.45rem;
  flex-shrink: 0;
}

.cart-item-info {
  flex: 1;
  min-width: 0;
}

.cart-item-title {
  margin: 0 0 0.35rem;
  font-size: 0.95rem;
  font-weight: 800;
  color: #0f2a4a;
  line-height: 1.45;
}

html[data-theme="dark"] .cart-item-title {
  color: #f2f8fc;
}

.cart-item-instructor {
  margin: 0;
  font-size: 0.78rem;
  color: rgba(15, 42, 74, 0.55);
}

.cart-item-instructor i {
  color: #02ad8f;
  margin-inline-end: 0.25rem;
}

html[data-theme="dark"] .cart-item-instructor {
  color: rgba(199, 228, 245, 0.45);
}

.cart-item-actions {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.5rem;
  flex-shrink: 0;
}

.cart-item-price {
  font-family: 'Poppins', sans-serif;
  font-size: 1.15rem;
  font-weight: 800;
  color: #02ad8f;
}

.cart-item-remove {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0;
  border: none;
  background: transparent;
  color: #dc2626;
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color 0.2s ease;
}

.cart-item-remove:hover {
  color: #b91c1c;
}

.cart-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 3rem 1.5rem;
}

.cart-empty-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 72px;
  height: 72px;
  margin-bottom: 1rem;
  border-radius: 50%;
  background: rgba(2, 173, 143, 0.08);
  color: rgba(2, 173, 143, 0.45);
  font-size: 1.75rem;
}

.cart-empty h3 {
  margin: 0 0 0.5rem;
  font-size: 1.15rem;
  font-weight: 800;
  color: #0f2a4a;
}

.cart-empty p {
  margin: 0 0 1.25rem;
  font-size: 0.9rem;
  color: rgba(15, 42, 74, 0.6);
  max-width: 320px;
}

html[data-theme="dark"] .cart-empty h3 {
  color: #f2f8fc;
}

html[data-theme="dark"] .cart-empty p {
  color: rgba(199, 228, 245, 0.55);
}

.cart-empty-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  border-radius: 50px;
  background: #02ad8f;
  color: #fff !important;
  font-weight: 800;
  font-size: 0.92rem;
  text-decoration: none;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

.cart-empty-btn:hover {
  background: #018a72;
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(2, 173, 143, 0.28);
}

.cart-summary-card {
  margin-bottom: 0;
}

.cart-summary-totals-only {
  padding-top: 0;
  border-top: none;
  margin-bottom: 1.15rem;
}

.cart-coupon-form {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 0.65rem;
}

.cart-coupon-form .checkout-input {
  flex: 1;
  min-width: 0;
}

.cart-coupon-btn {
  flex-shrink: 0;
  padding: 0.75rem 1.1rem;
  border: 1.5px solid rgba(2, 173, 143, 0.25);
  border-radius: 12px;
  background: rgba(2, 173, 143, 0.08);
  color: #02ad8f;
  font-weight: 800;
  font-size: 0.88rem;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.cart-coupon-btn:hover {
  background: #02ad8f;
  border-color: #02ad8f;
  color: #fff;
}

html[data-theme="dark"] .cart-coupon-btn {
  background: rgba(2, 173, 143, 0.15);
  border-color: rgba(6, 181, 156, 0.3);
  color: #8fd9e0;
}

.cart-coupon-msg {
  margin: 0 0 1rem;
  font-size: 0.82rem;
  font-weight: 700;
}

.cart-coupon-msg.is-success {
  color: #02ad8f;
}

.cart-coupon-msg.is-error {
  color: #dc2626;
}

.cart-checkout-btn {
  text-decoration: none;
  margin-top: 0.35rem;
}

.cart-checkout-btn.disabled {
  opacity: 0.55;
  pointer-events: none;
  cursor: not-allowed;
}

@media (max-width: 767px) {
  .cart-page-hero {
    padding: 1.75rem 0 1.5rem;
  }

  .cart-item {
    flex-wrap: wrap;
    align-items: flex-start;
  }

  .cart-item-actions {
    width: 100%;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    padding-top: 0.35rem;
    border-top: 1px dashed rgba(2, 173, 143, 0.12);
  }

  .cart-coupon-form {
    flex-direction: column;
  }

  .cart-coupon-btn {
    width: 100%;
  }
}

@media (min-width: 992px) {
  .cart-summary-card {
    position: sticky;
    top: 96px;
  }
}

/* ===========================
   Courses Page
   =========================== */
.courses-page-hero {
  position: relative;
  padding: 2.75rem 0 2.5rem;
  text-align: center;
  background: #018a72;
  border-bottom: 2px solid rgba(255, 255, 255, 0.15);
}

html[data-theme="dark"] .courses-page-hero {
  background: #0b2346;
  border-bottom-color: rgba(6, 181, 156, 0.2);
}

.courses-page-hero-inner {
  position: relative;
  z-index: 1;
}

.courses-page-hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 6px 16px;
  border-radius: 50px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.22);
  color: #fff;
  font-size: 0.78rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.courses-page-hero-title {
  font-family: 'Alexandria', sans-serif;
  font-size: clamp(1.75rem, 4vw, 2.6rem);
  font-weight: 800;
  color: #fff !important;
  margin: 0 0 0.75rem;
}

.courses-page-hero-desc {
  max-width: 560px;
  margin: 0 auto 1.5rem;
  color: rgba(255, 255, 255, 0.88);
  font-size: 0.98rem;
  line-height: 1.75;
}

.courses-page-hero-stats {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.courses-hero-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.15rem;
  min-width: 100px;
  padding: 0.75rem 1.15rem;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.18);
}

.courses-hero-stat strong {
  font-family: 'Poppins', sans-serif;
  font-size: 1.2rem;
  font-weight: 800;
  color: #fff;
}

.courses-hero-stat span {
  font-size: 0.76rem;
  color: rgba(255, 255, 255, 0.75);
}

.courses-page-breadcrumb {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.65);
}

.courses-page-breadcrumb a {
  color: rgba(255, 255, 255, 0.92);
  text-decoration: none;
  font-weight: 600;
}

.courses-page-breadcrumb a:hover {
  color: #fff;
}

.courses-page-breadcrumb i {
  font-size: 0.65rem;
  opacity: 0.5;
}

.courses-page-body {
  background: #ffffff;
  padding: 2rem 0 4rem;
}

html[data-theme="dark"] .courses-page-body {
  background: #06172b;
}

.courses-page-main {
  padding-top: 0.5rem;
}

.courses-mobile-filter-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  width: 100%;
  padding: 0.85rem 1rem;
  margin-bottom: 1rem;
  border: 2px solid rgba(2, 173, 143, 0.2);
  border-radius: 14px;
  background: #fff;
  color: #0f2a4a;
  font-weight: 700;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.3s ease;
}

html[data-theme="dark"] .courses-mobile-filter-btn {
  background: #0b2140;
  color: #f2f8fc;
  border-color: rgba(6, 181, 156, 0.25);
}

.courses-mobile-filter-btn[aria-expanded="true"] .courses-mobile-filter-chevron {
  transform: rotate(180deg);
}

.courses-mobile-filter-chevron {
  transition: transform 0.3s ease;
  font-size: 0.75rem;
  opacity: 0.6;
}

.courses-filter-panel {
  top: 130px;
  z-index: 20;
  background: #fff;
  border: 2px solid rgba(2, 173, 143, 0.12);
  border-radius: 22px;
  padding: 1.35rem;
  box-shadow: 0 12px 40px rgba(2, 173, 143, 0.08);
}

html[data-theme="dark"] .courses-filter-panel {
  background: #0b2140;
  border-color: rgba(6, 181, 156, 0.22);
  box-shadow: 0 12px 40px rgba(6, 20, 39, 0.35);
}

.courses-filter-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid rgba(2, 173, 143, 0.1);
}

html[data-theme="dark"] .courses-filter-header {
  border-color: rgba(6, 181, 156, 0.15);
}

.courses-filter-header-text {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.courses-filter-icon {
  width: 38px;
  height: 38px;
  border-radius: 11px;
  background: rgba(2, 173, 143, 0.1);
  border: 1px solid rgba(2, 173, 143, 0.18);
  color: var(--accent-color);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.courses-filter-title {
  font-family: 'Alexandria', sans-serif;
  font-size: 1rem;
  font-weight: 800;
  margin: 0;
  color: #0f2a4a !important;
}

html[data-theme="dark"] .courses-filter-title {
  color: #eef7fc !important;
}

.courses-filter-reset {
  border: none;
  background: transparent;
  color: var(--accent-color);
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
  padding: 0.35rem 0.5rem;
  border-radius: 8px;
  transition: background 0.25s ease;
}

.courses-filter-reset:hover {
  background: rgba(2, 173, 143, 0.08);
}

.courses-filter-block {
  margin-bottom: 1.25rem;
}

.courses-filter-block:last-child {
  margin-bottom: 0;
}

.courses-filter-label {
  display: block;
  font-size: 0.82rem;
  font-weight: 800;
  color: #0f2a4a;
  margin-bottom: 0.65rem;
}

html[data-theme="dark"] .courses-filter-label {
  color: #f2f8fc;
}

.courses-filter-label strong {
  color: var(--accent-color);
}

.courses-filter-search {
  position: relative;
}

.courses-filter-search i {
  position: absolute;
  top: 50%;
  right: 14px;
  transform: translateY(-50%);
  color: var(--accent-color);
  font-size: 0.85rem;
  pointer-events: none;
}

.courses-filter-search input {
  width: 100%;
  padding: 0.7rem 2.5rem 0.7rem 0.85rem;
  border-radius: 12px;
  border: 2px solid rgba(2, 173, 143, 0.14);
  background: rgba(2, 173, 143, 0.04);
  color: #0f2a4a;
  font-size: 0.86rem;
  font-weight: 600;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

html[data-theme="dark"] .courses-filter-search input {
  background: rgba(2, 173, 143, 0.08);
  border-color: rgba(6, 181, 156, 0.22);
  color: #eef7fc;
}

.courses-filter-search input:focus {
  outline: none;
  border-color: var(--accent-color);
  box-shadow: 0 0 0 3px rgba(2, 173, 143, 0.12);
}

.courses-filter-search input::placeholder {
  color: rgba(15, 42, 74, 0.45);
  font-weight: 500;
}

html[data-theme="dark"] .courses-filter-search input::placeholder {
  color: rgba(199, 228, 245, 0.45);
}

.filter-chip-group {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.filter-chip {
  display: block;
  cursor: pointer;
  margin: 0;
}

.filter-chip input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.filter-chip span {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.55rem 0.75rem;
  border-radius: 11px;
  border: 1px solid rgba(2, 173, 143, 0.12);
  background: rgba(2, 173, 143, 0.03);
  color: rgba(15, 42, 74, 0.75);
  font-size: 0.82rem;
  font-weight: 600;
  transition: all 0.25s ease;
}

html[data-theme="dark"] .filter-chip span {
  background: rgba(2, 173, 143, 0.06);
  border-color: rgba(6, 181, 156, 0.15);
  color: rgba(199, 228, 245, 0.75);
}

.filter-chip span i {
  color: var(--accent-color);
  width: 16px;
  text-align: center;
}

.filter-chip input:checked + span {
  background: rgba(2, 173, 143, 0.12);
  border-color: var(--accent-color);
  color: var(--accent-color);
  box-shadow: inset 0 0 0 1px rgba(2, 173, 143, 0.1);
}

.filter-chip:hover span {
  border-color: rgba(2, 173, 143, 0.3);
}

.courses-price-range-wrap {
  padding: 0.25rem 0.15rem 0;
}

.courses-price-range {
  width: 100%;
  height: 6px;
  border-radius: 6px;
  appearance: none;
  background: rgba(2, 173, 143, 0.15);
  accent-color: var(--accent-color);
  cursor: pointer;
}

.courses-price-range::-webkit-slider-thumb {
  appearance: none;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--accent-color);
  border: 3px solid #fff;
  box-shadow: 0 2px 8px rgba(2, 173, 143, 0.35);
}

.courses-price-labels {
  display: flex;
  justify-content: space-between;
  margin-top: 0.45rem;
  font-size: 0.72rem;
  color: rgba(15, 42, 74, 0.5);
}

html[data-theme="dark"] .courses-price-labels {
  color: rgba(199, 228, 245, 0.45);
}

.filter-level-group {
  display: flex;
  gap: 0.45rem;
  flex-wrap: wrap;
}

.filter-level {
  flex: 1;
  min-width: calc(33% - 0.35rem);
  cursor: pointer;
  margin: 0;
}

.filter-level input {
  position: absolute;
  opacity: 0;
}

.filter-level span {
  display: block;
  text-align: center;
  padding: 0.5rem 0.35rem;
  border-radius: 10px;
  border: 1px solid rgba(2, 173, 143, 0.12);
  background: rgba(2, 173, 143, 0.03);
  font-size: 0.78rem;
  font-weight: 700;
  color: rgba(15, 42, 74, 0.7);
  transition: all 0.25s ease;
}

html[data-theme="dark"] .filter-level span {
  background: rgba(2, 173, 143, 0.06);
  border-color: rgba(6, 181, 156, 0.15);
  color: rgba(199, 228, 245, 0.7);
}

.filter-level input:checked + span {
  background: var(--accent-color);
  border-color: var(--accent-color);
  color: #fff;
}

.courses-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.5rem;
  padding: 1rem 1.15rem;
  background: #fff;
  border: 2px solid rgba(2, 173, 143, 0.1);
  border-radius: 16px;
  box-shadow: 0 8px 28px rgba(2, 173, 143, 0.06);
}

html[data-theme="dark"] .courses-toolbar {
  background: #0b2140;
  border-color: rgba(6, 181, 156, 0.18);
  box-shadow: 0 8px 28px rgba(6, 20, 39, 0.3);
}

.courses-toolbar-label {
  display: block;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--accent-color);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 0.15rem;
}

.courses-toolbar-count {
  font-size: 0.92rem;
  color: rgba(15, 42, 74, 0.7);
}

html[data-theme="dark"] .courses-toolbar-count {
  color: rgba(199, 228, 245, 0.7);
}

.courses-toolbar-count strong {
  color: #0f2a4a;
}

html[data-theme="dark"] .courses-toolbar-count strong {
  color: #fff;
}

.courses-toolbar-actions {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  flex-wrap: wrap;
}

.courses-sort-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.courses-sort-icon {
  position: absolute;
  right: 12px;
  color: var(--accent-color);
  font-size: 0.8rem;
  pointer-events: none;
}

.courses-sort-wrap select {
  appearance: none;
  padding: 0.55rem 2.25rem 0.55rem 0.85rem;
  border-radius: 11px;
  border: 1px solid rgba(2, 173, 143, 0.15);
  background: rgba(2, 173, 143, 0.04);
  color: #0f2a4a;
  font-size: 0.84rem;
  font-weight: 700;
  min-width: 170px;
  cursor: pointer;
}

html[data-theme="dark"] .courses-sort-wrap select {
  background: rgba(2, 173, 143, 0.1);
  border-color: rgba(6, 181, 156, 0.22);
  color: #eef7fc;
}

.courses-sort-wrap select:focus {
  outline: none;
  border-color: var(--accent-color);
  box-shadow: 0 0 0 3px rgba(2, 173, 143, 0.12);
}

.courses-view-toggle {
  display: flex;
  gap: 0.35rem;
  padding: 0.25rem;
  border-radius: 11px;
  border: 1px solid rgba(2, 173, 143, 0.12);
  background: rgba(2, 173, 143, 0.04);
}

.courses-view-btn {
  width: 36px;
  height: 36px;
  border: none;
  border-radius: 8px;
  background: transparent;
  color: rgba(15, 42, 74, 0.55);
  cursor: pointer;
  transition: all 0.25s ease;
}

html[data-theme="dark"] .courses-view-btn {
  color: rgba(199, 228, 245, 0.55);
}

.courses-view-btn.active,
.courses-view-btn:hover {
  background: var(--accent-color);
  color: #fff;
}

.courses-empty {
  text-align: center;
  padding: 3.5rem 1.5rem;
  background: #fff;
  border: 2px dashed rgba(2, 173, 143, 0.18);
  border-radius: 20px;
}

html[data-theme="dark"] .courses-empty {
  background: #0b2140;
  border-color: rgba(6, 181, 156, 0.22);
}

.courses-empty-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 1rem;
  border-radius: 50%;
  background: rgba(2, 173, 143, 0.1);
  color: var(--accent-color);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
}

.courses-empty h5 {
  color: #0f2a4a !important;
  margin-bottom: 0.35rem;
}

html[data-theme="dark"] .courses-empty h5 {
  color: #eef7fc !important;
}

.courses-empty p {
  margin: 0;
  font-size: 0.88rem;
}

.course-list-card {
  display: flex;
  flex-direction: column;
  gap: 0;
  background: var(--card-surface, #f6fafd);
  border: 1px solid var(--card-border, rgba(2, 173, 143, 0.14));
  border-radius: 20px;
  overflow: hidden;
  box-shadow: var(--card-shadow, 0 4px 20px rgba(15, 42, 74, 0.06), 0 1px 3px rgba(2, 173, 143, 0.06));
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}

html[data-theme="dark"] .course-list-card {
  background: rgba(6, 20, 39, 0.82);
  border-color: rgba(2, 173, 143, 0.22);
  box-shadow: 0 12px 40px rgba(6, 20, 39, 0.35);
}

.course-list-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 44px rgba(2, 173, 143, 0.12);
}

@media (min-width: 768px) {
  .course-list-card {
    flex-direction: row;
  }
}

.course-list-thumb {
  position: relative;
  width: 100%;
  height: 130px;
  min-height: 130px;
  max-height: 130px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: rgba(2, 173, 143, 0.08);
  flex-shrink: 0;
}

.course-list-card .course-list-thumb .course-card-image {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: block;
  width: 100%;
  height: 100%;
  max-width: none;
  min-width: 100%;
  min-height: 100%;
  object-fit: cover;
  object-position: center;
}

@media (min-width: 768px) {
  .course-list-thumb {
    width: 200px;
    height: auto;
    min-height: 130px;
    max-height: none;
    align-self: stretch;
  }
}

.course-list-body {
  padding: 1.25rem 1.35rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.courses-pagination {
  margin-top: 2.5rem;
}

.courses-pagination .pagination {
  justify-content: center;
  gap: 0.35rem;
  margin: 0;
}

.courses-pagination .page-link {
  border-radius: 10px !important;
  padding: 0.55rem 0.95rem;
  border: 1px solid rgba(2, 173, 143, 0.15);
  background: #fff;
  color: #0f2a4a;
  font-weight: 700;
  font-size: 0.85rem;
}

html[data-theme="dark"] .courses-pagination .page-link {
  background: #0b2140;
  border-color: rgba(6, 181, 156, 0.2);
  color: #f2f8fc;
}

.courses-pagination .page-item.active .page-link {
  background: var(--accent-color);
  border-color: var(--accent-color);
  color: #fff;
}

.courses-pagination .page-link:hover {
  background: rgba(2, 173, 143, 0.08);
  border-color: var(--accent-color);
  color: var(--accent-color);
}

@media (max-width: 991px) {
  .courses-filter-panel {
    position: static !important;
    margin-bottom: 0.5rem;
  }

  .courses-page-hero {
    padding-top: 1.75rem;
  }

  .courses-page-body {
    padding: 1.25rem 0 3rem;
  }
}

@media (max-width: 575px) {
  .courses-page-hero-stats {
    gap: 0.5rem;
  }

  .courses-hero-stat {
    min-width: calc(50% - 0.35rem);
    padding: 0.6rem 0.75rem;
  }

  .courses-toolbar-actions {
    width: 100%;
  }

  .courses-sort-wrap {
    flex: 1;
  }

  .courses-sort-wrap select {
    width: 100%;
  }
}

body.courses-page {
  background: #ffffff;
  animation: none;
  background-size: auto;
}

html[data-theme="dark"] body.courses-page {
  background: #061427;
}

/* ===========================
   Blog Section (Home) & Components
   =========================== */
.blog-section {
  --blog-card-bg: #ffffff;
  --blog-card-border: rgba(2, 173, 143, 0.1);
  --blog-card-shadow: 0 10px 36px rgba(2, 173, 143, 0.07);
  --blog-card-title: #0f2a4a;
  --blog-card-meta: rgba(15, 42, 74, 0.55);
  --blog-card-excerpt: rgba(15, 42, 74, 0.65);
  padding: 0;
}

html[data-theme="dark"] .blog-section {
  --blog-card-bg: rgba(6, 20, 39, 0.82);
  --blog-card-border: rgba(2, 173, 143, 0.22);
  --blog-card-shadow: 0 12px 40px rgba(6, 20, 39, 0.35);
  --blog-card-title: #eef7fc;
  --blog-card-meta: rgba(199, 228, 245, 0.55);
  --blog-card-excerpt: rgba(199, 228, 245, 0.65);
}

.blog-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1.5rem;
  margin-bottom: 2rem;
  flex-wrap: wrap;
}

.blog-eyebrow {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--accent-color);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 0.5rem;
}

.blog-section-title {
  font-family: 'Alexandria', sans-serif;
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 800;
  color: var(--blog-card-title, #0f2a4a) !important;
  margin: 0 0 0.4rem;
}

.blog-section-subtitle {
  margin: 0;
  font-size: 0.92rem;
  color: var(--blog-card-meta, rgba(15, 42, 74, 0.55)) !important;
  max-width: 480px;
}

.blog-view-all {
  display: inline-flex;
  align-items: center;
  padding: 10px 22px;
  background: transparent;
  border: 2px solid var(--accent-color);
  color: var(--accent-color) !important;
  border-radius: 50px;
  font-weight: 700;
  font-size: 0.9rem;
  text-decoration: none;
  transition: all 0.3s ease;
  white-space: nowrap;
}

.blog-view-all:hover {
  background: var(--accent-color);
  color: #fff !important;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(2, 173, 143, 0.25);
}

.blog-swiper-wrap {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
}

.blog-swiper {
  flex: 1;
  overflow: hidden;
  padding: 8px 4px 12px;
  min-width: 0;
}

.blog-swiper .swiper-slide {
  height: auto;
}

.blog-swiper-btn {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  border: 1px solid var(--blog-card-border, rgba(2, 173, 143, 0.15));
  background: var(--blog-card-bg, #fff);
  color: var(--accent-color);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.22, 1, 0.36, 1);
  box-shadow: var(--blog-card-shadow, 0 8px 24px rgba(2, 173, 143, 0.08));
  flex-shrink: 0;
  z-index: 2;
}

html[data-theme="dark"] .blog-swiper-btn {
  background: rgba(6, 20, 39, 0.85);
  border-color: rgba(2, 173, 143, 0.3);
}

.blog-swiper-btn:hover {
  background: var(--accent-color);
  border-color: var(--accent-color);
  color: #fff;
  transform: translateY(-3px);
  box-shadow: 0 10px 28px rgba(2, 173, 143, 0.35);
}

.blog-swiper-btn.swiper-button-disabled {
  opacity: 0.35;
  pointer-events: none;
}

.blog-swiper-pagination {
  position: static !important;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100% !important;
  margin-top: 1.25rem;
}

.blog-swiper-pagination .swiper-pagination-bullet {
  width: 10px;
  height: 10px;
  background: rgba(2, 173, 143, 0.25);
  opacity: 1;
  margin: 0 !important;
  border-radius: 50%;
  transition: all 0.35s ease;
}

html[data-theme="dark"] .blog-swiper-pagination .swiper-pagination-bullet {
  background: rgba(255, 255, 255, 0.25);
}

.blog-swiper-pagination .swiper-pagination-bullet-active {
  width: 32px;
  border-radius: 6px;
  background: var(--accent-color);
}

.blog-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 0.4s ease,
    border-color 0.35s ease;
  border: 1px solid var(--blog-card-border, rgba(2, 173, 143, 0.1));
  background: var(--blog-card-bg, #ffffff);
  box-shadow: var(--blog-card-shadow, 0 10px 36px rgba(2, 173, 143, 0.07));
  border-radius: 20px !important;
  overflow: hidden;
}

html[data-theme="dark"] .blog-card {
  background: var(--blog-card-bg, rgba(6, 20, 39, 0.82));
  box-shadow: var(--blog-card-shadow, 0 12px 40px rgba(6, 20, 39, 0.35));
}

.blog-card:hover {
  transform: translateY(-10px);
  border-color: rgba(2, 173, 143, 0.35);
  box-shadow: 0 20px 48px rgba(2, 173, 143, 0.14);
}

html[data-theme="dark"] .blog-card:hover {
  box-shadow: 0 22px 50px rgba(6, 20, 39, 0.45);
}

.blog-card-image-link {
  display: block;
  text-decoration: none;
}

.blog-image-wrapper {
  overflow: hidden;
  position: relative;
  aspect-ratio: 16/9;
}

.blog-card-img,
.blog-image-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.blog-card:hover .blog-card-img,
.blog-card:hover .blog-image-wrapper img {
  transform: scale(1.08);
}

.blog-category-badge {
  position: absolute;
  top: 14px;
  right: 14px;
  background: var(--badge-color, var(--accent-color));
  color: #fff;
  padding: 5px 14px;
  border-radius: 50px;
  font-size: 0.75rem;
  font-weight: 700;
  z-index: 2;
}

.blog-read-time {
  position: absolute;
  bottom: 14px;
  left: 14px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 5px 12px;
  border-radius: 50px;
  background: rgba(6, 20, 39, 0.55);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 600;
  z-index: 2;
}

.blog-card-body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 1.35rem 1.35rem 1.25rem;
}

.blog-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  color: var(--blog-card-meta, rgba(15, 42, 74, 0.55));
  font-size: 0.8rem;
  margin-bottom: 0.85rem;
}

.blog-meta i {
  color: var(--accent-color);
  margin-left: 4px;
}

.blog-title {
  font-family: 'Alexandria', sans-serif;
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--blog-card-title, #0f2a4a);
  margin-bottom: 0.65rem;
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.blog-title a {
  color: inherit;
  text-decoration: none;
  transition: color 0.3s ease;
}

.blog-title a:hover {
  color: var(--accent-color);
}

html[data-theme="dark"] .blog-title {
  color: var(--blog-card-title, #eef7fc);
}

.blog-excerpt {
  margin: 0 0 1rem;
  font-size: 0.86rem;
  line-height: 1.75;
  color: var(--blog-card-excerpt, rgba(15, 42, 74, 0.65)) !important;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  flex: 1;
}

.blog-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding-top: 1rem;
  margin-top: auto;
  border-top: 1px solid var(--blog-card-border, rgba(2, 173, 143, 0.1));
}

.blog-author {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  min-width: 0;
}

.blog-author-avatar {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(2, 173, 143, 0.1);
  border: 1px solid rgba(2, 173, 143, 0.18);
  color: var(--accent-color);
  font-size: 0.75rem;
}

.blog-author-name {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--blog-card-title, #0f2a4a) !important;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.read-more-link {
  color: var(--accent-color);
  text-decoration: none;
  font-weight: 700;
  font-size: 0.82rem;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: gap 0.3s ease;
  white-space: nowrap;
  flex-shrink: 0;
}

.read-more-link:hover {
  gap: 10px;
  color: var(--accent-hover);
}

@media (max-width: 767px) {
  .blog-swiper-wrap {
    gap: 8px;
  }

  .blog-swiper-btn {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    font-size: 0.85rem;
  }
}

/* Blog Content (Detail Page) */
.blog-post-content {
  color: #c9d8e6;
  line-height: 1.8;
  font-size: 1.1rem;
}

.blog-post-content h2,
.blog-post-content h3 {
  color: white;
  margin-top: 2rem;
  margin-bottom: 1rem;
}

.blog-post-content img {
  max-width: 100%;
  border-radius: 12px;
  margin: 2rem 0;
}

.blog-sidebar-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 25px;
  margin-bottom: 30px;
  backdrop-filter: blur(10px);
}

.sidebar-post-item {
  display: flex;
  gap: 15px;
  margin-bottom: 20px;
  text-decoration: none;
}

.sidebar-post-img {
  width: 80px;
  height: 60px;
  border-radius: 5px;
  object-fit: cover;
}

.sidebar-post-title {
  font-size: 0.95rem;
  color: white;
  font-weight: 600;
  line-height: 1.4;
  margin: 0;
}

/* Global overflow fix for sections with sliders */
section {
  overflow-x: hidden;
  position: relative;
}

/* ===========================
   Lesson Viewer Container
   =========================== */
.lesson-viewer-container {
  min-height: calc(100vh - 108px);
  padding: 0;
}

.lesson-viewer-wrapper {
  display: flex;
  gap: 0;
  max-width: 100%;
  margin: 0;
}

/* ===========================
   Lesson Sidebar
   =========================== */
.lesson-sidebar {
  width: 350px;
  min-width: 350px;
  height: calc(100vh - 108px);
  position: sticky;
  top: 108px;
  display: flex;
  flex-direction: column;
  border-radius: 0;
  border-right: 1px solid var(--glass-border);
  overflow: hidden;
}

.sidebar-header {
  padding: 1.5rem;
  border-bottom: 1px solid var(--glass-border);
  background: rgba(2, 173, 143, 0.05);
}

.syllabus-content {
  flex: 1;
  overflow-y: auto;
  padding: 0.5rem 0;
}

/* Custom Scrollbar for Sidebar */
.syllabus-content::-webkit-scrollbar {
  width: 6px;
}

.syllabus-content::-webkit-scrollbar-track {
  background: transparent;
}

.syllabus-content::-webkit-scrollbar-thumb {
  background: rgba(2, 173, 143, 0.3);
  border-radius: 3px;
}

.syllabus-content::-webkit-scrollbar-thumb:hover {
  background: rgba(2, 173, 143, 0.5);
}

/* ===========================
   Course Section (Accordion)
   =========================== */
.course-section {
  border-bottom: 1px solid var(--glass-border);
}

.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.5rem;
  cursor: pointer;
  background: rgba(255, 255, 255, 0.03);
  transition: all 0.3s ease;
}

html[data-theme="dark"] .section-header {
  background: rgba(6, 20, 39, 0.2);
}

.section-header:hover {
  background: rgba(2, 173, 143, 0.08);
}

.section-header.collapsed {
  background: transparent;
}

.section-info {
  flex: 1;
}

.section-title {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-primary);
}

.section-meta {
  font-size: 0.8rem;
  color: var(--text-secondary);
  margin-top: 0.25rem;
  display: block;
}

.section-icon {
  color: var(--text-secondary);
  font-size: 0.85rem;
  transition: transform 0.3s ease;
}

.section-header.collapsed .section-icon {
  transform: rotate(-90deg);
}

/* ===========================
   Lessons List
   =========================== */
.lessons-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.lesson-item {
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.lesson-item:last-child {
  border-bottom: none;
}

.lesson-link {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.875rem 1.5rem;
  text-decoration: none;
  transition: all 0.3s ease;
}

.lesson-link:hover {
  background: rgba(2, 173, 143, 0.08);
}

.lesson-status {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  color: var(--text-secondary);
  font-size: 0.9rem;
  flex-shrink: 0;
}

.lesson-item.completed .lesson-status {
  background: rgba(6, 181, 156, 0.15);
  color: #06b59c;
}

.lesson-item.active .lesson-status {
  background: rgba(2, 173, 143, 0.2);
  color: var(--accent-color);
}

.lesson-item.locked .lesson-status {
  background: rgba(90, 112, 137, 0.15);
  color: #5a7089;
}

.lesson-item.active {
  background: rgba(2, 173, 143, 0.1);
  border-right: 3px solid var(--accent-color);
}

.lesson-info {
  flex: 1;
  min-width: 0;
}

.lesson-title {
  font-size: 0.9rem;
  color: var(--text-primary);
  display: block;
  margin-bottom: 0.25rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.lesson-meta {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8rem;
  color: var(--text-secondary);
}

.lesson-meta i {
  font-size: 0.75rem;
}

.duration {
  font-family: 'Poppins', sans-serif;
}

.lesson-item.locked .lesson-title {
  opacity: 0.6;
}

/* ===========================
   Main Content Area
   =========================== */
.lesson-main {
  flex: 1;
  padding: 1.5rem 2rem;
  min-width: 0;
}

/* ===========================
   Video Player Box
   =========================== */
.video-player-box {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  background: #061427;
  margin-bottom: 1.5rem;
}

.video-wrapper {
  position: relative;
  width: 100%;
  padding-top: 56.25%;
  /* 16:9 Aspect Ratio */
}

.video-placeholder {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  background: linear-gradient(135deg, #08192f 0%, #0b2346 50%, #061427 100%);
  color: #fff;
  cursor: pointer;
}

.video-placeholder i {
  font-size: 4rem;
  color: var(--accent-color);
  opacity: 0.9;
  transition: all 0.3s ease;
}

.video-placeholder:hover i {
  transform: scale(1.1);
  opacity: 1;
}

.video-placeholder span {
  font-size: 1rem;
  opacity: 0.7;
}

/* Video Controls */
.video-controls {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 1rem 1.5rem;
  background: linear-gradient(to top, rgba(6, 20, 39, 0.9) 0%, rgba(6, 20, 39, 0.5) 60%, transparent 100%);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.video-controls.visible {
  opacity: 1;
}

.video-player-box:hover .video-controls {
  opacity: 1;
}

.progress-bar-container {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 0.75rem;
}

.progress-bar {
  flex: 1;
  height: 5px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 3px;
  cursor: pointer;
  position: relative;
}

.progress-filled {
  height: 100%;
  background: var(--accent-color);
  border-radius: 3px;
  position: relative;
}

.progress-handle {
  position: absolute;
  right: -6px;
  top: 50%;
  transform: translateY(-50%);
  width: 12px;
  height: 12px;
  background: #fff;
  border-radius: 50%;
  box-shadow: 0 2px 6px rgba(6, 20, 39, 0.3);
  opacity: 0;
  transition: opacity 0.2s ease;
}

.progress-bar:hover .progress-handle {
  opacity: 1;
}

.time-display {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.9);
  font-family: 'Poppins', sans-serif;
  min-width: 90px;
  text-align: left;
}

.controls-buttons {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.controls-right,
.controls-left {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.control-btn {
  background: transparent;
  border: none;
  color: rgba(255, 255, 255, 0.9);
  padding: 0.5rem;
  cursor: pointer;
  border-radius: 6px;
  transition: all 0.2s ease;
  font-size: 1rem;
}

.control-btn:hover {
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
}

.play-btn {
  font-size: 1.25rem;
}

.speed-label {
  font-size: 0.85rem;
  font-family: 'Poppins', sans-serif;
}

.volume-slider {
  width: 0;
  overflow: hidden;
  transition: width 0.3s ease;
}

.controls-right:hover .volume-slider {
  width: 80px;
}

.volume-slider input[type="range"] {
  width: 80px;
  height: 4px;
  -webkit-appearance: none;
  background: rgba(255, 255, 255, 0.3);
  border-radius: 2px;
  cursor: pointer;
}

.volume-slider input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 12px;
  height: 12px;
  background: #fff;
  border-radius: 50%;
}

/* ===========================
   Lesson Info Header
   =========================== */
.lesson-info-header {
  margin-bottom: 1.5rem;
}

.lesson-breadcrumb {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin-bottom: 0.75rem;
}

.lesson-breadcrumb a {
  color: var(--accent-color);
  text-decoration: none;
  transition: color 0.2s ease;
}

.lesson-breadcrumb a:hover {
  color: var(--accent-hover);
  text-decoration: underline;
}

.lesson-breadcrumb i {
  font-size: 0.7rem;
  opacity: 0.5;
}

.lesson-title-main {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 1rem;
  line-height: 1.4;
}

.lesson-meta-info {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
}

.meta-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.meta-item i {
  color: var(--accent-color);
}

.completed-badge {
  color: #06b59c !important;
}

.completed-badge i {
  color: #06b59c;
}

/* ===========================
   Lesson Tabs
   =========================== */
.lesson-tabs-container {
  margin-bottom: 1.5rem;
  overflow: hidden;
}

.lesson-tabs {
  border-bottom: 1px solid var(--glass-border);
}

.lesson-tabs .nav-link {
  color: var(--text-secondary);
  border: none;
  font-weight: 600;
  padding: 1rem 1.5rem;
  border-bottom: 2px solid transparent;
  border-radius: 0;
  transition: all 0.3s ease;
  background: transparent;
}

.lesson-tabs .nav-link:hover {
  color: var(--text-primary);
  background: rgba(2, 173, 143, 0.05);
}

.lesson-tabs .nav-link.active {
  color: var(--accent-color);
  border-bottom-color: var(--accent-color);
  background: rgba(2, 173, 143, 0.08);
}

.lesson-tab-content {
  padding: 1.5rem;
}

.lesson-highlights {
  padding-right: 1.5rem;
}

.lesson-highlights li {
  margin-bottom: 0.5rem;
  line-height: 1.6;
}

.lesson-instructor-info {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem;
  background: rgba(2, 173, 143, 0.05);
  border-radius: 8px;
}

.instructor-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  overflow: hidden;
}

.instructor-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.instructor-details {
  display: flex;
  flex-direction: column;
}

.instructor-details .label {
  font-size: 0.8rem;
  color: var(--text-secondary);
}

.instructor-details .name {
  font-weight: 600;
  color: var(--text-primary);
}

/* ===========================
   Resources Tab
   =========================== */
.resources-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.resource-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.25rem;
  transition: all 0.3s ease;
}

.resource-item:hover {
  background: var(--glass-hover-bg);
}

.resource-icon {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  background: rgba(2, 173, 143, 0.15);
  color: var(--accent-color);
  font-size: 1.25rem;
}

.resource-info {
  flex: 1;
}

.resource-title {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.25rem;
}

.resource-size {
  font-size: 0.8rem;
  color: var(--text-secondary);
}

/* ===========================
   Questions Tab
   =========================== */
.questions-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.ask-question-form {
  border-radius: 10px;
}

.user-avatar-sm {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
}

.user-avatar-sm img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.questions-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.question-item {
  padding: 1.25rem;
  border-radius: 10px;
}

.question-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.75rem;
}

.user-info {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.user-info img {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: cover;
}

.user-details {
  display: flex;
  flex-direction: column;
}

.user-name {
  font-weight: 600;
  color: var(--text-primary);
  font-size: 0.9rem;
}

.question-time {
  font-size: 0.8rem;
  color: var(--text-secondary);
}

.question-text {
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 1rem;
}

.question-answer {
  background: rgba(6, 181, 156, 0.08);
  border-right: 3px solid #06b59c;
  padding: 1rem;
  border-radius: 0 8px 8px 0;
}

.answer-badge {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8rem;
  font-weight: 600;
  color: #06b59c;
  margin-bottom: 0.5rem;
}

.answer-text {
  color: var(--text-secondary);
  font-size: 0.9rem;
  line-height: 1.6;
  margin: 0;
}

/* ===========================
   Lesson Navigation
   =========================== */
.lesson-navigation {
  display: flex;
  gap: 1rem;
  margin-top: 1.5rem;
}

.nav-btn {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.5rem;
  text-decoration: none;
  border-radius: 10px;
  transition: all 0.3s ease;
}

.nav-btn:hover {
  background: var(--glass-hover-bg);
  transform: translateY(-2px);
}

.nav-btn i {
  font-size: 1.25rem;
  color: var(--accent-color);
}

.nav-info {
  display: flex;
  flex-direction: column;
}

.nav-label {
  font-size: 0.8rem;
  color: var(--text-secondary);
}

.nav-title {
  font-weight: 600;
  color: var(--text-primary);
  font-size: 0.95rem;
}

.next-lesson {
  justify-content: flex-end;
  text-align: left;
}

.prev-lesson {
  justify-content: flex-start;
  text-align: right;
}

/* ===========================
   Mobile Sidebar Toggle
   =========================== */
.sidebar-toggle-btn {
  position: fixed;
  bottom: 2rem;
  left: 2rem;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--accent-color);
  color: #fff;
  border: none;
  font-size: 1.25rem;
  cursor: pointer;
  z-index: 1000;
  box-shadow: 0 4px 20px rgba(2, 173, 143, 0.4);
  display: none;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.sidebar-toggle-btn:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 25px rgba(2, 173, 143, 0.5);
}

.sidebar-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(6, 20, 39, 0.5);
  z-index: 1045;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.sidebar-overlay.show {
  opacity: 1;
  visibility: visible;
}

/* ===========================
   Responsive Styles
   =========================== */
@media (max-width: 1199px) {
  .lesson-sidebar {
    width: 300px;
    min-width: 300px;
  }
}

@media (max-width: 991px) {
  .lesson-viewer-wrapper {
    flex-direction: column;
  }

  .lesson-sidebar {
    position: fixed;
    top: 0;
    right: -350px;
    width: 350px;
    height: 100vh;
    z-index: 1050;
    border-radius: 0;
    border-left: 1px solid var(--glass-border);
    transition: right 0.3s ease;
  }

  .lesson-sidebar.open {
    right: 0;
  }

  .sidebar-toggle-btn {
    display: flex;
  }

  .lesson-main {
    padding: 1rem;
  }

  .lesson-title-main {
    font-size: 1.25rem;
  }

  .lesson-meta-info {
    gap: 1rem;
  }
}

@media (max-width: 767px) {
  .lesson-sidebar {
    width: 100%;
    right: -100%;
  }

  .lesson-navigation {
    flex-direction: column;
  }

  .nav-btn {
    justify-content: center !important;
    text-align: center !important;
  }

  .nav-info {
    align-items: center;
  }

  .video-controls {
    padding: 0.75rem 1rem;
  }

  .controls-buttons {
    flex-wrap: wrap;
    gap: 0.5rem;
  }

  .volume-slider {
    display: none;
  }

  .lesson-tabs .nav-link {
    padding: 0.75rem 1rem;
    font-size: 0.9rem;
  }

  .lesson-tab-content {
    padding: 1rem;
  }

  .resource-item {
    flex-wrap: wrap;
  }

  .resource-item .btn {
    width: 100%;
    margin-top: 0.5rem;
  }
}

@media (max-width: 575px) {
  .lesson-breadcrumb {
    flex-wrap: wrap;
    font-size: 0.8rem;
  }

  .meta-item {
    font-size: 0.85rem;
  }

  .sidebar-toggle-btn {
    bottom: 1.5rem;
    left: 1.5rem;
    width: 48px;
    height: 48px;
  }
}

/* ===========================
   Authentication Pages
   =========================== */
.auth-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  overflow: hidden;
}

.auth-page body {
  padding-top: 0;
}

/* Animated Background */
.auth-bg {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 0;
  overflow: hidden;
}

.auth-shapes {
  position: absolute;
  width: 100%;
  height: 100%;
}

.shape {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.5;
  animation: float 20s ease-in-out infinite;
}

.shape-1 {
  width: 600px;
  height: 600px;
  background: linear-gradient(135deg, #02ad8f 0%, #06b59c 100%);
  top: -200px;
  right: -100px;
  animation-delay: 0s;
}

.shape-2 {
  width: 400px;
  height: 400px;
  background: linear-gradient(135deg, #018a72 0%, #45bec4 100%);
  bottom: -100px;
  left: -100px;
  animation-delay: -5s;
}

.shape-3 {
  width: 300px;
  height: 300px;
  background: linear-gradient(135deg, #06b59c 0%, #8fd9e0 100%);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  animation-delay: -10s;
}

.shape-4 {
  width: 200px;
  height: 200px;
  background: linear-gradient(135deg, #45bec4 0%, #c7ebf1 100%);
  top: 20%;
  left: 10%;
  animation-delay: -15s;
}

.shape-5 {
  width: 250px;
  height: 250px;
  background: linear-gradient(135deg, #123b6e 0%, #06b59c 100%);
  bottom: 20%;
  right: 15%;
  animation-delay: -7s;
}

@keyframes float {

  0%,
  100% {
    transform: translate(0, 0) scale(1);
  }

  25% {
    transform: translate(30px, -30px) scale(1.05);
  }

  50% {
    transform: translate(-20px, 20px) scale(0.95);
  }

  75% {
    transform: translate(20px, 10px) scale(1.02);
  }
}

.auth-grid {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 50px 50px;
}

/* Auth Container */
.auth-container {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  padding: 2rem;
}

.auth-wrapper {
  display: flex;
  background: var(--glass-bg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 25px 80px rgba(6, 20, 39, 0.3);
}

/* Centered wrapper for forgot password */
.auth-wrapper-centered {
  max-width: 500px;
  margin: 0 auto;
}

/* Branding Section */
.auth-branding {
  flex: 1;
  padding: 3rem;
  background: linear-gradient(135deg, rgba(2, 173, 143, 0.15) 0%, rgba(6, 181, 156, 0.1) 100%);
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.auth-branding::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: radial-gradient(rgba(255, 255, 255, 0.1) 1px, transparent 1px);
  background-size: 20px 20px;
  pointer-events: none;
}

.branding-content {
  position: relative;
  z-index: 2;
}

.auth-logo {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 2rem;
}

.auth-logo i {
  font-size: 2rem;
  color: var(--accent-color);
}

.auth-logo .accent {
  color: var(--accent-color);
}

.branding-title {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 1rem;
  line-height: 1.3;
}

.branding-text {
  font-size: 1.1rem;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 2.5rem;
}

.branding-features {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.feature-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

.feature-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: rgba(2, 173, 143, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-color);
  font-size: 1.25rem;
  flex-shrink: 0;
}

.feature-text h6 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.25rem;
}

.feature-text p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin: 0;
}

/* Floating Cards Decoration */
.branding-decoration {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  pointer-events: none;
}

.floating-card {
  position: absolute;
  background: var(--glass-bg);
  backdrop-filter: blur(10px);
  border: 1px solid var(--glass-border);
  border-radius: 12px;
  padding: 0.75rem 1.25rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-primary);
  box-shadow: 0 10px 30px rgba(6, 20, 39, 0.15);
  animation: floatCard 6s ease-in-out infinite;
}

.floating-card i {
  color: var(--accent-color);
}

.card-1 {
  top: 15%;
  right: 10%;
  animation-delay: 0s;
}

.card-2 {
  top: 45%;
  left: 5%;
  animation-delay: -2s;
}

.card-3 {
  bottom: 20%;
  right: 15%;
  animation-delay: -4s;
}

@keyframes floatCard {

  0%,
  100% {
    transform: translateY(0) rotate(0deg);
  }

  50% {
    transform: translateY(-15px) rotate(2deg);
  }
}

/* Form Section */
.auth-form-section {
  width: 500px;
  flex-shrink: 0;
  padding: 2.5rem;
  display: flex;
  flex-direction: column;
}

.auth-form-wrapper {
  width: 100%;
}

.auth-header-actions {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 1rem;
}

.auth-mobile-logo {
  display: none;
  text-align: center;
  margin-bottom: 2rem;
}

.auth-mobile-logo a {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-primary);
}

.auth-mobile-logo i {
  font-size: 1.5rem;
  color: var(--accent-color);
}

.auth-mobile-logo .accent {
  color: var(--accent-color);
}

.auth-form-header {
  margin-bottom: 2rem;
}

.auth-form-header h2 {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}

.auth-form-header p {
  color: var(--text-secondary);
  font-size: 0.95rem;
}

/* Social Login Buttons */
.social-login {
  display: flex;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.social-btn {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  padding: 0.875rem 1rem;
  border-radius: 10px;
  border: 1px solid var(--glass-border);
  background: var(--glass-bg);
  color: var(--text-primary);
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
}

.social-btn:hover {
  background: var(--glass-hover-bg);
  border-color: var(--accent-color);
  transform: translateY(-2px);
}

.social-btn.google svg {
  flex-shrink: 0;
}

.social-btn.facebook {
  background: #1877f2;
  border-color: #1877f2;
  color: #fff;
}

.social-btn.facebook:hover {
  background: #166fe5;
  border-color: #166fe5;
}

/* Auth Divider */
.auth-divider {
  display: flex;
  align-items: center;
  margin: 1.5rem 0;
}

.auth-divider::before,
.auth-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--glass-border);
}

.auth-divider span {
  padding: 0 1rem;
  color: var(--text-secondary);
  font-size: 0.85rem;
}

/* Auth Form */
.auth-form {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.form-group {
  margin-bottom: 0;
}

.form-label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}

.form-label i {
  color: var(--accent-color);
  font-size: 0.85rem;
}

.input-wrapper {
  position: relative;
}

.input-wrapper .form-control {
  width: 100%;
  padding: 0.875rem 1rem;
  padding-left: 2.75rem;
  border-radius: 10px;
  border: 1px solid var(--glass-border);
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-primary);
  font-size: 0.95rem;
  transition: all 0.3s ease;
}

html[data-theme="dark"] .input-wrapper .form-control {
  background: rgba(6, 20, 39, 0.2);
}

.input-wrapper .form-control::placeholder {
  color: var(--text-secondary);
  opacity: 0.7;
}

.input-wrapper .form-control:focus {
  outline: none;
  border-color: var(--accent-color);
  box-shadow: 0 0 0 3px rgba(2, 173, 143, 0.15);
}

.input-focus-border {
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 2px;
  background: var(--accent-color);
  transition: all 0.3s ease;
  transform: translateX(-50%);
}

.input-wrapper.focused .input-focus-border,
.input-wrapper .form-control:focus+.input-focus-border {
  width: 100%;
}

/* Password Toggle */
.password-toggle {
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: var(--text-secondary);
  cursor: pointer;
  padding: 0;
  font-size: 1rem;
  transition: color 0.2s ease;
}

.password-toggle:hover {
  color: var(--accent-color);
}

/* Phone Input */
.phone-input {
  display: flex;
  gap: 0.5rem;
}

.phone-code {
  width: 100px;
  flex-shrink: 0;
  padding: 0.875rem 0.5rem;
  border-radius: 10px;
  border: 1px solid var(--glass-border);
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-primary);
  font-size: 0.9rem;
  text-align: center;
}

html[data-theme="dark"] .phone-code {
  background: rgba(6, 20, 39, 0.2);
}

.phone-input .form-control {
  flex: 1;
  padding-left: 1rem;
}

/* Password Strength */
.password-strength {
  margin-top: 0.5rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.strength-bar {
  flex: 1;
  height: 4px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 2px;
  overflow: hidden;
}

.strength-fill {
  height: 100%;
  width: 0;
  border-radius: 2px;
  transition: all 0.3s ease;
}

.strength-fill.weak {
  background: #ef4444;
}

.strength-fill.medium {
  background: #f59e0b;
}

.strength-fill.strong {
  background: #06b59c;
}

.strength-fill.very-strong {
  background: linear-gradient(90deg, #06b59c, #06b59c);
}

.strength-text {
  font-size: 0.75rem;
  font-weight: 500;
  min-width: 80px;
}

.strength-text.weak {
  color: #ef4444;
}

.strength-text.medium {
  color: #f59e0b;
}

.strength-text.strong,
.strength-text.very-strong {
  color: #06b59c;
}

/* Password Match */
.password-match {
  margin-top: 0.5rem;
  font-size: 0.8rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.password-match.match {
  color: #06b59c;
}

.password-match.no-match {
  color: #ef4444;
}

/* Checkbox */
.checkbox-wrapper {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  cursor: pointer;
  position: relative;
}

.checkbox-wrapper input {
  position: absolute;
  opacity: 0;
  cursor: pointer;
}

.checkmark {
  width: 20px;
  height: 20px;
  border: 2px solid var(--glass-border);
  border-radius: 5px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  flex-shrink: 0;
  margin-top: 2px;
}

.checkbox-wrapper:hover .checkmark {
  border-color: var(--accent-color);
}

.checkbox-wrapper input:checked+.checkmark {
  background: var(--accent-color);
  border-color: var(--accent-color);
}

.checkbox-wrapper input:checked+.checkmark::after {
  content: '\f00c';
  font-family: 'Font Awesome 6 Free';
  font-weight: 900;
  font-size: 0.7rem;
  color: #fff;
}

.checkbox-label {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.4;
}

.checkbox-label a {
  color: var(--accent-color);
  text-decoration: none;
}

.checkbox-label a:hover {
  text-decoration: underline;
}

/* Form Options */
.form-options {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}

.forgot-link {
  color: var(--accent-color);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  transition: color 0.2s ease;
}

.forgot-link:hover {
  color: var(--accent-hover);
  text-decoration: underline;
}

/* Auth Button */
.btn-auth {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  width: 100%;
  padding: 1rem 2rem;
  background: linear-gradient(135deg, #02ad8f 0%, #06b59c 100%);
  color: #fff;
  border: none;
  border-radius: 10px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.btn-auth::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.5s ease;
}

.btn-auth:hover::before {
  left: 100%;
}

.btn-auth:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(2, 173, 143, 0.4);
}

.btn-auth .btn-text {
  transition: opacity 0.2s ease;
}

.btn-auth .btn-icon {
  transition: transform 0.3s ease;
}

.btn-auth:hover .btn-icon {
  transform: translateX(-5px);
}

.btn-auth .btn-loader {
  display: none;
}

.btn-auth.loading .btn-text,
.btn-auth.loading .btn-icon {
  opacity: 0;
}

.btn-auth.loading .btn-loader {
  display: block;
  position: absolute;
}

.btn-block {
  width: 100%;
}

/* Auth Footer */
.auth-footer {
  margin-top: 2rem;
  text-align: center;
}

.auth-footer p {
  color: var(--text-secondary);
  font-size: 0.9rem;
}

.auth-footer a {
  color: var(--accent-color);
  text-decoration: none;
  font-weight: 600;
}

.auth-footer a:hover {
  text-decoration: underline;
}

/* Forgot Password Page Styles */
.auth-card-only {
  background: var(--glass-bg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
  border-radius: 24px;
  padding: 2.5rem;
  box-shadow: 0 25px 80px rgba(6, 20, 39, 0.3);
}

.auth-logo-centered {
  text-align: center;
  margin-bottom: 1.5rem;
}

.auth-logo-centered a {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-primary);
}

.auth-logo-centered i {
  font-size: 2rem;
  color: var(--accent-color);
}

.auth-logo-centered .accent {
  color: var(--accent-color);
}

.auth-icon-wrapper {
  display: flex;
  justify-content: center;
  margin-bottom: 1.5rem;
}

.auth-icon-circle {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(2, 173, 143, 0.2) 0%, rgba(6, 181, 156, 0.1) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  color: var(--accent-color);
  border: 2px solid rgba(2, 173, 143, 0.3);
}

/* Steps Container */
.auth-steps-container {
  position: relative;
  min-height: 200px;
}

.auth-step {
  display: none;
}

.auth-step.active {
  display: block;
  animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Email Sent Animation */
.email-sent-animation {
  position: relative;
  display: flex;
  justify-content: center;
  margin-bottom: 1.5rem;
}

.email-icon {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(2, 173, 143, 0.2) 0%, rgba(6, 181, 156, 0.1) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  color: var(--accent-color);
}

.checkmark-circle {
  position: absolute;
  bottom: -5px;
  right: calc(50% - 60px);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #06b59c;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 1rem;
  animation: popIn 0.3s ease 0.5s both;
}

@keyframes popIn {
  0% {
    transform: scale(0);
  }

  70% {
    transform: scale(1.2);
  }

  100% {
    transform: scale(1);
  }
}

.email-sent-content {
  text-align: center;
}

.email-sent-content h4 {
  color: var(--text-primary);
  font-weight: 700;
  margin-bottom: 0.75rem;
}

.email-sent-content p {
  color: var(--text-secondary);
  font-size: 0.95rem;
  margin-bottom: 0.5rem;
}

.sent-email {
  display: inline-block;
  background: rgba(2, 173, 143, 0.1);
  padding: 0.5rem 1rem;
  border-radius: 8px;
  color: var(--accent-color);
  font-weight: 600;
  font-family: 'Poppins', sans-serif;
}

.countdown-text {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 1.5rem;
  color: var(--text-secondary);
  font-size: 0.9rem;
}

.countdown-text .count {
  font-weight: 700;
  color: var(--accent-color);
  font-family: 'Poppins', sans-serif;
}

/* Success Animation */
.success-animation {
  display: flex;
  justify-content: center;
  margin-bottom: 1.5rem;
}

.success-checkmark {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  background: linear-gradient(135deg, #06b59c 0%, #06b59c 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  animation: successPulse 0.5s ease;
}

@keyframes successPulse {
  0% {
    transform: scale(0);
    opacity: 0;
  }

  50% {
    transform: scale(1.1);
  }

  100% {
    transform: scale(1);
    opacity: 1;
  }
}

.check-icon {
  position: relative;
  width: 50px;
  height: 50px;
}

.icon-line {
  position: absolute;
  height: 4px;
  background: #fff;
  border-radius: 2px;
  animation: checkLine 0.3s ease 0.3s both;
}

.line-tip {
  width: 25px;
  top: 28px;
  left: 5px;
  transform: rotate(45deg);
  transform-origin: left center;
}

.line-long {
  width: 40px;
  top: 24px;
  left: 15px;
  transform: rotate(-45deg);
  transform-origin: left center;
  animation-delay: 0.4s;
}

@keyframes checkLine {
  0% {
    width: 0;
    opacity: 0;
  }

  100% {
    opacity: 1;
  }
}

.success-content {
  text-align: center;
}

.success-content h4 {
  color: var(--text-primary);
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.success-content p {
  color: var(--text-secondary);
  font-size: 0.95rem;
}

/* Back to Login Link */
.back-to-login {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.9rem;
  transition: color 0.2s ease;
}

.back-to-login:hover {
  color: var(--accent-color);
}

/* Responsive Styles for Auth Pages */
@media (max-width: 1199px) {
  .auth-wrapper {
    max-width: 900px;
  }

  .auth-branding {
    padding: 2rem;
  }

  .branding-title {
    font-size: 2rem;
  }

  .auth-form-section {
    width: 450px;
    padding: 2rem;
  }
}

@media (max-width: 991px) {
  .auth-container {
    padding: 1rem;
  }

  .auth-wrapper {
    flex-direction: column;
    max-width: 500px;
    margin: 0 auto;
  }

  .auth-branding {
    display: none;
  }

  .auth-form-section {
    width: 100%;
    padding: 2rem;
  }

  .auth-mobile-logo {
    display: block;
  }
}

@media (max-width: 767px) {
  .auth-container {
    padding: 1rem;
  }

  .auth-form-section {
    padding: 1.5rem;
  }

  .auth-form-header h2 {
    font-size: 1.5rem;
  }

  .social-login {
    flex-direction: column;
  }

  .social-btn {
    width: 100%;
  }

  .form-options {
    flex-direction: column;
    align-items: flex-start;
  }

  .auth-card-only {
    padding: 1.5rem;
  }

  .auth-logo-centered a {
    font-size: 1.25rem;
  }

  .auth-icon-circle {
    width: 60px;
    height: 60px;
    font-size: 1.5rem;
  }
}

@media (max-width: 575px) {
  .auth-form-header h2 {
    font-size: 1.35rem;
  }

  .branding-features {
    display: none;
  }

  .phone-input {
    flex-direction: column;
  }

  .phone-code {
    width: 100%;
  }
}

/* ===========================
   Premium Site Footer
   =========================== */
.site-footer {
  position: relative;
  margin-top: 4rem;
  color: rgba(255, 255, 255, 0.85);
  overflow: hidden;
}

.site-footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: rgba(2, 173, 143, 0.35);
  z-index: 3;
}

/* Wave connector */
.footer-wave {
  color: var(--page-bg, #08192f);
  line-height: 0;
  margin-top: -1px;
  position: relative;
  z-index: 2;
}

html[data-theme="light"] .footer-wave {
  color: #dcf3f4;
}

.footer-wave svg {
  width: 100%;
  height: 70px;
  display: block;
}

/* CTA Band */
.footer-cta-band {
  background: #0b2346;
  position: relative;
  overflow: hidden;
  padding: 3rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-cta-band::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, 0.06) 1px, transparent 1px);
  background-size: 24px 24px;
  pointer-events: none;
}

.footer-cta-band::after {
  display: none;
}

.footer-cta-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
  position: relative;
  z-index: 1;
}

.footer-cta-label {
  display: inline-flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #fff;
  padding: 6px 16px;
  border-radius: 50px;
  font-size: 0.8rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
}

.footer-cta-title {
  font-family: 'Alexandria', 'Cairo', sans-serif;
  font-size: clamp(1.4rem, 3vw, 2rem);
  font-weight: 800;
  color: #fff !important;
  margin-bottom: 0.5rem;
  line-height: 1.4;
}

.footer-cta-title span {
  color: #8fd9e0 !important;
  -webkit-text-fill-color: #8fd9e0;
}

.footer-cta-desc {
  color: rgba(255, 255, 255, 0.75) !important;
  margin: 0;
  font-size: 0.95rem;
}

.footer-cta-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  flex-shrink: 0;
}

.footer-cta-btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 28px;
  background: #02ad8f;
  color: #fff !important;
  font-weight: 700;
  border-radius: 14px;
  border: none;
  text-decoration: none;
  box-shadow: 0 8px 24px rgba(2, 173, 143, 0.35);
  transition: transform 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
}

.footer-cta-btn-primary:hover {
  transform: translateY(-3px);
  background: #018a72;
  box-shadow: 0 12px 32px rgba(2, 173, 143, 0.45);
  color: #fff !important;
}

.footer-cta-btn-outline {
  display: inline-flex;
  align-items: center;
  padding: 14px 28px;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: #fff !important;
  font-weight: 600;
  border-radius: 14px;
  text-decoration: none;
  transition: all 0.3s ease;
}

.footer-cta-btn-outline:hover {
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.4);
  transform: translateY(-3px);
  color: #fff !important;
}

/* Main Footer */
.footer-main {
  background: #08192f;
  position: relative;
  padding: 4.5rem 0 3rem;
}

html[data-theme="light"] .footer-main {
  background: #0b2346;
}

.footer-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  pointer-events: none;
}

.footer-glow-1 {
  width: 500px;
  height: 500px;
  top: -150px;
  left: -150px;
  background: rgba(2, 173, 143, 0.12);
}

.footer-glow-2 {
  width: 400px;
  height: 400px;
  bottom: -100px;
  right: -100px;
  background: rgba(69, 190, 196, 0.06);
}

.footer-grid {
  position: relative;
  z-index: 1;
}

/* Brand */
.footer-logo {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  margin-bottom: 1.25rem;
}

.footer-logo-icon {
  width: 52px;
  height: 52px;
  background: var(--accent-color);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  color: #fff;
  box-shadow: 0 8px 24px rgba(2, 173, 143, 0.35);
}

.footer-logo-text {
  font-family: 'Alexandria', sans-serif;
  font-size: 1.6rem;
  font-weight: 800;
  color: #fff !important;
}

.footer-logo-text span {
  color: var(--accent-color);
}

html[data-theme="light"] .footer-logo-text span {
  color: #8fd9e0;
}

.footer-brand-desc {
  color: rgba(255, 255, 255, 0.65) !important;
  font-size: 0.92rem;
  line-height: 1.8;
  margin-bottom: 1.5rem;
  max-width: 340px;
}

.footer-trust-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 1.5rem;
}

.footer-trust-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.8);
}

.footer-trust-item i {
  color: #45bec4;
  font-size: 0.85rem;
}

.footer-social {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.footer-social-link {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  color: rgba(255, 255, 255, 0.75) !important;
  text-decoration: none;
  font-size: 1rem;
  transition: all 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.footer-social-link:hover {
  background: var(--accent-color);
  border-color: var(--accent-color);
  color: #fff !important;
  transform: translateY(-4px);
  box-shadow: 0 8px 20px rgba(2, 173, 143, 0.35);
}

/* Headings & Links */
.footer-heading {
  font-family: 'Alexandria', sans-serif;
  font-size: 1rem;
  font-weight: 700;
  color: #fff !important;
  margin-bottom: 1.25rem;
  padding-bottom: 0.75rem;
  position: relative;
}

.footer-heading::after {
  content: '';
  position: absolute;
  bottom: 0;
  right: 0;
  width: 32px;
  height: 2px;
  background: var(--accent-color);
  border-radius: 2px;
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links li {
  margin-bottom: 0.65rem;
}

.footer-links a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: rgba(255, 255, 255, 0.6) !important;
  text-decoration: none;
  font-size: 0.88rem;
  transition: all 0.25s ease;
}

.footer-links a i {
  font-size: 0.6rem;
  opacity: 0;
  transform: translateX(6px);
  transition: all 0.25s ease;
  color: #45bec4;
}

.footer-links a:hover {
  color: #fff !important;
  padding-right: 4px;
}

.footer-links a:hover i {
  opacity: 1;
  transform: translateX(0);
}

/* Contact */
.footer-contact {
  list-style: none;
  padding: 0;
  margin: 0 0 1.5rem;
}

.footer-contact li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 1rem;
}

.footer-contact-icon {
  width: 38px;
  height: 38px;
  flex-shrink: 0;
  background: rgba(2, 173, 143, 0.15);
  border: 1px solid rgba(2, 173, 143, 0.25);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #45bec4;
  font-size: 0.85rem;
}

.footer-contact small {
  display: block;
  color: rgba(255, 255, 255, 0.45);
  font-size: 0.72rem;
  margin-bottom: 2px;
}

.footer-contact a,
.footer-contact span {
  color: rgba(255, 255, 255, 0.85) !important;
  text-decoration: none;
  font-size: 0.85rem;
}

.footer-contact a:hover {
  color: #45bec4 !important;
}

/* Newsletter */
.footer-newsletter-label {
  font-size: 0.85rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 0.75rem;
}

.footer-newsletter-form {
  display: flex;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 14px;
  overflow: hidden;
  transition: border-color 0.3s ease;
}

.footer-newsletter-form:focus-within {
  border-color: rgba(2, 173, 143, 0.5);
  box-shadow: 0 0 0 3px rgba(2, 173, 143, 0.15);
}

.footer-newsletter-form input {
  flex: 1;
  background: transparent;
  border: none;
  padding: 12px 14px;
  color: #fff;
  font-size: 0.85rem;
  outline: none;
  min-width: 0;
}

.footer-newsletter-form input::placeholder {
  color: rgba(255, 255, 255, 0.35);
}

.footer-newsletter-form button {
  width: 48px;
  border: none;
  background: var(--accent-color);
  color: #fff;
  cursor: pointer;
  transition: background 0.3s ease;
  flex-shrink: 0;
}

.footer-newsletter-form button:hover {
  background: var(--accent-hover);
  color: #fff;
}

/* Stats Strip */
.footer-stats {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1rem 2rem;
  margin-top: 3.5rem;
  padding: 2rem 2.5rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 20px;
  backdrop-filter: blur(10px);
}

.footer-stat {
  text-align: center;
  min-width: 90px;
}

.footer-stat strong {
  display: block;
  font-family: 'Poppins', sans-serif;
  font-size: 1.6rem;
  font-weight: 700;
  color: #fff !important;
  line-height: 1.2;
}

.footer-stat span {
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.5);
}

.footer-stat-divider {
  width: 1px;
  height: 40px;
  background: rgba(255, 255, 255, 0.12);
}

/* Bottom Bar */
.footer-bottom {
  background: rgba(6, 20, 39, 0.35);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding: 1.5rem 0;
}

html[data-theme="light"] .footer-bottom {
  background: rgba(6, 20, 39, 0.2);
}

.footer-bottom-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-copyright {
  margin: 0;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.5) !important;
}

.footer-copyright strong {
  color: rgba(255, 255, 255, 0.75);
}

.footer-payments {
  display: flex;
  align-items: center;
  gap: 12px;
}

.footer-payments-label {
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.4);
}

.footer-payment-icons {
  display: flex;
  gap: 10px;
}

.footer-payment-icons span {
  width: 36px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 6px;
  color: rgba(255, 255, 255, 0.6);
  font-size: 1.2rem;
  transition: all 0.25s ease;
}

.footer-payment-icons span:hover {
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
}

.footer-legal {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.footer-legal a {
  color: rgba(255, 255, 255, 0.5) !important;
  text-decoration: none;
  font-size: 0.8rem;
  transition: color 0.2s ease;
}

.footer-legal a:hover {
  color: #45bec4 !important;
}

.footer-legal-sep {
  color: rgba(255, 255, 255, 0.2);
  font-size: 0.75rem;
}

@media (max-width: 991px) {
  .footer-cta-inner {
    flex-direction: column;
    text-align: center;
  }

  .footer-cta-actions {
    justify-content: center;
  }

  .footer-brand-desc {
    max-width: 100%;
  }
}

@media (max-width: 767px) {
  .footer-main {
    padding: 3rem 0 2rem;
  }

  .footer-stats {
    padding: 1.5rem;
    gap: 1.25rem;
  }

  .footer-stat-divider {
    display: none;
  }

  .footer-stat {
    flex: 1 1 40%;
  }

  .footer-bottom-inner {
    flex-direction: column;
    text-align: center;
  }

  .footer-payments {
    flex-direction: column;
  }
}