/*
 * Tanzschule Neubeck Theme - EXACT from Astro Site
 */

:root {
  /* EXACT Colors from Astro Site */
  --primary-950: #3b0764;
  --primary-900: #581c87;
  --primary-800: #6b21a8;
  --primary-700: #7c3aed;
  
  --gold-400: #d4af37;
  --gold-300: #fde047;
  --gold-500: #c49940;
  
  --neutral-100: #f5f5f5;
  --neutral-200: #e5e5e5;
  --neutral-300: #d4d4d4;
  --neutral-400: #a3a3a3;
  --neutral-500: #737373;
  --neutral-700: #404040;
  --neutral-800: #262626;
  --neutral-900: #171717;
  --neutral-950: #0a0a0a;
}

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

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background-color: var(--neutral-950);
  color: var(--neutral-100);
  line-height: 1.6;
  padding-top: 11rem;
}
.downloads-list { display: none !important; }

/* Homepage - remove body padding, slider handles it */
body.home {
  padding-top: 0;
}

h1, h2, h3, h4 { font-weight: 700; line-height: 1.2; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; }

/* Main content - pull up behind fixed header so hero images fill the gap */
#main-content {
  margin-top: -5rem;
  padding: 0;
}

/* For pages without a hero, add the spacing back */
#main-content > article > .container:first-child {
  padding-top: 11rem;
}

/* Container */
.container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1rem;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 1.5rem;
  font-weight: 700;
  border-radius: 0.75rem;
  transition: all 0.3s;
  cursor: pointer;
  border: none;
  font-family: inherit;
}

.btn-primary {
  background: linear-gradient(to right, var(--gold-400), var(--gold-500));
  color: var(--primary-950);
  box-shadow: 0 10px 15px -3px rgba(212, 175, 55, 0.2);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 20px 25px -5px rgba(212, 175, 55, 0.3);
}

.btn-sm {
  padding: 0.5rem 1.25rem;
  font-size: 0.875rem;
  margin-left: 1rem;
}

/* HEADER - Fixed Navigation */
.header {
  position: absolute;
  top: 3.5rem;
  left: 1.5rem;
  right: 1.5rem;
  z-index: 50;
  background: linear-gradient(135deg, #4a2070, #563085, #4a2070);
  overflow: visible;
  border-radius: 0.75rem;
}

/* Gold accent lines top and bottom */
.header::before,
.header::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(to right, transparent, #c5a55a 20%, #c5a55a 80%, transparent);
  z-index: 2;
  border-radius: inherit;
}

.header::before {
  top: 0;
}

.header::after {
  bottom: 0;
}

.header-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 5.5rem;
  position: relative;
}

@media (max-width: 1023px) {
  .header {
    top: 2.5rem;
    left: 0.75rem;
    right: 0.75rem;
  }
  .header-container {
    padding: 0 1rem;
    height: 4.5rem;
  }
}

@media (max-width: 479px) {
  .header {
    top: 2rem;
    left: 0.5rem;
    right: 0.5rem;
    border-radius: 0.5rem;
  }
  .header-container {
    height: 4rem;
  }
}

.logo {
  position: relative;
  z-index: 10;
  flex-shrink: 0;
  margin-right: 2.5rem;
  align-self: center;
}
.tsn-card{
	margin-bottom: 20px !important;
}
.logo img {
  height: 11rem;
  width: auto;
  position: relative;
  filter: drop-shadow(0 4px 16px rgba(0, 0, 0, 0.5));
}

/* Scale down for smaller desktops */
@media (max-width: 1399px) and (min-width: 1200px) {
  .logo {
    margin-right: 1rem;
  }
  .logo img {
    height: 9rem;
  }
}

@media (max-width: 1199px) and (min-width: 1024px) {
  .logo {
    margin-right: 0.75rem;
  }
  .logo img {
    height: 8rem;
  }
}

/* Mobile/Tablet */
@media (max-width: 1023px) {
  .logo img {
    height: 7rem;
  }
}

@media (max-width: 479px) {
  .logo img {
    height: 5.5rem;
  }
}

/* Desktop Navigation */
.nav-desktop {
  display: none;
  flex: 1;
  justify-content: flex-end;
}

@media (min-width: 1024px) {
  .nav-desktop {
    display: flex;
  }
}

.nav-list {
  display: flex;
  align-items: center;
  gap: 0;
  list-style: none;
  flex-wrap: nowrap;
}

.nav-link {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.8rem 0.9rem;
  color: #ffffff;
  font-weight: 300;
  font-size: 1.05rem;
  letter-spacing: 0.02em;
  transition: color 0.25s ease, background 0.25s ease;
  background: none;
  border: none;
  cursor: pointer;
  font-family: inherit;
  white-space: nowrap;
  border-radius: 0.25rem;
  position: relative;
}

