/* ========================================
   Kubbe Educational Organization
   ======================================== */

:root {
  --navy: #08264A;
  --gold: #C99A2E;
  --bg-light: #F5F8FC;
  --white: #FFFFFF;
}

.shadow-soft {
  box-shadow: 0 8px 30px rgba(8, 38, 74, 0.1);
}
.shadow-nav {
  box-shadow: 0 -4px 20px rgba(8, 38, 74, 0.08);
}

html { scroll-behavior: smooth; }
body { font-family: 'Cairo', sans-serif; background: var(--bg-light); }

.skip-link {
  position: absolute; top: -100%; right: 1rem; z-index: 100;
  background: var(--navy); color: white; padding: 0.75rem 1.25rem;
  border-radius: 0.5rem; font-weight: 700; transition: top 0.2s;
}
.skip-link:focus { top: 1rem; }

.btn-navy, .btn-gold {
  display: inline-flex; align-items: center; gap: 0.5rem;
  color: white; font-weight: 700; font-size: 0.9rem;
  padding: 0.75rem 1.5rem; border-radius: 0.75rem;
  transition: all 0.35s ease;
}
.btn-navy {
  background: var(--navy);
  box-shadow: 0 4px 14px rgba(8, 38, 74, 0.25);
}
.btn-navy:hover { background: #0a3260; transform: translateY(-3px); }
.btn-gold {
  background: var(--gold);
  box-shadow: 0 4px 14px rgba(201, 154, 46, 0.3);
}
.btn-gold:hover { background: #b88928; transform: translateY(-3px); }

.btn-float { animation: btnFloat 3.2s ease-in-out infinite; }
.btn-float:nth-child(2) { animation-delay: 0.4s; }
@keyframes btnFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-5px); }
}

.drawer-link {
  display: flex; align-items: center; gap: 0.75rem;
  padding: 0.85rem 1rem; border-radius: 0.75rem;
  font-weight: 600; color: var(--navy); transition: all 0.2s;
}
.drawer-link:hover, .drawer-link:focus-visible {
  background: var(--bg-light); color: var(--gold);
}

/* ---------- Hero with single banner image ---------- */
.hero-section {
  position: relative;
  background:
    radial-gradient(ellipse 80% 60% at 100% 0%, rgba(201, 154, 46, 0.08), transparent 55%),
    radial-gradient(ellipse 70% 50% at 0% 100%, rgba(8, 38, 74, 0.06), transparent 50%),
    var(--bg-light);
  padding: 2rem 0 4.5rem;
}

.hero-inner {
  display: flex;
  flex-direction: column-reverse;
  align-items: center;
  gap: 1.75rem;
}

.hero-content {
  width: 100%;
  text-align: start;
}

.hero-banner-wrap {
  width: 100%;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 16px 40px rgba(8, 38, 74, 0.12);
  background: #e8eef5;
  aspect-ratio: 16 / 10;
  border: 1px solid rgba(8, 38, 74, 0.06);
}

.hero-banner-img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.hero-title { line-height: 1.5; }
.hero-title-line2 { margin-top: 0.65em; }

@media (max-width: 639px) {
  .hero-section { padding: 1.25rem 0 3.75rem; }
  .hero-banner-wrap { border-radius: 1.15rem; aspect-ratio: 16 / 11; }
  .hero-content .btn-navy,
  .hero-content .btn-gold { flex: 1 1 auto; justify-content: center; min-height: 2.85rem; }
}

@media (min-width: 1024px) {
  .hero-section {
    padding: 2.5rem 0 5.5rem;
    min-height: auto;
  }

  .hero-inner {
    flex-direction: row;
    align-items: center;
    gap: 2.5rem;
  }

  .hero-content {
    flex: 1 1 55%;
    max-width: 55%;
  }

  .hero-banner-wrap {
    flex: 0 0 45%;
    width: 45%;
    max-width: 45%;
    aspect-ratio: 16 / 11;
  }
}

.nav-link {
  position: relative;
  padding-bottom: 0.35rem;
  transition: color 0.2s;
}
.nav-link:hover { color: var(--gold); }
.nav-link.active { color: var(--gold); }
.nav-link.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  inset-inline-start: 15%;
  inset-inline-end: 15%;
  height: 2px;
  background: var(--gold);
  border-radius: 2px;
}

.stats-bar {
  background: rgba(255, 255, 255, 0.96);
  border-radius: 1.25rem;
  box-shadow: 0 14px 40px rgba(8, 38, 74, 0.1);
  border: 1px solid rgba(201, 154, 46, 0.18);
  padding: 1.25rem 1rem;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
@media (min-width: 640px) {
  .stats-bar { grid-template-columns: repeat(3, 1fr); padding: 1.5rem 1.25rem; }
}
@media (min-width: 1024px) {
  .stats-bar {
    grid-template-columns: repeat(5, 1fr);
    padding: 1.75rem 1.5rem;
    gap: 0.5rem;
  }
}
.stat-item {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  text-align: start;
}
.stat-item i, .stat-item iconify-icon {
  width: 2.6rem; height: 2.6rem;
  border-radius: 0.85rem;
  background: rgba(201, 154, 46, 0.12);
  color: var(--gold);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem;
  flex-shrink: 0;
}
.stat-num { font-size: 1.25rem; font-weight: 800; color: var(--navy); line-height: 1.2; }
.stat-label { font-size: 0.75rem; color: #6b7280; font-weight: 600; }

.fade-up {
  opacity: 0;
  transform: translateY(36px);
  animation: fadeUp 0.85s ease-out forwards;
}
.fade-up-d1 { animation-delay: 0.1s; }
.fade-up-d2 { animation-delay: 0.22s; }
.fade-up-d3 { animation-delay: 0.34s; }
@keyframes fadeUp {
  to { opacity: 1; transform: translateY(0); }
}

.islamic-pattern {
  background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23C99A2E' fill-opacity='0.4'%3E%3Cpath d='M30 0l6 12 12 6-12 6-6 12-6-12-12-6 12-6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  background-size: 40px 40px;
}

.section-title {
  display: flex; align-items: center; justify-content: center; gap: 1rem;
}
.section-title h2 {
  font-size: 1.5rem; font-weight: 800; color: var(--navy);
  position: relative; white-space: nowrap;
}
.section-title::before,
.section-title::after {
  content: ''; display: block; width: 48px; height: 2px;
  border-radius: 2px;
}
.section-title::before { background: linear-gradient(to left, var(--gold), transparent); }
.section-title::after { background: linear-gradient(to right, var(--gold), transparent); }
html[dir='ltr'] .section-title::before { background: linear-gradient(to right, var(--gold), transparent); }
html[dir='ltr'] .section-title::after { background: linear-gradient(to left, var(--gold), transparent); }
@media (min-width: 640px) {
  .section-title h2 { font-size: 1.75rem; }
  .section-title::before, .section-title::after { width: 72px; }
}

/* Specialty cards (homepage) */
.specialty-card {
  background: white;
  border-radius: 1rem;
  padding: 1.35rem 0.85rem;
  text-align: center;
  min-height: 7.5rem;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  box-shadow: 0 8px 28px rgba(8, 38, 74, 0.07);
  border: 1px solid rgba(201, 154, 46, 0.28);
  transition: all 0.3s ease;
  cursor: pointer;
  text-decoration: none;
  color: inherit;
}
.specialty-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 16px 36px rgba(8, 38, 74, 0.12);
  border-color: var(--gold);
}
.specialty-icon {
  width: 3rem; height: 3rem; margin: 0 auto 0.75rem;
  display: flex; align-items: center; justify-content: center;
  border-radius: 0.75rem;
  background: rgba(201, 154, 46, 0.1);
  color: var(--gold);
  font-size: 1.2rem;
  transition: all 0.3s ease;
}
.specialty-card:hover .specialty-icon {
  background: var(--navy);
  color: var(--gold);
  transform: scale(1.08);
}
.specialty-card h3 {
  font-size: 0.8rem; font-weight: 700; color: var(--navy); line-height: 1.45;
}
@media (min-width: 640px) {
  .specialty-card { padding: 1.5rem 1rem; }
  .specialty-card h3 { font-size: 0.9rem; }
  .specialty-icon { width: 3.25rem; height: 3.25rem; font-size: 1.35rem; }
}

/* Home specialties — image cards (same as specialties page) */
.home-specs-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.85rem;
}
@media (min-width: 640px) {
  .home-specs-grid { grid-template-columns: repeat(3, 1fr); gap: 1rem; }
}
@media (min-width: 1024px) {
  .home-specs-grid { grid-template-columns: repeat(4, 1fr); gap: 1.1rem; }
}
.home-specs-section .spec-card { min-height: 200px; }
.home-specs-section .spec-card-icon { width: 5rem; height: 5rem; }
.home-specs-section .spec-card-icon i, .home-specs-section .spec-card-icon iconify-icon {
  font-size: 1.75rem;
  color: var(--navy);
}

/* ---------- Specialties page ---------- */
.specs-page {
  position: relative;
  background:
    radial-gradient(ellipse 55% 40% at 12% 18%, rgba(201, 154, 46, 0.12), transparent 60%),
    radial-gradient(ellipse 50% 45% at 88% 22%, rgba(8, 38, 74, 0.08), transparent 58%),
    radial-gradient(ellipse 45% 40% at 70% 78%, rgba(90, 160, 210, 0.1), transparent 55%),
    radial-gradient(ellipse 40% 35% at 18% 85%, rgba(201, 154, 46, 0.08), transparent 50%),
    linear-gradient(180deg, #f3f6fb 0%, #f7f8fa 40%, #eef3f9 100%);
  padding-bottom: 5rem;
  overflow: hidden;
}
.specs-page::before,
.specs-page::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
  filter: blur(2px);
}
.specs-page::before {
  width: 280px;
  height: 280px;
  top: 8%;
  inset-inline-start: -60px;
  background: radial-gradient(circle, rgba(201, 154, 46, 0.16), transparent 70%);
  animation: specsFloat 12s ease-in-out infinite;
}
.specs-page::after {
  width: 320px;
  height: 320px;
  bottom: 12%;
  inset-inline-end: -80px;
  background: radial-gradient(circle, rgba(8, 38, 74, 0.1), transparent 70%);
  animation: specsFloat 14s ease-in-out infinite reverse;
}
.specs-page > * { position: relative; z-index: 1; }

@keyframes specsFloat {
  0%, 100% { transform: translateY(0) scale(1); opacity: 0.85; }
  50% { transform: translateY(-18px) scale(1.06); opacity: 1; }
}

.specs-hero {
  position: relative;
  padding: 2.5rem 0 1.5rem;
  overflow: hidden;
}
.specs-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  opacity: 0.5;
  pointer-events: none;
  background-image:
    radial-gradient(circle, rgba(201, 154, 46, 0.4) 1px, transparent 1.5px),
    radial-gradient(circle, rgba(8, 38, 74, 0.18) 1px, transparent 1.5px);
  background-size: 22px 22px, 34px 34px;
  background-position: 0 0, 12px 10px;
  mask-image: radial-gradient(ellipse 60% 55% at 50% 40%, #000 12%, transparent 72%);
}
.specs-hero::after {
  content: '';
  position: absolute;
  width: 180px;
  height: 180px;
  top: 10%;
  inset-inline-end: 18%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(120, 180, 220, 0.18), transparent 70%);
  pointer-events: none;
  animation: specsFloat 10s ease-in-out infinite;
}
.specs-hero-inner {
  text-align: center;
  max-width: 36rem;
  margin: 0 auto;
  position: relative;
}
.specs-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: white;
  border-radius: 999px;
  padding: 0.45rem 1rem;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--navy);
  box-shadow: 0 8px 24px rgba(8, 38, 74, 0.08);
  margin-bottom: 1rem;
}
.specs-badge i, .specs-badge iconify-icon { color: var(--gold); }
.specs-title {
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  font-weight: 800;
  line-height: 1.25;
  letter-spacing: -0.02em;
}
.specs-title-gold {
  background: linear-gradient(135deg, #C99A2E 0%, #e0b84a 50%, #a67b1f 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.specs-title-navy { color: var(--navy); }
.specs-subtitle {
  margin-top: 0.9rem;
  font-size: 0.92rem;
  color: #6b7280;
  line-height: 1.85;
}
.specs-hero-decor {
  position: absolute;
  top: 50%;
  transform: translateY(-52%);
  width: min(22vw, 220px);
  pointer-events: none;
  z-index: 0;
  opacity: 0.95;
}
.specs-hero-decor img {
  width: 100%;
  height: auto;
  display: block;
  filter: drop-shadow(0 12px 24px rgba(8, 38, 74, 0.12));
}
.specs-hero-decor--laptop { inset-inline-start: 2%; }
.specs-hero-decor--books { inset-inline-end: 2%; }

.specs-grid-section { padding: 1rem 0 2rem; }
.specs-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.85rem;
}
@media (min-width: 640px) {
  .specs-grid { grid-template-columns: repeat(3, 1fr); gap: 1rem; }
}
@media (min-width: 900px) {
  .specs-grid { grid-template-columns: repeat(4, 1fr); }
}
@media (min-width: 1100px) {
  .specs-grid { grid-template-columns: repeat(6, 1fr); gap: 1.1rem; }
}

.spec-card {
  background: white;
  border-radius: 20px;
  padding: 1.35rem 0.85rem 1.15rem;
  text-align: center;
  box-shadow: 0 10px 30px rgba(8, 38, 74, 0.06);
  border: 1px solid rgba(8, 38, 74, 0.04);
  display: flex;
  flex-direction: column;
  align-items: center;
  min-height: 190px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  text-decoration: none;
  color: inherit;
  cursor: pointer;
}
.spec-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 36px rgba(8, 38, 74, 0.1);
}
.spec-card-icon {
  width: 4.5rem;
  height: 4.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.75rem;
}
.spec-card-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 6px 12px rgba(8, 38, 74, 0.1));
}
.spec-card-icon iconify-icon {
  font-size: 2rem;
  color: var(--gold);
}
.spec-card-title {
  font-size: 0.82rem;
  font-weight: 800;
  color: var(--navy);
  line-height: 1.45;
  margin-bottom: 0.85rem;
  flex: 1;
}
.spec-card-btn {
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  background: var(--gold);
  color: white;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  box-shadow: 0 6px 14px rgba(201, 154, 46, 0.35);
  transition: transform 0.25s ease, background 0.25s ease;
}
.spec-card-btn:hover {
  background: #b88922;
  transform: scale(1.08);
}
html[dir='ltr'] .spec-card-btn i, html[dir='ltr'] .spec-card-btn iconify-icon,
html[dir='ltr'] .specs-cta-btn i, html[dir='ltr'] .specs-cta-btn iconify-icon {
  transform: scaleX(-1);
}

.specs-cta {
  display: flex;
  justify-content: center;
  margin-top: 2.25rem;
}
.specs-cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  background: var(--navy);
  color: white;
  font-weight: 700;
  font-size: 0.95rem;
  padding: 0.95rem 1.9rem;
  border-radius: 999px;
  box-shadow: 0 12px 28px rgba(8, 38, 74, 0.22);
  transition: transform 0.25s ease, background 0.25s ease;
}
.specs-cta-btn:hover {
  background: #0a3260;
  transform: translateY(-3px);
}
.specs-cta-btn i, .specs-cta-btn iconify-icon { color: var(--gold); }

@media (max-width: 899px) {
  .specs-hero-decor { display: none; }
  .specs-hero { padding-top: 2rem; }
}
@media (min-width: 1100px) {
  .spec-card { min-height: 200px; padding: 1.5rem 0.75rem 1.25rem; }
  .spec-card-icon { width: 5rem; height: 5rem; }
  .spec-card-title { font-size: 0.88rem; }
}

