/* ===================================
   CSS Variables (Custom Properties)
   =================================== */
:root {
  --primary-color: #1e2530;
  --accent-color: #be123c;       /* rose-700 — 6.3:1 contrast on white, AA/AAA safe */
  --background-color: #fafafa;
  --card-background: #ffffff;
  --text-color: #23262b;
  --text-secondary: #52525b;     /* zinc-600 — ~7.5:1 contrast on white */
  --border-color: #e4e4e7;
  --spacing: 2rem;
  --shadow-light: 0 2px 8px rgba(0, 0, 0, 0.08);
  --shadow-medium: 0 4px 16px rgba(0, 0, 0, 0.12);
}

/* ===================================
   Base Reset & Typography
   =================================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Segoe UI", system-ui, -apple-system, sans-serif;
  line-height: 1.6;
  color: var(--text-color);
  background-color: var(--background-color);
}

/* ===================================
   Keyframes & Animations
   =================================== */
@keyframes float {
  0%,
  100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-20px);
  }
}

@keyframes shimmer {
  0% {
    transform: translateX(-100%) translateY(-100%) rotate(45deg);
  }
  100% {
    transform: translateX(100%) translateY(100%) rotate(45deg);
  }
}

/* ===================================
   Header & Navigation
   =================================== */
header {
  background: linear-gradient(rgba(10, 12, 16, 0.35), rgba(10, 12, 16, 0.55)), url("../images/balletpics/balletpics26.webp");
  background-size: cover;
  background-position: center 20%;
  background-repeat: no-repeat;
  height: 400px;
  color: white;
  padding: var(--spacing);
  text-align: center;
  position: relative;
  overflow: visible;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  z-index: 9997;
}

.header-text-container {
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(5px);
  padding: 2rem 3rem;
  border-radius: 15px;
  margin-bottom: 2rem;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

header.compact {
  height: 200px;
}

header::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="50" cy="50" r="2" fill="white" opacity="0.1"/></svg>')
    repeat;
  animation: float 20s ease-in-out infinite;
}

header h1 {
  font-size: 3rem;
  margin-bottom: 0.5rem;
  font-weight: 700;
  letter-spacing: 2px;
  position: relative;
  z-index: 1;
}

header .subtitle {
  font-size: 1.2rem;
  opacity: 0.95;
  font-weight: 500;
  margin-bottom: 1rem;
  position: relative;
  z-index: 1;
}

/* ===================================
   Main Content Layout
   =================================== */
main {
  max-width: 1400px;
  margin: 0 auto;
  padding: var(--spacing);
}

/* About/Contact/Privacy page specific main container */
.about-main,
main:has(.about-section) {
  max-width: 900px;
  margin: 0 auto;
  padding: var(--spacing);
  background: var(--card-background);
  border-radius: 16px;
  box-shadow: var(--shadow-light);
  border: 1px solid var(--border-color);
  margin-top: var(--spacing);
  margin-bottom: var(--spacing);
}

/* ===================================
   Hero Sections
   =================================== */
.hero-section {
  background: var(--card-background);
  border-radius: 20px;
  padding: 3rem 2rem;
  margin: 2rem 0;
  text-align: center;
  box-shadow: var(--shadow-medium);
  border: 1px solid var(--border-color);
  position: relative;
  overflow: hidden;
}

.hero-section::before {
  content: "";
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(
    45deg,
    transparent,
    rgba(190, 18, 60, 0.05),
    transparent
  );
  animation: shimmer 3s ease-in-out infinite;
}

.hero-section h1,
.hero-section h2 {
  font-size: 2.5rem;
  color: var(--primary-color);
  margin-bottom: 1rem;
  font-weight: 600;
  position: relative;
  z-index: 1;
}

.hero-section p {
  font-size: 1.2rem;
  color: var(--text-secondary);
  max-width: 800px;
  margin: 0 auto 2rem;
  line-height: 1.7;
  position: relative;
  z-index: 1;
}

/* ===================================
   Page Headers
   =================================== */
.page-header {
  text-align: center;
  margin: 2rem 0 3rem;
}

