@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@400;500;600;700;800&family=Playfair+Display:wght@600;700&display=swap');

:root {
  --violet-950: #28103d;
  --violet-900: #35154f;
  --violet-800: #4b1f70;
  --violet-700: #6530a0;
  --violet-600: #7940c8;
  --saffron: #ea8126;
  --gold: #efb84c;
  --cream: #fffaf3;
  --cream-2: #f8f1e8;
  --ink: #211a27;
  --muted: #6f6875;
  --line: #e7ddec;
  --white: #ffffff;
  --green: #26755a;
  --shadow: 0 18px 55px rgba(53, 21, 79, .11);
  --shadow-sm: 0 10px 30px rgba(53, 21, 79, .08);
  --radius: 22px;
  --container: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Manrope", sans-serif;
  color: var(--ink);
  background: var(--white);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
.skip-link {
  position: fixed; left: 16px; top: -80px; z-index: 9999;
  padding: 12px 18px; border-radius: 10px; background: var(--violet-950);
  color: var(--white); font-weight: 800; box-shadow: var(--shadow-sm);
}
.skip-link:focus { top: 16px; }
:focus-visible { outline: 3px solid var(--saffron); outline-offset: 3px; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; }
button { cursor: pointer; }
.container { width: min(calc(100% - 40px), var(--container)); margin-inline: auto; }
.section { padding: 90px 0; }
.section-soft { background: var(--cream); }
.section-dark { background: var(--violet-950); color: var(--white); }
.section-heading { max-width: 720px; margin-bottom: 42px; }
.section-heading.center { text-align: center; margin-inline: auto; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  color: var(--saffron); font-size: .78rem; font-weight: 800;
  letter-spacing: .14em; text-transform: uppercase; margin-bottom: 12px;
}
.eyebrow::before { content: ""; width: 28px; height: 2px; background: currentColor; }
h1, h2, h3, h4 { font-family: "Playfair Display", serif; line-height: 1.14; margin: 0 0 16px; }
h1 { font-size: clamp(2.7rem, 6vw, 5.3rem); letter-spacing: -.035em; }
.slide-title { font-size: clamp(2.7rem, 6vw, 5.3rem); letter-spacing: -.035em; }
h2 { font-size: clamp(2rem, 4vw, 3.35rem); letter-spacing: -.025em; }
h3 { font-size: 1.35rem; }
p { margin: 0 0 18px; }
.lead { font-size: 1.1rem; color: var(--muted); }
.text-light { color: rgba(255,255,255,.72); }
.gradient-text {
  background: linear-gradient(110deg, var(--violet-600), var(--saffron));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}

.topbar { background: var(--violet-950); color: rgba(255,255,255,.82); font-size: .82rem; }
.topbar-inner { min-height: 34px; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.topbar a:hover { color: var(--gold); }
.site-header {
  position: sticky; top: 0; z-index: 1000; background: rgba(255,255,255,.94);
  border-bottom: 1px solid rgba(75,31,112,.08); backdrop-filter: blur(14px);
}
.nav-wrap { min-height: 78px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand img { width: 205px; height: auto; }
.nav-links { display: flex; align-items: center; gap: 30px; }
.nav-links a { font-size: .92rem; font-weight: 700; color: #332b39; transition: .2s ease; }
.nav-links a:hover, .nav-links a.active { color: var(--violet-600); }
.nav-actions { display: flex; align-items: center; gap: 10px; }
.menu-toggle {
  display: none; width: 44px; height: 44px; border-radius: 12px;
  border: 1px solid var(--line); background: var(--white); color: var(--violet-900);
}
.btn {
  display: inline-flex; justify-content: center; align-items: center; gap: 9px;
  min-height: 48px; padding: 0 23px; border-radius: 12px; border: 1px solid transparent;
  font-weight: 800; font-size: .92rem; transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { color: var(--white); background: linear-gradient(135deg, var(--violet-700), var(--violet-600)); box-shadow: 0 12px 24px rgba(101,48,160,.24); }
.btn-secondary { background: var(--white); color: var(--violet-900); border-color: var(--line); }
.btn-gold { color: var(--violet-950); background: linear-gradient(135deg, var(--gold), #ffd888); }
.btn-sm { min-height: 42px; padding: 0 18px; }
.text-link { color: var(--violet-700); font-weight: 800; }
.text-link:hover { color: var(--saffron); }

.hero {
  position: relative; overflow: hidden;
  background:
    radial-gradient(circle at 76% 22%, rgba(234,129,38,.18), transparent 26%),
    radial-gradient(circle at 88% 70%, rgba(121,64,200,.18), transparent 28%),
    linear-gradient(135deg, #fffdf9 0%, #faf2ff 52%, #fff6e8 100%);
  padding: 88px 0 76px;
}
.hero::after {
  content: "ॐ"; position: absolute; right: -70px; bottom: -165px;
  font-family: serif; font-size: 430px; line-height: 1; color: rgba(75,31,112,.035); pointer-events: none;
}
.hero-grid { position: relative; z-index: 1; display: grid; grid-template-columns: 1.05fr .95fr; align-items: center; gap: 70px; }
.hero-copy h1 { max-width: 720px; }
.hero-copy .lead { max-width: 650px; font-size: 1.13rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 30px 0 38px; }
.trust-row { display: flex; flex-wrap: wrap; gap: 28px; }
.trust-item strong { display: block; color: var(--violet-700); font-size: 1.4rem; }
.trust-item span { color: var(--muted); font-size: .82rem; font-weight: 600; }
.hero-art {
  min-height: 510px; position: relative; border-radius: 34px; overflow: hidden;
  background: linear-gradient(145deg, var(--violet-950), #54267a 66%, #773ca8);
  box-shadow: 0 30px 80px rgba(53,21,79,.24);
}
.hero-art::before, .hero-art::after {
  content: ""; position: absolute; border-radius: 50%; border: 1px solid rgba(255,255,255,.13);
}
.hero-art::before { width: 400px; height: 400px; top: -140px; right: -120px; }
.hero-art::after { width: 320px; height: 320px; left: -120px; bottom: -160px; }
.zodiac-ring {
  position: absolute; inset: 50%; translate: -50% -50%; width: 320px; height: 320px;
  border: 1px solid rgba(239,184,76,.5); border-radius: 50%;
  box-shadow: 0 0 0 28px rgba(255,255,255,.025), 0 0 0 60px rgba(255,255,255,.02);
  display: grid; place-items: center; color: var(--gold);
}
.zodiac-ring .om { font-family: serif; font-size: 7.5rem; line-height: 1; }
.zodiac-ring span { position: absolute; font-size: 1.25rem; color: rgba(255,255,255,.72); }
.zodiac-ring span:nth-child(2){top:10px}.zodiac-ring span:nth-child(3){right:18px;top:76px}
.zodiac-ring span:nth-child(4){right:18px;bottom:76px}.zodiac-ring span:nth-child(5){bottom:10px}
.zodiac-ring span:nth-child(6){left:18px;bottom:76px}.zodiac-ring span:nth-child(7){left:18px;top:76px}
.hero-quote { position: absolute; left: 34px; right: 34px; bottom: 28px; padding: 18px 22px; border-radius: 16px; background: rgba(255,255,255,.09); border: 1px solid rgba(255,255,255,.11); color: var(--white); text-align: center; backdrop-filter: blur(8px); }
.hero-quote strong { display: block; color: var(--gold); font-family: "Playfair Display", serif; font-size: 1.05rem; }
.hero-quote small { color: rgba(255,255,255,.68); }

.category-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.category-card {
  padding: 26px 22px; border-radius: 18px; border: 1px solid var(--line); background: var(--white);
  transition: .25s ease; box-shadow: 0 4px 0 rgba(75,31,112,.03);
}
.category-card:hover { transform: translateY(-5px); border-color: rgba(121,64,200,.35); box-shadow: var(--shadow-sm); }
.category-icon {
  width: 52px; height: 52px; border-radius: 15px; display: grid; place-items: center;
  margin-bottom: 18px; font-size: 1.45rem; background: linear-gradient(135deg, #f1e8ff, #fff2dc);
}
.category-card p { color: var(--muted); margin: 0; font-size: .88rem; }

.course-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.course-card { overflow: hidden; border-radius: var(--radius); border: 1px solid var(--line); background: var(--white); box-shadow: var(--shadow-sm); transition: .25s ease; }
.course-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.course-media { position: relative; aspect-ratio: 16/10; overflow: hidden; background: linear-gradient(135deg, #eadbff, #ffe8c9); }
.course-media img { width: 100%; height: 100%; object-fit: cover; }
.course-media .symbol { height: 100%; display: grid; place-items: center; font-size: 4rem; color: var(--violet-700); }
.badge-row { position: absolute; left: 16px; top: 15px; display: flex; gap: 7px; flex-wrap: wrap; }
.badge { padding: 6px 10px; border-radius: 999px; background: rgba(255,255,255,.94); color: var(--violet-900); font-size: .68rem; font-weight: 800; box-shadow: 0 5px 15px rgba(32,18,39,.09); }
.badge.featured { background: var(--gold); }
.course-body { padding: 23px; }
.course-meta { display: flex; gap: 8px; color: var(--violet-600); font-size: .74rem; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; margin-bottom: 10px; }
.course-body h3 { min-height: 52px; }
.course-body p { color: var(--muted); font-size: .9rem; min-height: 48px; }
.course-footer { padding-top: 16px; border-top: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.price { font-weight: 800; color: var(--violet-900); }
.price del { color: #9c94a2; font-size: .76rem; margin-left: 4px; }

.value-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.value-item { padding: 30px; border-left: 3px solid var(--gold); background: rgba(255,255,255,.055); border-radius: 0 16px 16px 0; }
.value-icon { color: var(--gold); font-size: 1.6rem; margin-bottom: 14px; }
.value-item p { color: rgba(255,255,255,.68); margin: 0; font-size: .9rem; }
.trainer-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.trainer-card { text-align: center; padding: 32px 24px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); box-shadow: var(--shadow-sm); }
.avatar { width: 116px; height: 116px; margin: 0 auto 20px; border-radius: 50%; object-fit: cover; background: linear-gradient(135deg, #eadbff, #ffe8c9); display: grid; place-items: center; font: 700 2.2rem "Playfair Display", serif; color: var(--violet-700); border: 6px solid var(--cream); }
.trainer-card p { color: var(--muted); }
.trainer-stats { display: flex; justify-content: center; gap: 22px; padding-top: 14px; border-top: 1px solid var(--line); font-size: .82rem; color: var(--muted); }
.trainer-stats strong { color: var(--violet-800); }

.cta-panel {
  position: relative; overflow: hidden; padding: 58px; border-radius: 28px;
  background: linear-gradient(130deg, var(--violet-950), #582879); color: var(--white);
  display: grid; grid-template-columns: 1.2fr auto; align-items: center; gap: 40px;
}
.cta-panel::after { content: "✦"; position: absolute; right: 22%; top: -60px; font-size: 180px; color: rgba(255,255,255,.04); }
.cta-panel p { color: rgba(255,255,255,.72); margin-bottom: 0; }

.page-hero { padding: 75px 0 58px; background: linear-gradient(135deg, var(--cream), #f5ebff); border-bottom: 1px solid var(--line); }
.page-hero .lead { max-width: 680px; }
.breadcrumbs { display: flex; gap: 8px; color: var(--muted); font-size: .82rem; margin-bottom: 14px; }
.breadcrumbs a { color: var(--violet-700); font-weight: 700; }
.filter-bar { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 34px; }
.filter-chip { border: 1px solid var(--line); background: var(--white); color: var(--muted); padding: 9px 15px; border-radius: 999px; font-weight: 700; font-size: .82rem; }
.filter-chip:hover, .filter-chip.active { color: var(--white); background: var(--violet-700); border-color: var(--violet-700); }
.search-box { margin-left: auto; min-width: min(100%, 280px); }
.search-box input, .form-control {
  width: 100%; min-height: 48px; border: 1px solid var(--line); border-radius: 12px;
  padding: 11px 15px; color: var(--ink); background: var(--white); outline: none;
}
.search-box input:focus, .form-control:focus { border-color: var(--violet-600); box-shadow: 0 0 0 4px rgba(121,64,200,.1); }
.empty-state { padding: 60px 25px; text-align: center; border: 1px dashed #d5c5dd; border-radius: var(--radius); background: var(--cream); }
.empty-state .icon { font-size: 3rem; margin-bottom: 12px; }

.content-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 64px; align-items: start; }
.prose p { color: var(--muted); }
.mission-card { padding: 36px; border-radius: var(--radius); background: var(--violet-950); color: var(--white); box-shadow: var(--shadow); position: sticky; top: 112px; }
.mission-card p { color: rgba(255,255,255,.72); }
.principles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.principle { padding: 26px; border: 1px solid var(--line); border-radius: 18px; }
.principle strong { display: block; color: var(--violet-700); margin-bottom: 8px; }

.contact-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: 48px; }
.contact-list { display: grid; gap: 14px; }
.contact-item { padding: 20px; border: 1px solid var(--line); border-radius: 16px; background: var(--white); }
.contact-item strong { display: block; color: var(--violet-800); margin-bottom: 5px; }
.form-card { padding: 34px; border-radius: var(--radius); background: var(--cream); border: 1px solid var(--line); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-group { margin-bottom: 16px; }
.form-group label { display: block; margin-bottom: 7px; font-weight: 800; font-size: .82rem; }
.form-message { min-height: 24px; margin-top: 14px; font-weight: 700; }
textarea.form-control { min-height: 140px; resize: vertical; }

.auth-shell { min-height: calc(100vh - 112px); display: grid; grid-template-columns: 1fr 1fr; }
.auth-art { padding: 80px; display: flex; flex-direction: column; justify-content: center; background: linear-gradient(145deg, var(--violet-950), #5d2a81); color: var(--white); position: relative; overflow: hidden; }
.auth-art::after { content: "ॐ"; position: absolute; right: -30px; bottom: -100px; font-size: 350px; color: rgba(255,255,255,.04); }
.auth-form { padding: 70px; display: grid; place-items: center; background: var(--cream); }
.auth-card { width: min(100%, 470px); padding: 40px; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.auth-card .brand { display: inline-block; margin-bottom: 28px; }
.auth-card .brand img { width: 190px; }
.checkbox-row { display: flex; justify-content: space-between; gap: 20px; align-items: center; font-size: .82rem; margin-bottom: 20px; }

.site-footer { padding: 70px 0 22px; background: #20112c; color: rgba(255,255,255,.72); }
.footer-grid { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 55px; padding-bottom: 48px; }
.footer-brand img { width: 210px; filter: brightness(0) invert(1); opacity: .94; margin-bottom: 20px; }
.footer-brand p { max-width: 380px; font-size: .88rem; }
.site-footer h4 { color: var(--white); font-family: "Manrope", sans-serif; font-size: .9rem; letter-spacing: .06em; text-transform: uppercase; }
.footer-links { display: grid; gap: 10px; font-size: .86rem; }
.footer-links a:hover { color: var(--gold); }
.footer-bottom { padding-top: 20px; border-top: 1px solid rgba(255,255,255,.1); display: flex; justify-content: space-between; gap: 20px; font-size: .78rem; }

.reveal { opacity: 0; transform: translateY(18px); transition: opacity .65s ease, transform .65s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }
.hidden { display: none !important; }

@media (max-width: 1000px) {
  .nav-links {
    display: none; position: absolute; left: 20px; right: 20px; top: calc(100% + 8px);
    padding: 22px; border: 1px solid var(--line); border-radius: 18px;
    background: var(--white); box-shadow: var(--shadow); flex-direction: column; align-items: stretch; gap: 4px;
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 10px 7px; }
  .menu-toggle { display: inline-grid; place-items: center; }
  .nav-actions .btn-secondary { display: none; }
  .hero-grid, .content-grid, .contact-grid { grid-template-columns: 1fr; }
  .hero-art { min-height: 440px; }
  .category-grid { grid-template-columns: repeat(2, 1fr); }
  .course-grid, .trainer-grid, .value-grid, .principles { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; }
  .footer-grid > :last-child { grid-column: 2; }
}
@media (max-width: 700px) {
  .container { width: min(calc(100% - 28px), var(--container)); }
  .topbar { display: none; }
  .nav-wrap { min-height: 68px; }
  .brand img { width: 170px; }
  .nav-actions .btn-primary { display: none; }
  .section { padding: 64px 0; }
  .hero { padding: 58px 0 60px; }
  .hero-grid { gap: 42px; }
  .hero-art { min-height: 390px; border-radius: 24px; }
  .zodiac-ring { width: 250px; height: 250px; }
  .zodiac-ring .om { font-size: 5.5rem; }
  .trust-row { gap: 20px; justify-content: space-between; }
  .category-grid, .course-grid, .trainer-grid, .value-grid, .principles { grid-template-columns: 1fr; }
  .cta-panel { padding: 38px 26px; grid-template-columns: 1fr; }
  .filter-bar { align-items: stretch; }
  .search-box { margin-left: 0; width: 100%; }
  .form-grid { grid-template-columns: 1fr; }
  .auth-shell { grid-template-columns: 1fr; }
  .auth-art { display: none; }
  .auth-form { padding: 34px 16px; }
  .auth-card { padding: 28px 22px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 35px; }
  .footer-brand { grid-column: 1 / -1; }
  .footer-grid > :last-child { grid-column: auto; }
  .footer-bottom { flex-direction: column; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .reveal { opacity: 1; transform: none; }
}

/* =========================================================================
   Homepage hero slider (added for the PHP integration)
   Accessible carousel — keyboard nav, aria-live, reduced-motion safe.
   ========================================================================= */
.slider { position: relative; overflow: hidden; }
.slider-track { position: relative; min-height: 640px; }
.slide {
  position: absolute; inset: 0; opacity: 0; visibility: hidden;
  transition: opacity .55s ease;
}
.slide.is-active { opacity: 1; visibility: visible; z-index: 1; }
.slide.slide-2 {
  background:
    radial-gradient(circle at 22% 22%, rgba(234,129,38,.20), transparent 30%),
    radial-gradient(circle at 88% 78%, rgba(121,64,200,.20), transparent 32%),
    linear-gradient(135deg, #fff6e8, #faf2ff 60%, #fffdf9);
}
.slide.slide-3 {
  background: linear-gradient(135deg, var(--violet-950) 0%, #582879 100%);
  color: var(--white);
}
.slide.slide-3 .hero-copy h2,
.slide.slide-3 .hero-copy .slide-title { color: var(--white); }
.slide.slide-3 .lead { color: rgba(255,255,255,.78); }
.slide.slide-3 .trust-item strong { color: var(--gold); }
.slide.slide-3 .trust-item span { color: rgba(255,255,255,.72); }
.slide.slide-3 .btn-secondary {
  background: transparent; color: var(--white); border-color: rgba(255,255,255,.4);
}
.slide.slide-3 .btn-secondary:hover { background: var(--white); color: var(--violet-950); }

/* Controls (dots + arrows) */
.slider-dots {
  position: absolute; left: 0; right: 0; bottom: 22px;
  display: flex; justify-content: center; gap: 8px; z-index: 4;
}
.slider-dot {
  width: 10px; height: 10px; border-radius: 999px; padding: 0;
  border: 2px solid transparent; background: rgba(75,31,112,.28); cursor: pointer;
  transition: all .2s ease;
}
.slider-dot[aria-current="true"] { width: 32px; background: var(--saffron); }
.slider .slide-3 ~ .slider-dots .slider-dot { background: rgba(255,255,255,.28); }
.slider .slide-3 ~ .slider-dots .slider-dot[aria-current="true"] { background: var(--saffron); }
.slider-arrow {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 4;
  width: 48px; height: 48px; border-radius: 999px;
  background: rgba(255,255,255,.9); border: 1px solid var(--line);
  color: var(--violet-900); font-size: 1.4rem; line-height: 1;
  display: grid; place-items: center; cursor: pointer;
  opacity: 0; transition: opacity .2s ease, transform .2s ease, background .2s ease;
}
.slider:hover .slider-arrow, .slider:focus-within .slider-arrow { opacity: 1; }
.slider-arrow:hover { background: var(--saffron); color: var(--white); }
.slider-arrow.prev { left: 20px; }
.slider-arrow.next { right: 20px; }
@media (max-width: 700px) {
  .slider-arrow { display: none; }
  .slider-track { min-height: 780px; }
}
@media (prefers-reduced-motion: reduce) { .slide { transition: none; } }

/* Brand badge — "Academy" pill sitting to the left of the logo */
.brand { display: inline-flex; align-items: center; gap: 12px; }
.brand-badge {
  display: inline-block;
  padding: 6px 14px;
  border-radius: 999px;
  font-family: "Playfair Display", serif;
  font-weight: 700;
  font-size: .82rem;
  letter-spacing: .04em;
  color: var(--white);
  background: linear-gradient(135deg, var(--violet-700), var(--violet-600));
  box-shadow: 0 6px 14px rgba(101,48,160,.22);
  white-space: nowrap;
}
@media (max-width: 700px) {
  .brand-badge {
    padding: 4px 10px;
    font-size: .72rem;
  }
}

/* Snap the slider directly beneath the sticky header — vertical
   centering inside the fixed-height track keeps the visual balance
   without needing large top padding. Comfortable side gap on every
   viewport so the headline never crashes into the screen edge. */
.slider.hero { padding: 0; }
.slider-track { min-height: 560px; }
.slider .slide {
  padding-block: 24px;
  display: flex;
  align-items: center;
}
.slider .slide > .container {
  /* Slider text gets a wider comfort gap than the site container:
     - large desktop: 1180px column centered
     - < 1260px:      60px gap each side (was 20px)
     - < 900px:       40px each side
     - < 500px:       20px each side (min touch-space) */
  width: min(calc(100% - 120px), var(--container));
}
@media (max-width: 900px) {
  .slider-track { min-height: 640px; }
  .slider .slide { padding-block: 18px 28px; align-items: flex-start; }
  .slider .slide > .container { width: calc(100% - 80px); }
}
@media (max-width: 700px) {
  .slider .slide { padding-block: 14px 22px; }
  .slider .slide > .container { width: calc(100% - 60px); }
}
@media (max-width: 500px) {
  .slider .slide > .container { width: calc(100% - 40px); }
}

/* Category card thumbnail — used when an admin uploads an image. */
.category-thumb {
    width: 80px; height: 80px;
    border-radius: 18px;
    margin-bottom: 18px;
    overflow: hidden;
    background: linear-gradient(135deg, #f1e8ff, #fff2dc);
    box-shadow: var(--shadow-sm);
}
.category-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* Footer brand — use the original coloured logo + Academy pill (like the header).
   Overrides the default footer .footer-brand img rule that inverted the logo. */
.footer-brand-link {
    display: inline-flex; align-items: center; gap: 12px;
    margin-bottom: 20px;
}
.footer-brand-link img {
    width: 205px !important;
    height: auto !important;
    filter: none !important;      /* keep original colours */
    opacity: 1 !important;
    margin-bottom: 0 !important;
    background: var(--white);
    border-radius: 12px;
    padding: 8px 12px;
    box-shadow: var(--shadow-sm);
}
/* Suppress the legacy .footer-brand img rule when the new link wrapper is present */
.footer-brand .footer-brand-link + p { margin-top: 0; }

/* Slider headline sizes reduced by 30% from original clamp(2.7rem, 6vw, 5.3rem).
   Scoped to the slider only — other page h1s stay at their original size. */
.slider .hero-copy h1,
.slider .hero-copy .slide-title {
    font-size: clamp(1.89rem, 4.2vw, 3.71rem);
}

/* Filter bar as a proper single-row grid — each label sits ABOVE its
   input, and all fields align in one row on desktop. Wraps sensibly
   on tablet/mobile.
   Also ships the missing .sr-only utility so any remaining screen-
   reader-only labels stay hidden visually. */
.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;
}
.filter-bar-grid {
    display: grid;
    grid-template-columns: 2fr 1.4fr 1fr 1.4fr auto;
    gap: 16px;
    align-items: end;
    padding: 20px;
    background: var(--cream);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    margin-bottom: 34px;
}
.filter-field { min-width: 0; }
.filter-field label {
    display: block;
    font-size: .78rem;
    font-weight: 700;
    color: var(--violet-800);
    margin-bottom: 6px;
    letter-spacing: .02em;
}
.filter-field .form-control { width: 100%; }
.filter-field-submit .btn { width: 100%; min-width: 140px; }

@media (max-width: 900px) {
    .filter-bar-grid {
        grid-template-columns: 1fr 1fr;
    }
    .filter-field-submit { grid-column: 1 / -1; }
    .filter-field-submit .btn { width: auto; }
}
@media (max-width: 500px) {
    .filter-bar-grid { grid-template-columns: 1fr; }
}

/* Detail-page hero title (course/webinar). Sized 50% of the base h1
   so long webinar/course names don't overwhelm the layout. Overrides
   the default h1 clamp of (2.7rem, 6vw, 5.3rem). */
.course-hero-title {
    font-size: clamp(1.35rem, 3vw, 2.65rem);
    color: var(--ink);
    letter-spacing: -.02em;
    margin: 14px 0 18px;
    max-width: 780px;
    line-height: 1.2;
}