/* ---------- Why Choose Kubbe ---------- */
.why-section {
  position: relative;
  padding: 3.5rem 0 4rem;
  overflow: hidden;
  background:
    radial-gradient(ellipse 50% 40% at 8% 12%, rgba(201, 154, 46, 0.06), transparent 60%),
    radial-gradient(ellipse 45% 35% at 92% 88%, rgba(8, 38, 74, 0.05), transparent 55%),
    var(--bg-light);
}
.why-section::before {
  content: '';
  position: absolute;
  inset: 0;
  opacity: 0.035;
  pointer-events: none;
  background-image:
    linear-gradient(30deg, #08264A 1px, transparent 1px),
    linear-gradient(150deg, #08264A 1px, transparent 1px);
  background-size: 28px 28px;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, #000 20%, transparent 75%);
}

.why-decor {
  position: absolute;
  width: 120px;
  height: 120px;
  border-radius: 50%;
  filter: blur(2px);
  opacity: 0.18;
  pointer-events: none;
  z-index: 0;
}
.why-decor-cap {
  top: 6%;
  inset-inline-start: 2%;
  background: radial-gradient(circle at 40% 40%, #C99A2E, transparent 70%);
}
.why-decor-globe {
  bottom: 8%;
  inset-inline-end: 3%;
  background: radial-gradient(circle at 55% 45%, #08264A, transparent 70%);
}

.why-header {
  text-align: center;
  max-width: 40rem;
  margin: 0 auto 2.25rem;
}
.why-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  background: white;
  border-radius: 999px;
  padding: 0.45rem 1rem;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--navy);
  box-shadow: 0 8px 24px rgba(8, 38, 74, 0.08);
  margin-bottom: 1.15rem;
}
.why-badge-stars {
  display: inline-flex;
  gap: 0.12rem;
  color: var(--gold);
  font-size: 0.65rem;
}
.why-heading {
  font-size: clamp(1.55rem, 3.5vw, 2.35rem);
  font-weight: 800;
  color: var(--navy);
  line-height: 1.45;
}
.why-subtitle {
  margin-top: 0.85rem;
  font-size: 0.92rem;
  color: #6b7280;
  line-height: 1.8;
}
.why-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  margin-top: 1.35rem;
}
.why-divider::before,
.why-divider::after {
  content: '';
  width: 56px;
  height: 1px;
  background: linear-gradient(to left, rgba(201, 154, 46, 0.55), transparent);
}
.why-divider::after {
  background: linear-gradient(to right, rgba(201, 154, 46, 0.55), transparent);
}
.why-divider span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 0 4px rgba(201, 154, 46, 0.15);
}

.why-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.1rem;
}
@media (min-width: 768px) {
  .why-grid {
    grid-template-columns: repeat(6, 1fr);
    gap: 1.15rem;
  }
  .why-feature:nth-child(1),
  .why-feature:nth-child(2) { grid-column: span 3; }
  .why-feature:nth-child(3),
  .why-feature:nth-child(4),
  .why-feature:nth-child(5) { grid-column: span 2; }
  .why-feature:nth-child(6) {
    grid-column: 2 / span 4;
  }
}
@media (min-width: 1100px) {
  .why-feature:nth-child(6) {
    grid-column: 2 / span 4;
  }
}

.why-feature {
  position: relative;
  display: flex;
  align-items: stretch;
  gap: 0.5rem;
  background: white;
  border-radius: 24px;
  padding: 1.35rem 1.15rem 1.35rem 0.85rem;
  box-shadow: 0 12px 36px rgba(8, 38, 74, 0.07);
  border: 1px solid rgba(8, 38, 74, 0.04);
  overflow: hidden;
  min-height: 168px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.why-feature:hover {
  transform: translateY(-5px);
  box-shadow: 0 18px 44px rgba(8, 38, 74, 0.11);
}
.why-feature--featured {
  background: linear-gradient(145deg, #08264A 0%, #0c3566 55%, #0a2d55 100%);
  border-color: transparent;
  color: #fff;
}
.why-feature--featured .why-feature-body,
.why-feature--featured h3,
.why-feature--featured p,
.why-feature--featured .why-feature-title-light {
  color: #fff !important;
}
.why-feature--featured p,
.why-feature--featured .why-feature-desc-light {
  color: rgba(255, 255, 255, 0.9) !important;
}
.why-feature--featured .why-feature-arrow {
  border-color: rgba(255, 255, 255, 0.45);
  color: #fff;
}
.why-feature--featured .why-feature-arrow:hover {
  background: var(--gold);
  border-color: var(--gold);
  color: #fff;
}

.why-feature-body {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  position: relative;
  z-index: 2;
  padding-inline-end: 0.25rem;
}
.why-feature-icon {
  width: 2.55rem;
  height: 2.55rem;
  border-radius: 50%;
  background: var(--navy);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
  margin-bottom: 0.85rem;
  flex-shrink: 0;
}
.why-feature-icon--gold {
  background: var(--gold);
}
.why-feature h3 {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--navy);
  margin-bottom: 0.4rem;
  line-height: 1.35;
}
.why-feature p {
  font-size: 0.8rem;
  color: #6b7280;
  line-height: 1.7;
  margin-bottom: 0.85rem;
  max-width: 15rem;
}
.why-feature--sm h3 { font-size: 0.95rem; }
.why-feature--sm p { font-size: 0.74rem; max-width: 11rem; }
.why-feature--sm { min-height: 150px; padding: 1.15rem 0.9rem 1.15rem 0.65rem; }
.why-feature--wide { min-height: 160px; }

.why-feature-arrow {
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  border: 1.5px solid rgba(201, 154, 46, 0.55);
  color: var(--gold);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  margin-top: auto;
  transition: all 0.25s ease;
}
.why-feature-arrow:hover {
  background: var(--gold);
  color: white;
  border-color: var(--gold);
}
html[dir='ltr'] .why-feature-arrow i, html[dir='ltr'] .why-feature-arrow iconify-icon,
html[dir='ltr'] .why-cta-btn i, html[dir='ltr'] .why-cta-btn iconify-icon {
  transform: scaleX(-1);
}

.why-feature-visual {
  flex: 0 0 42%;
  max-width: 190px;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  position: relative;
  z-index: 1;
  pointer-events: none;
}
.why-feature-visual img {
  width: 100%;
  max-height: 150px;
  object-fit: contain;
  object-position: bottom center;
  background: transparent;
  filter: drop-shadow(0 10px 18px rgba(8, 38, 74, 0.12));
  transform: translateY(6px) scale(1.08);
  transition: transform 0.35s ease;
}
.why-feature:hover .why-feature-visual img {
  transform: translateY(2px) scale(1.12);
}
.why-feature--sm .why-feature-visual {
  flex-basis: 40%;
  max-width: 130px;
}
.why-feature--sm .why-feature-visual img {
  max-height: 115px;
}
.why-feature--wide .why-feature-visual {
  flex-basis: 38%;
  max-width: 220px;
}
.why-feature--wide .why-feature-visual img {
  max-height: 140px;
}
.why-feature--featured .why-feature-visual img {
  max-height: 155px;
}

.why-cta {
  display: flex;
  justify-content: center;
  margin-top: 2rem;
}
.why-cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  background: var(--navy);
  color: white;
  font-weight: 700;
  font-size: 0.95rem;
  padding: 0.9rem 1.85rem;
  border-radius: 999px;
  box-shadow: 0 12px 28px rgba(8, 38, 74, 0.22);
  transition: transform 0.25s ease, background 0.25s ease, box-shadow 0.25s ease;
}
.why-cta-btn:hover {
  background: #0a3260;
  transform: translateY(-3px);
  box-shadow: 0 16px 34px rgba(8, 38, 74, 0.28);
}

@media (max-width: 639px) {
  .why-feature {
    flex-direction: row;
    min-height: auto;
  }
  .why-feature-visual {
    flex-basis: 38%;
    max-width: 120px;
  }
  .why-feature-visual img { max-height: 110px; }
  .why-feature p { max-width: none; }
  .why-decor { display: none; }
}

/* Course slider */
.slider-shell { position: relative; }
.slider-track {
  display: flex; gap: 1.25rem;
  overflow-x: auto; scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  padding: 0.5rem 0.25rem 1.25rem;
  -ms-overflow-style: none; scrollbar-width: none;
}
.slider-track::-webkit-scrollbar { display: none; }
.course-slide {
  flex: 0 0 min(78%, 280px);
  scroll-snap-align: start;
  background: white;
  border-radius: 1rem;
  overflow: hidden;
  border: 1px solid rgba(201, 154, 46, 0.18);
  box-shadow: 0 10px 28px rgba(8, 38, 74, 0.08);
  transition: transform 0.3s, box-shadow 0.3s;
}
@media (min-width: 768px) {
  .course-slide { flex-basis: 300px; }
}
.course-slide:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 36px rgba(8, 38, 74, 0.14);
}
.course-slide img {
  width: 100%; height: 160px; object-fit: cover;
  transition: transform 0.5s;
}
.course-slide:hover img { transform: scale(1.05); }
.slider-btn {
  position: absolute; top: 40%;
  width: 2.75rem; height: 2.75rem;
  border-radius: 9999px;
  background: white; color: var(--navy);
  border: 1px solid rgba(201, 154, 46, 0.35);
  box-shadow: 0 8px 20px rgba(8, 38, 74, 0.12);
  display: flex; align-items: center; justify-content: center;
  z-index: 5; cursor: pointer; transition: all 0.2s;
}
.slider-btn:hover { background: var(--navy); color: white; }
.slider-btn.prev { inset-inline-start: -0.4rem; }
.slider-btn.next { inset-inline-end: -0.4rem; }
@media (max-width: 639px) {
  .slider-btn { display: none; }
}

/* Partners — infinite marquee */
.partners-marquee {
  position: relative;
  overflow: hidden;
  width: 100%;
  mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
}
.partners-marquee__fade {
  display: none;
}
.partners-marquee__track {
  display: flex;
  width: max-content;
  gap: 0;
  padding: 0.5rem 0 1rem;
  animation: partners-marquee 35s linear infinite;
  will-change: transform;
}
.partners-marquee:hover .partners-marquee__track,
.partners-marquee:focus-within .partners-marquee__track {
  animation-play-state: paused;
}
.partners-marquee__group {
  display: flex;
  flex-shrink: 0;
  gap: 1rem;
  align-items: center;
  padding-inline-end: 1rem;
}
html[dir='rtl'] .partners-marquee__track {
  animation-name: partners-marquee-rtl;
}
@keyframes partners-marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
@keyframes partners-marquee-rtl {
  from { transform: translateX(0); }
  to { transform: translateX(50%); }
}
@media (prefers-reduced-motion: reduce) {
  .partners-marquee__track {
    animation: none;
    flex-wrap: wrap;
    width: 100%;
    max-width: 80rem;
    margin-inline: auto;
    padding-inline: 1rem;
    justify-content: center;
  }
  .partners-marquee__group[aria-hidden='true'] { display: none; }
  .partners-marquee {
    mask-image: none;
    -webkit-mask-image: none;
  }
}
.partner-card {
  flex: 0 0 170px;
  height: 100px;
  background: white;
  border-radius: 1rem;
  border: 1px solid rgba(201, 154, 46, 0.2);
  box-shadow: 0 6px 20px rgba(8, 38, 74, 0.06);
  display: flex; align-items: center; justify-content: center;
  padding: 0.75rem 1rem;
  transition: transform 0.25s, border-color 0.25s, box-shadow 0.25s;
}
.partner-card:hover {
  transform: translateY(-4px);
  border-color: var(--gold);
  box-shadow: 0 10px 28px rgba(8, 38, 74, 0.1);
}
.partner-card img {
  max-height: 64px;
  max-width: 130px;
  width: auto;
  height: auto;
  object-fit: contain;
}
@media (max-width: 639px) {
  .partner-card {
    flex-basis: 140px;
    height: 88px;
  }
  .partner-card img {
    max-height: 52px;
    max-width: 110px;
  }
  .partners-marquee__track {
    animation-duration: 28s;
  }
}

/* Footer university */
.site-footer {
  background: #061A33;
  color: rgba(255, 255, 255, 0.85);
  padding: 3.25rem 0 2.5rem;
  position: relative;
  overflow: hidden;
}
.site-footer::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 90% 0%, rgba(201,154,46,0.12), transparent 42%),
    radial-gradient(circle at 8% 100%, rgba(201,154,46,0.08), transparent 36%);
  pointer-events: none;
}
@media (min-width: 1024px) {
  .site-footer { padding-bottom: 2.75rem; }
}
.footer-inner { position: relative; z-index: 1; }
.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.25rem;
}
@media (min-width: 640px) {
  .footer-grid { grid-template-columns: 1.4fr 1fr; }
}
@media (min-width: 1024px) {
  .footer-grid { grid-template-columns: 1.5fr 1fr 1fr; gap: 2.5rem; }
}

.footer-logos {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.15rem;
  flex-wrap: wrap;
}
.footer-logo-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.footer-logo-link:hover { transform: translateY(-2px); opacity: 0.92; }
.footer-logo {
  height: 4.25rem;
  width: auto;
  max-width: 160px;
  object-fit: contain;
  display: block;
  background: transparent;
  /* logos are white-on-black assets — blend black away on dark footer */
  mix-blend-mode: screen;
  filter: drop-shadow(0 2px 8px rgba(0,0,0,0.15));
}
@media (min-width: 768px) {
  .footer-logo { height: 5rem; max-width: 180px; }
}
.footer-logo-divider {
  width: 1px;
  height: 3.25rem;
  background: linear-gradient(to bottom, transparent, rgba(201,154,46,0.65), transparent);
  flex-shrink: 0;
}
.footer-about {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.85;
  color: rgba(255, 255, 255, 0.72);
  max-width: 28rem;
  font-weight: 600;
}
.footer-social {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-top: 1.25rem;
}
.footer-social a {
  width: 2.35rem;
  height: 2.35rem;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,0.08);
  color: #fff !important;
  border: 1px solid rgba(255,255,255,0.12);
  font-size: 0.85rem;
  transition: background 0.2s, color 0.2s, border-color 0.2s, transform 0.2s;
}
.footer-social a:hover {
  background: var(--gold);
  border-color: var(--gold);
  color: #08264A !important;
  transform: translateY(-2px);
}

.site-footer a { color: rgba(255, 255, 255, 0.78); transition: color 0.2s; }
.site-footer a:hover { color: var(--gold); }
.footer-title {
  color: white; font-weight: 800; margin: 0 0 1.15rem;
  position: relative; display: inline-block;
  font-size: 1.05rem;
}
.footer-title::after {
  content: ''; position: absolute; bottom: -7px; inset-inline-start: 0;
  width: 2.25rem; height: 2px; background: var(--gold); border-radius: 2px;
}
.footer-links,
.footer-contact {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.7rem;
}
.footer-links a {
  font-size: 0.9rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}
.footer-links a::before {
  content: '';
  width: 0.35rem;
  height: 0.35rem;
  border-radius: 50%;
  background: rgba(201,154,46,0.7);
  flex-shrink: 0;
}
.footer-contact li {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: rgba(255,255,255,0.78);
}
.footer-contact i, .footer-contact iconify-icon {
  color: var(--gold);
  margin-top: 0.2rem;
  width: 1rem;
  text-align: center;
  flex-shrink: 0;
}
.footer-bottom {
  margin-top: 2.5rem;
  padding-top: 1.35rem;
  border-top: 1px solid rgba(255,255,255,0.1);
  text-align: center;
}
.footer-bottom p {
  margin: 0;
  font-size: 0.84rem;
  font-weight: 600;
  color: rgba(255,255,255,0.55);
}

.footer-map {
  width: 100%; height: 160px; border: 0; border-radius: 0.85rem;
  filter: grayscale(0.2) contrast(1.05);
}
.newsletter-form {
  display: flex; gap: 0.5rem; margin-top: 0.75rem;
}
.newsletter-form input {
  flex: 1; border-radius: 0.65rem; border: 0;
  padding: 0.7rem 0.9rem; font-family: inherit; font-size: 0.875rem;
  color: var(--navy);
}
.newsletter-form button {
  background: var(--gold); color: white; border: 0;
  border-radius: 0.65rem; padding: 0.7rem 1rem;
  font-weight: 700; cursor: pointer; white-space: nowrap;
}

