/*
Theme Name: Sharp
Theme URI: https://sharp-app.com
Description: A modern, responsive theme for the Sharp Android app - featuring books, quizzes, flashcards, coding examples (Java & Python), and NCLEX nursing content.
Author: Tachara LLC
Author URI: https://tachara.online
Version: 1.0.4
Tested up to: 6.4
Requires PHP: 7.4
License: GPL v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: sharp-theme
Domain Path: /languages

This theme, like WordPress, is licensed under the GPL.
Use it to make something cool, have fun, and share what you've learned with others.
*/

/* ==============================================
   GLOBAL STYLES
   ============================================== */

:root {
  --primary-color: #0866c2;
  --primary-dark: #063f7f;
  --secondary-color: #f59e0b;
  --accent-color: #12b981;
  --dark-bg: #101827;
  --light-bg: #f6f8fb;
  --surface: #ffffff;
  --surface-soft: #eef4fb;
  --text-dark: #121827;
  --text-muted: #64748b;
  --text-light: #ffffff;
  --border-radius: 8px;
  --border-color: #e2e8f0;
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.06);
  --shadow-md: 0 12px 28px rgba(15, 23, 42, 0.08);
  --shadow-lg: 0 24px 60px rgba(15, 23, 42, 0.16);
  --transition: all 0.2s ease;
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

html,
body {
  max-width: 100%;
  overflow-x: hidden;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  color: var(--text-dark);
  background-color: var(--light-bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ==============================================
   TYPOGRAPHY
   ============================================== */

h1, h2, h3, h4, h5, h6 {
  font-weight: 750;
  line-height: 1.2;
  margin-bottom: 1rem;
}

h1 {
  font-size: 3.25rem;
}

h2 {
  font-size: 2.25rem;
}

h3 {
  font-size: 1.5rem;
}

h4 {
  font-size: 1.5rem;
}

h5 {
  font-size: 1.25rem;
}

h6 {
  font-size: 1rem;
}

p {
  margin-bottom: 1rem;
}

img,
svg,
video,
iframe {
  max-width: 100%;
  height: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
}

pre {
  max-width: 100%;
  overflow-x: auto;
}

code {
  overflow-wrap: anywhere;
}

a {
  color: var(--primary-color);
  text-decoration: none;
  transition: var(--transition);
  overflow-wrap: anywhere;
}

a:hover {
  color: var(--primary-dark);
}

/* ==============================================
   HEADER & NAVIGATION
   ============================================== */

.site-header {
  background-color: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid rgba(226, 232, 240, 0.9);
  box-shadow: var(--shadow-sm);
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(14px);
}

.header-container {
  max-width: 1440px;
  margin: 0 auto;
  min-height: 76px;
  padding: 0.9rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 2rem;
}

.logo {
  flex: 0 1 auto;
  min-width: 230px;
  max-width: 100%;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--primary-color);
}

.site-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--text-dark);
  max-width: 100%;
  white-space: nowrap;
}

.site-brand:hover {
  color: var(--text-dark);
}

.site-brand-mark {
  display: inline-flex;
  width: 38px;
  height: 38px;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
  color: var(--text-light);
  font-weight: 800;
  box-shadow: 0 10px 24px rgba(8, 102, 194, 0.22);
}

.site-brand-text {
  font-size: 1.35rem;
  line-height: 1.1;
  overflow-wrap: normal;
}

