:root {
  --blue-dark: #003366;
  --blue-mid: #004a8f;
  --blue-light: #e8f0fe;
  --red: #c8102e;
  --green: #2e7d32;
  --yellow: #f9a825;
  --gray-100: #f5f6f8;
  --gray-200: #e8eaed;
  --gray-300: #d1d5db;
  --gray-600: #6b7280;
  --gray-800: #1f2937;
  --radius: 8px;
  --shadow: 0 2px 8px rgba(0,0,0,0.08);
}

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

body {
  font-family: 'Segoe UI', -apple-system, BlinkMacSystemFont, Roboto, sans-serif;
  background: var(--gray-100);
  color: var(--gray-800);
  min-height: 100vh;
}

/* ========== HEADER ========== */
.header {
  background: var(--blue-dark);
  color: #fff;
  padding: 0;
}

.header-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1200px;
  margin: 0 auto;
  padding: 16px 24px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: #fff;
}

.logo-icon {
  width: 42px;
  height: 42px;
  flex-shrink: 0;
}

.logo-icon img {
  width: 100%;
  height: 100%;
  display: block;
}

.logo-text .logo-title {
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.3px;
}

.logo-text span {
  font-size: 12px;
  opacity: 0.7;
}

.header-right {
  font-size: 13px;
  opacity: 0.8;
}

/* ========== NAV BAR ========== */
.nav {
  background: var(--blue-mid);
}

.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  gap: 2px;
}

.nav-inner a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: rgba(255,255,255,0.9);
  text-decoration: none;
  padding: 13px 20px;
  font-size: 14px;
  font-weight: 500;
  white-space: nowrap;
  transition: background 0.15s, color 0.15s;
  border-bottom: 2px solid transparent;
}

.nav-inner a:hover {
  background: rgba(255,255,255,0.1);
  color: #fff;
}

.nav-inner a.active {
  color: #fff;
  border-bottom-color: #fff;
  background: rgba(255,255,255,0.08);
}

/* ========== BREADCRUMBS ========== */
.breadcrumbs {
  max-width: 1200px;
  margin: 0 auto;
  padding: 12px 24px 0;
  font-size: 13px;
  color: var(--gray-600);
}

.breadcrumbs a {
  color: var(--blue-mid);
  text-decoration: none;
}

.breadcrumbs a:hover {
  text-decoration: underline;
}

.breadcrumbs span {
  margin: 0 6px;
  color: var(--gray-300);
}

/* ========== MAIN ========== */
.main {
  max-width: 1200px;
  margin: 0 auto;
  padding: 32px 24px;
}

/* ========== HERO ========== */
.hero {
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 32px;
  margin-bottom: 32px;
}

.hero h2 {
  font-size: 24px;
  color: var(--blue-dark);
  margin-bottom: 8px;
}

.hero p {
  font-size: 15px;
  color: var(--gray-600);
  line-height: 1.6;
  max-width: 700px;
}

.section-title {
  font-size: 18px;
  font-weight: 600;
  color: var(--blue-dark);
  margin-bottom: 16px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--blue-dark);
  display: inline-block;
}

/* ========== TEST GRID ========== */
.test-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
  margin-bottom: 40px;
}

.test-card {
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  transition: transform 0.2s, box-shadow 0.2s;
}

.test-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(0,0,0,0.12);
}

.test-card a {
  text-decoration: none;
  color: inherit;
  display: block;
}

.test-card-header {
  padding: 16px 20px;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 12px;
}

