/* ============================================================
   datasets.css — DataVix Datasets marketplace module
   Matches the live landing page design system (https://www.datavix.in/landingpage/)
   and the /quizzes module: warm off-white bg, Inter body / Bricolage Grotesque
   display font, slate-900 pill buttons, white rounded cards with soft large
   shadows, violet → pink → amber gradient accents, emerald download CTA.
   Self-contained (supplies its own reset + tokens) so dataset pages render
   this exact design without depending on style.css / quiz.css.
   ============================================================ */

*, *::before, *::after { box-sizing: border-box; }

:root {
  --ink: #1a1a2e;
  --slate-900: #0f172a;
  --slate-800: #1e293b;
  --slate-700: #334155;
  --slate-600: #475569;
  --slate-500: #64748b;
  --slate-400: #94a3b8;
  --slate-300: #cbd5e1;
  --slate-200: #e2e8f0;
  --slate-100: #f1f5f9;
  --slate-50: #f8fafc;
  --bg: #fbfaf8;
  --white: #ffffff;
  --violet: #6d28d9;
  --pink: #db2777;
  --amber: #f59e0b;
  --emerald: #059669;
  --emerald-dark: #047857;
  --gradient-brand: linear-gradient(90deg, var(--violet), var(--pink) 50%, var(--amber));
  --radius-lg: 24px;
  --radius-md: 16px;
  --radius-sm: 12px;
  --shadow-sm: 0 1px 2px rgba(0,0,0,0.04);
  --shadow-card: 0 8px 24px rgba(15, 23, 42, 0.06);
  --shadow-card-hover: 0 22px 48px rgba(15, 23, 42, 0.14);
  --shadow-soft: 0 15px 40px rgba(0, 0, 0, 0.10);
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

a:focus-visible, button:focus-visible, input:focus-visible, summary:focus-visible {
  outline: 2px solid var(--violet);
  outline-offset: 2px;
  border-radius: 6px;
}

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

h1, h2, h3, .font-display {
  font-family: 'Bricolage Grotesque', 'Inter', system-ui, sans-serif;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--slate-900);
  margin: 0;
}

.gradient-text {
  background: var(--gradient-brand);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.section-label {
  display: inline-block;
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--violet);
}

/* ── Navbar (reused classes) ─────────────────────────────────────────── */
.navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 32px;
  background: rgba(251, 250, 248, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--slate-100);
}
.navbar .logo {
  font-family: 'Bricolage Grotesque', sans-serif;
  font-weight: 800; font-size: 19px; letter-spacing: -0.02em;
  color: var(--slate-900); text-decoration: none;
}
.navbar .nav-buttons { display: flex; align-items: center; gap: 20px; }
.navbar .menu-toggle { display: none; cursor: pointer; font-size: 22px; color: var(--slate-900); }

/* ── Buttons ─────────────────────────────────────────────────────────── */
.btn-gradient, .btn-outline {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 13px 28px; border-radius: 999px;
  font-family: 'Inter', sans-serif; font-size: 14.5px; font-weight: 600;
  text-decoration: none; cursor: pointer; border: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}
