/* TopSol Idiomas — Mediterranean language-school theme */
:root {
  --color-bg: #f7f9fc;
  --color-surface: #ffffff;
  --color-ink: #0f2744;
  --color-muted: #5c6b7e;
  --color-primary: #0a6ebd;
  --color-primary-dark: #054d85;
  --color-accent: #ff6b35;
  --color-accent-dark: #e85a28;
  --color-accent-warm: #ffb347;
  --color-teal: #1cb5a3;
  --color-teal-dark: #148f80;
  --color-gold: #f0b429;
  --color-navy: #0f2744;
  --color-sand: #faf6f0;
  --color-border: #dce6f0;
  --gradient-hero: linear-gradient(120deg, rgba(5, 77, 133, 0.88) 0%, rgba(10, 110, 189, 0.75) 45%, rgba(28, 181, 163, 0.65) 100%);
  --gradient-cta: linear-gradient(135deg, #0a6ebd 0%, #1cb5a3 100%);
  --font-sans: "Plus Jakarta Sans", system-ui, sans-serif;
  --font-display: "Outfit", system-ui, sans-serif;
  --radius: 16px;
  --radius-sm: 10px;
  --radius-lg: 24px;
  --shadow: 0 16px 48px rgba(15, 39, 68, 0.1);
  --shadow-sm: 0 6px 20px rgba(15, 39, 68, 0.08);
  --header-h: 4.5rem;
  --max: 1180px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--color-ink);
  background: var(--color-bg);
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: var(--color-primary);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

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

.container {
  width: min(100% - 2rem, var(--max));
  margin-inline: auto;
}

/* Typography */
h1,
h2,
h3,
.h-display {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.15;
  color: var(--color-navy);
  margin-top: 0;
  letter-spacing: -0.02em;
}

h1 {
  font-size: clamp(2.25rem, 5vw, 3.25rem);
}

h2 {
  font-size: clamp(1.5rem, 3vw, 2rem);
}

h3 {
  font-size: 1.2rem;
}

.lead {
  font-size: 1.2rem;
  color: var(--color-muted);
  max-width: 38rem;
}

.muted {
  color: var(--color-muted);
  font-size: 0.95rem;
}

/* Header */
.page-hero--color {
  background: var(--gradient-hero);
  color: #fff;
}

.page-hero--color h1,
.page-hero--color .lead,
.page-hero--color .section-eyebrow {
  color: #fff;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--color-border);
  box-shadow: 0 4px 24px rgba(15, 39, 68, 0.04);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: var(--header-h);
  flex-wrap: wrap;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  color: inherit;
}

.brand img {
  max-height: 64px;
  width: auto;
  filter: drop-shadow(0 2px 6px rgba(30, 58, 95, 0.12));
}

.nav-toggle {
  display: none;
  border: 0;
  background: var(--color-navy);
  color: #fff;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: var(--radius-sm);
  cursor: pointer;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.nav-toggle .bar {
  display: block;
  width: 1.25rem;
  height: 2px;
  background: #fff;
  margin: 4px 0;
  border-radius: 1px;
}

.site-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.25rem 1.25rem;
}

.site-nav a {
  color: var(--color-ink);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  color: var(--color-primary);
}

.header-cta {
  flex-shrink: 0;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.65rem 1.25rem;
  font-family: var(--font-sans);
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: 999px;
  border: 2px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}

.btn-primary {
  background: var(--gradient-cta);
  color: #fff;
  border-color: transparent;
  box-shadow: 0 8px 24px rgba(10, 110, 189, 0.35);
}

.btn-primary:hover {
  filter: brightness(1.06);
  color: #fff;
  transform: translateY(-1px);
}

.btn-outline {
  background: transparent;
  color: var(--color-navy);
  border-color: var(--color-border);
}

.btn-outline:hover {
  border-color: var(--color-navy);
  color: var(--color-navy);
}

/* Hero */
.hero {
  padding: clamp(2.5rem, 6vw, 4.5rem) 0;
  background: linear-gradient(160deg, #fff 0%, #f0ebe3 100%);
  border-bottom: 1px solid var(--color-border);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}

@media (max-width: 800px) {
  .hero-grid {
    grid-template-columns: 1fr;
  }
}

.hero-badge {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-primary);
  background: rgba(10, 110, 189, 0.1);
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  margin-bottom: 1rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.hero-media {
  align-self: center;
  width: 100%;
  max-width: 100%;
}

/* Carousel / hero: fixed aspect so mixed image sizes crop cleanly */
.hero-carousel .hero-media-frame {
  aspect-ratio: 4 / 3;
  width: 100%;
  max-width: 520px;
  margin-left: auto;
  margin-right: auto;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  background: #e8e4dc;
}

.hero-carousel .hero-media-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

/* Language switch (header) */
.header-tools {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

@media (min-width: 901px) {
  .header-inner {
    display: grid;
    grid-template-columns: auto 1fr auto auto;
    gap: 1rem 1.5rem;
    align-items: center;
  }

  .brand {
    grid-column: 1;
  }

  .site-nav {
    grid-column: 2;
    justify-self: center;
  }

  .site-nav ul {
    justify-content: center;
  }

  .header-tools {
    grid-column: 3;
    margin-left: 0;
  }

  .header-cta {
    grid-column: 4;
  }

  .nav-toggle {
    display: none !important;
  }
}

@media (max-width: 900px) {
  .header-inner {
    row-gap: 0.75rem;
  }

  .brand {
    order: 1;
    flex: 1;
    min-width: 0;
  }

  .header-tools {
    order: 2;
    margin-left: auto;
  }

  .nav-toggle {
    order: 3;
    display: inline-flex;
    flex-direction: column;
  }

  .header-cta {
    order: 4;
    width: 100%;
    text-align: center;
    margin-left: 0;
  }

  .site-nav {
    order: 5;
    width: 100%;
    display: none;
    padding: 0.5rem 0 1rem;
    border-top: 1px solid var(--color-border);
  }

  .site-nav.is-open {
    display: block;
  }

  .site-nav ul {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }
}

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

.lang-dropdown {
  display: flex;
  align-items: center;
}

.lang-select {
  font-family: var(--font-sans);
  font-size: 0.875rem;
  font-weight: 600;
  padding: 0.45rem 2rem 0.45rem 0.65rem;
  border-radius: 10px;
  border: 1px solid var(--color-border);
  background-color: var(--color-surface);
  color: var(--color-text);
  cursor: pointer;
  min-width: 7.75rem;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%2364748b' d='M2 4l4 4 4-4'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.5rem center;
}

.lang-select:hover {
  border-color: var(--color-navy);
}

.lang-select:focus {
  outline: 2px solid var(--color-navy);
  outline-offset: 2px;
}

.payment-panel {
  border: 1px solid var(--color-border);
  border-radius: var(--radius, 12px);
  padding: 1.5rem;
  background: linear-gradient(145deg, rgba(36, 48, 71, 0.07), rgba(36, 48, 71, 0.02));
}

.payment-panel ul {
  margin: 0.75rem 0 0;
  padding-left: 1.25rem;
}

/* Hero carousel */
.hero-carousel {
  position: relative;
  padding-bottom: clamp(2rem, 5vw, 3.5rem);
  background: var(--gradient-hero);
}

.hero-carousel-viewport {
  overflow: hidden;
  border-radius: 0;
  margin: 0 calc(-1 * max(0px, (100vw - var(--max)) / 2 - 1rem));
  width: 100vw;
  max-width: 100vw;
  position: relative;
  left: 50%;
  transform: translateX(-50%);
}

@media (max-width: 900px) {
  .hero-carousel-viewport {
    margin: 0 -1rem;
    width: calc(100% + 2rem);
    left: 0;
    transform: none;
  }
}

.hero-carousel-track {
  display: flex;
  transition: transform 0.55s cubic-bezier(0.33, 1, 0.68, 1);
  will-change: transform;
}

.hero-carousel.is-reduced .hero-carousel-track {
  transition: none;
}

.hero-slide {
  flex: 0 0 100%;
  min-width: 0;
  padding: clamp(2.5rem, 6vw, 4.5rem) max(1rem, calc((100vw - var(--max)) / 2));
  box-sizing: border-box;
}

.hero-slide .hero-grid {
  max-width: var(--max);
  margin: 0 auto;
}

/* Banner slides: text + image in a fixed aspect frame */
.hero-grid--banner {
  grid-template-columns: 1fr minmax(160px, 36%);
  align-items: center;
  gap: clamp(1.25rem, 4vw, 2.5rem);
}

.hero-slide-copy {
  min-width: 0;
}

@media (max-width: 800px) {
  .hero-grid--banner {
    grid-template-columns: 1fr;
  }

  .hero-carousel .hero-media {
    order: -1;
    margin-bottom: 0.25rem;
  }

  .hero-carousel .hero-media-frame {
    max-width: none;
    aspect-ratio: 16 / 9;
    max-height: 42vh;
  }
}

.hero-carousel-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin-top: 1.25rem;
  position: relative;
  z-index: 2;
}

.hero-carousel-btn {
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 50%;
  border: 1px solid var(--color-border);
  background: var(--color-surface);
  color: var(--color-navy);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  line-height: 1;
  transition: background 0.15s, border-color 0.15s;
}

.hero-carousel-btn:hover,
.hero-carousel-btn:focus-visible {
  border-color: var(--color-navy);
  background: #fff;
  outline: none;
}

.hero-carousel-dots {
  display: flex;
  gap: 0.5rem;
  align-items: center;
}

.hero-carousel-dots button {
  width: 10px;
  height: 10px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: var(--color-border);
  cursor: pointer;
  transition: transform 0.15s, background 0.15s;
}

.hero-carousel-dots button[aria-selected="true"] {
  background: var(--color-accent);
  transform: scale(1.15);
}

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

/* Comparison table (home) */
.compare-wrap {
  overflow-x: auto;
  border-radius: var(--radius);
  border: 1px solid var(--color-border);
  background: var(--color-surface);
}

table.compare {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
}

table.compare th,
table.compare td {
  padding: 0.85rem 1rem;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--color-border);
}

table.compare thead th {
  background: #f3efe8;
  font-weight: 700;
  color: var(--color-navy);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

table.compare tbody th {
  font-weight: 600;
  color: var(--color-navy);
  width: 26%;
}

table.compare td {
  color: var(--color-muted);
}

table.compare .mark {
  color: var(--color-navy);
  font-weight: 600;
}

table.compare tr:last-child th,
table.compare tr:last-child td {
  border-bottom: 0;
}

/* Sections */
.section {
  padding: clamp(2.5rem, 5vw, 4rem) 0;
}

.section-header {
  max-width: 40rem;
  margin-bottom: 2rem;
}

.section-header--center {
  max-width: 42rem;
  margin-inline: auto;
  text-align: center;
}

.section-header--center .lead {
  margin-inline: auto;
}

.section-eyebrow {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-primary);
  margin: 0 0 0.5rem;
}

/* Cards */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.25rem;
}