.page-header h1,
.page-header h2 {
  font-size: 2.5rem;
  color: var(--primary-color);
  margin-bottom: 1rem;
  font-weight: 600;
}

.page-header p {
  font-size: 1.2rem;
  color: var(--text-secondary);
  max-width: 800px;
  margin: 0 auto;
  line-height: 1.7;
}

/* ===================================
   Sections & General Content
   =================================== */
.section {
  margin: 3rem 0;
}

.section h2 {
  font-size: 2rem;
  color: var(--primary-color);
  margin-bottom: 1.5rem;
  text-align: center;
  font-weight: 600;
}

.section-title {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 2rem;
  color: var(--primary-color);
  font-size: 2rem;
  font-weight: 600;
  text-align: center;
}

.title-ornament {
  color: var(--accent-color);
  font-size: 1.2rem;
  opacity: 0.8;
}

.content-card {
  background: var(--card-background);
  border-radius: 16px;
  padding: 2rem;
  margin-bottom: 2rem;
  box-shadow: var(--shadow-light);
  border: 1px solid var(--border-color);
  position: relative;
  overflow: hidden;
}

.content-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: linear-gradient(180deg, var(--accent-color), #8f0e2e);
  border-radius: 0 2px 2px 0;
}

.content-card p {
  margin-bottom: 1.2rem;
  line-height: 1.7;
  color: var(--text-color);
  font-size: 1.05rem;
}

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

.content-card.context-highlight {
  background: linear-gradient(
    135deg,
    rgba(30, 37, 48, 0.04),
    rgba(30, 37, 48, 0.02)
  );
  border: 2px solid rgba(30, 37, 48, 0.08);
}

