@import url("https://fonts.googleapis.com/css2?family=Be+Vietnam+Pro:wght@400;500;600;700;800&family=JetBrains+Mono:wght@500&display=swap");

:root {
  --accent: #f0a500;
  --accent-d: #c87f00;
  --navy: #0a1628;
  --navy2: #112240;
  --text: #1a202c;
  --muted: #64748b;
  --border: #e2e8f0;
  --bg: #f8fafc;
  --white: #ffffff;
  --green: #16a34a;
  --red: #dc2626;
  --purple: #7c3aed;
  --font: "Be Vietnam Pro", sans-serif;
  --mono: "JetBrains Mono", monospace;
  --radius: 12px;
  --shadow: 0 1px 3px rgba(0, 0, 0, 0.08), 0 4px 16px rgba(0, 0, 0, 0.06);
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  font-size: 16px;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}
a {
  color: inherit;
  text-decoration: none;
}

/* ════════ HEADER ════════ */
.site-header {
  background: var(--navy);
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 2px solid var(--accent);
}

.header-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.site-logo {
  font-size: 20px;
  font-weight: 800;
  color: var(--white);
  letter-spacing: -0.5px;
  flex-shrink: 0;
}
.site-logo span {
  color: var(--accent);
}

/* Desktop nav */
.site-nav ul,
.site-nav > div > ul {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.site-nav li {
  position: relative;
}
.site-nav a {
  display: block;
  color: rgba(255, 255, 255, 0.75);
  font-size: 14px;
  font-weight: 500;
  padding: 6px 12px;
  border-radius: 7px;
  transition: all 0.15s;
  white-space: nowrap;
}
.site-nav li.menu-item-has-children > a::after {
  content: " ▼";
  font-size: 10px;
  opacity: 0.7;
}
.site-nav a:hover,
.site-nav li.current-menu-item > a,
.site-nav a.current {
  color: var(--white);
  background: rgba(255, 255, 255, 0.1);
}
.site-nav li.current-menu-item > a,
.site-nav a.current {
  color: var(--accent);
}

/* Sub-menu Header */
.site-nav ul.sub-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: var(--navy2);
  min-width: 200px;
  flex-direction: column;
  padding: 10px 0;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  z-index: 99;
}
.site-nav li:hover > ul.sub-menu {
  display: flex;
}
.site-nav ul.sub-menu li {
  width: 100%;
}
.site-nav ul.sub-menu a {
  padding: 10px 20px;
  border-radius: 0;
  color: rgba(255, 255, 255, 0.8);
  background: transparent;
}
.site-nav ul.sub-menu a:hover {
  background: rgba(255, 255, 255, 0.05);
  color: var(--white);
}

/* Mobile menu */
.menu-toggle {
  display: none;
  background: none;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 7px;
  padding: 6px 10px;
  color: var(--white);
  cursor: pointer;
}
.mobile-nav {
  display: none;
  background: var(--navy2);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 12px 20px 16px;
}
.mobile-nav ul,
.mobile-nav > div > ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
}
.mobile-nav li {
  position: relative;
}
.mobile-nav a {
  display: block;
  color: rgba(255, 255, 255, 0.8);
  font-size: 15px;
  font-weight: 500;
  padding: 10px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}
.mobile-nav li.menu-item-has-children > a::after {
  content: " ▼";
  float: right;
  opacity: 0.7;
}
.mobile-nav li:last-child > a,
.mobile-nav a:last-child {
  border-bottom: none;
}
.mobile-nav.open {
  display: block;
}

/* Sub-menu Mobile */
.mobile-nav ul.sub-menu {
  display: flex;
  flex-direction: column;
  padding-left: 15px;
  border-top: none;
}
.mobile-nav ul.sub-menu a {
  font-size: 14px;
  border-bottom: 1px dashed rgba(255, 255, 255, 0.05);
}

@media (max-width: 768px) {
  .site-nav {
    display: none;
  }
  .menu-toggle {
    display: block;
  }
}

