/*
Theme Name: Starter Didattica
Theme URI: https://example.com/starter-didattica
Author: Davide "The Prof." Bertolino
Description: Tema WordPress per blog STEM e didattica. Basato su Bootstrap 5 con percorsi di apprendimento, lezioni Gutenberg, quiz interattivi, blog. Mobile-first, completamente personalizzabile dal Customizer.
Version: 2.1.0
License: GPL v2 or later
Text Domain: starter-didattica
Requires at least: 5.9
Tested up to: 6.7
Requires PHP: 7.4
*/

/* ========================================
   CSS Variables
   ======================================== */
:root {
  --starter-primary: #2563eb;
  --starter-secondary: #0f172a;
  --starter-accent: #f59e0b;
  --starter-bg: #ffffff;
  --starter-bg-alt: #f8fafc;
  --starter-text: #1e293b;
  --starter-text-muted: #64748b;
  --starter-border: #e2e8f0;
  --starter-radius: 0.75rem;
  --starter-shadow: 0 4px 20px rgba(0,0,0,0.08);
  --starter-font: system-ui, -apple-system, sans-serif;
  --starter-font-heading: var(--starter-font);
  --starter-header-height: 70px;
  --starter-transition: 0.3s ease;
}

/* ========================================
   Base Overrides
   ======================================== */
html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--starter-font);
  color: var(--starter-text);
  background: var(--starter-bg);
}

h1, h2, h3, h4, h5, h6,
.h1, .h2, .h3, .h4, .h5, .h6 {
  font-family: var(--starter-font-heading);
  font-weight: 700;
  color: var(--starter-secondary);
}

a {
  color: var(--starter-primary);
  text-decoration: none;
  transition: color var(--starter-transition);
}

a:hover {
  color: var(--starter-secondary);
}

img {
  max-width: 100%;
  height: auto;
}

/* ========================================
   Header
   ======================================== */
.starter-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1030;
  height: var(--starter-header-height);
  background: transparent;
  transition: background var(--starter-transition), box-shadow var(--starter-transition);
}

.starter-header.is-scrolled {
  background: var(--starter-bg);
  box-shadow: var(--starter-shadow);
}

.starter-header.starter-header--solid {
  background: var(--starter-bg);
  box-shadow: var(--starter-shadow);
}

.starter-header .navbar {
  height: var(--starter-header-height);
  padding: 0;
}

/* Logo */
.starter-logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.starter-logo img {
  width: auto;
  transition: filter var(--starter-transition);
  filter: brightness(0) invert(1); /* Bianco su sfondo scuro */
}

.starter-header.is-scrolled .starter-logo img,
.starter-header.starter-header--solid .starter-logo img {
  filter: none; /* Colore originale su sfondo chiaro */
}

/* Se solo testo */
.starter-logo-text {
  font-size: 1.5rem;
  font-weight: 700;
  color: #fff;
  transition: color var(--starter-transition);
}

.starter-header.is-scrolled .starter-logo-text {
  color: var(--starter-secondary);
}

.starter-header.starter-header--solid .starter-logo-text {
  color: var(--starter-secondary);
}

/* Nav Links */
.starter-header .nav-link {
  color: rgba(255,255,255,0.9);
  font-weight: 500;
  padding: 0.5rem 1rem !important;
  transition: color var(--starter-transition);
}

.starter-header .nav-link:hover {
  color: #fff;
}

.starter-header.is-scrolled .nav-link {
  color: var(--starter-text);
}

.starter-header.starter-header--solid .nav-link {
  color: var(--starter-text);
}

.starter-header.is-scrolled .nav-link:hover {
  color: var(--starter-primary);
}

.starter-header.starter-header--solid .nav-link:hover {
  color: var(--starter-primary);
}

/* Mobile Toggle */
.starter-header .navbar-toggler {
  border: none;
  padding: 0.5rem;
}

.starter-header .navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28255, 255, 255, 0.9%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

.starter-header.is-scrolled .navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%2830, 41, 59, 0.9%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

.starter-header.starter-header--solid .navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%2830, 41, 59, 0.9%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* Mobile Menu */
@media (max-width: 991.98px) {
  .starter-header .navbar-collapse {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--starter-bg);
    padding: 1rem;
    box-shadow: var(--starter-shadow);
  }
  
  .starter-header .navbar-collapse .nav-link {
    color: var(--starter-text);
    padding: 0.75rem 0 !important;
  }
}

/* ========================================
   Hero Section
   ======================================== */
.starter-hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: calc(var(--starter-header-height) + 3rem) 0 4rem;
  background: linear-gradient(135deg, var(--starter-secondary) 0%, #1e3a5f 100%);
  color: #fff;
  overflow: hidden;
}

.starter-hero.has-bg-image {
  background-size: cover;
  background-position: center;
}

.starter-hero.has-bg-image::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.8), rgba(30, 58, 95, 0.75));
}

.starter-hero > .container {
  position: relative;
  z-index: 1;
}

.starter-hero__icon {
  width: 100px;
  height: 100px;
  border-radius: 1.5rem;
  box-shadow: 0 20px 50px rgba(0,0,0,0.3);
  margin-bottom: 1.5rem;
}

.starter-hero__title {
  font-size: clamp(2.25rem, 6vw, 3.5rem);
  font-weight: 800;
  color: #fff;
  margin-bottom: 1rem;
  letter-spacing: -0.02em;
}

.starter-hero__tagline {
  font-size: clamp(1.125rem, 2.5vw, 1.5rem);
  color: rgba(255,255,255,0.85);
  margin-bottom: 1rem;
  font-weight: 300;
}

.starter-hero__description {
  font-size: 1.125rem;
  color: rgba(255,255,255,0.7);
  margin-bottom: 2rem;
  max-width: 600px;
}

/* ========================================
   Buttons
   ======================================== */
.btn-starter-primary {
  background: var(--starter-primary);
  border-color: var(--starter-primary);
  color: #fff;
  padding: 0.75rem 1.75rem;
  font-weight: 600;
  border-radius: var(--starter-radius);
  transition: all var(--starter-transition);
}

.btn-starter-primary:hover {
  background: #1d4ed8;
  border-color: #1d4ed8;
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(37, 99, 235, 0.4);
}

.btn-starter-outline {
  background: transparent;
  border: 2px solid rgba(255,255,255,0.3);
  color: #fff;
  padding: 0.75rem 1.75rem;
  font-weight: 600;
  border-radius: var(--starter-radius);
  transition: all var(--starter-transition);
}

.btn-starter-outline:hover {
  background: #fff;
  border-color: #fff;
  color: var(--starter-secondary);
}

/* ========================================
   Sections
   ======================================== */
.starter-section {
  padding: 5rem 0;
}

.starter-section--light {
  background: var(--starter-bg);
}

.starter-section--alt {
  background: var(--starter-bg-alt);
}

.starter-section--dark {
  background: var(--starter-secondary);
  color: #fff;
}

.starter-section--dark h2,
.starter-section--dark h3 {
  color: #fff;
}

.starter-section__header {
  text-align: center;
  margin-bottom: 3rem;
}

.starter-section__title {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  margin-bottom: 1rem;
}

.starter-section__subtitle {
  font-size: 1.125rem;
  color: var(--starter-text-muted);
  max-width: 600px;
  margin: 0 auto;
}

/* ========================================
   Footer
   ======================================== */
.starter-footer {
  background: var(--starter-secondary);
  color: rgba(255,255,255,0.7);
  padding: 4rem 0 2rem;
}

.starter-footer h5 {
  color: #fff;
  font-size: 1rem;
  margin-bottom: 1.25rem;
}

.starter-footer a {
  color: rgba(255,255,255,0.7);
}

.starter-footer a:hover {
  color: #fff;
}

.starter-footer__logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
}

.starter-footer__logo img {
  filter: brightness(0) invert(1); /* Logo bianco nel footer */
}

.starter-footer__logo span {
  font-size: 1.25rem;
  font-weight: 700;
  color: #fff;
}

.starter-footer ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

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

.starter-footer__brand p {
  margin-top: 1rem;
  font-size: 0.9375rem;
}

.starter-footer__social {
  display: flex;
  gap: 0.75rem;
  margin-top: 1.25rem;
}

.starter-footer__social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: rgba(255,255,255,0.1);
  border-radius: 50%;
  transition: all var(--starter-transition);
}

.starter-footer__social a:hover {
  background: var(--starter-primary);
  color: #fff;
}

.starter-footer__social svg {
  width: 18px;
  height: 18px;
}

.starter-footer__bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  margin-top: 3rem;
  padding-top: 2rem;
  font-size: 0.875rem;
}

/* ========================================
   Scroll Animations
   ======================================== */
[data-aos] {
  opacity: 0;
  transition-property: opacity, transform;
}