.card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s, box-shadow 0.2s;
}

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

.card h3 {
  margin-bottom: 0.5rem;
}

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

.card .tag {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--color-muted);
  margin-bottom: 0.5rem;
}

/* Features / list */
.check-list {
  padding: 0;
  margin: 0;
  list-style: none;
}

.check-list li {
  position: relative;
  padding-left: 1.75rem;
  margin-bottom: 0.65rem;
}

.check-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.45rem;
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 50%;
  background: var(--color-teal);
}

/* Testimonials */
.quote-grid {
  display: grid;
  gap: 1rem;
}

@media (min-width: 700px) {
  .quote-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.quote {
  background: var(--color-surface);
  border-radius: var(--radius);
  padding: 1.5rem;
  border: 1px solid var(--color-border);
}

.quote blockquote {
  margin: 0 0 1rem;
  font-style: italic;
  color: var(--color-ink);
}

.quote figcaption {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--color-navy);
}

/* CTA band */
.cta-band {
  background: var(--gradient-cta);
  color: #e8f4ff;
  padding: clamp(2.5rem, 5vw, 4rem) 0;
  text-align: center;
}

.cta-band h2 {
  color: #fff;
}

.cta-band .btn-primary {
  margin-top: 1rem;
}

/* Footer */
.site-footer {
  background: #1a2230;
  color: #b8c0d0;
  padding: 3rem 0 2rem;
  font-size: 0.95rem;
}