/* ════════ LAYOUT ════════ */
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
}

.page-wrap {
  min-height: calc(100vh - 64px - 120px);
  padding: 48px 0 64px;
}

/* ════════ HOMEPAGE — HERO ════════ */
.hero {
  background: var(--navy);
  color: var(--white);
  padding: 64px 20px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(
    ellipse 80% 60% at 50% 0%,
    rgba(240, 165, 0, 0.12),
    transparent
  );
  pointer-events: none;
}
.hero.has-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(10, 22, 40, 0.85);
  z-index: 1;
  pointer-events: none;
}
.hero.has-bg::before {
  z-index: 2;
}
.hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}
.hero .container {
  position: relative;
  z-index: 3;
}
.hero-title {
  font-size: clamp(28px, 5vw, 48px);
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 16px;
  position: relative;
}
.hero-title em {
  color: var(--accent);
  font-style: normal;
}
.hero-sub {
  color: rgba(255, 255, 255, 0.65);
  font-size: 17px;
  margin-bottom: 36px;
  position: relative;
}
.hero-badges {
  display: flex;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
  position: relative;
}
.hero-badge {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 20px;
  padding: 6px 16px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.8);
}
.hero-badge strong {
  color: var(--accent);
}

/* ════════ CATEGORY GRID ════════ */
.section-title {
  font-size: 22px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 8px;
}
.section-sub {
  font-size: 14px;
  color: var(--muted);
  margin-bottom: 28px;
}

.hang-section {
  padding: 56px 0 24px;
}
.hang-section-label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--muted);
  margin-bottom: 16px;
  padding-left: 2px;
}

.hang-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 16px;
  margin-bottom: 40px;
}

.hang-card {
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  cursor: pointer;
  transition:
    transform 0.18s,
    border-color 0.18s,
    box-shadow 0.18s;
  position: relative;
  overflow: hidden;
  display: block;
}
.hang-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.2s;
}
.hang-card.motorbike::before {
  background: var(--purple);
}
.hang-card.car::before {
  background: var(--accent);
}
.hang-card.truck::before {
  background: var(--red);
}

.hang-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}
.hang-card.motorbike:hover {
  border-color: var(--purple);
}
.hang-card.car:hover {
  border-color: var(--accent);
}
.hang-card.truck:hover {
  border-color: var(--red);
}
.hang-card:hover::before {
  transform: scaleX(1);
}

.hang-badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 3px 10px;
  border-radius: 20px;
  margin-bottom: 10px;
}
.hang-badge.motorbike {
  background: rgba(124, 58, 237, 0.1);
  color: var(--purple);
}
.hang-badge.car {
  background: rgba(240, 165, 0, 0.12);
  color: var(--accent-d);
}
.hang-badge.truck {
  background: rgba(220, 38, 38, 0.1);
  color: var(--red);
}

.hang-card h3 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 6px;
}
.hang-card p {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.5;
  margin-bottom: 14px;
}

.hang-meta {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.meta-pill {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 3px 9px;
  font-size: 12px;
  color: var(--muted);
}
.meta-pill strong {
  color: var(--text);
}

.hang-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid var(--border);
  font-size: 13px;
  font-weight: 600;
}
.hang-card.motorbike .hang-cta {
  color: var(--purple);
}
.hang-card.car .hang-cta {
  color: var(--accent-d);
}
.hang-card.truck .hang-cta {
  color: var(--red);
}

/* ════════ INFO STRIP ════════ */
.info-strip {
  background: var(--navy);
  color: var(--white);
  padding: 48px 20px;
  margin-top: 16px;
}
.info-strip-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 32px;
}
.info-item h4 {
  font-size: 14px;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.info-item p {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.65);
  line-height: 1.6;
}

/* ════════ ARCHIVE PAGE ════════ */
.archive-header {
  background: var(--navy);
  color: var(--white);
  padding: 48px 20px 40px;
  position: relative;
  overflow: hidden;
}
.archive-header.has-bg::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 1;
}
.archive-header-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}
.archive-header-inner {
  max-width: 1100px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}