.btn-gradient { background: var(--slate-900); color: #fff; box-shadow: 0 12px 24px rgba(15,23,42,0.20); }
.btn-gradient:hover { transform: translateY(-2px); box-shadow: 0 16px 30px rgba(15,23,42,0.26); }
.btn-outline { background: var(--white); color: var(--slate-800); border: 1px solid var(--slate-300); box-shadow: var(--shadow-sm); }
.btn-outline:hover { border-color: var(--slate-500); transform: translateY(-2px); }

/* ── Page wrap + breadcrumb ──────────────────────────────────────────── */
.ds-wrap { max-width: 1240px; margin: 0 auto; padding: 132px 24px 96px; }

.ds-breadcrumb { font-size: 13px; color: var(--slate-500); margin-bottom: 26px; display: flex; flex-wrap: wrap; align-items: center; }
.ds-breadcrumb a { color: var(--slate-600); text-decoration: none; }
.ds-breadcrumb a:hover { color: var(--violet); }
.ds-crumb-sep { margin: 0 8px; color: var(--slate-300); }

/* ── Listing hero ────────────────────────────────────────────────────── */
.ds-hero { text-align: center; max-width: 760px; margin: 0 auto 40px; }
.ds-hero h1 { font-size: 46px; line-height: 1.12; margin: 16px 0; }
.ds-hero > p { color: var(--slate-500); font-size: 17px; line-height: 1.7; margin: 0 auto; max-width: 620px; }

.ds-search-bar {
  position: relative; max-width: 560px; margin: 32px auto 24px;
  display: flex; align-items: center;
}
.ds-search-bar svg { position: absolute; left: 20px; color: var(--slate-400); pointer-events: none; }
.ds-search-bar input {
  width: 100%; padding: 15px 22px 15px 50px;
  border-radius: 999px; border: 1px solid var(--slate-300);
  background: var(--white); color: var(--ink);
  font-family: inherit; font-size: 15px; outline: none;
  box-shadow: var(--shadow-sm);
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}
.ds-search-bar input:focus { border-color: var(--violet); box-shadow: 0 0 0 3px rgba(109,40,217,0.12); }

/* ── Category filter pills ───────────────────────────────────────────── */
.ds-filters { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.ds-filter-pill {
  padding: 8px 16px; border-radius: 999px;
  border: 1px solid var(--slate-200); background: var(--white);
  color: var(--slate-600); font-family: inherit; font-size: 13.5px; font-weight: 600;
  cursor: pointer; transition: all 0.18s ease;
}
.ds-filter-pill:hover { border-color: var(--slate-400); color: var(--slate-800); }
.ds-filter-pill.active { background: var(--slate-900); color: #fff; border-color: var(--slate-900); }

.ds-results-bar { display: flex; justify-content: space-between; align-items: center; margin: 34px 0 20px; color: var(--slate-500); font-size: 13.5px; font-weight: 600; }

/* ── Card grid (4 / 2 / 1) ───────────────────────────────────────────── */
.ds-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px;
}
@media (max-width: 1080px) { .ds-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px)  { .ds-grid { grid-template-columns: 1fr; } }

.ds-card {
  background: var(--white); border: 1px solid var(--slate-200);
  border-radius: var(--radius-md); overflow: hidden;
  box-shadow: var(--shadow-card);
  display: flex; flex-direction: column;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}
.ds-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-card-hover); border-color: var(--slate-300); }
.ds-card.is-hidden { display: none; }

.ds-card-thumb { position: relative; display: block; aspect-ratio: 16 / 10; overflow: hidden; }
.ds-card-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease; }
.ds-card:hover .ds-card-thumb img { transform: scale(1.05); }

.ds-free-badge {
  position: absolute; top: 12px; left: 12px; z-index: 2;
  background: var(--emerald); color: #fff;
  font-size: 11.5px; font-weight: 700; letter-spacing: 0.03em;
  padding: 4px 10px; border-radius: 999px;
  box-shadow: 0 4px 10px rgba(5,150,105,0.35);
}
.ds-bookmark {
  position: absolute; top: 10px; right: 10px; z-index: 2;
  width: 34px; height: 34px; border-radius: 50%;
  display: grid; place-items: center; cursor: pointer;
  background: rgba(255,255,255,0.9); border: none; color: var(--slate-600);
  backdrop-filter: blur(4px); transition: all 0.18s ease;
}
.ds-bookmark:hover { color: var(--violet); transform: scale(1.08); }
.ds-bookmark.saved { color: var(--violet); }
.ds-bookmark.saved svg { fill: var(--violet); }

.ds-card-body { padding: 18px 18px 20px; display: flex; flex-direction: column; flex: 1; }
.ds-card-meta-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.ds-card-format { font-size: 11px; font-weight: 700; color: var(--slate-500); background: var(--slate-100); padding: 3px 9px; border-radius: 6px; letter-spacing: 0.03em; }

