/* ==========================================================================
   PORTAL DE DISCIPLINAS E MATERIAIS ACADEMICOS
   Prof. Dr. Santos Henrique Brant Dias | santoshbdias.com.br
   Padrao Visual Nobre e Eficiente: Suporte Completo a Dark/Light Mode e Mobile
   ========================================================================== */

/* 1. VARIAVEIS E TEMAS (PADRAO: TEMA ESCURO) */
:root,
[data-theme="dark"] {
  --primary: #8dc63f;
  --primary-dark: #6fa62f;
  --primary-light: #a3e635;
  --text: #f8fafc;
  --text-light: #94a3b8;
  --text-dim: #64748b;
  --bg: #090e17;
  --card-bg: #111a28;
  --white: #111a28; /* Compatibilidade com classes de card */
  --border: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.16);
  --shadow: 0 12px 36px rgba(0, 0, 0, 0.45);
  --radius: 18px;
  --transition: 0.28s cubic-bezier(0.4, 0, 0.2, 1);
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --topbar-bg: rgba(9, 14, 23, 0.9);
  --input-bg: #131d2e;
  --input-border: rgba(255, 255, 255, 0.12);
  --badge-bg: rgba(141, 198, 63, 0.16);
  --badge-text: #a3e635;
  --modal-bg: #111a28;
  --modal-overlay: rgba(0, 0, 0, 0.78);
  --chip-bg: #131d2e;
  --chip-text: #cbd5e1;
  --chip-border: rgba(255, 255, 255, 0.1);
}

[data-theme="light"] {
  --primary: #8dc63f;
  --primary-dark: #6fa62f;
  --primary-light: #8dc63f;
  --text: #1e293b;
  --text-light: #475569;
  --text-dim: #94a3b8;
  --bg: #f8fafc;
  --card-bg: #ffffff;
  --white: #ffffff;
  --border: rgba(0, 0, 0, 0.08);
  --border-strong: rgba(0, 0, 0, 0.16);
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
  --topbar-bg: rgba(255, 255, 255, 0.9);
  --input-bg: #ffffff;
  --input-border: rgba(0, 0, 0, 0.12);
  --badge-bg: rgba(141, 198, 63, 0.12);
  --badge-text: #6fa62f;
  --modal-bg: #ffffff;
  --modal-overlay: rgba(0, 0, 0, 0.55);
  --chip-bg: #ffffff;
  --chip-text: #475569;
  --chip-border: rgba(0, 0, 0, 0.08);
}

*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-sans);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  transition: background-color 0.25s ease, color 0.25s ease;
}

main, .container {
  width: min(1360px, 92%);
  margin: 0 auto;
  flex: 1;
}

/* 2. TOPBAR DE NAVEGACAO */
.topbar {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.9rem 4vw;
  background: var(--topbar-bg);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 1000;
  transition: var(--transition);
}

.brand-group {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: inherit;
}

.logo-badge {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: var(--badge-bg);
  color: var(--badge-text);
  font-weight: 800;
  font-size: 1.05rem;
  letter-spacing: 0.5px;
  border: 1px solid var(--primary);
  flex-shrink: 0;
}

.brand-text {
  display: flex;
  flex-direction: column;
}

.brand-name {
  font-size: 1rem;
  font-weight: 800;
  color: var(--text);
  line-height: 1.2;
}

.brand-sub {
  font-size: 0.78rem;
  color: var(--text-light);
  line-height: 1.2;
}

.topbar-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.topbar-nav {
  display: flex;
  align-items: center;
  gap: 8px;
}

.btn-topbar {
  text-decoration: none;
  color: var(--text);
  border: 1px solid var(--border-strong);
  padding: 0.55rem 1rem;
  border-radius: 10px;
  font-size: 0.85rem;
  font-weight: 600;
  background: var(--card-bg);
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
}