.archive-banner-content {
  margin-top: 16px;
  font-size: 16px;
  line-height: 1.6;
  color: var(--white);
  opacity: 0.9;
  max-width: 800px;
}
.archive-banner-content p {
  margin-bottom: 12px;
}
.archive-banner-content p:last-child {
  margin-bottom: 0;
}
.heading.editor-content {
  margin: 32px 0 24px;
  padding: 24px;
  background: var(--white);
  border-radius: 8px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.04);
}
@media (max-width: 768px) {
  .archive-header {
    padding: 32px 16px 24px;
  }
  .archive-banner-content {
    font-size: 14px;
    margin-top: 12px;
  }
  .heading.editor-content {
    margin: 24px 0 16px;
    padding: 16px;
  }
}
.archive-breadcrumb {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.5);
  margin-bottom: 12px;
}
.archive-breadcrumb a {
  color: rgba(255, 255, 255, 0.5);
}
.archive-breadcrumb a:hover {
  color: var(--accent);
}
.archive-breadcrumb span {
  margin: 0 6px;
}
.archive-title {
  font-size: 32px;
  font-weight: 800;
  margin-bottom: 8px;
}
.archive-title em {
  color: var(--accent);
  font-style: normal;
}
.archive-meta {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.55);
}

.de-thi-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
  padding: 40px 0;
}

.de-card {
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  padding: 22px 22px 18px;
  display: flex;
  flex-direction: column;
  transition:
    transform 0.15s,
    box-shadow 0.15s,
    border-color 0.15s;
}
.de-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
  border-color: var(--accent);
}

.de-number {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--muted);
  margin-bottom: 8px;
}
.de-title {
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 10px;
  color: var(--text);
  line-height: 1.3;
}
.de-info {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}
.de-chip {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 5px;
  padding: 3px 8px;
  font-size: 12px;
  color: var(--muted);
}
.de-chip strong {
  color: var(--text);
}
.de-chip.red {
  background: rgba(220, 38, 38, 0.07);
  border-color: rgba(220, 38, 38, 0.2);
  color: var(--red);
}

.de-btn {
  margin-top: auto;
  background: var(--accent);
  color: #000;
  font-weight: 700;
  font-size: 14px;
  font-family: var(--font);
  border: none;
  border-radius: 8px;
  padding: 10px 20px;
  cursor: pointer;
  text-align: center;
  display: block;
  transition: opacity 0.15s;
}
.de-btn:hover {
  opacity: 0.88;
}

.no-posts {
  text-align: center;
  padding: 60px 20px;
  color: var(--muted);
}
.no-posts h3 {
  font-size: 20px;
  margin-bottom: 8px;
  color: var(--text);
}

/* ════════ SINGLE POST — ĐỀ THI ════════ */
.single-header {
  background: var(--navy);
  color: var(--white);
  padding: 36px 20px 32px;
}
.single-header-inner {
  max-width: 960px;
  margin: 0 auto;
}
.single-breadcrumb {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.5);
  margin-bottom: 10px;
}
.single-breadcrumb a {
  color: rgba(255, 255, 255, 0.5);
}
.single-breadcrumb a:hover {
  color: var(--accent);
}
.single-breadcrumb span {
  margin: 0 6px;
}
.single-title {
  font-size: clamp(22px, 4vw, 32px);
  font-weight: 800;
  margin-bottom: 8px;
}
.single-cats {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.single-cat-badge {
  font-size: 12px;
  font-weight: 700;
  background: rgba(240, 165, 0, 0.2);
  color: var(--accent);
  padding: 3px 10px;
  border-radius: 20px;
}

.single-content {
  max-width: 960px;
  margin: 0 auto;
  padding: 40px 20px 64px;
}

/* Bài viết text thông thường */
.entry-content p {
  margin-bottom: 16px;
  font-size: 16px;
  line-height: 1.8;
}
.entry-content h2 {
  font-size: 22px;
  font-weight: 700;
  margin: 32px 0 12px;
}
.entry-content h3 {
  font-size: 18px;
  font-weight: 700;
  margin: 24px 0 10px;
}
.entry-content ul,
.entry-content ol {
  margin: 0 0 16px 24px;
}
.entry-content li {
  margin-bottom: 6px;
  line-height: 1.7;
}
.entry-content table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 20px;
}
.entry-content th {
  background: var(--navy);
  color: var(--white);
  padding: 10px 14px;
  text-align: left;
  font-size: 14px;
}
.entry-content td {
  padding: 10px 14px;
  border-bottom: 1px solid var(--border);
  font-size: 14px;
}
.entry-content tr:hover td {
  background: var(--bg);
}
.entry-content strong {
  font-weight: 600;
}
.entry-content #quiz-app {
  margin-bottom: 2rem;
}

