/* ══════════════════════════════════════════════════════════════
   PTI Oman — Premium Stylesheet v3
   Complete redesign with animations, glassmorphism, gradients
   ══════════════════════════════════════════════════════════════ */

/* ── LIGHT THEME ────────────────────────────────────────────── */
:root {
  --gold:      #C9971C;
  --gold-lt:   #E0AC30;
  --gold-pale: #FDF5DC;
  --gold-glow: rgba(201,151,28,.25);
  --teal:      #4BBFCF;
  --teal-lt:   #6ED0DE;
  --teal-pale: #E6F7FA;
  --gray-dk:   #2A2A2A;
  --gray:      #6B6B6B;
  --gray-lt:   #9B9B9B;
  --cream:     #F8F8F5;
  --white:     #FFFFFF;
  --border:    #E6E2D8;
  --text:      #2E2E2E;
  --focus:     #2563EB;
  --nav-bg:    rgba(255,255,255,0.85);
  --card-bg:   #FFFFFF;
  --section-alt: #FFFFFF;
  --mobile-menu-bg: rgba(255,255,255,.92);
  --shadow-xs: 0 1px 3px rgba(0,0,0,.04);
  --shadow-sm: 0 2px 10px rgba(0,0,0,.06);
  --shadow-md: 0 8px 30px rgba(0,0,0,.08);
  --shadow-lg: 0 16px 50px rgba(0,0,0,.12);
  --shadow-gold: 0 8px 30px rgba(201,151,28,.2);
  --glass: saturate(180%) blur(18px);
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --anim-fast: .25s;
  --anim-med:  .45s;
  --anim-slow: .7s;
}

/* ── DARK THEME ─────────────────────────────────────────────── */
[data-theme="dark"] {
  --gold:      #D4A226;
  --gold-lt:   #EAB840;
  --gold-pale: rgba(212,162,38,.10);
  --gold-glow: rgba(212,162,38,.18);
  --teal:      #5CC8D6;
  --teal-lt:   #7ED8E4;
  --teal-pale: rgba(92,200,214,.08);
  --gray-dk:   #E8E8E8;
  --gray:      #A0A0A0;
  --gray-lt:   #606060;
  --cream:     #0D0F14;
  --white:     #161920;
  --border:    #252830;
  --text:      #E0E0E0;
  --focus:     #5B9AFF;
  --nav-bg:    rgba(13,15,20,0.85);
  --card-bg:   #161920;
  --section-alt: #121419;
  --mobile-menu-bg: rgba(13,15,20,.92);
  --shadow-xs: 0 1px 3px rgba(0,0,0,.2);
  --shadow-sm: 0 2px 10px rgba(0,0,0,.3);
  --shadow-md: 0 8px 30px rgba(0,0,0,.35);
  --shadow-lg: 0 16px 50px rgba(0,0,0,.45);
  --shadow-gold: 0 8px 30px rgba(212,162,38,.12);
  color-scheme: dark;
}

/* ── KEYFRAMES ──────────────────────────────────────────────── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(30px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}
@keyframes slideInLeft {
  from { opacity: 0; transform: translateX(-40px); }
  to   { opacity: 1; transform: translateX(0); }
}
@keyframes slideInRight {
  from { opacity: 0; transform: translateX(40px); }
  to   { opacity: 1; transform: translateX(0); }
}
@keyframes scaleIn {
  from { opacity: 0; transform: scale(.92); }
  to   { opacity: 1; transform: scale(1); }
}
@keyframes shimmer {
  0%   { background-position: -200% center; }
  100% { background-position: 200% center; }
}
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-8px); }
}
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 0 var(--gold-glow); }
  50%      { box-shadow: 0 0 0 12px transparent; }
}
@keyframes gradientShift {
  0%   { background-position: 0% 50%; }
  50%  { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}
@keyframes borderGlow {
  0%, 100% { border-color: var(--gold); box-shadow: 0 0 8px var(--gold-glow); }
  50%      { border-color: var(--teal); box-shadow: 0 0 8px rgba(75,191,207,.2); }
}

/* ── RESET & BASE ───────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Source Sans 3', sans-serif;
  background: var(--cream);
  color: var(--text);
  line-height: 1.65;
  transition: background .4s ease, color .4s ease;
  overflow-x: hidden;
}

/* ── ACCESSIBILITY ──────────────────────────────────────────── */
.skip-link {
  position: absolute; top: -100%; left: 50%; transform: translateX(-50%);
  background: var(--gold); color: #fff; padding: 12px 24px;
  border-radius: 0 0 var(--radius-sm) var(--radius-sm);
  font-weight: 700; font-size: 14px; z-index: 9999;
  text-decoration: none; transition: top .2s;
}
.skip-link:focus { top: 0; }
*:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 2px; }
.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; }