/* Large desktop — slightly bigger */
@media (min-width: 1400px) {
  .nav-link {
    padding: 0.8rem 1.1rem;
    font-size: 1.15rem;
  }
}

/* Scale down nav links for smaller desktop screens */
@media (max-width: 1199px) and (min-width: 1024px) {
  .nav-link {
    padding: 0.6rem 0.4rem;
    font-size: 0.85rem;
    gap: 0.2rem;
  }
}

.nav-link:hover {
  color: #c5a55a;
}

/* Subtle gold underline on hover */
.nav-item > .nav-link::after,
.has-dropdown > .nav-link::after {
  content: '';
  position: absolute;
  bottom: 0.2rem;
  left: 50%;
  transform: translateX(-50%) scaleX(0);
  width: 70%;
  height: 2px;
  background: #c5a55a;
  transition: transform 0.25s ease;
  border-radius: 1px;
}

.nav-item > .nav-link:hover::after,
.has-dropdown > .nav-link:hover::after,
.has-dropdown > .dropdown-toggle[aria-expanded="true"]::after {
  transform: translateX(-50%) scaleX(1);
}

.chevron {
  transition: transform 0.25s ease;
  opacity: 0.7;
  width: 16px;
  height: 16px;
}

@media (max-width: 1199px) and (min-width: 1024px) {
  .chevron {
    width: 13px;
    height: 13px;
  }
}

.dropdown-toggle[aria-expanded="true"] .chevron {
  transform: rotate(180deg);
  opacity: 1;
}

/* Dropdown Mega Menu */
.dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  right: 0;
  margin-top: 0;
  background: linear-gradient(160deg, #5a348a, #4a2070 40%, #3d1a60);
  border-radius: 0 0 0.75rem 0.75rem;
  border: 1px solid rgba(197, 165, 90, 0.25);
  border-top: 2px solid #c5a55a;
  box-shadow:
    0 20px 50px -10px rgba(0, 0, 0, 0.5),
    0 8px 20px -5px rgba(0, 0, 0, 0.3);
  min-width: 200px;
  padding: 1.25rem 1.5rem;
  z-index: 60;
}

.dropdown-wide {
  width: min(620px, 90vw);
}

.dropdown-single {
  min-width: 220px;
}

.dropdown-right {
  right: 0;
  left: auto;
}

.dropdown-center {
  left: 50%;
  transform: translateX(-50%);
}

.dropdown-wide-paartanz {
  width: min(580px, 90vw);
}

.dropdown-wide-tanzarten {
  width: min(660px, 90vw);
}

/* Ensure dropdowns don't overflow viewport */
@media (max-width: 1199px) {
  .dropdown-menu {
    right: 0;
    left: auto;
  }
  .dropdown-center {
    left: auto;
    right: 0;
    transform: none;
  }
}

.dropdown-menu:not(.dropdown-right):not(.dropdown-center) {
  left: 0;
  right: auto;
}

.dropdown-grid {
  display: grid;
  gap: 2rem;
}

.dropdown-grid-2 {
  grid-template-columns: repeat(2, 1fr);
}

.dropdown-grid-3 {
  grid-template-columns: repeat(3, 1fr);
}

.dropdown-section-title,
.dropdown-section h3,
.dropdown-section h4 {
  color: #c5a55a;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: 1rem;
  padding-bottom: 0.6rem;
  border-bottom: 1px solid rgba(197, 165, 90, 0.35);
}

.dropdown-section ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.dropdown-section li {
  margin-bottom: 0.15rem;
}

.dropdown-section a {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.45rem 0.6rem;
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.85rem;
  font-weight: 400;
  transition: all 0.2s ease;
  border-radius: 0.3rem;
}

.dropdown-section a:hover {
  color: #ffffff;
  background: rgba(197, 165, 90, 0.12);
  padding-left: 0.85rem;
}

/* Icon styles in navigation */
.icon-item,
.icon-num {
  width: 1.25rem;
  color: rgba(197, 165, 90, 0.6);
  flex-shrink: 0;
}

.dropdown-contact {
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(197, 165, 90, 0.2);
  display: flex;
  gap: 1rem;
}

.contact-link {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.875rem;
  transition: color 0.2s;
}

.contact-link:hover {
  color: #c5a55a;
}

.contact-link svg,
.contact-link i {
  color: #c5a55a;
}

.has-dropdown {
  position: relative;
}

/* Mobile Menu Button */
.mobile-menu-btn {
  display: flex;
  padding: 0.5rem;
  border-radius: 0.5rem;
  background: none;
  border: none;
  color: #ffffff;
  cursor: pointer;
  transition: all 0.2s;
}

.mobile-menu-btn:hover {
  background: rgba(197, 165, 90, 0.15);
  color: #c5a55a;
}

@media (min-width: 1024px) {
  .mobile-menu-btn {
    display: none;
  }
}