.screen-reader-text {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.logo img {
  max-height: 50px;
}

.main-navigation {
  flex: 1 1 auto;
}

.navigation {
  display: flex;
  justify-content: center;
  gap: 0.35rem;
  list-style: none;
  flex-wrap: wrap;
  min-width: 0;
}

.navigation a {
  color: var(--text-dark);
  display: inline-flex;
  padding: 0.6rem 0.9rem;
  border-radius: 8px;
  font-size: 0.96rem;
  font-weight: 650;
  transition: var(--transition);
  white-space: nowrap;
}

.navigation a:hover {
  background-color: var(--surface-soft);
  color: var(--primary-color);
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  background-color: var(--surface);
  color: var(--text-dark);
  cursor: pointer;
}

.menu-toggle-bars,
.menu-toggle-bars::before,
.menu-toggle-bars::after {
  display: block;
  width: 18px;
  height: 2px;
  border-radius: 999px;
  background-color: currentColor;
  transition: var(--transition);
}

.menu-toggle-bars {
  position: relative;
}

.menu-toggle-bars::before,
.menu-toggle-bars::after {
  content: '';
  position: absolute;
  left: 0;
}

.menu-toggle-bars::before {
  top: -6px;
}

.menu-toggle-bars::after {
  top: 6px;
}

.menu-toggle[aria-expanded='true'] .menu-toggle-bars {
  background-color: transparent;
}

.menu-toggle[aria-expanded='true'] .menu-toggle-bars::before {
  top: 0;
  transform: rotate(45deg);
}

.menu-toggle[aria-expanded='true'] .menu-toggle-bars::after {
  top: 0;
  transform: rotate(-45deg);
}

.cta-button {
  background-color: var(--primary-color);
  color: var(--text-light);
  padding: 0.85rem 1.25rem;
  border-radius: var(--border-radius);
  font-weight: 700;
  box-shadow: 0 12px 26px rgba(8, 102, 194, 0.24);
  transition: var(--transition);
  white-space: nowrap;
}

.cta-button:hover {
  background-color: var(--primary-dark);
  color: var(--text-light);
  transform: translateY(-1px);
}

/* ==============================================
   HERO SECTION
   ============================================== */

.hero {
  background:
    radial-gradient(circle at 20% 20%, rgba(18, 185, 129, 0.24), transparent 28%),
    radial-gradient(circle at 80% 0%, rgba(245, 158, 11, 0.18), transparent 24%),
    linear-gradient(135deg, #082f5f 0%, #0b5cad 52%, #064d84 100%);
  color: var(--text-light);
  padding: 5rem 2rem 4.5rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero::after {
  content: '';
  position: absolute;
  inset: auto 8% -95px 8%;
  height: 160px;
  background: rgba(255, 255, 255, 0.14);
  filter: blur(48px);
  pointer-events: none;
}

.hero-content {
  max-width: 920px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.hero-kicker {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
  padding: 0.45rem 0.75rem;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 999px;
  background-color: rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.92);
  font-size: 0.85rem;
  font-weight: 750;
  text-transform: uppercase;
}

.hero h1 {
  color: var(--text-light);
  margin-bottom: 1.5rem;
  font-size: 4rem;
  line-height: 1.05;
}

.hero p {
  max-width: 760px;
  margin-left: auto;
  margin-right: auto;
  font-size: 1.18rem;
  margin-bottom: 2rem;
  color: rgba(255, 255, 255, 0.88);
}

.hero .buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.hero-tags {
  display: flex;
  justify-content: center;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-top: 1.8rem;
}

.hero-tags span {
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 999px;
  padding: 0.4rem 0.8rem;
  background-color: rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.9rem;
  font-weight: 650;
}

.btn {
  padding: 0.9rem 1.35rem;
  border-radius: var(--border-radius);
  border: none;
  font-size: 1rem;
  font-weight: 750;
  cursor: pointer;
  transition: var(--transition);
  text-decoration: none;
  display: inline-block;
}

.btn-primary {
  background-color: var(--secondary-color);
  color: var(--text-dark);
  box-shadow: 0 14px 28px rgba(245, 158, 11, 0.22);
}

.btn-primary:hover {
  background-color: #fbbf24;
  color: var(--text-dark);
  transform: translateY(-2px);
}

.btn-secondary {
  background-color: transparent;
  color: var(--text-light);
  border: 2px solid var(--text-light);
}

.btn-secondary:hover {
  background-color: var(--text-light);
  color: var(--primary-color);
}

.home-hero {
  background:
    radial-gradient(circle at 14% 20%, rgba(18, 185, 129, 0.24), transparent 26%),
    radial-gradient(circle at 84% 12%, rgba(245, 158, 11, 0.18), transparent 24%),
    linear-gradient(135deg, #061d3a 0%, #0a5aa9 54%, #064775 100%);
  color: var(--text-light);
  padding: 5.5rem 2rem;
  overflow: hidden;
}

.home-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.95fr);
  gap: 3rem;
  align-items: center;
}

.home-hero-copy h1 {
  max-width: 760px;
  color: var(--text-light);
  font-size: 4.25rem;
  line-height: 1.02;
  margin-bottom: 1.3rem;
}

.home-hero-copy p {
  max-width: 680px;
  color: rgba(255, 255, 255, 0.86);
  font-size: 1.18rem;
  margin-bottom: 2rem;
}

.hero-proof {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.85rem;
  max-width: 620px;
  margin-top: 2rem;
}

.hero-proof span {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  padding: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: var(--border-radius);
  background-color: rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.78);
}

.hero-proof strong {
  color: var(--text-light);
  font-size: 1.65rem;
  line-height: 1;
}

.hero-visual {
  position: relative;
  min-height: 520px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-visual::before {
  content: '';
  position: absolute;
  width: 480px;
  height: 480px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  filter: blur(8px);
}

.phone-preview {
  position: relative;
  width: min(360px, 100%);
  min-height: 500px;
  padding: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 34px;
  background: linear-gradient(180deg, #f8fbff 0%, #e8f1fb 100%);
  box-shadow: var(--shadow-lg);
}

.phone-topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.45rem 0.35rem 1rem;
}

.phone-topbar span:first-child {
  width: 48px;
  height: 5px;
  border-radius: 999px;
  background-color: #cbd5e1;
}

.phone-topbar span:last-child {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background-color: #94a3b8;
}

.phone-card,
.phone-mini-card {
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  background-color: var(--surface);
  color: var(--text-dark);
  box-shadow: var(--shadow-sm);
}

.phone-card {
  padding: 1rem;
  margin-bottom: 0.9rem;
}

.phone-card-primary {
  background: linear-gradient(135deg, #0b5cad, #0f766e);
  color: var(--text-light);
  border-color: rgba(255, 255, 255, 0.18);
}

.phone-card small,
.phone-mini-card small {
  display: block;
  color: inherit;
  opacity: 0.7;
  font-weight: 700;
  text-transform: uppercase;
}

.phone-card strong,
.phone-mini-card strong {
  display: block;
  margin-top: 0.35rem;
  font-size: 1.15rem;
}

.phone-card p {
  margin: 0.65rem 0 0;
  color: inherit;
  opacity: 0.78;
  font-size: 0.92rem;
}

.phone-card-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.9rem;
  margin-bottom: 0.9rem;
}

.phone-mini-card {
  padding: 1rem;
}

.phone-progress {
  height: 8px;
  margin-top: 1rem;
  border-radius: 999px;
  background-color: #e2e8f0;
  overflow: hidden;
}

.phone-progress span {
  display: block;
  width: 72%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
}

.section-eyebrow {
  display: inline-flex;
  margin-bottom: 0.75rem;
  color: var(--primary-color);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
}

.track-section,
.latest-section {
  background-color: var(--light-bg);
}

.track-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem;
}

.track-card {
  min-height: 320px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 1.5rem;
  border-radius: var(--border-radius);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: var(--text-light);
  box-shadow: var(--shadow-md);
  overflow: hidden;
  position: relative;
}

.track-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, 0.42) 100%),
    radial-gradient(circle at 82% 18%, rgba(255, 255, 255, 0.22), transparent 26%);
}