.content-card.context-highlight::before {
  background: linear-gradient(180deg, var(--primary-color), #3a4356);
  width: 6px;
}

.content-card.premiere-highlight {
  background: linear-gradient(
    135deg,
    rgba(190, 18, 60, 0.05),
    rgba(190, 18, 60, 0.02)
  );
  border: 2px solid rgba(190, 18, 60, 0.1);
}

.content-card.premiere-highlight::before {
  background: linear-gradient(180deg, var(--accent-color), #8f0e2e);
  width: 6px;
}

/* ===================================
   About / Contact / Privacy Page Styles
   =================================== */
.about-section {
  margin-bottom: 2.5rem;
}

.about-section h1 {
  color: var(--primary-color);
  margin-bottom: 1rem;
  font-size: 2.2rem;
  font-weight: 600;
}

.about-section h2 {
  color: var(--primary-color);
  margin-bottom: 1rem;
  font-size: 1.8rem;
  font-weight: 500;
}

.about-section h3 {
  color: var(--accent-color);
  margin: 1.5rem 0 1rem 0;
  font-size: 1.4rem;
  font-weight: 500;
}

.about-section p {
  margin-bottom: 1.2rem;
  color: var(--text-color);
  font-size: 1rem;
  line-height: 1.7;
}

.about-section ul {
  margin: 0 0 1.2rem 1.5rem;
  color: var(--text-color);
  line-height: 1.7;
}

.mission-highlight {
  background: rgba(190, 18, 60, 0.06);
  border-left: 4px solid var(--accent-color);
  padding: 1.5rem;
  margin: 2rem 0;
  border-radius: 0 8px 8px 0;
}

.mission-highlight p {
  margin-bottom: 0;
  font-style: italic;
  color: var(--text-color);
}

/* ===================================
   Index Page Specific Styles
   =================================== */
.cta-group {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 2rem;
}

.overview-section {
  margin: 3rem 0;
}

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

.card-nav-link {
  display: block;
  margin-bottom: 0.5rem;
  color: var(--accent-color);
  text-decoration: none;
}

.card-links {
  margin-bottom: 1rem;
}

.card-btn-group {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-bottom: 1.5rem;
}

.card-note {
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.featured-card img {
  height: 200px;
}

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

.featured-card-body {
  padding: 1.5rem;
}

.featured-card-body p {
  color: var(--text-secondary);
  font-size: 0.9rem;
  line-height: 1.5;
  margin-bottom: 0;
}

.cta-button {
  display: inline-block;
  background: linear-gradient(135deg, var(--accent-color), #8f0e2e);
  color: white;
  text-decoration: none;
  padding: 1rem 2rem;
  border-radius: 12px;
  font-size: 1.1rem;
  font-weight: 600;
  transition: all 0.3s ease;
  box-shadow: var(--shadow-light);
  position: relative;
  z-index: 1;
  border: none;
  cursor: pointer;
}

.cta-button.secondary {
  background: linear-gradient(135deg, var(--primary-color), #3a4356);
}

/* ===================================
   Card Grid Styles (choreographers, companies, works, news)
   =================================== */
.ballet-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 2rem;
  margin-top: var(--spacing);
}

.featured-stories {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.ballet-card,
.featured-card {
  background: var(--card-background);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: var(--shadow-light);
  border: 1px solid var(--border-color);
  position: relative;
}

.ballet-card::before,
.featured-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--accent-color), #8f0e2e);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}

.ballet-card-link,
.featured-card-link {
  text-decoration: none;
  color: inherit;
  display: block;
}

.ballet-card img,
.featured-card img {
  width: 100%;
  height: 250px;
  object-fit: cover;
}

.ballet-card-content,
.featured-card-content {
  padding: 2rem;
}

.ballet-card h3,
.featured-card h3 {
  color: var(--primary-color);
  margin-bottom: 1rem;
  font-size: 1.5rem;
  font-weight: 600;
}

.ballet-card p,
.featured-card p {
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
  font-size: 1rem;
  line-height: 1.6;
}

.read-more-btn,
.card-button {
  display: inline-block;
  padding: 0.8rem 1.5rem;
  background-color: var(--accent-color);
  color: white;
  text-decoration: none;
  border-radius: 10px;
  font-size: 0.95rem;
  font-weight: 500;
  transition: all 0.3s ease;
}

/* Choreographer/company initial avatar tile used on listing cards */
.avatar-tile {
  height: 220px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 3rem;
  font-weight: 300;
  letter-spacing: 0.05em;
}

.card-years,
.card-meta {
  color: var(--text-secondary);
  font-size: 0.9rem;
  font-style: italic;
  margin-bottom: 0.75rem;
}

/* ===================================
   Footer Styles
   =================================== */
footer {
  background-color: var(--primary-color);
  color: white;
  padding: var(--spacing);
  margin-top: calc(var(--spacing) * 3);
}

.footer-content {
  max-width: 1400px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: var(--spacing);
}

.footer-section h3 {
  margin-bottom: 1rem;
  font-weight: 500;
  font-size: 1.1rem;
}

.footer-section p {
  opacity: 0.9;
  font-size: 0.95rem;
  line-height: 1.5;
}

.footer-link {
  color: #f9a8b8;
  text-decoration: none;
  font-weight: 500;
}

/* ===================================
   Responsive Design - Tablet & Mobile
   =================================== */
@media (max-width: 768px) {
  :root {
    --spacing: 1rem;
  }

  header {
    background-position: center 15%;
    height: 300px;
  }

  header h1 {
    font-size: 2rem;
  }

  .hero-section {
    padding: 2rem 1.5rem;
    margin: 1rem 0;
  }

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

  .hero-section p {
    font-size: 1rem;
  }

  .page-header h1,
  .page-header h2 {
    font-size: 2rem;
  }

  .page-header p {
    font-size: 1rem;
  }

  main:has(.about-section) {
    margin: var(--spacing);
    padding: 1.5rem;
  }

  .about-section h1 {
    font-size: 1.8rem;
  }

  .about-section h2 {
    font-size: 1.5rem;
  }

  .about-section h3 {
    font-size: 1.2rem;
  }

  .ballet-grid,
  .featured-stories {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .ballet-card-content,
  .featured-card-content {
    padding: 1.5rem;
  }

  .section-title {
    font-size: 1.6rem;
    flex-direction: column;
    gap: 0.5rem;
  }

  .title-ornament {
    font-size: 1rem;
  }
}

@media (max-width: 480px) {
  header {
    padding: 1rem;
  }

  header h1 {
    font-size: 1.8rem;
  }

  header .subtitle {
    font-size: 0.9rem;
  }

  .hero-section h1,
  .hero-section h2,
  .page-header h1,
  .page-header h2 {
    font-size: 1.8rem;
  }

  .section h2 {
    font-size: 1.6rem;
  }

  .ballet-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
}

/* ===================================
   Cookie Consent Banner
   =================================== */
.cookie-consent {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 9999;
  background-color: var(--primary-color);
  color: white;
  padding: 1.25rem var(--spacing);
  box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.2);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 1rem 2rem;
}

.cookie-consent p {
  margin: 0;
  max-width: 700px;
  font-size: 0.95rem;
  line-height: 1.5;
}

.cookie-consent a {
  color: #f9a8b8;
}

.cookie-consent-actions {
  display: flex;
  gap: 0.75rem;
  flex-shrink: 0;
}

.cookie-btn {
  font-family: inherit;
  font-size: 0.9rem;
  font-weight: 600;
  padding: 0.6rem 1.4rem;
  border-radius: 10px;
  cursor: pointer;
  border: 1px solid transparent;
}

.cookie-btn-primary {
  background-color: var(--accent-color);
  color: white;
}

.cookie-btn-secondary {
  background: transparent;
  color: white;
  border-color: rgba(255, 255, 255, 0.4);
}

@media (max-width: 480px) {
  .cookie-consent {
    flex-direction: column;
    text-align: center;
  }
}

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

body {
  font-family: Arial, sans-serif;
}

/* Navbar container */
nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background-color: #14171c;
  color: #fff;
  padding: 0.75rem 1.5rem;
  position: sticky;
  top: 0;
  z-index: 1000;
}

/* Logo + Brand */
.nav-left {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.nav-logo-mark {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent-color, #be123c), #1e2530);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.1rem;
  color: #fff;
  flex-shrink: 0;
}

.brand {
  font-size: 1.25rem;
  font-weight: bold;
}

/* Menu Items */
.nav-links {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.nav-links li {
  list-style: none;
  position: relative;
}

.nav-links a {
  color: #fff;
  text-decoration: none;
  padding: 0.5rem;
  display: block;
  transition: color 0.3s;
}

.nav-links a:hover {
  color: #f472b6;
}

/* Dropdown Menu */
.dropdown > a::after {
  content: "▼";
  font-size: 0.8rem;
  margin-left: 0.5rem;
  transition: transform 0.3s ease;
}

.dropdown-content {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background-color: #20242c;
  min-width: 180px;
  border-radius: 4px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
  z-index: 1001;
}

.dropdown-content a {
  padding: 0.75rem 1rem;
}

.dropdown-content a:hover {
  background-color: #2c313b;
}

.dropdown:hover .dropdown-content {
  display: block;
}

/* Mobile Menu Button */
.menu-toggle {
  display: none;
  flex-direction: column;
  cursor: pointer;
  gap: 4px;
  padding: 8px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  will-change: transform;
}

.menu-toggle span {
  width: 25px;
  height: 3px;
  background-color: #fff;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  transform-origin: center;
  will-change: transform, opacity;
}

/* Hamburger Animation */
.menu-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(6px, 6px);
}

.menu-toggle.active span:nth-child(2) {
  opacity: 0;
  transform: scale(0);
}

.menu-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(6px, -6px);
}

/* Responsive */
@media (max-width: 768px) {
  nav {
    position: relative;
  }

  .menu-toggle {
    display: flex;
  }

  .nav-links {
    display: none;
    flex-direction: column;
    width: 100%;
    background-color: #14171c;
    position: absolute;
    top: 100%;
    left: 0;
    padding: 0;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    z-index: 999;
  }

  .nav-links.show {
    display: flex;
    animation: slideDown 0.3s ease-out;
  }

  @keyframes slideDown {
    from {
      opacity: 0;
      transform: translateY(-10px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }

  .nav-links li {
    width: 100%;
    border-bottom: 1px solid #333;
  }

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

  .nav-links > li > a {
    padding: 1rem 1.5rem;
    text-align: left;
    width: 100%;
    display: block;
  }

  .nav-links > li > a:hover {
    background-color: #20242c;
  }

  /* Simple dropdown for mobile */
  .dropdown:hover .dropdown-content {
    display: none;
  }

  .dropdown-content {
    display: none;
    background-color: #14171c;
    width: 100%;
    position: relative;
    z-index: 10;
  }

  .dropdown.active .dropdown-content {
    display: block;
    animation: fadeIn 0.2s ease-out;
  }

  @keyframes fadeIn {
    from {
      opacity: 0;
    }
    to {
      opacity: 1;
    }
  }

  .dropdown-content a {
    padding: 0.75rem 2.5rem;
    border-bottom: 1px solid #444;
    color: #ccc;
    display: block;
    background-color: #14171c;
  }

  .dropdown-content a:last-child {
    border-bottom: none;
  }

  .dropdown-content a:hover {
    background-color: #20242c;
    color: #fff;
  }

  /* Arrow for mobile dropdowns */
  .dropdown > a::after {
    content: "▼";
    float: right;
    transition: transform 0.3s ease;
  }

  .dropdown.active > a::after {
    transform: rotate(180deg);
  }
}

/* ===================================
   Skip to main content link
   =================================== */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 9999;
  background: #000;
  color: #fff;
  padding: 0.5rem 1rem;
  text-decoration: none;
  font-weight: 600;
  border-radius: 0 0 4px 0;
}

.skip-link:focus {
  left: 0;
}

/* ===================================
   Keyboard-accessible dropdowns (desktop)
   =================================== */
@media (min-width: 769px) {
  .dropdown:focus-within .dropdown-content {
    display: block;
  }
}

/* ===================================
   Active nav link highlighting
   =================================== */
.nav-links a.active {
  color: var(--accent-color);
}

.nav-links .has-active > a {
  color: var(--accent-color);
}

/* Shared styles for choreographer / company / work / news detail pages */

/* Profile Info Header */
.ballet-info-header {
  text-align: center;
  margin: 2rem 0 3rem 0;
  padding: 2rem;
  background: linear-gradient(
    135deg,
    rgba(30, 37, 48, 0.06),
    rgba(190, 18, 60, 0.06)
  );
  border-radius: 20px;
  border: 1px solid rgba(30, 37, 48, 0.12);
}

.ballet-title {
  font-size: 3rem;
  color: var(--primary-color);
  margin-bottom: 0.5rem;
  font-weight: 700;
  letter-spacing: 1px;
}

.ballet-subtitle {
  font-size: 1.3rem;
  color: var(--text-secondary);
  font-style: italic;
  margin-bottom: 2rem;
}

.ballet-details {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
  max-width: 900px;
  margin: 0 auto;
}

.detail-item {
  background: var(--card-background);
  padding: 1rem;
  border-radius: 12px;
  box-shadow: var(--shadow-light);
  border: 1px solid var(--border-color);
  text-align: center;
}

.detail-item strong {
  color: var(--primary-color);
  display: block;
  margin-bottom: 0.3rem;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* ===================================
   Tags
   =================================== */
.story-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: center;
  margin-top: 1.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(30, 37, 48, 0.12);
}

.story-tag {
  display: inline-block;
  padding: 0.28rem 0.8rem;
  border-radius: 2rem;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  line-height: 1.5;
  text-decoration: none;
  cursor: pointer;
  transition: filter 0.15s ease;
}

.story-tag:hover,
.story-tag:focus-visible {
  filter: brightness(0.94);
}

.story-tag[data-category="era"] {
  background: #e8f4fd;
  color: #1a5f8a;
  border: 1px solid #b8d9f0;
}

.story-tag[data-category="technique"] {
  background: #fdf0f5;
  color: #9d174d;
  border: 1px solid #f3c6dc;
}

.story-tag[data-category="theme"] {
  background: #f0faf0;
  color: #2a6a2a;
  border: 1px solid #b0ddb0;
}

.story-tag[data-category="region"] {
  background: #f3f0fd;
  color: #4c2a8a;
  border: 1px solid #d3c6f3;
}

/* ===================================
   Hero Image
   =================================== */
.ballet-image-section {
  margin: 2rem 0;
  text-align: center;
}

.ballet-hero-image {
  width: 100%;
  max-width: 1200px;
  height: 400px;
  object-fit: cover;
  border-radius: 20px;
  box-shadow: var(--shadow-medium);
  border: 1px solid var(--border-color);
}

.image-caption {
  margin-top: 1rem;
  padding: 0.8rem 1.5rem;
  background: var(--card-background);
  border-radius: 12px;
  box-shadow: var(--shadow-light);
  border: 1px solid var(--border-color);
  max-width: 600px;
  margin: 1rem auto 0;
}

.image-caption p {
  margin: 0;
  color: var(--text-secondary);
  font-style: italic;
  font-size: 1rem;
}

.story-content {
  max-width: 900px;
  margin: 0 auto;
}

.act-section {
  margin: 3rem 0;
}

.act-section h3 {
  color: var(--primary-color);
  font-size: 1.6rem;
  margin-bottom: 1.5rem;
  font-weight: 600;
  text-align: center;
  position: relative;
  padding-bottom: 0.5rem;
}

.act-section h3::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 3px;
  background: linear-gradient(90deg, var(--accent-color), #8f0e2e);
  border-radius: 2px;
}

/* Small info cards — notable works, repertoire highlights, related premieres */
.info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

.info-card {
  background: var(--card-background);
  border-radius: 12px;
  padding: 1.5rem;
  box-shadow: var(--shadow-light);
  border: 1px solid var(--border-color);
  position: relative;
}

.info-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--accent-color), #8f0e2e);
  border-radius: 12px 12px 0 0;
}

.info-card h4 {
  color: var(--primary-color);
  font-size: 1.2rem;
  margin-bottom: 0.75rem;
  font-weight: 600;
}

.info-card p {
  color: var(--text-secondary);
  line-height: 1.6;
  font-size: 0.95rem;
}

/* ===================================
   Prev/Next profile navigation
   =================================== */
.story-navigation {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  margin: 3rem 0 2rem 0;
  flex-wrap: wrap;
}

.nav-button {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  padding: 1.2rem 1.8rem;
  background: linear-gradient(
    135deg,
    var(--card-background) 0%,
    rgba(30, 37, 48, 0.02) 100%
  );
  color: var(--primary-color);
  text-decoration: none;
  border-radius: 15px;
  border: 2px solid var(--border-color);
  font-weight: 600;
  box-shadow: var(--shadow-medium);
  min-width: 160px;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.nav-button::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--accent-color), #8f0e2e);
  border-radius: 15px 15px 0 0;
}

.nav-icon {
  font-size: 1.2rem;
  color: var(--accent-color);
}

.nav-text {
  font-size: 1rem;
}

.nav-center {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
}

.ballet-ornament {
  font-size: 2rem;
  color: var(--accent-color);
  opacity: 0.6;
}

@media (max-width: 768px) {
  .ballet-title {
    font-size: 2.2rem;
  }

  .ballet-subtitle {
    font-size: 1.1rem;
  }

  .ballet-details {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.8rem;
    padding: 1rem;
  }

  .ballet-hero-image {
    height: 300px;
    border-radius: 12px;
  }

  .image-caption {
    margin: 1rem;
    padding: 0.6rem 1rem;
  }

  .act-section h3 {
    font-size: 1.4rem;
  }

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

  .story-navigation {
    flex-direction: column;
    gap: 1.5rem;
  }

  .nav-center {
    order: -1;
  }
}

@media (max-width: 480px) {
  .ballet-title {
    font-size: 1.8rem;
  }

  .ballet-info-header {
    padding: 1.5rem;
    margin: 1rem 0 2rem 0;
  }

  .ballet-details {
    grid-template-columns: 1fr;
  }

  .ballet-hero-image {
    height: 250px;
    border-radius: 8px;
  }

  .nav-button {
    padding: 1rem 1.2rem;
    min-width: 140px;
  }
}