/* ── SCROLL ANIMATIONS ──────────────────────────────────────── */
.anim-fade-up {
  opacity: 0; transform: translateY(30px);
  transition: opacity var(--anim-slow) cubic-bezier(.22,1,.36,1),
              transform var(--anim-slow) cubic-bezier(.22,1,.36,1);
}
.anim-fade-up.visible { opacity: 1; transform: translateY(0); }

.anim-slide-left {
  opacity: 0; transform: translateX(-40px);
  transition: opacity var(--anim-slow) ease, transform var(--anim-slow) ease;
}
.anim-slide-left.visible { opacity: 1; transform: translateX(0); }

.anim-slide-right {
  opacity: 0; transform: translateX(40px);
  transition: opacity var(--anim-slow) ease, transform var(--anim-slow) ease;
}
.anim-slide-right.visible { opacity: 1; transform: translateX(0); }

.anim-scale-in {
  opacity: 0; transform: scale(.92);
  transition: opacity var(--anim-med) ease, transform var(--anim-med) ease;
}
.anim-scale-in.visible { opacity: 1; transform: scale(1); }

/* Stagger children */
.stagger-children > *:nth-child(1) { transition-delay: .05s; }
.stagger-children > *:nth-child(2) { transition-delay: .12s; }
.stagger-children > *:nth-child(3) { transition-delay: .19s; }
.stagger-children > *:nth-child(4) { transition-delay: .26s; }
.stagger-children > *:nth-child(5) { transition-delay: .33s; }
.stagger-children > *:nth-child(6) { transition-delay: .40s; }