.ds-badge {
  display: inline-flex; align-items: center;
  font-size: 11.5px; font-weight: 700; padding: 4px 10px; border-radius: 999px;
  letter-spacing: 0.02em;
}
.diff-beginner { background: rgba(5,150,105,0.12); color: var(--emerald-dark); }
.diff-intermediate { background: rgba(245,158,11,0.15); color: #b45309; }
.diff-advanced { background: rgba(219,39,119,0.12); color: var(--pink); }
.ds-badge-cat { background: rgba(109,40,217,0.10); color: var(--violet); }

.ds-card-title { font-size: 17px; line-height: 1.3; margin-bottom: 6px; }
.ds-card-title a { color: var(--slate-900); text-decoration: none; }
.ds-card-title a:hover { color: var(--violet); }
.ds-card-desc { color: var(--slate-500); font-size: 13.5px; line-height: 1.55; margin: 0 0 14px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

.ds-card-stats { display: flex; gap: 16px; color: var(--slate-600); font-size: 12.5px; font-weight: 600; margin-bottom: 12px; }
.ds-card-stats span { display: inline-flex; align-items: center; gap: 6px; }
.ds-card-stats svg { color: var(--slate-400); }

.ds-card-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 14px; }
.ds-tag { font-size: 11px; color: var(--violet); background: rgba(109,40,217,0.07); padding: 3px 8px; border-radius: 6px; font-weight: 600; }

.ds-card-footer { display: flex; justify-content: space-between; align-items: center; color: var(--slate-400); font-size: 11.5px; margin-top: auto; padding-top: 12px; border-top: 1px solid var(--slate-100); }
.ds-card-downloads { color: var(--slate-600); font-weight: 600; }

.ds-card-cta {
  margin-top: 14px; display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  padding: 11px 18px; border-radius: var(--radius-sm);
  background: var(--slate-50); border: 1px solid var(--slate-200);
  color: var(--slate-900); font-size: 13.5px; font-weight: 700; text-decoration: none;
  transition: all 0.18s ease;
}
.ds-card-cta:hover { background: var(--slate-900); color: #fff; border-color: var(--slate-900); }
.ds-card-cta span { transition: transform 0.18s ease; }
.ds-card-cta:hover span { transform: translateX(3px); }

.ds-empty { text-align: center; color: var(--slate-500); font-size: 15px; padding: 60px 20px; }
.ds-loadmore-wrap { display: flex; justify-content: center; margin-top: 40px; }
.ds-loadmore-wrap.is-done { display: none; }

/* ── Skeleton shimmer (used on first paint by JS if needed) ──────────── */
.ds-skeleton { background: linear-gradient(100deg, var(--slate-100) 30%, var(--slate-200) 50%, var(--slate-100) 70%); background-size: 200% 100%; animation: dsShimmer 1.2s infinite; border-radius: var(--radius-md); }
@keyframes dsShimmer { to { background-position: -200% 0; } }

/* ════════════════════════════════════════════════════════════════════
   DETAIL PAGE
   ════════════════════════════════════════════════════════════════════ */
.ds-detail-hero {
  display: grid; grid-template-columns: 35% 65%; gap: 40px; align-items: start;
  margin-bottom: 20px;
}
@media (max-width: 900px) { .ds-detail-hero { grid-template-columns: 1fr; gap: 28px; } }

.ds-detail-left { position: sticky; top: 100px; }
@media (max-width: 900px) { .ds-detail-left { position: static; } }

.ds-detail-cover { position: relative; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-soft); border: 1px solid var(--slate-200); }
.ds-detail-cover img { width: 100%; height: auto; }

.ds-detail-title { font-size: 30px; line-height: 1.2; margin: 22px 0 14px; }
.ds-detail-badges { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 20px; }
.ds-format { font-size: 11.5px; font-weight: 700; color: var(--slate-600); background: var(--slate-100); padding: 4px 10px; border-radius: 6px; }

.ds-info { border: 1px solid var(--slate-200); border-radius: var(--radius-md); overflow: hidden; background: var(--white); box-shadow: var(--shadow-card); }
.ds-info-row { display: flex; justify-content: space-between; gap: 14px; padding: 12px 16px; font-size: 13.5px; border-bottom: 1px solid var(--slate-100); }
.ds-info-row:last-child { border-bottom: none; }
.ds-info-k { color: var(--slate-500); font-weight: 500; }
.ds-info-v { color: var(--slate-900); font-weight: 700; text-align: right; }

/* ── Download card ───────────────────────────────────────────────────── */
.ds-download-card {
  background: var(--white); border: 1px solid var(--slate-200);
  border-radius: var(--radius-lg); padding: 26px; box-shadow: var(--shadow-card);
  margin-bottom: 32px;
}
.ds-download-btn {
  display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%;
  padding: 17px 24px; border-radius: var(--radius-sm);
  background: linear-gradient(180deg, var(--emerald), var(--emerald-dark));
  color: #fff; font-size: 16.5px; font-weight: 700; text-decoration: none;
  box-shadow: 0 14px 28px rgba(5,150,105,0.30);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.ds-download-btn:hover { transform: translateY(-2px); box-shadow: 0 18px 34px rgba(5,150,105,0.38); }
.ds-download-btn.is-downloading { opacity: 0.8; pointer-events: none; }
.ds-download-sub { text-align: center; color: var(--slate-500); font-size: 12.5px; margin: 12px 0 18px; }

.ds-perks { list-style: none; padding: 0; margin: 0 0 20px; display: grid; gap: 11px; }
.ds-perks li { display: flex; align-items: center; gap: 10px; font-size: 14px; color: var(--slate-700); font-weight: 500; }
.ds-perks svg { color: var(--emerald); flex-shrink: 0; }

.ds-share { display: flex; flex-wrap: wrap; gap: 8px; padding-top: 18px; border-top: 1px solid var(--slate-100); }
.ds-share-btn {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 9px 14px; border-radius: 999px;
  border: 1px solid var(--slate-200); background: var(--white);
  color: var(--slate-600); font-family: inherit; font-size: 12.5px; font-weight: 600; cursor: pointer;
  transition: all 0.18s ease;
}
.ds-share-btn:hover { border-color: var(--slate-400); color: var(--slate-900); }
.ds-share-btn.saved { color: var(--violet); border-color: var(--violet); }
.ds-share-btn.saved svg { fill: rgba(109,40,217,0.15); }
.ds-share-btn.copied { color: var(--emerald); border-color: var(--emerald); }

/* ── Sections ────────────────────────────────────────────────────────── */
.ds-section { margin-top: 44px; }
.ds-detail-right .ds-section:first-of-type { margin-top: 30px; }
.ds-h2 { font-size: 24px; margin-bottom: 8px; }
.ds-section-sub { color: var(--slate-500); font-size: 14.5px; margin: 0 0 20px; }
.ds-long { color: var(--slate-700); font-size: 15.5px; line-height: 1.75; margin: 10px 0 16px; }
.ds-detail-tags { margin-top: 6px; }

/* ── Tables ──────────────────────────────────────────────────────────── */
.ds-table-wrap { overflow-x: auto; border: 1px solid var(--slate-200); border-radius: var(--radius-md); box-shadow: var(--shadow-card); background: var(--white); }
.ds-table { width: 100%; border-collapse: collapse; font-size: 14px; min-width: 520px; }
.ds-table thead th { text-align: left; background: var(--slate-50); color: var(--slate-600); font-weight: 700; font-size: 12.5px; letter-spacing: 0.03em; text-transform: uppercase; padding: 13px 18px; border-bottom: 1px solid var(--slate-200); }
.ds-table td { padding: 13px 18px; border-bottom: 1px solid var(--slate-100); color: var(--slate-700); vertical-align: top; }
.ds-table tbody tr:last-child td { border-bottom: none; }
.ds-table tbody tr:hover { background: var(--slate-50); }
.ds-table .ds-num { text-align: right; font-variant-numeric: tabular-nums; color: var(--slate-900); font-weight: 600; }
.ds-tname { font-family: ui-monospace, 'SFMono-Regular', Menlo, monospace; font-size: 13px; background: rgba(109,40,217,0.07); color: var(--violet); padding: 2px 8px; border-radius: 6px; font-weight: 600; }
.ds-dtype { font-family: ui-monospace, monospace; font-size: 12px; background: var(--slate-100); color: var(--slate-600); padding: 2px 8px; border-radius: 6px; }

/* ── Skill cards ─────────────────────────────────────────────────────── */
.ds-chip-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 12px; }
.ds-skill-card {
  display: flex; align-items: center; gap: 10px;
  padding: 14px 16px; background: var(--white);
  border: 1px solid var(--slate-200); border-radius: var(--radius-sm);
  font-size: 14px; font-weight: 600; color: var(--slate-800);
  box-shadow: var(--shadow-sm); transition: all 0.2s ease;
}
.ds-skill-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-card); border-color: var(--slate-300); }
.ds-skill-card svg { color: var(--amber); flex-shrink: 0; }