.site-footer a {
  color: #e8ecf4;
  text-decoration: none;
}

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

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr repeat(3, 1fr);
  gap: 2rem;
}

@media (max-width: 900px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 560px) {
  .footer-grid {
    grid-template-columns: 1fr;
  }
}

.site-footer h3 {
  color: #fff;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin: 0 0 1rem;
  font-family: var(--font-sans);
}

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

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

.footer-bottom {
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.85rem;
  text-align: center;
}

/* Page hero (inner pages) */
.page-hero {
  padding: clamp(2rem, 4vw, 3rem) 0;
  background: var(--color-surface);
  border-bottom: 1px solid var(--color-border);
}

.page-hero h1 {
  margin-bottom: 0.5rem;
}

/* Tables */
.table-wrap {
  overflow-x: auto;
  border-radius: var(--radius);
  border: 1px solid var(--color-border);
  background: var(--color-surface);
}

table.simple {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
}

table.simple th,
table.simple td {
  padding: 0.85rem 1rem;
  text-align: left;
  border-bottom: 1px solid var(--color-border);
}

table.simple th {
  background: #f3efe8;
  font-weight: 600;
  color: var(--color-navy);
}

table.simple tr:last-child td {
  border-bottom: 0;
}

/* Forms */
.form-grid {
  display: grid;
  gap: 1rem;
}

@media (min-width: 640px) {
  .form-grid.two {
    grid-template-columns: 1fr 1fr;
  }
}

label {
  display: block;
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 0.35rem;
  color: var(--color-navy);
}

input,
select,
textarea {
  width: 100%;
  padding: 0.65rem 0.85rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  font: inherit;
  background: #fff;
}

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

.form-note {
  font-size: 0.85rem;
  color: var(--color-muted);
  margin-top: 0.5rem;
}

/* DELE audio grid */
.page-hero--audio {
  background: linear-gradient(165deg, #e8f4fc 0%, var(--color-sand) 55%);
}

.audio-section {
  padding: 2rem 0 4rem;
  background: var(--color-sand);
}

.audio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem;
}