/* ── NAV ────────────────────────────────────────────────────── */
.nav-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 200;
  background: var(--nav-bg); backdrop-filter: var(--glass);
  -webkit-backdrop-filter: var(--glass);
  border-bottom: 1px solid var(--border);
  display: flex; align-items: center;
  padding: 0 5vw; height: 70px; gap: 18px;
  transition: background .4s, border-color .4s, box-shadow .3s;
}
.nav-header.scrolled {
  box-shadow: var(--shadow-md);
  border-bottom-color: transparent;
}
.nav-logo { display: flex; align-items: center; text-decoration: none; flex-shrink: 0; }
.nav-center {
  flex: 1 1 auto;
  display: flex; justify-content: center;
  max-width: 340px;
  margin-left: auto;   /* pushes search to sit beside the right cluster, not floating mid-header */
}
.nav-right { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.nav-header nav { flex-shrink: 0; }

/* Theme toggle */
.theme-toggle {
  width: 38px; height: 38px; border: 1.5px solid var(--border);
  border-radius: 50%; background: var(--card-bg); cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: all var(--anim-fast); flex-shrink: 0;
}
.theme-toggle:hover { border-color: var(--gold); background: var(--gold-pale); transform: rotate(15deg); }
.theme-toggle svg { width: 18px; height: 18px; transition: transform .4s cubic-bezier(.34,1.56,.64,1); }
.theme-toggle .icon-sun { color: var(--gold); display: none; }
.theme-toggle .icon-moon { color: var(--gray); }
[data-theme="dark"] .theme-toggle .icon-sun { display: block; }
[data-theme="dark"] .theme-toggle .icon-moon { display: none; }
[data-theme="dark"] .theme-toggle:hover svg { transform: rotate(30deg); }

/* Search */
.nav-search { position: relative; width: 100%; max-width: 340px; }
.nav-search input {
  width: 100%; padding: 8px 14px 8px 36px;
  border: 1.5px solid var(--border); border-radius: var(--radius-sm);
  font-size: 13.5px; font-family: 'Source Sans 3', sans-serif;
  background: var(--card-bg); color: var(--text);
  transition: all var(--anim-fast); outline: none;
}
.nav-search input::placeholder { color: var(--gray-lt); }
.nav-search input:focus { border-color: var(--gold); box-shadow: 0 0 0 4px var(--gold-glow); }
.nav-search::before {
  content: ''; position: absolute; left: 12px; top: 50%; transform: translateY(-50%);
  width: 15px; height: 15px; opacity: .5;
  background: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%239B9B9B' stroke-width='2.5'><circle cx='11' cy='11' r='7'/><path d='m21 21-4.3-4.3'/></svg>") no-repeat center/contain;
  pointer-events: none;
}
.search-results {
  position: absolute; top: calc(100% + 8px); left: 0; right: 0;
  background: var(--card-bg); border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg); max-height: 400px; overflow-y: auto;
  display: none; z-index: 300;
  animation: scaleIn .2s ease;
}
.search-results.open { display: block; }
.search-result-item {
  display: block; padding: 12px 16px; border-bottom: 1px solid var(--border);
  text-decoration: none; color: var(--text); transition: all .15s;
}
.search-result-item:hover, .search-result-item:focus { background: var(--gold-pale); padding-left: 20px; }
.search-result-item:last-child { border-bottom: none; }
.search-result-title { font-family: 'Rajdhani', sans-serif; font-weight: 700; font-size: 14px; color: var(--gray-dk); margin-bottom: 2px; }
.search-result-cat { font-size: 11px; color: var(--gold); text-transform: uppercase; letter-spacing: .8px; font-weight: 600; }
.search-no-results { padding: 20px; text-align: center; color: var(--gray); font-size: 13px; }

/* Nav links */
.nav-links { display: flex; gap: 20px; list-style: none; align-items: center; }
.nav-links a {
  text-decoration: none; font-family: 'Rajdhani', sans-serif;
  font-size: 13.5px; font-weight: 600; letter-spacing: .7px;
  color: var(--gray-dk); transition: color var(--anim-fast);
  text-transform: uppercase; position: relative; padding: 4px 0;
}
.nav-links a::after {
  content: ''; position: absolute; bottom: -2px; left: 0; right: 0;
  height: 2px; background: linear-gradient(90deg, var(--gold), var(--teal));
  transform: scaleX(0); transition: transform .3s cubic-bezier(.34,1.56,.64,1);
  transform-origin: center; border-radius: 1px;
}
.nav-links a:hover, .nav-links a:focus { color: var(--gold); }
.nav-links a:hover::after { transform: scaleX(1); }
.nav-links a.nav-cta {
  background: linear-gradient(135deg, var(--gold), var(--gold-lt)) !important;
  color: #fff !important;
  padding: 9px 22px !important;
  border-radius: var(--radius-sm) !important;
  display: inline-block !important;
  box-shadow: 0 4px 12px var(--gold-glow);
  transition: all var(--anim-fast) !important;
}
.nav-links a.nav-cta::after { display: none !important; }
.nav-links a.nav-cta:hover,
.nav-links a.nav-cta:focus {
  box-shadow: 0 6px 18px rgba(201,151,28,.4) !important;
  transform: translateY(-2px) !important;
  color: #fff !important;
}