/* Mobile Navigation */
.nav-mobile {
  background: linear-gradient(180deg, #4a2070, #3d1a60);
  backdrop-filter: blur(8px);
  border-top: 2px solid #c5a55a;
  padding: 1.5rem 1rem;
}

.mobile-contact-bar {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid rgba(197, 165, 90, 0.2);
  margin-bottom: 1rem;
}

.mobile-contact-bar a {
  color: #c5a55a;
  font-size: 0.875rem;
}

.mobile-section-label {
  display: block;
  color: #c5a55a;
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 8px 16px 4px;
  opacity: 0.85;
}

.mobile-section-label-divider {
  padding-top: 12px;
  margin-top: 4px;
  border-top: 1px solid rgba(197, 165, 90, 0.2);
}

.mobile-nav-list {
  list-style: none;
}

.mobile-nav-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 0.75rem 1rem;
  color: #ffffff;
  font-weight: 500;
  background: none;
  border: none;
  border-radius: 0.5rem;
  cursor: pointer;
  font-family: inherit;
  transition: all 0.2s;
}

.mobile-nav-link:hover {
  background: rgba(197, 165, 90, 0.1);
  color: #c5a55a;
}

.accordion-toggle.open .chevron {
  transform: rotate(180deg);
}

.accordion-content {
  padding-left: 1rem;
  margin-top: 0.5rem;
}

.accordion-content a {
  display: block;
  padding: 0.5rem 1rem;
  color: var(--neutral-400);
  font-size: 0.875rem;
  border-radius: 0.5rem;
  transition: all 0.2s;
}

.accordion-content a:hover {
  background: rgba(197, 165, 90, 0.1);
  color: #c5a55a;
}

.mobile-footer {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--neutral-700);
  text-align: center;
  font-size: 0.875rem;
  color: var(--neutral-400);
}

.mobile-footer a {
  color: var(--gold-400);
}

.mobile-footer p {
  margin-bottom: 0.5rem;
}

.mobile-social {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-top: 1rem;
}

.mobile-social a {
  font-size: 1.5rem;
  color: var(--neutral-400);
  transition: color 0.2s;
}

.mobile-social a:hover {
  color: var(--gold-400);
}

.mobile-legal {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-top: 1rem;
}

.mobile-legal a {
  color: var(--neutral-400);
  font-size: 0.875rem;
}

.mobile-legal a:hover {
  color: var(--gold-400);
}

.mobile-nav-content {
  margin-bottom: 1rem;
}

.mobile-nav-item {
  border-bottom: 1px solid rgba(115, 115, 115, 0.5);
}

.mobile-nav-single {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1rem;
  border-bottom: 1px solid rgba(115, 115, 115, 0.5);
}

/* AlpineJS utilities */
[x-cloak] {
  display: none !important;
}

.rotate-180 {
  transform: rotate(180deg);
}

.mobile-nav-link i.fa-chevron-down {
  transition: transform 0.2s;
}

/* Prose - Rich Text */
.prose {
  max-width: 65ch;
  color: var(--neutral-300);
  line-height: 1.75;
}

.prose h2 {
  color: var(--gold-400);
  font-size: 1.875rem;
  margin: 2rem 0 1rem;
}

.prose h3 {
  color: var(--neutral-100);
  font-size: 1.5rem;
  margin: 1.5rem 0 0.75rem;
}

.prose p {
  margin-bottom: 1.25rem;
}

.prose a {
  color: var(--gold-400);
}

.prose a:hover {
  color: var(--gold-300);
}

.prose strong {
  color: #fff;
  font-weight: 600;
}

.prose ul, .prose ol {
  margin-bottom: 1.25rem;
  padding-left: 1.625rem;
}

.prose li {
  margin-bottom: 0.5rem;
}

.prose blockquote {
  border-left: 4px solid var(--gold-400);
  padding-left: 1.5rem;
  color: var(--gold-400);
  font-style: italic;
  margin: 2rem 0;
}

.prose table {
  width: 100%;
  border-collapse: collapse;
  margin: 2rem 0;
}

.prose td, .prose th {
  padding: 0.75rem;
  border-bottom: 1px solid rgba(124, 58, 237, 0.3);
}

.prose-invert { color: var(--neutral-200); }
.prose-lg { font-size: 1.125rem; }
.max-w-none { max-width: none; }