.track-card > * {
  position: relative;
  z-index: 1;
}

.track-card:hover {
  color: var(--text-light);
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
}

.track-card span {
  width: fit-content;
  margin-bottom: 1rem;
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  background-color: rgba(255, 255, 255, 0.16);
  font-size: 0.8rem;
  font-weight: 800;
}

.track-card h3 {
  color: var(--text-light);
  font-size: 1.55rem;
}

.track-card p {
  color: rgba(255, 255, 255, 0.84);
  margin-bottom: 0;
}

.track-card-nclex {
  background: linear-gradient(135deg, #0f766e, #064e3b);
}

.track-card-java {
  background: linear-gradient(135deg, #b45309, #7c2d12);
}

.track-card-python {
  background: linear-gradient(135deg, #0b5cad, #1d4ed8);
}

.workflow-section {
  background-color: var(--surface);
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
}

.workflow-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: 3rem;
  align-items: start;
}

.workflow-copy {
  position: sticky;
  top: 110px;
}

.workflow-copy h2 {
  max-width: 420px;
}

.workflow-copy p {
  max-width: 480px;
  color: var(--text-muted);
}

.workflow-steps {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.workflow-step {
  padding: 1.35rem;
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  background-color: var(--light-bg);
}

.workflow-step span {
  display: inline-flex;
  margin-bottom: 1rem;
  color: var(--primary-color);
  font-weight: 800;
}

.workflow-step h3 {
  font-size: 1.18rem;
}

.workflow-step p {
  color: var(--text-muted);
  margin-bottom: 0;
}

.section-action {
  margin-top: 2rem;
  text-align: center;
}

.download-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 2rem;
  align-items: center;
  padding: 2.5rem;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: var(--border-radius);
  background: rgba(255, 255, 255, 0.08);
  text-align: left;
}

.download-panel p {
  max-width: 720px;
  color: rgba(255, 255, 255, 0.86);
  font-size: 1.05rem;
  margin-bottom: 0;
}

/* ==============================================
   CONTAINER & SECTIONS
   ============================================== */

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

section {
  padding: 4.5rem 2rem;
}

.section-title {
  text-align: center;
  margin-bottom: 3rem;
  max-width: 760px;
  margin-left: auto;
  margin-right: auto;
}

.section-title h2 {
  margin-bottom: 0.5rem;
}

.section-title p {
  color: var(--text-muted);
  font-size: 1.1rem;
}

/* ==============================================
   FEATURES GRID
   ============================================== */

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.25rem;
}

.feature-card,
.focus-card,
.card,
.sidebar,
.widget,
.entry-content {
  min-width: 0;
}

.feature-card {
  background: var(--surface);
  padding: 1.6rem;
  border-radius: var(--border-radius);
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  text-align: left;
}

.feature-card:hover {
  transform: translateY(-3px);
  border-color: rgba(8, 102, 194, 0.24);
  box-shadow: var(--shadow-md);
}

.feature-icon {
  width: 48px;
  height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  background-color: var(--surface-soft);
  font-size: 1.75rem;
  margin-bottom: 1rem;
}

.feature-card h3 {
  margin-bottom: 1rem;
  color: var(--primary-color);
}

.feature-card p {
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}

.focus-section {
  background: linear-gradient(180deg, #eef5fb 0%, #f8fbff 100%);
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
}

.focus-grid,
.latest-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.25rem;
}

.focus-card {
  background: var(--surface);
  padding: 1.6rem;
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-sm);
}