.audio-card {
  display: flex;
  flex-direction: column;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform 0.2s, box-shadow 0.2s;
}

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

.audio-card__visual {
  position: relative;
  aspect-ratio: 12 / 7;
  overflow: hidden;
}

.audio-card__visual img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.audio-card__visual::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 35%, rgba(15, 39, 68, 0.55) 100%);
}

.audio-card__badge {
  position: absolute;
  top: 0.75rem;
  left: 0.75rem;
  z-index: 1;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #fff;
  background: var(--color-primary);
  padding: 0.25rem 0.55rem;
  border-radius: var(--radius-sm);
}

.audio-card__num {
  position: absolute;
  right: 0.75rem;
  bottom: 0.75rem;
  z-index: 1;
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: 800;
  line-height: 1;
  color: #fff;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.35);
}

.audio-card__body {
  padding: 1.15rem 1.25rem 1.35rem;
}

.audio-card h3 {
  margin: 0 0 0.5rem;
  font-size: 1.05rem;
  font-family: var(--font-display);
  color: var(--color-navy);
}

.audio-card__hint {
  margin: 0 0 0.85rem;
  font-size: 0.88rem;
  color: var(--color-muted);
  line-height: 1.45;
}

.audio-card audio {
  width: 100%;
  margin-bottom: 0.75rem;
}

.download-btn {
  display: inline-block;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--color-navy);
  text-decoration: none;
  border: 1px solid var(--color-border);
  padding: 0.4rem 0.85rem;
  border-radius: var(--radius-sm);
}

.download-btn:hover {
  border-color: var(--color-navy);
  color: var(--color-navy);
}

/* Video course page */
.video-page-intro {
  max-width: 40rem;
  margin-bottom: 2rem;
}

.video-layout {
  max-width: 960px;
  margin: 0 auto;
}

.video-player-panel {
  display: none;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 1.25rem;
  margin-bottom: 2rem;
  box-shadow: var(--shadow);
}

.video-player-panel.is-visible {
  display: block;
}

.video-player-panel h3 {
  margin-top: 0;
}

.video-player-panel video {
  width: 100%;
  border-radius: var(--radius-sm);
  background: #000;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 1rem;
}

.gallery-grid button {
  border: 0;
  padding: 0;
  background: none;
  cursor: pointer;
  text-align: left;
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: 2px solid transparent;
  transition: border-color 0.15s, transform 0.15s;
}

.gallery-grid button:hover,
.gallery-grid button:focus-visible {
  border-color: var(--color-accent);
  transform: translateY(-2px);
}

.gallery-grid img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  display: block;
}

.gallery-grid p {
  margin: 0.5rem 0 0;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--color-navy);
  padding: 0 0.15rem;
}

/* Store (SumUp) */
.store-grid {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 18rem), 1fr));
  max-width: 52rem;
  margin-inline: auto;
}

.store-product {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  padding: 0;
}

.store-product-media {
  display: block;
  aspect-ratio: 1;
  background: var(--color-surface);
  border-bottom: 1px solid var(--color-border);
}

.store-product-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.store-product-media--placeholder {
  position: relative;
  background: linear-gradient(145deg, var(--color-navy) 0%, #3d4f6f 100%);
}

.store-product-badge {
  position: absolute;
  top: 0.75rem;
  left: 0.75rem;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  background: var(--color-accent);
  color: #fff;
  padding: 0.25rem 0.5rem;
  border-radius: var(--radius-sm);
}

.store-product-body {
  padding: 1.25rem 1.5rem 1.5rem;
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: 0.5rem;
}

.store-product-body h2 {
  font-size: 1.15rem;
  margin: 0;
}

.store-product-body p {
  margin: 0;
  color: var(--color-muted);
  font-size: 0.95rem;
}

.store-price {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--color-navy);
  margin: 0.25rem 0 0.5rem;
}

.store-price-was {
  margin-left: 0.5rem;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--color-muted);
}

.store-product-body .btn {
  margin-top: auto;
  align-self: flex-start;
}

/* Blog article list */
.post-list {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.post-card {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1.25rem;
  align-items: start;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 1.25rem 1.5rem;
}

@media (max-width: 600px) {
  .post-card {
    grid-template-columns: 1fr;
  }
}

.post-date {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--color-accent);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  white-space: nowrap;
}

/* FAQ */
details.faq-item {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  padding: 0.75rem 1rem;
  margin-bottom: 0.5rem;
}

details.faq-item summary {
  font-weight: 600;
  cursor: pointer;
  color: var(--color-navy);
}

details.faq-item p {
  margin: 0.75rem 0 0;
  color: var(--color-muted);
  font-size: 0.95rem;
}

/* Utility */
.stack-lg > * + * {
  margin-top: 1.25rem;
}