/* Utility Classes */
.text-white { color: #fff; }
.text-gold-400 { color: var(--gold-400); }
.text-gold-300 { color: var(--gold-300); }
.text-neutral-100 { color: var(--neutral-100); }
.text-neutral-200 { color: var(--neutral-200); }
.text-neutral-300 { color: var(--neutral-300); }
.text-neutral-400 { color: var(--neutral-400); }

.bg-gradient-to-br {
  background: linear-gradient(to bottom right, rgba(88, 28, 135, 0.5), rgba(59, 7, 100, 0.5));
}

.border { border-width: 1px; }
.border-primary-700\/30 { border-color: rgba(124, 58, 237, 0.3); }
.border-gold-400 { border-color: var(--gold-400); }
.border-gold-400\/30 { border-color: rgba(212, 175, 55, 0.3); }
.rounded-xl { border-radius: 0.75rem; }

.p-4 { padding: 1rem; }
.p-6 { padding: 1.5rem; }
.p-8 { padding: 2rem; }
.px-6 { padding-left: 1.5rem; padding-right: 1.5rem; }
.py-4 { padding-top: 1rem; padding-bottom: 1rem; }
.py-12 { padding-top: 3rem; padding-bottom: 3rem; }
.py-16 { padding-top: 4rem; padding-bottom: 4rem; }

.mt-2 { margin-top: 0.5rem; }
.mt-4 { margin-top: 1rem; }
.mt-8 { margin-top: 2rem; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-4 { margin-bottom: 1rem; }
.mb-6 { margin-bottom: 1.5rem; }
.mb-8 { margin-bottom: 2rem; }
.my-6 { margin-top: 1.5rem; margin-bottom: 1.5rem; }
.my-8 { margin-top: 2rem; margin-bottom: 2rem; }
.my-12 { margin-top: 3rem; margin-bottom: 3rem; }
.mr-2 { margin-right: 0.5rem; }

.space-y-3 > * + * { margin-top: 0.75rem; }
.space-y-4 > * + * { margin-top: 1rem; }

.flex { display: flex; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.gap-2 { gap: 0.5rem; }
.gap-3 { gap: 0.75rem; }

.grid { display: grid; }
.grid-cols-1 { grid-template-columns: repeat(1, minmax(0, 1fr)); }

@media (min-width: 768px) {
  .md\\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (min-width: 1024px) {
  .lg\\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .lg\\:grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

.gap-6 { gap: 1.5rem; }
.gap-8 { gap: 2rem; }
.gap-12 { gap: 3rem; }

/* Course Page Two-Column Layout (2/3 content, 1/3 iframe) */
.course-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  margin-top: 2rem;
}

@media (min-width: 1024px) {
  .course-layout {
    grid-template-columns: 2fr 1fr;
  }
}

.course-info {
  min-width: 0;
}

.course-iframe {
  min-width: 0;
}

.course-iframe .iframe-container {
  position: sticky;
  top: 6rem;
  background: linear-gradient(to bottom right, rgba(59, 7, 100, 0.5), rgba(30, 3, 50, 0.5));
  border-radius: 0.75rem;
  border: 1px solid rgba(107, 33, 168, 0.3);
  padding: 1.5rem;
}

.iframe-placeholder {
  min-height: 400px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(38, 38, 38, 0.5);
  border-radius: 0.5rem;
  padding: 2rem;
  text-align: center;
}

.relative { position: relative; }
.absolute { position: absolute; }
.inset-0 { top: 0; right: 0; bottom: 0; left: 0; }
.overflow-hidden { overflow: hidden; }

.w-full { width: 100%; }
.h-48 { height: 12rem; }
.h-64 { height: 16rem; }
.object-cover { object-fit: cover; }

.transition-all { transition: all 0.3s; }
.hover\\:bg-primary-800\/30:hover { background-color: rgba(107, 33, 168, 0.3); }
.hover\\:border-gold-400\/50:hover { border-color: rgba(212, 175, 55, 0.5); }
.hover\\:text-gold-300:hover { color: var(--gold-300); }

.text-lg { font-size: 1.125rem; }
.text-xl { font-size: 1.25rem; }
.text-2xl { font-size: 1.5rem; }
.text-3xl { font-size: 1.875rem; }
.text-4xl { font-size: 2.25rem; }
.text-5xl { font-size: 3rem; }
.font-bold { font-weight: 700; }
.font-semibold { font-weight: 600; }

.list-none { list-style: none; }
.pl-6 { padding-left: 1.5rem; }

/* Alpine.js */
[x-cloak] { display: none !important; }
.rotate-180 { transform: rotate(180deg); }

/* Cards */
.card {
  background: linear-gradient(to bottom right, var(--primary-900), var(--primary-950));
  border-radius: 1rem;
  border: 1px solid rgba(124, 58, 237, 0.3);
}

.card:hover {
  border-color: rgba(212, 175, 55, 0.5);
}

/* Additional Styling - Complete from Astro Site */

/* Hero Image Section */
.hero-image-section {
  position: relative;
  height: 500px;
  overflow: hidden;
  padding-top: 11rem;
}

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

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.3), transparent);
}

.hero-content {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 3rem 1.5rem;
}

.hero-content h1 {
  font-size: 3rem;
  color: #fff;
  margin-bottom: 1rem;
}

.hero-content p {
  font-size: 1.25rem;
  color: var(--neutral-200);
}

@media (min-width: 768px) {
  .hero-content h1 {
    font-size: 3.75rem;
  }
}

/* Page Content Sections */
.page-content {
  padding: 3rem 0;
}

/* Accordion Sections with Alpine.js */
.accordion-container {
  margin: 3rem 0;
}

.accordion-item {
  background: linear-gradient(to bottom right, rgba(88, 28, 135, 0.5), rgba(59, 7, 100, 0.5));
  border-radius: 0.75rem;
  border: 1px solid rgba(124, 58, 237, 0.3);
  overflow: hidden;
  margin-bottom: 1rem;
}

.accordion-button {
  width: 100%;
  padding: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  text-align: left;
  background: none;
  border: none;
  cursor: pointer;
  transition: background-color 0.2s;
  color: #fff;
  font-size: 1.125rem;
  font-weight: 600;
}

.accordion-button:hover {
  background-color: rgba(107, 33, 168, 0.3);
}

.accordion-icon {
  color: var(--gold-400);
  transition: transform 0.2s;
}

.accordion-content {
  padding: 0 1.5rem 1.5rem;
  color: var(--neutral-300);
  line-height: 1.75;
}

.accordion-content ul {
  list-style: disc;
  padding-left: 1.5rem;
  margin-top: 0.5rem;
}

.accordion-content li {
  margin-bottom: 0.5rem;
}

/* Course Boxes Grid */
.course-boxes-section {
  margin: 3rem 0;
}

.course-boxes-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  margin-top: 2rem;
}

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

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