.test-card-header .icon {
  font-size: 28px;
  width: 44px;
  height: 44px;
  background: rgba(255,255,255,0.2);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.test-card-header .icon svg {
  width: 28px;
  height: 28px;
}

.test-card-header h3 {
  font-size: 16px;
  font-weight: 600;
}

.test-card-header span {
  font-size: 12px;
  opacity: 0.85;
}

.test-card-body {
  padding: 16px 20px;
}

.test-card-body p {
  font-size: 13px;
  color: var(--gray-600);
  line-height: 1.5;
  margin-bottom: 12px;
}

.grade-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.grade-pill {
  background: var(--blue-light);
  color: var(--blue-dark);
  font-size: 12px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 20px;
  text-decoration: none;
  transition: background 0.2s;
  display: inline-block;
}

.grade-pill:hover {
  background: var(--blue-dark);
  color: #fff;
}

/* Color themes for subjects */
.bg-reading { background: #1565c0; }
.bg-math { background: #2e7d32; }
.bg-english { background: #6a1b9a; }
.bg-physics { background: #e65100; }
.bg-biology { background: #00838f; }
.bg-geography { background: #4e342e; }
.bg-german { background: #d32f2f; }
.bg-french { background: #1565c0; }
.bg-spanish { background: #e65100; }
.bg-italian { background: #388e3c; }
.bg-portuguese { background: #00695c; }
.bg-chinese { background: #c62828; }
.bg-japanese { background: #ad1457; }

/* ========== TEST CONTAINER ========== */
.test-container {
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.test-top-bar {
  background: var(--blue-dark);
  color: #fff;
  padding: 16px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.test-top-bar h2 {
  font-size: 16px;
  font-weight: 600;
}

.test-progress {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 14px;
}

.progress-bar-bg {
  width: 200px;
  height: 8px;
  background: rgba(255,255,255,0.2);
  border-radius: 4px;
  overflow: hidden;
}

.progress-bar-fill {
  height: 100%;
  background: #4fc3f7;
  border-radius: 4px;
  transition: width 0.4s ease;
}

.test-timer {
  background: rgba(255,255,255,0.15);
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 14px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.test-body {
  padding: 32px;
  min-height: 400px;
}

.question-number {
  font-size: 13px;
  font-weight: 600;
  color: var(--blue-mid);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 12px;
}

.question-text {
  font-size: 20px;
  font-weight: 600;
  color: var(--gray-800);
  line-height: 1.4;
  margin-bottom: 8px;
}

.question-subtitle {
  font-size: 14px;
  color: var(--gray-600);
  margin-bottom: 24px;
}

/* Multiple choice */
.mc-options {
  display: grid;
  gap: 12px;
  max-width: 600px;
}

.mc-option {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 20px;
  background: var(--gray-100);
  border: 2px solid var(--gray-200);
  border-radius: var(--radius);
  cursor: pointer;
  transition: all 0.2s;
  font-size: 15px;
}

.mc-option:hover {
  border-color: var(--blue-mid);
  background: var(--blue-light);
}

.mc-option.selected {
  border-color: var(--blue-mid);
  background: var(--blue-light);
}

.mc-option.correct {
  border-color: var(--green);
  background: #e8f5e9;
}

.mc-option.incorrect {
  border-color: var(--red);
  background: #fce4ec;
}

.mc-radio {
  width: 22px;
  height: 22px;
  border: 2px solid var(--gray-300);
  border-radius: 50%;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}

.mc-option.selected .mc-radio {
  border-color: var(--blue-mid);
  background: var(--blue-mid);
}

.mc-option.selected .mc-radio::after {
  content: '';
  width: 8px;
  height: 8px;
  background: #fff;
  border-radius: 50%;
}

.mc-option.correct .mc-radio {
  border-color: var(--green);
  background: var(--green);
}

.mc-option.correct .mc-radio::after {
  content: '\2713';
  color: #fff;
  font-size: 14px;
  font-weight: 700;
}

.mc-option.incorrect .mc-radio {
  border-color: var(--red);
  background: var(--red);
}

.mc-option.incorrect .mc-radio::after {
  content: '\2715';
  color: #fff;
  font-size: 14px;
  font-weight: 700;
}

/* Drag and drop */
.drag-container {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.drag-items {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 16px;
  background: var(--gray-100);
  border-radius: var(--radius);
  min-height: 60px;
}

.drag-item {
  padding: 10px 18px;
  background: #fff;
  border: 2px solid var(--gray-300);
  border-radius: 6px;
  cursor: grab;
  font-size: 14px;
  font-weight: 500;
  user-select: none;
  transition: all 0.2s;
}

.drag-item:active { cursor: grabbing; opacity: 0.7; }
.drag-item:hover { border-color: var(--blue-mid); }
.drag-item.placed { opacity: 0.4; }

.drop-zones {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 12px;
}

.drop-zone {
  border: 2px dashed var(--gray-300);
  border-radius: var(--radius);
  padding: 12px;
  min-height: 80px;
  transition: all 0.2s;
}

.drop-zone.over {
  border-color: var(--blue-mid);
  background: var(--blue-light);
}

.drop-zone-label {
  font-size: 12px;
  font-weight: 600;
  color: var(--gray-600);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 8px;
}

.drop-zone-items {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.drop-zone .drag-item {
  cursor: pointer;
  background: var(--blue-light);
  border-color: var(--blue-mid);
}

/* Fill in blank */
.fill-blank-text {
  font-size: 18px;
  line-height: 2;
}

.blank-input {
  border: none;
  border-bottom: 2px solid var(--blue-mid);
  background: var(--blue-light);
  padding: 4px 12px;
  font-size: 16px;
  font-family: inherit;
  width: 150px;
  outline: none;
  border-radius: 4px 4px 0 0;
  transition: border-color 0.2s;
}

.blank-input:focus {
  border-color: var(--blue-dark);
  background: #d6e4ff;
}

.blank-input.correct {
  border-color: var(--green);
  background: #e8f5e9;
}

.blank-input.incorrect {
  border-color: var(--red);
  background: #fce4ec;
}

/* Image question */
.question-image {
  max-width: 100%;
  max-height: 300px;
  border-radius: var(--radius);
  border: 1px solid var(--gray-200);
  margin-bottom: 20px;
}

.image-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  max-width: 500px;
}

.image-option {
  border: 3px solid var(--gray-200);
  border-radius: var(--radius);
  padding: 12px;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s;
}

.image-option:hover { border-color: var(--blue-mid); }
.image-option.selected { border-color: var(--blue-mid); background: var(--blue-light); }
.image-option.correct { border-color: var(--green); background: #e8f5e9; }
.image-option.incorrect { border-color: var(--red); background: #fce4ec; }

.image-option .img-placeholder {
  width: 100%;
  height: 80px;
  background: var(--gray-100);
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 36px;
  margin-bottom: 8px;
}

.image-option span {
  font-size: 14px;
  font-weight: 500;
}

/* Test footer / navigation */
.test-footer {
  padding: 20px 32px;
  border-top: 1px solid var(--gray-200);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.btn {
  padding: 12px 28px;
  border: none;
  border-radius: 6px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  font-family: inherit;
  text-decoration: none;
  display: inline-block;
}

.btn-primary {
  background: var(--blue-dark);
  color: #fff;
}

.btn-primary:hover { background: var(--blue-mid); }

.btn-secondary {
  background: var(--gray-200);
  color: var(--gray-800);
}

.btn-secondary:hover { background: var(--gray-300); }

.btn-success {
  background: var(--green);
  color: #fff;
}

.btn-success:hover { background: #1b5e20; }

.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.feedback {
  padding: 12px 20px;
  border-radius: var(--radius);
  font-size: 14px;
  font-weight: 500;
  margin-top: 20px;
  display: none;
}

.feedback.show { display: block; }
.feedback.correct { background: #e8f5e9; color: #1b5e20; border: 1px solid #a5d6a7; }
.feedback.incorrect { background: #fce4ec; color: #b71c1c; border: 1px solid #ef9a9a; }

/* ========== RESULTS ========== */
.results-container {
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 40px;
  text-align: center;
  max-width: 600px;
  margin: 0 auto;
}

.results-score {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  margin: 0 auto 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-size: 42px;
  font-weight: 800;
}

.results-score.great { background: #e8f5e9; color: var(--green); border: 4px solid var(--green); }
.results-score.good { background: #fff8e1; color: #f57f17; border: 4px solid #f57f17; }
.results-score.needs-work { background: #fce4ec; color: var(--red); border: 4px solid var(--red); }

.results-score small {
  font-size: 14px;
  font-weight: 600;
}

.results-container h2 {
  font-size: 22px;
  color: var(--gray-800);
  margin-bottom: 8px;
}

.results-container p {
  color: var(--gray-600);
  margin-bottom: 24px;
}

.results-breakdown {
  text-align: left;
  margin: 24px 0;
}

.results-breakdown h4 {
  font-size: 14px;
  font-weight: 600;
  color: var(--gray-600);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 12px;
}

.result-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--gray-200);
  font-size: 14px;
}

.result-item .r-num {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
  color: #fff;
  flex-shrink: 0;
}

.result-item .r-num.ok { background: var(--green); }
.result-item .r-num.fail { background: var(--red); }

.results-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  margin-top: 24px;
}

/* ========== BLOG ========== */

/* Featured post */
.blog-featured {
  display: flex;
  align-items: stretch;
  background: linear-gradient(135deg, var(--blue-dark) 0%, var(--blue-mid) 100%);
  border-radius: 12px;
  text-decoration: none;
  color: #fff;
  max-width: 1200px;
  margin: 0 auto 32px;
  padding: 0;
  overflow: hidden;
  transition: box-shadow 0.25s, transform 0.25s;
  box-shadow: 0 4px 20px rgba(0,51,102,0.2);
}

.blog-featured:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 32px rgba(0,51,102,0.3);
}

.blog-featured-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 64px;
  min-width: 180px;
  background: rgba(255,255,255,0.06);
}

.blog-featured-content {
  padding: 32px 36px;
  display: flex;
  flex-direction: column;
}

.blog-featured-content h3 {
  font-size: 22px;
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 10px;
}

.blog-featured-content p {
  font-size: 15px;
  line-height: 1.65;
  opacity: 0.85;
  flex: 1;
}

/* Tags */
.blog-tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  padding: 3px 10px;
  border-radius: 4px;
  margin-bottom: 10px;
  width: fit-content;
}

.blog-featured .blog-tag {
  background: rgba(255,255,255,0.18);
  color: #fff;
}

.tag-guide { background: #e8f0fe; color: var(--blue-mid); }
.tag-tips { background: #fff3e0; color: #e65100; }
.tag-forberedelse { background: #fce4ec; color: #c62828; }

/* Card footer (date + link) */
.blog-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid var(--gray-200);
}

.blog-featured .blog-card-footer {
  border-top-color: rgba(255,255,255,0.15);
}

.blog-card-date {
  font-size: 12px;
  color: var(--gray-600);
}

.blog-featured .blog-card-date {
  color: rgba(255,255,255,0.6);
}

.blog-card-link {
  font-size: 13px;
  font-weight: 600;
  color: var(--blue-mid);
  transition: gap 0.2s;
}

.blog-featured .blog-card-link {
  color: #fff;
}

/* Blog grid */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px 48px;
}

/* Blog card */
.blog-card {
  background: #fff;
  border-radius: 10px;
  text-decoration: none;
  color: var(--gray-800);
  box-shadow: 0 1px 4px rgba(0,0,0,0.06);
  border: 1px solid var(--gray-200);
  transition: box-shadow 0.25s, transform 0.25s;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.blog-card:hover {
  box-shadow: 0 8px 28px rgba(0,0,0,0.1);
  transform: translateY(-3px);
}

/* Color accent bar at top */
.blog-card-accent {
  height: 4px;
  width: 100%;
}

.accent-blue { background: var(--blue-mid); }
.accent-green { background: var(--green); }
.accent-red { background: var(--red); }
.accent-yellow { background: var(--yellow); }

.blog-card-inner {
  padding: 24px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.blog-card h3 {
  font-size: 16px;
  font-weight: 600;
  color: var(--blue-dark);
  margin-bottom: 8px;
  line-height: 1.4;
}

.blog-card p {
  font-size: 14px;
  color: var(--gray-600);
  line-height: 1.6;
  flex: 1;
}

.blog-card .blog-card-footer {
  border-top-color: var(--gray-200);
}

/* ========== BLOG ARTICLE ========== */
.blog-article {
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 40px 36px;
  max-width: 800px;
}

.blog-article-header {
  margin-bottom: 24px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--gray-200);
}

.blog-article-header h1 {
  font-size: 28px;
  color: var(--blue-dark);
  line-height: 1.3;
  margin-top: 4px;
}

.blog-article-meta {
  font-size: 13px;
  color: var(--gray-600);
  margin-top: 8px;
}

.blog-article h2 {
  font-size: 22px;
  color: var(--blue-dark);
  margin: 32px 0 12px;
  padding-bottom: 6px;
  border-bottom: 2px solid var(--blue-light);
}

.blog-article h3 {
  font-size: 17px;
  color: var(--blue-dark);
  margin: 24px 0 8px;
}

.blog-article p {
  font-size: 15px;
  line-height: 1.7;
  color: var(--gray-800);
  margin-bottom: 12px;
}

.blog-article ul, .blog-article ol {
  margin: 12px 0 16px;
  padding-left: 24px;
}

.blog-article li {
  font-size: 15px;
  line-height: 1.6;
  margin-bottom: 6px;
}

.blog-article a {
  color: var(--blue-mid);
  text-decoration: none;
  font-weight: 500;
}

.blog-article a:hover {
  text-decoration: underline;
}

/* ========== FOOTER ========== */
.site-footer {
  background: var(--blue-dark);
  color: rgba(255,255,255,0.7);
  padding: 40px 24px 24px;
  margin-top: 60px;
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
}

.footer-columns {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  margin-bottom: 32px;
}

.footer-col h4 {
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 12px;
}

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

.footer-col a {
  color: rgba(255,255,255,0.7);
  text-decoration: none;
  font-size: 13px;
  line-height: 2;
  display: block;
  transition: color 0.2s;
}

.footer-col a:hover {
  color: #90caf9;
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.15);
  padding-top: 16px;
  text-align: center;
  font-size: 13px;
}

.footer-bottom a {
  color: #90caf9;
  text-decoration: none;
}

/* ========== COURSE LAYOUT ========== */
.course-container {
  display: flex;
  gap: 24px;
  align-items: flex-start;
}

.course-sidebar {
  width: 260px;
  flex-shrink: 0;
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 20px;
  position: sticky;
  top: 24px;
}

.course-sidebar h3 {
  font-size: 14px;
  font-weight: 600;
  color: var(--gray-600);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 16px;
}

.lesson-list {
  list-style: none;
}

.lesson-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  border-radius: 6px;
  margin-bottom: 4px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 500;
  color: var(--gray-800);
  transition: background 0.15s;
}

.lesson-item:hover { background: var(--gray-100); }

.lesson-item .lesson-icon {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 700;
  flex-shrink: 0;
}

.lesson-item.completed .lesson-icon {
  background: var(--green);
  color: #fff;
}

.lesson-item.active {
  background: var(--blue-light);
  color: var(--blue-dark);
  font-weight: 600;
}

.lesson-item.active .lesson-icon {
  background: var(--blue-dark);
  color: #fff;
}

.lesson-item.locked {
  opacity: 0.5;
  cursor: not-allowed;
}

.lesson-item.locked .lesson-icon {
  background: var(--gray-200);
  color: var(--gray-600);
}

.course-progress {
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid var(--gray-200);
}

.course-progress-label {
  font-size: 12px;
  font-weight: 600;
  color: var(--gray-600);
  margin-bottom: 8px;
}

.course-progress-bar {
  width: 100%;
  height: 8px;
  background: var(--gray-200);
  border-radius: 4px;
  overflow: hidden;
}

.course-progress-fill {
  height: 100%;
  background: var(--green);
  border-radius: 4px;
  transition: width 0.4s ease;
}

.course-main {
  flex: 1;
  min-width: 0;
}

.theory-content {
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 32px;
  margin-bottom: 24px;
}

.theory-content h2 {
  font-size: 22px;
  color: var(--blue-dark);
  margin-bottom: 16px;
}

.theory-content h3 {
  font-size: 18px;
  color: var(--blue-dark);
  margin: 20px 0 10px;
}

.theory-content p {
  font-size: 15px;
  line-height: 1.7;
  color: var(--gray-800);
  margin-bottom: 12px;
}

.theory-content ul, .theory-content ol {
  margin: 12px 0;
  padding-left: 24px;
}

.theory-content li {
  font-size: 15px;
  line-height: 1.6;
  margin-bottom: 6px;
}

.theory-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 16px 0;
}

.theory-content th, .theory-content td {
  padding: 10px 14px;
  border: 1px solid var(--gray-200);
  font-size: 14px;
  text-align: left;
}

.theory-content th {
  background: var(--gray-100);
  font-weight: 600;
}

.theory-content .example-box {
  background: var(--blue-light);
  border-left: 4px solid var(--blue-mid);
  padding: 16px 20px;
  border-radius: 0 var(--radius) var(--radius) 0;
  margin: 16px 0;
  font-size: 15px;
}

.practice-section {
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 32px;
}

.practice-section h3 {
  font-size: 18px;
  color: var(--blue-dark);
  margin-bottom: 20px;
}

.practice-progress {
  font-size: 13px;
  color: var(--gray-600);
  margin-bottom: 16px;
  font-weight: 500;
}

.lesson-complete {
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 48px 32px;
  text-align: center;
}

.lesson-complete .complete-icon {
  font-size: 64px;
  margin-bottom: 16px;
}

.lesson-complete h2 {
  font-size: 24px;
  color: var(--green);
  margin-bottom: 8px;
}

.lesson-complete p {
  font-size: 15px;
  color: var(--gray-600);
  margin-bottom: 24px;
}

.course-complete {
  background: linear-gradient(135deg, #e8f5e9 0%, #c8e6c9 100%);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 48px 32px;
  text-align: center;
}

.course-complete .complete-icon {
  font-size: 72px;
  margin-bottom: 16px;
}

.course-complete h2 {
  font-size: 28px;
  color: var(--green);
  margin-bottom: 8px;
}

.course-complete p {
  font-size: 16px;
  color: var(--gray-800);
  margin-bottom: 24px;
}

/* Kursus pill (green) */
.pill-kursus {
  background: #e8f5e9;
  color: var(--green);
}

.pill-kursus:hover {
  background: var(--green);
  color: #fff;
}

/* ========== NAV DROPDOWN ========== */
.nav-dropdown {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.nav-dropdown > a {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: rgba(255,255,255,0.9);
  text-decoration: none;
  padding: 13px 20px;
  font-size: 14px;
  font-weight: 500;
  white-space: nowrap;
  transition: background 0.15s, color 0.15s;
  border-bottom: 2px solid transparent;
  cursor: pointer;
}

.nav-dropdown > a::after {
  content: '\25BE';
  font-size: 11px;
  margin-left: 2px;
}

.nav-dropdown > a:hover,
.nav-dropdown > a.active {
  background: rgba(255,255,255,0.1);
  color: #fff;
}

.nav-dropdown > a.active {
  border-bottom-color: #fff;
  background: rgba(255,255,255,0.08);
}

.nav-dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: var(--blue-dark);
  border-radius: 0 0 var(--radius) var(--radius);
  box-shadow: 0 8px 24px rgba(0,0,0,0.25);
  min-width: 160px;
  z-index: 100;
  padding: 4px 0;
}

.nav-dropdown-menu a {
  display: block;
  padding: 10px 20px;
  color: rgba(255,255,255,0.85);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: background 0.15s, color 0.15s;
  white-space: nowrap;
}

.nav-dropdown-menu a:hover {
  background: rgba(255,255,255,0.12);
  color: #fff;
}

.nav-dropdown:hover .nav-dropdown-menu,
.nav-dropdown:focus-within .nav-dropdown-menu {
  display: block;
}

/* ========== FOCUS STATES ========== */
.nav-inner a:focus-visible,
.nav-dropdown > a:focus-visible,
.nav-dropdown-menu a:focus-visible,
.grade-pill:focus-visible,
.pill-kursus:focus-visible,
.blog-card:focus-visible,
.blog-featured:focus-visible,
a:focus-visible {
  outline: 3px solid #1565c0;
  outline-offset: 2px;
}

.btn:focus-visible {
  outline: 3px solid #1565c0;
  outline-offset: 2px;
}

.mc-option:focus-visible {
  outline: 3px solid #1565c0;
  outline-offset: 2px;
}

/* ========== HAMBURGER MENU ========== */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  margin-left: auto;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 3px;
  background: #fff;
  border-radius: 2px;
  transition: transform 0.3s, opacity 0.3s;
  margin: 5px 0;
}

.nav-toggle.open span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

.nav-toggle.open span:nth-child(2) {
  opacity: 0;
}

.nav-toggle.open span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

/* ========== SEARCH ========== */
.search-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0,0,0,0.5);
  z-index: 200;
  align-items: flex-start;
  justify-content: center;
  padding-top: 80px;
}

.search-overlay.open {
  display: flex;
}

.search-box {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 16px 48px rgba(0,0,0,0.2);
  width: 90%;
  max-width: 600px;
  padding: 24px;
}

.search-input-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
  border: 2px solid var(--gray-200);
  border-radius: var(--radius);
  padding: 12px 16px;
  transition: border-color 0.2s;
}

.search-input-wrap:focus-within {
  border-color: var(--blue-mid);
}

.search-input-wrap svg {
  flex-shrink: 0;
  color: var(--gray-600);
}

.search-input {
  border: none;
  outline: none;
  font-size: 16px;
  font-family: inherit;
  width: 100%;
  background: none;
}

.search-results {
  margin-top: 16px;
  max-height: 400px;
  overflow-y: auto;
}

.search-result-item {
  display: block;
  padding: 12px 16px;
  border-radius: 6px;
  text-decoration: none;
  color: var(--gray-800);
  transition: background 0.15s;
}

.search-result-item:hover {
  background: var(--blue-light);
}

.search-result-item h4 {
  font-size: 15px;
  font-weight: 600;
  color: var(--blue-dark);
  margin-bottom: 2px;
}

.search-result-item p {
  font-size: 13px;
  color: var(--gray-600);
  line-height: 1.4;
}

.search-no-results {
  padding: 24px;
  text-align: center;
  color: var(--gray-600);
  font-size: 14px;
}

.search-btn {
  background: none;
  border: none;
  cursor: pointer;
  color: rgba(255,255,255,0.9);
  padding: 13px 14px;
  display: inline-flex;
  align-items: center;
  transition: color 0.15s;
}

.search-btn:hover {
  color: #fff;
}

/* ========== INFO PAGES (privacy, cookies, contact, 404) ========== */
.info-page {
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 40px 36px;
  max-width: 800px;
}

.info-page h1 {
  font-size: 28px;
  color: var(--blue-dark);
  margin-bottom: 8px;
}

.info-page .info-date {
  font-size: 13px;
  color: var(--gray-600);
  margin-bottom: 24px;
}

.info-page h2 {
  font-size: 20px;
  color: var(--blue-dark);
  margin: 28px 0 10px;
  padding-bottom: 6px;
  border-bottom: 2px solid var(--blue-light);
}

.info-page h3 {
  font-size: 16px;
  color: var(--blue-dark);
  margin: 20px 0 8px;
}

.info-page p {
  font-size: 15px;
  line-height: 1.7;
  color: var(--gray-800);
  margin-bottom: 12px;
}

.info-page ul, .info-page ol {
  margin: 8px 0 16px;
  padding-left: 24px;
}

.info-page li {
  font-size: 15px;
  line-height: 1.6;
  margin-bottom: 4px;
}

.info-page a {
  color: var(--blue-mid);
  text-decoration: none;
}

.info-page a:hover {
  text-decoration: underline;
}

/* Contact form */
.contact-form {
  margin-top: 20px;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: var(--gray-800);
  margin-bottom: 6px;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 12px 14px;
  border: 2px solid var(--gray-200);
  border-radius: 6px;
  font-size: 15px;
  font-family: inherit;
  transition: border-color 0.2s;
  background: var(--gray-100);
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--blue-mid);
  background: #fff;
}

.form-group textarea {
  min-height: 140px;
  resize: vertical;
}

.form-success {
  background: #e8f5e9;
  color: #1b5e20;
  padding: 16px 20px;
  border-radius: var(--radius);
  font-size: 15px;
  display: none;
}

/* 404 page */
.error-404 {
  text-align: center;
  padding: 60px 20px;
}

.error-404 .error-code {
  font-size: 120px;
  font-weight: 800;
  color: var(--blue-dark);
  line-height: 1;
  opacity: 0.15;
}

.error-404 h1 {
  font-size: 28px;
  margin: -20px 0 12px;
}

.error-404 p {
  max-width: 500px;
  margin: 0 auto 24px;
}

.error-404-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  margin-top: 20px;
}

/* ========== COOKIE BANNER ========== */
.cookie-banner {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--blue-dark);
  color: #fff;
  padding: 16px 24px;
  z-index: 300;
  box-shadow: 0 -4px 16px rgba(0,0,0,0.2);
}

.cookie-banner-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

.cookie-banner p {
  font-size: 14px;
  line-height: 1.5;
  flex: 1;
  min-width: 200px;
}

.cookie-banner a {
  color: #90caf9;
  text-decoration: none;
}

.cookie-banner a:hover {
  text-decoration: underline;
}

.cookie-banner-btns {
  display: flex;
  gap: 10px;
  flex-shrink: 0;
}

.cookie-btn {
  padding: 10px 20px;
  border: none;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
}

.cookie-btn-accept {
  background: #fff;
  color: var(--blue-dark);
}

.cookie-btn-decline {
  background: rgba(255,255,255,0.15);
  color: #fff;
}

/* ========== RESPONSIVE ========== */
@media (max-width: 1024px) {
  .blog-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .test-grid { grid-template-columns: 1fr; }
  .header-top { flex-direction: column; gap: 8px; }
  .test-body { padding: 20px; }
  .question-text { font-size: 17px; }
  .progress-bar-bg { width: 120px; }
  .image-grid { grid-template-columns: repeat(2, 1fr); }
  .results-actions { flex-direction: column; }
  .footer-columns { grid-template-columns: 1fr 1fr; gap: 24px; }

  .course-container { flex-direction: column; }
  .course-sidebar { width: 100%; position: static; }
  .theory-content { padding: 20px; }
  .practice-section { padding: 20px; }

  /* Hamburger menu */
  .header {
    position: relative;
  }

  .nav-toggle {
    display: block;
    position: absolute;
    right: 16px;
    top: 16px;
    z-index: 10;
  }

  .nav {
    position: static;
  }

  .nav-inner {
    display: none;
    flex-direction: column;
    padding: 0;
    gap: 0;
    overflow-x: visible;
  }

  .nav-inner.open {
    display: flex;
  }

  .nav-inner a {
    padding: 13px 20px;
    font-size: 14px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
  }

  .nav-inner a:last-child {
    border-bottom: none;
  }

  .nav-dropdown {
    position: static;
    flex-direction: column;
  }

  .nav-dropdown > a {
    padding: 13px 20px;
    font-size: 14px;
  }

  .nav-dropdown-menu {
    position: static;
    box-shadow: none;
    border-radius: 0;
    background: rgba(0,0,0,0.15);
    padding: 0;
    display: none;
  }

  .nav-dropdown.open .nav-dropdown-menu {
    display: block;
  }

  .nav-dropdown-menu a {
    padding: 11px 36px;
    font-size: 13px;
  }

  .search-btn {
    padding: 13px 20px;
    justify-content: flex-start;
    gap: 8px;
    font-size: 14px;
    color: rgba(255,255,255,0.9);
    border-bottom: 1px solid rgba(255,255,255,0.08);
  }

  .search-btn::after {
    content: 'S\00F8g';
    font-size: 14px;
    font-weight: 500;
  }

  .blog-featured {
    flex-direction: column;
    margin-left: 16px;
    margin-right: 16px;
  }
  .blog-featured-icon {
    min-width: unset;
    padding: 24px 0;
    font-size: 48px;
  }
  .blog-featured-content {
    padding: 20px 24px 24px;
  }
  .blog-featured-content h3 {
    font-size: 18px;
  }
  .blog-grid {
    grid-template-columns: 1fr;
    padding: 0 16px 32px;
  }
  .blog-article {
    padding: 24px 20px;
  }
  .blog-article-header h1 {
    font-size: 22px;
  }
  .blog-article h2 {
    font-size: 19px;
    margin-top: 28px;
  }

  .info-page {
    padding: 24px 20px;
  }
  .info-page h1 {
    font-size: 22px;
  }

  .error-404 .error-code {
    font-size: 80px;
  }

  .cookie-banner-inner {
    flex-direction: column;
    text-align: center;
  }

  .search-overlay {
    padding-top: 20px;
  }
  .search-box {
    width: 95%;
  }
}