.reveal {
  opacity: 0; transform: translateY(28px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal-delay-1 { transition-delay: 0.08s; }
.reveal-delay-2 { transition-delay: 0.16s; }
.reveal-delay-3 { transition-delay: 0.24s; }
.reveal-delay-4 { transition-delay: 0.32s; }

/* Mobile bottom navigation — floating dock */
.m-bottomnav {
  position: fixed;
  z-index: 45;
  inset-inline: 0.75rem;
  bottom: max(0.65rem, env(safe-area-inset-bottom, 0px));
  pointer-events: none;
}
.m-bottomnav__inner {
  pointer-events: auto;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  align-items: end;
  gap: 0.15rem;
  padding: 0.45rem 0.35rem 0.55rem;
  border-radius: 1.35rem;
  background: rgba(8, 38, 74, 0.94);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow:
    0 12px 32px rgba(8, 38, 74, 0.35),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(201, 154, 46, 0.18);
}
.m-bottomnav__item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.2rem;
  min-height: 3.1rem;
  padding: 0.2rem 0.15rem;
  border: 0;
  background: transparent;
  color: rgba(255, 255, 255, 0.55);
  text-decoration: none;
  font: inherit;
  cursor: pointer;
  position: relative;
  transition: color 0.2s ease, transform 0.2s ease;
}
.m-bottomnav__ico {
  display: grid;
  place-items: center;
  width: 1.55rem;
  height: 1.55rem;
  font-size: 1.2rem;
  line-height: 1;
}
.m-bottomnav__label {
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  line-height: 1.2;
  white-space: nowrap;
}
.m-bottomnav__item:hover,
.m-bottomnav__item:focus-visible {
  color: #fff;
  outline: none;
}
.m-bottomnav__item.is-active {
  color: #C99A2E;
}
.m-bottomnav__item.is-active::after {
  content: '';
  position: absolute;
  bottom: 0.12rem;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: #C99A2E;
  box-shadow: 0 0 0 3px rgba(201, 154, 46, 0.2);
}
.m-bottomnav__item--center {
  transform: translateY(-0.55rem);
}
.m-bottomnav__fab {
  width: 3.05rem;
  height: 3.05rem;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: linear-gradient(145deg, #d4a935 0%, #C99A2E 55%, #a67b1f 100%);
  color: #08264A;
  font-size: 1.35rem;
  box-shadow:
    0 8px 18px rgba(201, 154, 46, 0.45),
    inset 0 1px 0 rgba(255, 255, 255, 0.35);
  border: 3px solid rgba(8, 38, 74, 0.95);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.m-bottomnav__item--center .m-bottomnav__label {
  margin-top: 0.15rem;
  color: rgba(255, 255, 255, 0.7);
}
.m-bottomnav__item--center.is-active .m-bottomnav__label,
.m-bottomnav__item--center:hover .m-bottomnav__label {
  color: #C99A2E;
}
.m-bottomnav__item--center:hover .m-bottomnav__fab,
.m-bottomnav__item--center.is-active .m-bottomnav__fab {
  transform: scale(1.05);
  box-shadow:
    0 10px 22px rgba(201, 154, 46, 0.55),
    inset 0 1px 0 rgba(255, 255, 255, 0.4);
}
.m-bottomnav__item--center.is-active::after { display: none; }

@media (min-width: 1024px) {
  .m-bottomnav { display: none !important; }
}
body {
  padding-bottom: 0;
}
@media (max-width: 1023px) {
  body {
    padding-bottom: calc(5.75rem + env(safe-area-inset-bottom, 0px));
  }
  .site-footer {
    padding-bottom: 2.5rem;
  }
}

.lang-menu {
  position: absolute; top: calc(100% + 0.4rem); inset-inline-end: 0;
  min-width: 9rem; background: white; color: var(--navy);
  border-radius: 0.75rem; box-shadow: 0 10px 30px rgba(8, 38, 74, 0.15);
  padding: 0.35rem; z-index: 60; list-style: none; margin: 0;
}
.lang-option {
  display: block; width: 100%; text-align: start;
  padding: 0.6rem 0.85rem; border-radius: 0.5rem;
  font-weight: 700; font-size: 0.875rem; color: var(--navy);
  background: transparent; border: none; cursor: pointer;
}
.lang-option:hover, .lang-option.active { background: var(--bg-light); color: var(--gold); }
.lang-chip {
  padding: 0.55rem 0.4rem; border-radius: 0.6rem; font-size: 0.75rem; font-weight: 700;
  border: 1px solid #e5e7eb; background: white; color: var(--navy); cursor: pointer;
}
.lang-chip.active, .lang-chip:hover { background: var(--navy); color: white; border-color: var(--navy); }

.topbar-inner { direction: ltr; }
.topbar-inner nav { direction: rtl; }
html[dir='ltr'] .topbar-inner nav { direction: ltr; }
.mobile-header-bar { direction: ltr; }

.drawer-panel {
  left: 0; right: auto;
  transform: translateX(-100%);
  transition: transform 0.3s ease;
}
#mobile-drawer.open { transform: translateX(0); }
#drawer-overlay.open { display: block; opacity: 1; }
#site-header.scrolled { box-shadow: 0 4px 20px rgba(8, 38, 74, 0.1); }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

a:focus-visible, button:focus-visible {
  outline: 2px solid var(--gold); outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal, .fade-up, .btn-float {
    animation: none !important; opacity: 1; transform: none !important; transition: none;
  }
  .specs-page::before,
  .specs-page::after,
  .specs-hero::after {
    animation: none !important;
  }
}

/* Mobile header logos */
.mobile-header-logo {
  height: 3.65rem;
  max-height: 3.65rem;
}

/* Desktop login button */
.header-login-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  background: var(--navy);
  color: white;
  font-size: 0.82rem;
  font-weight: 700;
  padding: 0.55rem 1rem;
  border-radius: 0.75rem;
  transition: background 0.2s ease, transform 0.2s ease;
  white-space: nowrap;
}
.header-login-btn:hover {
  background: #0a3260;
  transform: translateY(-1px);
  color: white;
}
.header-login-btn.active,
.header-login-btn.active:hover {
  background: var(--gold);
}

/* Login page */
.login-page {
  min-height: calc(100vh - 10rem);
  background:
    radial-gradient(ellipse 50% 40% at 15% 20%, rgba(201, 154, 46, 0.1), transparent 60%),
    radial-gradient(ellipse 45% 40% at 85% 80%, rgba(8, 38, 74, 0.08), transparent 55%),
    var(--bg-light);
}
.login-card {
  background: white;
  border-radius: 1.5rem;
  padding: 2rem 1.5rem;
  box-shadow: 0 16px 40px rgba(8, 38, 74, 0.08);
  border: 1px solid rgba(8, 38, 74, 0.05);
}
.login-card-logos {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}
.login-title {
  text-align: center;
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--navy);
}
.login-subtitle {
  text-align: center;
  margin-top: 0.5rem;
  margin-bottom: 1.75rem;
  font-size: 0.9rem;
  color: #6b7280;
  line-height: 1.7;
}
.login-form { display: flex; flex-direction: column; gap: 1rem; }
.login-field {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--navy);
}
.login-field input {
  border: 1px solid rgba(8, 38, 74, 0.12);
  border-radius: 0.85rem;
  padding: 0.8rem 1rem;
  font-family: inherit;
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--navy);
  background: #f8fafc;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.login-field input:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(201, 154, 46, 0.15);
  background: white;
}
.login-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  font-size: 0.8rem;
}
.login-remember {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: #4b5563;
  font-weight: 600;
  cursor: pointer;
}
.login-forgot {
  color: var(--gold);
  font-weight: 700;
}
.login-forgot:hover { text-decoration: underline; }
.login-submit {
  margin-top: 0.5rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  width: 100%;
  background: var(--navy);
  color: white;
  font-weight: 700;
  font-size: 0.95rem;
  padding: 0.9rem 1.25rem;
  border-radius: 0.9rem;
  border: none;
  cursor: pointer;
  transition: background 0.2s, transform 0.2s;
}
.login-submit:hover {
  background: #0a3260;
  transform: translateY(-2px);
}
html[dir='ltr'] .login-submit i, html[dir='ltr'] .login-submit iconify-icon { transform: scaleX(-1); }

.login-error {
  background: rgba(185, 28, 28, 0.1);
  color: #b91c1c;
  border-radius: 0.75rem;
  padding: 0.75rem 0.9rem;
  font-size: 0.88rem;
  font-weight: 700;
  margin-bottom: 1rem;
}
.login-hint {
  background: rgba(201, 154, 46, 0.12);
  color: #9a7420;
  border-radius: 0.75rem;
  padding: 0.7rem 0.9rem;
  font-size: 0.82rem;
  font-weight: 700;
  margin-bottom: 1rem;
}
.login-demo {
  margin-top: 1.1rem;
  text-align: center;
  font-size: 0.78rem;
  color: #6b7280;
  font-weight: 600;
  line-height: 1.6;
}
.login-demo code {
  background: #f3f4f6;
  padding: 0.1rem 0.35rem;
  border-radius: 0.35rem;
  color: var(--navy);
  font-size: 0.75rem;
}