[data-aos].aos-animate {
  opacity: 1;
}

[data-aos="fade-up"] {
  transform: translateY(30px);
}

[data-aos="fade-up"].aos-animate {
  transform: translateY(0);
}

[data-aos="fade-down"] {
  transform: translateY(-30px);
}

[data-aos="fade-down"].aos-animate {
  transform: translateY(0);
}

[data-aos="fade-left"] {
  transform: translateX(30px);
}

[data-aos="fade-left"].aos-animate {
  transform: translateX(0);
}

[data-aos="fade-right"] {
  transform: translateX(-30px);
}

[data-aos="fade-right"].aos-animate {
  transform: translateX(0);
}

[data-aos="zoom-in"] {
  transform: scale(0.9);
}

[data-aos="zoom-in"].aos-animate {
  transform: scale(1);
}

/* ========================================
   Homepage Section Cards
   ======================================== */
.starter-sections-grid {
  display: grid;
  gap: 2rem;
}

.starter-sections-grid--cols-1 {
  grid-template-columns: 1fr;
  max-width: 800px;
  margin: 0 auto;
}

.starter-sections-grid--cols-2 {
  grid-template-columns: 1fr;
}

.starter-sections-grid--cols-3 {
  grid-template-columns: 1fr;
}

@media (min-width: 768px) {
  .starter-sections-grid--cols-2 {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .starter-sections-grid--cols-3 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 992px) {
  .starter-sections-grid--cols-3 {
    grid-template-columns: repeat(3, 1fr);
  }
}

.starter-section-card {
  background: #fff;
  border-radius: var(--starter-radius);
  overflow: hidden;
  box-shadow: var(--starter-shadow);
  transition: transform var(--starter-transition), box-shadow var(--starter-transition);
  height: 100%;
  display: flex;
  flex-direction: column;
}

.starter-section-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 40px rgba(0,0,0,0.12);
}

.starter-section--dark .starter-section-card {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
}

.starter-section-card__image {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16/10;
}

.starter-section-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--starter-transition);
}

.starter-section-card:hover .starter-section-card__image img {
  transform: scale(1.05);
}

.starter-section-card__content {
  padding: 1.5rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.starter-section-card__title {
  font-size: 1.25rem;
  margin-bottom: 0.75rem;
}

.starter-section-card__title a {
  color: var(--starter-secondary);
  text-decoration: none;
}

.starter-section-card__title a:hover {
  color: var(--starter-primary);
}

.starter-section--dark .starter-section-card__title,
.starter-section--dark .starter-section-card__title a {
  color: #fff;
}

.starter-section-card__text {
  color: var(--starter-text-muted);
  font-size: 0.9375rem;
  line-height: 1.6;
  margin-bottom: 1rem;
  flex: 1;
}

.starter-section--dark .starter-section-card__text {
  color: rgba(255,255,255,0.7);
}

.starter-section-card__link {
  font-weight: 600;
  font-size: 0.9375rem;
  color: var(--starter-primary);
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  margin-top: auto;
}

.starter-section-card__link:hover {
  gap: 0.5rem;
}

/* ========================================
   CTA Section
   ======================================== */
.starter-cta {
  padding: 5rem 0;
  background: linear-gradient(135deg, var(--starter-primary) 0%, #1d4ed8 100%);
  color: #fff;
}

.starter-cta__title {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  color: #fff;
  margin-bottom: 1rem;
}

.starter-cta__text {
  font-size: 1.125rem;
  opacity: 0.9;
  margin-bottom: 2rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.starter-store-badge {
  display: inline-block;
  transition: transform var(--starter-transition), opacity var(--starter-transition);
}

.starter-store-badge:hover {
  transform: scale(1.05);
  opacity: 0.9;
}

.starter-store-badge img {
  height: 50px;
  width: auto;
}

/* ========================================
   Utilities
   ======================================== */
.screen-reader-text {
  clip: rect(1px, 1px, 1px, 1px);
  position: absolute !important;
  height: 1px;
  width: 1px;
  overflow: hidden;
}

/* ========================================
   Plugin Archive Hero
   ======================================== */
.starter-archive-hero {
  padding: calc(var(--starter-header-height) + 4rem) 0 3rem;
  background: linear-gradient(135deg, var(--starter-secondary) 0%, #1e3a5f 100%);
  color: #fff;
}

.starter-archive-hero__title {
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 800;
  color: #fff;
  margin-bottom: 0.75rem;
}

.starter-archive-hero__desc {
  font-size: 1.125rem;
  color: rgba(255,255,255,0.75);
  max-width: 600px;
  margin: 0 auto;
}

/* ========================================
   Plugin Filters
   ======================================== */
.starter-plugin-filters {
  padding: 1.5rem 0;
  border-bottom: 1px solid var(--starter-border);
}

.starter-filter-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.5rem 1rem;
  border-radius: 2rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--starter-text-muted);
  background: var(--starter-bg-alt);
  border: 1px solid transparent;
  transition: all var(--starter-transition);
  text-decoration: none;
}

.starter-filter-btn:hover {
  color: var(--starter-primary);
  border-color: var(--starter-primary);
  background: #fff;
}

.starter-filter-btn.is-active {
  background: var(--starter-primary);
  color: #fff;
}

.starter-filter-btn__count {
  font-size: 0.75rem;
  opacity: 0.7;
}

/* ========================================
   Plugin Grid
   ======================================== */
.starter-plugin-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

@media (min-width: 768px) {
  .starter-plugin-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 992px) {
  .starter-plugin-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* ========================================
   Plugin Card
   ======================================== */
.starter-plugin-card {
  background: #fff;
  border-radius: var(--starter-radius);
  border: 1px solid var(--starter-border);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  height: 100%;
  transition: transform var(--starter-transition), box-shadow var(--starter-transition);
}

.starter-plugin-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--starter-shadow);
}

.starter-plugin-card__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 1rem;
}

.starter-plugin-card__icon {
  display: block;
}

.starter-plugin-card__icon img {
  width: 56px;
  height: 56px;
  border-radius: 0.75rem;
  object-fit: cover;
}

.starter-plugin-card__icon--placeholder {
  width: 56px;
  height: 56px;
  border-radius: 0.75rem;
  background: var(--starter-bg-alt);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--starter-text-muted);
}

.starter-plugin-card__version {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--starter-primary);
  background: rgba(37, 99, 235, 0.08);
  padding: 0.2rem 0.5rem;
  border-radius: 1rem;
}

.starter-plugin-card__body {
  flex: 1;
}

.starter-plugin-card__title {
  font-size: 1.125rem;
  margin-bottom: 0.5rem;
}

.starter-plugin-card__title a {
  color: var(--starter-secondary);
  text-decoration: none;
}

.starter-plugin-card__title a:hover {
  color: var(--starter-primary);
}

.starter-plugin-card__cats {
  display: flex;
  flex-wrap: wrap;
  gap: 0.375rem;
  margin-bottom: 0.75rem;
}

.starter-plugin-card__cat {
  font-size: 0.75rem;
  color: var(--starter-text-muted);
  background: var(--starter-bg-alt);
  padding: 0.15rem 0.5rem;
  border-radius: 0.25rem;
  text-decoration: none;
}

.starter-plugin-card__cat:hover {
  color: var(--starter-primary);
}

.starter-plugin-card__excerpt {
  font-size: 0.875rem;
  color: var(--starter-text-muted);
  line-height: 1.6;
  margin-bottom: 1rem;
}

.starter-plugin-card__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 1rem;
  border-top: 1px solid var(--starter-border);
  margin-top: auto;
}

.starter-plugin-card__meta {
  display: flex;
  gap: 0.75rem;
  font-size: 0.75rem;
  color: var(--starter-text-muted);
}

.starter-plugin-card__license {
  font-weight: 600;
}

.starter-plugin-card__link {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--starter-primary);
  text-decoration: none;
}

.starter-plugin-card__link:hover {
  color: var(--starter-secondary);
}

/* ========================================
   Single Plugin Hero
   ======================================== */
