/* ===== Swasti Bharat — shared tokens + chrome ===== */
:root {
  --plum: #5C1E47; --plum-mid: #6B2855; --plum-deep: #3D0C2E; --plum-darker: #1F0617;
  --plum-light: #8B4675; --plum-soft: #F2E6ED;
  --saffron: #E87B2C; --saffron-bright: #FF8848; --saffron-deep: #B85C1A; --saffron-soft: #FDEFE0;
  --teal: #0F6B5F; --teal-bright: #15A47A;
  --lavender: #B492FF; --lavender-deep: #6B49C9;
  --coral: #E85C4A; --coral-bright: #FF6B5C;
  --mustard: #D4A847; --mustard-deep: #A6802F;
  --sage: #7A9E7E; --pink: #E85C8E; --lemon: #F0CE3D; --aqua: #1FA9A0; --jade: #15803D;
  --bg: #FFFFFF; --bg-soft: #FAF6F2; --bg-warm: #FCF4EA;
  --bg-dark: #1A0E16; --bg-darker: #0F0510;
  --cult-dark: #1A0E16;
  --ink: #1F0E18; --ink-2: #3B2A33; --muted: #6B5963; --muted-2: #9B8B92;
  --line: #EFE6E4; --line-strong: #DDD0CC; --line-dark: #2A1A22;
  --r-sm: 8px; --r-md: 12px; --r-lg: 16px; --r-xl: 24px; --r-2xl: 32px; --r-full: 999px;
  --shadow-sm: 0 1px 2px rgba(31,14,24,0.05);
  --shadow-md: 0 4px 12px -2px rgba(31,14,24,0.09);
  --shadow-lg: 0 16px 32px -8px rgba(31,14,24,0.12);
  --shadow-xl: 0 32px 64px -16px rgba(31,14,24,0.18);
  --shadow-cta: 0 8px 24px -8px rgba(31, 6, 23, 0.45);
  --g-sunset: linear-gradient(135deg, #FFB088 0%, #E87B2C 30%, #E85C4A 60%, #8B4675 100%);
  --g-plum-rich: linear-gradient(135deg, #8B4675 0%, #5C1E47 60%, #1F0617 100%);
  --g-lantern: linear-gradient(135deg, #E87B2C 0%, #8B4675 60%, #3D0C2E 100%);
  --g-twilight: linear-gradient(135deg, #E85C4A 0%, #C53A6E 50%, #5C1E47 100%);
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { background: var(--bg); color: var(--ink); font-family: 'Inter', system-ui, sans-serif; -webkit-font-smoothing: antialiased; line-height: 1.5; overflow-x: hidden; font-feature-settings: 'cv11', 'ss01', 'ss03', 'cv01'; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; }
.container { max-width: 1280px; margin: 0 auto; padding: 0 32px; }

/* === TOPBAR === */
.topbar { background: var(--cult-dark); color: white; padding: 10px 0; font-size: 12px; overflow: hidden; }
.topbar-inner { display: flex; justify-content: space-between; align-items: center; }
.topbar-left { display: flex; gap: 28px; }
.topbar-left a { color: rgba(255,255,255,0.85); font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; font-size: 11px; transition: color 0.15s; }
.topbar-left a:hover, .topbar-left a.active { color: white; }
.topbar-right { display: flex; gap: 20px; align-items: center; color: rgba(255,255,255,0.7); font-size: 11px; }
.topbar-app-btn { background: var(--saffron); color: white; padding: 5px 12px; border-radius: 4px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; }

/* === NAV === */
.nav-shell { background: rgba(255,255,255,0.95); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 100; backdrop-filter: blur(20px); }
.nav { padding: 18px 0; }
.nav-inner { display: flex; align-items: center; justify-content: space-between; }
.nav-left { display: flex; align-items: center; gap: 56px; }
.logo { display: flex; align-items: center; gap: 12px; font-family: 'Inter Tight', sans-serif; font-size: 20px; font-weight: 800; letter-spacing: -0.025em; color: var(--ink); }
/* Logo — single source of truth: /assets/brand/swasti-bharat-logo.svg (official full lockup)
   The .logo-mark span loads the lockup directly. Use .logo + .logo-mark; hide the adjacent wordmark text. */
.logo { display: inline-flex; align-items: center; gap: 0; line-height: 0; }
.logo > .logo-mark + * { font-size: 0 !important; width: 0 !important; height: 0 !important; overflow: hidden !important; }
.logo-mark { display: inline-block; flex-shrink: 0; width: 168px; height: 44px;
  background: url('assets/brand/swasti-bharat-logo.svg') no-repeat left center / contain; }
.logo-mark.sm { width: 120px; height: 32px; }
.logo-mark.lg { width: 240px; height: 64px; }
.nav-links { display: flex; gap: 4px; align-items: center; }
.nav-links a { color: var(--ink-2); font-size: 14px; font-weight: 600; padding: 12px 14px 14px; border-radius: 0; transition: color 0.2s; position: relative; }
.nav-links a::after { content: ''; position: absolute; left: 14px; right: 14px; bottom: 4px; height: 2.5px; border-radius: 2px; background: var(--g-sunset); background-size: 200% 100%; transform: scaleX(0); transform-origin: left center; transition: transform 0.35s cubic-bezier(0.65, 0, 0.35, 1); animation: navShimmer 3.5s linear infinite; }
.nav-links a:hover { color: var(--ink); }
.nav-links a:hover::after { transform: scaleX(0.45); }
.nav-links a.active { color: var(--ink); font-weight: 700; }
.nav-links a.active::after { transform: scaleX(1); }
@keyframes navShimmer { 0% { background-position: 0% 50%; } 100% { background-position: 200% 50%; } }
.nav-links .new-pill { background: var(--saffron); color: white; font-size: 9px; font-weight: 800; padding: 2px 5px; border-radius: 3px; letter-spacing: 0.06em; margin-left: 6px; vertical-align: middle; }
.nav-actions { display: flex; gap: 12px; align-items: center; }
.btn-text { color: var(--ink); font-size: 14px; font-weight: 700; padding: 10px 8px; background: transparent; border: none; cursor: pointer; }
.btn-primary { background: linear-gradient(135deg, var(--plum-mid) 0%, var(--plum-deep) 100%); color: white; font-size: 14px; font-weight: 800; padding: 12px 22px; border-radius: var(--r-sm); border: none; cursor: pointer; transition: all 0.2s; box-shadow: 0 4px 14px -4px rgba(31,6,23,0.4), inset 0 1px 0 rgba(255,255,255,0.08); display: inline-block; }
.btn-primary:hover { background: linear-gradient(135deg, var(--plum) 0%, var(--plum-darker) 100%); transform: translateY(-2px); }
.btn-saffron { background: var(--saffron); color: white; padding: 12px 22px; border-radius: var(--r-sm); font-weight: 800; font-size: 14px; box-shadow: var(--shadow-cta); display: inline-block; }
.btn-saffron:hover { background: var(--saffron-bright); transform: translateY(-2px); }
.btn-secondary { color: var(--ink); border: 2px solid var(--ink); padding: 10px 22px; border-radius: var(--r-sm); font-weight: 700; font-size: 14px; display: inline-block; background: transparent; cursor: pointer; }
.btn-secondary:hover { background: var(--ink); color: white; }

/* === BREADCRUMB === */
.breadcrumb { display: flex; gap: 8px; align-items: center; font-size: 13px; color: var(--muted); margin-bottom: 20px; font-weight: 500; }
.breadcrumb a { color: var(--muted); }
.breadcrumb a:hover { color: var(--ink); }
.breadcrumb .sep { color: var(--line-strong); }
.breadcrumb .current { color: var(--ink); font-weight: 600; }

/* === PAGE HEROES === */
.page-hero { padding: 64px 0 48px; position: relative; overflow: hidden; background: radial-gradient(ellipse 80% 60% at 20% 0%, rgba(232,123,44,0.10) 0%, transparent 60%), radial-gradient(ellipse 70% 50% at 90% 100%, rgba(92,30,71,0.08) 0%, transparent 60%), var(--bg); }
.page-hero h1 { font-family: 'Inter Tight', sans-serif; font-weight: 800; font-size: 64px; line-height: 1.0; letter-spacing: -0.035em; color: var(--ink); }
.page-hero h1 .accent { background: var(--g-sunset); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; font-style: italic; display: inline-block; padding: 0.05em 0.12em 0.2em 0; margin: -0.05em -0.04em -0.2em 0; }
.page-hero .lead { font-size: 18px; color: var(--ink-2); line-height: 1.55; max-width: 640px; margin-top: 20px; font-weight: 500; }

.hero-eyebrow { display: inline-flex; align-items: center; gap: 10px; padding: 5px 14px 5px 6px; background: var(--bg); border: 1px solid var(--line); border-radius: var(--r-full); font-size: 12px; font-weight: 600; color: var(--ink); margin-bottom: 20px; box-shadow: var(--shadow-sm); }
.hero-eyebrow-tag { background: var(--saffron); color: white; font-size: 10px; font-weight: 800; padding: 3px 8px; border-radius: 999px; letter-spacing: 0.06em; text-transform: uppercase; }

/* === FOOTER === */
.footer { background: var(--plum-darker); color: white; padding: 80px 0 32px; }
.footer-cta-card { background: var(--g-lantern); border-radius: var(--r-2xl); padding: 56px 48px; display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; margin-bottom: 64px; box-shadow: 0 24px 60px -20px rgba(31,6,23,0.4); }
.footer-cta-card h3 { font-family: 'Inter Tight', sans-serif; font-size: 44px; font-weight: 800; letter-spacing: -0.03em; line-height: 1.05; margin-bottom: 14px; }
.footer-cta-card p { font-size: 15px; opacity: 0.95; max-width: 380px; }
.newsletter { display: flex; gap: 8px; padding: 6px; background: rgba(255,255,255,0.2); border-radius: var(--r-md); }
.newsletter input { flex: 1; background: transparent; border: none; color: white; padding: 12px 16px; font-size: 14px; outline: none; font-weight: 500; }
.newsletter input::placeholder { color: rgba(255,255,255,0.7); }
.newsletter button { background: var(--saffron); color: white; border: none; padding: 12px 22px; border-radius: var(--r-sm); font-weight: 800; font-size: 14px; cursor: pointer; box-shadow: 0 4px 12px -4px rgba(232, 123, 44, 0.5); }
.footer-links { display: grid; grid-template-columns: 1.4fr repeat(5, 1fr); gap: 28px; margin-bottom: 64px; padding-top: 16px; }
.footer-brand .logo { color: white; }
.footer-brand .logo-mark { color: var(--saffron); }
.footer-brand p { font-size: 13px; color: rgba(255,255,255,0.6); margin-top: 16px; line-height: 1.6; max-width: 280px; }
.footer-social { display: flex; gap: 10px; margin-top: 20px; flex-wrap: wrap; }
.footer-social a { width: 38px; height: 38px; border-radius: 50%; background: rgba(255,255,255,0.1); color: white; display: flex; align-items: center; justify-content: center; transition: background 0.2s, transform 0.2s; }
.footer-social a:hover { background: var(--saffron); transform: translateY(-2px); }
.footer-social svg { width: 18px; height: 18px; display: block; }
/* footer contact rows (email · call · whatsapp) */
.footer-contact { list-style: none; margin: 18px 0 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.footer-contact a { display: inline-flex; align-items: center; gap: 10px; color: rgba(255,255,255,0.72); font-size: 13.5px; font-weight: 500; transition: color 0.15s; }
.footer-contact a:hover { color: #fff; }
.footer-contact svg { width: 17px; height: 17px; flex-shrink: 0; color: var(--saffron); }
.footer-col h5 { font-family: 'Inter Tight', sans-serif; font-size: 13px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.1em; color: white; margin-bottom: 20px; }
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 12px; }
.footer-col a { color: rgba(255,255,255,0.55); font-size: 13px; transition: color 0.15s; }
.footer-col a:hover { color: var(--saffron); }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; padding-top: 32px; border-top: 1px solid rgba(255,255,255,0.1); font-size: 12px; color: rgba(255,255,255,0.5); }
.footer-legal { display: flex; gap: 24px; }
.footer-legal a { color: rgba(255,255,255,0.5); }
.footer-legal a:hover { color: white; }

/* === REUSABLE COMPONENTS === */
.section-pad { padding: 80px 0; }
.section-label { display: inline-flex; align-items: center; gap: 10px; font-size: 12px; color: var(--muted); letter-spacing: 0.08em; text-transform: uppercase; font-weight: 700; margin-bottom: 12px; }
.section-label::before { content: ''; width: 28px; height: 2px; background: var(--saffron); }
.section-title { font-family: 'Inter Tight', sans-serif; font-size: 44px; font-weight: 800; letter-spacing: -0.025em; line-height: 1.1; color: var(--ink); margin-bottom: 16px; }
.section-sub { font-size: 16px; color: var(--muted); line-height: 1.55; max-width: 620px; }

.tag { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: var(--r-full); font-size: 11px; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; }
.tag.plum-soft { background: var(--plum-soft); color: var(--plum); }
.tag.saffron-soft { background: var(--saffron-soft); color: var(--saffron-deep); }
.tag.success { background: #DEF7E5; color: var(--jade); }
.tag.warn { background: #FFF4DA; color: var(--mustard-deep); }
.tag.danger { background: #FFE5E1; color: #B83830; }

/* === REAL IMAGE UTILITIES (Unsplash CDN) === */
/* Instructor / human portraits — used for avatars, headshots, hero photos */
.ph-instr-1  { background: url('https://images.unsplash.com/photo-1544367567-0f2fcb009e0b?w=600&q=80&auto=format&fit=crop') center/cover; }
.ph-instr-2  { background: url('https://images.unsplash.com/photo-1573496359142-b8d87734a5a2?w=600&q=80&auto=format&fit=crop') center/cover; }
.ph-instr-3  { background: url('https://images.unsplash.com/photo-1438761681033-6461ffad8d80?w=600&q=80&auto=format&fit=crop') center/cover; }
.ph-instr-4  { background: url('https://images.unsplash.com/photo-1494790108377-be9c29b29330?w=600&q=80&auto=format&fit=crop') center/cover; }
.ph-instr-5  { background: url('https://images.unsplash.com/photo-1507003211169-0a1dd7228f2d?w=600&q=80&auto=format&fit=crop') center/cover; }
.ph-instr-6  { background: url('https://images.unsplash.com/photo-1580489944761-15a19d654956?w=600&q=80&auto=format&fit=crop') center/cover; }
.ph-instr-7  { background: url('https://images.unsplash.com/photo-1531123897727-8f129e1688ce?w=600&q=80&auto=format&fit=crop') center/cover; }
.ph-instr-8  { background: url('https://images.unsplash.com/photo-1539571696357-5a69c17a67c6?w=600&q=80&auto=format&fit=crop') center/cover; }
.ph-instr-9  { background: url('https://images.unsplash.com/photo-1547425260-76bcadfb4f2c?w=600&q=80&auto=format&fit=crop') center/cover; }
.ph-instr-10 { background: url('https://images.unsplash.com/photo-1438761681033-6461ffad8d80?w=600&q=80&auto=format&fit=crop') center/cover; }
.ph-instr-11 { background: url('https://images.unsplash.com/photo-1577880216142-8549e9488dad?w=600&q=80&auto=format&fit=crop') center/cover; }
.ph-instr-12 { background: url('https://images.unsplash.com/photo-1564415051543-2e1834f23eb9?w=600&q=80&auto=format&fit=crop') center/cover; }

/* Yoga / wellness scene photos — used for course thumbnails, blog covers, workshop banners */
.ph-yoga-1 { background: url('https://images.unsplash.com/photo-1545205597-3d9d02c29597?w=800&q=80&auto=format&fit=crop') center/cover; }
.ph-yoga-2 { background: url('https://images.unsplash.com/photo-1506126613408-eca07ce68773?w=800&q=80&auto=format&fit=crop') center/cover; }
.ph-yoga-3 { background: url('https://images.unsplash.com/photo-1599447421416-3414500d18a5?w=800&q=80&auto=format&fit=crop') center/cover; }
.ph-yoga-4 { background: url('https://images.unsplash.com/photo-1593810450967-f9c42742e326?w=800&q=80&auto=format&fit=crop') center/cover; }
.ph-yoga-5 { background: url('https://images.unsplash.com/photo-1588286840104-8957b019727f?w=800&q=80&auto=format&fit=crop') center/cover; }
.ph-yoga-6 { background: url('https://images.unsplash.com/photo-1551446591-142875a901a1?w=800&q=80&auto=format&fit=crop') center/cover; }
.ph-yoga-7 { background: url('https://images.unsplash.com/photo-1604881991720-f91add269bed?w=800&q=80&auto=format&fit=crop') center/cover; }
.ph-yoga-8 { background: url('https://images.unsplash.com/photo-1593811167562-9cef47bfc4d7?w=800&q=80&auto=format&fit=crop') center/cover; }
.ph-yoga-9 { background: url('https://images.unsplash.com/photo-1474418397713-7ede21d49118?w=800&q=80&auto=format&fit=crop') center/cover; }
.ph-yoga-10{ background: url('https://images.unsplash.com/photo-1499209974431-9dddcece7f88?w=800&q=80&auto=format&fit=crop') center/cover; }
.ph-yoga-11{ background: url('https://images.unsplash.com/photo-1545389336-cf090694435e?w=800&q=80&auto=format&fit=crop') center/cover; }
.ph-yoga-12{ background: url('https://images.unsplash.com/photo-1591291621164-2c6367723315?w=800&q=80&auto=format&fit=crop') center/cover; }

/* Press / media editorial photos */
.ph-media-1 { background: url('https://images.unsplash.com/photo-1556761175-5973dc0f32e7?w=800&q=80&auto=format&fit=crop') center/cover; }
.ph-media-2 { background: url('https://images.unsplash.com/photo-1554224155-6726b3ff858f?w=800&q=80&auto=format&fit=crop') center/cover; }
.ph-media-3 { background: url('https://images.unsplash.com/photo-1432888622747-4eb9a8efeb07?w=800&q=80&auto=format&fit=crop') center/cover; }

/* Avatar primitive — circular, fixed sizes */
.avatar { border-radius: 50%; background-color: var(--plum-soft); background-size: cover; background-position: center; display: inline-block; flex-shrink: 0; }
.avatar.sm { width: 32px; height: 32px; }
.avatar.md { width: 44px; height: 44px; }
.avatar.lg { width: 56px; height: 56px; }
.avatar.xl { width: 80px; height: 80px; }
.avatar.xxl { width: 120px; height: 120px; }
.avatar.bordered { border: 3px solid white; box-shadow: var(--shadow-sm); }

/* Card image primitive — 16:9 by default with subtle gradient overlay for legibility */
.card-img { width: 100%; aspect-ratio: 16/9; background-color: var(--plum-soft); background-size: cover; background-position: center; position: relative; overflow: hidden; }
.card-img.square { aspect-ratio: 1/1; }
.card-img.portrait { aspect-ratio: 3/4; }
.card-img.wide { aspect-ratio: 21/9; }
.card-img::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 40%, rgba(31,6,23,0.35) 100%); pointer-events: none; }
.card-img.no-overlay::after { display: none; }

@media (max-width: 1024px) {
  .nav-links, .topbar-left, .topbar-right { display: none; }
  .page-hero h1 { font-size: 44px; }
  .section-title { font-size: 32px; }
  .footer-cta-card { grid-template-columns: 1fr; padding: 32px; }
  .footer-links { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .footer-links { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; gap: 16px; }
}

/* === MOBILE NAV (additive) === */
.nav-burger { display: none; width: 42px; height: 42px; border: 1px solid var(--line-strong); background: #fff; border-radius: var(--r-sm); color: var(--ink); cursor: pointer; align-items: center; justify-content: center; }
.nav-burger svg { width: 22px; height: 22px; }
.mnav { position: fixed; inset: 0; z-index: 200; background: rgba(31,6,23,0.5); backdrop-filter: blur(4px); opacity: 0; pointer-events: none; transition: opacity 0.25s; }
.mnav.on { opacity: 1; pointer-events: auto; }
.mnav-panel { position: absolute; top: 0; right: 0; height: 100%; width: min(86vw, 340px); background: #fff; box-shadow: var(--shadow-xl); padding: 22px 22px 32px; display: flex; flex-direction: column; gap: 4px; transform: translateX(100%); transition: transform 0.3s cubic-bezier(0.22,1,0.36,1); overflow-y: auto; }
.mnav.on .mnav-panel { transform: translateX(0); }
.mnav-x { align-self: flex-end; width: 40px; height: 40px; border: none; background: var(--bg-soft); border-radius: 50%; font-size: 24px; line-height: 1; color: var(--ink); cursor: pointer; }
.mnav-link { padding: 14px 8px; font-size: 17px; font-weight: 700; color: var(--ink); border-bottom: 1px solid var(--line); font-family: 'Inter Tight', sans-serif; }
.mnav-link:hover { color: var(--plum); }
.mnav-actions { display: grid; gap: 10px; margin-top: 20px; }
.mnav-actions .btn-primary, .mnav-actions .btn-secondary { padding: 14px; font-size: 15px; }
@media (max-width: 1024px) { .nav-burger { display: inline-flex; } }
@media (min-width: 1025px) { .mnav { display: none; } }

/* === CARD COMPONENTS (course/class/post) — promoted to shared, used site-wide === */
.course-card { background: var(--bg); border: 1px solid var(--line); border-radius: var(--r-xl); overflow: hidden; cursor: pointer; transition: all 0.25s; display: flex; flex-direction: column; color: var(--ink); }
.course-card:hover { border-color: transparent; box-shadow: var(--shadow-xl); transform: translateY(-4px); }
.course-thumb { aspect-ratio: 16/10; position: relative; overflow: hidden; padding: 14px; display: flex; flex-direction: column; justify-content: space-between; align-items: flex-start; gap: 8px; background-color: var(--plum-soft); background-size: cover; background-position: center; }
.course-thumb::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(15,4,11,0.42) 0%, rgba(15,4,11,0.06) 32%, transparent 55%, rgba(15,4,11,0.5) 100%); pointer-events: none; }
.thumb-pill { position: relative; z-index: 2; align-self: flex-start; max-width: calc(100% - 4px); background: rgba(255,255,255,0.96); padding: 6px 13px; border-radius: var(--r-full); font-size: 11px; font-weight: 800; color: var(--ink); letter-spacing: 0.03em; text-transform: uppercase; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; box-shadow: 0 3px 12px rgba(15,4,11,0.24); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.thumb-pill.new { background: var(--saffron); color: #fff; }
.thumb-pill.live { background: var(--coral); color: #fff; }
.thumb-pill.cert { background: var(--plum); color: #fff; }
.thumb-duration { position: relative; z-index: 2; align-self: flex-start; margin-top: auto; background: rgba(255,255,255,0.18); border: 1px solid rgba(255,255,255,0.42); color: #fff; padding: 5px 11px; border-radius: var(--r-full); font-size: 10.5px; font-weight: 700; letter-spacing: 0.08em; -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.course-body { padding: 18px; flex: 1; display: flex; flex-direction: column; }
.course-card h3 { font-family: 'Inter Tight', sans-serif; font-size: 17px; font-weight: 800; color: var(--ink); line-height: 1.22; letter-spacing: -0.015em; margin-bottom: 10px; flex: 1; }
.course-meta { display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--muted); margin-bottom: 14px; flex-wrap: wrap; }
.level-badge { background: var(--bg-soft); border-radius: 4px; padding: 3px 7px; font-weight: 700; color: var(--ink-2); font-size: 10px; letter-spacing: 0.02em; }
.course-meta .dot { color: var(--line-strong); }
.course-foot { display: flex; align-items: center; gap: 8px; padding-top: 14px; border-top: 1px solid var(--line); margin-top: auto; }
.course-rating { font-size: 12.5px; font-weight: 700; color: var(--ink); display: flex; align-items: center; gap: 4px; }
.course-rating .stars { color: var(--saffron); }
.course-price { margin-left: auto; font-family: 'Inter Tight', sans-serif; font-size: 18px; font-weight: 800; color: var(--ink); letter-spacing: -0.01em; }
.course-price.free { color: var(--jade); }
.course-price small { font-weight: 500; font-size: 11px; color: var(--muted); }

/* Blog / journal card */
.post-card { display: flex; flex-direction: column; background: var(--bg); border: 1px solid var(--line); border-radius: var(--r-xl); overflow: hidden; transition: all 0.25s; color: var(--ink); }
.post-card:hover { border-color: transparent; box-shadow: var(--shadow-xl); transform: translateY(-4px); }
.post-thumb { aspect-ratio: 16/9; background: var(--plum-soft); background-size: cover; background-position: center; position: relative; }
.post-thumb .post-cat { position: absolute; top: 12px; left: 12px; background: rgba(255,255,255,0.95); color: var(--plum); font-size: 10px; font-weight: 800; letter-spacing: 0.04em; text-transform: uppercase; padding: 5px 10px; border-radius: var(--r-full); }
.post-body { padding: 20px; flex: 1; display: flex; flex-direction: column; }
.post-card h3 { font-family: 'Inter Tight', sans-serif; font-size: 18px; font-weight: 800; letter-spacing: -0.015em; line-height: 1.25; color: var(--ink); margin-bottom: 8px; }
.post-card p { font-size: 13.5px; color: var(--muted); line-height: 1.55; margin-bottom: 14px; flex: 1; }
.post-meta { display: flex; align-items: center; gap: 8px; font-size: 11.5px; color: var(--muted); font-family: 'DM Mono', monospace; margin-top: auto; }
.post-meta .blang { background: var(--saffron-soft); color: var(--saffron-deep); padding: 2px 7px; border-radius: var(--r-full); font-weight: 700; }
.card-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.card-grid.c3 { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 1024px) { .card-grid, .card-grid.c3 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .card-grid, .card-grid.c3 { grid-template-columns: 1fr; } }

/* === SECTION HEAD + VIEW-ALL LINK (reused across listing pages) === */
.section-head { display: flex; align-items: flex-end; justify-content: space-between; margin-bottom: 40px; gap: 32px; flex-wrap: wrap; }
.head-link { color: var(--ink); font-size: 14px; font-weight: 700; padding: 13px 22px; border: 2px solid var(--ink); border-radius: var(--r-sm); transition: all 0.15s; white-space: nowrap; display: inline-flex; align-items: center; gap: 6px; }
.head-link:hover { background: var(--ink); color: #fff; }
.head-link.on-dark { color: #fff; border-color: rgba(255,255,255,0.3); }
.head-link.on-dark:hover { background: #fff; color: var(--ink); }
.section-title.xl { font-size: 64px; line-height: 1.0; }
.section-title .accent { background: var(--g-sunset); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; font-style: italic; display: inline-block; padding: 0.05em 0.12em 0.2em 0; margin: -0.05em -0.04em -0.2em 0; }
.section-title .underline { position: relative; display: inline-block; }
.section-title .underline::after { content: ''; position: absolute; bottom: 4px; left: -4px; right: -4px; height: 12px; background: var(--lemon); z-index: -1; border-radius: 4px; }
@media (max-width: 1024px) { .section-title.xl { font-size: 34px; } }

/* === FILTER KIT (shared by courses / classes / teachers listings) === */
.filterbar { padding: 16px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--bg-soft); }
.chip-row { display: flex; align-items: center; gap: 8px; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; }
.chip-row::-webkit-scrollbar { display: none; }
.filter-chip { padding: 8px 15px; border: 1px solid var(--line-strong); border-radius: var(--r-full); font-size: 13px; font-weight: 600; color: var(--ink-2); cursor: pointer; background: #fff; transition: all .15s; white-space: nowrap; }
.filter-chip:hover { border-color: var(--ink); color: var(--ink); }
.filter-chip.active { background: var(--ink); color: #fff; border-color: var(--ink); }
.filter-chip .count { opacity: .6; font-weight: 700; margin-left: 3px; }
.filter-form { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-top: 14px; }
.filter-form select, .filter-form .fsearch input { padding: 9px 12px; border: 1px solid var(--line-strong); border-radius: var(--r-sm); font-size: 13px; font-weight: 600; color: var(--ink); background: #fff; font-family: inherit; outline: none; cursor: pointer; }
.filter-form select:focus, .filter-form .fsearch input:focus { border-color: var(--ink); }
/* custom chevron so the arrow isn't flush to the border + a theme-consistent (light) dropdown popup */
.filter-form select { -webkit-appearance: none; -moz-appearance: none; appearance: none; padding-right: 34px; color-scheme: light;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%235C1E47' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 13px center; background-size: 12px; }
.filter-form select:hover { border-color: var(--ink); }
.filter-form select option { background: #fff; color: var(--ink); }
.filter-form select option:checked { background: var(--plum-soft); color: var(--plum); }
.filter-form .fsearch { position: relative; flex: 1; min-width: 200px; }
.filter-form .fsearch input { width: 100%; padding-left: 36px; cursor: text; }
.filter-form .fsearch svg { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); width: 16px; height: 16px; stroke: var(--muted); }
.filter-apply { background: var(--plum); color: #fff; border: none; padding: 10px 18px; border-radius: var(--r-sm); font-weight: 800; font-size: 13px; cursor: pointer; }
.filter-apply:hover { background: var(--plum-deep); }
.filter-clear { font-size: 13px; font-weight: 700; color: var(--muted); text-decoration: underline; text-underline-offset: 3px; }
.filter-clear:hover { color: var(--ink); }

/* ============================================================
   GLOBAL RESPONSIVE HARDENING — margins, spacing, overflow
   ============================================================ */
html, body { overflow-x: hidden; max-width: 100%; }
img, svg, video { max-width: 100%; }
.container { width: 100%; }

/* Tablet & down */
@media (max-width: 1024px) {
  .container { padding: 0 24px; }
  .section-pad { padding: 64px 0; }
  .page-hero { padding: 52px 0 40px; }
  .page-hero h1 { font-size: 40px; line-height: 1.05; }
  .footer { padding: 60px 0 28px; }
}

/* Mobile */
@media (max-width: 640px) {
  .container { padding: 0 18px; }
  .section-pad { padding: 48px 0; }
  .page-hero { padding: 36px 0 28px; }
  .page-hero h1 { font-size: 32px; }
  .page-hero .lead { font-size: 15px; margin-top: 14px; }
  .section-title { font-size: 26px; }
  .section-sub { font-size: 15px; }
  .section-head { flex-direction: column; align-items: flex-start; gap: 16px; margin-bottom: 26px; }
  .section-head .head-link { width: 100%; justify-content: center; }
  .breadcrumb { margin-bottom: 16px; font-size: 12px; }
  /* filter kit → full-width, tidy stack */
  .filterbar { padding: 14px 0; }
  .filter-form { gap: 8px; margin-top: 12px; }
  .filter-form .fsearch { flex: 1 1 100%; min-width: 0; }
  .filter-form select { flex: 1 1 calc(50% - 4px); min-width: 0; }
  .filter-apply { flex: 1 1 100%; }
  .filter-chip { font-size: 12.5px; padding: 7px 13px; }
  /* footer */
  .footer { padding: 48px 0 24px; }
  .footer-cta-card { padding: 30px 22px; gap: 22px; }
  .footer-cta-card h3 { font-size: 27px; }
  .footer-cta-card p { font-size: 14px; }
  .footer-bottom { text-align: center; gap: 12px; }
  .footer-legal { justify-content: center; flex-wrap: wrap; gap: 14px 20px; }
  /* comfortable full-width primary actions in heroes */
  .hero-cta, .actions { width: 100%; }
  .hero-cta > a, .hero-cta > button { flex: 1 1 auto; justify-content: center; text-align: center; }
}

/* Small phones */
@media (max-width: 400px) {
  .container { padding: 0 14px; }
  .page-hero h1 { font-size: 28px; }
  .section-title { font-size: 23px; }
}

/* ===== HEADER (topbar + nav) responsive ===== */
@media (max-width: 1024px) {
  /* topbar: drop category tabs + long location text, keep the click-to-call CTA */
  .topbar-right { display: flex; }
  .topbar-right span { display: none; }
  .topbar-inner { justify-content: flex-end; }
}
@media (max-width: 640px) {
  .nav { padding: 12px 0; }
  .nav-actions { gap: 8px; }
  .nav-actions .btn-text { display: none; }              /* "Sign in" lives in the drawer */
  .nav-actions .btn-primary { padding: 9px 14px; font-size: 13px; white-space: nowrap; }
  .logo-mark { width: 148px; height: 39px; }
  .topbar { padding: 7px 0; }
  .topbar-app-btn { font-size: 10px; padding: 4px 10px; letter-spacing: 0.03em; }
}
@media (max-width: 360px) {
  .logo-mark { width: 128px; height: 34px; }
  .nav-actions .btn-primary { padding: 8px 11px; }
}

/* ===== 5-up compact course grid ===== */
.card-grid.c5 { grid-template-columns: repeat(5, 1fr); gap: 16px; }
.card-grid.c5 .course-thumb { aspect-ratio: 16/11; padding: 10px; }
.card-grid.c5 .course-body { padding: 15px; }
.card-grid.c5 .course-card h3 { font-size: 15px; line-height: 1.25; margin-bottom: 8px; }
.card-grid.c5 .course-meta { font-size: 11px; margin-bottom: 10px; gap: 5px; }
.card-grid.c5 .level-badge { font-size: 9px; padding: 2px 6px; }
.card-grid.c5 .course-foot { padding-top: 11px; gap: 6px; }
.card-grid.c5 .course-rating { font-size: 10.5px; gap: 3px; }
.card-grid.c5 .course-price { font-size: 15px; }
.card-grid.c5 .course-price small { font-size: 9px; }
.card-grid.c5 .thumb-pill { font-size: 10px; padding: 3px 8px; }
.card-grid.c5 .thumb-duration { font-size: 9px; padding: 3px 6px; }
@media (max-width: 1280px) { .card-grid.c5 { grid-template-columns: repeat(4, 1fr); } }
@media (max-width: 1000px) { .card-grid.c5 { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 720px)  { .card-grid.c5 { grid-template-columns: repeat(2, 1fr); gap: 14px; } }
@media (max-width: 480px)  { .card-grid.c5 { grid-template-columns: 1fr; } }

/* ============================================================
   LISTING LAYOUT — left filter sidebar + results (find-a-teacher, classes)
   ============================================================ */
.listing-wrap { padding: 30px 0 88px; }
.listing-layout { display: grid; grid-template-columns: 272px minmax(0, 1fr); gap: 34px; align-items: start; }

/* --- sidebar shell --- */
.filter-side { position: sticky; top: 84px; }
.filter-side .fs-card { background: var(--bg); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 18px 18px 20px; box-shadow: var(--shadow-sm); }
.fs-toggle { display: none; }  /* only shown on mobile */
.fs-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 4px; }
.fs-head h3 { font-family: 'Inter Tight', sans-serif; font-size: 16px; font-weight: 800; color: var(--ink); letter-spacing: -0.01em; }
.fs-clear { font-size: 12.5px; font-weight: 700; color: var(--muted); text-decoration: underline; text-underline-offset: 3px; }
.fs-clear:hover { color: var(--ink); }
.fs-body { display: flex; flex-direction: column; gap: 15px; margin-top: 14px; }
.fs-group { display: flex; flex-direction: column; gap: 8px; }
.fs-label { font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.07em; color: var(--muted); }

/* sidebar chips (disciplines / categories) */
.fs-chips { display: flex; flex-wrap: wrap; gap: 7px; }
.fs-chips .filter-chip { padding: 6px 12px; font-size: 12.5px; }

/* sidebar search box */
.fs-search { position: relative; }
.fs-search input { width: 100%; padding: 10px 12px 10px 36px; border: 1px solid var(--line-strong); border-radius: var(--r-sm); font-size: 13px; font-weight: 600; color: var(--ink); background: #fff; font-family: inherit; outline: none; }
.fs-search input:focus { border-color: var(--ink); }
.fs-search svg { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); width: 16px; height: 16px; stroke: var(--muted); pointer-events: none; }

/* sidebar selects — full width + custom chevron */
.filter-side select { width: 100%; padding: 10px 34px 10px 12px; border: 1px solid var(--line-strong); border-radius: var(--r-sm); font-size: 13px; font-weight: 600; color: var(--ink); background-color: #fff; font-family: inherit; outline: none; cursor: pointer;
  -webkit-appearance: none; -moz-appearance: none; appearance: none; color-scheme: light;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%235C1E47' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 12px center; background-size: 13px; }
.filter-side select:focus, .filter-side select:hover { border-color: var(--ink); }
.filter-side select option:checked { background: var(--plum-soft); color: var(--plum); }

.fs-apply { width: 100%; margin-top: 4px; padding: 12px; font-size: 13.5px; display: none; } /* desktop auto-applies → no button */

/* --- results column --- */
.listing-main .results-head { margin: 0 0 22px; }
.listing-main .card-grid,
.listing-main .all-grid { grid-template-columns: repeat(auto-fill, minmax(224px, 1fr)); gap: 22px; }

/* --- responsive: sidebar becomes a collapsible panel on top --- */
@media (max-width: 900px) {
  .listing-layout { grid-template-columns: 1fr; gap: 18px; }
  .filter-side { position: static; }
  .filter-side .fs-card { padding: 0; border: none; background: transparent; box-shadow: none; }
  .fs-toggle { display: flex; align-items: center; justify-content: space-between; gap: 10px; cursor: pointer; list-style: none; padding: 13px 16px; border: 1px solid var(--line-strong); border-radius: var(--r-sm); background: var(--bg); font-family: 'Inter Tight', sans-serif; font-weight: 800; font-size: 14px; color: var(--ink); }
  .fs-toggle::-webkit-details-marker { display: none; }
  .fs-toggle .chev { width: 18px; height: 18px; transition: transform 0.2s; stroke: var(--plum); }
  details[open] > .fs-toggle .chev { transform: rotate(180deg); }
  .filter-side > .fs-card { margin-top: 12px; }
  .fs-head { display: none; }         /* toggle already labels it */
  .fs-body { margin-top: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 12px 14px; }
  .fs-group.full { grid-column: 1 / -1; }
  .fs-apply { grid-column: 1 / -1; display: block; } /* mobile keeps a single Apply */
}
@media (max-width: 460px) {
  .fs-body { grid-template-columns: 1fr; }
}