.focus-card h3 {
  color: var(--primary-color);
  margin-bottom: 0.75rem;
}

.focus-card p {
  color: var(--text-muted);
}

.download-section {
  background:
    linear-gradient(135deg, #082f5f 0%, #0b5cad 100%);
  color: white;
  padding: 4.5rem 2rem;
  text-align: center;
}

.download-section h2 {
  color: white;
}

.download-section .section-eyebrow {
  color: rgba(255, 255, 255, 0.72);
}

/* ==============================================
   CONTENT CARDS
   ============================================== */

.content-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(300px, 100%), 1fr));
  gap: 1.25rem;
  align-content: start;
  align-items: start;
  margin-top: 2rem;
}

.layout-with-sidebar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  gap: 2rem;
  align-items: start;
}

.card {
  background: var(--surface);
  border-radius: var(--border-radius);
  overflow: hidden;
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.card-image {
  width: 100%;
  height: 200px;
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--accent-color) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 4rem;
  color: var(--text-light);
}

.card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.card-content {
  padding: 1.35rem;
}

.card-category {
  display: inline-block;
  background-color: #e8f2fc;
  color: var(--primary-dark);
  padding: 0.32rem 0.65rem;
  border-radius: 20px;
  font-size: 0.8rem;
  margin-bottom: 0.75rem;
  font-weight: 600;
}