.starter-plugin-hero {
  padding: calc(var(--starter-header-height) + 3rem) 0 3rem;
  background: linear-gradient(135deg, var(--starter-secondary) 0%, #1e3a5f 100%);
  color: #fff;
}

.starter-plugin-hero__breadcrumb {
  font-size: 0.875rem;
  margin-bottom: 1.5rem;
  color: rgba(255,255,255,0.6);
}

.starter-plugin-hero__breadcrumb a {
  color: rgba(255,255,255,0.7);
  text-decoration: none;
}

.starter-plugin-hero__breadcrumb a:hover {
  color: #fff;
}

.starter-plugin-hero__sep {
  margin: 0 0.5rem;
}

.starter-plugin-hero__icon {
  flex-shrink: 0;
}

.starter-plugin-hero__icon img {
  width: 72px;
  height: 72px;
  border-radius: 1rem;
  object-fit: cover;
  box-shadow: 0 8px 25px rgba(0,0,0,0.3);
}

.starter-plugin-hero__title {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 800;
  color: #fff;
  margin-bottom: 0.25rem;
}

.starter-plugin-hero__version {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 600;
  background: rgba(255,255,255,0.15);
  padding: 0.2rem 0.6rem;
  border-radius: 1rem;
  margin-bottom: 0.5rem;
}

.starter-plugin-hero__cats {
  display: flex;
  flex-wrap: wrap;
  gap: 0.375rem;
  margin-top: 0.5rem;
}

.starter-plugin-hero__cats a {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.7);
  background: rgba(255,255,255,0.1);
  padding: 0.2rem 0.6rem;
  border-radius: 0.25rem;
  text-decoration: none;
}

.starter-plugin-hero__cats a:hover {
  background: rgba(255,255,255,0.2);
  color: #fff;
}

.starter-plugin-hero__excerpt {
  font-size: 1.125rem;
  color: rgba(255,255,255,0.8);
  max-width: 700px;
}

.starter-plugin-hero .btn-starter-outline {
  border-color: rgba(255,255,255,0.3);
}

/* ========================================
   Single Plugin Content
   ======================================== */
.starter-plugin-content {
  background: #fff;
  border-radius: var(--starter-radius);
  padding: 2rem;
  margin-bottom: 2rem;
  overflow-wrap: break-word;
  word-wrap: break-word;
  min-width: 0;
  color: var(--starter-text);
}

.starter-plugin-content h1,
.starter-plugin-content h2,
.starter-plugin-content h3,
.starter-plugin-content h4,
.starter-plugin-content h5,
.starter-plugin-content h6 {
  color: var(--starter-secondary);
}

.starter-plugin-content p,
.starter-plugin-content li,
.starter-plugin-content td,
.starter-plugin-content th,
.starter-plugin-content dd,
.starter-plugin-content dt,
.starter-plugin-content span,
.starter-plugin-content div {
  color: var(--starter-text);
}

.starter-plugin-content a {
  color: var(--starter-primary);
}

.starter-plugin-content a:hover {
  color: var(--starter-secondary);
}

@media (max-width: 575.98px) {
  .starter-plugin-content {
    padding: 1.25rem;
  }
}

.starter-plugin-content h2 {
  font-size: 1.5rem;
  margin-top: 2rem;
  margin-bottom: 0.75rem;
}

.starter-plugin-content h3 {
  font-size: 1.25rem;
  margin-top: 1.5rem;
  margin-bottom: 0.5rem;
}

.starter-plugin-content p {
  line-height: 1.7;
  margin-bottom: 1rem;
}

.starter-plugin-content pre {
  background: var(--starter-secondary);
  color: #e2e8f0;
  padding: 1.25rem;
  border-radius: 0.5rem;
  overflow-x: auto;
  font-size: 0.875rem;
  margin-bottom: 1.5rem;
  max-width: 100%;
  white-space: pre-wrap;
  word-break: break-word;
}

.starter-plugin-content code {
  font-size: 0.875em;
  background: var(--starter-bg-alt);
  padding: 0.15em 0.4em;
  border-radius: 0.25rem;
}

.starter-plugin-content pre code {
  background: none;
  padding: 0;
}

.starter-plugin-content img {
  border-radius: 0.5rem;
  margin: 1rem 0;
}

/* Table responsive wrapper */
.starter-plugin-content table,
.starter-plugin-content .wp-block-table table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.875rem;
  margin-bottom: 1.5rem;
}

.starter-plugin-content .wp-block-table {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  display: block;
  max-width: 100%;
}

.starter-plugin-content table th,
.starter-plugin-content table td {
  padding: 0.625rem 0.75rem;
  border: 1px solid var(--starter-border);
  text-align: left;
}

.starter-plugin-content table th {
  background: var(--starter-bg-alt);
  font-weight: 600;
}

.starter-plugin-content table code {
  font-size: 0.8em;
  white-space: nowrap;
}

/* WP Group block (disclaimer box etc) */
.starter-plugin-content .wp-block-group {
  max-width: 100%;
  overflow-wrap: break-word;
}

@media (max-width: 575.98px) {
  .starter-plugin-content table {
    font-size: 0.8rem;
  }
  .starter-plugin-content table th,
  .starter-plugin-content table td {
    padding: 0.5rem;
  }
}

/* ========================================
   Plugin Changelog
   ======================================== */
.starter-plugin-changelog {
  background: #fff;
  border-radius: var(--starter-radius);
  padding: 2rem;
}

.starter-plugin-changelog h2 {
  font-size: 1.5rem;
  margin-bottom: 1.5rem;
}

.starter-plugin-changelog__version {
  border-bottom: 1px solid var(--starter-border);
}

.starter-plugin-changelog__version:last-child {
  border-bottom: none;
}

.starter-plugin-changelog__toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 1rem 0;
  background: none;
  border: none;
  cursor: pointer;
  font-family: inherit;
  text-align: left;
}

.starter-plugin-changelog__toggle svg {
  transition: transform var(--starter-transition);
  color: var(--starter-text-muted);
  flex-shrink: 0;
}

.starter-plugin-changelog__version.is-open .starter-plugin-changelog__toggle svg {
  transform: rotate(180deg);
}

.starter-plugin-changelog__ver {
  font-size: 1rem;
  font-weight: 700;
  color: var(--starter-secondary);
}

.starter-plugin-changelog__body {
  padding-bottom: 1rem;
}

.starter-plugin-changelog__body ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.starter-plugin-changelog__body li {
  padding: 0.375rem 0 0.375rem 1.25rem;
  position: relative;
  font-size: 0.9375rem;
  color: var(--starter-text-muted);
}

.starter-plugin-changelog__body li::before {
  content: '•';
  position: absolute;
  left: 0;
  color: var(--starter-primary);
  font-weight: 700;
}

/* ========================================
   Plugin Sidebar
   ======================================== */
.starter-plugin-sidebar {
  background: #fff;
  border-radius: var(--starter-radius);
  padding: 1.5rem;
  position: sticky;
  top: calc(var(--starter-header-height) + 2rem);
}

.starter-plugin-sidebar__title {
  font-size: 1.125rem;
  margin-bottom: 1.25rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--starter-border);
}

.starter-plugin-sidebar__list {
  margin-bottom: 1.5rem;
}

.starter-plugin-sidebar__list dt {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--starter-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.03em;
  margin-bottom: 0.15rem;
}

.starter-plugin-sidebar__list dd {
  font-size: 0.9375rem;
  color: var(--starter-secondary);
  margin-bottom: 1rem;
  margin-left: 0;
}

.starter-plugin-sidebar__stats {
  display: flex;
  gap: 1rem;
  margin-bottom: 1.25rem;
  padding: 1rem;
  background: var(--starter-bg-alt);
  border-radius: 0.5rem;
}

.starter-plugin-sidebar__stat {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
  text-align: center;
}

.starter-plugin-sidebar__stat svg {
  color: var(--starter-text-muted);
}

.starter-plugin-sidebar__stat span {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--starter-secondary);
  line-height: 1;
}