.btn-topbar:hover, .btn-topbar.active {
  background: var(--primary);
  color: #ffffff !important;
  border-color: var(--primary);
  transform: translateY(-2px);
}

[data-theme="dark"] .btn-topbar.active,
[data-theme="dark"] .btn-topbar:hover {
  color: #090e17 !important;
  font-weight: 700;
}

/* BOTAO THEME TOGGLE */
.theme-toggle-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--card-bg);
  border: 1px solid var(--border-strong);
  color: var(--text);
  cursor: pointer;
  transition: var(--transition);
  font-size: 1.1rem;
  padding: 0;
  line-height: 1;
  flex-shrink: 0;
}

.theme-toggle-btn:hover {
  border-color: var(--primary);
  transform: translateY(-2px);
}

/* BOTAO HAMBURGUER MOBILE */
.menu-toggle-btn {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--card-bg);
  border: 1px solid var(--border-strong);
  cursor: pointer;
  padding: 0;
  gap: 5px;
  transition: var(--transition);
  flex-shrink: 0;
}

.menu-toggle-btn span {
  display: block;
  width: 20px;
  height: 2px;
  background-color: var(--text);
  border-radius: 2px;
  transition: var(--transition);
}

/* 3. HERO SECTION */
.hero {
  padding: clamp(3rem, 6vw, 5.5rem) 0 clamp(2rem, 4vw, 3.5rem);
  text-align: center;
}

.badge {
  display: inline-block;
  padding: 0.45rem 1.15rem;
  border-radius: 999px;
  background: var(--badge-bg);
  color: var(--badge-text);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 1px;
  margin-bottom: 1.25rem;
  border: 1px solid rgba(141, 198, 63, 0.3);
}

.hero h1 {
  font-size: clamp(2.2rem, 5.5vw, 4.2rem);
  line-height: 1.1;
  font-weight: 900;
  margin-bottom: 1rem;
  color: var(--text);
}

.hero h1 span {
  color: var(--primary);
}

.hero p {
  width: min(760px, 92%);
  margin: auto;
  color: var(--text-light);
  font-size: clamp(0.98rem, 1.8vw, 1.12rem);
  line-height: 1.65;
}

/* 4. CAMPO DE PESQUISA & QUICK NAV */
.search-box {
  width: min(680px, 100%);
  margin: 2.2rem auto 1.5rem;
  position: relative;
}

.search-box input {
  width: 100%;
  padding: 1rem 1.5rem;
  border-radius: 14px;
  border: 1px solid var(--input-border);
  background: var(--input-bg);
  color: var(--text);
  font-size: 1rem;
  font-family: inherit;
  outline: none;
  box-shadow: var(--shadow);
  transition: var(--transition);
}

.search-box input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(141, 198, 63, 0.25);
}

.quick-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin: 1.8rem 0 3rem;
}

.quick-nav a {
  text-decoration: none;
  background: var(--chip-bg);
  color: var(--chip-text);
  border: 1px solid var(--chip-border);
  padding: 0.55rem 1.15rem;
  border-radius: 999px;
  font-size: 0.88rem;
  font-weight: 600;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.04);
  transition: var(--transition);
}

.quick-nav a:hover, .quick-nav a.active {
  background: var(--primary);
  color: #090e17 !important;
  font-weight: 700;
  border-color: var(--primary);
  transform: translateY(-2px);
}

[data-theme="light"] .quick-nav a:hover,
[data-theme="light"] .quick-nav a.active {
  color: #ffffff !important;
}

/* 5. GRID DE CARDS PRINCIPAL */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
  gap: 1.8rem;
  padding-bottom: 5rem;
}

.card-link {
  text-decoration: none;
  color: inherit;
  display: block;
}

.card {
  display: flex;
  flex-direction: column;
  text-align: center;
  background: var(--card-bg);
  border-radius: var(--radius);
  padding: 2.2rem 1.8rem;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  transition: var(--transition);
  height: 100%;
  position: relative;
}