.text-center {
  text-align: center;
}

.mb-0 {
  margin-bottom: 0;
}

code {
  font-size: 0.88em;
  background: rgba(36, 48, 71, 0.08);
  padding: 0.12em 0.4em;
  border-radius: 4px;
  font-family: ui-monospace, monospace;
}

/* Auth utility pages */
.auth-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  text-align: center;
}

.auth-card {
  background: var(--color-surface);
  padding: 2rem;
  border-radius: var(--radius);
  border: 1px solid var(--color-border);
  max-width: 28rem;
  box-shadow: var(--shadow);
}

.section--warm {
  background: linear-gradient(180deg, #fff4e8 0%, var(--color-bg) 100%);
}

.youtube-embed {
  position: relative;
  width: 100%;
  max-width: 880px;
  margin-inline: auto;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 3px solid var(--color-gold);
}

.youtube-embed iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.social-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem 1rem;
}

.social-link {
  font-weight: 600;
  color: var(--color-teal);
}

.social-link:hover {
  color: var(--color-teal-dark);
}

/* Student / tutor portal */
.portal-shell {
  display: grid;
  gap: 1.25rem;
}

@media (min-width: 900px) {
  .portal-shell--active {
    grid-template-columns: 220px 1fr;
    align-items: start;
  }
}

.portal-sidebar {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.portal-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

@media (min-width: 900px) {
  .portal-tabs {
    flex-direction: column;
  }
}

.portal-tab {
  border: 2px solid var(--color-border);
  background: var(--color-surface);
  color: var(--color-navy);
  padding: 0.65rem 1rem;
  border-radius: var(--radius-sm);
  font-weight: 600;
  cursor: pointer;
  text-align: left;
}

.portal-tab.is-active,
.portal-tab:hover {
  border-color: var(--color-teal);
  background: #e8f6f3;
}

.portal-tab--unread {
  position: relative;
}

.portal-tab--unread::after {
  content: "";
  position: absolute;
  top: 0.45rem;
  right: 0.55rem;
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 50%;
  background: #e24b4b;
  box-shadow: 0 0 0 2px var(--color-surface);
}

.portal-presence-widget {
  margin-top: 0.75rem;
  padding: 0.75rem;
  background: #f8fafc;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
}

.portal-presence-widget:empty {
  display: none;
}

.portal-presence-widget__title {
  margin: 0 0 0.35rem;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--color-primary);
}

.portal-presence-widget__count {
  margin: 0 0 0.5rem;
  font-size: 0.8rem;
}

.portal-presence-widget__list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.portal-presence-widget__item {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 0.25rem 0.4rem;
  padding: 0.3rem 0.25rem;
  border-radius: var(--radius-sm);
  font-size: 0.82rem;
}

.portal-presence-widget__name {
  font-weight: 600;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--color-navy);
}

.portal-presence-widget__status {
  font-size: 0.7rem;
  color: var(--color-muted, #5a6b7d);
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

@media (max-width: 899px) {
  .portal-presence-widget {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    align-items: center;
  }
  .portal-presence-widget__title {
    margin: 0;
  }
  .portal-presence-widget__count {
    margin: 0;
  }
  .portal-presence-widget__list {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 0.5rem;
    width: 100%;
  }
  .portal-presence-widget__item {
    display: flex;
    gap: 0.25rem;
  }
}

.portal-panel {
  display: none;
}

.portal-panel.is-active {
  display: block;
}

.portal-chat {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  max-height: 420px;
}

.portal-chat-log {
  flex: 1;
  overflow-y: auto;
  padding: 1rem;
  background: #f0faf8;
  border-radius: var(--radius-sm);
  border: 1px solid var(--color-border);
  min-height: 200px;
}

.portal-chat-msg {
  margin: 0 0 0.65rem;
  padding: 0.5rem 0.75rem;
  border-radius: var(--radius-sm);
  background: var(--color-surface);
  max-width: 90%;
}

.portal-chat-msg--tutor {
  background: #fff0e8;
  margin-left: auto;
}

.portal-upload-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.portal-upload-list li {
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--color-border);
}

.header-auth {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem;
}

.btn-sm {
  padding: 0.4rem 0.75rem;
  font-size: 0.85rem;
}

.portal-guest-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1rem;
}

.portal-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.portal-guest-card h2 {
  margin-top: 0;
}

.portal-course-tree {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.portal-course__title {
  margin: 0 0 0.35rem;
  font-family: var(--font-display);
  color: var(--color-navy);
}

.portal-course__desc {
  margin: 0 0 0.75rem;
  font-size: 0.9rem;
}

.portal-module {
  margin-left: 0.5rem;
  padding-left: 1rem;
  border-left: 3px solid var(--color-teal);
  margin-bottom: 0.85rem;
}

.portal-module__title {
  margin: 0 0 0.5rem;
  font-size: 0.95rem;
  color: var(--color-primary);
}

.portal-video-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.portal-video-list li {
  margin-bottom: 0.35rem;
}

.portal-video-btn {
  text-align: left;
  width: 100%;
  justify-content: flex-start;
}

.portal-payments-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1rem;
}