.starter-plugin-sidebar__stat small {
  font-size: 0.75rem;
  color: var(--starter-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* ========================================
   Single Post Hero
   ======================================== */
.starter-post-hero {
  padding: calc(var(--starter-header-height) + 4rem) 0 3rem;
  background: linear-gradient(135deg, var(--starter-secondary) 0%, #1e3a5f 100%);
  color: #fff;
}

.starter-post-hero__cats {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.starter-post-hero__cats a {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--starter-accent);
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.starter-post-hero__cats a:hover {
  color: #fff;
}

.starter-post-hero__title {
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 800;
  color: #fff;
  margin-bottom: 1rem;
  line-height: 1.15;
}

.starter-post-hero__excerpt {
  font-size: 1.125rem;
  color: rgba(255,255,255,0.8);
  margin-bottom: 1.5rem;
  line-height: 1.6;
}

.starter-post-hero__meta {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.6);
}

.starter-post-hero__sep {
  margin: 0 0.5rem;
}

/* ========================================
   Post Featured Image
   ======================================== */
.starter-post-thumbnail {
  margin-top: -2rem;
  margin-bottom: 2rem;
  position: relative;
  z-index: 1;
}

.starter-post-thumbnail__img {
  border-radius: var(--starter-radius);
  box-shadow: 0 8px 30px rgba(0,0,0,0.15);
  width: 100%;
  height: auto;
}

/* ========================================
   Post Content
   ======================================== */
.starter-post-content {
  font-size: 1.0625rem;
  line-height: 1.8;
}

.starter-post-content h2 {
  font-size: 1.625rem;
  margin-top: 2.5rem;
  margin-bottom: 0.75rem;
}

.starter-post-content h3 {
  font-size: 1.375rem;
  margin-top: 2rem;
  margin-bottom: 0.5rem;
}

.starter-post-content h4 {
  font-size: 1.125rem;
  margin-top: 1.5rem;
  margin-bottom: 0.5rem;
}

.starter-post-content p {
  margin-bottom: 1.25rem;
}

.starter-post-content blockquote {
  border-left: 4px solid var(--starter-primary);
  margin: 2rem 0;
  padding: 1rem 1.5rem;
  background: var(--starter-bg-alt);
  border-radius: 0 var(--starter-radius) var(--starter-radius) 0;
  font-style: italic;
  color: var(--starter-text-muted);
}

.starter-post-content pre {
  background: var(--starter-secondary);
  color: #e2e8f0;
  padding: 1.25rem;
  border-radius: 0.5rem;
  overflow-x: auto;
  font-size: 0.875rem;
  margin: 1.5rem 0;
}

.starter-post-content code {
  font-size: 0.875em;
  background: var(--starter-bg-alt);
  padding: 0.15em 0.4em;
  border-radius: 0.25rem;
}

.starter-post-content pre code {
  background: none;
  padding: 0;
}

.starter-post-content img {
  border-radius: 0.5rem;
  margin: 1.5rem 0;
}

.starter-post-content ul,
.starter-post-content ol {
  margin-bottom: 1.25rem;
  padding-left: 1.5rem;
}

.starter-post-content li {
  margin-bottom: 0.375rem;
}

/* ========================================
   Post Tags
   ======================================== */
.starter-post-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid var(--starter-border);
}

.starter-post-tag {
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--starter-text-muted);
  background: var(--starter-bg-alt);
  padding: 0.3rem 0.75rem;
  border-radius: 2rem;
  text-decoration: none;
  transition: all var(--starter-transition);
}

.starter-post-tag:hover {
  color: var(--starter-primary);
  background: rgba(37, 99, 235, 0.08);
}

/* ========================================
   Post Navigation
   ======================================== */
.starter-post-nav {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid var(--starter-border);
}

@media (max-width: 575.98px) {
  .starter-post-nav {
    grid-template-columns: 1fr;
  }
}

.starter-post-nav__item {
  display: block;
  padding: 1.25rem;
  background: var(--starter-bg-alt);
  border-radius: var(--starter-radius);
  text-decoration: none;
  transition: all var(--starter-transition);
}

.starter-post-nav__item:hover {
  background: #fff;
  box-shadow: var(--starter-shadow);
  transform: translateY(-2px);
}

.starter-post-nav__next {
  text-align: right;
}

.starter-post-nav__label {
  display: block;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--starter-text-muted);
  margin-bottom: 0.375rem;
}

.starter-post-nav__title {
  display: block;
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--starter-secondary);
  line-height: 1.4;
}

/* ========================================
   Breadcrumbs
   ======================================== */
.starter-breadcrumb {
  background: var(--starter-bg-alt);
  border-bottom: 1px solid var(--starter-border);
  padding: 0.75rem 0;
}

.starter-breadcrumb__list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 0.8125rem;
}

.starter-breadcrumb__item {
  display: flex;
  align-items: center;
  color: var(--starter-text-muted);
}

.starter-breadcrumb__item:not(:last-child)::after {
  content: '›';
  margin: 0 0.5rem;
  color: var(--starter-border);
  font-size: 1rem;
}

.starter-breadcrumb__item a {
  color: var(--starter-text-muted);
  text-decoration: none;
  transition: color var(--starter-transition);
}

.starter-breadcrumb__item a:hover {
  color: var(--starter-primary);
}

.starter-breadcrumb__item.is-current span {
  color: var(--starter-secondary);
  font-weight: 500;
}

/* ========================================
   Map
   ======================================== */
.starter-map {
  border-radius: var(--starter-radius);
  overflow: hidden;
  box-shadow: var(--starter-shadow);
}

.starter-map iframe {
  display: block;
}

.starter-map-header {
  margin-bottom: 1rem;
  text-align: center;
}

.starter-map-name {
  display: block;
  font-size: 1.25rem;
  color: var(--starter-secondary);
}

.starter-map-address {
  display: block;
  color: var(--starter-text-muted);
  font-size: 0.9375rem;
  margin-top: 0.25rem;
}

/* ========================================
   Blog Single (simple version)
   ======================================== */
.starter-post-header {
  margin-bottom: 2rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--starter-border);
}

.starter-post-title {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  line-height: 1.2;
}

.starter-post-meta {
  color: var(--starter-text-muted);
  font-size: 0.9375rem;
  margin-top: 0.75rem;
}

.starter-post-thumbnail {
  margin-bottom: 2rem;
}

.starter-post-content {
  line-height: 1.8;
}

.starter-post-content h2 {
  margin-top: 2.5rem;
  margin-bottom: 0.75rem;
}

.starter-post-content h3 {
  margin-top: 2rem;
  margin-bottom: 0.5rem;
}

.starter-post-content p {
  margin-bottom: 1.25rem;
}

.starter-post-content blockquote {
  border-left: 4px solid var(--starter-primary);
  margin: 2rem 0;
  padding: 1rem 1.5rem;
  background: var(--starter-bg-alt);
  border-radius: 0 var(--starter-radius) var(--starter-radius) 0;
  font-style: italic;
  color: var(--starter-text-muted);
}

.starter-post-content pre {
  background: var(--starter-secondary);
  color: #e2e8f0;
  padding: 1.25rem;
  border-radius: 0.5rem;
  overflow-x: auto;
  font-size: 0.875rem;
  margin: 1.5rem 0;
}

.starter-post-content code {
  font-size: 0.875em;
  background: var(--starter-bg-alt);
  padding: 0.15em 0.4em;
  border-radius: 0.25rem;
}

.starter-post-content pre code {
  background: none;
  padding: 0;
}

.starter-post-nav {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid var(--starter-border);
}

@media (max-width: 575.98px) {
  .starter-post-nav {
    grid-template-columns: 1fr;
  }
}

.starter-post-nav__prev,
.starter-post-nav__next {
  padding: 1rem;
  background: var(--starter-bg-alt);
  border-radius: var(--starter-radius);
}

.starter-post-nav__next {
  text-align: right;
}

.starter-post-nav__label {
  display: block;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  color: var(--starter-text-muted);
  margin-bottom: 0.25rem;
}

.starter-post-nav__title {
  font-weight: 600;
  color: var(--starter-secondary);
  text-decoration: none;
}

.starter-post-nav__title:hover {
  color: var(--starter-primary);
}

/* ========================================
   Comments
   ======================================== */
.starter-comments {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid var(--starter-border);
}

.starter-comments__title {
  margin-bottom: 1.5rem;
}

.starter-comments__list {
  list-style: none;
  padding: 0;
}

.starter-comments__list .comment {
  padding: 1rem 0;
  border-bottom: 1px solid var(--starter-border);
}

/* ========================================
   Course Cards
   ======================================== */
.starter-course-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

@media (min-width: 768px) {
  .starter-course-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 992px) {
  .starter-course-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.starter-course-card {
  background: #fff;
  border-radius: var(--starter-radius);
  overflow: hidden;
  box-shadow: var(--starter-shadow);
  transition: transform var(--starter-transition), box-shadow var(--starter-transition);
  display: flex;
  flex-direction: column;
  height: 100%;
}

.starter-course-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 40px rgba(0,0,0,0.12);
}

.starter-course-card__image {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16/9;
}

.starter-course-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--starter-transition);
}

.starter-course-card:hover .starter-course-card__image img {
  transform: scale(1.05);
}

.starter-course-card__level {
  position: absolute;
  top: 0.75rem;
  left: 0.75rem;
  padding: 0.25rem 0.75rem;
  border-radius: 2rem;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.starter-course-card__level--base {
  background: #dcfce7;
  color: #166534;
}

.starter-course-card__level--intermedio {
  background: #fef3c7;
  color: #92400e;
}

.starter-course-card__level--avanzato {
  background: #fce7f3;
  color: #9d174d;
}

.starter-course-card__body {
  padding: 1.5rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.starter-course-card__title {
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
}

.starter-course-card__title a {
  color: var(--starter-secondary);
  text-decoration: none;
}

.starter-course-card__title a:hover {
  color: var(--starter-primary);
}

.starter-course-card__excerpt {
  color: var(--starter-text-muted);
  font-size: 0.9375rem;
  line-height: 1.6;
  margin-bottom: 1rem;
  flex: 1;
}

.starter-course-card__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.8125rem;
  color: var(--starter-text-muted);
  margin-bottom: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--starter-border);
}