.course-box {
  background: linear-gradient(to bottom right, rgba(88, 28, 135, 0.5), rgba(59, 7, 100, 0.5));
  border-radius: 0.75rem;
  border: 1px solid rgba(124, 58, 237, 0.3);
  overflow: hidden;
  transition: all 0.3s;
}

.course-box:hover {
  border-color: rgba(212, 175, 55, 0.5);
  transform: translateY(-4px);
}

.course-box-image {
  width: 100%;
  height: 12rem;
  object-fit: cover;
}

.course-box-content {
  padding: 1.5rem;
}

.course-box-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 1rem;
}

.course-box-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--gold-400);
  font-weight: 600;
  transition: color 0.2s;
}

.course-box-link:hover {
  color: var(--gold-300);
}

/* Gallery Grid */
.gallery-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  margin: 3rem 0;
}

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

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

.gallery-item {
  background: linear-gradient(to bottom right, rgba(88, 28, 135, 0.5), rgba(59, 7, 100, 0.5));
  border-radius: 0.75rem;
  border: 1px solid rgba(124, 58, 237, 0.3);
  overflow: hidden;
}

.gallery-image {
  width: 100%;
  height: 16rem;
  object-fit: cover;
}

.gallery-caption {
  padding: 1rem;
}

.gallery-title {
  font-weight: 600;
  color: #fff;
  margin-bottom: 0.25rem;
}

.gallery-description {
  font-size: 0.875rem;
  color: var(--neutral-400);
}

/* ABO Pricing Tabs */
.abo-tabs-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  margin: 3rem 0;
}

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

@media (min-width: 1024px) {
  .abo-tabs-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.abo-tab {
  background: linear-gradient(to bottom right, rgba(88, 28, 135, 0.5), rgba(59, 7, 100, 0.5));
  border-radius: 0.75rem;
  border: 1px solid rgba(124, 58, 237, 0.3);
  padding: 2rem;
  transition: all 0.3s;
}

.abo-tab:hover {
  border-color: rgba(212, 175, 55, 0.5);
  transform: translateY(-4px);
}

.abo-tab-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--gold-400);
  margin-bottom: 0.5rem;
}

.abo-tab-price {
  font-size: 2.5rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 1rem;
}

.abo-tab-description {
  color: var(--neutral-300);
  margin-bottom: 1.5rem;
}

.abo-tab-benefits {
  color: var(--neutral-300);
  font-size: 0.875rem;
  line-height: 1.75;
}

/* Content Blocks */
.content-block {
  margin: 2rem 0;
}

.content-block-image {
  width: 100%;
  border-radius: 0.75rem;
  margin: 2rem 0;
}

.content-block-caption {
  text-align: center;
  color: var(--neutral-400);
  font-size: 0.875rem;
  margin-top: 0.5rem;
}

/* Page Title Section */
.page-title-section {
  background: linear-gradient(to bottom right, var(--primary-900), var(--primary-800), var(--primary-950));
  padding: 4rem 1rem;
}

.page-title {
  font-size: 2.25rem;
  font-weight: 700;
  color: #fff;
}

.page-excerpt {
  font-size: 1.25rem;
  color: var(--neutral-200);
  margin-top: 1rem;
}