.card:hover {
  transform: translateY(-6px);
  border-color: rgba(141, 198, 63, 0.4);
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.12);
}

[data-theme="dark"] .card:hover {
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.6);
}

.icon {
  width: 64px;
  height: 64px;
  border-radius: 18px;
  display: grid;
  place-items: center;
  background: var(--badge-bg);
  font-size: 1.7rem;
  margin: 0 auto 1.25rem;
}

.card h2 {
  font-size: 1.35rem;
  line-height: 1.3;
  margin-bottom: 0.75rem;
  color: var(--text);
  font-weight: 800;
}

.card p {
  color: var(--text-light);
  margin-bottom: 1.8rem;
  font-size: 0.95rem;
  line-height: 1.55;
  flex-grow: 1;
}

.btn-material {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--primary);
  color: #090e17 !important;
  text-decoration: none;
  padding: 12px 22px;
  border-radius: 12px;
  font-weight: 700;
  font-size: 0.95rem;
  transition: var(--transition);
  margin-top: auto;
  box-shadow: 0 4px 14px rgba(141, 198, 63, 0.25);
}

[data-theme="light"] .btn-material {
  color: #ffffff !important;
}

.btn-material:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
}

/* 6. SECOES DAS SUBPAGINAS */
.section {
  margin-bottom: 4rem;
}

.section-title {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 1.6rem;
  font-weight: 800;
  margin-bottom: 1.8rem;
  color: var(--text);
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--border);
}

.section-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--badge-bg);
  display: grid;
  place-items: center;
  font-size: 1.3rem;
  flex-shrink: 0;
}

.resource-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
  gap: 1.5rem;
}

.resource-card {
  background: var(--card-bg);
  border-radius: 16px;
  padding: 1.75rem;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  transition: var(--transition);
  text-decoration: none;
  color: inherit;
}

.resource-card:hover {
  transform: translateY(-4px);
  border-color: rgba(141, 198, 63, 0.4);
}

.resource-card h3 {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 0.65rem;
  color: var(--text);
}

.resource-card p {
  color: var(--text-light);
  font-size: 0.92rem;
  line-height: 1.55;
  margin-bottom: 1.4rem;
  flex-grow: 1;
}

.resource-tag {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 6px;
  background: var(--badge-bg);
  color: var(--badge-text);
  margin-bottom: 0.85rem;
  width: fit-content;
}

.btn-card {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  background: var(--card-bg);
  border: 1px solid var(--border-strong);
  color: var(--text);
  padding: 10px 18px;
  border-radius: 10px;
  font-size: 0.88rem;
  font-weight: 600;
  transition: var(--transition);
  text-decoration: none;
  margin-top: auto;
}

.btn-card:hover {
  background: var(--primary);
  border-color: var(--primary);
  color: #090e17 !important;
}

[data-theme="light"] .btn-card:hover {
  color: #ffffff !important;
}

/* 7. CARDS DE VIDEO */
.video-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 1.8rem;
}

.video-card {
  background: var(--card-bg);
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  transition: var(--transition);
  text-decoration: none;
  color: inherit;
}

.video-card:hover {
  transform: translateY(-5px);
  border-color: rgba(141, 198, 63, 0.4);
}

.video-thumb-container {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #000000;
}

.video-thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.video-card:hover .video-thumb {
  transform: scale(1.05);
}

.play-icon {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 54px;
  height: 54px;
  background: rgba(14, 23, 38, 0.85);
  backdrop-filter: blur(4px);
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: var(--primary);
  font-size: 1.4rem;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.4);
  transition: var(--transition);
}

.video-card:hover .play-icon {
  background: var(--primary);
  color: #090e17;
  transform: translate(-50%, -50%) scale(1.1);
}