.starter-course-card__meta span {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.starter-course-card__meta svg {
  width: 14px;
  height: 14px;
  opacity: 0.6;
}

.starter-course-card__footer {
  padding: 0 1.5rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.starter-course-card__price {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--starter-primary);
}

.starter-course-card__price--free {
  color: #16a34a;
}

.starter-course-card__link {
  font-weight: 600;
  font-size: 0.9375rem;
  color: var(--starter-primary);
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
}

.starter-course-card__link:hover {
  gap: 0.5rem;
}

/* ========================================
   Single Course
   ======================================== */
.starter-course-hero {
  padding: calc(var(--starter-header-height) + 3rem) 0 3rem;
  background: var(--starter-bg-alt);
}

.starter-course-hero__title {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  margin-bottom: 0.75rem;
}

.starter-course-hero__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  color: var(--starter-text-muted);
  margin-bottom: 1.5rem;
}

.starter-course-hero__meta span {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.starter-course-hero__meta svg {
  width: 16px;
  height: 16px;
}

.starter-course-sidebar {
  background: #fff;
  border-radius: var(--starter-radius);
  box-shadow: var(--starter-shadow);
  padding: 1.75rem;
  position: sticky;
  top: calc(var(--starter-header-height) + 2rem);
}

.starter-course-sidebar__title {
  font-size: 1rem;
  margin-bottom: 1.25rem;
  padding-bottom: 0.75rem;
  border-bottom: 2px solid var(--starter-primary);
}

.starter-course-sidebar__list {
  margin: 0;
}

.starter-course-sidebar__list dt {
  font-size: 0.8125rem;
  color: var(--starter-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 0.25rem;
}

.starter-course-sidebar__list dd {
  font-weight: 600;
  margin-bottom: 1rem;
  margin-left: 0;
}

.starter-course-sidebar__price {
  text-align: center;
  padding: 1rem 0;
  border-top: 1px solid var(--starter-border);
  margin-top: 0.5rem;
}

.starter-course-sidebar__price-value {
  font-size: 2rem;
  font-weight: 800;
  color: var(--starter-primary);
  display: block;
}

.starter-course-sidebar__price-value--free {
  color: #16a34a;
}

/* Course content area */
.starter-course-content {
  background: #fff;
  border-radius: var(--starter-radius);
  box-shadow: var(--starter-shadow);
  padding: 2rem;
  margin-bottom: 2rem;
}

.starter-course-content h2,
.starter-course-content h3 {
  margin-top: 2rem;
}

.starter-course-content h2:first-child,
.starter-course-content h3:first-child {
  margin-top: 0;
}

/* Program / Lessons list */
.starter-course-program {
  margin-top: 2rem;
}

.starter-course-program__item {
  background: #fff;
  border: 1px solid var(--starter-border);
  border-radius: var(--starter-radius);
  margin-bottom: 0.5rem;
  overflow: hidden;
}

.starter-course-program__toggle {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.25rem;
  background: none;
  border: none;
  cursor: pointer;
  font-size: 1rem;
  font-weight: 600;
  color: var(--starter-text);
  text-align: left;
  transition: background var(--starter-transition);
}

.starter-course-program__toggle:hover {
  background: var(--starter-bg-alt);
}

.starter-course-program__toggle svg {
  transition: transform var(--starter-transition);
  flex-shrink: 0;
}

.starter-course-program__item.is-open .starter-course-program__toggle svg {
  transform: rotate(180deg);
}

.starter-course-program__num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--starter-primary);
  color: #fff;
  font-size: 0.8125rem;
  font-weight: 700;
  margin-right: 0.75rem;
  flex-shrink: 0;
}

.starter-course-program__body {
  padding: 0 1.25rem 1rem;
  color: var(--starter-text-muted);
  font-size: 0.9375rem;
  line-height: 1.7;
}

/* ========================================
   Quiz System
   ======================================== */
.starter-quiz {
  background: #fff;
  border-radius: var(--starter-radius);
  box-shadow: var(--starter-shadow);
  padding: 2rem;
  margin: 2rem 0;
}

.starter-quiz__title {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
}

.starter-quiz__desc {
  color: var(--starter-text-muted);
  margin-bottom: 2rem;
}

.starter-quiz__progress {
  height: 6px;
  background: var(--starter-border);
  border-radius: 3px;
  margin-bottom: 2rem;
  overflow: hidden;
}

.starter-quiz__progress-bar {
  height: 100%;
  background: var(--starter-primary);
  border-radius: 3px;
  transition: width 0.4s ease;
}

.starter-quiz__question {
  display: none;
}

.starter-quiz__question.is-active {
  display: block;
}

.starter-quiz__question-num {
  font-size: 0.8125rem;
  color: var(--starter-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 0.5rem;
}

.starter-quiz__question-text {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
}

.starter-quiz__options {
  list-style: none;
  padding: 0;
  margin: 0 0 2rem;
}

.starter-quiz__option {
  margin-bottom: 0.5rem;
}

.starter-quiz__option label {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 1.25rem;
  border: 2px solid var(--starter-border);
  border-radius: var(--starter-radius);
  cursor: pointer;
  transition: all var(--starter-transition);
  font-weight: 500;
}

.starter-quiz__option label:hover {
  border-color: var(--starter-primary);
  background: rgba(37, 99, 235, 0.04);
}

.starter-quiz__option input {
  display: none;
}

.starter-quiz__option input:checked + label {
  border-color: var(--starter-primary);
  background: rgba(37, 99, 235, 0.08);
}

.starter-quiz__option label.is-correct {
  border-color: #16a34a;
  background: #dcfce7;
}

.starter-quiz__option label.is-wrong {
  border-color: #dc2626;
  background: #fef2f2;
}

.starter-quiz__feedback {
  display: none;
  padding: 1rem 1.25rem;
  border-radius: var(--starter-radius);
  margin-bottom: 1.5rem;
  font-weight: 500;
}

.starter-quiz__feedback.is-correct {
  display: block;
  background: #dcfce7;
  color: #166534;
}

.starter-quiz__feedback.is-wrong {
  display: block;
  background: #fef2f2;
  color: #991b1b;
}

.starter-quiz__actions {
  display: flex;
  gap: 1rem;
  justify-content: space-between;
}

.starter-quiz__results {
  text-align: center;
  padding: 2rem 0;
}

.starter-quiz__score {
  font-size: 3rem;
  font-weight: 800;
  color: var(--starter-primary);
  margin-bottom: 0.5rem;
}

.starter-quiz__score-text {
  font-size: 1.125rem;
  color: var(--starter-text-muted);
  margin-bottom: 1.5rem;
}

.starter-quiz__score-bar {
  height: 12px;
  background: var(--starter-border);
  border-radius: 6px;
  max-width: 300px;
  margin: 0 auto 2rem;
  overflow: hidden;
}

.starter-quiz__score-bar-fill {
  height: 100%;
  border-radius: 6px;
  transition: width 1s ease;
}

.starter-quiz__score-bar-fill--high {
  background: #16a34a;
}

.starter-quiz__score-bar-fill--mid {
  background: #f59e0b;
}

.starter-quiz__score-bar-fill--low {
  background: #dc2626;
}

/* ========================================
   Archive Course
   ======================================== */
.starter-archive-hero {
  padding: calc(var(--starter-header-height) + 3rem) 0 2rem;
  background: var(--starter-bg-alt);
}

.starter-archive-hero__title {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  margin-bottom: 0.5rem;
}

.starter-archive-hero__desc {
  color: var(--starter-text-muted);
  font-size: 1.125rem;
}

.starter-course-filters {
  padding: 1.5rem 0;
  background: var(--starter-bg);
  border-bottom: 1px solid var(--starter-border);
  margin-bottom: 0;
}

.starter-filter-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.5rem 1.25rem;
  border-radius: 2rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--starter-text-muted);
  background: var(--starter-bg-alt);
  border: 1px solid transparent;
  text-decoration: none;
  transition: all var(--starter-transition);
}

.starter-filter-btn:hover {
  color: var(--starter-primary);
  border-color: var(--starter-primary);
}

.starter-filter-btn.is-active {
  background: var(--starter-primary);
  color: #fff;
}

.starter-filter-btn__count {
  font-size: 0.75rem;
  opacity: 0.7;
}

/* ========================================
   Lesson Sidebar
   ======================================== */
.starter-lesson-sidebar {
  background: #fff;
  border-radius: var(--starter-radius);
  box-shadow: var(--starter-shadow);
  padding: 1.5rem;
  position: sticky;
  top: calc(var(--starter-header-height) + 2rem);
}

.starter-lesson-sidebar__course {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--starter-primary);
  margin-bottom: 1rem;
  text-decoration: none;
}