/* Hamburger */
.hamburger { display: none; background: none; border: none; cursor: pointer; width: 38px; height: 38px; position: relative; z-index: 210; border-radius: var(--radius-sm); transition: background .2s; }
.hamburger:hover { background: var(--gold-pale); }
.hamburger span { display: block; width: 22px; height: 2px; background: var(--gray-dk); margin: 5px auto; transition: all .3s cubic-bezier(.34,1.56,.64,1); border-radius: 1px; }
.hamburger[aria-expanded="true"] span:nth-child(1) { transform: rotate(45deg) translate(5px,5px); }
.hamburger[aria-expanded="true"] span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.hamburger[aria-expanded="true"] span:nth-child(3) { transform: rotate(-45deg) translate(5px,-5px); }

/* ── BUTTONS ────────────────────────────────────────────────── */
.btn-gold {
  background: linear-gradient(135deg, var(--gold), var(--gold-lt));
  color: #fff; padding: 14px 34px; border-radius: var(--radius-sm);
  font-family: 'Rajdhani', sans-serif; font-weight: 700; font-size: 15px;
  letter-spacing: .8px; text-decoration: none; text-transform: uppercase;
  display: inline-block; border: none; cursor: pointer;
  transition: all .3s cubic-bezier(.34,1.56,.64,1);
  position: relative; overflow: hidden;
}
.btn-gold::before {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(135deg, transparent 40%, rgba(255,255,255,.2) 50%, transparent 60%);
  background-size: 200% 100%;
  animation: shimmer 3s ease infinite;
}
.btn-gold:hover, .btn-gold:focus {
  transform: translateY(-3px);
  box-shadow: 0 10px 30px rgba(201,151,28,.4);
}
.btn-gold:active { transform: translateY(-1px); }

.btn-teal-out {
  border: 2px solid var(--teal); color: var(--teal); background: transparent;
  padding: 12px 28px; border-radius: var(--radius-sm);
  font-family: 'Rajdhani', sans-serif; font-weight: 700; font-size: 15px;
  letter-spacing: .8px; text-decoration: none; text-transform: uppercase;
  display: inline-block;
  transition: all .3s cubic-bezier(.34,1.56,.64,1);
}
.btn-teal-out:hover, .btn-teal-out:focus {
  background: var(--teal); color: #fff;
  box-shadow: 0 8px 24px rgba(75,191,207,.3);
  transform: translateY(-2px);
}

/* ── SECTIONS ───────────────────────────────────────────────── */
section { padding: 90px 5vw; transition: background .4s ease; }
.section-inner { max-width: 1180px; margin: 0 auto; }
.section-tag {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: 'Rajdhani', sans-serif; font-size: 12px; font-weight: 700;
  letter-spacing: 2px; text-transform: uppercase; color: var(--teal); margin-bottom: 12px;
}
.section-tag::before {
  content: ''; width: 28px; height: 2px; display: block;
  background: linear-gradient(90deg, var(--gold), var(--teal));
  border-radius: 1px;
}
.section-title {
  font-family: 'Rajdhani', sans-serif; font-size: clamp(1.8rem, 3vw, 2.6rem);
  font-weight: 700; color: var(--gray-dk); letter-spacing: .3px; margin-bottom: 14px; line-height: 1.15;
}
.section-sub { font-size: 16.5px; color: var(--gray); max-width: 600px; line-height: 1.8; }
.divider {
  width: 60px; height: 4px; border-radius: 2px; margin-bottom: 44px;
  background: linear-gradient(90deg, var(--gold), var(--teal));
  background-size: 200% 100%;
  animation: gradientShift 4s ease infinite;
}

/* ── BREADCRUMBS ────────────────────────────────────────────── */
.breadcrumbs { font-size: 13px; color: var(--gray); margin-bottom: 20px; }
.breadcrumbs a { color: var(--gold); text-decoration: none; transition: color .2s; }
.breadcrumbs a:hover { color: var(--gold-lt); }
.breadcrumbs span { margin: 0 8px; color: var(--gray-lt); }