.card-title {
  font-size: 1.25rem;
  margin-bottom: 0.75rem;
  overflow-wrap: anywhere;
}

.card-description {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 1.5rem;
}

.card-link {
  color: var(--primary-color);
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.quiz-card {
  display: flex;
  min-height: 100%;
}

.quiz-card-content {
  display: flex;
  flex-direction: column;
  min-height: 260px;
  width: 100%;
}

.quiz-card-topline {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.85rem;
}

.quiz-card-topline .card-category {
  margin-bottom: 0;
}

.quiz-card-type {
  color: var(--text-muted);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  line-height: 1.9;
  text-transform: uppercase;
}

.quiz-card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem 1rem;
  list-style: none;
  margin: 0 0 1.25rem;
  padding: 0;
  color: var(--text-muted);
  font-size: 0.95rem;
}

.quiz-card-meta li {
  position: relative;
}

.quiz-card-meta li + li::before {
  content: "";
  position: absolute;
  top: 50%;
  left: -0.58rem;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--text-muted);
  transform: translateY(-50%);
}

.quiz-card-link {
  margin-top: auto;
}

.flashcard-card {
  display: flex;
  min-height: 100%;
}

.flashcard-card-content {
  display: flex;
  flex-direction: column;
  min-height: 280px;
  width: 100%;
}

.flashcard-card-preview {
  background: #fff7ed;
  border-left: 4px solid var(--secondary-color);
  border-radius: var(--border-radius);
  margin: 0.5rem 0 1.25rem;
  padding: 1rem;
}

.flashcard-card-preview span {
  color: #b45309;
  display: block;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  margin-bottom: 0.45rem;
  text-transform: uppercase;
}

.flashcard-card-preview p {
  color: var(--text-dark);
  margin-bottom: 0;
}

.quiz-detail-meta {
  background: #eff6ff;
  border-left: 4px solid var(--primary-color);
  border-radius: var(--border-radius);
  margin: 1.5rem 0;
  padding: 1.5rem;
}

.quiz-detail-meta-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 1rem;
}

.quiz-detail-meta strong {
  color: var(--primary-dark);
}

.quiz-detail-meta p {
  margin-bottom: 0;
}

.quiz-study-content {
  line-height: 1.8;
  font-size: 1.05rem;
  margin: 2rem 0;
}

.quiz-study-section {
  padding: 2rem;
  border-radius: var(--border-radius);
  border-left: 4px solid var(--primary-color);
  margin-bottom: 2rem;
}

.quiz-study-section h2 {
  margin-bottom: 1rem;
}

.quiz-study-section-body > :last-child {
  margin-bottom: 0;
}

.quiz-study-section-body ol,
.quiz-study-section-body ul {
  margin: 1rem 0 0 1.25rem;
  padding-left: 1rem;
}

.quiz-study-section-body li {
  margin-bottom: 0.45rem;
}

.quiz-study-section-question {
  background: #ede9fe;
  border-left-color: #8b5cf6;
}

.quiz-study-section-question h2 {
  color: #6d28d9;
}

.quiz-study-section-hint {
  background: #ecfdf5;
  border-left-color: #10b981;
}

.quiz-study-section-hint h2 {
  color: #047857;
}

.quiz-study-section-rationale {
  background: #fef3c7;
  border-left-color: #f59e0b;
}

.quiz-study-section-rationale h2 {
  color: #d97706;
}

.quiz-study-section-default {
  background: #eff6ff;
  border-left-color: var(--primary-color);
}