.starter-lesson-sidebar__course:hover {
  color: var(--starter-secondary);
}

.starter-lesson-sidebar__title {
  font-size: 0.9375rem;
  margin-bottom: 1rem;
  padding-bottom: 0.75rem;
  border-bottom: 2px solid var(--starter-primary);
}

.starter-lesson-sidebar__title small {
  font-weight: 400;
  color: var(--starter-text-muted);
}

.starter-lesson-sidebar__list {
  list-style: none;
  padding: 0;
  margin: 0;
  counter-reset: none;
}

.starter-lesson-sidebar__item {
  margin-bottom: 0.25rem;
}

.starter-lesson-sidebar__item a {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.6rem 0.75rem;
  border-radius: 0.5rem;
  text-decoration: none;
  color: var(--starter-text);
  font-size: 0.875rem;
  transition: all var(--starter-transition);
}

.starter-lesson-sidebar__item a:hover {
  background: var(--starter-bg-alt);
}

.starter-lesson-sidebar__item.is-current a {
  background: rgba(37, 99, 235, 0.08);
  color: var(--starter-primary);
  font-weight: 600;
}

.starter-lesson-sidebar__num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--starter-bg-alt);
  font-size: 0.75rem;
  font-weight: 600;
  flex-shrink: 0;
}

.starter-lesson-sidebar__item.is-current .starter-lesson-sidebar__num {
  background: var(--starter-primary);
  color: #fff;
}

.starter-lesson-sidebar__name {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ========================================
   Lesson Header
   ======================================== */
.starter-lesson-header {
  margin-bottom: 2rem;
}

.starter-lesson-header__meta {
  margin-bottom: 0.5rem;
}

.starter-lesson-header__num {
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--starter-primary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.starter-lesson-header__title {
  font-size: clamp(1.5rem, 3.5vw, 2.25rem);
}

/* ========================================
   Lesson Video
   ======================================== */
.starter-lesson-video {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
  border-radius: var(--starter-radius);
  margin-bottom: 2rem;
  box-shadow: var(--starter-shadow);
}

.starter-lesson-video iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

/* ========================================
   Lesson Content
   ======================================== */
.starter-lesson-content {
  background: #fff;
  border-radius: var(--starter-radius);
  box-shadow: var(--starter-shadow);
  padding: 2rem;
  margin-bottom: 2rem;
  line-height: 1.8;
}

.starter-lesson-content h2,
.starter-lesson-content h3 {
  margin-top: 2rem;
}

.starter-lesson-content h2:first-child,
.starter-lesson-content h3:first-child {
  margin-top: 0;
}

.starter-lesson-content img {
  border-radius: var(--starter-radius);
}

.starter-lesson-content pre {
  background: #1e293b;
  color: #e2e8f0;
  padding: 1.25rem;
  border-radius: var(--starter-radius);
  overflow-x: auto;
}

.starter-lesson-content code {
  font-size: 0.875rem;
}

/* ========================================
   Lesson Materials
   ======================================== */
.starter-lesson-materials {
  background: #fff;
  border-radius: var(--starter-radius);
  box-shadow: var(--starter-shadow);
  padding: 1.75rem;
  margin-bottom: 2rem;
}

.starter-lesson-materials h3 {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1.125rem;
  margin-bottom: 1rem;
}

.starter-lesson-materials__list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.starter-lesson-materials__list li {
  margin-bottom: 0.5rem;
}

.starter-lesson-materials__list a {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1rem;
  background: var(--starter-bg-alt);
  border-radius: 0.5rem;
  color: var(--starter-text);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.9375rem;
  transition: all var(--starter-transition);
  width: 100%;
}

.starter-lesson-materials__list a:hover {
  background: rgba(37, 99, 235, 0.08);
  color: var(--starter-primary);
}

/* ========================================
   Lesson Navigation
   ======================================== */
.starter-lesson-nav {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-top: 2rem;
}

@media (max-width: 575.98px) {
  .starter-lesson-nav {
    grid-template-columns: 1fr;
  }
}

.starter-lesson-nav__link {
  display: flex;
  flex-direction: column;
  padding: 1.25rem;
  background: #fff;
  border-radius: var(--starter-radius);
  box-shadow: var(--starter-shadow);
  text-decoration: none;
  transition: all var(--starter-transition);
}

.starter-lesson-nav__link:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 30px rgba(0,0,0,0.1);
}

.starter-lesson-nav__link small {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--starter-primary);
  font-weight: 600;
  margin-bottom: 0.25rem;
}

.starter-lesson-nav__link span {
  font-weight: 600;
  color: var(--starter-text);
  font-size: 0.9375rem;
}

.starter-lesson-nav__link--next {
  text-align: right;
}

/* ========================================
   Course Categories Grid
   ======================================== */
.starter-categories-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

@media (min-width: 768px) {
  .starter-categories-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (min-width: 992px) {
  .starter-categories-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.starter-category-card {
  background: #fff;
  border-radius: var(--starter-radius);
  padding: 1.75rem;
  text-align: center;
  text-decoration: none;
  border: 1px solid var(--starter-border);
  transition: all var(--starter-transition);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.starter-category-card:hover {
  border-color: var(--starter-primary);
  box-shadow: 0 8px 30px rgba(37, 99, 235, 0.1);
  transform: translateY(-4px);
}

.starter-category-card__icon {
  width: 60px;
  height: 60px;
  border-radius: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
}

.starter-category-card__title {
  font-size: 1rem;
  color: var(--starter-secondary);
  margin-bottom: 0.35rem;
}

.starter-category-card__desc {
  font-size: 0.8125rem;
  color: var(--starter-text-muted);
  margin-bottom: 0.5rem;
  line-height: 1.5;
}

.starter-category-card__count {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--starter-primary);
  margin-top: auto;
}

/* ========================================
   Lesson Navigation Compact (top)
   ======================================== */
.starter-lesson-nav-compact {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.75rem 0;
  margin-bottom: 1.5rem;
  border-bottom: 1px solid var(--starter-border);
}

.starter-lesson-nav-compact__link {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--starter-primary);
  text-decoration: none;
  transition: color var(--starter-transition);
  max-width: 45%;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.starter-lesson-nav-compact__link:hover {
  color: var(--starter-secondary);
}

/* ========================================
   Lesson Sidebar: Simulator & Resources
   ======================================== */
.starter-lesson-sidebar__simulator {
  margin-top: 1.25rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--starter-border);
}

.starter-lesson-sidebar__resources {
  padding-bottom: 0.25rem;
}

.starter-lesson-sidebar__files {
  list-style: none;
  padding: 0;
  margin: 0;
}

.starter-lesson-sidebar__files li {
  margin-bottom: 0.35rem;
}

.starter-lesson-sidebar__files a {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0.65rem;
  border-radius: 0.4rem;
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--starter-text);
  text-decoration: none;
  transition: all var(--starter-transition);
}

.starter-lesson-sidebar__files a:hover {
  background: rgba(37, 99, 235, 0.06);
  color: var(--starter-primary);
}

.starter-lesson-sidebar__files svg {
  flex-shrink: 0;
  opacity: 0.5;
}

/* ========================================
   Search Results
   ======================================== */
.starter-search-form .input-group {
  box-shadow: var(--starter-shadow);
  border-radius: var(--starter-radius);
  overflow: hidden;
}

.starter-search-form .form-control {
  border: 2px solid var(--starter-border);
  border-right: none;
  padding: 0.75rem 1.25rem;
}

.starter-search-form .form-control:focus {
  border-color: var(--starter-primary);
  box-shadow: none;
}

.starter-search-results {
  max-width: 800px;
  margin: 0 auto;
}

.starter-search-result {
  padding: 1.75rem;
  background: #fff;
  border-radius: var(--starter-radius);
  box-shadow: var(--starter-shadow);
  margin-bottom: 1.25rem;
  transition: transform var(--starter-transition);
}

.starter-search-result:hover {
  transform: translateY(-3px);
}

.starter-search-result__type {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.75px;
  color: var(--starter-primary);
  background: rgba(37, 99, 235, 0.08);
  padding: 0.2rem 0.6rem;
  border-radius: 0.25rem;
  margin-bottom: 0.5rem;
}

.starter-search-result__title {
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
}

.starter-search-result__title a {
  color: var(--starter-secondary);
  text-decoration: none;
}

.starter-search-result__title a:hover {
  color: var(--starter-primary);
}

.starter-search-result__excerpt {
  color: var(--starter-text-muted);
  font-size: 0.9375rem;
  line-height: 1.6;
  margin-bottom: 0.75rem;
}

.starter-search-result__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.8125rem;
  color: var(--starter-text-muted);
}