.video-body {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.video-body h3 {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 0.65rem;
  color: var(--text);
}

.video-body p {
  color: var(--text-light);
  font-size: 0.92rem;
  line-height: 1.55;
  margin-bottom: 1.25rem;
  flex-grow: 1;
}

.video-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--primary);
  color: #090e17 !important;
  font-weight: 700;
  padding: 10px 18px;
  border-radius: 10px;
  font-size: 0.88rem;
  text-decoration: none;
  transition: var(--transition);
  margin-top: auto;
}

[data-theme="light"] .video-button {
  color: #ffffff !important;
}

.video-button:hover {
  background: var(--primary-dark);
}

/* 8. MODAL DE DOWNLOAD COM GATE */
.modal {
  display: none;
  position: fixed;
  inset: 0;
  background: var(--modal-overlay);
  backdrop-filter: blur(6px);
  z-index: 9999;
  place-items: center;
  padding: 1rem;
}

.modal.active {
  display: grid;
}

.modal-content {
  background: var(--modal-bg);
  border-radius: 20px;
  padding: 2.2rem;
  width: min(520px, 94vw);
  border: 1px solid var(--border-strong);
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.5);
  position: relative;
  text-align: center;
}

.close-modal {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 34px;
  height: 34px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--border);
  color: var(--text);
  font-size: 1.3rem;
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: var(--transition);
}

.close-modal:hover {
  background: var(--primary);
  color: #090e17;
}

.modal-content h3 {
  font-size: 1.35rem;
  margin-bottom: 0.75rem;
  color: var(--text);
}

.modal-content p {
  color: var(--text-light);
  font-size: 0.95rem;
  line-height: 1.5;
  margin-bottom: 1.5rem;
}

.modal-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.btn-modal-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 20px;
  border-radius: 12px;
  font-weight: 700;
  font-size: 0.95rem;
  text-decoration: none;
  cursor: pointer;
  border: none;
  transition: var(--transition);
}

.btn-modal-primary {
  background: #ff0000;
  color: #ffffff !important;
}

.btn-modal-primary:hover {
  background: #cc0000;
  transform: translateY(-2px);
}

.btn-modal-download {
  background: var(--primary);
  color: #090e17 !important;
  box-shadow: 0 4px 14px rgba(141, 198, 63, 0.3);
}

[data-theme="light"] .btn-modal-download {
  color: #ffffff !important;
}

.btn-modal-download:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
}

.countdown-box {
  font-size: 0.92rem;
  color: var(--text-light);
  font-weight: 600;
  margin: 0.5rem 0;
}

/* 9. GAVETA LATERAL DO MENU MOBILE (DRAWER) */
body.drawer-locked {
  overflow: hidden !important;
}

.mobile-drawer-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(4px);
  z-index: 9998;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.mobile-drawer-backdrop.is-open {
  opacity: 1;
  pointer-events: auto;
}

.mobile-drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(320px, 86vw);
  background: var(--modal-bg);
  border-left: 1px solid var(--border-strong);
  z-index: 9999;
  transform: translateX(100%);
  transition: transform 0.32s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
  box-shadow: -10px 0 35px rgba(0, 0, 0, 0.5);
  overflow-y: auto;
}

.mobile-drawer.is-open {
  transform: translateX(0);
}

.drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 1.25rem 1rem;
  border-bottom: 1px solid var(--border);
}

.drawer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.drawer-brand-text .drawer-name {
  display: block;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text);
}

.drawer-brand-text .drawer-sub {
  display: block;
  font-size: 0.72rem;
  color: var(--text-light);
}

.drawer-close-btn {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--border);
  color: var(--text);
  font-size: 1.4rem;
  line-height: 1;
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: var(--transition);
}

[data-theme="light"] .drawer-close-btn {
  background: #f1f5f9;
}

.drawer-theme-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.9rem 1.25rem;
  background: rgba(255, 255, 255, 0.03);
  border-bottom: 1px solid var(--border);
}

[data-theme="light"] .drawer-theme-box {
  background: #f8fafc;
}

.drawer-theme-label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-light);
}