@media (min-width: 768px) {
  .page-title {
    font-size: 3rem;
  }
}

/* Section Headers */
.section-header {
  margin: 3rem 0 2rem;
}

.section-title {
  font-size: 1.875rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 0.5rem;
}

.section-subtitle {
  font-size: 1.125rem;
  color: var(--neutral-400);
}

/* Info Boxes */
.info-box {
  background: linear-gradient(to bottom right, rgba(212, 175, 55, 0.1), rgba(245, 158, 11, 0.05));
  border-radius: 0.75rem;
  border: 1px solid rgba(212, 175, 55, 0.3);
  padding: 1.5rem;
  margin: 2rem 0;
}

.info-box-title {
  color: var(--gold-400);
  font-weight: 700;
  margin-bottom: 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.info-box-content {
  color: var(--neutral-300);
  line-height: 1.75;
}

.info-box-content ul {
  margin-top: 0.5rem;
  padding-left: 1.5rem;
}

.info-box-content li {
  margin-bottom: 0.5rem;
}

/* Responsive Images */
figure {
  margin: 2rem 0;
}

figcaption {
  text-align: center;
  color: var(--neutral-400);
  font-size: 0.875rem;
  margin-top: 0.5rem;
}

/* Tables */
table {
  width: 100%;
  border-collapse: collapse;
  margin: 2rem 0;
  background: linear-gradient(to bottom right, rgba(88, 28, 135, 0.3), rgba(59, 7, 100, 0.3));
  border-radius: 0.75rem;
  overflow: hidden;
}

thead {
  background: rgba(124, 58, 237, 0.5);
}

th {
  padding: 1rem;
  text-align: left;
  font-weight: 600;
  color: var(--gold-400);
  border-bottom: 1px solid rgba(124, 58, 237, 0.5);
}

td {
  padding: 1rem;
  color: var(--neutral-300);
  border-bottom: 1px solid rgba(124, 58, 237, 0.3);
}

tr:last-child td {
  border-bottom: none;
}

tr:hover {
  background: rgba(124, 58, 237, 0.2);
}

/* Animations */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in {
  animation: fadeIn 0.6s ease-out;
}

/* Spacing Utilities */
.space-y-2 > * + * { margin-top: 0.5rem; }
.space-y-6 > * + * { margin-top: 1.5rem; }
.space-y-8 > * + * { margin-top: 2rem; }

.mt-6 { margin-top: 1.5rem; }
.mt-12 { margin-top: 3rem; }
.mb-12 { margin-bottom: 3rem; }

/* Additional Text Utilities */
.text-center { text-align: center; }
.text-right { text-align: right; }
.uppercase { text-transform: uppercase; }
.lowercase { text-transform: lowercase; }
.capitalize { text-capitalize: capitalize; }

/* Hidden */
[hidden] {
  display: none !important;
}

/* Page Hero Section - Default background for pages without featured image */
.page-hero-section {
  position: relative;
  min-height: 400px;
  background-size: cover;
  background-position: center;
  display: flex;
  padding-top: 11rem;
  align-items: flex-end;
}

.page-hero-section .hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(59, 7, 100, 0.95), rgba(88, 28, 135, 0.7), rgba(0, 0, 0, 0.3));
}

.page-hero-section .hero-content {
  position: relative;
  width: 100%;
  padding: 3rem 1.5rem;
  z-index: 1;
}

.page-hero-section .hero-content h1 {
  font-size: 2.5rem;
  color: var(--gold-400);
  margin-bottom: 0.5rem;
}

.page-hero-section .hero-content p {
  font-size: 1.125rem;
  color: var(--neutral-200);
}

@media (min-width: 768px) {
  .page-hero-section {
    min-height: 500px;
  }

  .page-hero-section .hero-content h1 {
    font-size: 3.5rem;
  }
}

/* ========================================
   FOOTER STYLES - Matching Laravel/Astro
   ======================================== */

.site-footer {
  background: linear-gradient(to bottom, var(--neutral-900), var(--neutral-950));
  border-top: 1px solid rgba(107, 33, 168, 0.3);
  margin-top: 0;
}

.footer-main {
  max-width: 1280px;
  margin: 0 auto;
  padding: 4rem 1rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
}

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

@media (min-width: 1024px) {
  .footer-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .footer-grid-4 {
    grid-template-columns: repeat(4, 1fr);
  }
}