.starter-search-result__meta a {
  color: var(--starter-primary);
}

/* ========================================
   Gutenberg Block Styles
   ======================================== */

/* Headings */
.content h1, .content h2, .content h3,
.content h4, .content h5, .content h6 {
  font-family: var(--starter-font-heading);
  color: var(--starter-secondary);
  margin-top: 2rem;
  margin-bottom: 1rem;
}

.content h1:first-child, .content h2:first-child,
.content h3:first-child {
  margin-top: 0;
}

/* Paragraphs */
.content p {
  line-height: 1.8;
  margin-bottom: 1.25rem;
}

/* Links in content */
.content a {
  color: var(--starter-primary);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
  transition: color var(--starter-transition);
}

.content a:hover {
  color: var(--starter-secondary);
}

/* Images */
.content img {
  border-radius: var(--starter-radius);
  box-shadow: var(--starter-shadow);
}

.content .wp-block-image figcaption {
  font-size: 0.8125rem;
  color: var(--starter-text-muted);
  text-align: center;
  margin-top: 0.5rem;
}

/* Blockquote */
.content blockquote,
.content .wp-block-quote {
  border-left: 4px solid var(--starter-primary);
  padding: 1.25rem 1.5rem;
  margin: 2rem 0;
  background: var(--starter-bg-alt);
  border-radius: 0 var(--starter-radius) var(--starter-radius) 0;
  font-style: italic;
  color: var(--starter-text);
}

.content blockquote p:last-child {
  margin-bottom: 0;
}

.content blockquote cite,
.content .wp-block-quote cite {
  font-style: normal;
  font-size: 0.875rem;
  color: var(--starter-text-muted);
  display: block;
  margin-top: 0.75rem;
}

/* Pullquote */
.content .wp-block-pullquote {
  border-top: 3px solid var(--starter-primary);
  border-bottom: 3px solid var(--starter-primary);
  padding: 2rem 0;
  margin: 2.5rem 0;
  text-align: center;
}

.content .wp-block-pullquote blockquote {
  border-left: none;
  background: none;
  padding: 0;
  margin: 0;
}

.content .wp-block-pullquote p {
  font-size: 1.375rem;
  font-weight: 600;
  font-style: normal;
  line-height: 1.4;
}

/* Code blocks */
.content pre,
.content .wp-block-code {
  background: #1e293b;
  color: #e2e8f0;
  padding: 1.5rem;
  border-radius: var(--starter-radius);
  overflow-x: auto;
  font-size: 0.875rem;
  line-height: 1.7;
  margin: 2rem 0;
}

.content code {
  font-family: 'SF Mono', 'Fira Code', 'Cascadia Code', monospace;
  font-size: 0.875em;
}

.content :not(pre) > code {
  background: var(--starter-bg-alt);
  padding: 0.15em 0.4em;
  border-radius: 4px;
  color: var(--starter-primary);
  font-size: 0.85em;
}

/* Tables */
.content table,
.content .wp-block-table table {
  width: 100%;
  border-collapse: collapse;
  margin: 2rem 0;
  font-size: 0.9375rem;
}

.content table th {
  background: var(--starter-secondary);
  color: #fff;
  font-weight: 600;
  text-align: left;
  padding: 0.75rem 1rem;
}

.content table td {
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--starter-border);
}

.content table tr:hover td {
  background: var(--starter-bg-alt);
}

/* Lists */
.content ul, .content ol {
  padding-left: 1.5rem;
  margin-bottom: 1.25rem;
}

.content li {
  margin-bottom: 0.35rem;
  line-height: 1.7;
}

.content li::marker {
  color: var(--starter-primary);
}

/* Separator */
.content hr,
.content .wp-block-separator {
  border: none;
  height: 2px;
  background: var(--starter-border);
  margin: 2.5rem 0;
}

.content .wp-block-separator.is-style-wide {
  width: 100%;
}

.content .wp-block-separator.is-style-dots {
  background: none;
  text-align: center;
}

.content .wp-block-separator.is-style-dots::before {
  content: '···';
  font-size: 1.5rem;
  letter-spacing: 1rem;
  color: var(--starter-text-muted);
}

/* Columns */
.content .wp-block-columns {
  gap: 2rem;
  margin: 2rem 0;
}

/* Cover */
.content .wp-block-cover {
  border-radius: var(--starter-radius);
  margin: 2rem 0;
  overflow: hidden;
}

/* Group with background */
.content .wp-block-group.has-background {
  padding: 2rem;
  border-radius: var(--starter-radius);
  margin: 2rem 0;
}

/* Buttons */
.content .wp-block-button__link {
  border-radius: var(--starter-radius);
  font-weight: 600;
  transition: all var(--starter-transition);
}

.content .wp-block-button__link:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

/* Gallery */
.content .wp-block-gallery {
  margin: 2rem 0;
}

.content .wp-block-gallery .wp-block-image img {
  border-radius: var(--starter-radius);
}

/* Embed / Video */
.content .wp-block-embed {
  margin: 2rem 0;
}

.content .wp-block-embed__wrapper {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
  border-radius: var(--starter-radius);
  box-shadow: var(--starter-shadow);
}

.content .wp-block-embed__wrapper iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

/* Details / Accordion (WP 6.3+) */
.content details {
  border: 1px solid var(--starter-border);
  border-radius: var(--starter-radius);
  padding: 1rem 1.25rem;
  margin: 1rem 0;
}

.content details summary {
  font-weight: 600;
  cursor: pointer;
}

.content details[open] summary {
  margin-bottom: 0.75rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--starter-border);
}

/* ========================================
   Dark Mode
   ======================================== */
body.dark-mode {
  --starter-bg: #0f172a;
  --starter-bg-alt: #1e293b;
  --starter-text: #e2e8f0;
  --starter-text-muted: #94a3b8;
  --starter-secondary: #f1f5f9;
  --starter-border: #334155;
  --starter-shadow: 0 4px 20px rgba(0,0,0,0.3);
}

body.dark-mode .starter-header.is-scrolled {
  background: #1e293b;
}

body.dark-mode .starter-header.is-scrolled .nav-link {
  color: #e2e8f0;
}

body.dark-mode .starter-header.is-scrolled .nav-link:hover {
  color: var(--starter-primary);
}

body.dark-mode .starter-header.is-scrolled .starter-logo img {
  filter: brightness(0) invert(1);
}

body.dark-mode .starter-header.is-scrolled .starter-logo-text {
  color: #f1f5f9;
}

body.dark-mode .starter-header.is-scrolled .navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28226, 232, 240, 0.9%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

body.dark-mode .starter-header .navbar-collapse {
  background: #1e293b;
}

body.dark-mode .card,
body.dark-mode .starter-section-card {
  background: #1e293b;
  border-color: #334155;
}

body.dark-mode .card-title a,
body.dark-mode .starter-section-card__title a {
  color: #f1f5f9;
}

body.dark-mode .starter-footer {
  background: #020617;
}

body.dark-mode .content pre,
body.dark-mode .content .wp-block-code {
  background: #020617;
}

body.dark-mode .content :not(pre) > code {
  background: #334155;
  color: #60a5fa;
}

body.dark-mode .content table th {
  background: #334155;
}

body.dark-mode .content blockquote,
body.dark-mode .content .wp-block-quote {
  background: #1e293b;
}

body.dark-mode .content details {
  border-color: #334155;
}

body.dark-mode .starter-search-result {
  background: #1e293b;
}

body.dark-mode .starter-search-result__type {
  background: rgba(96, 165, 250, 0.15);
}

/* Dark mode toggle */
.starter-dark-toggle {
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  color: rgba(255,255,255,0.9);
  transition: color var(--starter-transition);
  display: flex;
  align-items: center;
}

.starter-header.is-scrolled .starter-dark-toggle {
  color: var(--starter-text);
}

body.dark-mode .starter-header.is-scrolled .starter-dark-toggle {
  color: #e2e8f0;
}

.starter-dark-toggle svg {
  width: 20px;
  height: 20px;
}

.starter-dark-toggle .icon-moon { display: block; }
.starter-dark-toggle .icon-sun { display: none; }

body.dark-mode .starter-dark-toggle .icon-moon { display: none; }
body.dark-mode .starter-dark-toggle .icon-sun { display: block; }

/* ========================================
   WCAG 2.1 AA Accessibility
   ======================================== */

/* Skip to content link (WCAG 2.4.1) */
.starter-skip-link {
  position: absolute;
  top: -100%;
  left: 0.5rem;
  z-index: 9999;
  padding: 0.75rem 1.5rem;
  background: var(--starter-primary);
  color: #fff;
  font-weight: 600;
  font-size: 0.875rem;
  border-radius: 0 0 var(--starter-radius) var(--starter-radius);
  text-decoration: none;
  clip: auto;
  width: auto;
  height: auto;
}