/* Related posts */
.related-posts {
  margin-top: 48px;
  padding-top: 32px;
  border-top: 1px solid var(--border);
}
.related-title {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 16px;
  color: var(--text);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.related-title .view-more {
  font-size: 14px;
  font-weight: 500;
  color: var(--accent);
  text-decoration: none;
}
.related-title .view-more:hover {
  text-decoration: underline;
}
.related-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 12px;
}
.related-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 14px 16px;
  display: block;
  transition: border-color 0.15s;
}
.related-card:hover {
  border-color: var(--accent);
}
.related-card-title {
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 4px;
}
.related-card-meta {
  font-size: 12px;
  color: var(--muted);
}

/* ════════ STATIC PAGE ════════ */
.page-header {
  background: var(--navy);
  color: var(--white);
  padding: 48px 20px 40px;
  text-align: center;
}
.page-header h1 {
  font-size: clamp(24px, 4vw, 36px);
  font-weight: 800;
}
.page-body {
  max-width: 760px;
  margin: 0 auto;
  padding: 48px 20px 64px;
}

/* ════════ FOOTER ════════ */
.site-footer {
  background: var(--navy);
  color: rgba(255, 255, 255, 0.55);
  padding: 40px 20px;
}
.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}
.footer-logo {
  font-size: 16px;
  font-weight: 700;
  color: var(--white);
}
.footer-logo span {
  color: var(--accent);
}
.footer-links ul {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  list-style: none;
  margin: 0;
  padding: 0;
}
.footer-links a {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.5);
  transition: color 0.15s;
  display: block;
}
.footer-links a:hover {
  color: var(--accent);
}
.footer-copy {
  font-size: 12px;
  width: 100%;
  text-align: center;
  margin-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 16px;
}

/* ════════ UTILITIES ════════ */
.btn {
  display: inline-block;
  padding: 12px 28px;
  border-radius: 8px;
  font-family: var(--font);
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  border: none;
  transition: opacity 0.15s;
}
.btn-primary {
  background: var(--accent);
  color: #000;
}
.btn-primary:hover {
  opacity: 0.88;
}
.btn-outline {
  background: transparent;
  border: 2px solid var(--accent);
  color: var(--accent);
}
.btn-outline:hover {
  background: var(--accent);
  color: #000;
}

/* ════════ RESPONSIVE ════════ */
@media (max-width: 640px) {
  .hero {
    padding: 48px 20px;
  }
  .hang-section {
    padding: 40px 0 16px;
  }
  .info-strip {
    padding: 36px 20px;
  }
  .single-content,
  .page-body {
    padding: 28px 16px 48px;
  }
  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }
}