.portal-chat-form {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.portal-chat-input {
  flex: 1;
  min-width: 0;
  font-family: var(--font-sans);
  font-size: 0.95rem;
  padding: 0.55rem 0.75rem;
  border-radius: 10px;
  border: 1px solid var(--color-border);
  background-color: var(--color-surface);
  color: var(--color-text);
}

.portal-chat-input:focus {
  outline: 2px solid var(--color-teal);
  outline-offset: 1px;
  border-color: var(--color-teal);
}

.portal-chat-form .btn {
  flex-shrink: 0;
}

.portal-chat-msg--student {
  margin-right: auto;
}

body.portal-signed-in .page-hero--color {
  padding: 1.25rem 0 1rem;
}

body.portal-signed-in .page-hero--color .lead {
  display: none;
}

body.portal-signed-in .page-hero--color h1 {
  font-size: 1.5rem;
  margin-bottom: 0;
}

.portal-home-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(11rem, 1fr));
  gap: 1rem;
  margin-top: 1.25rem;
}

.portal-home-card {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  padding: 1.1rem 1rem;
  border: 2px solid var(--color-border);
  border-radius: var(--radius-sm);
  background: var(--color-surface);
  text-align: left;
  cursor: pointer;
  text-decoration: none;
  color: inherit;
  font: inherit;
}