.starter-skip-link:focus {
  top: 0;
  clip: auto;
  width: auto;
  height: auto;
  outline: 3px solid var(--starter-accent);
  outline-offset: 2px;
}

/* Focus styles (WCAG 2.4.7) — visible for keyboard, hidden for mouse */
*:focus-visible {
  outline: 3px solid var(--starter-primary);
  outline-offset: 2px;
}

/* Remove outline for mouse clicks */
*:focus:not(:focus-visible) {
  outline: none;
}

/* Ensure links have enough contrast on focus */
a:focus-visible {
  outline: 3px solid var(--starter-primary);
  outline-offset: 2px;
  border-radius: 2px;
}

/* Button focus */
.btn:focus-visible,
button:focus-visible {
  outline: 3px solid var(--starter-primary);
  outline-offset: 2px;
  box-shadow: none;
}

/* Nav link focus */
.starter-header .nav-link:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 2px;
  border-radius: 4px;
}

.starter-header.is-scrolled .nav-link:focus-visible {
  outline-color: var(--starter-primary);
}

body.dark-mode .starter-header.is-scrolled .nav-link:focus-visible {
  outline-color: #60a5fa;
}

/* Card focus within */
.card:focus-within,
.starter-section-card:focus-within {
  outline: 3px solid var(--starter-primary);
  outline-offset: 2px;
}

/* Form inputs focus */
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: 3px solid var(--starter-primary);
  outline-offset: 0;
  border-color: var(--starter-primary);
}

/* Dark toggle focus */
.starter-dark-toggle:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 4px;
  border-radius: 50%;
}

.starter-header.is-scrolled .starter-dark-toggle:focus-visible {
  outline-color: var(--starter-primary);
}

/* Social links focus */
.starter-footer__social a:focus-visible {
  outline: 3px solid var(--starter-primary);
  outline-offset: 2px;
}

/* Reduced motion (WCAG 2.3.3) */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  html {
    scroll-behavior: auto;
  }

  [data-aos] {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }

  .starter-section-card:hover,
  .starter-search-result:hover {
    transform: none;
  }
}

/* Ensure minimum touch target 44x44px (WCAG 2.5.5) */
.starter-header .nav-link {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}

.starter-footer__social a {
  min-width: 44px;
  min-height: 44px;
}

.starter-dark-toggle {
  min-width: 44px;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* Ensure text contrast (WCAG 1.4.3 — minimum 4.5:1) */
/* Muted text on white: #64748b on #fff = 4.6:1 ✓ */
/* Primary on white: #2563eb on #fff = 4.6:1 ✓ */
/* White on secondary: #fff on #0f172a = 15.4:1 ✓ */

/* Dark mode contrast adjustments */
body.dark-mode {
  --starter-text-muted: #94a3b8; /* on #0f172a = 5.6:1 ✓ */
}

/* Ensure link underlines or distinction (WCAG 1.4.1) */
.content a {
  text-decoration: underline;
}

/* Make sure images have alt text reminder via styling */
img:not([alt]) {
  outline: 3px dashed red;
}

/* High contrast selection */
::selection {
  background: var(--starter-primary);
  color: #fff;
}

body.dark-mode ::selection {
  background: #60a5fa;
  color: #0f172a;
}

/* ========================================
   Sidebar
   ======================================== */
.starter-sidebar {
  position: sticky;
  top: calc(var(--starter-header-height) + 2rem);
}

.starter-sidebar .widget {
  background: #fff;
  border-radius: var(--starter-radius);
  box-shadow: var(--starter-shadow);
  padding: 1.5rem;
  margin-bottom: 1.5rem;
}

body.dark-mode .starter-sidebar .widget {
  background: var(--starter-bg-alt);
}

.starter-sidebar .widget-title {
  font-size: 1rem;
  margin-bottom: 1rem;
  padding-bottom: 0.75rem;
  border-bottom: 2px solid var(--starter-primary);
}

.starter-sidebar .widget ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.starter-sidebar .widget li {
  margin-bottom: 0.35rem;
}

.starter-sidebar .widget li a {
  display: block;
  padding: 0.4rem 0;
  color: var(--starter-text);
  text-decoration: none;
  font-size: 0.9375rem;
  transition: color var(--starter-transition);
}

.starter-sidebar .widget li a:hover {
  color: var(--starter-primary);
}

.starter-sidebar .widget select {
  width: 100%;
  padding: 0.5rem;
  border: 1px solid var(--starter-border);
  border-radius: 0.4rem;
}

.starter-sidebar .widget input[type="search"] {
  width: 100%;
  padding: 0.5rem 0.75rem;
  border: 1px solid var(--starter-border);
  border-radius: 0.4rem;
}

/* ========================================
   Post Format Cards
   ======================================== */

/* Image overlay icon (video, gallery) */
.starter-card-image-wrap {
  position: relative;
  overflow: hidden;
}

.starter-card-format-overlay {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  width: 36px;
  height: 36px;
  background: rgba(0,0,0,0.6);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  backdrop-filter: blur(4px);
}

/* Format badge (link) */
.starter-card-format-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.75px;
  color: var(--starter-primary);
  margin-bottom: 0.5rem;
}

/* Quote card */
.starter-card--quote {
  background: linear-gradient(135deg, var(--starter-secondary) 0%, #1e3a5f 100%);
  color: #fff;
}

.starter-card-quote {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.starter-card-quote__icon {
  font-size: 4rem;
  font-family: Georgia, serif;
  line-height: 1;
  color: rgba(255,255,255,0.2);
  margin-bottom: 0.5rem;
}

.starter-card-quote blockquote {
  border: none;
  padding: 0;
  margin: 0 0 1rem;
  background: none;
  flex: 1;
}

.starter-card-quote blockquote p {
  font-size: 1.1rem;
  font-style: italic;
  line-height: 1.6;
  color: rgba(255,255,255,0.9);
}

.starter-card-quote__source {
  color: rgba(255,255,255,0.6);
  font-size: 0.875rem;
  font-weight: 500;
  text-decoration: none;
  margin-top: auto;
  transition: color var(--starter-transition);
}

.starter-card-quote__source:hover {
  color: #fff;
}

/* Link card */
.starter-card--link {
  border-left: 4px solid var(--starter-primary) !important;
}

.starter-card-link .card-title a {
  color: var(--starter-primary) !important;
}

body.dark-mode .starter-card--quote {
  background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
}

body.dark-mode .card-title a {
  color: var(--starter-secondary);
}

/* ========================================
   Pagination
   ======================================== */
.navigation.pagination {
  margin-top: 3rem;
}

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

.navigation.pagination .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  height: 44px;
  padding: 0 0.75rem;
  border-radius: var(--starter-radius);
  font-weight: 500;
  font-size: 0.9375rem;
  text-decoration: none;
  color: var(--starter-text);
  background: #fff;
  border: 1px solid var(--starter-border);
  transition: all var(--starter-transition);
}

.navigation.pagination .page-numbers:hover {
  border-color: var(--starter-primary);
  color: var(--starter-primary);
}

.navigation.pagination .page-numbers.current {
  background: var(--starter-primary);
  border-color: var(--starter-primary);
  color: #fff;
}

.navigation.pagination .page-numbers.dots {
  border: none;
  background: none;
  min-width: auto;
  padding: 0 0.25rem;
}

body.dark-mode .navigation.pagination .page-numbers {
  background: var(--starter-bg-alt);
  border-color: var(--starter-border);
  color: var(--starter-text);
}

body.dark-mode .navigation.pagination .page-numbers.current {
  background: var(--starter-primary);
  color: #fff;
}

/* ========================================
   Social Share
   ======================================== */
.starter-share {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 1.5rem 0;
  margin: 2rem 0;
  border-top: 1px solid var(--starter-border);
  border-bottom: 1px solid var(--starter-border);
}

.starter-share__label {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--starter-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-right: 0.5rem;
}

.starter-share__link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  color: var(--starter-text-muted);
  background: var(--starter-bg-alt);
  transition: all var(--starter-transition);
  text-decoration: none;
}

.starter-share__link:hover {
  color: #fff;
  transform: translateY(-2px);
}

.starter-share__link--twitter:hover { background: #000; }
.starter-share__link--linkedin:hover { background: #0077b5; }
.starter-share__link--facebook:hover { background: #1877f2; }
.starter-share__link--telegram:hover { background: #0088cc; }
.starter-share__link--whatsapp:hover { background: #25d366; }

body.dark-mode .starter-share__link {
  background: #334155;
}

/* ========================================
   Related Posts
   ======================================== */
.starter-related {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid var(--starter-border);
}

.starter-related__title {
  font-size: 1.25rem;
  margin-bottom: 1.5rem;
}