@media (min-width: 768px) and (max-width: 1023px) {
  .footer-grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Footer Column Titles */
.footer-title {
  color: var(--gold-400);
  font-weight: 700;
  font-size: 1.125rem;
  margin-bottom: 1.5rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.footer-subtitle {
  color: rgba(168, 85, 247, 0.8);
  font-weight: 600;
  font-size: 0.875rem;
  margin-bottom: 0.75rem;
  margin-top: 0;
}

.footer-title + .footer-subtitle {
  margin-top: 0;
}

/* Footer Links */
.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

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

.footer-links a {
  color: var(--neutral-400);
  font-size: 0.875rem;
  transition: color 0.2s;
}

.footer-links a:hover {
  color: var(--gold-400);
}

/* Footer Divider */
.footer-divider {
  border-top: 1px solid var(--neutral-700);
  margin-top: 1.5rem;
  padding-top: 1.5rem;
}

/* Social Media Icons */
.social-label {
  color: var(--neutral-400);
  font-size: 0.875rem;
  margin-bottom: 1rem;
}

.social-icons {
  display: flex;
  gap: 1rem;
  margin-bottom: 2rem;
}

.social-icon {
  width: 2.5rem;
  height: 2.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 0.5rem;
  background: rgba(107, 33, 168, 0.5);
  color: var(--neutral-300);
  transition: all 0.2s;
}

.social-icon:hover {
  color: var(--gold-400);
  background: rgba(107, 33, 168, 0.7);
}

.social-icon svg {
  width: 1.25rem;
  height: 1.25rem;
}

/* Footer Contact Section */
.footer-address {
  font-style: normal;
  color: var(--neutral-400);
  font-size: 0.875rem;
  line-height: 1.75;
  margin-bottom: 1.5rem;
}

.footer-address .company-name {
  font-weight: 600;
  color: #fff;
  margin-bottom: 0.5rem;
}

.footer-contact-links {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.footer-contact-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--neutral-300);
  transition: color 0.2s;
}

.footer-contact-link:hover {
  color: var(--gold-400);
}

.footer-contact-link .icon-box {
  width: 2.5rem;
  height: 2.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 0.5rem;
  background: rgba(107, 33, 168, 0.5);
  transition: background 0.2s;
}

.footer-contact-link:hover .icon-box {
  background: rgba(107, 33, 168, 0.7);
}

.footer-contact-link svg {
  width: 1.25rem;
  height: 1.25rem;
}

.footer-contact-link .phone-number {
  font-size: 1.25rem;
  font-weight: 600;
}

/* Footer Copyright */
.footer-copyright {
  color: var(--neutral-500);
  font-size: 0.75rem;
  margin-top: 2rem;
}

.footer-admin-link {
  color: var(--neutral-600);
  font-size: 0.75rem;
  margin-top: 0.5rem;
}

.footer-admin-link a:hover {
  color: var(--neutral-400);
}

/* Footer Bottom Bar */
.footer-bottom {
  border-top: 1px solid var(--neutral-800);
}

.footer-bottom-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 1.5rem 1rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

@media (min-width: 768px) {
  .footer-bottom-inner {
    flex-direction: row;
  }
}

.footer-tagline {
  color: var(--neutral-500);
  font-size: 0.875rem;
}

.footer-logo {
  height: 2rem;
  opacity: 0.5;
}

/* Contact Card in Legal Pages */
.contact-card {
  background: linear-gradient(to bottom right, var(--primary-900), var(--primary-950));
  border-radius: 1rem;
  border: 1px solid rgba(124, 58, 237, 0.3);
  padding: 2rem;
  margin-top: 3rem;
}

.contact-card h3 {
  color: var(--gold-400);
  font-size: 1.25rem;
  margin-bottom: 1rem;
}

.contact-card p {
  color: var(--neutral-300);
  margin-bottom: 1rem;
}

.contact-card a {
  color: var(--gold-400);
}

.contact-card a:hover {
  color: var(--gold-300);
}

/* PDF Download Links (inserted via TSN Editor) */
a.tsn-pdf-download {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--gold-400);
  font-weight: 600;
  font-size: 1rem;
  padding: 0.6rem 1.2rem;
  border: 1px solid rgba(197, 165, 90, 0.4);
  border-radius: 0.5rem;
  background: rgba(197, 165, 90, 0.08);
  transition: all 0.25s ease;
  text-decoration: none;
}

a.tsn-pdf-download:hover {
  background: rgba(197, 165, 90, 0.18);
  border-color: var(--gold-400);
  color: var(--gold-300);
  text-decoration: none;
}

a.tsn-pdf-download::before {
  content: '';
  display: inline-block;
  width: 18px;
  height: 18px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='%23c5a55a' stroke-width='2'%3E%3Cpath d='M14 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8z'/%3E%3Cpolyline points='14 2 14 8 20 8'/%3E%3Cline x1='12' y1='18' x2='12' y2='12'/%3E%3Cpolyline points='9 15 12 18 15 15'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-size: contain;
  flex-shrink: 0;
}

/* Print Styles */
@media print {
  .header, .site-footer, .nav-mobile, .mobile-menu-btn {
    display: none;
  }

  body {
    padding-top: 0;
  }
}

/* ========================================
   RELATED PAGES SECTION
   ======================================== */