/* ── COURSE HERO (always dark) ──────────────────────────────── */
.course-hero {
  margin-top: 70px; padding: 70px 5vw 60px;
  background: linear-gradient(140deg, #0a0c10 0%, #161820 55%, #1c2028 100%);
  color: #fff; position: relative; overflow: hidden;
}
.course-hero::before {
  content: ''; position: absolute; top: -120px; right: -120px;
  width: 500px; height: 500px; border-radius: 50%;
  background: radial-gradient(circle, rgba(201,151,28,.15), transparent 65%);
  animation: float 6s ease infinite;
}
.course-hero::after {
  content: ''; position: absolute; bottom: -100px; left: 5%;
  width: 350px; height: 350px; border-radius: 50%;
  background: radial-gradient(circle, rgba(75,191,207,.1), transparent 65%);
  animation: float 8s ease infinite 2s;
}
.course-hero-inner { max-width: 1180px; margin: 0 auto; position: relative; z-index: 1; }
.course-hero .breadcrumbs { color: rgba(255,255,255,.5); }
.course-hero .breadcrumbs a { color: var(--gold-lt); }
.course-hero .breadcrumbs span { color: rgba(255,255,255,.25); }
.course-category-badge {
  display: inline-block; padding: 6px 16px; border-radius: 6px;
  background: rgba(201,151,28,.12); border: 1px solid rgba(201,151,28,.3);
  color: var(--gold-lt); font-size: 11px; font-weight: 700;
  letter-spacing: 1.5px; text-transform: uppercase; margin-bottom: 18px;
  animation: borderGlow 4s ease infinite;
}
.course-hero h1 {
  font-family: 'Rajdhani', sans-serif; font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  font-weight: 700; line-height: 1.15; margin-bottom: 18px; max-width: 850px;
}
.course-hero-desc { font-size: 17px; color: rgba(255,255,255,.7); max-width: 720px; line-height: 1.75; margin-bottom: 26px; }
.course-meta-row { display: flex; gap: 20px; flex-wrap: wrap; margin-bottom: 28px; font-size: 14px; color: rgba(255,255,255,.6); }
.course-meta-row span {
  display: flex; align-items: center; gap: 6px;
  background: rgba(255,255,255,.06); padding: 5px 12px;
  border-radius: 6px; border: 1px solid rgba(255,255,255,.08);
}
.course-hero-btns { display: flex; gap: 14px; flex-wrap: wrap; }

/* ── COURSE MAIN ────────────────────────────────────────────── */
.course-main { padding: 60px 5vw; background: var(--section-alt); transition: background .4s; }
.course-layout { max-width: 1180px; margin: 0 auto; display: grid; grid-template-columns: 1fr 320px; gap: 50px; align-items: start; }
.course-content h2 {
  font-family: 'Rajdhani', sans-serif; font-size: 1.6rem; font-weight: 700;
  color: var(--gray-dk); margin-bottom: 16px; margin-top: 40px; letter-spacing: .3px;
  position: relative; padding-left: 16px;
}
.course-content h2::before {
  content: ''; position: absolute; left: 0; top: 4px; bottom: 4px; width: 4px;
  background: linear-gradient(180deg, var(--gold), var(--teal));
  border-radius: 2px;
}
.course-content h2:first-child { margin-top: 0; }
.course-content p { font-size: 15.5px; color: var(--gray); margin-bottom: 14px; line-height: 1.8; }
.course-content ul { margin: 0 0 18px 22px; color: var(--gray); font-size: 15px; }
.course-content ul li { margin-bottom: 8px; line-height: 1.7; }
.checklist { list-style: none !important; margin: 0 0 28px 0 !important; display: flex; flex-direction: column; gap: 12px; }
.checklist li {
  display: flex; align-items: flex-start; gap: 14px;
  font-size: 15px; color: var(--text); margin-bottom: 0 !important;
  padding: 10px 14px; border-radius: var(--radius-sm);
  background: var(--gold-pale); border: 1px solid transparent;
  transition: all var(--anim-fast);
}
.checklist li:hover { border-color: var(--gold); transform: translateX(4px); }
.checklist li::before {
  content: '\2713'; min-width: 26px; height: 26px;
  background: linear-gradient(135deg, var(--teal), var(--teal-lt));
  color: #fff; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 12px; font-weight: 700; margin-top: 1px; flex-shrink: 0;
}

/* Curriculum */
.curriculum { border: 1px solid var(--border); border-radius: var(--radius-md); overflow: hidden; counter-reset: mod; }
.curriculum-module {
  border-bottom: 1px solid var(--border); padding: 20px 24px;
  background: var(--card-bg); transition: all var(--anim-fast);
}
.curriculum-module:last-child { border-bottom: none; }
.curriculum-module:hover { background: var(--gold-pale); padding-left: 28px; }
.curriculum-module h3 {
  font-family: 'Rajdhani', sans-serif; font-size: 16px; font-weight: 700;
  color: var(--gray-dk); margin-bottom: 4px; display: flex; align-items: center; gap: 12px;
}
.curriculum-module h3::before {
  content: counter(mod); counter-increment: mod;
  min-width: 32px; height: 32px;
  background: linear-gradient(135deg, var(--gold), var(--gold-lt));
  color: #fff; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 13px; font-weight: 700;
  box-shadow: 0 3px 10px var(--gold-glow);
}
.curriculum-module p { font-size: 14px; color: var(--gray); line-height: 1.6; margin: 0; padding-left: 44px; }

/* Sidebar */
.course-sidebar { position: sticky; top: 90px; }
.sidebar-card {
  background: var(--card-bg); border: 1px solid var(--border);
  border-radius: var(--radius-md); padding: 24px;
  box-shadow: var(--shadow-md); transition: all .4s;
}
.sidebar-card:hover { box-shadow: var(--shadow-lg); }
.sidebar-thumb {
  height: 140px; border-radius: var(--radius-sm); margin-bottom: 18px;
  display: flex; align-items: center; justify-content: center;
  font-size: 54px; color: #fff; position: relative; overflow: hidden;
}
.sidebar-thumb::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(135deg, transparent 40%, rgba(255,255,255,.1) 50%, transparent 60%);
  background-size: 200% 100%;
  animation: shimmer 4s ease infinite;
}
.sidebar-card h3 { font-family: 'Rajdhani', sans-serif; font-size: 18px; font-weight: 700; color: var(--gray-dk); margin-bottom: 14px; }
.sidebar-features { list-style: none; margin: 0 0 20px 0; padding: 0; }
.sidebar-features li {
  font-size: 13.5px; color: var(--gray); padding: 10px 0;
  border-bottom: 1px solid var(--border); display: flex; justify-content: space-between;
}
.sidebar-features li:last-child { border-bottom: none; }
.sidebar-features span:last-child { color: var(--gray-dk); font-weight: 600; }
.sidebar-btn { display: block; width: 100%; text-align: center; }