/* ---------- Trainers page ---------- */
.trainers-page {
  position: relative;
  overflow: hidden;
  padding-bottom: 5rem;
  background:
    radial-gradient(ellipse 60% 45% at 8% 12%, rgba(201, 154, 46, 0.14), transparent 58%),
    radial-gradient(ellipse 50% 40% at 92% 18%, rgba(8, 38, 74, 0.1), transparent 55%),
    radial-gradient(ellipse 45% 40% at 75% 72%, rgba(100, 165, 215, 0.12), transparent 55%),
    radial-gradient(ellipse 40% 35% at 15% 80%, rgba(201, 154, 46, 0.08), transparent 50%),
    linear-gradient(165deg, #eef3f9 0%, #f7f9fc 35%, #f3f6fb 70%, #e8eef6 100%);
}
.trainers-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}
.trainers-bg::before {
  content: '';
  position: absolute;
  inset: 0;
  opacity: 0.04;
  background-image:
    linear-gradient(30deg, #08264A 1px, transparent 1px),
    linear-gradient(150deg, #08264A 1px, transparent 1px);
  background-size: 32px 32px;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, #000 15%, transparent 75%);
}
.tb-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(12px);
  opacity: 0.8;
  animation: specsFloat 14s ease-in-out infinite;
}
.tb-1 { width: 360px; height: 360px; top: -50px; inset-inline-start: -100px; background: radial-gradient(circle, rgba(201,154,46,0.22), transparent 70%); }
.tb-2 { width: 320px; height: 320px; top: 16%; inset-inline-end: -80px; background: radial-gradient(circle, rgba(8,38,74,0.14), transparent 70%); animation-delay: -3s; }
.tb-3 { width: 280px; height: 280px; bottom: 20%; inset-inline-start: 6%; background: radial-gradient(circle, rgba(100,170,220,0.18), transparent 70%); animation-delay: -6s; }
.tb-4 { width: 340px; height: 340px; bottom: -60px; inset-inline-end: 8%; background: radial-gradient(circle, rgba(201,154,46,0.14), transparent 70%); animation-delay: -9s; }
.trainers-page > *:not(.trainers-bg) { position: relative; z-index: 1; }

.trainers-hero { padding: 1.5rem 0 0.5rem; }
.trainers-breadcrumb {
  display: flex; align-items: center; gap: 0.45rem;
  font-size: 0.82rem; font-weight: 700; color: #6b7280; margin-bottom: 1.25rem;
}
.trainers-breadcrumb a { color: var(--navy); }
.trainers-breadcrumb a:hover { color: var(--gold); }
.trainers-hero-row {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  min-height: auto;
  padding: 0.5rem 0 0.25rem;
}
.trainers-title {
  display: inline-flex; align-items: center; gap: 0.75rem;
  font-size: clamp(1.8rem, 4vw, 2.6rem); font-weight: 800; color: var(--navy);
}
.trainers-diamond { color: var(--gold); font-size: 0.7em; }
.trainers-subtitle { margin-top: 0.65rem; color: #6b7280; font-size: 0.95rem; }
@media (min-width: 900px) {
  .trainers-hero-row { padding: 0.75rem 0 0.5rem; }
}

.trainers-manager-wrap { padding: 1.5rem 0 2rem; }
.manager-card {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.35rem;
  background: white;
  border-radius: 1.35rem;
  padding: 1.65rem 1.5rem;
  box-shadow: 0 14px 36px rgba(8,38,74,0.07);
  border: 1px solid rgba(8,38,74,0.05);
}
@media (min-width: 768px) {
  .manager-card {
    grid-template-columns: 1.35fr auto 1fr;
    align-items: center;
    padding: 2rem 2.15rem;
    gap: 1.75rem;
  }
}
.manager-profile {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}
@media (max-width: 560px) {
  .manager-profile {
    flex-direction: column;
    text-align: center;
  }
  .manager-bio { text-align: center; }
}
.manager-avatar, .trainer-avatar, .modal-avatar {
  border-radius: 50%;
  background: #dbe7f3;
  background: color-mix(in srgb, var(--av, #08264A) 28%, white);
  color: var(--navy);
  display: flex; align-items: center; justify-content: center;
  font-weight: 800;
  position: relative; flex-shrink: 0;
  overflow: hidden;
  box-shadow:
    0 0 0 4px #fff,
    0 0 0 6px rgba(201,154,46,0.45),
    0 12px 28px rgba(8,38,74,0.14);
}
.manager-avatar {
  width: 8.5rem;
  height: 8.5rem;
  font-size: 2rem;
  overflow: visible;
}
.manager-avatar::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: color-mix(in srgb, var(--av, #C99A2E) 28%, white);
  z-index: 0;
}
.manager-avatar > span,
.manager-avatar > img {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  border-radius: 50%;
}
.manager-avatar > span {
  display: flex;
  align-items: center;
  justify-content: center;
}
@media (min-width: 768px) {
  .manager-avatar {
    width: 9.5rem;
    height: 9.5rem;
    font-size: 2.15rem;
  }
}
.manager-avatar img,
.trainer-avatar img,
.modal-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  border-radius: 50%;
  display: block;
}
.manager-avatar.has-photo span,
.trainer-avatar.has-photo span,
.modal-avatar.has-photo span { display: none; }
.manager-avatar i, .manager-avatar iconify-icon {
  position: absolute; bottom: 4px; inset-inline-end: 4px;
  width: 2rem; height: 2rem; border-radius: 50%;
  background: var(--gold); color: white;
  display: flex; align-items: center; justify-content: center; font-size: 0.78rem;
  border: 3px solid white;
  box-shadow: 0 4px 10px rgba(8,38,74,0.18);
  z-index: 2;
}
.manager-bio {
  font-size: 0.92rem;
  color: #5b6472;
  line-height: 1.85;
  margin: 0;
  flex: 1;
}
.manager-divider {
  width: 100%; height: 1px; background: linear-gradient(to left, transparent, rgba(201,154,46,0.55), transparent);
}
@media (min-width: 768px) {
  .manager-divider { width: 1px; height: 140px; background: linear-gradient(to bottom, transparent, rgba(201,154,46,0.55), transparent); }
}
.manager-info { text-align: start; }
.manager-label { color: var(--gold); font-weight: 800; font-size: 0.88rem; margin-bottom: 0.4rem; }
.manager-name { font-size: 1.4rem; font-weight: 800; color: var(--navy); line-height: 1.35; }
.manager-role { font-size: 0.9rem; color: #6b7280; margin-top: 0.35rem; line-height: 1.55; }
.manager-social, .trainer-social, .modal-social {
  display: flex; gap: 0.5rem; margin-top: 1rem;
}
.manager-social a, .trainer-social a, .modal-social a {
  width: 2.15rem; height: 2.15rem; border-radius: 50%;
  background: var(--navy); color: white;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 0.78rem; transition: background 0.2s, transform 0.2s;
}
.manager-social a:hover, .trainer-social a:hover, .modal-social a:hover {
  background: var(--gold); transform: translateY(-2px);
}

.team-heading {
  display: flex; align-items: center; justify-content: center; gap: 0.65rem;
  font-size: 1.35rem; font-weight: 800; color: var(--navy); margin-bottom: 1.25rem;
}
.trainer-filters {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 0.5rem; margin-bottom: 1.15rem;
}
.trainer-filter {
  border: none; cursor: pointer;
  background: #eef1f5; color: var(--navy);
  font-family: inherit; font-weight: 700; font-size: 0.8rem;
  padding: 0.55rem 1rem; border-radius: 999px;
  transition: background 0.2s, color 0.2s, transform 0.2s;
}
.trainer-filter:hover { transform: translateY(-1px); }
.trainer-filter.is-active { background: var(--navy); color: white; }

.trainer-toolbar {
  display: flex; flex-direction: column; gap: 0.75rem; margin-bottom: 1.35rem;
}
@media (min-width: 700px) {
  .trainer-toolbar { flex-direction: row; align-items: center; justify-content: space-between; }
}
.trainer-search {
  flex: 1; display: flex; align-items: center; gap: 0.6rem;
  background: white; border: 1px solid rgba(8,38,74,0.08);
  border-radius: 0.9rem; padding: 0.7rem 1rem;
  box-shadow: 0 6px 18px rgba(8,38,74,0.04);
}
.trainer-search i, .trainer-search iconify-icon { color: #9ca3af; }
.trainer-search input {
  border: none; outline: none; width: 100%; background: transparent;
  font-family: inherit; font-size: 0.9rem; color: var(--navy);
}
.trainer-sort {
  display: inline-flex; align-items: center; gap: 0.45rem;
  background: white; border: 1px solid rgba(8,38,74,0.08);
  border-radius: 0.9rem; padding: 0.55rem 0.9rem;
  font-size: 0.82rem; font-weight: 700; color: #6b7280;
}
.trainer-sort select {
  border: none; outline: none; background: transparent;
  font-family: inherit; font-weight: 800; color: var(--navy); cursor: pointer;
}

.trainers-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.15rem;
}
@media (min-width: 560px) { .trainers-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 900px) { .trainers-grid { grid-template-columns: repeat(3, 1fr); gap: 1.35rem; } }

.trainer-card {
  position: relative;
  background: white;
  border-radius: 1.35rem;
  padding: 1.75rem 1.15rem 1.25rem;
  text-align: center;
  border: 1.5px solid transparent;
  box-shadow: 0 12px 30px rgba(8,38,74,0.06);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}
.trainer-card:hover {
  transform: translateY(-5px);
  border-color: rgba(201,154,46,0.35);
  box-shadow: 0 16px 36px rgba(8,38,74,0.1);
}
.trainer-check {
  position: absolute; top: 0.75rem; inset-inline-end: 0.75rem;
  width: 1.4rem; height: 1.4rem; border-radius: 50%;
  background: var(--gold); color: white;
  display: flex; align-items: center; justify-content: center; font-size: 0.65rem;
}
.trainer-card .trainer-avatar {
  width: 7.25rem;
  height: 7.25rem;
  margin: 0.15rem auto 1rem;
  font-size: 1.55rem;
}
@media (min-width: 900px) {
  .trainer-card .trainer-avatar {
    width: 8rem;
    height: 8rem;
    font-size: 1.7rem;
  }
}
.trainer-tag {
  display: inline-block; font-size: 0.7rem; font-weight: 800;
  padding: 0.28rem 0.7rem; border-radius: 999px; margin-bottom: 0.6rem;
}
.tag-health { background: #fde2e4; color: #b44a55; }
.tag-it { background: #dcebff; color: #2f6fad; }
.tag-lang { background: #d8f3e7; color: #2f8a68; }
.tag-design { background: #f0e2ff; color: #7a4aa8; }
.tag-business { background: #fff0cc; color: #9a7420; }
.tag-science { background: #d9f0ff; color: #2f7aa8; }
.trainer-name { font-size: 1.02rem; font-weight: 800; color: var(--navy); }
.trainer-role { font-size: 0.78rem; color: #6b7280; margin-top: 0.35rem; line-height: 1.55; min-height: 2.4em; }
.trainer-years { font-size: 0.76rem; color: #9ca3af; font-weight: 700; margin: 0.5rem 0 0.75rem; }
.trainer-card .trainer-social { justify-content: center; margin-top: 0; margin-bottom: 0.85rem; }
.trainer-card .trainer-social a { width: 1.75rem; height: 1.75rem; font-size: 0.68rem; background: #eef2f6; color: var(--navy); }
.trainer-card .trainer-social a:hover { background: var(--navy); color: white; }
.trainer-view-btn {
  width: 100%; border: none; cursor: pointer;
  background: var(--navy); color: white;
  font-family: inherit; font-weight: 700; font-size: 0.82rem;
  padding: 0.65rem 0.75rem; border-radius: 0.75rem;
  transition: background 0.2s, transform 0.2s;
}
.trainer-view-btn:hover { background: #0a3260; }

.trainers-empty { text-align: center; color: #6b7280; padding: 2rem; font-weight: 700; }
.trainers-more { display: flex; justify-content: center; margin-top: 1.75rem; }
.trainers-more-btn {
  border: none; cursor: pointer;
  background: var(--navy); color: white;
  font-family: inherit; font-weight: 700; font-size: 0.9rem;
  padding: 0.8rem 1.6rem; border-radius: 999px;
  box-shadow: 0 10px 24px rgba(8,38,74,0.18);
  transition: transform 0.2s, background 0.2s;
}
.trainers-more-btn:hover { background: #0a3260; transform: translateY(-2px); }

body.modal-open { overflow: hidden; }
.trainer-modal[hidden] { display: none !important; }
.trainer-modal {
  position: fixed; inset: 0; z-index: 80;
  display: flex; align-items: center; justify-content: center;
  padding: 1rem;
}
.trainer-modal-backdrop {
  position: absolute; inset: 0; background: rgba(8,38,74,0.55); backdrop-filter: blur(3px);
}
.trainer-modal-dialog {
  position: relative; z-index: 1;
  width: min(960px, 100%);
  max-height: min(90vh, 820px);
  overflow: auto;
  background: white;
  border-radius: 1.35rem;
  display: grid;
  grid-template-columns: 1fr;
  box-shadow: 0 24px 60px rgba(8,38,74,0.25);
}
@media (min-width: 860px) {
  .trainer-modal-dialog { grid-template-columns: 320px 1fr; overflow: hidden; }
  .trainer-modal-main { overflow: auto; max-height: min(90vh, 820px); }
}
.trainer-modal-close {
  position: absolute; top: 0.85rem; inset-inline-end: 0.85rem; z-index: 2;
  width: 2.1rem; height: 2.1rem; border-radius: 50%;
  border: none; background: rgba(255,255,255,0.2); color: white;
  cursor: pointer; display: flex; align-items: center; justify-content: center;
}
@media (min-width: 860px) {
  .trainer-modal-close { background: #eef2f6; color: var(--navy); }
}
.trainer-modal-side {
  background: linear-gradient(165deg, #08264A 0%, #0c3566 100%);
  color: white; padding: 2.25rem 1.5rem 1.65rem; text-align: center;
}
.modal-avatar {
  width: 8.5rem;
  height: 8.5rem;
  margin: 0.25rem auto 1.1rem;
  color: var(--navy);
  font-size: 1.85rem;
  box-shadow:
    0 0 0 4px rgba(255,255,255,0.95),
    0 0 0 7px rgba(201,154,46,0.55),
    0 14px 30px rgba(0,0,0,0.25);
}
.modal-tag {
  display: inline-block; font-size: 0.72rem; font-weight: 800;
  padding: 0.28rem 0.75rem; border-radius: 999px; margin-bottom: 0.7rem;
}
.trainer-modal-side h2 { font-size: 1.25rem; font-weight: 800; }
.trainer-modal-side > p { font-size: 0.8rem; color: rgba(255,255,255,0.75); margin-top: 0.3rem; }
.modal-meta {
  text-align: start; margin-top: 1.25rem; display: grid; gap: 0.65rem; font-size: 0.8rem;
}
.modal-meta li { display: flex; align-items: center; gap: 0.55rem; }
.modal-meta i, .modal-meta iconify-icon { color: var(--gold); width: 1rem; }
.modal-contact { margin-top: 1.35rem; text-align: start; }
.modal-contact p { font-size: 0.82rem; font-weight: 700; margin-bottom: 0.55rem; }
.modal-social a { background: rgba(255,255,255,0.12); }

.trainer-modal-main { padding: 1.25rem 1.15rem 1.5rem; }
.modal-tabs {
  display: flex; gap: 0.35rem; overflow-x: auto; padding-bottom: 0.75rem;
  border-bottom: 1px solid rgba(8,38,74,0.08); margin-bottom: 1rem;
  -ms-overflow-style: none; scrollbar-width: none;
}
.modal-tabs::-webkit-scrollbar { display: none; }
.modal-tab {
  flex-shrink: 0; border: none; cursor: pointer; background: transparent;
  font-family: inherit; font-size: 0.78rem; font-weight: 700; color: #6b7280;
  padding: 0.45rem 0.7rem; border-radius: 0.6rem; white-space: nowrap;
}
.modal-tab.is-active { background: rgba(8,38,74,0.08); color: var(--navy); }
.modal-panel { display: none; }
.modal-panel.is-active { display: block; }
.modal-panel h3 { font-size: 1rem; font-weight: 800; color: var(--navy); margin-bottom: 0.65rem; }
.modal-panel h4 { font-size: 0.88rem; font-weight: 800; color: var(--navy); margin: 1rem 0 0.55rem; }
.modal-panel p { font-size: 0.88rem; color: #5b6472; line-height: 1.8; }
.modal-split { display: grid; gap: 1rem; }
@media (min-width: 700px) { .modal-split { grid-template-columns: 1fr 1fr; gap: 1.5rem; } }

.skill-row { margin-bottom: 0.7rem; }
.skill-top { display: flex; justify-content: space-between; font-size: 0.78rem; font-weight: 700; color: var(--navy); margin-bottom: 0.3rem; }
.skill-track { height: 0.45rem; background: #eef2f6; border-radius: 999px; overflow: hidden; }
.skill-track span { display: block; height: 100%; background: linear-gradient(to left, var(--gold), #e0b84a); border-radius: 999px; }

.check-list, .dot-list { display: grid; gap: 0.45rem; }
.check-list li, .dot-list li {
  font-size: 0.82rem; color: #4b5563; line-height: 1.55;
  padding-inline-start: 1.2rem; position: relative;
}
.check-list li::before {
  content: '\f00c'; font-family: 'Font Awesome 6 Free'; font-weight: 900;
  position: absolute; inset-inline-start: 0; color: var(--gold); font-size: 0.7rem;
}
.dot-list li::before {
  content: ''; position: absolute; inset-inline-start: 0.15rem; top: 0.55rem;
  width: 0.35rem; height: 0.35rem; border-radius: 50%; background: var(--gold);
}
.timeline-list { display: grid; gap: 0.85rem; border-inline-start: 2px solid rgba(201,154,46,0.35); padding-inline-start: 1rem; }
.timeline-list li { position: relative; }
.timeline-list li::before {
  content: ''; position: absolute; inset-inline-start: calc(-1rem - 5px); top: 0.35rem;
  width: 0.55rem; height: 0.55rem; border-radius: 50%; background: var(--gold);
  border: 2px solid white; box-shadow: 0 0 0 2px rgba(201,154,46,0.35);
}
.timeline-list strong { display: block; font-size: 0.82rem; color: var(--navy); }
.timeline-list span { font-size: 0.75rem; color: #9ca3af; }
.modal-rating { text-align: center; padding: 1.5rem 0; }
.rating-value { font-size: 2.5rem; font-weight: 800; color: var(--navy); display: block; }
.rating-stars { color: var(--gold); margin: 0.4rem 0 0.75rem; letter-spacing: 0.15rem; }

/* ---------- News page ---------- */
.news-page {
  position: relative;
  overflow: hidden;
  padding-bottom: 4rem;
  background:
    radial-gradient(ellipse 55% 40% at 10% 8%, rgba(201,154,46,0.14), transparent 58%),
    radial-gradient(ellipse 50% 42% at 90% 12%, rgba(8,38,74,0.1), transparent 55%),
    radial-gradient(ellipse 45% 38% at 70% 70%, rgba(100,165,215,0.12), transparent 55%),
    radial-gradient(ellipse 40% 35% at 20% 85%, rgba(201,154,46,0.08), transparent 50%),
    linear-gradient(165deg, #eef3f9 0%, #f7f9fc 40%, #f2f6fb 100%);
}
.news-bg { position: absolute; inset: 0; pointer-events: none; z-index: 0; overflow: hidden; }
.nb-blob {
  position: absolute; border-radius: 50%; filter: blur(14px); opacity: 0.8;
  animation: specsFloat 16s ease-in-out infinite;
}
.nb-1 { width: 380px; height: 380px; top: -80px; inset-inline-start: -110px; background: radial-gradient(circle, rgba(201,154,46,0.22), transparent 70%); }
.nb-2 { width: 320px; height: 320px; top: 28%; inset-inline-end: -90px; background: radial-gradient(circle, rgba(8,38,74,0.14), transparent 70%); animation-delay: -4s; }
.nb-3 { width: 280px; height: 280px; bottom: 16%; inset-inline-start: 18%; background: radial-gradient(circle, rgba(110,170,220,0.16), transparent 70%); animation-delay: -8s; }
.nb-4 { width: 240px; height: 240px; bottom: -40px; inset-inline-end: 18%; background: radial-gradient(circle, rgba(201,154,46,0.12), transparent 70%); animation-delay: -11s; }
.nb-ring {
  position: absolute; border-radius: 50%; border: 1px solid rgba(201,154,46,0.18);
  animation: specsFloat 18s ease-in-out infinite;
}
.nb-ring-1 { width: 180px; height: 180px; top: 12%; inset-inline-end: 12%; }
.nb-ring-2 { width: 120px; height: 120px; bottom: 22%; inset-inline-start: 8%; border-color: rgba(8,38,74,0.12); animation-delay: -6s; }
.news-bg-pattern {
  position: absolute; inset: 0; opacity: 0.035; pointer-events: none;
  background-image:
    linear-gradient(30deg, #08264A 1px, transparent 1px),
    linear-gradient(150deg, #08264A 1px, transparent 1px);
  background-size: 30px 30px;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 35%, #000 15%, transparent 75%);
}
.news-page > *:not(.news-bg),
.article-page > *:not(.news-bg) { position: relative; z-index: 1; }

.news-hero { padding: 1.5rem 0 1rem; }
.news-breadcrumb {
  display: flex; align-items: center; gap: 0.45rem; flex-wrap: wrap;
  font-size: 0.82rem; font-weight: 700; color: #6b7280; margin-bottom: 1rem;
}
.news-breadcrumb a { color: var(--navy); }
.news-breadcrumb a:hover { color: var(--gold); }
.news-hero-inner {
  display: flex; align-items: center; justify-content: center; text-align: center;
}
.news-title {
  font-size: clamp(1.7rem, 4vw, 2.5rem); font-weight: 800; color: var(--navy);
}
.news-subtitle { margin-top: 0.55rem; color: #6b7280; font-size: 0.95rem; }
.news-divider {
  display: flex; align-items: center; justify-content: center; gap: 0.55rem; margin-top: 1rem;
}
.news-divider::before, .news-divider::after {
  content: ''; width: 52px; height: 1px;
  background: linear-gradient(to left, rgba(201,154,46,0.55), transparent);
}
.news-divider::after { background: linear-gradient(to right, rgba(201,154,46,0.55), transparent); }
.news-divider span {
  width: 7px; height: 7px; border-radius: 50%; background: var(--gold);
  box-shadow: 0 0 0 4px rgba(201,154,46,0.15);
}

.news-featured-section { padding: 0.5rem 0 1.75rem; }
.news-featured {
  position: relative;
  background: linear-gradient(135deg, #071f3c 0%, #0a2d55 55%, #08264A 100%);
  border-radius: 1.5rem;
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(8,38,74,0.22);
  min-height: 320px;
}
.nf-track { position: relative; }
.nf-slide {
  display: none;
  grid-template-columns: 1fr;
}
.nf-slide.is-active { display: grid; }
@media (min-width: 860px) {
  .nf-slide.is-active { grid-template-columns: 1.05fr 1fr; min-height: 360px; }
}
.nf-media { min-height: 220px; }
.nf-media img { width: 100%; height: 100%; min-height: 220px; object-fit: cover; display: block; }
@media (min-width: 860px) {
  .nf-media { min-height: 360px; }
  .nf-media img { min-height: 360px; }
}
.nf-content {
  padding: 1.5rem 1.35rem 2.5rem;
  color: white;
  display: flex; flex-direction: column; justify-content: center;
}
@media (min-width: 860px) { .nf-content { padding: 2rem 2.25rem 2.75rem; } }
.nf-badge {
  display: inline-flex; align-items: center; gap: 0.4rem; align-self: flex-start;
  background: rgba(201,154,46,0.18); color: #e8c56a;
  font-size: 0.75rem; font-weight: 800;
  padding: 0.35rem 0.75rem; border-radius: 999px; margin-bottom: 0.9rem;
}
.nf-content h2 {
  font-size: clamp(1.15rem, 2.4vw, 1.65rem); font-weight: 800; line-height: 1.55; margin-bottom: 0.75rem;
}
.nf-content h2 a { color: inherit; }
.nf-content h2 a:hover { color: var(--gold); }
.news-card-body h3 a { color: inherit; }
.news-card-body h3 a:hover { color: var(--gold); }
.news-card-media { display: block; }
.nf-content > p {
  font-size: 0.88rem; color: rgba(255,255,255,0.72); line-height: 1.8; margin-bottom: 1rem;
}
.nf-meta {
  display: flex; flex-wrap: wrap; gap: 0.85rem 1.25rem;
  font-size: 0.78rem; color: rgba(255,255,255,0.65); margin-bottom: 1.1rem;
}
.nf-meta i, .nf-meta iconify-icon { color: var(--gold); margin-inline-end: 0.3rem; }
.nf-more {
  display: inline-flex; align-items: center; gap: 0.45rem;
  color: var(--gold); font-weight: 800; font-size: 0.88rem; align-self: flex-start;
}
.nf-more:hover { color: #e0b84a; }
.nf-nav {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 3;
  width: 2.4rem; height: 2.4rem; border-radius: 50%; border: none; cursor: pointer;
  background: rgba(255,255,255,0.12); color: white;
  display: flex; align-items: center; justify-content: center;
  backdrop-filter: blur(4px); transition: background 0.2s;
}
.nf-nav:hover { background: rgba(201,154,46,0.85); }
.nf-prev { inset-inline-start: 0.75rem; }
.nf-next { inset-inline-end: 0.75rem; }
.nf-dots {
  position: absolute; bottom: 0.9rem; left: 50%; transform: translateX(-50%);
  display: flex; gap: 0.4rem; z-index: 3;
}
.nf-dot {
  width: 0.5rem; height: 0.5rem; border-radius: 50%; border: none; cursor: pointer;
  background: rgba(255,255,255,0.35); padding: 0; transition: all 0.2s;
}
.nf-dot.is-active { background: var(--gold); width: 1.15rem; border-radius: 999px; }

.news-toolbar {
  display: flex; flex-direction: column; gap: 0.85rem;
  background: white; border-radius: 1.15rem; padding: 0.85rem;
  box-shadow: 0 12px 32px rgba(8,38,74,0.07);
  border: 1px solid rgba(8,38,74,0.04);
  margin-bottom: 1.5rem;
}
@media (min-width: 900px) {
  .news-toolbar {
    flex-direction: row; align-items: center; justify-content: space-between;
    padding: 0.75rem 0.9rem;
  }
}
.news-filters {
  display: flex; gap: 0.4rem; overflow-x: auto; padding-bottom: 0.15rem;
  -ms-overflow-style: none; scrollbar-width: none;
}
.news-filters::-webkit-scrollbar { display: none; }
.news-filter {
  flex-shrink: 0; border: none; cursor: pointer;
  display: inline-flex; align-items: center; gap: 0.4rem;
  background: #eef2f6; color: var(--navy);
  font-family: inherit; font-weight: 700; font-size: 0.78rem;
  padding: 0.55rem 0.85rem; border-radius: 999px;
  transition: background 0.2s, color 0.2s;
}
.news-filter i, .news-filter iconify-icon { font-size: 0.75rem; opacity: 0.8; }
.news-filter.is-active { background: var(--navy); color: white; }
.news-search {
  display: flex; align-items: center; gap: 0.55rem;
  background: #f5f7fa; border-radius: 0.85rem; padding: 0.6rem 0.9rem;
  min-width: min(100%, 240px);
}
.news-search i, .news-search iconify-icon { color: #9ca3af; }
.news-search input {
  border: none; outline: none; background: transparent; width: 100%;
  font-family: inherit; font-size: 0.88rem; color: var(--navy);
}

.news-grid {
  display: grid; grid-template-columns: 1fr; gap: 1.15rem;
}
@media (min-width: 640px) { .news-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 980px) { .news-grid { grid-template-columns: repeat(3, 1fr); gap: 1.35rem; } }

.news-card {
  background: white; border-radius: 1.2rem; overflow: hidden;
  box-shadow: 0 12px 30px rgba(8,38,74,0.06);
  border: 1px solid rgba(8,38,74,0.04);
  display: flex; flex-direction: column;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.news-card:hover { transform: translateY(-5px); box-shadow: 0 18px 40px rgba(8,38,74,0.1); }
.news-card-media { position: relative; aspect-ratio: 16 / 10; overflow: hidden; }
.news-card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease; }
.news-card:hover .news-card-media img { transform: scale(1.05); }
.news-card-tag {
  position: absolute; top: 0.75rem; inset-inline-start: 0.75rem;
  font-size: 0.68rem; font-weight: 800;
  padding: 0.28rem 0.65rem; border-radius: 999px;
}
.ntag-achievements { background: #dcebff; color: #2f6fad; }
.ntag-programs { background: #ffe8cc; color: #b86a12; }
.ntag-org { background: #e8eef8; color: #08264A; }
.ntag-events { background: #e4f7ef; color: #2f8a68; }
.ntag-partners { background: #f0e2ff; color: #7a4aa8; }
.news-card-body { padding: 1.1rem 1.15rem 1.2rem; display: flex; flex-direction: column; flex: 1; }
.news-card-date { font-size: 0.75rem; color: #9ca3af; font-weight: 700; margin-bottom: 0.55rem; }
.news-card-date i, .news-card-date iconify-icon { color: var(--gold); margin-inline-end: 0.25rem; }
.news-card-body h3 {
  font-size: 0.98rem; font-weight: 800; color: var(--navy); line-height: 1.55; margin-bottom: 0.55rem;
}
.news-card-excerpt {
  font-size: 0.82rem; color: #6b7280; line-height: 1.7; margin-bottom: 0.9rem; flex: 1;
}
.news-card-more {
  display: inline-flex; align-items: center; gap: 0.4rem;
  color: var(--gold); font-weight: 800; font-size: 0.82rem; margin-top: auto;
}
.news-card-more:hover { color: #b88922; }
.news-empty { text-align: center; color: #6b7280; font-weight: 700; padding: 2rem; }
.news-load-more { display: flex; justify-content: center; margin-top: 1.75rem; }
.news-load-btn {
  display: inline-flex; align-items: center; gap: 0.55rem;
  background: white; color: var(--navy); border: 1px solid rgba(8,38,74,0.1);
  font-family: inherit; font-weight: 800; font-size: 0.9rem;
  padding: 0.85rem 1.5rem; border-radius: 999px; cursor: pointer;
  box-shadow: 0 10px 24px rgba(8,38,74,0.06);
  transition: transform 0.2s, border-color 0.2s;
}
.news-load-btn:hover { transform: translateY(-2px); border-color: var(--gold); }

.news-newsletter { padding: 2.5rem 0 1rem; }
.news-nl-card {
  position: relative; overflow: hidden; text-align: center;
  background: linear-gradient(145deg, #071f3c 0%, #0a3260 50%, #08264A 100%);
  border-radius: 1.5rem; padding: 2.5rem 1.5rem;
  box-shadow: 0 20px 48px rgba(8,38,74,0.22);
}
.news-nl-card::before {
  content: ''; position: absolute; inset: 0; opacity: 0.08; pointer-events: none;
  background-image:
    linear-gradient(30deg, #fff 1px, transparent 1px),
    linear-gradient(150deg, #fff 1px, transparent 1px);
  background-size: 28px 28px;
}
.news-nl-icon {
  position: absolute; width: 3.2rem; height: 3.2rem; border-radius: 1rem;
  display: flex; align-items: center; justify-content: center; font-size: 1.25rem;
  opacity: 0.85;
}
.news-nl-icon--mail {
  top: 1.25rem; inset-inline-start: 1.25rem;
  background: rgba(255,255,255,0.1); color: #9ec5ff;
}
.news-nl-icon--doc {
  bottom: 1.25rem; inset-inline-end: 1.25rem;
  background: rgba(201,154,46,0.18); color: #e8c56a;
}
.news-nl-card h2 {
  position: relative; color: white; font-size: clamp(1.25rem, 3vw, 1.75rem);
  font-weight: 800; margin-bottom: 0.65rem;
}
.news-nl-card > p {
  position: relative; color: rgba(255,255,255,0.7); font-size: 0.9rem;
  max-width: 32rem; margin: 0 auto 1.35rem; line-height: 1.8;
}
.news-nl-form {
  position: relative;
  display: flex; flex-direction: column; gap: 0.65rem;
  max-width: 28rem; margin: 0 auto;
}
@media (min-width: 560px) {
  .news-nl-form { flex-direction: row; background: white; border-radius: 999px; padding: 0.35rem; }
}
.news-nl-form input {
  flex: 1; border: none; outline: none; border-radius: 999px;
  padding: 0.85rem 1.1rem; font-family: inherit; font-size: 0.9rem; color: var(--navy);
  background: white;
}
.news-nl-form button {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.45rem;
  border: none; cursor: pointer; border-radius: 999px;
  background: var(--gold); color: white;
  font-family: inherit; font-weight: 800; font-size: 0.88rem;
  padding: 0.85rem 1.25rem; white-space: nowrap;
  transition: background 0.2s, transform 0.2s;
}
.news-nl-form button:hover { background: #b88922; transform: translateY(-1px); }
html[dir='ltr'] .nf-more i, html[dir='ltr'] .nf-more iconify-icon,
html[dir='ltr'] .news-card-more i, html[dir='ltr'] .news-card-more iconify-icon,
html[dir='ltr'] .news-nl-form button i, html[dir='ltr'] .news-nl-form button iconify-icon { transform: scaleX(-1); }

/* ---------- Courses page ---------- */
.courses-page { background: #f5f8fc; padding-bottom: 3rem; }
.courses-hero {
  position: relative; overflow: hidden;
  padding: 3.5rem 0 3rem; color: white; text-align: center;
}
.courses-hero-bg { position: absolute; inset: 0; }
.courses-hero-bg img { width: 100%; height: 100%; object-fit: cover; }
.courses-hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(8,38,74,0.92) 0%, rgba(8,38,74,0.82) 55%, rgba(12,53,102,0.88) 100%);
}
.courses-hero-title {
  font-size: clamp(1.9rem, 4.5vw, 3rem); font-weight: 800; margin-bottom: 0.55rem;
}
.courses-hero-tagline { color: var(--gold); font-weight: 700; font-size: 1.05rem; margin-bottom: 0.75rem; }
.courses-hero-desc {
  max-width: 36rem; margin: 0 auto 1.5rem;
  color: rgba(255,255,255,0.78); font-size: 0.92rem; line-height: 1.8;
}
.courses-search {
  display: flex; align-items: center; gap: 0.7rem;
  max-width: 34rem; margin: 0 auto 1.75rem;
  background: white; border-radius: 999px; padding: 0.85rem 1.2rem;
  box-shadow: 0 14px 34px rgba(0,0,0,0.18);
}
.courses-search i, .courses-search iconify-icon { color: #9ca3af; }
.courses-search input {
  border: none; outline: none; width: 100%; background: transparent;
  font-family: inherit; font-size: 0.95rem; color: var(--navy);
}
.courses-hero-stats {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 1.5rem 2.5rem;
}
.courses-hero-stats div { display: flex; flex-direction: column; gap: 0.2rem; }
.courses-hero-stats strong { font-size: 1.35rem; font-weight: 800; color: white; }
.courses-hero-stats span { font-size: 0.8rem; color: rgba(255,255,255,0.7); font-weight: 600; }

.courses-browse { padding: 2.5rem 0 1.5rem; }
.courses-section-title {
  display: flex; align-items: center; justify-content: center; gap: 0.85rem;
  font-size: 1.2rem; font-weight: 800; color: var(--navy); margin-bottom: 1.5rem; text-align: center;
}
.courses-section-title .line {
  width: 48px; height: 2px; border-radius: 2px;
  background: linear-gradient(to left, var(--gold), transparent);
}
.courses-section-title .line:last-child { background: linear-gradient(to right, var(--gold), transparent); }

.courses-specs {
  display: flex; gap: 0.65rem; overflow-x: auto; padding: 0.25rem 0.15rem 1rem;
  -ms-overflow-style: none; scrollbar-width: none;
}
.courses-specs::-webkit-scrollbar { display: none; }
.courses-spec {
  flex: 0 0 auto; border: none; cursor: pointer;
  display: flex; flex-direction: column; align-items: center; gap: 0.45rem;
  min-width: 5.5rem; padding: 0.75rem 0.55rem;
  background: white; border-radius: 1rem;
  box-shadow: 0 8px 22px rgba(8,38,74,0.06);
  font-family: inherit; font-size: 0.72rem; font-weight: 700; color: var(--navy);
  transition: transform 0.2s, background 0.2s, color 0.2s;
}
.courses-spec-icon {
  width: 2.6rem; height: 2.6rem; border-radius: 0.85rem;
  background: rgba(8,38,74,0.06); color: var(--navy);
  display: flex; align-items: center; justify-content: center; font-size: 1rem;
}
.courses-spec.is-active { background: var(--navy); color: white; transform: translateY(-3px); }
.courses-spec.is-active .courses-spec-icon { background: rgba(255,255,255,0.12); color: var(--gold); }

.courses-toolbar {
  display: flex; flex-direction: column; gap: 0.75rem;
  background: white; border-radius: 1rem; padding: 0.85rem;
  box-shadow: 0 8px 24px rgba(8,38,74,0.05);
  margin-bottom: 1.35rem;
}
@media (min-width: 800px) {
  .courses-toolbar { flex-direction: row; align-items: center; justify-content: space-between; }
}
.courses-view-all {
  border: none; cursor: pointer; background: var(--navy); color: white;
  font-family: inherit; font-weight: 700; font-size: 0.82rem;
  padding: 0.55rem 1rem; border-radius: 0.7rem;
}
.courses-toolbar-filters { display: flex; flex-wrap: wrap; gap: 0.5rem; align-items: center; }
.courses-toolbar-filters select {
  border: 1px solid rgba(8,38,74,0.1); border-radius: 0.7rem;
  padding: 0.5rem 0.75rem; font-family: inherit; font-size: 0.8rem; font-weight: 700;
  color: var(--navy); background: #f7f9fc; cursor: pointer;
}
.courses-view-toggle {
  display: inline-flex; background: #eef2f6; border-radius: 0.7rem; padding: 0.2rem;
}
.courses-view-toggle button {
  border: none; cursor: pointer; width: 2.1rem; height: 2.1rem; border-radius: 0.55rem;
  background: transparent; color: #6b7280;
}
.courses-view-toggle button.is-active { background: white; color: var(--navy); box-shadow: 0 2px 8px rgba(8,38,74,0.08); }

.courses-grid {
  display: grid; grid-template-columns: 1fr; gap: 1.1rem;
}
@media (min-width: 560px) { .courses-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 900px) { .courses-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1100px) { .courses-grid { grid-template-columns: repeat(4, 1fr); gap: 1.25rem; } }
.courses-grid[data-view="list"] { grid-template-columns: 1fr; }
.courses-grid[data-view="list"] .course-card {
  display: grid; grid-template-columns: 180px 1fr; align-items: stretch;
}
@media (max-width: 639px) {
  .courses-grid[data-view="list"] .course-card { grid-template-columns: 1fr; }
}

.course-card {
  background: white; border-radius: 1.15rem; overflow: hidden;
  box-shadow: 0 12px 30px rgba(8,38,74,0.06);
  border: 1px solid rgba(8,38,74,0.04);
  display: flex; flex-direction: column;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.course-card:hover { transform: translateY(-5px); box-shadow: 0 18px 40px rgba(8,38,74,0.1); }
.course-card-media { position: relative; aspect-ratio: 16 / 10; overflow: hidden; }
.course-card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.35s ease; }
.course-card:hover .course-card-media img { transform: scale(1.05); }
.course-card-tag {
  position: absolute; top: 0.7rem; inset-inline-start: 0.7rem;
  background: var(--navy); color: white; font-size: 0.68rem; font-weight: 800;
  padding: 0.25rem 0.6rem; border-radius: 999px;
}
.course-card-body { padding: 1rem 1.05rem 1.1rem; display: flex; flex-direction: column; flex: 1; }
.course-card-body h3 { font-size: 0.95rem; font-weight: 800; color: var(--navy); line-height: 1.45; margin-bottom: 0.55rem; }
.course-card-meta {
  display: flex; flex-wrap: wrap; gap: 0.65rem 0.9rem;
  font-size: 0.72rem; color: #6b7280; font-weight: 700; margin-bottom: 0.55rem;
}
.course-card-meta i, .course-card-meta iconify-icon { color: var(--gold); margin-inline-end: 0.2rem; }
.course-card-rating {
  display: flex; align-items: center; gap: 0.3rem;
  font-size: 0.78rem; color: #6b7280; margin-bottom: 0.85rem;
}
.course-card-rating i, .course-card-rating iconify-icon { color: var(--gold); }
.course-card-rating strong { color: var(--navy); }
.course-card-footer {
  display: flex; align-items: center; justify-content: space-between; gap: 0.5rem; margin-top: auto;
}
.course-card-price { font-size: 1.05rem; font-weight: 800; color: var(--gold); }
.course-card-btn {
  background: var(--navy); color: white; font-size: 0.75rem; font-weight: 700;
  padding: 0.5rem 0.8rem; border-radius: 0.65rem; transition: background 0.2s;
}
.course-card-btn:hover { background: #0a3260; color: white; }
.courses-empty { text-align: center; color: #6b7280; font-weight: 700; padding: 2rem; }

.courses-features { padding: 1rem 0 2rem; }
.courses-features-bar {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem;
  background: #eef2f7; border-radius: 1.15rem; padding: 1.25rem 1rem;
}
@media (min-width: 700px) { .courses-features-bar { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1000px) { .courses-features-bar { grid-template-columns: repeat(5, 1fr); padding: 1.35rem 1.25rem; } }
.cf-item {
  display: flex; flex-direction: column; align-items: center; gap: 0.45rem; text-align: center;
  font-size: 0.78rem; font-weight: 700; color: var(--navy);
}
.cf-item i, .cf-item iconify-icon {
  width: 2.5rem; height: 2.5rem; border-radius: 0.8rem;
  background: white; color: var(--gold);
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 6px 16px rgba(8,38,74,0.06);
}

.courses-cta { padding: 0.5rem 0 1rem; }
.courses-cta-card {
  position: relative; overflow: hidden; text-align: center;
  background: linear-gradient(145deg, #071f3c 0%, #0a3260 50%, #08264A 100%);
  border-radius: 1.5rem; padding: 2.75rem 1.5rem;
  box-shadow: 0 20px 48px rgba(8,38,74,0.2);
}
.courses-cta-decor {
  position: absolute; width: min(140px, 22vw); opacity: 0.9; pointer-events: none;
  filter: drop-shadow(0 10px 20px rgba(0,0,0,0.25));
}
.courses-cta-decor--cert { bottom: 0.5rem; inset-inline-start: 1rem; }
.courses-cta-decor--cap { top: 0.75rem; inset-inline-end: 1rem; }
.courses-cta-card h2 {
  position: relative; color: white; font-size: clamp(1.3rem, 3vw, 1.85rem);
  font-weight: 800; margin-bottom: 0.65rem;
}
.courses-cta-card > p {
  position: relative; color: rgba(255,255,255,0.72); font-size: 0.92rem;
  max-width: 28rem; margin: 0 auto 1.35rem; line-height: 1.8;
}
.courses-cta-btn {
  position: relative;
  display: inline-flex; align-items: center; gap: 0.5rem;
  background: var(--gold); color: white; font-weight: 800; font-size: 0.92rem;
  padding: 0.85rem 1.4rem; border-radius: 999px;
  box-shadow: 0 10px 24px rgba(201,154,46,0.35);
  transition: transform 0.2s, background 0.2s;
}
.courses-cta-btn:hover { background: #b88922; color: white; transform: translateY(-2px); }
html[dir='ltr'] .courses-cta-btn i, html[dir='ltr'] .courses-cta-btn iconify-icon { transform: scaleX(-1); }
@media (max-width: 639px) {
  .courses-cta-decor { display: none; }
}

/* ---------- Contact page ---------- */
.contact-page { background: #f5f8fc; padding-bottom: 3rem; }
.contact-hero {
  position: relative; overflow: hidden; padding: 3.25rem 0 4rem; color: white;
}
.contact-hero-bg { position: absolute; inset: 0; }
.contact-hero-bg img { width: 100%; height: 100%; object-fit: cover; }
.contact-hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(120deg, rgba(8,38,74,0.94) 0%, rgba(8,38,74,0.78) 55%, rgba(12,53,102,0.88) 100%);
}
.contact-hero-grid {
  display: grid; grid-template-columns: 1fr; gap: 1.5rem; align-items: center;
}
@media (min-width: 860px) {
  .contact-hero-grid { grid-template-columns: 1.2fr 0.8fr; gap: 2rem; }
}
.contact-hero-copy h1 {
  font-size: clamp(2rem, 4.5vw, 3rem); font-weight: 800; margin-bottom: 0.45rem;
}
.contact-hero-tag { color: var(--gold); font-weight: 800; font-size: 1.05rem; margin-bottom: 0.75rem; }
.contact-hero-desc {
  max-width: 32rem; color: rgba(255,255,255,0.78); font-size: 0.95rem; line-height: 1.85;
}
.contact-float-card {
  background: white; color: var(--navy); border-radius: 1.25rem;
  padding: 1.5rem 1.35rem; text-align: center;
  box-shadow: 0 18px 40px rgba(0,0,0,0.18);
  max-width: 280px; margin-inline-start: auto; margin-inline-end: 0;
}
@media (max-width: 859px) {
  .contact-float-card { margin: 0 auto; }
}
.contact-float-icon {
  width: 4.5rem; height: 4.5rem; margin: 0 auto 0.85rem;
  display: flex; align-items: center; justify-content: center;
}
.contact-float-icon img { width: 100%; height: 100%; object-fit: contain; }
.contact-float-card h2 { font-size: 1.05rem; font-weight: 800; margin-bottom: 0.35rem; }
.contact-float-card p { font-size: 0.82rem; color: #6b7280; font-weight: 600; }

.contact-main { margin-top: -1.5rem; position: relative; z-index: 2; padding-bottom: 1.5rem; }
.contact-panel {
  display: grid; grid-template-columns: 1fr; gap: 1.75rem;
  background: white; border-radius: 1.5rem; padding: 1.5rem;
  box-shadow: 0 18px 44px rgba(8,38,74,0.08);
  border: 1px solid rgba(8,38,74,0.04);
}
@media (min-width: 900px) {
  .contact-panel { grid-template-columns: 0.95fr 1.05fr; gap: 2rem; padding: 2rem; }
}
.contact-info h2, .contact-form-wrap h2 {
  font-size: 1.2rem; font-weight: 800; color: var(--navy); margin-bottom: 1.15rem;
}
.contact-channels { display: grid; gap: 1rem; }
.contact-channels li {
  display: flex; gap: 0.85rem; align-items: flex-start;
  padding: 0.9rem; border-radius: 1rem; background: #f7f9fc;
}
.ch-icon {
  width: 2.6rem; height: 2.6rem; border-radius: 50%; flex-shrink: 0;
  background: var(--navy); color: white;
  display: flex; align-items: center; justify-content: center;
}
.contact-channels strong { display: block; font-size: 0.88rem; color: var(--navy); margin-bottom: 0.2rem; }
.contact-channels a, .contact-channels p {
  display: block; font-size: 0.9rem; font-weight: 700; color: #374151; margin: 0;
}
.contact-channels a:hover { color: var(--gold); }
.contact-channels small { display: block; margin-top: 0.2rem; font-size: 0.75rem; color: #9ca3af; }

.contact-form { display: grid; gap: 0.9rem; }
.contact-form label {
  display: flex; flex-direction: column; gap: 0.4rem;
  font-size: 0.82rem; font-weight: 700; color: var(--navy);
}
.contact-form input,
.contact-form select,
.contact-form textarea {
  border: 1px solid rgba(8,38,74,0.1); border-radius: 0.85rem;
  padding: 0.8rem 0.95rem; font-family: inherit; font-size: 0.9rem;
  font-weight: 500; color: var(--navy); background: #f8fafc;
  transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
}
.contact-form textarea { resize: vertical; min-height: 120px; }
.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  outline: none; border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(201,154,46,0.15); background: white;
}
.contact-form-row { display: grid; grid-template-columns: 1fr; gap: 0.9rem; }
@media (min-width: 640px) { .contact-form-row { grid-template-columns: 1fr 1fr; } }
.contact-submit {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.55rem;
  width: 100%; border: none; cursor: pointer;
  background: var(--navy); color: white;
  font-family: inherit; font-weight: 800; font-size: 0.95rem;
  padding: 0.95rem 1.2rem; border-radius: 0.9rem;
  transition: background 0.2s, transform 0.2s;
}
.contact-submit:hover { background: #0a3260; transform: translateY(-2px); }
.contact-form-success {
  text-align: center; color: #0f7a4d; font-weight: 700; font-size: 0.88rem;
  background: #e8f8f0; border-radius: 0.75rem; padding: 0.75rem;
}

.contact-trust { padding: 1.5rem 0 2rem; }
.contact-trust-grid {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem;
}
@media (min-width: 800px) { .contact-trust-grid { grid-template-columns: repeat(4, 1fr); gap: 1.25rem; } }
.ct-item {
  text-align: center; background: white; border-radius: 1.1rem; padding: 1.25rem 0.85rem;
  box-shadow: 0 10px 26px rgba(8,38,74,0.05);
}
.ct-item i, .ct-item iconify-icon { font-size: 1.35rem; color: var(--gold); margin-bottom: 0.55rem; }
.ct-item strong { display: block; font-size: 0.9rem; color: var(--navy); margin-bottom: 0.25rem; }
.ct-item span { font-size: 0.75rem; color: #6b7280; font-weight: 600; }

.contact-visit { padding: 0.5rem 0 2rem; }
.contact-visit-card {
  text-align: center;
  background: white;
  border-radius: 1.35rem;
  padding: 2rem 1.5rem;
  box-shadow: 0 14px 36px rgba(8,38,74,0.07);
  border: 1px solid rgba(8,38,74,0.04);
}
.contact-visit-icon {
  width: 3.2rem; height: 3.2rem; border-radius: 50%;
  background: rgba(201,154,46,0.12); color: var(--gold);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.2rem; margin: 0 auto 1rem;
}
.contact-visit-card h2 {
  font-size: 1.2rem; font-weight: 800; color: var(--navy); margin-bottom: 0.55rem;
}
.contact-visit-card > p {
  font-size: 0.9rem; color: #6b7280; line-height: 1.8; max-width: 28rem; margin: 0 auto;
}
.contact-visit-address {
  margin-top: 0.85rem !important;
  font-weight: 800 !important;
  color: var(--navy) !important;
}

.contact-cta { padding: 0.5rem 0 1rem; }
.contact-cta-card {
  position: relative; overflow: hidden; text-align: center;
  background: linear-gradient(145deg, #071f3c 0%, #0a3260 50%, #08264A 100%);
  border-radius: 1.5rem; padding: 2.5rem 1.5rem;
  box-shadow: 0 20px 48px rgba(8,38,74,0.2);
}
.contact-cta-decor {
  position: absolute; width: min(120px, 20vw); opacity: 0.95; pointer-events: none;
  filter: drop-shadow(0 10px 18px rgba(0,0,0,0.25));
}
.contact-cta-decor--mail { bottom: 0.5rem; inset-inline-start: 1rem; }
.contact-cta-decor--headset { top: 0.75rem; inset-inline-end: 1rem; }
.contact-cta-card > p {
  position: relative; color: rgba(255,255,255,0.8); font-size: 0.95rem;
  max-width: 34rem; margin: 0 auto 1.25rem; line-height: 1.85; font-weight: 600;
}
.contact-cta-btn {
  position: relative;
  display: inline-flex; align-items: center; gap: 0.5rem;
  background: var(--gold); color: white; font-weight: 800; font-size: 0.92rem;
  padding: 0.85rem 1.35rem; border-radius: 999px;
}
.contact-cta-btn:hover { background: #b88922; color: white; }
html[dir='ltr'] .contact-cta-btn i, html[dir='ltr'] .contact-cta-btn iconify-icon { transform: scaleX(-1); }
@media (max-width: 639px) {
  .contact-cta-decor { display: none; }
}

/* ---------- Article page ---------- */
.article-page {
  position: relative; overflow: hidden; padding-bottom: 4rem;
  background:
    radial-gradient(ellipse 50% 35% at 12% 10%, rgba(201,154,46,0.12), transparent 55%),
    radial-gradient(ellipse 45% 40% at 88% 15%, rgba(8,38,74,0.08), transparent 55%),
    linear-gradient(180deg, #eef3f9 0%, #f7f9fc 50%, #f2f6fb 100%);
}
.article-wrap { padding: 1.5rem 0 2rem; }
.article-header { margin-bottom: 1.25rem; }
.article-header .news-card-tag { position: static; display: inline-block; margin-bottom: 0.85rem; }
.article-header h1 {
  font-size: clamp(1.4rem, 3.5vw, 2.1rem); font-weight: 800; color: var(--navy); line-height: 1.5;
}
.article-meta {
  display: flex; flex-wrap: wrap; gap: 0.75rem 1.25rem; margin-top: 0.85rem;
  font-size: 0.82rem; color: #6b7280; font-weight: 700;
}
.article-meta i, .article-meta iconify-icon { color: var(--gold); margin-inline-end: 0.3rem; }
.article-cover {
  border-radius: 1.25rem; overflow: hidden; margin-bottom: 1.5rem;
  box-shadow: 0 16px 40px rgba(8,38,74,0.1);
}
.article-cover img { width: 100%; height: auto; max-height: 420px; object-fit: cover; display: block; }
.article-body {
  background: white; border-radius: 1.25rem; padding: 1.5rem 1.25rem;
  box-shadow: 0 12px 32px rgba(8,38,74,0.06); margin-bottom: 1.25rem;
}
.article-body p {
  font-size: 1rem; color: #374151; line-height: 1.95; margin-bottom: 1rem;
}
.article-body p:last-child { margin-bottom: 0; }
.article-actions {
  display: flex; flex-wrap: wrap; gap: 0.75rem; align-items: center;
  justify-content: space-between; margin-bottom: 1.75rem;
}
.article-like-btn, .article-back-btn, .comment-submit {
  display: inline-flex; align-items: center; gap: 0.45rem;
  border: none; cursor: pointer; font-family: inherit; font-weight: 800; font-size: 0.88rem;
  padding: 0.7rem 1.1rem; border-radius: 999px; transition: transform 0.2s, background 0.2s;
}
.article-like-btn {
  background: white; color: var(--navy); border: 1px solid rgba(8,38,74,0.1);
  box-shadow: 0 8px 20px rgba(8,38,74,0.05);
}
.article-like-btn.is-liked, .article-like-btn.is-liked i, .article-like-btn.is-liked, .article-like-btn.is-liked iconify-icon { color: #d64545; }
.article-like-btn:hover { transform: translateY(-2px); }
.article-back-btn {
  background: var(--navy); color: white; text-decoration: none;
}
.article-back-btn:hover { background: #0a3260; color: white; }

.article-comments {
  background: white; border-radius: 1.25rem; padding: 1.5rem 1.25rem;
  box-shadow: 0 12px 32px rgba(8,38,74,0.06); margin-bottom: 1.75rem;
}
.article-comments h2 {
  font-size: 1.15rem; font-weight: 800; color: var(--navy); margin-bottom: 1.15rem;
}
.comments-count { color: #9ca3af; font-weight: 700; }
.comment-form { display: grid; gap: 0.85rem; margin-bottom: 1.35rem; }
.comment-form label {
  display: flex; flex-direction: column; gap: 0.35rem;
  font-size: 0.82rem; font-weight: 700; color: var(--navy);
}
.comment-form input, .comment-form textarea {
  border: 1px solid rgba(8,38,74,0.1); border-radius: 0.85rem;
  padding: 0.75rem 0.95rem; font-family: inherit; font-size: 0.9rem;
  background: #f8fafc; color: var(--navy);
}
.comment-form input:focus, .comment-form textarea:focus {
  outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(201,154,46,0.15); background: white;
}
.comment-submit {
  justify-self: start; background: var(--navy); color: white;
}
.comment-submit:hover { background: #0a3260; }
.comments-list { display: grid; gap: 0.85rem; }
.comment-item {
  display: flex; gap: 0.75rem; padding: 0.9rem; border-radius: 1rem; background: #f7f9fc;
}
.comment-avatar {
  width: 2.4rem; height: 2.4rem; border-radius: 50%; flex-shrink: 0;
  background: var(--navy); color: white; font-weight: 800;
  display: flex; align-items: center; justify-content: center;
}
.comment-top {
  display: flex; flex-wrap: wrap; gap: 0.35rem 0.75rem; align-items: center; margin-bottom: 0.35rem;
}
.comment-top strong { color: var(--navy); font-size: 0.88rem; }
.comment-top time { color: #9ca3af; font-size: 0.75rem; font-weight: 600; }
.comment-body p { color: #4b5563; font-size: 0.88rem; line-height: 1.7; margin: 0; }
.comments-empty { text-align: center; color: #9ca3af; font-weight: 700; font-size: 0.88rem; padding: 0.5rem 0; }

.article-related h2 {
  font-size: 1.15rem; font-weight: 800; color: var(--navy); margin-bottom: 1rem;
}
.article-related-grid { display: grid; grid-template-columns: 1fr; gap: 0.85rem; }
@media (min-width: 700px) { .article-related-grid { grid-template-columns: repeat(3, 1fr); } }
.related-card {
  display: grid; grid-template-columns: 88px 1fr; gap: 0.75rem; align-items: center;
  background: white; border-radius: 1rem; padding: 0.65rem; text-decoration: none;
  box-shadow: 0 10px 26px rgba(8,38,74,0.05); transition: transform 0.2s;
}
.related-card:hover { transform: translateY(-3px); }
.related-card img {
  width: 88px; height: 72px; object-fit: cover; border-radius: 0.75rem;
}
.related-card span { font-size: 0.72rem; color: #9ca3af; font-weight: 700; }
.related-card h3 {
  font-size: 0.82rem; font-weight: 800; color: var(--navy); line-height: 1.45; margin-top: 0.25rem;
}
.course-card-body h3 a { color: inherit; text-decoration: none; }
.course-card-body h3 a:hover { color: var(--gold); }
.course-card-media { display: block; }

/* ========== Course Details ========== */
.course-page { background: #f5f8fc; padding-bottom: 0; }
.course-breadcrumb {
  background: #eef2f7; border-bottom: 1px solid rgba(8,38,74,0.06);
  padding: 0.7rem 0; font-size: 0.8rem; font-weight: 600; color: #6b7280;
}
.course-breadcrumb a { color: var(--navy); text-decoration: none; }
.course-breadcrumb a:hover { color: var(--gold); }
.course-breadcrumb span[aria-hidden] { margin: 0 0.4rem; opacity: 0.5; }
.course-breadcrumb > div {
  display: flex; flex-wrap: wrap; align-items: center; gap: 0.15rem;
}

.cd-hero {
  position: relative; color: white; overflow: hidden;
  padding: 2.5rem 0 0;
}
.cd-hero-bg { position: absolute; inset: 0; }
.cd-hero-bg img {
  width: 100%; height: 100%; object-fit: cover;
  filter: blur(2px) saturate(1.05); transform: scale(1.04);
}
.cd-hero-overlay {
  position: absolute; inset: 0;
  background:
    linear-gradient(105deg, rgba(8,38,74,0.92) 0%, rgba(8,38,74,0.78) 48%, rgba(8,38,74,0.55) 100%),
    linear-gradient(0deg, rgba(8,38,74,0.85) 0%, transparent 45%);
}
.cd-hero-grid {
  display: grid; gap: 2rem; align-items: center;
  padding-bottom: 2.25rem;
}
@media (min-width: 900px) {
  .cd-hero-grid { grid-template-columns: 1.4fr 0.8fr; }
}
.cd-badges { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 1rem; }
.cd-badge {
  display: inline-flex; align-items: center; padding: 0.28rem 0.75rem;
  border-radius: 999px; font-size: 0.72rem; font-weight: 800;
}
.cd-badge--gold { background: var(--gold); color: white; }
.cd-badge--muted { background: rgba(255,255,255,0.16); color: #e5e7eb; backdrop-filter: blur(6px); }
.cd-hero-content h1 {
  font-size: clamp(1.55rem, 3.5vw, 2.35rem); font-weight: 800;
  line-height: 1.35; margin-bottom: 0.85rem; max-width: 18ch;
}
.cd-hero-desc {
  color: rgba(255,255,255,0.82); font-size: 0.95rem; line-height: 1.75;
  max-width: 42rem; margin-bottom: 1.35rem;
}
.cd-instructor {
  display: flex; align-items: center; gap: 0.85rem;
}
.cd-instructor-avatar {
  width: 48px; height: 48px; border-radius: 50%;
  display: grid; place-items: center; font-weight: 800; font-size: 0.85rem;
  color: white; background: var(--av, #5b8def);
  box-shadow: 0 0 0 3px rgba(255,255,255,0.25);
  overflow: hidden;
}
.cd-instructor-avatar img {
  width: 100%; height: 100%; object-fit: cover; display: block;
}
.cd-instructor-avatar.has-photo { background: transparent; }
.cd-instructor strong { display: block; font-size: 0.92rem; }
.cd-instructor-rating {
  display: flex; align-items: center; gap: 0.25rem;
  color: var(--gold); font-size: 0.78rem; margin-top: 0.15rem;
}
.cd-instructor-rating span { color: rgba(255,255,255,0.85); font-weight: 700; margin-inline-start: 0.2rem; }

.cd-hero-play-wrap { display: flex; justify-content: center; }
.cd-play-btn {
  display: flex; flex-direction: column; align-items: center; gap: 0.75rem;
  background: none; border: 0; color: white; cursor: pointer; font-family: inherit;
  font-weight: 700; font-size: 0.9rem;
}
.cd-play-circle {
  width: 92px; height: 92px; border-radius: 50%;
  display: grid; place-items: center;
  background: rgba(255,255,255,0.12); border: 2px solid rgba(255,255,255,0.35);
  backdrop-filter: blur(8px); transition: transform 0.25s ease, background 0.25s;
  box-shadow: 0 12px 40px rgba(0,0,0,0.25);
}
.cd-play-circle i, .cd-play-circle iconify-icon { font-size: 1.35rem; margin-inline-start: 3px; }
.cd-play-btn:hover .cd-play-circle {
  transform: scale(1.06); background: rgba(201,154,46,0.35); border-color: var(--gold);
}

.cd-stats-bar {
  position: relative; z-index: 1;
  background: rgba(5, 22, 45, 0.72); backdrop-filter: blur(10px);
  border-top: 1px solid rgba(255,255,255,0.08);
}
.cd-stats {
  list-style: none; margin: 0; padding: 0.95rem 0;
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 0.85rem 1rem;
}
@media (min-width: 700px) { .cd-stats { grid-template-columns: repeat(5, 1fr); } }
.cd-stats li {
  display: flex; align-items: flex-start; gap: 0.65rem;
  color: rgba(255,255,255,0.88);
}
.cd-stats i, .cd-stats iconify-icon {
  width: 34px; height: 34px; border-radius: 0.65rem;
  display: grid; place-items: center; flex-shrink: 0;
  background: rgba(201,154,46,0.18); color: var(--gold); font-size: 0.85rem;
}
.cd-stats span { display: block; font-size: 0.7rem; color: rgba(255,255,255,0.55); font-weight: 600; }
.cd-stats strong { display: block; font-size: 0.82rem; font-weight: 800; margin-top: 0.1rem; }

.cd-body { padding: 2rem 0 3rem; }
.cd-layout {
  display: grid; gap: 1.5rem;
}
@media (min-width: 1024px) {
  .cd-layout { grid-template-columns: 1fr 320px; align-items: start; gap: 1.75rem; }
}

.cd-tabs {
  display: flex; gap: 0.15rem; overflow-x: auto; scrollbar-width: thin;
  background: white; border-radius: 1rem; padding: 0.35rem;
  box-shadow: 0 10px 28px rgba(8,38,74,0.05); margin-bottom: 1.15rem;
}
.cd-tab {
  flex: 0 0 auto; display: inline-flex; align-items: center; gap: 0.4rem;
  padding: 0.7rem 0.9rem; border: 0; background: transparent; cursor: pointer;
  font-family: inherit; font-size: 0.8rem; font-weight: 700; color: #6b7280;
  border-radius: 0.75rem; position: relative; white-space: nowrap;
  transition: color 0.2s, background 0.2s;
}
.cd-tab i, .cd-tab iconify-icon { font-size: 0.85rem; }
.cd-tab:hover { color: var(--navy); background: #f5f8fc; }
.cd-tab.is-active { color: var(--gold); background: rgba(201,154,46,0.08); }
.cd-tab.is-active::after {
  content: ''; position: absolute; left: 0.9rem; right: 0.9rem; bottom: 0.2rem;
  height: 2px; background: var(--gold); border-radius: 2px;
}

.cd-panels {
  background: white; border-radius: 1.15rem; padding: 1.35rem 1.25rem 1.5rem;
  box-shadow: 0 12px 32px rgba(8,38,74,0.05);
}
@media (min-width: 700px) { .cd-panels { padding: 1.6rem 1.6rem 1.75rem; } }
.cd-panel[hidden] { display: none !important; }
.cd-panel h2 {
  font-size: 1.2rem; font-weight: 800; color: var(--navy); margin-bottom: 0.9rem;
}
.cd-about-text {
  color: #4b5563; font-size: 0.95rem; line-height: 1.85; margin-bottom: 1.35rem;
}
.cd-highlights {
  display: grid; grid-template-columns: 1fr; gap: 0.85rem;
}
@media (min-width: 640px) { .cd-highlights { grid-template-columns: 1fr 1fr; } }
.cd-highlight {
  display: flex; gap: 0.85rem; align-items: flex-start;
  background: #f7f9fc; border-radius: 1rem; padding: 1rem;
}
.cd-highlight-icon {
  width: 42px; height: 42px; border-radius: 0.85rem; flex-shrink: 0;
  display: grid; place-items: center; background: rgba(8,38,74,0.06); color: var(--navy);
}
.cd-highlight strong { display: block; color: var(--navy); font-size: 0.9rem; margin-bottom: 0.25rem; }
.cd-highlight p { margin: 0; color: #6b7280; font-size: 0.8rem; line-height: 1.6; }

.cd-section-head {
  display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between;
  gap: 0.5rem; margin-bottom: 0.9rem;
}
.cd-section-head h2 { margin-bottom: 0; }
.cd-section-meta { font-size: 0.8rem; font-weight: 700; color: #9ca3af; }

.cd-acc {
  border: 1px solid rgba(8,38,74,0.08); border-radius: 0.95rem;
  margin-bottom: 0.65rem; overflow: hidden; background: #fff;
}
.cd-acc summary {
  list-style: none; cursor: pointer; display: flex; align-items: center; gap: 0.85rem;
  padding: 0.95rem 1rem; user-select: none;
}
.cd-acc summary::-webkit-details-marker { display: none; }
.cd-acc-num {
  width: 36px; height: 36px; border-radius: 50%; flex-shrink: 0;
  display: grid; place-items: center; background: var(--navy); color: white;
  font-weight: 800; font-size: 0.85rem;
}
.cd-acc-main { flex: 1; min-width: 0; }
.cd-acc-main strong { display: block; color: var(--navy); font-size: 0.9rem; }
.cd-acc-main > span { display: block; color: #9ca3af; font-size: 0.75rem; font-weight: 600; margin-top: 0.2rem; }
.cd-acc-chevron { color: #9ca3af; transition: transform 0.2s; }
.cd-acc[open] .cd-acc-chevron { transform: rotate(180deg); color: var(--gold); }
.cd-acc-list {
  list-style: none; margin: 0; padding: 0 1rem 1rem 1rem;
  border-top: 1px dashed rgba(8,38,74,0.08);
}
.cd-acc-list li {
  display: flex; align-items: center; gap: 0.65rem;
  padding: 0.55rem 0; color: #4b5563; font-size: 0.85rem; font-weight: 600;
  border-bottom: 1px solid rgba(8,38,74,0.04);
}
.cd-acc-list li:last-child { border-bottom: 0; }
.cd-acc-list i, .cd-acc-list iconify-icon { color: var(--gold); font-size: 0.65rem; }

.cd-check-list, .cd-req-list {
  list-style: none; margin: 0; padding: 0;
  display: grid; gap: 0.65rem;
}
@media (min-width: 640px) { .cd-check-list { grid-template-columns: 1fr 1fr; } }
.cd-check-list li, .cd-req-list li {
  display: flex; align-items: flex-start; gap: 0.65rem;
  color: #374151; font-size: 0.9rem; line-height: 1.55; font-weight: 600;
}
.cd-check-list i, .cd-check-list iconify-icon {
  width: 22px; height: 22px; border-radius: 50%; flex-shrink: 0; margin-top: 1px;
  display: grid; place-items: center; background: rgba(34,197,94,0.12); color: #16a34a; font-size: 0.65rem;
}
.cd-req-list i, .cd-req-list iconify-icon { color: var(--gold); font-size: 0.4rem; margin-top: 0.55rem; }

.cd-faq-item {
  background: #f7f9fc; border-radius: 0.9rem; margin-bottom: 0.65rem; overflow: hidden;
}
.cd-faq-item summary {
  list-style: none; cursor: pointer; display: flex; align-items: center;
  justify-content: space-between; gap: 1rem; padding: 1rem 1.1rem;
  font-weight: 800; color: var(--navy); font-size: 0.9rem;
}
.cd-faq-item summary::-webkit-details-marker { display: none; }
.cd-faq-item summary i, .cd-faq-item summary iconify-icon { color: #9ca3af; transition: transform 0.2s; }
.cd-faq-item[open] summary i, .cd-faq-item[open] summary iconify-icon { transform: rotate(180deg); color: var(--gold); }
.cd-faq-item p {
  margin: 0; padding: 0 1.1rem 1rem; color: #6b7280; font-size: 0.88rem; line-height: 1.75;
}

.cd-reviews-summary {
  display: grid; gap: 1.25rem; margin-bottom: 1.35rem;
  background: #f7f9fc; border-radius: 1rem; padding: 1.15rem;
}
@media (min-width: 640px) {
  .cd-reviews-summary { grid-template-columns: 140px 1fr; align-items: center; }
}
.cd-reviews-score { text-align: center; }
.cd-reviews-score strong {
  display: block; font-size: 2.6rem; font-weight: 800; color: var(--navy); line-height: 1;
}
.cd-stars { color: var(--gold); font-size: 0.85rem; margin: 0.35rem 0; }
.cd-reviews-score > span { color: #9ca3af; font-size: 0.8rem; font-weight: 700; }
.cd-bar-row {
  display: grid; grid-template-columns: 42px 1fr 36px; gap: 0.5rem; align-items: center;
  margin-bottom: 0.4rem; font-size: 0.75rem; font-weight: 700; color: #6b7280;
}
.cd-bar-row i, .cd-bar-row iconify-icon { color: var(--gold); font-size: 0.65rem; }
.cd-bar {
  height: 7px; border-radius: 999px; background: #e5e7eb; overflow: hidden;
}
.cd-bar > i {
  display: block; height: 100%; background: var(--gold); border-radius: inherit;
}
.cd-bar-row em { font-style: normal; text-align: end; color: #9ca3af; }

.cd-reviews-carousel { position: relative; }
.cd-review {
  display: none; background: white; border: 1px solid rgba(8,38,74,0.08);
  border-radius: 1rem; padding: 1.15rem;
}
.cd-review.is-active { display: block; animation: cdFade 0.3s ease; }
@keyframes cdFade { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.cd-review-top {
  display: flex; flex-wrap: wrap; align-items: center; gap: 0.75rem; margin-bottom: 0.75rem;
}
.cd-review-avatar {
  width: 42px; height: 42px; border-radius: 50%;
  display: grid; place-items: center; background: rgba(8,38,74,0.08);
  color: var(--navy); font-weight: 800; font-size: 0.8rem;
}
.cd-review-top strong { display: block; color: var(--navy); font-size: 0.88rem; }
.cd-review-top time { display: block; color: #9ca3af; font-size: 0.72rem; font-weight: 600; }
.cd-review-top .cd-stars { margin-inline-start: auto; }
.cd-review p { margin: 0; color: #4b5563; font-size: 0.9rem; line-height: 1.75; }
.cd-review-nav {
  display: flex; gap: 0.5rem; justify-content: flex-end; margin-top: 0.85rem;
}
.cd-review-nav button {
  width: 36px; height: 36px; border-radius: 50%; border: 1px solid rgba(8,38,74,0.12);
  background: white; color: var(--navy); cursor: pointer; display: grid; place-items: center;
  transition: background 0.2s, color 0.2s;
}
.cd-review-nav button:hover { background: var(--navy); color: white; }

.cd-sidebar { display: grid; gap: 1rem; }
@media (min-width: 1024px) {
  .cd-sidebar { position: sticky; top: 5.5rem; }
}
.cd-side-card {
  background: white; border-radius: 1.15rem; padding: 1.25rem;
  box-shadow: 0 14px 36px rgba(8,38,74,0.08);
}
.cd-price-row {
  display: flex; align-items: center; justify-content: space-between;
  gap: 0.75rem; margin-bottom: 1rem;
}
.cd-price strong { font-size: 1.65rem; font-weight: 800; color: var(--gold); }
.cd-price s { display: block; color: #9ca3af; font-size: 0.9rem; font-weight: 700; }
.cd-discount {
  background: rgba(34,197,94,0.12); color: #15803d;
  font-size: 0.75rem; font-weight: 800; padding: 0.35rem 0.65rem; border-radius: 999px;
}
.cd-btn-primary {
  display: flex; align-items: center; justify-content: center; gap: 0.55rem;
  width: 100%; padding: 0.9rem 1rem; border-radius: 0.85rem;
  background: var(--gold); color: white; font-weight: 800; font-size: 0.95rem;
  text-decoration: none; border: 0; cursor: pointer; font-family: inherit;
  box-shadow: 0 10px 24px rgba(201,154,46,0.28); transition: transform 0.2s, background 0.2s;
}
.cd-btn-primary:hover { background: #b88922; transform: translateY(-1px); color: white; }
.cd-btn-fav {
  display: flex; align-items: center; justify-content: center; gap: 0.55rem;
  width: 100%; margin-top: 0.65rem; padding: 0.8rem 1rem; border-radius: 0.85rem;
  background: white; color: var(--navy); font-weight: 800; font-size: 0.88rem;
  border: 1.5px solid rgba(8,38,74,0.15); cursor: pointer; font-family: inherit;
  transition: border-color 0.2s, color 0.2s, background 0.2s;
}
.cd-btn-fav:hover, .cd-btn-fav.is-active {
  border-color: #ef4444; color: #ef4444; background: rgba(239,68,68,0.04);
}
.cd-includes {
  list-style: none; margin: 1.15rem 0 0; padding: 1rem 0 0;
  border-top: 1px solid rgba(8,38,74,0.08); display: grid; gap: 0.55rem;
}
.cd-includes li {
  display: flex; align-items: flex-start; gap: 0.55rem;
  color: #4b5563; font-size: 0.84rem; font-weight: 600; line-height: 1.45;
}
.cd-includes i, .cd-includes iconify-icon { color: #16a34a; margin-top: 0.15rem; }

.cd-share, .cd-related {
  background: white; border-radius: 1.15rem; padding: 1.15rem;
  box-shadow: 0 10px 28px rgba(8,38,74,0.05);
}
.cd-share h3, .cd-related h3 {
  font-size: 0.95rem; font-weight: 800; color: var(--navy); margin-bottom: 0.85rem;
}
.cd-share-links { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.cd-share-btn {
  width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center;
  background: #f3f4f6; color: var(--navy); border: 0; cursor: pointer;
  text-decoration: none; transition: background 0.2s, color 0.2s, transform 0.2s;
}
.cd-share-btn:hover { background: var(--navy); color: white; transform: translateY(-2px); }
.cd-share-btn.is-copied { background: #16a34a; color: white; }

.cd-related-list { display: grid; gap: 0.75rem; }
.cd-related-card {
  display: grid; grid-template-columns: 72px 1fr; gap: 0.7rem; align-items: center;
  text-decoration: none; padding: 0.35rem; border-radius: 0.75rem;
  transition: background 0.2s;
}
.cd-related-card:hover { background: #f7f9fc; }
.cd-related-card img {
  width: 72px; height: 56px; object-fit: cover; border-radius: 0.65rem;
}
.cd-related-card strong {
  display: block; color: var(--navy); font-size: 0.8rem; line-height: 1.4; font-weight: 800;
}
.cd-related-card span { color: var(--gold); font-size: 0.82rem; font-weight: 800; }

.cd-cta {
  background:
    radial-gradient(circle at 85% 40%, rgba(201,154,46,0.18), transparent 35%),
    linear-gradient(135deg, #061c38 0%, #08264a 55%, #0a3260 100%);
  color: white; padding: 3.25rem 0; position: relative; overflow: hidden;
}
.cd-cta h2 {
  font-size: clamp(1.25rem, 2.8vw, 1.75rem); font-weight: 800;
  margin-bottom: 1.25rem; line-height: 1.45;
}
.cd-cta-btn {
  display: inline-flex; align-items: center; gap: 0.55rem;
  background: var(--gold); color: white; font-weight: 800;
  padding: 0.85rem 1.5rem; border-radius: 0.85rem; text-decoration: none;
  box-shadow: 0 12px 28px rgba(201,154,46,0.3); transition: transform 0.2s, background 0.2s;
}
.cd-cta-btn:hover { background: #b88922; transform: translateY(-2px); color: white; }
html[dir='ltr'] .cd-cta-btn i, html[dir='ltr'] .cd-cta-btn iconify-icon { transform: scaleX(-1); }

.cd-intro-modal {
  position: fixed; inset: 0; z-index: 80;
  background: rgba(8,38,74,0.55); backdrop-filter: blur(4px);
  display: grid; place-items: center; padding: 1rem;
}
.cd-intro-modal[hidden] { display: none !important; }
.cd-intro-dialog {
  width: min(480px, 100%); background: white; border-radius: 1.25rem;
  padding: 1.25rem; position: relative; box-shadow: 0 24px 60px rgba(0,0,0,0.25);
}
.cd-intro-close {
  position: absolute; top: 0.75rem; inset-inline-end: 0.75rem;
  width: 34px; height: 34px; border-radius: 50%; border: 0;
  background: #f3f4f6; color: var(--navy); cursor: pointer;
}
.cd-intro-media {
  position: relative; border-radius: 1rem; overflow: hidden; margin-bottom: 1rem;
  aspect-ratio: 16 / 9;
}
.cd-intro-media img { width: 100%; height: 100%; object-fit: cover; }
.cd-intro-play {
  position: absolute; inset: 0; display: grid; place-items: center;
  background: rgba(8,38,74,0.35); color: white; font-size: 1.5rem;
}
.cd-intro-dialog h3 {
  font-size: 1.1rem; font-weight: 800; color: var(--navy); margin-bottom: 0.45rem;
}
.cd-intro-dialog p {
  color: #6b7280; font-size: 0.88rem; line-height: 1.7; margin-bottom: 1rem;
}

.cd-m-cover { display: none; }
.cd-m-meta { display: none; }
.cd-back { display: none; }
.cd-sticky-enroll { display: none; }

@media (max-width: 640px) {
  .cd-hero { padding-top: 1.75rem; }
  .cd-hero-content h1 { max-width: none; }
  .cd-play-circle { width: 72px; height: 72px; }
  .cd-stats { grid-template-columns: 1fr 1fr; }
}

/* ========== Course details — mobile ========== */
@media (max-width: 899px) {
  .course-page {
    padding-bottom: calc(5.5rem + env(safe-area-inset-bottom, 0px));
  }

  .course-breadcrumb {
    padding: 0.55rem 0;
    background: #fff;
    position: sticky;
    top: 5rem;
    z-index: 30;
    border-bottom: 1px solid rgba(8, 38, 74, 0.08);
  }
  .course-breadcrumb > div {
    flex-wrap: nowrap;
    gap: 0.35rem;
    overflow: hidden;
  }
  .cd-back {
    display: grid;
    place-items: center;
    width: 2.15rem;
    height: 2.15rem;
    border-radius: 0.7rem;
    background: var(--bg-light);
    color: var(--navy);
    flex-shrink: 0;
    text-decoration: none;
    margin-inline-end: 0.15rem;
  }
  .cd-crumb-hide-sm { display: none !important; }
  .cd-crumb-current {
    flex: 1;
    min-width: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    color: var(--navy);
    font-weight: 800;
  }

  .cd-hero {
    padding: 0;
    background: #fff;
    color: var(--navy);
  }
  .cd-hero-bg { display: none; }
  .cd-hero-play-wrap { display: none; }

  .cd-m-cover {
    display: block;
    position: relative;
    margin: 0.85rem 1rem 0;
    border-radius: 1.15rem;
    overflow: hidden;
    aspect-ratio: 16 / 10;
    background: #e8eef5;
    box-shadow: 0 14px 32px rgba(8, 38, 74, 0.14);
  }
  .cd-m-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
  }
  .cd-m-cover::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 45%, rgba(8, 38, 74, 0.45) 100%);
    pointer-events: none;
  }
  .cd-m-play {
    position: absolute;
    inset-inline-start: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    z-index: 2;
    width: 3.6rem;
    height: 3.6rem;
    border: 0;
    border-radius: 50%;
    background: linear-gradient(145deg, #d4a935, #C99A2E);
    color: #08264A;
    display: grid;
    place-items: center;
    font-size: 1.45rem;
    box-shadow: 0 10px 28px rgba(201, 154, 46, 0.45);
    cursor: pointer;
  }
  html[dir='ltr'] .cd-m-play { transform: translate(-50%, -50%); }

  .cd-hero-grid {
    padding: 1rem 0 1.15rem;
    gap: 0;
  }
  .cd-badges { margin-bottom: 0.65rem; }
  .cd-badge--muted {
    background: rgba(8, 38, 74, 0.08);
    color: var(--navy);
    backdrop-filter: none;
  }
  .cd-hero-content h1 {
    font-size: 1.35rem;
    line-height: 1.45;
    margin-bottom: 0.55rem;
    color: var(--navy);
  }
  .cd-hero-desc {
    color: #6b7280;
    font-size: 0.88rem;
    margin-bottom: 0.95rem;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }
  .cd-instructor {
    padding: 0.75rem;
    border-radius: 1rem;
    background: var(--bg-light);
    border: 1px solid rgba(8, 38, 74, 0.06);
  }
  .cd-instructor-avatar {
    box-shadow: 0 0 0 3px rgba(201, 154, 46, 0.25);
  }
  .cd-instructor strong { color: var(--navy); }
  .cd-instructor-rating span { color: #6b7280; }

  .cd-m-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
    margin-top: 0.85rem;
  }
  .cd-m-meta span {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.35rem 0.65rem;
    border-radius: 999px;
    background: rgba(201, 154, 46, 0.1);
    color: var(--navy);
    font-size: 0.72rem;
    font-weight: 800;
  }
  .cd-m-meta iconify-icon { color: var(--gold); font-size: 0.85rem; }
  .cd-m-meta em { font-style: normal; color: #9ca3af; font-weight: 700; }

  .cd-stats-bar {
    background: transparent;
    border: 0;
    margin-top: 0;
    padding: 0 0 0.25rem;
  }
  .cd-stats {
    display: flex;
    gap: 0.55rem;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding: 0.15rem 1rem 0.85rem;
    -ms-overflow-style: none;
    scrollbar-width: none;
  }
  .cd-stats::-webkit-scrollbar { display: none; }
  .cd-stats li {
    flex: 0 0 auto;
    scroll-snap-align: start;
    min-width: 8.5rem;
    background: #fff;
    border: 1px solid rgba(8, 38, 74, 0.08);
    border-radius: 1rem;
    padding: 0.75rem 0.85rem;
    box-shadow: 0 6px 18px rgba(8, 38, 74, 0.05);
    color: var(--navy);
  }
  .cd-stats i, .cd-stats iconify-icon {
    background: rgba(201, 154, 46, 0.12);
    color: var(--gold);
  }
  .cd-stats span { color: #9ca3af; }
  .cd-stats strong { color: var(--navy); }

  .cd-body { padding: 0.5rem 0 1.5rem; }
  .cd-layout { display: flex; flex-direction: column; gap: 1rem; }

  .cd-tabs {
    display: flex;
    gap: 0.4rem;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding: 0.35rem;
    margin: 0 -0.15rem;
    background: #fff;
    border: 1px solid rgba(8, 38, 74, 0.08);
    border-radius: 1rem;
    box-shadow: 0 8px 22px rgba(8, 38, 74, 0.06);
    -ms-overflow-style: none;
    scrollbar-width: none;
    position: sticky;
    top: calc(5rem + 2.7rem);
    z-index: 25;
  }
  .cd-tabs::-webkit-scrollbar { display: none; }
  .cd-tab {
    flex: 0 0 auto;
    scroll-snap-align: start;
    white-space: nowrap;
    border-radius: 0.75rem;
    padding: 0.55rem 0.85rem;
    font-size: 0.78rem;
    border: 0;
  }
  .cd-tab.is-active::after { display: none; }
  .cd-tab.is-active {
    background: var(--navy);
    color: #fff;
  }
  .cd-tab.is-active iconify-icon { color: var(--gold); }

  .cd-panels {
    border-radius: 1.15rem;
    padding: 1.15rem 1rem 1.25rem;
    border: 1px solid rgba(8, 38, 74, 0.07);
    box-shadow: 0 10px 28px rgba(8, 38, 74, 0.06);
  }
  .cd-panel h2 { font-size: 1.05rem; }
  .cd-highlight {
    border-radius: 0.95rem;
    padding: 0.85rem;
  }
  .cd-acc {
    border-radius: 0.95rem;
  }
  .cd-acc summary { padding: 0.85rem; gap: 0.65rem; }
  .cd-acc-num {
    width: 1.85rem;
    height: 1.85rem;
    font-size: 0.75rem;
  }

  .cd-sidebar { order: 2; gap: 0.85rem; }
  .cd-side-card .cd-price-row,
  .cd-side-card .cd-btn-primary,
  .cd-side-card .cd-btn-fav {
    display: none;
  }
  .cd-side-card {
    border-radius: 1.15rem;
    padding: 1rem;
  }
  .cd-includes { margin-top: 0; }
  .cd-share, .cd-related {
    border-radius: 1.15rem;
    padding: 1rem;
  }
  .cd-related-card {
    border-radius: 0.9rem;
  }

  .cd-cta {
    margin: 0.5rem 1rem 1.25rem;
    border-radius: 1.25rem;
    padding: 1.5rem 1.15rem;
  }
  .cd-cta h2 { font-size: 1.15rem; }

  .cd-sticky-enroll {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    position: fixed;
    z-index: 46;
    inset-inline: 0.75rem;
    bottom: calc(4.85rem + env(safe-area-inset-bottom, 0px));
    padding: 0.55rem 0.55rem 0.55rem 0.85rem;
    border-radius: 1.15rem;
    background: rgba(8, 38, 74, 0.96);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 14px 36px rgba(8, 38, 74, 0.35);
    border: 1px solid rgba(201, 154, 46, 0.22);
  }
  .cd-sticky-enroll__price {
    display: flex;
    flex-direction: column;
    min-width: 4.2rem;
    color: #fff;
    line-height: 1.15;
  }
  .cd-sticky-enroll__price strong {
    font-size: 1.05rem;
    font-weight: 800;
    color: #C99A2E;
  }
  .cd-sticky-enroll__price s {
    font-size: 0.7rem;
    color: rgba(255, 255, 255, 0.45);
  }
  .cd-sticky-enroll__fav {
    width: 2.55rem;
    height: 2.55rem;
    border-radius: 0.8rem;
    border: 1px solid rgba(255, 255, 255, 0.14);
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
    display: grid;
    place-items: center;
    font-size: 1.15rem;
    cursor: pointer;
    flex-shrink: 0;
  }
  .cd-sticky-enroll__fav.is-active {
    color: #ef4444;
    background: rgba(239, 68, 68, 0.15);
    border-color: rgba(239, 68, 68, 0.3);
  }
  .cd-sticky-enroll__cta {
    flex: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    min-height: 2.65rem;
    border-radius: 0.85rem;
    background: linear-gradient(145deg, #d4a935, #C99A2E);
    color: #08264A;
    font-weight: 800;
    font-size: 0.9rem;
    text-decoration: none;
  }

  .cd-intro-dialog {
    width: min(100% - 1.5rem, 420px);
    border-radius: 1.25rem;
    padding: 1rem;
  }
  .cd-reviews-summary { gap: 1rem; }
  .cd-review-top { flex-wrap: wrap; }
  .cd-review-top .cd-stars { margin-inline-start: 0; width: 100%; }
}

@media (min-width: 900px) {
  .cd-m-cover,
  .cd-m-meta,
  .cd-back,
  .cd-sticky-enroll {
    display: none !important;
  }
}

@media (max-width: 1023px) and (min-width: 900px) {
  .course-page {
    padding-bottom: calc(5.75rem + env(safe-area-inset-bottom, 0px));
  }
}