/* ════════ EDITOR CONTENT ════════ */
.editor-content {
  color: var(--text);
  line-height: 1.8;
  font-size: 16px;
}
.editor-content > *:first-child {
  margin-top: 0;
}
.editor-content > *:last-child {
  margin-bottom: 0;
}
.editor-content h1,
.editor-content h2,
.editor-content h3,
.editor-content h4,
.editor-content h5,
.editor-content h6 {
  color: var(--navy);
  margin-top: 1.5em;
  margin-bottom: 0.75em;
  font-weight: 700;
  line-height: 1.4;
}
.editor-content h2 {
  font-size: 24px;
  border-bottom: 1px solid var(--border);
  padding-bottom: 8px;
}
.editor-content h3 {
  font-size: 20px;
}
.editor-content h4 {
  font-size: 18px;
}
.editor-content p {
  margin-bottom: 1.2em;
}
.editor-content ul,
.editor-content ol {
  margin: 0 0 1.2em 2em;
  padding: 0;
}
.editor-content li {
  margin-bottom: 0.5em;
}
.editor-content img,
.editor-content iframe,
.editor-content video {
  border-radius: 8px;
  margin: 1.5em auto;
  display: block;
  max-width: 100%;
  height: auto;
  box-shadow: var(--shadow);
}
.editor-content blockquote {
  border-left: 4px solid var(--accent);
  background: var(--white);
  padding: 16px 20px;
  margin: 1.5em 0;
  font-style: italic;
  border-radius: 0 8px 8px 0;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}
.editor-content blockquote p:last-child {
  margin-bottom: 0;
}
.editor-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5em 0;
  background: var(--white);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}
.editor-content th,
.editor-content td {
  border: 1px solid var(--border);
  padding: 12px 16px;
  text-align: left;
}
.editor-content th {
  background: var(--navy);
  color: var(--white);
  font-weight: 600;
}
.editor-content tr:nth-child(even) {
  background: var(--bg);
}
.editor-content a {
  color: var(--accent-d);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.editor-content a:hover {
  color: var(--accent);
}

/* ════════ CONTENT TOGGLE ════════ */
.content-toggle-wrap {
  position: relative;
  overflow: hidden;
  margin-bottom: 30px;
}
.content-toggle-wrap:not(.is-expanded) {
  max-height: 400px;
}
.content-toggle-wrap:not(.is-expanded)::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 120px;
  background: linear-gradient(
    to bottom,
    rgba(248, 250, 252, 0),
    rgba(248, 250, 252, 1)
  );
  pointer-events: none;
}
.content-toggle-btn-wrapper {
  text-align: center;
  margin-top: -16px;
  position: relative;
  z-index: 10;
  padding-bottom: 24px;
}
.content-toggle-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--white);
  color: var(--navy);
  border: 1px solid var(--border);
  padding: 8px 24px;
  border-radius: 20px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}
.content-toggle-btn:hover {
  border-color: var(--accent);
  color: var(--accent-d);
  transform: translateY(-2px);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.08);
}
.content-toggle-btn svg {
  width: 12px;
  height: 12px;
  fill: currentColor;
  transition: transform 0.2s;
}
.content-toggle-wrap.is-expanded
  + .content-toggle-btn-wrapper
  .content-toggle-btn
  svg {
  transform: rotate(180deg);
}

/* ════════ CATEGORY SECTION SLIDER ════════ */
.category-section {
  padding: 40px 0;
  border-bottom: 1px solid var(--border);
}
.category-section:last-child {
  border-bottom: none;
}
.category-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
}
.category-title {
  font-size: 22px;
  font-weight: 700;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 8px;
}
.category-cta {
  font-size: 14px;
  font-weight: 600;
  color: var(--accent-d);
  transition: color 0.15s;
  white-space: nowrap;
}
.category-cta:hover {
  color: var(--accent);
}
.category-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  padding-bottom: 16px;
}
.category-grid .de-card {
  width: calc(33.333% - 10.66px);
  flex-shrink: 0;
}

@media (max-width: 768px) {
  .category-grid .de-card {
    width: calc(50% - 8px);
  }
}
@media (max-width: 480px) {
  .category-grid .de-card {
    width: 100%;
  }
}
.no-exams {
  color: var(--muted);
  font-size: 14px;
  font-style: italic;
}
@media (max-width: 640px) {
  .category-title {
    font-size: 18px;
    flex-wrap: wrap;
  }
  .category-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }
}