.quiz-study-section-default h2 {
  color: var(--primary-dark);
}

/* ==============================================
   PAGINATION
   ============================================== */

.pagination {
  grid-column: 1 / -1;
  margin-top: 1rem;
}

.pagination .nav-links {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.page-numbers {
  min-width: 42px;
  height: 42px;
  padding: 0 0.85rem;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  background: var(--surface);
  color: var(--primary-dark);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  line-height: 1;
  box-shadow: var(--shadow-sm);
}

a.page-numbers:hover,
a.page-numbers:focus-visible {
  background: var(--primary-color);
  border-color: var(--primary-color);
  color: var(--text-light);
  text-decoration: none;
}

.page-numbers.current {
  background: var(--primary-color);
  border-color: var(--primary-color);
  color: var(--text-light);
  box-shadow: 0 10px 24px rgba(8, 102, 194, 0.18);
}

.page-numbers.dots {
  min-width: 32px;
  border-color: transparent;
  background: transparent;
  color: var(--text-muted);
  box-shadow: none;
}

.page-numbers.prev,
.page-numbers.next {
  min-width: 86px;
}

.flashcard-panel {
  width: 100%;
  border: 0;
  font: inherit;
  cursor: pointer;
}

.flashcard-panel:focus-visible {
  outline: 3px solid var(--primary-color);
  outline-offset: 4px;
}

/* ==============================================
   FOOTER
   ============================================== */

footer {
  background-color: var(--dark-bg);
  color: var(--text-light);
  padding: 3rem 2rem 1rem;
  margin-top: 4rem;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-bottom: 2rem;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
}

.footer-section h4 {
  color: var(--text-light);
  margin-bottom: 1rem;
}

.footer-section ul {
  list-style: none;
}

.footer-section li {
  margin-bottom: 0.5rem;
}

.footer-section a {
  color: #ccc;
}

.footer-section a:hover {
  color: var(--secondary-color);
}

.footer-bottom {
  text-align: center;
  border-top: 1px solid #444;
  padding-top: 1.5rem;
  color: #999;
  max-width: 1200px;
  margin: 0 auto;
}

/* ==============================================
   SIDEBAR & WIDGETS
   ============================================== */

.sidebar {
  background: var(--surface);
  padding: 1.5rem;
  border-radius: var(--border-radius);
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
  align-self: start;
}

.widget {
  margin-bottom: 2rem;
}

.widget h3 {
  color: var(--primary-color);
  margin-bottom: 1rem;
  font-size: 1.25rem;
}

.widget ul {
  list-style: none;
}

.widget li {
  padding: 0.5rem 0;
  border-bottom: 1px solid #eee;
}

.widget li:last-child {
  border-bottom: none;
}

.widget a {
  display: block;
}

/* ==============================================
   RESPONSIVE DESIGN
   ============================================== */

@media (max-width: 1180px) {
  .header-container {
    flex-wrap: wrap;
    gap: 0.85rem 1.25rem;
  }

  .logo {
    flex: 1 1 auto;
  }

  .main-navigation {
    order: 3;
    flex-basis: 100%;
  }

  .navigation {
    justify-content: flex-start;
  }
}

@media (max-width: 900px) {
  .container {
    padding-left: 1.25rem;
    padding-right: 1.25rem;
  }

  .hero {
    padding: 4rem 1.25rem 3.5rem;
  }

  .hero h1 {
    font-size: 3rem;
  }

  .home-hero {
    padding: 4rem 1.25rem;
  }

  .home-hero-grid,
  .workflow-grid,
  .download-panel {
    grid-template-columns: 1fr;
  }

  .home-hero-copy h1 {
    font-size: 3.2rem;
  }

  .hero-visual {
    min-height: 420px;
  }

  .phone-preview {
    min-height: 420px;
  }

  .track-grid {
    grid-template-columns: 1fr;
  }

  .track-card {
    min-height: 260px;
  }

  .workflow-copy {
    position: static;
  }

  .features-grid,
  .focus-grid,
  .latest-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .layout-with-sidebar {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  h1 {
    font-size: 2rem;
  }

  h2 {
    font-size: 1.75rem;
  }

  .hero h1 {
    font-size: 2.55rem;
  }

  .home-hero-copy h1 {
    font-size: 2.55rem;
  }

  .home-hero-copy p {
    font-size: 1.05rem;
  }

  .hero-proof {
    grid-template-columns: 1fr;
  }

  .hero-visual {
    min-height: 0;
  }

  .workflow-steps {
    grid-template-columns: 1fr;
  }

  .download-panel {
    padding: 1.5rem;
    text-align: center;
  }

  .download-panel .btn {
    width: 100%;
  }

  .header-container {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto auto;
    align-items: stretch;
    min-height: 0;
    gap: 0.65rem;
  }

  .logo {
    grid-column: 1;
    grid-row: 1;
    min-width: 0;
  }

  .site-brand {
    white-space: normal;
  }

  .site-brand-text {
    font-size: 1.1rem;
  }

  .menu-toggle {
    display: inline-flex;
    grid-column: 3;
    grid-row: 1;
    align-self: center;
  }

  .main-navigation {
    grid-column: 1 / -1;
    grid-row: 2;
    order: initial;
    width: 100%;
    display: none;
  }

  .navigation {
    display: grid;
    grid-template-columns: 1fr;
    justify-content: stretch;
    gap: 0.45rem;
    font-size: 0.9rem;
    width: 100%;
    min-width: 0;
    padding-top: 0.25rem;
  }

  .navigation a {
    justify-content: center;
    padding: 0.7rem 0.8rem;
    background-color: var(--surface-soft);
    text-align: center;
    white-space: nowrap;
  }

  .main-navigation.is-open {
    display: block;
  }

  .cta-button {
    grid-column: 2;
    grid-row: 1;
    align-self: center;
    width: auto;
    padding: 0.65rem 0.9rem;
    font-size: 0.95rem;
    text-align: center;
  }

  .hero .buttons {
    flex-direction: column;
  }

  .content-cards {
    grid-template-columns: 1fr;
  }

  .btn {
    width: 100%;
  }

  section {
    padding: 2rem 1rem;
  }

  .footer-content {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  h1 {
    font-size: 1.5rem;
  }

  h2 {
    font-size: 1.25rem;
  }

  h3 {
    font-size: 1.1rem;
  }

  .header-container {
    padding: 0.75rem 1rem;
  }

  .logo {
    font-size: 1.25rem;
  }

  .site-brand-mark {
    width: 34px;
    height: 34px;
    flex: 0 0 34px;
  }

  .site-brand-text {
    font-size: 0.95rem;
  }

  .navigation {
    gap: 0.45rem;
  }

  .navigation a {
    padding: 0.5rem 0.65rem;
  }

  .cta-button {
    padding: 0.6rem 0.75rem;
    font-size: 0.9rem;
  }

  .menu-toggle {
    width: 38px;
    height: 38px;
  }

  .hero {
    padding: 3rem 1rem;
  }

  .home-hero {
    padding: 3rem 1rem;
  }

  .hero h1 {
    font-size: 2rem;
  }

  .home-hero-copy h1 {
    font-size: 2.15rem;
  }

  .hero p,
  .home-hero-copy p,
  .section-title p {
    font-size: 1rem;
  }

  .features-grid,
  .focus-grid,
  .latest-grid {
    grid-template-columns: 1fr;
  }

  .feature-card,
  .focus-card,
  .card-content,
  .sidebar {
    padding: 1rem;
  }

  .card-image {
    height: 150px;
    font-size: 3rem;
  }

  .phone-preview {
    border-radius: 24px;
    min-height: 0;
  }

  .phone-card-row {
    grid-template-columns: 1fr;
  }

  .track-card,
  .workflow-step {
    padding: 1.15rem;
  }

  .download-panel {
    padding: 1.15rem;
  }

  footer {
    padding: 2rem 1rem 1rem;
  }
}