.portal-home-card--primary {
  border-color: var(--color-teal);
  background: linear-gradient(145deg, #e8f6f3, #fff);
  grid-column: 1 / -1;
}

@media (min-width: 640px) {
  .portal-home-card--primary {
    grid-column: span 2;
  }
}

.portal-home-card__icon {
  font-size: 1.5rem;
  color: var(--color-teal-dark);
}

.portal-home-card__title {
  font-weight: 700;
  color: var(--color-navy);
}

.portal-home-card__desc {
  font-size: 0.85rem;
  color: var(--color-muted, #5a6b7d);
}

.portal-class-panel {
  overflow: hidden;
}

.portal-class-header {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.75rem;
}

.portal-class-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.portal-class-status {
  min-height: 1.25rem;
  margin-bottom: 0.75rem;
}

.portal-zoom-root {
  min-height: 28rem;
  width: 100%;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  background: #0f172a;
  overflow: hidden;
}

@media (max-width: 640px) {
  .portal-zoom-root {
    min-height: 18rem;
  }
}

.portal-chat-header {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1rem;
}

.portal-presence-toggle {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9rem;
  cursor: pointer;
}

.portal-chat-layout {
  display: grid;
  gap: 1rem;
}

@media (min-width: 720px) {
  .portal-chat-layout {
    grid-template-columns: 11rem 1fr;
  }
}

.portal-chat-roster {
  padding: 0.75rem;
  background: #f8fafc;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
}

.portal-chat-roster__title {
  margin: 0 0 0.5rem;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--color-primary);
}

.portal-chat-roster__list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.portal-online-dot {
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 50%;
  background: #22c55e;
  flex-shrink: 0;
}

.portal-online-dot--offline {
  background: #94a3b8;
}

.portal-chat-roster__item {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 0.35rem 0.5rem;
  padding: 0.5rem 0.4rem;
  border-radius: var(--radius-sm);
  cursor: pointer;
  border: 2px solid transparent;
}

.portal-chat-roster__item:hover,
.portal-chat-roster__item.is-active {
  background: #e8f6f3;
  border-color: var(--color-teal);
}

.portal-chat-roster__item--btn {
  cursor: default;
}

.portal-chat-roster__tutor {
  width: 100%;
  justify-content: flex-start;
  margin-bottom: 0.5rem;
  text-align: left;
}

.portal-chat-roster__tutor.is-active {
  border-color: var(--color-teal);
  background: #e8f6f3;
}

.portal-chat-roster__name {
  font-size: 0.85rem;
  font-weight: 600;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.portal-chat-roster__status {
  font-size: 0.7rem;
  color: var(--color-muted, #5a6b7d);
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.portal-chat-roster__list--staff {
  margin-bottom: 0.5rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--color-border);
}

.portal-chat-peer-label {
  margin: 0 0 0.5rem;
  font-weight: 600;
}

.portal-chat-msg--peer {
  background: #f1f5f9;
}

.portal-chat-main {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  min-height: 280px;
}

.portal-chat-log {
  max-height: 360px;
}

.portal-chat-msg {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.portal-chat-msg__meta {
  font-size: 0.75rem;
  color: var(--color-muted, #5a6b7d);
}

.portal-chat-msg__text {
  font-size: 0.95rem;
}

.portal-chat-toasts {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  z-index: 1200;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  max-width: min(22rem, calc(100vw - 2rem));
  pointer-events: none;
}

.portal-chat-toast {
  pointer-events: auto;
  padding: 0.75rem 1rem;
  border-radius: var(--radius-sm);
  background: var(--color-surface, #fff);
  border: 1px solid var(--color-border, #d8e3ea);
  box-shadow: 0 8px 24px rgba(15, 35, 45, 0.14);
  cursor: pointer;
  animation: portal-toast-in 0.25s ease-out;
}

.portal-chat-toast.is-leaving {
  opacity: 0;
  transform: translateY(0.35rem);
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.portal-chat-toast__title {
  display: block;
  font-size: 0.85rem;
  margin-bottom: 0.15rem;
}

.portal-chat-toast__body {
  margin: 0;
  font-size: 0.9rem;
  color: var(--color-muted, #5a6b7d);
  line-height: 1.35;
}

@keyframes portal-toast-in {
  from {
    opacity: 0;
    transform: translateY(0.5rem);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.portal-upload-item {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}

.portal-doc-upload-form {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
}

.portal-doc-tabs {
  display: flex;
  gap: 0.5rem;
  margin: 1rem 0 0.75rem;
  border-bottom: 2px solid var(--color-border);
  padding-bottom: 0.5rem;
}

.portal-doc-tab {
  background: none;
  border: none;
  padding: 0.4rem 1rem;
  font-weight: 600;
  cursor: pointer;
  color: var(--color-navy);
  border-radius: var(--radius-sm) var(--radius-sm) 0 0;
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
}

.portal-doc-tab.is-active {
  border-bottom-color: var(--color-teal);
  color: var(--color-teal);
}

.portal-doc-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.portal-doc-item {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 0.65rem 0;
  border-bottom: 1px solid var(--color-border);
}

.portal-doc-info {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  min-width: 0;
  flex: 1;
}

.portal-doc-name {
  font-weight: 600;
  word-break: break-all;
}

.portal-doc-meta {
  font-size: 0.82rem;
}

.portal-doc-actions {
  display: flex;
  gap: 0.35rem;
  flex-shrink: 0;
}

.portal-doc-delete {
  color: #c0392b;
}

.portal-send-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.45);
}

.portal-send-modal__inner {
  background: var(--color-surface);
  border-radius: var(--radius-sm);
  padding: 1.5rem;
  min-width: 280px;
  max-width: 400px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}

.portal-send-modal__inner h3 {
  margin: 0 0 0.75rem;
}

.portal-send-modal__inner select {
  width: 100%;
  margin-bottom: 1rem;
}

.portal-send-modal__actions {
  display: flex;
  gap: 0.5rem;
  justify-content: flex-end;
}

.portal-video-inline {
  width: 100%;
  max-height: 60vh;
  margin: 0.75rem 0;
  background: #000;
  border-radius: var(--radius-sm);
  display: block;
}

.portal-video-btn.is-playing {
  color: var(--color-teal);
  font-weight: 700;
  border-color: var(--color-teal);
}

.portal-pending-list {
  list-style: none;
  padding: 0;
  margin: 0 0 1.5rem;
}

.portal-pending-item {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--color-border);
}

.portal-admin-block {
  margin-bottom: 2rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--color-border);
}

.portal-status-pending {
  border-left: 4px solid var(--color-gold);
  padding-left: 1rem;
}

/* —— Immersive hero (ELE USAL–style) —— */
.hero-immersive {
  position: relative;
  min-height: min(88vh, 720px);
  display: flex;
  align-items: center;
  color: #fff;
  overflow: hidden;
}

.hero-immersive__bg {
  position: absolute;
  inset: 0;
  background:
    var(--gradient-hero),
    url("/images/mallorca/mallorca-11.jpg") center / cover no-repeat;
  z-index: 0;
}

.hero-immersive__inner {
  position: relative;
  z-index: 1;
  padding: clamp(3rem, 8vw, 5rem) 0;
  max-width: 42rem;
}

.hero-immersive .hero-badge {
  color: #fff;
  background: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(6px);
}

.hero-immersive h1 {
  color: #fff;
  text-shadow: 0 2px 24px rgba(0, 0, 0, 0.2);
}

.hero-immersive .lead {
  color: rgba(255, 255, 255, 0.92);
  max-width: 36rem;
}

.hero-immersive .btn-outline {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.55);
}

.hero-immersive .btn-outline:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  border-color: #fff;
}

.hero-immersive .muted {
  color: rgba(255, 255, 255, 0.8);
}

/* Feature strip */
.features-strip {
  background: var(--color-surface);
  border-block: 1px solid var(--color-border);
  padding: 2rem 0;
  margin-top: -2rem;
  position: relative;
  z-index: 2;
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  box-shadow: 0 -12px 40px rgba(15, 39, 68, 0.06);
}

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

.feature-pill {
  display: flex;
  gap: 0.85rem;
  align-items: flex-start;
  padding: 1rem 1.1rem;
  border-radius: var(--radius);
  background: var(--color-bg);
  border: 1px solid var(--color-border);
}

.feature-pill__icon {
  font-size: 1.75rem;
  line-height: 1;
  flex-shrink: 0;
}

.feature-pill h3 {
  font-size: 1rem;
  margin: 0 0 0.25rem;
}

.feature-pill p {
  margin: 0;
  font-size: 0.88rem;
  color: var(--color-muted);
}

/* Inline video clips (no redirect to YouTube) */
.section--video {
  background: var(--color-sand);
}

.video-stage-layout {
  display: grid;
  gap: 1.5rem;
}

@media (min-width: 900px) {
  .video-stage-layout {
    grid-template-columns: 1fr 280px;
    align-items: start;
  }
}

.video-stage {
  background: var(--color-surface);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid var(--color-border);
}

.video-stage__player {
  position: relative;
  aspect-ratio: 16 / 9;
  background: #0f2744;
}

.video-stage__yt-host {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.video-stage__player iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.video-stage__caption {
  margin: 0;
  padding: 1rem 1.25rem 0.35rem;
  font-size: 0.95rem;
  color: var(--color-muted);
}

.video-stage__fallback {
  margin: 0;
  padding: 0 1.25rem 1rem;
  font-size: 0.85rem;
}

.video-stage__fallback a {
  color: var(--color-primary);
}

.video-main-poster {
  position: absolute;
  inset: 0;
  z-index: 2;
  width: 100%;
  height: 100%;
  padding: 0;
  border: 0;
  cursor: pointer;
  background: #0f2744;
}

.video-main-poster.is-hidden {
  display: none;
}

.video-main-poster img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.video-main-poster__play {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 4.5rem;
  height: 4.5rem;
  border-radius: 50%;
  background: rgba(10, 110, 189, 0.92);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
  box-shadow: 0 10px 32px rgba(0, 0, 0, 0.3);
  pointer-events: none;
}

.video-main-poster__duration {
  position: absolute;
  right: 0.75rem;
  bottom: 0.75rem;
  padding: 0.25rem 0.5rem;
  border-radius: var(--radius-sm);
  background: rgba(15, 39, 68, 0.85);
  color: #fff;
  font-size: 0.8rem;
  font-weight: 600;
  pointer-events: none;
}

.video-sidebar,
#video-clip-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

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

.video-sidebar-panel__media {
  aspect-ratio: 16 / 10;
  overflow: hidden;
}

.video-sidebar-panel__media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.video-sidebar-panel__media--split {
  display: grid;
  grid-template-columns: 1fr 1fr;
}

.video-sidebar-panel__body {
  padding: 0.75rem 0.9rem 0.9rem;
}

.video-sidebar-panel__title {
  margin: 0 0 0.25rem;
  font-size: 0.92rem;
  font-family: var(--font-display);
  color: var(--color-navy);
}

.video-sidebar-panel__desc {
  margin: 0;
  font-size: 0.8rem;
  line-height: 1.4;
  color: var(--color-muted);
}

/* Mallorca photo mosaic */
.section--mallorca {
  padding-bottom: 0;
}

.mallorca-grid {
  display: grid;
  gap: 0.65rem;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 160px;
}

@media (max-width: 800px) {
  .mallorca-grid {
    grid-template-columns: repeat(2, 1fr);
    grid-auto-rows: 140px;
  }
}

.mallorca-tile {
  margin: 0;
  border-radius: var(--radius);
  overflow: hidden;
  position: relative;
}

.mallorca-tile--wide {
  grid-column: span 2;
  grid-row: span 2;
}

.mallorca-tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.mallorca-tile:hover img {
  transform: scale(1.06);
}

/* Course cards with image tops */
.card--photo {
  padding: 0;
  overflow: hidden;
}

.card--photo .card-photo {
  height: 140px;
  min-height: 140px;
  background-color: var(--color-primary);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.card--photo .card-body {
  padding: 1.25rem 1.35rem 1.35rem;
}

.promo-banner {
  display: grid;
  gap: 1.5rem;
  align-items: center;
  padding: clamp(1.5rem, 4vw, 2.5rem);
  border-radius: var(--radius-lg);
  background:
    linear-gradient(110deg, rgba(10, 110, 189, 0.92), rgba(28, 181, 163, 0.85)),
    url("/images/mallorca/mallorca-12.jpg") center / cover;
  color: #fff;
}

.promo-banner h2,
.promo-banner p {
  color: #fff;
}

.promo-banner .lead {
  color: rgba(255, 255, 255, 0.9);
}

@media (min-width: 768px) {
  .promo-banner {
    grid-template-columns: 1.2fr auto;
  }
}