/* ── Project cards ───────────────────────────────────────────────────── */
.ds-project-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 14px; }
.ds-project-card {
  display: flex; align-items: center; gap: 14px;
  padding: 18px 20px; border-radius: var(--radius-md);
  background: var(--white); border: 1px solid var(--slate-200);
  box-shadow: var(--shadow-sm); transition: all 0.2s ease;
}
.ds-project-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-card); border-color: var(--violet); }
.ds-project-num {
  font-family: 'Bricolage Grotesque', sans-serif; font-weight: 800; font-size: 18px;
  width: 40px; height: 40px; flex-shrink: 0; display: grid; place-items: center;
  border-radius: 10px; background: var(--gradient-brand); color: #fff;
}
.ds-project-name { font-size: 14.5px; font-weight: 600; color: var(--slate-800); }

/* ── Gallery + lightbox ──────────────────────────────────────────────── */
.ds-gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; }
.ds-gallery-item {
  position: relative; padding: 0; border: 1px solid var(--slate-200);
  border-radius: var(--radius-md); overflow: hidden; cursor: zoom-in; background: var(--white);
  box-shadow: var(--shadow-card); transition: all 0.2s ease;
}
.ds-gallery-item:hover { transform: translateY(-4px); box-shadow: var(--shadow-card-hover); }
.ds-gallery-item img { width: 100%; height: auto; display: block; }
.ds-gallery-zoom { position: absolute; top: 10px; right: 10px; width: 30px; height: 30px; border-radius: 8px; background: rgba(15,23,42,0.65); color: #fff; display: grid; place-items: center; font-size: 15px; backdrop-filter: blur(4px); }

.ds-lightbox {
  position: fixed; inset: 0; z-index: 1000;
  background: rgba(15,23,42,0.82); backdrop-filter: blur(6px);
  display: none; align-items: center; justify-content: center; padding: 32px;
}
.ds-lightbox.open { display: flex; }
.ds-lightbox-fig { margin: 0; max-width: 1000px; width: 100%; text-align: center; }
.ds-lightbox-fig img { width: 100%; height: auto; border-radius: var(--radius-md); box-shadow: 0 30px 80px rgba(0,0,0,0.4); }
.ds-lightbox-fig figcaption { color: #e2e8f0; font-size: 14px; margin-top: 14px; }
.ds-lightbox-close { position: absolute; top: 20px; right: 24px; width: 42px; height: 42px; border-radius: 50%; border: none; background: rgba(255,255,255,0.14); color: #fff; font-size: 20px; cursor: pointer; transition: background 0.18s ease; }
.ds-lightbox-close:hover { background: rgba(255,255,255,0.28); }

/* ── Related datasets (horizontal cards) ─────────────────────────────── */
.ds-related-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
@media (max-width: 820px) { .ds-related-row { grid-template-columns: 1fr; } }
.ds-related-card {
  display: flex; flex-direction: column; background: var(--white);
  border: 1px solid var(--slate-200); border-radius: var(--radius-md);
  overflow: hidden; text-decoration: none; box-shadow: var(--shadow-card);
  transition: all 0.25s ease;
}
.ds-related-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-card-hover); border-color: var(--slate-300); }
.ds-related-card img { width: 100%; aspect-ratio: 16/10; object-fit: cover; }
.ds-related-body { padding: 16px; }
.ds-related-body h3 { font-size: 16px; margin: 10px 0 6px; }
.ds-related-body p { color: var(--slate-500); font-size: 13px; line-height: 1.5; margin: 0; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

/* ── FAQ accordion ───────────────────────────────────────────────────── */
.ds-faq { display: grid; gap: 12px; max-width: 820px; }
.ds-faq-item { background: var(--white); border: 1px solid var(--slate-200); border-radius: var(--radius-md); box-shadow: var(--shadow-sm); overflow: hidden; }
.ds-faq-item summary {
  list-style: none; cursor: pointer; padding: 18px 22px;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  font-size: 15.5px; font-weight: 700; color: var(--slate-900);
}
.ds-faq-item summary::-webkit-details-marker { display: none; }
.ds-faq-icon { font-size: 22px; font-weight: 400; color: var(--violet); transition: transform 0.2s ease; flex-shrink: 0; }
.ds-faq-item[open] .ds-faq-icon { transform: rotate(45deg); }
.ds-faq-a { padding: 0 22px 20px; color: var(--slate-600); font-size: 14.5px; line-height: 1.7; }

/* ── 404 ─────────────────────────────────────────────────────────────── */
.ds-notfound { text-align: center; padding: 160px 24px 120px; }
.ds-notfound p { color: var(--slate-500); font-size: 16px; margin: 12px 0 28px; }

/* ── Toast ───────────────────────────────────────────────────────────── */
.ds-toast {
  position: fixed; bottom: 28px; left: 50%; transform: translateX(-50%) translateY(20px);
  background: var(--slate-900); color: #fff; padding: 12px 22px; border-radius: 999px;
  font-size: 13.5px; font-weight: 600; box-shadow: 0 12px 30px rgba(0,0,0,0.25);
  opacity: 0; pointer-events: none; transition: opacity 0.25s ease, transform 0.25s ease; z-index: 1100;
}
.ds-toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ── Footer (reused classes) ─────────────────────────────────────────── */
.footer { background: var(--white); border-top: 1px solid var(--slate-100); padding: 56px 32px 28px; margin-top: 80px; }
.footer-inner { max-width: 1180px; margin: 0 auto; display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; }
.footer-brand h3 { font-size: 18px; margin-bottom: 10px; }
.footer-brand p { color: var(--slate-500); font-size: 13px; line-height: 1.6; }
.footer-links h4 { color: var(--slate-900); margin-bottom: 14px; font-size: 13px; }
.footer-links a, .footer-enroll { display: block; color: var(--slate-500); text-decoration: none; font-size: 13.5px; margin-bottom: 10px; transition: color 0.2s ease; }
.footer-links a:hover, .footer-enroll:hover { color: var(--violet); }
.footer-bottom { max-width: 1180px; margin: 32px auto 0; padding-top: 20px; border-top: 1px solid var(--slate-100); color: var(--slate-500); font-size: 12.5px; }

/* ── Responsive ──────────────────────────────────────────────────────── */
@media (max-width: 760px) {
  .navbar { padding: 14px 20px; }
  .navbar .nav-buttons { display: none; }
  .navbar .nav-buttons.active {
    display: flex; position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; background: var(--white); padding: 16px 24px;
    border-bottom: 1px solid var(--slate-100); gap: 14px; align-items: stretch;
  }
  .navbar .menu-toggle { display: block; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .ds-wrap { padding: 110px 16px 64px; }
  .ds-hero h1 { font-size: 32px; }
  .ds-hero > p { font-size: 15px; }
  .ds-detail-title { font-size: 24px; }
  .ds-h2 { font-size: 20px; }
  .footer-inner { grid-template-columns: 1fr; }
}