.drawer-theme-toggle {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 6px 14px;
  border-radius: 999px;
  background: var(--card-bg);
  border: 1px solid var(--border-strong);
  color: var(--text);
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
}

.theme-switch-pill {
  width: 32px;
  height: 18px;
  border-radius: 999px;
  background: var(--primary-dark);
  display: inline-flex;
  align-items: center;
  padding: 2px;
  transition: var(--transition);
}

.theme-switch-knob {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #ffffff;
  transition: transform 0.25s ease;
  transform: translateX(14px);
}

.drawer-theme-toggle.is-light .theme-switch-pill {
  background: #fbbf24;
}

.drawer-theme-toggle.is-light .theme-switch-knob {
  transform: translateX(0);
}

.drawer-nav {
  padding: 1rem 0.75rem;
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex: 1;
}

.drawer-nav a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0.85rem 1rem;
  border-radius: 12px;
  color: var(--text);
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 600;
  transition: var(--transition);
  min-height: 48px;
}

.drawer-nav a:hover,
.drawer-nav a.active {
  background: var(--badge-bg);
  color: var(--primary-light);
}

[data-theme="light"] .drawer-nav a:hover,
[data-theme="light"] .drawer-nav a.active {
  color: var(--primary-dark);
}

.drawer-footer {
  padding: 1.25rem;
  border-top: 1px solid var(--border);
}

.btn-drawer-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 0.85rem 1rem;
  border-radius: 12px;
  background: var(--primary);
  color: #090e17 !important;
  text-decoration: none;
  font-weight: 700;
  font-size: 0.95rem;
  box-shadow: 0 4px 14px rgba(141, 198, 63, 0.3);
  min-height: 48px;
}

[data-theme="light"] .btn-drawer-cta {
  color: #ffffff !important;
}

/* 10. BACK TO TOP & FOOTER */
.back-top {
  position: fixed;
  bottom: 25px;
  right: 25px;
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background: var(--primary);
  color: #090e17 !important;
  display: grid;
  place-items: center;
  text-decoration: none;
  font-size: 1.25rem;
  font-weight: 800;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
  z-index: 900;
}

[data-theme="light"] .back-top {
  color: #ffffff !important;
}

.back-top:hover {
  background: var(--primary-dark);
  transform: translateY(-3px);
}

footer {
  background: var(--card-bg);
  border-top: 1px solid var(--border);
  padding: 2.8rem 1rem;
  text-align: center;
  margin-top: auto;
  transition: var(--transition);
}

footer p {
  color: var(--text-light);
  font-size: 0.92rem;
  margin-bottom: 0.6rem;
}

footer a {
  text-decoration: none;
  color: var(--primary);
  font-weight: 700;
}

/* 11. RESPONSIVIDADE MOBILE (SMARTPHONES) */
@media (max-width: 768px) {
  .topbar {
    padding: 0.75rem 12px;
  }
  .brand-group {
    gap: 8px;
  }
  .logo-badge {
    width: 36px;
    height: 36px;
    font-size: 0.88rem;
    border-radius: 10px;
  }
  .brand-name {
    font-size: 0.86rem;
  }
  .brand-sub {
    display: none;
  }
  .topbar-nav {
    display: none; /* Substituido pelo menu hambúrguer no mobile */
  }
  .menu-toggle-btn {
    display: inline-flex;
  }
  .hero {
    padding: 36px 0 24px;
  }
  .hero h1 {
    font-size: clamp(1.8rem, 7vw, 2.4rem);
  }
  .cards-grid, .resource-grid, .video-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .card, .resource-card {
    padding: 20px 16px;
  }
  .section-title {
    font-size: 1.35rem;
  }
  .section-icon {
    width: 40px;
    height: 40px;
    font-size: 1.15rem;
  }
  .quick-nav {
    gap: 8px;
    margin: 1.8rem 0 2.2rem;
  }
  .quick-nav a {
    padding: 8px 14px;
    font-size: 0.82rem;
  }
}