/* Related */
.related-courses { padding: 60px 5vw; background: var(--cream); transition: background .4s; }
.related-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 20px; margin-top: 30px; }
.related-card {
  background: var(--card-bg); border: 1px solid var(--border);
  border-radius: var(--radius-md); padding: 24px;
  text-decoration: none; color: var(--text);
  transition: all .3s cubic-bezier(.34,1.56,.64,1); display: block;
  position: relative; overflow: hidden;
}
.related-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, var(--gold), var(--teal));
  transform: scaleX(0); transition: transform .3s ease; transform-origin: left;
}
.related-card:hover { box-shadow: var(--shadow-md); transform: translateY(-4px); }
.related-card:hover::before { transform: scaleX(1); }
.related-card h3 { font-family: 'Rajdhani', sans-serif; font-size: 15px; font-weight: 700; color: var(--gray-dk); margin-bottom: 8px; line-height: 1.4; }
.related-card p { font-size: 13px; color: var(--gray); line-height: 1.6; }
.related-cat { font-size: 10px; font-weight: 700; color: var(--gold); letter-spacing: 1px; text-transform: uppercase; margin-bottom: 8px; display: block; }

/* ── THUMB PALETTES ─────────────────────────────────────────── */
.tb-1{background:linear-gradient(135deg,#2e1a00,#5c3800);}
.tb-2{background:linear-gradient(135deg,#0a2e1a,#1a5c35);}
.tb-3{background:linear-gradient(135deg,#1a1a2e,#2e2e5c);}
.tb-4{background:linear-gradient(135deg,#2e1a1a,#5c2a2a);}
.tb-5{background:linear-gradient(135deg,#0a2a2e,#1a5058);}
.tb-6{background:linear-gradient(135deg,#1e1e1e,#3a3a3a);}

/* ── FOOTER ─────────────────────────────────────────────────── */
.site-footer {
  background: #080910; color: rgba(255,255,255,.50);
  padding: 52px 5vw 28px; border-top: 3px solid transparent;
  border-image: linear-gradient(90deg, var(--gold), var(--teal)) 1;
  position: relative;
}
.site-footer::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 100px;
  background: linear-gradient(180deg, rgba(201,151,28,.04), transparent);
  pointer-events: none;
}
[data-theme="dark"] .site-footer { background: #050608; }
.footer-inner { max-width: 1180px; margin: 0 auto; position: relative; }
.footer-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 44px; margin-bottom: 34px; }
.footer-brand h3 { font-family: 'Rajdhani', sans-serif; font-size: 22px; font-weight: 700; color: var(--gold); letter-spacing: 3px; margin-bottom: 12px; }
.footer-brand p { font-size: 13.5px; line-height: 1.8; color: rgba(255,255,255,.5); }
.footer-col h4 { font-family: 'Rajdhani', sans-serif; font-size: 13px; font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase; color: rgba(255,255,255,.65); margin-bottom: 16px; }
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 10px; }
.footer-col a {
  color: rgba(255,255,255,.45); text-decoration: none; font-size: 13.5px;
  transition: all .2s; display: inline-block;
}
.footer-col a:hover { color: var(--gold-lt); transform: translateX(3px); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.08); padding-top: 22px; margin-top: 8px;
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px;
}
.footer-bottom p { font-size: 12.5px; color: rgba(255,255,255,.3); }
.footer-bottom a { color: var(--gold); text-decoration: none; font-size: 12.5px; }
.footer-legal { display: flex; gap: 18px; flex-wrap: wrap; }

/* ── WHATSAPP FLOATING BUTTON ───────────────────────────────── */
.whatsapp-btn {
  position: fixed; bottom: 24px; left: 24px; z-index: 100;
  width: 58px; height: 58px; border-radius: 50%;
  background: linear-gradient(135deg, #25D366, #128C7E);
  display: flex; align-items: center; justify-content: center;
  text-decoration: none; cursor: pointer;
  box-shadow: 0 6px 20px rgba(37,211,102,.35);
  transition: all .3s cubic-bezier(.34,1.56,.64,1);
  animation: whatsappPulse 2.5s ease-in-out infinite;
}
.whatsapp-btn:hover, .whatsapp-btn:focus {
  transform: translateY(-4px) scale(1.05);
  box-shadow: 0 12px 32px rgba(37,211,102,.5);
  animation: none;
}
.whatsapp-btn svg { width: 28px; height: 28px; fill: #fff; }
.whatsapp-btn::after {
  content: 'Chat with us'; position: absolute; left: calc(100% + 12px);
  top: 50%; transform: translateY(-50%);
  background: #25D366; color: #fff;
  padding: 6px 14px; border-radius: 6px;
  font-family: 'Source Sans 3', sans-serif; font-size: 13px; font-weight: 600;
  white-space: nowrap; opacity: 0; pointer-events: none;
  transition: opacity .25s, transform .25s;
  box-shadow: 0 4px 12px rgba(0,0,0,.15);
}
.whatsapp-btn::before {
  content: ''; position: absolute; left: calc(100% + 6px); top: 50%;
  transform: translateY(-50%); width: 0; height: 0;
  border-style: solid; border-width: 6px 6px 6px 0;
  border-color: transparent #25D366 transparent transparent;
  opacity: 0; transition: opacity .25s;
}
.whatsapp-btn:hover::after, .whatsapp-btn:hover::before,
.whatsapp-btn:focus::after, .whatsapp-btn:focus::before { opacity: 1; }

@keyframes whatsappPulse {
  0%, 100% { box-shadow: 0 6px 20px rgba(37,211,102,.35), 0 0 0 0 rgba(37,211,102,.4); }
  50%      { box-shadow: 0 6px 20px rgba(37,211,102,.35), 0 0 0 12px rgba(37,211,102,0); }
}

@media (max-width: 640px) {
  .whatsapp-btn { width: 52px; height: 52px; bottom: 20px; left: 20px; }
  .whatsapp-btn svg { width: 26px; height: 26px; }
  .whatsapp-btn::after, .whatsapp-btn::before { display: none; }
}

/* ── BACK TO TOP ────────────────────────────────────────────── */
.back-to-top {
  position: fixed; bottom: 24px; right: 24px; z-index: 100;
  width: 48px; height: 48px; border-radius: 50%;
  background: linear-gradient(135deg, var(--gold), var(--gold-lt));
  color: #fff; border: none; cursor: pointer; font-size: 20px;
  display: flex; align-items: center; justify-content: center;
  opacity: 0; visibility: hidden;
  transition: all .3s cubic-bezier(.34,1.56,.64,1);
  box-shadow: 0 6px 20px var(--gold-glow);
}
.back-to-top.visible { opacity: 1; visibility: visible; }
.back-to-top:hover { transform: translateY(-4px) scale(1.05); box-shadow: 0 10px 30px var(--gold-glow); }

/* ── RESPONSIVE ─────────────────────────────────────────────── */
@media(max-width:1000px) {
  .course-layout { grid-template-columns: 1fr; gap: 30px; }
  .course-sidebar { position: static; }
  .nav-center { display: none; }
}
@media(max-width:900px) {
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .footer-bottom { flex-direction: column; text-align: center; gap: 10px; }
  .footer-legal { justify-content: center; }
  /* Collapse the horizontal nav into a hamburger drawer on tablet and below.
     Below 900 px there is not enough room for logo + 6 nav links + CTA. */
  .nav-links {
    display: none; flex-direction: column; position: fixed;
    top: 70px; left: 0; right: 0;
    background: var(--mobile-menu-bg); backdrop-filter: var(--glass);
    -webkit-backdrop-filter: var(--glass);
    padding: 16px 5vw; gap: 0;
    border-bottom: 3px solid var(--gold);
    box-shadow: var(--shadow-lg);
    animation: fadeIn .2s ease;
  }
  .nav-links.open { display: flex; }
  .nav-links li { width: 100%; }
  .nav-links a { display: block; padding: 14px 0; border-bottom: 1px solid var(--border); font-size: 15px; }
  .nav-links a::after { display: none; }
  .nav-links li:last-child a { border-bottom: none; }
  .nav-links a.nav-cta { text-align: center; margin-top: 8px; padding: 12px 20px !important; }
  .hamburger { display: block; }
}
@media(max-width:640px) {
  section { padding: 60px 5vw; }
  .course-hero { padding: 40px 5vw; }
  .course-main { padding: 40px 5vw; }
  .nav-header { height: 64px; }
  .course-hero { margin-top: 64px; }
  .nav-links { top: 64px; }
}

/* ── PRINT ──────────────────────────────────────────────────── */
@media print {
  .nav-header, .back-to-top, .hamburger, .nav-search, .cookie-banner, .theme-toggle { display: none !important; }
  .course-hero { margin-top: 0; }
  body { background: #fff !important; color: #000 !important; }
}

/* ── REDUCED MOTION ─────────────────────────────────────────── */
@media(prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important; animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  html { scroll-behavior: auto; }
  .anim-fade-up, .anim-slide-left, .anim-slide-right, .anim-scale-in { opacity: 1; transform: none; }
}