.related-section {
  padding: 4rem 0;
  background: linear-gradient(to bottom, var(--primary-950), var(--neutral-950));
  border-top: 1px solid rgba(124, 58, 237, 0.2);
}

.related-title {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--gold-400);
  margin-bottom: 2rem;
  text-align: center;
}

.related-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1.25rem;
  max-width: 1200px;
  margin: 0 auto;
}

.related-card {
  position: relative;
  display: block;
  border-radius: 0.75rem;
  overflow: hidden;
  background: linear-gradient(to bottom right, rgba(88, 28, 135, 0.5), rgba(59, 7, 100, 0.5));
  border: 1px solid rgba(124, 58, 237, 0.3);
  text-decoration: none;
  transition: all 0.3s;
}

.related-card:hover {
  transform: translateY(-4px);
  border-color: var(--gold-400);
  box-shadow: 0 8px 24px rgba(212, 175, 55, 0.15);
}

.related-card-image {
  width: 100%;
  height: 150px;
  background-size: cover;
  background-position: center;
  position: relative;
}

.related-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(212, 175, 55, 0.08), rgba(124, 58, 237, 0.15));
}

.related-card:hover .related-card-image {
  filter: brightness(1.1);
}

.related-card-content {
  padding: 1rem 1.25rem;
}

.related-card-content h3 {
  color: #fff;
  font-size: 0.95rem;
  font-weight: 600;
  margin: 0;
  line-height: 1.3;
}

/* ===== ABO Tabs ===== */
/* Partner Cards (Tanzsport page) */
.partner-cards {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  margin: 2rem 0;
}

.partner-card {
  background: linear-gradient(to bottom right, rgba(88, 28, 135, 0.2), rgba(59, 7, 100, 0.2));
  border: 1px solid rgba(124, 58, 237, 0.3);
  border-radius: 1rem;
  padding: 2rem;
  text-align: center;
}

.partner-card h2 {
  color: var(--gold-400);
  font-size: 1.5rem;
  margin-bottom: 1.5rem;
}

.partner-logo {
  max-width: 480px;
  margin: 0 auto 1.5rem;
  background: #fff;
  border-radius: 0.75rem;
  padding: 1rem;
}

.partner-logo img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 0.5rem;
}

.partner-caption {
  color: var(--neutral-700);
  font-size: 0.875rem;
  margin-top: 0.75rem;
  text-align: center;
}

.partner-card > p {
  color: var(--neutral-300);
  line-height: 1.8;
}

.partner-card a {
  color: var(--gold-400);
}

.partner-card a:hover {
  color: var(--gold-300);
}

.abo-tabs-section {
  margin: 2rem 0;
}

.abo-tabs-section .section-title {
  color: var(--gold-400);
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
}

.abo-tab-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  border-bottom: 2px solid rgba(124, 58, 237, 0.3);
  margin-bottom: 0;
}

.abo-tab-btn {
  padding: 0.75rem 1.25rem;
  background: transparent;
  color: var(--neutral-400);
  border: none;
  font-size: 1rem;
  font-weight: 500;
  cursor: pointer;
  border-bottom: 3px solid transparent;
  margin-bottom: -2px;
  transition: all 0.2s;
  white-space: nowrap;
}

.abo-tab-btn:hover {
  color: var(--gold-400);
}

.abo-tab-btn-active {
  color: var(--neutral-900);
  background: #fff;
  border-bottom-color: var(--gold-400);
  font-weight: 600;
}

.abo-tab-content {
  background: #fff;
  border: 1px solid rgba(124, 58, 237, 0.2);
  border-top: none;
  border-radius: 0 0 0.75rem 0.75rem;
  padding: 2rem;
}

.abo-tab-price {
  color: var(--neutral-900);
  font-size: 1.125rem;
  margin-bottom: 1rem;
}

.abo-tab-desc {
  color: var(--neutral-700);
  line-height: 1.8;
  margin-bottom: 1.5rem;
}

.abo-tab-desc p {
  margin-bottom: 1rem;
  color: var(--neutral-700);
}

.abo-tab-benefits {
  color: var(--neutral-700);
}

.abo-tab-benefits p {
  margin-bottom: 0.5rem;
  color: var(--neutral-700);
}

.abo-tab-benefits ul {
  list-style: disc;
  padding-left: 1.5rem;
  margin-top: 0.5rem;
}

.abo-tab-benefits li {
  margin-bottom: 0.5rem;
  color: var(--neutral-700);
  line-height: 1.6;
}

.abo-tab-benefits li:first-child {
  font-weight: 700;
  color: var(--primary-800);
}

@media (max-width: 768px) {
  .abo-tab-nav {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
  .abo-tab-btn {
    padding: 0.6rem 0.8rem;
    font-size: 0.85rem;
  }
  .abo-tab-content {
    padding: 1.25rem;
  }
}
