/* ==========================================================================
   Mistrzaki Football School - Design System
   ========================================================================== */

/* Font Declarations */
@font-face {
  font-family: 'ChicAvenue';
  src: url('/fonts/ChicAvenue-Regular.otf') format('opentype');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Joe College Sans';
  src: url('/fonts/Joe-College-Sans-NF-W00-Rg.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

/* Russian Fonts */
@font-face {
  font-family: 'Serati';
  src: url('/fonts/ofont.ru_Serati.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Vetrino';
  src: url('/fonts/ofont.ru_Vetrino.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

/* CSS Custom Properties - Color Palette based on Mistrzaki Logo */
:root {
  /* Primary Colors */
  --primary-burgundy: #722F37;
  --primary-burgundy-dark: #5A252A;
  --primary-burgundy-light: #8B3A44;
  
  /* Secondary Colors */
  --secondary-orange: #F39C12;
  --secondary-orange-dark: #E67E22;
  --secondary-orange-light: #F8C471;
  
  /* Neutral Colors */
  --white: #FFFFFF;
  --light-gray: #F8F9FA;
  --gray: #6C757D;
  --dark-gray: #343A40;
  --black: #000000;
  
  /* Gradients */
  --gradient-primary: linear-gradient(135deg, var(--primary-burgundy-dark) 0%, var(--primary-burgundy-light) 100%);
  --gradient-secondary: linear-gradient(135deg, var(--secondary-orange) 0%, var(--secondary-orange-dark) 100%);
  --gradient-hero: linear-gradient(135deg, var(--primary-burgundy) 0%, var(--secondary-orange) 100%);
  
  /* Shadows */
  --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.1);
  --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.1);
  --shadow-xl: 0 20px 25px rgba(0, 0, 0, 0.15);
  
  /* Typography */
  --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-heading: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-hero: 'ChicAvenue', 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-joe: 'Joe College Sans', 'Poppins', sans-serif;
  
  /* Spacing */
  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 1.5rem;
  --space-lg: 2rem;
  --space-xl: 3rem;
  --space-2xl: 4rem;
  
  /* Borders */
  --border-radius-sm: 4px;
  --border-radius-md: 8px;
  --border-radius-lg: 12px;
  --border-radius-xl: 16px;
  
  /* Transitions */
  --transition-fast: 0.15s ease-in-out;
  --transition-normal: 0.3s ease-in-out;
  --transition-slow: 0.5s ease-in-out;
  /* Edge shift for elements hugging viewport edge (social/login) */
  --header-edge-shift: -15vw;
  --login-edge-shift: -15vw;

  /* Semantic Colors */
  --color-success: #51cf66;
  --color-error: #ff6b6b;
}

/* Skip Navigation Link (Accessibility) */
.skip-link {
  position: absolute;
  top: -100%;
  left: 50%;
  transform: translateX(-50%);
  background: var(--primary-burgundy);
  color: var(--white);
  padding: var(--space-sm) var(--space-lg);
  border-radius: var(--border-radius-md);
  font-weight: 600;
  z-index: 100000;
  transition: top var(--transition-fast);
  text-decoration: none;
}

.skip-link:focus {
  top: var(--space-sm);
}

/* ==========================================================================
   Russian Localization Fonts
   ========================================================================== */

/* Apply Serati font to navigation menu items when language is Russian */
html[lang="ru"] nav a,
html[lang="ru"] .nav-left a,
html[lang="ru"] .nav-right a,
html[lang="ru"] .mobile-nav-list a,
html[lang="ru"] .mobile-submenu-link,
html[lang="ru"] .mobile-submenu-list a,
html[lang="ru"] .mobile-submenu-back,
html[lang="ru"] .footer-nav a {
  font-family: 'Serati', 'Poppins', sans-serif !important;
}

/* Apply Serati font to section headings (same as navigation) for Russian */
html[lang="ru"] .section-header h2,
html[lang="ru"] .about-section-title h2,
html[lang="ru"] .about-column-title {
  font-family: 'Serati', 'Poppins', sans-serif !important;
}

/* ==========================================================================
   Splash Screen
   ========================================================================== */

.splash-screen {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background: var(--gradient-hero), url('/images/Banner_background_main.svg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-blend-mode: overlay;
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  opacity: 1;
  transition: opacity 0.5s ease-out, visibility 0.5s ease-out;
}

.splash-screen.fade-out {
  opacity: 0;
  visibility: hidden;
}

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

.splash-logo {
  position: relative;
  margin-bottom: 40px;
}

.logo-container {
  position: relative;
  display: inline-block;
}

/* Russian locale: enforce centered loader on mobile */
@media (max-width: 768px) {
  html[lang="ru"] .splash-content {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  html[lang="ru"] .splash-logo,
  html[lang="ru"] .logo-container {
    margin-inline: auto;
  }
}

.loading-circle {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 1;
}

.progress-ring {
  transform: rotate(-90deg);
}

.progress-ring-circle {
  transition: stroke-dasharray 0.35s;
}

.progress-ring-fill {
  stroke-dasharray: 471; /* 2 * π * 75 */
  stroke-dashoffset: 471;
  animation: fill-progress 1.5s ease-in-out infinite;
  filter: drop-shadow(0 0 8px var(--secondary-orange));
}

.logo-heartbeat {
  position: relative;
  z-index: 2;
  width: 120px;
  height: auto;
  animation: heartbeat 1.5s ease-in-out infinite;
  filter: drop-shadow(0 0 20px rgba(255, 255, 255, 0.3));
}

@keyframes heartbeat {
  0% {
    transform: scale(1);
  }
  14% {
    transform: scale(1.1);
  }
  28% {
    transform: scale(1);
  }
  42% {
    transform: scale(1.1);
  }
  70% {
    transform: scale(1);
  }
}

@keyframes fill-progress {
  0% {
    stroke-dashoffset: 471;
  }
  100% {
    stroke-dashoffset: 0;
  }
}

/* Mobile keyframes for progress animation */
@media (max-width: 768px) {
  @keyframes fill-progress {
    0% {
      stroke-dashoffset: 408;
    }
    100% {
      stroke-dashoffset: 0;
    }
  }
}

@media (max-width: 480px) {
  @keyframes fill-progress {
    0% {
      stroke-dashoffset: 345;
    }
  }
}

/* Pulse effect variation for more dramatic heartbeat */
@keyframes pulse-heartbeat {
  0% {
    transform: scale(1);
    filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.3));
  }
  25% {
    transform: scale(1.05);
    filter: drop-shadow(0 0 15px rgba(255, 255, 255, 0.6));
  }
  50% {
    transform: scale(1.1);
    filter: drop-shadow(0 0 25px rgba(255, 255, 255, 0.8));
  }
  75% {
    transform: scale(1.05);
    filter: drop-shadow(0 0 15px rgba(255, 255, 255, 0.6));
  }
  100% {
    transform: scale(1);
    filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.3));
  }
}

/* Mobile responsive */
@media (max-width: 768px) {
  .logo-heartbeat {
    width: 120px; /* Keep same size as desktop */
  }
  
  .loading-circle svg {
    width: 160px; /* Keep same size as desktop */
    height: 160px;
  }
  
  .progress-ring-circle,
  .progress-ring-fill {
    r: 75; /* Keep same radius as desktop */
    cx: 80;
    cy: 80;
  }
  
  .progress-ring-fill {
    stroke-dasharray: 471; /* 2 * π * 75 - same as desktop */
    stroke-dashoffset: 471;
  }
  
  .splash-logo {
    margin-bottom: 30px;
  }
}

@media (max-width: 480px) {
  .logo-heartbeat {
    width: 120px; /* Keep same size as desktop */
  }
  
  .loading-circle svg {
    width: 160px; /* Keep same size as desktop */
    height: 160px;
  }
  
  .progress-ring-circle,
  .progress-ring-fill {
    r: 75; /* Keep same radius as desktop */
    cx: 80;
    cy: 80;
  }
  
  .progress-ring-fill {
    stroke-dasharray: 471; /* 2 * π * 75 - same as desktop */
    stroke-dashoffset: 471;
  }
  
  .splash-logo {
    margin-bottom: 25px;
  }
}

/* ==========================================================================
   Reset & Base Styles
   ========================================================================== */

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

/* Remove blue tap highlight on all interactive elements on mobile */
button,
a,
[role="button"] {
  -webkit-tap-highlight-color: transparent;
}

/* Buttons and carousel controls: additionally prevent accidental text selection */
button,
.carousel-arrow,
.testimonials-arrow,
.instagram-arrow,
.gallery-prev,
.gallery-next,
.gallery-close,
.mobile-menu-toggle,
.flip-indicator {
  user-select: none;
  -webkit-user-select: none;
  -webkit-touch-callout: none;
}

html {
  font-size: 16px;
  line-height: 1.6;
  scroll-behavior: smooth;
  overflow-x: hidden; /* Prevent horizontal scroll on mobile */
  overscroll-behavior-x: none; /* Prevent iOS Safari horizontal rubber-band scroll */
  /* Overlay scrollbar: floats over content, no layout shift */
  overflow-y: auto;
  overflow-y: overlay; /* Chromium/Safari: overlay mode, auto fallback */
  /* Firefox: transparent by default, semi-transparent on scroll */
  scrollbar-width: thin;
  scrollbar-color: transparent transparent;
}

html.is-scrolling {
  scrollbar-color: rgba(139, 69, 19, 0.3) transparent;
}

/* Webkit scrollbar (Chrome, Safari, Edge) — always 8px, overlay */
html::-webkit-scrollbar {
  width: 8px;
  background: transparent;
}

html::-webkit-scrollbar-track {
  background: transparent;
}

html::-webkit-scrollbar-thumb {
  background: transparent;
  border-radius: 4px;
}

html.is-scrolling::-webkit-scrollbar-thumb {
  background: rgba(139, 69, 19, 0.3);
}

html.is-scrolling::-webkit-scrollbar-thumb:hover {
  background: rgba(139, 69, 19, 0.5);
}

body {
  font-family: var(--font-primary);
  color: var(--dark-gray);
  background-color: var(--white);
  overflow-x: hidden;
  max-width: 100vw; /* Physically prevent body from exceeding viewport width on iOS */
  overscroll-behavior-x: none; /* Prevent iOS horizontal overscroll */
}

/* ==========================================================================
   Typography
   ========================================================================== */

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: var(--space-sm);
  color: var(--white);
}

h1 {
  font-size: clamp(3.6rem, 7.2vw, 5.76rem);
  font-weight: 800;
}

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

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

h4 {
  font-size: clamp(1.25rem, 2.5vw, 1.5rem);
}

p {
  margin-bottom: var(--space-sm);
  font-size: 1.1rem;
  line-height: 1.7;
}

a {
  color: var(--secondary-orange);
  text-decoration: none;
  transition: color var(--transition-fast);
}

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

/* ==========================================================================
   Button System
   ========================================================================== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-xs); /* Add space between text and icon */
  padding: var(--space-sm) var(--space-lg);
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 1rem;
  line-height: 1;
  text-decoration: none;
  border: none;
  border-radius: var(--border-radius-lg);
  cursor: pointer;
  transition: all var(--transition-normal);
  position: relative;
  overflow: hidden;
}

.btn-primary {
  background: var(--gradient-primary);
  color: var(--white);
  box-shadow: var(--shadow-md);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
  color: var(--white);
}

/* Hero CTA Button - Pulsing glow effect like flip indicator */
.hero-cta .btn-primary {
  box-shadow: 0 4px 25px rgba(243, 156, 18, 0.7),
              0 0 25px rgba(243, 156, 18, 0.5);
  animation: pulse-hero-btn 2s ease-in-out infinite;
}

.hero-cta .btn-primary:hover {
  /* Animation continues on hover */
  box-shadow: 0 7px 40px rgba(243, 156, 18, 0.95),
              0 0 35px rgba(243, 156, 18, 0.75);
  filter: brightness(1.2);
}

@keyframes pulse-hero-btn {
  0%, 100% {
    box-shadow: 0 4px 25px rgba(243, 156, 18, 0.7),
                0 0 22px rgba(243, 156, 18, 0.45);
    transform: scale(1);
    filter: brightness(1);
  }
  50% {
    box-shadow: 0 7px 45px rgba(243, 156, 18, 1),
                0 0 35px rgba(243, 156, 18, 0.8);
    transform: scale(1.03);
    filter: brightness(1.2);
  }
}

.btn-secondary {
  background: transparent;
  color: var(--primary-burgundy);
  border: 2px solid var(--primary-burgundy);
}

.btn-secondary:hover {
  background: var(--primary-burgundy);
  color: var(--white);
}

.btn-outline {
  background: transparent;
  color: var(--white);
  border: 2px solid var(--white);
}

.btn-outline:hover {
  background: var(--white);
  color: var(--primary-burgundy);
}

/* ==========================================================================
   Split Header & Navigation
   ========================================================================== */

.split-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--white);
  box-shadow: var(--shadow-sm);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  transform: translateY(0);
}


.login-section {
  display: flex;
  align-items: center;
  height: 100%;
  margin-right: 0;
}

.login-section .login-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--white);
  font-size: 0.85rem;
  font-weight: 500;
  padding: 8px 16px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: var(--border-radius-md);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.login-section .login-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 0;
  height: 100%;
  background: linear-gradient(45deg, var(--secondary-orange), #e67e22);
  transition: width 0.3s ease;
  z-index: 0;
}

.login-section .login-btn i,
.login-section .login-btn span {
  position: relative;
  z-index: 1;
}

.login-section .login-btn:hover::before {
  width: 100%;
}

.login-section .login-btn:hover {
  border-color: var(--secondary-orange);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(243, 156, 18, 0.3);
}

/* ==========================================================================
   Language Switcher
   ========================================================================== */

.language-switcher {
  position: relative;
  display: flex;
  align-items: center;
  margin-right: var(--space-sm);
}

.language-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--white);
  font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
  font-size: 0.85rem;
  font-weight: 700;
  padding: 8px 12px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: var(--border-radius-md);
  background: transparent;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.language-btn:hover {
  border-color: var(--secondary-orange);
  background: rgba(243, 156, 18, 0.1);
}

.language-btn .lang-arrow {
  font-size: 0.65rem;
  transition: transform 0.3s ease;
}

.language-switcher.active .language-btn .lang-arrow {
  transform: rotate(180deg);
}

.current-lang {
  font-weight: 700;
  font-size: 0.8rem;
}

.language-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 120px;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: var(--border-radius-lg);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.25);
  padding: var(--space-xs);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 1000;
}

.language-switcher.active .language-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.lang-option {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  padding: var(--space-xs) var(--space-sm);
  color: var(--white);
  font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
  font-size: 0.9rem;
  font-weight: 700;
  text-decoration: none;
  border-radius: var(--border-radius-sm);
  transition: all var(--transition-fast);
}

.lang-option:hover {
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
}

.lang-option.active {
  background: rgba(255, 255, 255, 0.2);
  color: #fff;
}

.lang-flag {
  display: none;
}

/* Show language switcher on mobile - left of burger menu */
@media (max-width: 1024px) {
  .language-switcher {
    display: flex;
    margin-right: 0;
  }
  
  .language-btn {
    padding: 6px 8px;
    font-size: 0.8rem;
  }
}

/* Main Navigation Bar */
.main-nav-bar {
  background: var(--gradient-hero), url('/images/Banner_background_main.svg');
  background-size: cover;
  background-position: center top;
  background-repeat: no-repeat;
  background-blend-mode: overlay;
  background-attachment: fixed;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
}

/* Main Navigation Container - New Architecture with 3 independent containers */
.main-nav-container {
  width: 100%;
  min-height: clamp(63px, 10vh, 72px); /* ✅ Адаптивная высота */
  position: relative;
  display: flex;
  align-items: center;
}

/* Shared styles for all header containers */
.header-container {
  display: flex;
  align-items: center;
  z-index: 10;
}

/* Container 1: Social Links - Absolute positioned left with adaptive padding */
.header-container.social-container {
  position: absolute;
  left: clamp(16px, 3vw, 24px); /* ✅ Адаптивный отступ */
}

.header-container.social-container .social-links {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

.header-container.social-container .social-link {
  color: var(--white);
  font-size: clamp(0.95rem, 1.8vw, 1.04rem); /* ✅ Адаптивный размер иконок */
  padding: 0;
  width: clamp(36px, 6vw, 40px); /* ✅ Адаптивная ширина */
  height: clamp(36px, 6vw, 40px); /* ✅ Адаптивная высота */
  border-radius: var(--border-radius-md);
  transition: all var(--transition-normal);
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
}

/* Shimmer effect for social links */
.header-container.social-container .social-link::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.35), transparent);
  transition: left 0.5s ease;
}

.header-container.social-container .social-link:hover::before { 
  left: 100%; 
}

.header-container.social-container .social-link:hover {
  background: rgba(0,0,0,0.06);
  transform: translateY(-2px) scale(1.1);
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

.header-container.social-container .social-link:focus-visible {
  outline: 2px solid var(--secondary-orange);
  outline-offset: 2px;
}

/* Container 2: Navigation + Logo - Centered independently */
.header-container.nav-logo-container {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: var(--space-lg);
  max-width: 100%;
}

/* Navigation sections inside centered container */
.header-container.nav-logo-container .nav-left,
.header-container.nav-logo-container .nav-right {
  display: flex;
  justify-content: center;
}

.header-container.nav-logo-container .nav-left ul,
.header-container.nav-logo-container .nav-right ul {
  display: flex;
  align-items: center;
  list-style: none;
  gap: var(--space-lg);
}

.header-container.nav-logo-container .nav-left a,
.header-container.nav-logo-container .nav-right a {
  font-family: var(--font-joe);
  font-weight: 500;
  font-size: clamp(1rem, 1.8vw, 1.15rem); /* ✅ Адаптивный размер текста */
  color: var(--white);
  padding: clamp(0.25rem, 0.5vw, var(--space-xs)) clamp(0.4rem, 1vw, var(--space-sm)); /* ✅ Адаптивные padding */
  border-radius: var(--border-radius-md);
  transition: color var(--transition-fast);
  white-space: nowrap;
  position: relative;
  text-decoration: none;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.35);
}

.header-container.nav-logo-container .nav-left a::after,
.header-container.nav-logo-container .nav-right a::after {
  content: '';
  position: absolute;
  inset: 2px;
  border-radius: inherit;
  background: rgba(255, 255, 255, 0.12);
  opacity: 0;
  transition: opacity 0.22s ease-out;
  pointer-events: none;
  filter: blur(0.5px);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.04) inset,
              0 0 6px 2px rgba(255, 255, 255, 0.18) inset;
}

.header-container.nav-logo-container .nav-left a:hover::after,
.header-container.nav-logo-container .nav-right a:hover::after {
  opacity: 0.38;
}

.header-container.nav-logo-container .nav-left a:focus-visible,
.header-container.nav-logo-container .nav-right a:focus-visible {
  outline: 2px solid var(--secondary-orange);
  outline-offset: 3px;
}

/* ==========================================================================
   Desktop Dropdown Menu for Kontakt
   ========================================================================== */

.has-dropdown {
  position: relative;
}

.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(10px);
  min-width: 180px;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--border-radius-lg);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3), 
              inset 0 1px 1px rgba(255, 255, 255, 0.1);
  padding: var(--space-sm);
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 1000;
}

.dropdown-menu::before {
  content: '';
  position: absolute;
  top: -8px;
  left: 50%;
  transform: translateX(-50%);
  border-left: 8px solid transparent;
  border-right: 8px solid transparent;
  border-bottom: 8px solid rgba(255, 255, 255, 0.15);
}

.has-dropdown:hover .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(5px);
  background: rgba(255, 255, 255, 0.2);
}

.dropdown-menu a {
  display: block;
  font-family: var(--font-joe);
  font-weight: 500;
  font-size: clamp(0.9rem, 1.5vw, 1rem);
  color: var(--white);
  padding: var(--space-sm) var(--space-md);
  border-radius: var(--border-radius-md);
  text-decoration: none;
  text-align: center;
  transition: all var(--transition-fast), text-shadow 0.3s ease;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.35);
  white-space: nowrap;
}

.dropdown-menu a:hover {
  background: transparent;
  color: var(--white);
  transform: none;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.35);
}

/* Logo Center inside centered container */
.header-container.nav-logo-container .logo-center {
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  position: relative;
  z-index: 10;
}

.header-container.nav-logo-container .logo-center img {
  height: clamp(70px, 12vw, 83px); /* ✅ Адаптивная высота лого */
  width: auto;
  transition: all var(--transition-fast);
  transform: scale(1.15) translateY(10%);
  filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.2));
}

.header-container.nav-logo-container .logo-center:hover img {
  transform: scale(1.25) translateY(10%);
}

/* Container 3: Login + Mobile Toggle - Absolute positioned right with adaptive padding */
.header-container.login-container {
  position: absolute;
  right: clamp(16px, 3vw, 24px); /* ✅ Адаптивный отступ справа */
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

/* Login section inside right container */
.header-container.login-container .login-section {
  display: flex;
  align-items: center;
}

.header-container.login-container .login-btn {
  display: flex;
  align-items: center;
  gap: clamp(4px, 1vw, 6px); /* ✅ Адаптивный gap */
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: var(--white);
  font-family: var(--font-primary);
  font-size: clamp(0.8rem, 1.4vw, 0.85rem); /* ✅ Адаптивный размер текста */
  font-weight: 500;
  padding: clamp(6px, 1.2vw, 8px) clamp(12px, 2.5vw, 16px); /* ✅ Адаптивные padding */
  border-radius: var(--border-radius-md);
  text-decoration: none;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.header-container.login-container .login-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 0;
  height: 100%;
  background: linear-gradient(45deg, var(--secondary-orange), #e67e22);
  transition: width 0.3s ease;
  z-index: 0;
}

.header-container.login-container .login-btn i,
.header-container.login-container .login-btn span {
  position: relative;
  z-index: 1;
}

.header-container.login-container .login-btn:hover::before {
  width: 100%;
}

.header-container.login-container .login-btn:hover {
  border-color: var(--secondary-orange);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(243, 156, 18, 0.3);
}

/* Mobile Menu Toggle & Mobile Login Icon */
.header-container.login-container .mobile-menu-toggle,
.header-container.login-container .mobile-login-icon {
  display: none;
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: var(--space-xs);
  border-radius: var(--border-radius-md);
  transition: all var(--transition-fast);
  width: clamp(36px, 6vw, 40px); /* ✅ Адаптивная ширина */
  height: clamp(36px, 6vw, 40px); /* ✅ Адаптивная высота */
  position: relative;
  z-index: 1000;
}

.mobile-menu-toggle:hover {
  background: rgba(255, 255, 255, 0.1);
}

/* Burger lines */
.burger-line {
  display: block;
  width: clamp(22px, 4vw, 25px); /* ✅ Адаптивная ширина */
  height: clamp(2.5px, 0.5vw, 3px); /* ✅ Адаптивная высота */
  background-color: var(--white);
  border-radius: clamp(2px, 0.5vw, 3px); /* ✅ Адаптивный радиус */
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.burger-line-top {
  top: 10px;
}

.burger-line-middle {
  top: 50%;
  transform: translate(-50%, -50%);
}

.burger-line-bottom {
  bottom: 10px;
}

/* Active state - rotate to X */
.mobile-menu-toggle.active .burger-line-top {
  top: 50%;
  transform: translate(-50%, -50%) rotate(45deg);
}

.mobile-menu-toggle.active .burger-line-middle {
  opacity: 0;
  transform: translate(-50%, -50%) rotate(180deg);
}

.mobile-menu-toggle.active .burger-line-bottom {
  bottom: 50%;
  transform: translate(-50%, 50%) rotate(-45deg);
}

/* Mobile Login Icon (hidden by default, shown only on mobile) */
.mobile-login-icon {
  display: none;
  font-size: 1.5rem;
  color: var(--white);
  padding: var(--space-xs);
  border-radius: var(--border-radius-md);
  transition: all var(--transition-fast);
}

.mobile-login-icon:hover {
  background: rgba(255, 255, 255, 0.1);
  color: var(--white);
}

/* Mobile Menu */
.mobile-menu {
  background: var(--gradient-hero), url('/images/Mobile_menu_background.svg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-blend-mode: overlay;
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: max-height 0.3s ease-out, 
              opacity 0.25s ease-out,
              transform 0.25s ease-out,
              visibility 0s 0.3s;
  z-index: 999;
}

.mobile-menu.active {
  max-height: 800px;
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  transition: max-height 0.3s ease-out, 
              opacity 0.2s ease-out,
              transform 0.2s ease-out,
              visibility 0s 0s;
  /* Ensure menu appears below the header bar including logo */
  z-index: 998;
}

/* When mobile menu is active, ensure logo stays above menu */
@media (max-width: 1024px) {
  .mobile-menu-toggle.active ~ .header-container.nav-logo-container,
  .split-header .logo-center {
    z-index: 1000;
  }
  
  /* Ensure the header bar and logo appear above mobile menu */
  .main-nav-bar {
    z-index: 1001;
  }
  
  .header-container.nav-logo-container .logo-center {
    z-index: 1000;
  }
}

@media (max-width: 1024px) and (orientation: landscape) {
  .mobile-menu {
    max-height: calc(100vh - 80px);
  }

  .mobile-menu.active {
    max-height: calc(100vh - 80px);
    overflow-y: auto;
  }

  .mobile-menu-content {
    padding-block: var(--space-sm);
  }
}

.mobile-menu-content {
  max-width: 1400px;
  margin: 0 auto;
  padding: var(--space-md);
  border-radius: var(--border-radius-lg);
  position: relative;
  overflow: hidden;
}

.mobile-nav-list {
  list-style: none;
  margin-bottom: var(--space-md);
}

.mobile-nav-list li {
  margin-bottom: var(--space-xs);
}

/* Mobile submenu trigger button - legacy styles for backwards compatibility */
.mobile-submenu-trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  font-family: var(--font-joe);
  font-weight: 600;
  font-size: clamp(1rem, 2vw, 1.1rem);
  color: var(--white);
  padding: var(--space-sm);
  border-radius: var(--border-radius-md);
  background: transparent;
  border: none;
  cursor: pointer;
  transition: all var(--transition-fast);
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.8);
  text-align: left;
}

.mobile-submenu-trigger:hover {
  transform: translateX(5px);
}

.mobile-submenu-trigger i {
  font-size: 0.8em;
  transition: transform var(--transition-fast);
}

.mobile-submenu-trigger:hover i {
  transform: translateX(3px);
}

/* Split Kontakt item: link + arrow button */
.mobile-has-submenu {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: var(--space-sm);
}

.mobile-submenu-link {
  flex: 0;
  font-family: var(--font-joe);
  font-weight: 600;
  font-size: clamp(1rem, 2vw, 1.1rem);
  color: var(--white) !important;
  padding: var(--space-sm);
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.8);
  text-decoration: none;
  transition: all var(--transition-fast);
}

.mobile-submenu-link:hover {
  transform: translateX(5px);
}

.mobile-submenu-arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--border-radius-md);
  color: var(--white);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.mobile-submenu-arrow:hover {
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(243, 156, 18, 0.5);
}

.mobile-submenu-arrow i {
  font-size: 0.9em;
  transition: transform var(--transition-fast);
}

.mobile-submenu-arrow:hover i {
  transform: translateX(2px);
}

/* Mobile submenu panel */
.mobile-submenu {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--gradient-hero), url('/images/Mobile_menu_background.svg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-blend-mode: overlay;
  transform: translateX(100%);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  flex-direction: column;
  padding: var(--space-md);
  z-index: 10;
}

.mobile-submenu.active {
  transform: translateX(0);
}

.mobile-submenu-back {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  font-family: var(--font-joe);
  font-weight: 600;
  font-size: clamp(1rem, 2vw, 1.1rem);
  color: var(--white);
  background: transparent;
  border: none;
  cursor: pointer;
  padding: var(--space-sm);
  margin-bottom: var(--space-xs);
  transition: all var(--transition-fast);
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.8);
}

.mobile-submenu-back:hover {
  transform: translateX(-5px);
}

.mobile-submenu-back i {
  font-size: 0.8em;
}

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

.mobile-submenu-list li {
  margin-bottom: var(--space-xs);
}

.mobile-submenu-list a {
  display: block;
  font-family: var(--font-joe);
  font-weight: 600;
  font-size: clamp(1rem, 2vw, 1.1rem);
  color: var(--white);
  padding: var(--space-sm);
  border-radius: var(--border-radius-md);
  transition: all var(--transition-fast);
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.8);
}

.mobile-submenu-list a:hover {
  transform: translateX(5px);
  color: var(--secondary-orange-light);
}

/* Submenu positioning handled in main .mobile-menu-content definition */

.mobile-nav-list a {
  display: block;
  font-family: var(--font-joe);
  font-weight: 600;
  font-size: clamp(1rem, 2vw, 1.1rem); /* ✅ Адаптивный размер */
  color: var(--white);
  padding: var(--space-sm);
  border-radius: var(--border-radius-md);
  transition: all var(--transition-fast);
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.8);
  position: relative;
}

/* Inner glow effect for mobile menu links */
.mobile-nav-list a::after {
  content: '';
  position: absolute;
  inset: 2px;
  border-radius: inherit;
  background: rgba(255, 255, 255, 0.12);
  opacity: 0;
  transition: opacity 0.22s ease-out;
  pointer-events: none;
  filter: blur(0.5px);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.04) inset, 0 0 6px 2px rgba(255, 255, 255, 0.18) inset;
}

.mobile-nav-list a:hover::after {
  opacity: 0.38;
}

.mobile-nav-list a:hover {
  transform: translateX(5px);
}

.mobile-social {
  display: flex;
  justify-content: center;
  gap: var(--space-md);
  margin-bottom: 0;
  padding: var(--space-md) 0;
  padding-bottom: 0;
  border-top: 1px solid var(--light-gray);
  border-bottom: none;
}

.mobile-social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: clamp(36px, 7vw, 40px); /* ✅ Адаптивная ширина */
  height: clamp(36px, 7vw, 40px); /* ✅ Адаптивная высота */
  border-radius: 50%;
  color: var(--white);
  font-size: clamp(1.1rem, 2vw, 1.2rem); /* ✅ Адаптивный размер иконок */
  transition: all var(--transition-fast);
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.8);
  position: relative;
}

/* Inner glow effect for mobile social icons */
.mobile-social a::after {
  content: '';
  position: absolute;
  inset: 2px;
  border-radius: inherit;
  background: rgba(255, 255, 255, 0.12);
  opacity: 0;
  transition: opacity 0.22s ease-out;
  pointer-events: none;
  filter: blur(0.5px);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.04) inset, 0 0 6px 2px rgba(255, 255, 255, 0.18) inset;
}

.mobile-social a:hover::after {
  opacity: 0.38;
}

.mobile-social a:hover {
  transform: translateY(-2px) scale(1.1);
}

/* Copyright text below mobile social icons */
.mobile-copyright {
  text-align: center;
  color: rgba(255, 255, 255, 0.65);
  font-size: 0.75rem;
  font-family: var(--font-primary);
  margin: var(--space-xs) 0 0;
  padding: 0;
  letter-spacing: 0.03em;
}

.mobile-login {
  display: block;
  text-align: center;
  color: var(--white);
  padding: var(--space-sm) var(--space-md);
  border-radius: var(--border-radius-md);
  font-weight: 500;
  transition: all var(--transition-fast);
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.8);
  position: relative;
}

/* Inner glow effect for mobile login button */
.mobile-login::after {
  content: '';
  position: absolute;
  inset: 2px;
  border-radius: inherit;
  background: rgba(255, 255, 255, 0.12);
  opacity: 0;
  transition: opacity 0.22s ease-out;
  pointer-events: none;
  filter: blur(0.5px);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.04) inset, 0 0 6px 2px rgba(255, 255, 255, 0.18) inset;
}

.mobile-login:hover::after {
  opacity: 0.38;
}

.mobile-login:hover {
  color: var(--white);
  transform: translateY(-1px);
}

.mobile-login i {
  margin-right: var(--space-xs);
}

/* ==========================================================================
   Hero Section
   ========================================================================== */

.hero {
  background: var(--gradient-hero), url('/images/Banner_background_main.svg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-blend-mode: overlay;
  background-attachment: fixed;
  padding: var(--space-2xl) 0;
  position: relative;
  overflow: hidden;
  min-height: 80vh;
  display: flex;
  align-items: center;
}

/* Allow vertical overflow on mobile to show background element when shifted down,
   but clip horizontal overflow to prevent page-wide horizontal scroll on iOS */
@media (max-width: 1024px) {
  .hero {
    overflow-x: clip;
    overflow-y: visible;
  }
}

.hero::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"><defs><pattern id="grain" patternUnits="userSpaceOnUse" width="100" height="100"><circle cx="50" cy="50" r="1" fill="white" opacity="0.1"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
  pointer-events: none;
}

.hero-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 var(--space-md);
  position: relative;
  z-index: 2;
}

.hero-content {
  max-width: 700px;
  color: var(--white);
  margin: 0 auto;
  text-align: center;
  transition: transform 0.6s ease-out;
}

/* On mobile, center content more vertically before scrolling */
@media (max-width: 1024px) {
  .hero-content {
    transform: translateY(60px);
  }
  
  /* Return to normal position after scrolling */
  .scrolled .hero-content {
    transform: translateY(0);
  }
}

.hero-title {
  color: var(--white);
  margin-bottom: 0.1rem; /* Further reduced for even closer spacing */
  font-weight: 900;
  font-family: var(--font-hero);
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
  line-height: 0.9; /* Tighten line height to make title container thinner */
  text-align: center;
  /* Adaptive font size for mobile - keeps text in one line */
  font-size: clamp(2rem, 8vw, 4.5rem);
  white-space: nowrap; /* Prevent text wrapping */
}

/* Desktop: full-bleed centered title extending beyond container */
@media (min-width: 1025px) {
  .hero-title {
    width: 100vw;
    margin-left: calc(-50vw + 50%);
  }
}

.hero-subtitle {
  font-size: clamp(0.65rem, 2.8vw, 1.1rem); /* Adaptive size for mobile to desktop */
  margin-bottom: 4.4rem; /* Increased to restore button position while keeping subtitle close to title */
  font-family: var(--font-hero);
  opacity: 0.9;
  line-height: 1.6;
  white-space: nowrap; /* Keep text on one line */
}

/* Language-specific adjustments for English */
html[lang="en"] .hero-title {
  font-size: clamp(1.85rem, 7.5vw, 4.2rem); /* Slightly smaller for English */
}

/* Language-specific adjustments for Russian */
html[lang="ru"] .hero-title {
  font-size: clamp(1.7rem, 7.2vw, 4rem);
  font-family: 'Vetrino', sans-serif !important;
}

/* Mobile adjustments */
@media (max-width: 768px) {
  .hero-title {
    font-size: clamp(1.9rem, 8.8vw, 2.8rem);
    letter-spacing: 0.01em;
    white-space: nowrap;
    line-height: 0.95;
  }

  .hero-subtitle {
    white-space: normal; /* Allow wrapping on mobile to prevent horizontal overflow */
  }
  
  /* English language adjustments for mobile */
  html[lang="en"] .hero-title {
    font-size: clamp(1.65rem, 7.8vw, 2.4rem); /* Reduced size for better margins on English mobile */
  }

  /* Russian language adjustments for mobile */
  html[lang="ru"] .hero-title {
    font-size: clamp(1.35rem, 6.2vw, 2.1rem);
    white-space: nowrap;
    line-height: 0.9;
  }

  /* Russian CTA button - smaller font to fit in one line */
  html[lang="ru"] .hero-cta .btn {
    font-size: clamp(0.75rem, 3.2vw, 0.95rem);
    white-space: nowrap;
    max-width: none;
    width: auto;
  }
  
  .hero-cta {
    width: 100%;
    justify-content: center;
    padding: 0 var(--space-md);
    box-sizing: border-box;
  }
}

@media (max-width: 480px) {
  .hero-title {
    font-size: clamp(1.65rem, 8.9vw, 2.35rem);
    letter-spacing: 0.01em;
  }
  
  /* English language adjustments for small mobile */
  html[lang="en"] .hero-title {
    font-size: clamp(1.55rem, 8.5vw, 2.2rem); /* Further reduced for small screens with better margins */
  }

  /* Russian language adjustments for small mobile */
  html[lang="ru"] .hero-title {
    font-size: clamp(1.2rem, 5.8vw, 1.9rem);
    white-space: nowrap;
    line-height: 0.9;
  }

  /* Russian CTA button - smaller font for small screens */
  html[lang="ru"] .hero-cta .btn {
    font-size: clamp(0.7rem, 3vw, 0.9rem);
    white-space: nowrap;
    max-width: none;
    width: auto;
  }
}

.hero-cta {
  display: flex;
  justify-content: center;
  gap: var(--space-md);
  flex-wrap: wrap;
}

/* Hero Background Element */
.hero-background-element {
  position: absolute;
  bottom: 10%; /* Slightly above bottom edge */
  left: 50%;
  transform: translateX(-50%);
  z-index: 1; /* Behind content but above background */
  opacity: 1; /* Full opacity to make element fully visible */
  pointer-events: none; /* Don't interfere with interactions */
  transition: transform 0.6s ease-out;
}

/* On mobile, shift background element down before scrolling */
@media (max-width: 1024px) {
  .hero-background-element {
    transform: translateX(-50%) translateY(60px);
    z-index: 50; /* Higher z-index to stay above next section */
  }
  
  .scrolled .hero-background-element {
    transform: translateX(-50%) translateY(0);
  }
}

.hero-background-element img {
  height: auto;
  width: 300px; /* Adjust size as needed */
  max-width: 80vw; /* Responsive sizing */
  transition: all var(--transition-normal);
  filter: brightness(0) invert(1); /* Make SVG white like main text */
  opacity: 1; /* Full opacity for completely white element */
}

/* Hero Hashtag */
.hero-hashtag {
  position: absolute;
  top: 8%;
  right: 8%; /* moved left from 3% */
  font-family: var(--font-hero);
  font-size: clamp(1.4rem, 2.2vw, 2.2rem);
  font-weight: 700;
  letter-spacing: 1px;
  color: var(--white);
  text-shadow: 2px 2px 6px rgba(0,0,0,0.35);
  opacity: 0.95;
  pointer-events: none; /* decorative */
  user-select: none;
  mix-blend-mode: normal;
  z-index: 2; /* Above background element, below nav */
}

@media (max-width: 992px) {
  .hero-hashtag { top: 8%; right: 10%; font-size: clamp(1.2rem, 3vw, 1.9rem); }
}

@media (max-width: 768px) {
  /* Mobile: maintain desktop proportion - 8% from hero top */
  .hero-hashtag { top: 8%; right: 5%; font-size: 1.5rem; opacity: 0.9; }
}

@media (max-width: 520px) {
  /* Slightly adjust for smaller screens while keeping visual balance */
  .hero-hashtag { top: 7.5%; right: 4%; font-size: 1.3rem; opacity: 0.88; }
}

@media (max-width: 420px) {
  /* Maintain proportion on small phones */
  .hero-hashtag { top: 7%; right: 3%; font-size: 1.15rem; opacity: 0.85; }
}

@media (max-width: 375px) {
  /* iPhone 12 mini and similar */
  .hero-hashtag { top: 6.5%; right: 3%; font-size: 1rem; opacity: 0.82; }
}

@media (max-width: 320px) {
  /* iPhone SE - hide hashtag due to very limited space */
  .hero-hashtag { display: none; }
}

/* Scroll Indicator */
.scroll-indicator {
  display: block; /* Now visible on all devices */
  position: fixed;
  bottom: var(--space-lg);
  left: 50%;
  transform: translateX(-50%);
  text-align: center;
  z-index: 100;
  opacity: 0;
  animation: fadeInScroll 1s ease-out 2s forwards;
}

.scroll-text {
  display: block;
  font-size: 0.85rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.7); /* Semi-transparent white */
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: var(--space-xs);
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.scroll-arrow {
  font-size: 1.5rem;
  color: rgba(255, 255, 255, 0.7); /* Semi-transparent white */
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
  animation: bounceArrow 2s ease-in-out 3s infinite;
}

/* Fade in animation for scroll indicator - semi-transparent */
@keyframes fadeInScroll {
  to {
    opacity: 0.7; /* Semi-transparent instead of fully visible */
  }
}

/* Bounce animation for arrow */
@keyframes bounceArrow {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(10px);
  }
}

/* Hide scroll indicator after user starts scrolling */
.scrolled .scroll-indicator {
  opacity: 0 !important;
  pointer-events: none;
  transition: opacity 0.3s ease-out;
}

/* Hide scroll indicator in landscape orientation on mobile only */
@media (orientation: landscape) and (max-height: 500px) {
  .scroll-indicator {
    display: none !important;
  }
}

/* ==========================================================================
   Responsive Design
   ========================================================================== */

@media (max-width: 1300px) {
  /* Hide desktop navigation and social links on tablets/mobile */
  .header-container.nav-logo-container .nav-left,
  .header-container.nav-logo-container .nav-right {
    display: none;
  }

  .header-container.social-container {
    display: none;
  }

  /* Center container now contains only logo */
  .header-container.nav-logo-container {
    left: clamp(16px, 3vw, 24px); /* ✅ Адаптивный отступ */
    transform: none;
    justify-content: flex-start;
  }

  .header-container.nav-logo-container .logo-center img {
    height: clamp(65px, 10vw, 70px); /* ✅ Адаптивная высота */
    transform: scale(1.1) translateY(8%);
  }

  /* Show mobile menu toggle and mobile login */
  .header-container.login-container .mobile-menu-toggle {
    display: block;
  }

  .header-container.login-container .mobile-login-icon {
    display: block;
    font-size: clamp(1.3rem, 2.5vw, 1.5rem); /* ✅ Адаптивный размер */
    color: var(--white);
    padding: var(--space-xs);
    border-radius: var(--border-radius-md);
    transition: all var(--transition-fast);
    text-decoration: none;
  }

  .header-container.login-container .mobile-login-icon:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--white);
  }

  /* Hide desktop login button */
  .header-container.login-container .login-section {
    display: none;
  }

  .main-nav-container {
    min-height: clamp(65px, 10vh, 70px); /* ✅ Адаптивная высота */
  }
}

@media (max-width: 768px) {
  .header-container.nav-logo-container .logo-center img {
    height: clamp(63px, 10vw, 70px); /* ✅ Адаптивная высота */
    transform: scale(1.15) translateY(10%);
  }

  /* Ensure mobile menu can expand below shorter header */
  .main-nav-container {
    min-height: clamp(60px, 9vh, 68px); /* ✅ Адаптивная высота */
  }
}

@media (max-width: 480px) {
  .logo-center img {
    height: clamp(58px, 9vw, 63px); /* Adaptive height */
    transform: scale(1.15) translateY(10%);
  }
  
  .main-nav-container {
    min-height: clamp(55px, 8vh, 63px); /* Adaptive height */
  }
  
  .hero {
    padding: var(--space-xl) 0;
    min-height: 60vh;
  }
  
  .hero-content {
    padding-left: 0;
    max-width: 100%;
    text-align: center;
  }
  
  .hero-subtitle {
    text-align: center;
  }
  
  .hero-cta {
    flex-direction: column;
    align-items: center;
  }
  
  .btn {
    width: 100%;
    max-width: 280px;
  }
  
  /* Background element for mobile - proportional to button */
  .hero-background-element {
    bottom: 3%;
  }
  
  .hero-background-element img {
    width: 280px;
  }
}

@media (max-width: 375px) {
  /* iPhone SE and similar small devices */
  .hero-background-element {
    bottom: 0.5%; /* Adjusted for better positioning on iPhone SE */
  }
  
  .hero-background-element img {
    width: 218px; /* Previous size restored for iPhone SE */
  }
}

/* Special handling for devices with width ≥360px AND height ≥700px */
@media (min-width: 360px) and (min-height: 700px) and (max-width: 480px) {
  .hero-background-element img {
    width: 280px; /* Minimum width matching button for taller devices */
  }
}

@media (max-width: 320px) {
  /* Very small devices - hide background element due to limited space */
  .hero-background-element {
    display: none;
  }
}

/* Landscape-specific rules for hero background element - must be after other media queries */
@media (max-width: 1024px) and (orientation: landscape) {
  .hero-background-element {
    bottom: 0.5% !important; /* Slightly raised to ensure full visibility */
  }
  
  .hero-background-element img {
    width: 240px !important; /* Smaller size for landscape to fit better */
  }
}

@media (max-width: 768px) and (orientation: landscape) {
  .hero-background-element {
    bottom: 0.5% !important;
  }
  
  .hero-background-element img {
    width: 220px !important; /* Even smaller for tablets in landscape */
  }
}

@media (max-width: 480px) and (orientation: landscape) {
  .hero-background-element {
    bottom: 0.5% !important;
  }
  
  .hero-background-element img {
    width: 200px !important; /* Smallest size for phones in landscape */
  }
}

/* ==========================================================================
   Section Components
   ========================================================================== */

.section {
  padding: var(--space-2xl) 0;
  position: relative;
}

/* Elegant section divider */
.section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%) scaleX(0);
  width: 80%;
  max-width: 1400px;
  height: 3px;
  background: linear-gradient(
    90deg,
    transparent 0%,
    var(--primary-burgundy) 15%,
    var(--primary-burgundy) 85%,
    transparent 100%
  );
  opacity: 0;
  transition: opacity 0.6s ease-out, transform 0.8s ease-out;
}

/* Animate divider when section becomes visible */
.section-visible::before {
  opacity: 1;
  transform: translateX(-50%) scaleX(1);
}

/* Remove divider from first section (hero doesn't need it) */
.hero + .section::before {
  display: block;
}

.section-header {
  max-width: 800px;
  margin: 0 auto var(--space-xl);
}

.section-header h2 {
  font-family: var(--font-joe);
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.section-subtitle {
  font-size: 1.1rem;
  font-weight: 400;
  font-family: var(--font-primary);
  color: var(--gray);
  margin-bottom: 0;
}

/* About Section */
.about {
  background: var(--gradient-hero), url('/images/Banner_background_main.svg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-blend-mode: overlay;
  background-attachment: fixed;
}

/* Section Title - Mobile First */
.about-section-title {
  text-align: center;
  margin-bottom: var(--space-xl);
}

.about-section-title h2 {
  font-family: var(--font-joe);
  font-size: 2rem;
  font-weight: 800;
  color: var(--white);
  text-transform: uppercase;
  letter-spacing: 2px;
  display: inline-block;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

@media (min-width: 768px) {
  .about-section-title h2 {
    font-size: 2.5rem;
  }
}

/* YouTube Video Section - Mobile First */
.about-video {
  margin-bottom: var(--space-lg);
}

@media (min-width: 768px) {
  .about-video {
    margin-bottom: var(--space-2xl);
  }
}

.video-wrapper {
  position: relative;
  padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
  height: 0;
  overflow: hidden;
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-xl);
  background: rgba(0, 0, 0, 0.1);
}

.video-wrapper iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border-radius: var(--border-radius-lg);
}

/* About Grid: Text Left, Images Right - Mobile First */
.about-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-lg); /* Reduced gap on mobile to match YouTube spacing */
  margin-top: var(--space-lg);
}

/* Desktop only: 2 columns (tablets stay mobile) */
@media (min-width: 1024px) {
  .about-grid {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-2xl);
    margin-top: var(--space-2xl);
  }
}

/* Photo Column - Mobile First */
.about-photo-column {
  display: flex;
  flex-direction: column;
  align-items: stretch;
}

.about-photos-column {
  display: flex;
  flex-direction: column;
}

/* Column Titles */
.about-column-title {
  font-family: var(--font-joe);
  font-size: 1.5rem;
  font-weight: 500;
  color: var(--white);
  text-align: center;
  margin-bottom: var(--space-lg);
  text-transform: uppercase;
  letter-spacing: 2px;
  opacity: 1 !important; /* Always visible even when container is hidden */
  transform: none !important; /* Override any transform animations */
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.35);
}

/* First column title (Certyfikacja UEFA) - no top margin needed */
.about-photo-column .about-column-title {
  margin-top: 0;
}

/* Second column title (GALERIA) - add top margin on mobile to match spacing */
.about-photos-column .about-column-title {
  margin-top: 0;
}

@media (min-width: 768px) {
  .about-column-title {
    font-size: 1.75rem;
    margin-bottom: var(--space-xl);
  }
}

@media (min-width: 1024px) {
  .about-column-title {
    font-size: 2rem;
  }
}

/* Flip Card Container */
.flip-card {
  width: 100%;
  height: auto;
  perspective: 1000px;
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-xl);
}

@media (min-width: 1024px) {
  .flip-card {
    height: 100%;
    min-height: 500px;
  }
}

.flip-card-inner {
  position: relative;
  width: 100%;
  height: auto;
  text-align: center;
  transition: transform 0.8s cubic-bezier(0.4, 0.0, 0.2, 1);
  -webkit-transform-style: preserve-3d;
  transform-style: preserve-3d;
}

@media (min-width: 1024px) {
  .flip-card-inner {
    height: 100%;
  }
}

.flip-card.flipped .flip-card-inner {
  transform: rotateY(180deg);
}

.flip-card-front,
.flip-card-back {
  width: 100%;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  border-radius: var(--border-radius-lg);
  overflow: hidden;
}

/* On desktop - use absolute positioning with fixed height */
@media (min-width: 1024px) {
  .flip-card-front,
  .flip-card-back {
    position: absolute;
    height: 100%;
  }
}

.flip-card-front {
  z-index: 2;
  display: flex;
  flex-direction: column;
  position: relative;
  transform: rotateY(0deg); /* Explicit 3D transform for Firefox backface-visibility */
  pointer-events: auto;
}

.flip-card-back {
  transform: rotateY(180deg);
  background: var(--gradient-hero), url('/images/Mobile_menu_background.svg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-blend-mode: overlay;
  padding: var(--space-lg) var(--space-xl);
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  right: 0;
  height: 100%;
  display: flex;
  flex-direction: column;
  pointer-events: none;
}

.flip-card.flipped .flip-card-front {
  z-index: 1;
  pointer-events: none;
}

.flip-card.flipped .flip-card-back {
  z-index: 3;
  pointer-events: auto;
}

@media (min-width: 1024px) {
  .flip-card-back {
    min-height: 100%;
  }
}

/* Flip Indicator Button */
.flip-indicator {
  position: absolute;
  bottom: max(20px, 4%);
  right: max(20px, 4%);
  width: 48px;
  height: 48px;
  background: var(--secondary-orange);
  border: 3px solid var(--white);
  border-radius: 50%;
  color: var(--white);
  font-size: 1.1rem;
  cursor: pointer;
  z-index: 10;
  box-shadow: 0 4px 20px rgba(243, 156, 18, 0.6),
              0 0 20px rgba(243, 156, 18, 0.4);
  transition: all var(--transition-normal);
  display: flex;
  align-items: center;
  justify-content: center;
  animation: pulse-flip 2s ease-in-out infinite;
  -webkit-tap-highlight-color: transparent;
}

/* Larger screens - bigger button */
@media (min-width: 1024px) {
  .flip-indicator {
    width: 56px;
    height: 56px;
    font-size: 1.25rem;
    bottom: 20px;
    right: 20px;
  }
}

/* Very small screens - ensure button is always visible */
@media (max-width: 360px) {
  .flip-indicator {
    width: 44px;
    height: 44px;
    font-size: 1rem;
    bottom: 15px;
    right: 15px;
  }
}

.flip-indicator:hover {
  background: var(--secondary-orange-dark);
  transform: scale(1.1) rotate(180deg);
  box-shadow: 0 7px 32px rgba(243, 156, 18, 0.85),
              0 0 28px rgba(243, 156, 18, 0.65);
  filter: brightness(1.15);
}

.flip-indicator:active {
  transform: scale(0.95);
}

.flip-indicator.flip-back-btn {
  animation: none;
}

@keyframes pulse-flip {
  0%, 100% {
    box-shadow: 0 4px 20px rgba(243, 156, 18, 0.6),
                0 0 18px rgba(243, 156, 18, 0.35);
    transform: scale(1);
    filter: brightness(1);
  }
  50% {
    box-shadow: 0 7px 38px rgba(243, 156, 18, 0.9),
                0 0 28px rgba(243, 156, 18, 0.65);
    transform: scale(1.07);
    filter: brightness(1.2);
  }
}

/* Flip Card Back Content */
.flip-back-content {
  width: 100%;
  height: 100%;
  max-height: 100%;
  min-height: 0;
  flex: 1 1 auto;
  overflow-y: auto;
  text-align: left;
  padding-right: var(--space-xs);
  -webkit-overflow-scrolling: touch;
  touch-action: pan-y;
  transform: translateZ(0); /* Force compositing layer for scroll in 3D context */
}

/* Custom scrollbar for flip card back */
.flip-back-content::-webkit-scrollbar {
  width: 6px;
}

.flip-back-content::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 3px;
}

.flip-back-content::-webkit-scrollbar-thumb {
  background: var(--secondary-orange-light);
  border-radius: 3px;
}

.flip-back-content::-webkit-scrollbar-thumb:hover {
  background: var(--secondary-orange);
}

.flip-back-content h3 {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: var(--space-sm);
  line-height: 1.2;
}

@media (min-width: 768px) {
  .flip-back-content h3 {
    font-size: 1.5rem;
  }
}

.flip-back-content p {
  color: var(--white);
  font-size: 0.85rem;
  line-height: 1.5;
  margin-bottom: var(--space-xs);
  text-align: justify;
}

@media (min-width: 768px) {
  .flip-back-content p {
    font-size: 0.9rem;
  }
}

@media (min-width: 1024px) {
  .flip-back-content h3 {
    font-size: 1.7rem;
  }
  .flip-back-content p {
    font-size: 1rem;
    line-height: 1.6;
  }
  .flip-back-content .signature-name {
    font-size: 1.25rem;
  }
  .flip-back-content .signature-title {
    font-size: 1rem;
  }
}

.flip-back-content p:last-of-type {
  margin-bottom: var(--space-sm);
}

.flip-back-content .about-signature {
  margin-top: var(--space-sm);
  padding-top: var(--space-xs);
  border-top: 2px solid rgba(255, 255, 255, 0.3);
}

.flip-back-content .signature-name {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--secondary-orange-light);
  margin-bottom: var(--space-xs);
}

.flip-back-content .signature-title {
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.8);
  font-style: italic;
  margin: 0;
}

.about-photo-wrapper {
  width: 100%;
  height: auto;
  border-radius: var(--border-radius-lg);
  overflow: hidden;
  box-shadow: none;
  position: relative;
  display: block;
}

@media (min-width: 1024px) {
  .about-photo-wrapper {
    height: 100%;
    min-height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #f5f5f5 0%, #e0e0e0 100%);
  }
}

.about-photo-wrapper::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    to bottom,
    transparent 0%,
    transparent 50%,
    rgba(0, 0, 0, 0.1) 100%
  );
  z-index: 1;
  pointer-events: none;
}

.about-photo-wrapper img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform var(--transition-slow);
}

/* On larger screens use cover to fill the space */
@media (min-width: 1024px) {
  .about-photo-wrapper img {
    height: 100%;
    width: auto;
    max-width: 100%;
    object-fit: cover;
  }
}

.about-photo-wrapper:hover img {
  transform: scale(1.05);
}

/* Photo Grid Column - Right Side */
.about-photos-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-sm);
  width: 100%;
}

/* Mobile: 12 photos in 4 columns x 3 rows to keep same container size */
@media (max-width: 768px) {
  .about-photos-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: calc(var(--space-sm) * 0.7);
  }
  
  .photo-grid-item {
    border-radius: calc(var(--border-radius-md) * 0.8);
  }
}

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

@media (min-width: 1024px) {
  .about-photos-grid {
    gap: var(--space-md);
  }
}

.photo-grid-item {
  position: relative;
  width: 100%;
  padding-bottom: 100%; /* Makes square */
  overflow: hidden;
  border-radius: var(--border-radius-md);
  box-shadow: var(--shadow-md);
  transition: transform var(--transition-normal), box-shadow var(--transition-normal);
  cursor: pointer;
}

.photo-grid-item:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-xl);
}

.photo-grid-item img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: opacity 1.8s cubic-bezier(0.4, 0, 0.2, 1), transform var(--transition-slow);
}

.photo-grid-item:hover img {
  transform: scale(1.1);
}

/* Photo fade animation for grid rotation */
.photo-grid-item img.fade-out {
  opacity: 0;
}

.photo-grid-item img.fade-in {
  opacity: 1;
}

/* Photo Gallery Modal */
.photo-gallery-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.95);
  z-index: 10000;
  display: none;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity var(--transition-normal);
}

.photo-gallery-modal.active {
  display: flex;
  opacity: 1;
}

.gallery-close {
  position: absolute;
  top: clamp(10px, 2vw, 20px);
  right: clamp(10px, 2vw, 20px);
  width: clamp(40px, 8vw, 50px);
  height: clamp(40px, 8vw, 50px);
  background: rgba(255, 255, 255, 0.1);
  border: 2px solid var(--white);
  border-radius: 50%;
  color: var(--white);
  font-size: clamp(1.2rem, 2.5vw, 1.5rem);
  cursor: pointer;
  z-index: 10002;
  transition: all var(--transition-normal);
  display: flex;
  align-items: center;
  justify-content: center;
}

.gallery-close:hover {
  background: var(--secondary-orange);
  transform: rotate(90deg);
}

.gallery-prev,
.gallery-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: clamp(50px, 9vw, 60px);
  height: clamp(50px, 9vw, 60px);
  background: rgba(255, 255, 255, 0.1);
  border: 2px solid var(--white);
  border-radius: 50%;
  color: var(--white);
  font-size: clamp(1.25rem, 2.5vw, 1.5rem);
  cursor: pointer;
  z-index: 10002;
  transition: all var(--transition-normal);
  display: flex;
  align-items: center;
  justify-content: center;
}

.gallery-prev {
  left: clamp(10px, 2vw, 20px);
}

.gallery-next {
  right: clamp(10px, 2vw, 20px);
}

.gallery-prev:hover,
.gallery-next:hover {
  background: var(--secondary-orange);
  transform: translateY(-50%) scale(1.1);
}

/* Gallery navigation now uses adaptive sizing from base styles */

.gallery-image-container {
  max-width: 90%;
  max-height: 90%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.gallery-image-container img {
  max-width: 100%;
  max-height: 90vh;
  object-fit: contain;
  border-radius: var(--border-radius-md);
  box-shadow: 0 10px 50px rgba(0, 0, 0, 0.5);
}

.gallery-counter {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(0, 0, 0, 0.7);
  color: var(--white);
  padding: var(--space-xs) var(--space-md);
  border-radius: 20px;
  font-size: 0.9rem;
  font-weight: 600;
  z-index: 10002;
}

/* Text Content Column - Right Side */
.about-text-content {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
  height: 100%;
}

.about-text-box {
  background: var(--gradient-hero), url('/images/Mobile_menu_background.svg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-blend-mode: overlay;
  padding: var(--space-lg) var(--space-xl);
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-md);
  flex: 0 0 auto;
}

.about-text-box h3 {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: var(--space-sm);
  line-height: 1.2;
}

@media (min-width: 768px) {
  .about-text-box h3 {
    font-size: 1.5rem;
  }
}

.about-text-box p {
  color: var(--white);
  font-size: 0.85rem;
  line-height: 1.5;
  margin-bottom: var(--space-xs);
  text-align: justify;
}

@media (min-width: 768px) {
  .about-text-box p {
    font-size: 0.9rem;
  }
}

.about-text-box p:last-of-type {
  margin-bottom: var(--space-sm);
}

/* Signature Styles */
.about-signature {
  margin-top: var(--space-sm);
  padding-top: var(--space-xs);
  border-top: 2px solid rgba(255, 255, 255, 0.3);
}

.signature-name {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--secondary-orange-light);
  margin-bottom: var(--space-xs);
}

.signature-title {
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.8);
  font-style: italic;
  margin: 0;
}

/* Small Images Grid - Equal height distribution */
.images-small {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-md);
  flex: 1;
}

.image-small {
  border-radius: var(--border-radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  height: 100%;
  min-height: 150px;
}

@media (min-width: 480px) {
  .image-small {
    min-height: 180px;
  }
}

@media (min-width: 768px) {
  .image-small {
    min-height: 200px;
  }
}

.image-small img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform var(--transition-slow);
}

.image-small:hover img {
  transform: scale(1.05);
}

/* Programs Section */
.programs {
  background: var(--gradient-hero), url('/images/Banner_background_main.svg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-blend-mode: overlay;
  background-attachment: fixed;
}

.programs .section-subtitle {
  color: var(--white);
}

/* Programs Carousel Wrapper */
.programs-carousel-wrapper {
  position: relative;
  margin-top: calc(var(--space-lg) / 2); /* Further reduced - half of previous value */
  padding: 0 80px; /* Space for arrows on desktop */
  /* No vertical padding needed - carousel container handles spacing for scaled slides */
}

/* Carousel Container - cursor for desktop */
.programs-carousel {
  overflow: hidden;
  width: 100%;
  padding: 30px 0; /* Vertical padding to accommodate scaled slides (scale 1.2) */
}

/* Desktop only - grab cursor between cards */
@media (min-width: 769px) {
  .programs-carousel {
    cursor: grab;
  }
  
  .programs-carousel:active {
    cursor: grabbing;
  }
}

/* Carousel Track */
.programs-carousel-track {
  display: flex;
  gap: var(--space-xl);
  transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  will-change: transform;
  align-items: center; /* Center align slides vertically */
}

/* Program Slide - Adaptive width like testimonials */
.program-slide {
  /* 3 cards: (100% - 2*gap) / 3 */
  flex: 0 0 calc((100% - 2 * var(--space-xl)) / 3);
  max-width: 400px; /* Maximum width on very large screens */
  aspect-ratio: 1; /* Square */
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 1;
  transition: opacity 0.5s ease, transform 0.5s ease;
  perspective: 1000px; /* For 3D flip effect */
}

.program-slide.active {
  opacity: 1;
  transform: scale(1.2);
  z-index: 10;
  position: relative;
}

/* Program Flip Card Container */
.program-flip-card {
  width: 100%;
  height: 100%;
  position: relative;
  -webkit-tap-highlight-color: transparent;
}

/* Desktop only - pointer cursor on cards */
@media (min-width: 769px) {
  .program-flip-card {
    cursor: pointer;
  }
}

.program-flip-card:hover {
  /* Slight hint that card is interactive */
  opacity: 1;
}

.program-flip-inner {
  width: 100%;
  height: 100%;
  transition: transform 0.6s cubic-bezier(0.4, 0.0, 0.2, 1);
  transform-style: preserve-3d;
  position: relative;
}

.program-flip-card.flipped .program-flip-inner {
  transform: rotateY(180deg);
}

.program-flip-front,
.program-flip-back {
  width: 100%;
  height: 100%;
  position: absolute;
  backface-visibility: hidden;
  border-radius: var(--border-radius-xl);
  display: flex;
  align-items: center;
  justify-content: center;
}

.program-flip-front {
  z-index: 2;
  transform: rotateY(0deg); /* Explicit 3D transform for Firefox backface-visibility */
}

.program-flip-front img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: var(--border-radius-xl);
  filter: drop-shadow(0 10px 25px rgba(0, 0, 0, 0.15));
  transition: filter 0.5s ease;
  pointer-events: none; /* Prevent image drag */
  user-select: none;
}

.program-slide.active .program-flip-front img {
  filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.3));
}

.program-flip-back {
  transform: rotateY(180deg);
  background: var(--gradient-primary), url('/images/Mobile_menu_background.svg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-blend-mode: overlay;
  padding: 0; /* Remove default padding */
  flex-direction: column;
  text-align: center;
  color: var(--white);
  justify-content: space-between; /* Space between content and button */
}

.program-flip-back h3 {
  font-size: clamp(1.1rem, 5vw, 1.65rem); /* Increased font size */
  margin: 0;
  margin-top: 8%; /* Relative to card height */
  margin-bottom: 4%; /* Relative to card height */
  color: var(--white);
  padding: 0 8%; /* Relative horizontal padding */
}

.program-flip-back ul {
  list-style: none;
  padding: 0 8%; /* Relative horizontal padding */
  margin: 0;
  text-align: left;
  width: 100%;
  flex-grow: 1; /* Allow list to grow */
}

.program-flip-back li {
  font-size: clamp(0.85rem, 4vw, 1.05rem); /* Increased font size */
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.95);
  padding: 1% 0; /* Relative vertical padding */
  position: relative;
  padding-left: 1.5em; /* Relative to font size */
}

.program-flip-back li:before {
  content: "⚽";
  position: absolute;
  left: 0;
  color: var(--secondary-orange);
  font-size: 0.85em; /* Relative to parent font size */
}

@keyframes pulse-program-btn {
  0%, 100% {
    box-shadow: 0 4px 20px rgba(243, 156, 18, 0.6),
                0 0 18px rgba(243, 156, 18, 0.35);
    transform: scale(1);
    filter: brightness(1);
  }
  50% {
    box-shadow: 0 7px 45px rgba(243, 156, 18, 1),
                0 0 35px rgba(243, 156, 18, 0.7);
    transform: scale(1);
    filter: brightness(1.15);
  }
}

/* Button on flip card back */
.program-btn {
  margin: 4% 6% 6%; /* Relative margins */
  width: calc(100% - 12%); /* Relative width */
  font-size: clamp(0.9rem, 4vw, 1.1rem); /* Increased button font */
  padding: 3% 5%; /* Relative padding */
  animation: pulse-program-btn 3s ease-in-out infinite;
  box-shadow: 0 4px 20px rgba(243, 156, 18, 0.6), 0 0 18px rgba(243, 156, 18, 0.35);
  /* Stabilization for smooth animation */
  backface-visibility: hidden;
  transform: translateZ(0);
  will-change: box-shadow, filter;
  -webkit-font-smoothing: subpixel-antialiased;
}

.program-btn:hover {
  /* Animation continues on hover */
  transform: scale(1.02);
  box-shadow: 0 7px 32px rgba(243, 156, 18, 0.85), 0 0 28px rgba(243, 156, 18, 0.65);
}

.carousel-swiping .program-btn {
  animation-play-state: paused;
}

/* Carousel Navigation Arrows */
.carousel-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: clamp(40px, 8vw, 50px);
  height: clamp(40px, 8vw, 50px);
  background: transparent;
  border: none;
  border-radius: 50%;
  color: rgba(255, 255, 255, 0.7);
  font-size: clamp(1.5rem, 3vw, 2rem);
  cursor: pointer;
  z-index: 10;
  transition: all var(--transition-normal);
  display: flex;
  align-items: center;
  justify-content: center;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}

.carousel-arrow:hover {
  color: rgba(255, 255, 255, 0.95);
  background: radial-gradient(circle, rgba(255, 255, 255, 0.15) 0%, rgba(252, 163, 17, 0.1) 50%, transparent 70%);
  filter: drop-shadow(0 0 8px rgba(255, 255, 255, 0.6)) drop-shadow(0 0 12px rgba(252, 163, 17, 0.4));
  transform: translateY(-50%) scale(1.15);
}

.carousel-arrow:active {
  transform: translateY(-50%) scale(0.95);
  background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, rgba(252, 163, 17, 0.05) 50%, transparent 70%);
  filter: drop-shadow(0 0 6px rgba(255, 255, 255, 0.4));
}

.carousel-arrow:focus-visible {
  outline: 3px solid var(--secondary-orange);
  outline-offset: 4px;
}

.carousel-arrow-prev {
  left: 0;
}

.carousel-arrow-next {
  right: 0;
}

/* Disabled state for arrows */
.carousel-arrow:disabled {
  opacity: 0.3;
  cursor: not-allowed;
  pointer-events: none;
}

/* Carousel Indicators (horizontal bars) */
.carousel-indicators {
  display: none; /* Hidden on desktop */
  justify-content: center;
  align-items: center;
  gap: clamp(6px, 1.2vw, 8px);
  margin-top: clamp(18px, 3.5vw, 24px);
  padding: 0 clamp(12px, 2.5vw, 16px);
}

.carousel-dot {
  width: clamp(40px, 10vw, 54px);
  height: clamp(3px, 0.6vw, 4px);
  border-radius: clamp(1.5px, 0.3vw, 2px);
  background: rgba(255, 255, 255, 0.3);
  border: none;
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  padding: 0;
}

.carousel-dot:hover {
  background: rgba(255, 255, 255, 0.5);
}

.carousel-dot.active {
  background: var(--secondary-orange);
  width: clamp(44px, 11vw, 58px); /* Elongated active bar */
  box-shadow: 0 0 10px rgba(255, 102, 0, 0.5);
}

.carousel-dot:focus-visible {
  outline: 2px solid var(--secondary-orange);
  outline-offset: 3px;
}

/* ==========================================================================
   INSTAGRAM SECTION
   ========================================================================== */

/* Instagram Section */
.instagram {
  background: var(--gradient-hero), url('/images/Banner_background_main.svg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-blend-mode: overlay;
  background-attachment: fixed;
}

/* Instagram Title with Icon */
.instagram-title-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-md);
  margin-bottom: var(--space-sm);
}

.instagram-title-wrapper a {
  display: inline-block;
  text-decoration: none;
  transition: transform 0.3s ease;
}

.instagram-title-wrapper a:hover {
  transform: scale(1.05);
}

.instagram-title-wrapper a:hover .instagram-icon {
  animation: none;
  transform: scale(1.15);
}

.instagram-icon {
  font-size: 3rem;
  background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
  animation: instagramPulse 3s ease-in-out infinite;
  cursor: pointer;
  transition: transform 0.3s ease;
}

@keyframes instagramPulse {
  0%, 100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.1);
  }
}

.instagram .section-header h2 {
  color: var(--white);
  font-family: var(--font-joe);
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 0;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.instagram .section-subtitle {
  color: var(--white);
  font-size: 1.1rem;
  font-weight: 400;
  margin-bottom: var(--space-sm);
  opacity: 1;
}

.instagram-description {
  color: var(--white);
  font-size: 1.1rem;
  margin-bottom: var(--space-xl);
  opacity: 0.95;
}

/* Instagram Carousel Wrapper */
.instagram-carousel-wrapper {
  position: relative;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 60px;
}

.instagram-carousel {
  overflow: hidden;
  cursor: grab;
  user-select: none;
  padding-top: 20px;
}

.instagram-carousel:active {
  cursor: grabbing;
}

.instagram-carousel-track {
  display: flex;
  gap: var(--space-lg);
  transition: transform 0.5s ease-in-out;
  will-change: transform;
  align-items: flex-start;
}

/* Instagram Slide - 3 cards per view on desktop */
.instagram-slide {
  flex: 0 0 calc(33.333% - var(--space-lg));
  min-width: 280px;
  box-sizing: border-box;
}

/* Instagram Card */
.instagram-card {
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--border-radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  transition: transform var(--transition-normal), opacity var(--transition-normal), box-shadow var(--transition-normal), background var(--transition-normal);
  height: auto;
  display: flex;
  flex-direction: column;
  cursor: pointer;
}

.instagram-card:hover {
  transform: translateY(-8px);
  background: rgba(255, 255, 255, 0.2);
  box-shadow: var(--shadow-xl);
}

/* Instagram Media (Image/Video placeholder) */
.instagram-media {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 5; /* Portrait (4:5) to match Instagram feed */
  background: rgba(0, 0, 0, 0.3);
  overflow: hidden;
}

.instagram-placeholder {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(240, 148, 51, 0.2) 0%, rgba(188, 24, 136, 0.2) 100%);
}

.instagram-placeholder i {
  font-size: 4rem;
  color: rgba(255, 255, 255, 0.4);
}

/* When real image is loaded (for future API integration) */
.instagram-media img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-normal);
}

.instagram-card:hover .instagram-media img {
  transform: scale(1.05);
}

/* Instagram Badge (top-right corner) - Clickable link */
.instagram-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 36px;
  height: 36px;
  background: rgba(255, 255, 255, 0.18);
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.25);
  text-decoration: none;
  transition: all var(--transition-normal);
  z-index: 10;
  cursor: pointer;
}

.instagram-badge:hover {
  transform: scale(1.1) rotate(5deg);
  background: rgba(255, 255, 255, 0.28);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.35);
  border-color: rgba(255, 255, 255, 0.45);
}

.instagram-badge i {
  color: rgba(255, 255, 255, 0.7);
  font-size: 1.3rem;
  pointer-events: none;
}

/* Instagram Content */
.instagram-content {
  padding: var(--space-lg);
  padding-bottom: calc(var(--space-lg) * 1.5);
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  flex: 1;
  position: relative; /* For expand button positioning */
}

.instagram-caption {
  color: var(--white);
  font-size: 0.95rem;
  line-height: 1.6;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: normal;
  max-height: calc(3 * 1.6em);
  min-height: 0;
  flex: 1;
  transition: max-height var(--transition-normal), min-height var(--transition-normal), padding-right var(--transition-normal);
  padding-bottom: 64px; /* Extra breathing room before expand button */
}

/* Expanded state for caption */
.instagram-caption.expanded {
  display: block;
  -webkit-line-clamp: unset;
  line-clamp: unset;
  min-height: 200px;
  max-height: 200px;
  overflow-y: auto;
  padding-right: 8px;
  
  /* Custom scrollbar */
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.3) rgba(255, 255, 255, 0.1);
}

/* Collapsing state - smooth animation back to clamped */
.instagram-caption.collapsing {
  display: block;
  -webkit-line-clamp: unset;
  line-clamp: unset;
  overflow: hidden;
  text-overflow: ellipsis;
  padding-right: 0;
}

.instagram-caption.expanded::-webkit-scrollbar {
  width: 6px;
}

.instagram-caption.expanded::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 3px;
}

.instagram-caption.expanded::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.3);
  border-radius: 3px;
}

.instagram-caption.expanded::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.5);
}

/* Expand button for Instagram posts */
.instagram-expand-btn {
  position: absolute;
  bottom: clamp(10px, 1.8vw, 12px);
  left: 50%;
  transform: translateX(-50%);
  width: clamp(28px, 5vw, 32px);
  height: clamp(28px, 5vw, 32px);
  background: transparent;
  border: none;
  border-radius: 50%;
  color: rgba(255, 255, 255, 0.7);
  font-size: clamp(1rem, 2vw, 1.2rem);
  cursor: pointer;
  z-index: 5;
  transition: all var(--transition-normal);
  display: flex;
  align-items: center;
  justify-content: center;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}

.instagram-expand-btn:hover {
  color: rgba(255, 255, 255, 0.95);
  background: radial-gradient(circle, rgba(255, 255, 255, 0.15) 0%, rgba(252, 163, 17, 0.1) 50%, transparent 70%);
  filter: drop-shadow(0 0 6px rgba(255, 255, 255, 0.5)) drop-shadow(0 0 10px rgba(252, 163, 17, 0.3));
  transform: translateX(-50%) scale(1.1);
}

.instagram-expand-btn:active {
  transform: translateX(-50%) scale(0.95);
}

.instagram-expand-btn i {
  pointer-events: none;
  transition: transform var(--transition-normal);
}

.instagram-expand-btn.expanded {
  transform: translateX(-50%) rotate(180deg);
}

.instagram-expand-btn.expanded:hover {
  transform: translateX(-50%) rotate(180deg) scale(1.1);
}

/* Hide expand button if text is short */
/* Instagram Date (now on image, bottom-left corner) */
.instagram-date {
  position: absolute;
  bottom: 12px;
  left: 12px;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.85rem;
  font-weight: 600;
  padding: 6px 12px;
  background: transparent;
  z-index: 5;
  transition: all var(--transition-normal);
}

.instagram-date i {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.9rem;
}

.instagram-card:hover .instagram-date {
  color: rgba(255, 255, 255, 0.9);
  transform: translateY(-2px);
}

.instagram-card:hover .instagram-date i {
  color: rgba(255, 255, 255, 0.9);
}

/* Instagram Arrows */
.instagram-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: clamp(40px, 8vw, 50px);
  height: clamp(40px, 8vw, 50px);
  background: transparent;
  border: none;
  border-radius: 50%;
  color: rgba(255, 255, 255, 0.7);
  font-size: clamp(1.5rem, 3vw, 2rem);
  cursor: pointer;
  z-index: 10;
  transition: all var(--transition-normal);
  display: flex;
  align-items: center;
  justify-content: center;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}

.instagram-arrow:hover {
  color: rgba(255, 255, 255, 0.95);
  background: radial-gradient(circle, rgba(255, 255, 255, 0.15) 0%, rgba(252, 163, 17, 0.1) 50%, transparent 70%);
  filter: drop-shadow(0 0 8px rgba(255, 255, 255, 0.6)) drop-shadow(0 0 12px rgba(252, 163, 17, 0.4));
  transform: translateY(-50%) scale(1.15);
}

.instagram-arrow:active {
  transform: translateY(-50%) scale(0.95);
  background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, rgba(252, 163, 17, 0.05) 50%, transparent 70%);
  filter: drop-shadow(0 0 6px rgba(255, 255, 255, 0.4));
}

.instagram-arrow-prev {
  left: 0;
}

.instagram-arrow-next {
  right: 0;
}

/* Instagram Indicators (horizontal bars) - Hidden on desktop, visible on mobile */
.instagram-indicators {
  display: none; /* Hidden on desktop by default */
  justify-content: center;
  align-items: center;
  gap: 8px;
  margin-top: 24px;
  padding: 0 16px;
}

.instagram-dot {
  width: 54px;
  height: 4px;
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.3);
  border: none;
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  padding: 0;
}

.instagram-dot:hover {
  background: rgba(255, 255, 255, 0.5);
}

.instagram-dot.active {
  background: var(--secondary-orange);
  width: 58px; /* Elongated active bar */
  box-shadow: 0 0 10px rgba(255, 102, 0, 0.5);
}

/* Instagram CTA Button */
.instagram-cta {
  text-align: center;
  margin-top: var(--space-2xl);
}

.btn-instagram {
  background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
  color: var(--white);
  padding: var(--space-md) var(--space-xl);
  border-radius: var(--border-radius-lg);
  font-size: 1.1rem;
  font-weight: 600;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  transition: all var(--transition-normal);
  box-shadow: var(--shadow-lg);
  border: 2px solid rgba(255, 255, 255, 0.2);
}

.btn-instagram:hover {
  box-shadow: 0 0 16px rgba(240, 148, 51, 0.55), 0 0 28px rgba(204, 35, 102, 0.4);
  color: var(--white);
}

.btn-instagram i {
  font-size: 1.3rem;
}

/* ==========================================================================
   REGISTRATION SECTION
   ========================================================================== */

/* Registration Page (separate page, not section on homepage) */
.registration-page {
  min-height: 100vh;
  padding: var(--space-2xl) var(--space-md);
  background: var(--gradient-hero), url('/images/Banner_background_main.svg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-blend-mode: overlay;
  background-attachment: fixed;
  color: var(--white);
}

.registration-page .section-header {
  margin-bottom: var(--space-2xl);
}

.registration-page .section-header h1 {
  font-family: var(--font-hero);
  font-size: clamp(2rem, 5vw, 3rem);
  color: var(--white);
  margin-bottom: var(--space-sm);
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.registration-page .section-subtitle {
  color: rgba(255, 255, 255, 0.9);
  font-size: 1.1rem;
}

/* Registration Section (when on homepage - kept for backward compatibility) */
.registration {
  background: var(--gradient-hero), url('/images/Banner_background_main.svg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-blend-mode: overlay;
  background-attachment: fixed;
  color: var(--white);
}

.registration .section-header h2 {
  color: var(--white);
}

.registration .section-subtitle {
  color: rgba(255, 255, 255, 0.9);
}

.registration-container {
  max-width: 900px;
  margin: 0 auto;
}

.registration-form {
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--border-radius-lg);
  padding: clamp(1.5rem, 4vw, 2.5rem);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}

/* Honeypot field - hidden from users, visible to bots */
.honeypot {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

/* Form Sections */
.form-section {
  margin-bottom: clamp(1.5rem, 3vw, 2rem);
  padding-bottom: clamp(1.5rem, 3vw, 2rem);
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.form-section:last-of-type {
  border-bottom: none;
}

.form-section-title {
  font-family: var(--font-heading);
  font-size: clamp(1.1rem, 2.5vw, 1.3rem);
  font-weight: 600;
  color: var(--white);
  margin-bottom: var(--space-md);
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

.form-section-title i,
.form-section-title .form-section-title-icon {
  color: var(--secondary-orange);
  font-size: 1.2em;
  text-shadow: 0 0 4px rgba(243, 156, 18, 0.6),
               0 1px 2px rgba(0, 0, 0, 0.4);
}

/* Form Layout */
.form-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-md);
  margin-bottom: var(--space-md);
}

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

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.form-group label {
  font-family: var(--font-primary);
  font-size: clamp(0.9rem, 2vw, 1rem);
  font-weight: 500;
  color: var(--white);
}

.required {
  color: var(--secondary-orange);
  font-weight: 600;
  text-shadow: 0 0 4px rgba(243, 156, 18, 0.6),
               0 1px 2px rgba(0, 0, 0, 0.4);
}

/* Form Controls */
.form-control {
  width: 100%;
  padding: clamp(0.7rem, 2vw, 0.9rem) clamp(1rem, 2.5vw, 1.2rem);
  background: rgba(255, 255, 255, 0.1);
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: var(--border-radius-md);
  color: var(--white);
  font-family: var(--font-primary);
  font-size: clamp(0.9rem, 2vw, 1rem);
  transition: all var(--transition-normal);
  appearance: none;
}

.form-control::placeholder {
  color: rgba(255, 255, 255, 0.5);
}

.form-control:focus {
  outline: none;
  background: rgba(255, 255, 255, 0.15);
  border-color: var(--secondary-orange);
  box-shadow: 0 0 0 3px rgba(243, 156, 18, 0.2),
              0 0 8px rgba(243, 156, 18, 0.3);
}

/* Override browser autofill white background */
.form-control:-webkit-autofill,
.form-control:-webkit-autofill:hover,
.form-control:-webkit-autofill:focus,
.form-control:-webkit-autofill:active {
  -webkit-box-shadow: 0 0 0px 1000px rgba(255, 255, 255, 0.1) inset !important;
  -webkit-text-fill-color: var(--white) !important;
  transition: background-color 5000s ease-in-out 0s;
  caret-color: var(--white);
}

/* Remove default invalid/valid styling - only show on interaction */
.form-control:invalid:not(:placeholder-shown):not(:focus) {
  /* No automatic styling */
}

.form-control:valid:not(:placeholder-shown):not(:focus) {
  /* No automatic styling */
}

/* Show validation colors only after blur (user interaction) */
.form-control.touched:invalid {
  border-color: #ff6b6b;
}

.form-control.touched:valid {
  border-color: #51cf66;
}

/* Select Dropdown */
select.form-control {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='white' viewBox='0 0 16 16'%3E%3Cpath d='M8 11L3 6h10l-5 5z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  background-size: 16px;
  padding-right: 2.5rem;
  cursor: pointer;
}

select.form-control option {
  background: var(--primary-burgundy-dark);
  color: var(--white);
}

/* Textarea */
textarea.form-control {
  resize: vertical;
  min-height: 100px;
}

.char-count {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.6);
  text-align: right;
  margin-top: -0.25rem;
}

/* Date Input Styling */
input[type="date"].form-control {
  cursor: pointer;
  position: relative;
}

input[type="date"].form-control::-webkit-calendar-picker-indicator {
  cursor: pointer;
  filter: invert(1);
  opacity: 0.6;
  transition: opacity var(--transition-fast);
}

input[type="date"].form-control:hover::-webkit-calendar-picker-indicator {
  opacity: 1;
}

/* =================================================================
   About Page
   ================================================================= */

/* About Page - Main Container */
.about-page {
  min-height: 100vh;
  padding: var(--space-2xl) var(--space-md);
  background: var(--gradient-hero), url('/images/Banner_background_main.svg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-blend-mode: overlay;
  background-attachment: fixed;
  color: var(--white);
}

.about-page .section-header {
  margin-bottom: var(--space-2xl);
}

.about-page .section-header h1 {
  font-family: var(--font-hero);
  font-size: clamp(2rem, 5vw, 3rem);
  color: var(--white);
  margin-bottom: var(--space-sm);
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.about-page .section-subtitle {
  color: rgba(255, 255, 255, 0.9);
  font-size: 1.1rem;
}

/* About Content Grid */
.about-content {
  display: flex;
  flex-direction: column;
  gap: var(--space-xl);
  max-width: 900px;
  margin: 0 auto;
}

/* Explicit glass wrapper for About page text (view-level, independent of DB content) */
.about-glass-card {
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--border-radius-lg);
  padding: clamp(1.5rem, 4vw, 3rem);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
  width: 100%;
  animation: fadeInUp 0.6s ease-out backwards;
  animation-delay: 0.1s;
}

/* When .about-card comes from DB HTML inside .about-glass-card, neutralise it
   so there is no double glass nesting */
.about-glass-card .about-card {
  background: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  border: none;
  border-radius: 0;
  padding: 0;
  box-shadow: none;
}

/* About Card - Main Content (Centered) */
.about-card {
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--border-radius-lg);
  padding: clamp(1.5rem, 4vw, 3rem);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
  width: 100%;
}

.about-card-content {
  display: flex;
  flex-direction: column;
  gap: clamp(1.5rem, 3vw, 2.5rem);
}

/* Text Blocks */
.about-text-block {
  animation: fadeInUp 0.6s ease-out backwards;
}

.about-text-block:nth-child(1) { animation-delay: 0.1s; }
.about-text-block:nth-child(2) { animation-delay: 0.2s; }
.about-text-block:nth-child(3) { animation-delay: 0.3s; }
.about-text-block:nth-child(4) { animation-delay: 0.4s; }

.about-section-title {
  font-family: var(--font-heading);
  font-size: clamp(1.3rem, 3vw, 1.6rem);
  font-weight: 600;
  color: var(--white);
  margin-bottom: var(--space-md);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  text-align: center;
  margin-left: auto;
  margin-right: auto;
}

.about-section-title i {
  color: var(--secondary-orange);
  font-size: 1.2em;
  text-shadow: 0 0 4px rgba(243, 156, 18, 0.6),
               0 1px 2px rgba(0, 0, 0, 0.4);
  animation: pulse 2s ease-in-out infinite;
}

.about-paragraph {
  font-size: clamp(0.95rem, 2vw, 1.1rem);
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.95);
  margin: 0;
}

.about-paragraph strong {
  color: var(--white);
  font-weight: 600;
  text-shadow: 0 0 8px rgba(248, 196, 113, 0.4);
}

/* Mission Section - Special Styling */
.about-mission {
  background: rgba(243, 156, 18, 0.1);
  border: 2px solid rgba(243, 156, 18, 0.3);
  border-radius: var(--border-radius-md);
  padding: clamp(1rem, 3vw, 1.5rem);
  box-shadow: 0 0 20px rgba(243, 156, 18, 0.2);
}

.about-mission .about-section-title {
  color: var(--secondary-orange);
  text-shadow: 0 0 4px rgba(243, 156, 18, 0.6),
               0 1px 2px rgba(0, 0, 0, 0.4);
}

/* Call to Action Section */
.about-cta {
  margin-top: var(--space-lg);
  padding-top: clamp(1.5rem, 3vw, 2rem);
  border-top: 2px solid rgba(255, 255, 255, 0.2);
}

.about-cta-content {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-md);
}

.about-cta-title {
  font-family: var(--font-heading);
  font-size: clamp(1.5rem, 3.5vw, 2rem);
  color: var(--white);
  margin: 0;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.about-cta-text {
  font-size: clamp(0.95rem, 2vw, 1.1rem);
  color: rgba(255, 255, 255, 0.9);
  margin: 0;
  max-width: 600px;
}

.about-cta .btn {
  margin-top: var(--space-sm);
  font-size: clamp(0.95rem, 2vw, 1.1rem);
  padding: clamp(0.75rem, 2vw, 1rem) clamp(1.5rem, 3vw, 2rem);
}

/* Call to Action Bottom Button */
.about-cta-bottom {
  text-align: center;
  margin-top: 0;
  padding-top: 0;
}

.about-cta-bottom .btn {
  font-size: clamp(1rem, 2.5vw, 1.2rem);
  padding: clamp(0.9rem, 2.5vw, 1.2rem) clamp(2rem, 4vw, 3rem);
}

/* Glass wrapper container for feature cards + CTA (below main text on About page) */
.about-features-glass {
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--border-radius-lg);
  padding: clamp(1.5rem, 4vw, 2.5rem);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
  animation: fadeInUp 0.6s ease-out backwards;
  animation-delay: 0.3s;
}

/* Feature Cards Grid */
.about-features {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-md);
  width: 100%;
}

@media (max-width: 768px) {
  .about-features {
    grid-template-columns: 1fr;
  }
}

.feature-card {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--border-radius-md);
  padding: clamp(1rem, 2.5vw, 1.5rem);
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
  animation: fadeInUp 0.6s ease-out backwards;
}

.feature-card:nth-child(1) { animation-delay: 0.5s; }
.feature-card:nth-child(2) { animation-delay: 0.6s; }
.feature-card:nth-child(3) { animation-delay: 0.7s; }
.feature-card:nth-child(4) { animation-delay: 0.8s; }

.feature-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(243, 156, 18, 0.3);
  border-color: rgba(243, 156, 18, 0.5);
}

.feature-icon {
  width: 60px;
  height: 60px;
  margin: 0 auto var(--space-sm);
  background: rgba(243, 156, 18, 0.3);
  border: 2px solid rgba(243, 156, 18, 0.6);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: var(--secondary-orange);
  text-shadow: 0 0 4px rgba(243, 156, 18, 0.6),
               0 1px 2px rgba(0, 0, 0, 0.4);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2),
              0 0 12px rgba(243, 156, 18, 0.4),
              inset 0 0 8px rgba(243, 156, 18, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.feature-card:hover .feature-icon {
  transform: scale(1.1) rotate(5deg);
  border-color: rgba(243, 156, 18, 0.9);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.25),
              0 0 20px rgba(243, 156, 18, 0.6),
              inset 0 0 12px rgba(243, 156, 18, 0.3);
}

.feature-card h3 {
  font-family: var(--font-heading);
  font-size: clamp(1rem, 2vw, 1.2rem);
  color: var(--white);
  margin: 0 0 var(--space-xs);
  font-weight: 600;
}

.feature-card p {
  font-size: clamp(0.85rem, 1.8vw, 0.95rem);
  color: rgba(255, 255, 255, 0.85);
  margin: 0;
  line-height: 1.5;
}

/* Fade In Up Animation */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Pulse Animation for Icons */
@keyframes pulse {
  0%, 100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.1);
  }
}

/* Responsive Design - Mobile First */
@media (max-width: 768px) {
  .about-page {
    padding: var(--space-xl) var(--space-md);
  }

  .about-card {
    padding: clamp(1rem, 3vw, 1.5rem);
  }

  .about-section-title {
    justify-content: center;
    text-align: center;
    flex-wrap: wrap;
    max-width: 80%;
    margin-left: auto;
    margin-right: auto;
  }

  .about-features {
    grid-template-columns: 1fr;
    gap: var(--space-sm);
  }

  .feature-card {
    padding: var(--space-md);
  }
}

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

/* Error Messages */
.error-message {
  font-size: 0.85rem;
  color: var(--white);
  display: none;
  margin-top: 0.25rem;
  font-weight: 500;
}

.error-message::before {
  content: "⚠ ";
  color: var(--secondary-orange);
  font-weight: bold;
  text-shadow: 0 0 4px rgba(243, 156, 18, 0.6),
               0 1px 2px rgba(0, 0, 0, 0.4);
}

.form-group.error .error-message {
  display: block;
}

.form-group.error .form-control {
  border-color: #ff6b6b;
  background: rgba(255, 107, 107, 0.1);
}

/* Consent Checkboxes */
.consent-group {
  margin-bottom: var(--space-md);
}

.checkbox-label {
  display: flex;
  align-items: flex-start;
  gap: var(--space-sm);
  cursor: pointer;
  position: relative;
  padding-left: 2rem;
}

.checkbox-label input[type="checkbox"] {
  position: absolute;
  opacity: 0;
  cursor: pointer;
  width: 0;
  height: 0;
}

.checkmark {
  position: absolute;
  left: 0;
  top: 0.1rem;
  height: 22px;
  width: 22px;
  background: rgba(255, 255, 255, 0.1);
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: var(--border-radius-sm);
  transition: all var(--transition-normal);
}

.checkbox-label:hover .checkmark {
  background: rgba(255, 255, 255, 0.15);
  border-color: var(--secondary-orange);
}

.checkbox-label input:checked ~ .checkmark {
  background: var(--secondary-orange);
  border-color: var(--secondary-orange);
}

.checkmark::after {
  content: "";
  position: absolute;
  display: none;
  left: 6px;
  top: 2px;
  width: 6px;
  height: 11px;
  border: solid white;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.checkbox-label input:checked ~ .checkmark::after {
  display: block;
}

.consent-text {
  font-size: clamp(0.85rem, 1.8vw, 0.95rem);
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.9);
}

/* Submit Button */
.form-actions {
  display: flex;
  justify-content: center;
  margin-top: clamp(1.5rem, 3vw, 2rem);
}

.btn-submit {
  min-width: 200px;
  padding: clamp(0.9rem, 2.5vw, 1.1rem) clamp(2rem, 4vw, 2.5rem);
  font-size: clamp(1rem, 2.2vw, 1.1rem);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  position: relative;
  overflow: hidden;
}

.btn-submit i {
  margin-right: 0.5rem;
}

.btn-submit:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  pointer-events: none;
}

/* Form Messages */
.form-message {
  margin-top: var(--space-lg);
  padding: var(--space-md);
  border-radius: var(--border-radius-md);
  text-align: center;
  font-weight: 500;
  animation: slideDown 0.3s ease-out;
}

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

.form-message.success {
  background: rgba(81, 207, 102, 0.2);
  border: 2px solid var(--color-success);
  color: var(--color-success);
}

.form-message.error {
  background: rgba(255, 107, 107, 0.2);
  border: 2px solid var(--color-error);
  color: var(--white);
}

.form-message.error i {
  color: var(--color-error);
}

.form-message i {
  font-size: 1.5rem;
  display: block;
  margin-bottom: 0.5rem;
}

/* Loading State */
.btn-submit.loading {
  pointer-events: none;
}

.btn-submit.loading::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 20px;
  height: 20px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-top-color: var(--white);
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
}

@keyframes spin {
  to {
    transform: translate(-50%, -50%) rotate(360deg);
  }
}

.btn-submit.loading i,
.btn-submit.loading span {
  opacity: 0;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
  .registration-page {
    padding: var(--space-xl) var(--space-md);
  }

  .registration-form {
    padding: clamp(1rem, 3vw, 1.5rem);
  }

  .form-section {
    margin-bottom: var(--space-md);
    padding-bottom: var(--space-md);
  }

  .form-section-title {
    font-size: 1rem;
  }

  .consent-text {
    font-size: 0.8rem;
  }

  .btn-submit {
    width: 100%;
    min-width: unset;
  }
}

/* Small screens adjustments */
@media (max-width: 480px) {
  .registration {
    padding: var(--space-lg) var(--space-sm);
  }

  .form-control {
    padding: 0.7rem 0.9rem;
    font-size: 0.9rem;
  }

  .checkbox-label {
    padding-left: 1.8rem;
  }

  .checkmark {
    height: 20px;
    width: 20px;
  }

  .checkmark::after {
    left: 5px;
    top: 1px;
    width: 5px;
    height: 10px;
  }
}

/* ==========================================================================
   CONTACT SECTION
   ========================================================================== */

/* Contact Section */
.contact {
  background: var(--gradient-hero), url('/images/Banner_background_main.svg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-blend-mode: overlay;
  background-attachment: fixed;
}

.contact-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-2xl);
  align-items: center;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
}

.contact-item {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  background: rgba(255, 255, 255, 0.95); /* Slightly transparent white */
  padding: var(--space-lg);
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-sm);
}

.contact-icon {
  width: 60px;
  height: 60px;
  background: var(--gradient-secondary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: 1.5rem;
  flex-shrink: 0;
}

.contact-details h4 {
  margin-bottom: var(--space-xs);
  color: var(--primary-burgundy);
  font-size: 1.1rem;
}

.contact-details p {
  margin: 0;
  color: var(--gray);
}

.contact-cta {
  background: rgba(255, 255, 255, 0.95); /* Slightly transparent white */
  padding: var(--space-2xl);
  border-radius: var(--border-radius-xl);
  text-align: center;
  box-shadow: var(--shadow-md);
}

.contact-cta h3 {
  color: var(--primary-burgundy);
  margin-bottom: var(--space-md);
}

.contact-cta p {
  color: var(--gray);
  margin-bottom: var(--space-lg);
}

/* ==========================================================================
   Responsive Design - Extended
   ========================================================================== */

@media (max-width: 768px) {
  /* Mobile: Carousel layout (smaller slides) */
  .programs-carousel-wrapper {
    padding: 0 50px; /* Space for arrows */
    margin-top: var(--space-lg);
    padding-top: 25px; /* Extra space for scaled slide on mobile */
    padding-bottom: 25px;
  }
  
  .programs-carousel {
    overflow: hidden;
    padding: 20px 0 40px 0; /* More vertical padding for larger mobile slides */
    touch-action: pan-y; /* Allow vertical scroll, handle horizontal in JS */
  }
  
  .programs-carousel-track {
    display: flex;
    gap: var(--space-md);
    transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    --program-slide-width: 100%; /* Match testimonial cards width */
  }

  .program-slide {
    flex: 0 0 var(--program-slide-width);
    max-width: var(--program-slide-width);
    aspect-ratio: 0.65; /* Make card taller for mobile to fit portrait images */
    opacity: 1; /* Full opacity on mobile - match desktop */
    user-select: none; /* Prevent text selection during swipe */
    -webkit-user-drag: none; /* Prevent image drag on iOS */
    contain: layout style paint; /* Limit repaint scope during swipe */
  }

  .program-slide.active {
    opacity: 1;
    transform: scale(1.15);
  }
  
  .program-flip-front img {
    border-radius: var(--border-radius-lg);
    filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.1));
    pointer-events: none; /* Prevent image drag */
  }
  
  .program-slide.active .program-flip-front img {
    filter: drop-shadow(0 8px 20px rgba(0, 0, 0, 0.2));
  }
  
  .program-flip-back h3 {
    font-size: clamp(1.3rem, 6vw, 1.8rem); /* Significantly increased for taller card */
    margin-top: 8%; /* Increased top margin */
    margin-bottom: 5%; /* Increased bottom margin */
  }
  
  .program-flip-back ul {
    padding: 0;
    margin: 0 auto;
    width: 85%;
    max-width: 85%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    flex-grow: 1;
  }
  
  .program-flip-back li {
    font-size: clamp(1rem, 4.5vw, 1.25rem); /* Significantly increased text size */
    line-height: 1.5;
    padding: 1.5% 0; /* Increased vertical spacing */
    padding-left: 0;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    text-align: left;
    width: 100%;
  }
  
  .program-flip-back li:before {
    position: static;
    margin-right: 0.5em;
    font-size: 0.85em;
  }
  
  .program-btn {
    margin: 5% 8% 8%; /* Increased margins */
    width: calc(100% - 16%); /* Adjusted width */
    font-size: clamp(1rem, 5vw, 1.2rem); /* Larger button text */
    padding: 4% 5%; /* Larger button padding */
  }
  
  /* Show arrows on mobile */
  .carousel-arrow {
    display: flex;
    width: 44px;
    height: 44px;
  }
  
  /* Show carousel indicators on mobile */
  .carousel-indicators {
    display: flex;
  }
  
  .contact-content {
    grid-template-columns: 1fr;
    gap: var(--space-xl);
  }
  
  .contact-item {
    flex-direction: column;
    text-align: center;
    padding: var(--space-md);
  }
  
  /* Instagram Section - Tablet */
  .instagram-title-wrapper {
    gap: var(--space-sm);
  }
  
  .instagram-icon {
    font-size: 2.5rem;
  }
  
  .instagram .section-header h2 {
    font-size: 2rem;
  }
  
  .instagram .section-subtitle {
    font-size: 1.1rem;
  }
  
  .instagram-description {
    font-size: 1rem;
  }
  
  .instagram-carousel-wrapper {
    padding: 0 50px;
  }
  
  .instagram-slide {
    flex: 0 0 calc(50% - var(--space-lg)); /* 2 cards on tablet */
  }
  
  .instagram-arrow {
    width: 44px;
    height: 44px;
  }
  
  .instagram-expand-btn {
    width: 36px;
    height: 36px;
    font-size: 1.1rem;
    bottom: 6px;
  }
  
  .instagram-indicators {
    display: flex;
  }
}

@media (max-width: 480px) {
  .section {
    padding: var(--space-xl) 0;
  }
  
  .section-header {
    margin-bottom: var(--space-xl);
  }
  
  .about-stats {
    grid-template-columns: 1fr;
  }
  
  .stat-item {
    padding: var(--space-md);
  }
  
  .contact-cta {
    padding: var(--space-xl);
  }
  
  /* Instagram Section - Mobile */
  .instagram-title-wrapper {
    flex-direction: column;
    gap: var(--space-xs);
  }
  
  .instagram-icon {
    font-size: 3.5rem; /* Increased from 2rem */
  }
  
  .instagram .section-header h2 {
    font-size: 1.8rem;
    display: block; /* Show on mobile */
  }
  
  .instagram .section-subtitle {
    font-size: 1.1rem; /* Normalized to match testimonials subtitle */
    font-weight: 400;
  }
  
  .instagram-description {
    font-size: 0.95rem;
    display: none; /* Hide on mobile */
  }
  
  .instagram-carousel-wrapper {
    padding: 0 40px;
  }

  .instagram-carousel {
    touch-action: pan-y; /* Allow vertical scroll, handle horizontal in JS */
  }

  .programs-carousel-wrapper {
    padding: 0 40px;
  }

  .carousel-arrow {
    width: 40px;
    height: 40px;
    font-size: 1rem;
  }
  
  .instagram-slide {
    flex: 0 0 100%; /* 1 card on mobile */
    min-width: 100%;
    contain: layout style paint; /* Limit repaint scope during swipe */
  }
  
  .instagram-card {
    margin: 0 auto;
    max-width: 400px;
  }
  
  .instagram-content {
    padding: var(--space-md);
    padding-bottom: calc(var(--space-md) * 1.5);
  }
  
  /* Mobile: scrollable caption without expand button */
  .instagram-caption {
    font-size: 0.9rem;
    display: -webkit-box;
    -webkit-line-clamp: 4; /* Show ellipsis after 4 lines */
    line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden; /* Hide overflow by default (shows ellipsis) */
    max-height: calc(0.9rem * 1.6 * 4); /* 4 lines height */
    padding-bottom: 0; /* No space for button */
    padding-right: 8px; /* Space for potential scrollbar */
    scroll-behavior: smooth;
    transition: overflow 0.2s ease; /* Smooth transition */
    
    /* Scrollbar hidden by default */
    scrollbar-width: none; /* Firefox */
  }
  
  /* Enable scrolling when user interacts (active state) */
  .instagram-caption:active,
  .instagram-caption:focus,
  .instagram-caption.scrolling {
    display: block; /* Switch to block for scrolling */
    -webkit-line-clamp: unset; /* Remove line clamp */
    line-clamp: unset;
    -webkit-box-orient: initial;
    overflow-y: auto; /* Enable scroll */
    overflow-x: hidden;
    scrollbar-width: thin; /* Show thin scrollbar on Firefox */
    scrollbar-color: rgba(255, 255, 255, 0.3) transparent;
  }
  
  /* Webkit scrollbar - hidden by default */
  .instagram-caption::-webkit-scrollbar {
    width: 0;
    display: none;
  }
  
  /* Show scrollbar only when scrolling */
  .instagram-caption:active::-webkit-scrollbar,
  .instagram-caption.scrolling::-webkit-scrollbar {
    width: 4px;
    display: block;
  }
  
  .instagram-caption:active::-webkit-scrollbar-track,
  .instagram-caption.scrolling::-webkit-scrollbar-track {
    background: transparent;
  }
  
  .instagram-caption:active::-webkit-scrollbar-thumb,
  .instagram-caption.scrolling::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.3);
    border-radius: 2px;
  }
  
  .instagram-caption:active::-webkit-scrollbar-thumb:hover,
  .instagram-caption.scrolling::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.5);
  }
  
  /* Hide expand button on mobile */
  .instagram-expand-btn {
    display: none !important;
  }
  
  .instagram-arrow {
    width: 40px;
    height: 40px;
    font-size: 1rem;
  }
  
  .btn-instagram {
    font-size: 1rem;
    padding: var(--space-sm) var(--space-lg);
  }
}

.container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 var(--space-md);
}

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

.mb-sm { margin-bottom: var(--space-sm); }
.mb-md { margin-bottom: var(--space-md); }
.mb-lg { margin-bottom: var(--space-lg); }
.mb-xl { margin-bottom: var(--space-xl); }

.mt-sm { margin-top: var(--space-sm); }
.mt-md { margin-top: var(--space-md); }
.mt-lg { margin-top: var(--space-lg); }
.mt-xl { margin-top: var(--space-xl); }

/* Logo outline loader animation */
.logo-outline-loader { position:absolute; top:50%; left:50%; transform:translate(-50%, -50%) scale(.9); filter: drop-shadow(0 0 20px rgba(243,156,18,0.7)) drop-shadow(0 0 35px rgba(243,156,18,0.5)); }
.logo-outline-loader .logo-outline-track { stroke-dasharray: 8000; stroke-dashoffset: 0; }
.logo-outline-loader .logo-outline-progress { stroke-dasharray: 8000; stroke-dashoffset: 8000; animation: logoOutlineDraw 3.2s ease-in-out forwards, logoOutlinePulse 2.4s ease-in-out 3.2s infinite; }
@keyframes logoOutlineDraw { 0% { stroke-dashoffset: 8000; } 100% { stroke-dashoffset: 0; } }
@keyframes logoOutlinePulse { 0%,100% { filter: drop-shadow(0 0 12px rgba(243,156,18,0.6)) drop-shadow(0 0 25px rgba(243,156,18,0.5)); stroke-width:27.3; } 50% { filter: drop-shadow(0 0 22px rgba(243,156,18,0.85)) drop-shadow(0 0 40px rgba(243,156,18,0.65)); stroke-width:31.5; } }
/* Ensure heartbeat logo sits above stroke */
.logo-container { position:relative; }
.logo-container .logo-heartbeat { position:relative; z-index:2; }
.logo-outline-loader { z-index:1; pointer-events:none; }

/* Legacy grid rules removed - now using 3 independent containers */

/* Social links styling for new container layout */
.social-container .social-links { 
  display: flex; 
  align-items: center; 
  gap: var(--space-sm); 
}

.social-container .social-link { 
  /* Match original dimensions & interactive styling from top bar version */
  color: var(--white);
  font-size: 1.04rem;
  padding: 0;
  width: 40px;
  height: 40px;
  border-radius: var(--border-radius-md);
  transition: all var(--transition-normal);
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Shimmer / scanner effect */
.main-nav-bar .social-on-main .social-link::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.35), transparent);
  transition: left 0.5s ease;
}

.main-nav-bar .social-on-main .social-link:hover::before { left: 100%; }

.main-nav-bar .social-on-main .social-link:hover {
  background: rgba(0,0,0,0.06); /* subtle on white */
  transform: translateY(-2px) scale(1.1);
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

/* Keyboard accessibility */
.main-nav-bar .social-on-main .social-link:focus-visible {
  outline: 2px solid var(--secondary-orange);
  outline-offset: 2px;
}
/* Mobile: Hide social links */
@media (max-width: 768px){ 
  .social-container { display: none; } 
}

/* ==========================================================================
   Testimonials Section (Opinie)
   ========================================================================== */

/* Testimonials Section */
.testimonials {
  background: var(--gradient-hero), url('/images/Banner_background_main.svg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-blend-mode: overlay;
  background-attachment: fixed;
}

.testimonials .section-header h2 {
  color: var(--white);
  font-family: var(--font-joe);
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: var(--space-sm);
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.testimonials .section-subtitle {
  color: var(--white);
  font-size: 1.1rem;
  font-weight: 400;
  font-family: var(--font-primary);
  margin-bottom: var(--space-xl);
  opacity: 0.95;
}

.testimonials .section-subtitle.testimonials-subtitle-sentences {
  white-space: nowrap;
}

/* On small mobile screens, allow subtitle sentences to wrap if too long */
@media (max-width: 480px) {
  .testimonials .section-subtitle.testimonials-subtitle-sentences {
    white-space: normal;
  }
}

/* Ratings Display */
.testimonials-ratings {
  display: flex;
  justify-content: center;
  gap: var(--space-2xl);
  margin-bottom: var(--space-2xl);
  flex-wrap: wrap;
}

.rating-item {
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--border-radius-lg);
  padding: var(--space-lg) var(--space-xl);
  text-align: center;
  min-width: clamp(160px, 35vw, 200px); /* Adaptive min-width */
  transition: all var(--transition-normal);
  box-shadow: var(--shadow-lg);
}

.rating-item:hover {
  transform: translateY(-5px);
  background: rgba(255, 255, 255, 0.2);
  box-shadow: var(--shadow-xl);
}

.rating-logo {
  font-size: 2.5rem;
  margin-bottom: var(--space-sm);
  color: var(--white);
}

.rating-logo .fa-google {
  color: var(--white);
}

.rating-logo .fa-facebook {
  color: var(--white);
}

.rating-stars {
  display: flex;
  justify-content: center;
  gap: 0.25rem;
  margin-bottom: var(--space-sm);
}

.rating-stars i {
  color: var(--secondary-orange);
  font-size: 1.2rem;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
}

.rating-score {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 0.25rem;
}

.rating-count {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.85);
}

/* Testimonials Carousel Wrapper */
.testimonials-carousel-wrapper {
  position: relative;
  max-width: 1400px; /* Increased for 3 cards */
  margin: 0 auto;
  padding: 0 60px; /* Removed top padding */
}

.testimonials-carousel {
  overflow: hidden;
  cursor: grab;
  user-select: none;
  padding-top: 20px; /* Added padding-top for spacing */
}

.testimonials-carousel:active {
  cursor: grabbing;
}

.testimonials-carousel-track {
  display: flex;
  gap: var(--space-md); /* Add gap between cards */
  transition: transform 0.5s ease-in-out;
  will-change: transform;
}

/* Testimonial Slide - 3 cards per view on desktop */
.testimonial-slide {
  flex: 0 0 calc(33.333% - var(--space-md)); /* 3 cards per row */
  padding: 0 calc(var(--space-md) / 2);
  box-sizing: border-box;
  min-width: 280px; /* Minimum width for readability - overridden on mobile */
}

/* Hide cloned slides from screen readers */
.testimonial-slide.clone {
  pointer-events: auto; /* Allow interactions for scroll */
}

/* But disable pointer events on buttons/links in clones (except expand buttons) */
.testimonial-slide.clone a:not(.testimonial-expand-btn),
.testimonial-slide.clone button:not(.testimonial-expand-btn) {
  pointer-events: none;
}

/* Ensure expanded text in clones can scroll */
.testimonial-slide.clone .testimonial-text.expanded {
  pointer-events: auto;
  cursor: auto;
}

/* Ensure expand button in clones is interactive */
.testimonial-slide.clone .testimonial-expand-btn {
  pointer-events: auto;
  cursor: pointer;
}

/* Testimonial Card - Same style as rating cards (Google/Facebook) */
.testimonial-card {
  background: rgba(255, 255, 255, 0.15); /* Semi-transparent white like rating cards */
  backdrop-filter: blur(10px); /* Glassmorphism effect */
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--border-radius-lg); /* Same radius as rating cards */
  padding: var(--space-lg) var(--space-xl); /* Same padding as rating cards */
  box-shadow: var(--shadow-lg); /* Same shadow as rating cards */
  transition: transform var(--transition-normal), opacity var(--transition-normal), box-shadow var(--transition-normal), background var(--transition-normal);
  min-height: clamp(213px, 40vh, 250px);
  display: flex;
  flex-direction: column;
  position: relative;
}

.testimonial-card:hover {
  transform: translateY(-5px); /* Same hover effect as rating cards */
  background: rgba(255, 255, 255, 0.2);
  box-shadow: var(--shadow-xl);
}

/* Header with avatar, name, and Google logo */
.testimonial-author {
  display: flex;
  align-items: flex-start;
  gap: 1.3rem; /* Increased by 30% from var(--space-sm) which is 1rem */
  margin-bottom: var(--space-sm);
  position: relative;
}

.author-avatar {
  width: clamp(44px, 7vw, 48px);
  height: clamp(44px, 7vw, 48px);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.25); /* Semi-transparent white background */
  border: 1px solid rgba(255, 255, 255, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: clamp(1.1rem, 2vw, 1.2rem);
  flex-shrink: 0;
  font-weight: 600;
}

.author-info {
  flex: 1;
}

.author-info h4 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--white); /* White text like rating cards */
  margin: 0 0 0.25rem 0;
  line-height: 1.2;
}

.author-info h4 span {
  display: block; /* Force first and last name onto separate lines */
}

.author-info p {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.85); /* Semi-transparent white like rating count */
  margin: 0;
  line-height: 1.2;
}

/* Google logo positioned top-right */
.testimonial-card::before {
  content: 'G';
  position: absolute;
  top: var(--space-lg);
  right: var(--space-lg);
  width: clamp(20px, 4vw, 24px);
  height: clamp(20px, 4vw, 24px);
  background: rgba(255, 255, 255, 0.9);
  border-radius: clamp(3px, 0.6vw, 4px);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: clamp(0.85rem, 1.8vw, 1rem);
  font-weight: 700;
  color: #4285F4;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

/* Stars below author */
.testimonial-stars {
  display: flex;
  gap: 0.25rem; /* Increased gap like rating cards */
  margin-bottom: var(--space-sm);
  flex-shrink: 0;
}

.testimonial-stars i {
  color: var(--secondary-orange); /* Orange stars like rating cards */
  font-size: 1rem; /* Slightly larger */
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2)); /* Same shadow as rating stars */
}

/* Review text - fixed size with overflow handling */
.testimonial-text {
  font-size: 0.95rem;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.95); /* White text */
  margin: 0;
  font-style: normal;
  font-weight: 400;
  flex: 1; /* Takes remaining space */
  overflow: hidden; /* Hide overflow */
  display: -webkit-box;
  -webkit-line-clamp: 3; /* Limit to 3 lines */
  line-clamp: 3;
  -webkit-box-orient: vertical;
  min-height: calc(3 * 1.5em); /* Ensure consistent height for short text */
  max-height: calc(3 * 1.5em); /* Base height for transition */
  transition: max-height 0.3s ease, padding-right 0.3s ease;
}

/* Collapsing state - smooth animation back to clamped */
.testimonial-text.collapsing {
  display: block;
  -webkit-line-clamp: unset;
  line-clamp: unset;
  overflow: hidden;
  text-overflow: ellipsis;
  padding-right: 0;
  max-height: calc(3 * 1.5em);
}

/* Expanded state for testimonial text */
.testimonial-text.expanded {
  display: block;
  -webkit-line-clamp: unset;
  line-clamp: unset;
  max-height: 150px; /* Approximately 10 lines (1.5 line-height × 0.95rem × 10) */
  overflow-y: auto; /* Enable vertical scroll */
  padding-right: 8px; /* Space for scrollbar */
  
  /* Custom scrollbar styling for better appearance */
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.3) rgba(255, 255, 255, 0.1);
}

/* Webkit scrollbar styling */
.testimonial-text.expanded::-webkit-scrollbar {
  width: 6px;
}

.testimonial-text.expanded::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 3px;
}

.testimonial-text.expanded::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.3);
  border-radius: 3px;
}

.testimonial-text.expanded::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.5);
}

/* Expand button for testimonials */
.testimonial-expand-btn {
  position: absolute;
  bottom: clamp(10px, 1.8vw, 12px);
  right: clamp(10px, 1.8vw, 12px);
  width: clamp(28px, 5vw, 32px);
  height: clamp(28px, 5vw, 32px);
  background: transparent;
  border: none;
  border-radius: 50%;
  color: rgba(255, 255, 255, 0.7);
  font-size: clamp(1rem, 2vw, 1.2rem);
  cursor: pointer;
  z-index: 5;
  transition: all var(--transition-normal);
  display: flex;
  align-items: center;
  justify-content: center;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
  opacity: 0;
  pointer-events: none;
}

/* Show expand button only for cards with long text */
.testimonial-card.has-more-text .testimonial-expand-btn {
  opacity: 1;
  pointer-events: auto;
}

.testimonial-expand-btn:hover {
  color: rgba(255, 255, 255, 0.95);
  background: radial-gradient(circle, rgba(255, 255, 255, 0.15) 0%, rgba(252, 163, 17, 0.1) 50%, transparent 70%);
  filter: drop-shadow(0 0 6px rgba(255, 255, 255, 0.5)) drop-shadow(0 0 10px rgba(252, 163, 17, 0.3));
  transform: scale(1.1);
}

.testimonial-expand-btn:active {
  transform: scale(0.95);
}

/* Rotate arrow when expanded */
.testimonial-card.expanded .testimonial-expand-btn {
  transform: rotate(180deg);
}

.testimonial-card.expanded .testimonial-expand-btn:hover {
  transform: rotate(180deg) scale(1.1);
}

/* Adjust card height when expanded */
.testimonial-card.expanded {
  min-height: clamp(213px, 40vh, 250px);
  transition: all 0.3s ease;
}

/* Carousel Arrows */
.testimonials-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: clamp(40px, 8vw, 50px);
  height: clamp(40px, 8vw, 50px);
  background: transparent;
  border: none;
  border-radius: 50%;
  color: rgba(255, 255, 255, 0.7);
  font-size: clamp(1.5rem, 3vw, 2rem);
  cursor: pointer;
  z-index: 10;
  transition: all var(--transition-normal);
  display: flex;
  align-items: center;
  justify-content: center;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}

.testimonials-arrow:hover {
  color: rgba(255, 255, 255, 0.95);
  background: radial-gradient(circle, rgba(255, 255, 255, 0.15) 0%, rgba(252, 163, 17, 0.1) 50%, transparent 70%);
  filter: drop-shadow(0 0 8px rgba(255, 255, 255, 0.6)) drop-shadow(0 0 12px rgba(252, 163, 17, 0.4));
  transform: translateY(-50%) scale(1.15);
}

.testimonials-arrow:active {
  transform: translateY(-50%) scale(0.95);
  background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, rgba(252, 163, 17, 0.05) 50%, transparent 70%);
  filter: drop-shadow(0 0 6px rgba(255, 255, 255, 0.4));
}

.testimonials-arrow-prev {
  left: 0;
}

.testimonials-arrow-next {
  right: 0;
}

/* Carousel Indicators (horizontal bars) - Hidden on desktop, visible on mobile */
.testimonials-indicators {
  display: none; /* Hidden on desktop by default */
  justify-content: center;
  align-items: center;
  gap: 8px;
  margin-top: 24px;
  padding: 0 16px;
}

.testimonials-dot {
  width: 54px;
  height: 4px;
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.3);
  border: none;
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  padding: 0;
}

.testimonials-dot:hover {
  background: rgba(255, 255, 255, 0.5);
}

.testimonials-dot.active {
  background: var(--secondary-orange);
  width: 58px; /* Elongated active bar */
  box-shadow: 0 0 10px rgba(255, 102, 0, 0.5);
}

/* Responsive Design - Testimonials */
@media (max-width: 1024px) {
  .testimonials-carousel-wrapper {
    max-width: 900px;
  }
  
  .testimonial-slide {
    flex: 0 0 calc(50% - var(--space-md)); /* 2 cards on tablets */
    min-width: 250px;
  }
  
  .testimonial-card {
    height: 250px; /* Fixed height on tablets - increased by 25% (was 200px) */
    padding: var(--space-md);
  }
  
  /* Expanded card on tablets */
  .testimonial-card.expanded {
    max-height: 360px; /* Limit maximum height on tablets */
  }
  
  /* Adjust expanded text max-height for tablets */
  .testimonial-text.expanded {
    max-height: 140px;
  }
}

@media (max-width: 768px) {
  .testimonials .section-header h2 {
    font-size: 2rem;
  }

  .testimonials .section-subtitle {
    font-size: 1.1rem;
  }

  .testimonials-ratings {
    gap: var(--space-lg);
  }

  /* Rating item now uses adaptive sizing from base styles */

  .rating-logo {
    font-size: 2rem;
  }

  .rating-score {
    font-size: 1.3rem;
  }

  .testimonials-carousel-wrapper {
    padding: 0 50px; /* Space for arrows */
  }

  .testimonials-carousel {
    touch-action: pan-y; /* Allow vertical scroll, handle horizontal in JS */
  }
  
  .testimonial-slide {
    flex: 0 0 100%; /* 1 card on mobile */
    min-width: 100%; /* Override desktop min-width */
    padding: 0;
    contain: layout style paint; /* Limit repaint scope during swipe */
  }

  .testimonial-card {
    margin: 0 auto;
    max-width: 400px;
  }
  
  /* Show arrows on mobile */
  .testimonials-arrow {
    display: flex;
    width: 44px;
    height: 44px;
  }
  
  .testimonials-indicators {
    display: flex;
  }

  .testimonial-text {
    font-size: 0.9rem;
    /* Mobile: scrollable text without expand button */
    display: -webkit-box;
    -webkit-line-clamp: 4; /* Show ellipsis after 4 lines */
    line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden; /* Hide overflow by default */
    max-height: calc(0.9rem * 1.5 * 4); /* 4 lines height */
    padding-right: 8px; /* Space for scrollbar */
    scroll-behavior: smooth;
    transition: overflow 0.2s ease;
    scrollbar-width: none; /* Firefox */
  }
  
  /* Enable scrolling when user interacts */
  .testimonial-text:active,
  .testimonial-text:focus,
  .testimonial-text.scrolling {
    display: block;
    -webkit-line-clamp: unset;
    line-clamp: unset;
    -webkit-box-orient: initial;
    overflow-y: auto;
    overflow-x: hidden;
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, 0.3) transparent;
    max-height: 140px; /* Keep max-height constraint */
  }

  /* Webkit scrollbar - hidden by default */
  .testimonial-text::-webkit-scrollbar {
    width: 0;
    display: none;
  }

  /* Show scrollbar only when scrolling */
  .testimonial-text:active::-webkit-scrollbar,
  .testimonial-text.scrolling::-webkit-scrollbar {
    width: 4px;
    display: block;
  }

  .testimonial-text:active::-webkit-scrollbar-track,
  .testimonial-text.scrolling::-webkit-scrollbar-track {
    background: transparent;
  }

  .testimonial-text:active::-webkit-scrollbar-thumb,
  .testimonial-text.scrolling::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.3);
    border-radius: 2px;
  }
  
  /* Hide expand button on mobile */
  .testimonial-expand-btn {
    display: none !important;
  }
  
  /* Expand button and other elements now use adaptive sizing from base styles */
  
  /* Adjust expanded text max-height for mobile */
  .testimonial-text.expanded {
    max-height: clamp(120px, 25vh, 140px); /* Adaptive max-height */
  }

  /* Author elements now use adaptive sizing from base styles */

  .author-info h4 {
    font-size: 0.95rem;
  }

  .author-info p {
    font-size: 0.8rem;
  }
}

@media (max-width: 480px) {
  .testimonials .section-header h2 {
    font-size: 1.75rem;
  }

  .testimonials .section-subtitle {
    font-size: 1.1rem;
  }

  .testimonials-ratings {
    flex-direction: column;
    gap: var(--space-md);
    align-items: center;
  }

  /* Rating item width now handled by adaptive min-width */

  .testimonials-carousel-wrapper {
    padding: 0 40px;
  }

  .testimonials-arrow {
    width: 40px;
    height: 40px;
    font-size: 1rem;
  }

  .testimonial-slide {
    padding: 0;
  }

  .testimonial-card {
    padding: var(--space-md);
    height: 213px; /* Fixed height on small mobile - increased by 25% (was 170px) */
  }

  .testimonial-text {
    font-size: 0.85rem;
    line-height: 1.4;
    -webkit-line-clamp: 2; /* Limit to 2 lines on small screens */
    line-clamp: 2;
  }
  
  /* Smaller expand button for very small screens */
  .testimonial-expand-btn {
    width: 26px;
    height: 26px;
    font-size: 0.9rem;
    bottom: 8px;
    right: 8px;
  }
  
  /* Expanded card on small mobile */
  .testimonial-card.expanded {
    max-height: 320px; /* Limit maximum height on small mobile */
    min-height: 213px;
  }
  
  /* Adjust expanded text max-height for small mobile */
  .testimonial-text.expanded {
    max-height: 110px; /* Smaller on small screens */
  }
  
  .author-avatar {
    width: 40px;
    height: 40px;
    font-size: 1rem;
  }
  
  .testimonial-card::before {
    width: 18px;
    height: 18px;
    font-size: 0.75rem;
  }
}

/* Very small devices - rely on swipe */
@media (max-width: 375px) {
  .testimonials-carousel-wrapper {
    padding: 0 35px;
  }

  .testimonial-card {
    height: 213px; /* Fixed height for very small screens - increased by 25% (was 170px) */
  }
  
  /* Instagram - Very small mobile */
  .instagram-carousel-wrapper {
    padding: 0 35px;
  }
  
  .instagram-arrow {
    width: 36px;
    height: 36px;
    font-size: 0.9rem;
  }
  
  .instagram-content {
    padding: var(--space-sm);
    padding-bottom: calc(var(--space-sm) * 1.5);
  }
  
  .btn-instagram {
    font-size: 0.95rem;
    padding: var(--space-sm) var(--space-md);
  }
}

/* ==========================================================================
   FAQ Section
   ========================================================================== */
.faq {
    background: var(--gradient-hero), url('/images/Banner_background_main.svg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-blend-mode: overlay;
    background-attachment: fixed;
    padding: 5rem 0;
}

.faq .section-header h2 {
    color: var(--white);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.faq .section-subtitle {
    color: var(--white);
    opacity: 0.95;
}

.faq-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 1rem;
}

.faq-item {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--border-radius-lg);
    margin-bottom: 1rem;
    box-shadow: var(--shadow-lg);
    overflow: hidden;
    transition: all var(--transition-normal);
}

.faq-item:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.2);
    box-shadow: var(--shadow-xl);
}

.faq-header {
    padding: 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    background-color: transparent;
    transition: background-color 0.3s ease;
}

.faq-header:hover {
    background-color: rgba(255, 255, 255, 0.05);
}

.faq-header h3 {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--white);
    font-family: var(--font-heading);
}

.faq-icon {
    color: var(--white);
    transition: transform 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
}

.faq-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
    background-color: transparent;
}

.faq-content p {
    padding: 0 1.5rem 1.5rem 1.5rem;
    margin: 0;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.6;
}

/* Active State */
.faq-item.active .faq-icon {
    transform: rotate(180deg);
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .faq-header {
        padding: 1.25rem;
    }
    
    .faq-header h3 {
        font-size: 1rem;
        padding-right: 1rem;
    }
    
    .faq-content p {
        padding: 0 1.25rem 1.25rem 1.25rem;
    }
}

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
    background: var(--gradient-hero), url('/images/Banner_background_main.svg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-blend-mode: overlay;
    background-attachment: fixed;
    color: var(--white);
    padding: var(--space-xl) 0 var(--space-lg);
    position: relative;
    overflow: hidden;
}

/* Add a subtle pattern or gradient overlay if desired */
.site-footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0,0,0,0.2), rgba(0,0,0,0.4));
    pointer-events: none;
}

.footer-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 var(--space-md);
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-lg);
}

/* Footer Logo */
.footer-logo img {
    height: 80px;
    width: auto;
    filter: drop-shadow(0 4px 6px rgba(0,0,0,0.3));
    transition: transform var(--transition-normal);
}

.footer-logo a:hover img {
    transform: scale(1.05);
}

/* Footer Navigation */
.footer-nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: var(--space-lg);
}

.footer-nav a {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    font-family: var(--font-joe);
    font-weight: 500;
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all var(--transition-normal);
    position: relative;
}

.footer-nav a:hover {
    color: rgba(255, 255, 255, 1);
    text-shadow: 0 0 12px rgba(255, 255, 255, 0.8), 0 0 20px rgba(252, 163, 17, 0.6);
}

/* Footer Bottom Section */
.footer-bottom {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-md);
    width: 100%;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: var(--space-lg);
    margin-top: 0;
}

/* Social Icons */
.footer-social {
    display: flex;
    gap: var(--space-md);
}

.footer-social a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: var(--white);
    font-size: 1.2rem;
    transition: all var(--transition-normal);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.footer-social a:hover {
    background: var(--secondary-orange);
    color: var(--white);
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(243, 156, 18, 0.4);
    border-color: var(--secondary-orange);
}

/* Legal & Copyright */
.footer-legal-wrapper {
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: var(--space-xs);
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9rem;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: var(--space-sm);
    align-items: center;
    flex-wrap: wrap;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    transition: color var(--transition-normal);
}

.footer-links a:hover {
    color: rgba(255, 255, 255, 0.6);
}

.separator {
    color: rgba(255, 255, 255, 0.3);
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .site-footer {
        padding: var(--space-lg) 0;
    }

    .footer-logo img {
        height: 60px;
    }

    .footer-nav ul {
        flex-direction: column;
        align-items: center;
        gap: var(--space-md);
    }

    .footer-bottom {
        gap: var(--space-sm);
        padding-top: var(--space-md);
    }

    .footer-links {
        flex-direction: column;
        align-items: center;
        gap: 0.3rem;
    }
}

/* ==========================================================================
   Locations Page Styles
   ========================================================================== */

/* Locations Page - Main Container */
.locations-page {
  min-height: 100vh;
  padding: var(--space-2xl) var(--space-md);
  background: var(--gradient-hero), url('/images/Banner_background_main.svg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-blend-mode: overlay;
  background-attachment: fixed;
  color: var(--white);
}

.locations-page .section-header {
  margin-bottom: var(--space-2xl);
}

.locations-page .section-header h1 {
  font-family: var(--font-hero);
  font-size: clamp(2rem, 5vw, 3rem);
  color: var(--white);
  margin-bottom: var(--space-sm);
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.locations-page .section-subtitle {
  color: rgba(255, 255, 255, 0.9);
  font-size: 1.1rem;
}

/* Locations Map */
.locations-map {
  max-width: 600px;
  margin: 0 auto var(--space-2xl);
  animation: fadeInUp 0.6s ease-out backwards;
  animation-delay: 0.1s;
}

.locations-map-wrap {
  position: relative;
  width: 100%;
  container-type: inline-size;
}

.locations-map-image {
  width: 100%;
  height: auto;
  display: block;
}

.map-marker {
  position: absolute;
  left: var(--x);
  top: var(--y);
  transform: translate(-50%, -50%);
  width: clamp(2.25rem, 6vw, 3rem);
  height: clamp(2.25rem, 6vw, 3rem);
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  touch-action: manipulation;
  z-index: 1;
}

@supports (width: 1cqw) {
  .map-marker {
    width: clamp(2.25rem, 7cqw, 3rem);
    height: clamp(2.25rem, 7cqw, 3rem);
  }
}

.map-marker:hover,
.map-marker:focus-visible,
.map-marker.is-open {
  z-index: 10;
}

.map-marker.is-highlighted {
  z-index: 10;
}

.map-marker img {
  width: 100%;
  height: 100%;
  display: block;
  filter:
    drop-shadow(0 0 0.6rem rgba(243, 156, 18, 0.75))
    drop-shadow(0 0.25rem 0.7rem rgba(0, 0, 0, 0.35));
  transform-origin: center;
  animation: mapMarkerPulse 2.2s ease-in-out infinite;
}

.map-marker:hover img,
.map-marker:focus-visible img,
.map-marker.is-highlighted img {
  transform: scale(1.08);
  filter:
    drop-shadow(0 0 0.85rem rgba(243, 156, 18, 0.9))
    drop-shadow(0 0.3rem 0.9rem rgba(0, 0, 0, 0.45));
}

.map-marker-tooltip {
  position: absolute;
  left: 50%;
  top: calc(100% + 0.5rem);
  transform: translateX(-50%) translateY(-0.35rem);
  opacity: 0;
  pointer-events: none;
  white-space: nowrap;
  font-family: var(--font-primary);
  font-size: clamp(0.85rem, 2.5vw, 0.95rem);
  color: var(--white);
  background: rgba(114, 47, 55, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--border-radius-md);
  padding: 0.45rem 0.65rem;
  box-shadow: 0 0.6rem 1.5rem rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: opacity var(--transition-normal), transform var(--transition-normal);
  z-index: 11;
}

.map-marker-tooltip::after {
  content: "";
  position: absolute;
  top: -0.4rem;
  left: 50%;
  transform: translateX(-50%);
  border-left: 0.4rem solid transparent;
  border-right: 0.4rem solid transparent;
  border-bottom: 0.4rem solid rgba(114, 47, 55, 0.92);
}

.map-marker:hover .map-marker-tooltip,
.map-marker:focus-visible .map-marker-tooltip,
.map-marker.is-open .map-marker-tooltip,
.map-marker.is-highlighted .map-marker-tooltip {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.map-marker--tooltip-top .map-marker-tooltip {
  top: auto;
  bottom: calc(100% + 0.5rem);
  transform: translateX(-50%) translateY(0.35rem);
}

.map-marker--tooltip-top:hover .map-marker-tooltip,
.map-marker--tooltip-top:focus-visible .map-marker-tooltip,
.map-marker--tooltip-top.is-open .map-marker-tooltip,
.map-marker--tooltip-top.is-highlighted .map-marker-tooltip {
  transform: translateX(-50%) translateY(0);
}

.map-marker--tooltip-top .map-marker-tooltip::after {
  top: auto;
  bottom: -0.4rem;
  border-bottom: 0;
  border-top: 0.4rem solid rgba(114, 47, 55, 0.92);
}

@keyframes mapMarkerPulse {
  0%,
  100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.08);
  }
}

/* Locations Grid */
.locations-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-md);
  max-width: 900px;
  margin: 0 auto var(--space-2xl);
  animation: fadeInUp 0.6s ease-out backwards;
  animation-delay: 0.2s;
}

.location-card {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--border-radius-md);
  padding: clamp(1rem, 2.5vw, 1.5rem);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.location-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(243, 156, 18, 0.3);
  border-color: rgba(243, 156, 18, 0.5);
}

.location-icon {
  width: 60px;
  height: 60px;
  margin: 0 auto var(--space-sm);
  background: rgba(243, 156, 18, 0.3);
  border: 2px solid rgba(243, 156, 18, 0.6);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  text-shadow: 0 0 4px rgba(243, 156, 18, 0.6),
               0 1px 2px rgba(0, 0, 0, 0.4);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2),
              0 0 12px rgba(243, 156, 18, 0.4),
              inset 0 0 8px rgba(243, 156, 18, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.location-card:hover .location-icon {
  transform: scale(1.1) rotate(5deg);
  border-color: rgba(243, 156, 18, 0.9);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.25),
              0 0 20px rgba(243, 156, 18, 0.6),
              inset 0 0 12px rgba(243, 156, 18, 0.3);
}

.location-card h3 {
  font-family: var(--font-heading);
  font-size: clamp(1rem, 2vw, 1.2rem);
  color: var(--white);
  margin: 0 0 var(--space-xs);
  font-weight: 600;
}

.location-address {
  font-size: clamp(0.85rem, 1.8vw, 0.95rem);
  color: rgba(255, 255, 255, 0.85);
  margin: 0;
  line-height: 1.5;
}

/* Mobile Responsive */
@media (max-width: 768px) {
  .locations-page {
    padding: clamp(2rem, 6vw, 3rem) clamp(1rem, 3vw, 1.5rem);
  }

  .map-marker {
    width: clamp(2rem, 7vw, 2.75rem);
    height: clamp(2rem, 7vw, 2.75rem);
  }

  @supports (width: 1cqw) {
    .map-marker {
      width: clamp(2rem, 8cqw, 2.75rem);
      height: clamp(2rem, 8cqw, 2.75rem);
    }
  }

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

@media (max-width: 480px) {
  .location-icon {
    width: 50px;
    height: 50px;
    font-size: 1.2rem;
  }
}

/* ==========================================================================
   Contact Page Styles
   ========================================================================== */

.contact-page {
  min-height: 100vh;
  padding: var(--space-2xl) var(--space-md);
  background: var(--gradient-hero), url('/images/Banner_background_main.svg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-blend-mode: overlay;
  background-attachment: fixed;
  color: var(--white);
}

.contact-page .section-header {
  margin-bottom: var(--space-2xl);
}

.contact-page .section-header h1 {
  font-family: var(--font-hero);
  font-size: clamp(2rem, 5vw, 3rem);
  color: var(--white);
  margin-bottom: var(--space-sm);
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.contact-page .section-subtitle {
  color: rgba(255, 255, 255, 0.9);
  font-size: 1.1rem;
}

.contact-page-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-lg);
  max-width: 1000px;
  margin: 0 auto;
}

@media (min-width: 900px) {
  .contact-page-grid {
    grid-template-columns: 1.2fr 0.8fr;
    gap: var(--space-xl);
    align-items: start;
  }
}

.contact-page-card {
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--border-radius-lg);
  padding: clamp(1.25rem, 3.5vw, 2.25rem);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
  animation: fadeInUp 0.6s ease-out backwards;
}

.contact-page-form {
  animation-delay: 0.1s;
}

.contact-page-details {
  animation-delay: 0.2s;
}

.contact-page-card-title {
  font-family: var(--font-heading);
  font-size: clamp(1.2rem, 3vw, 1.5rem);
  font-weight: 700;
  color: var(--white);
  margin: 0 0 var(--space-md);
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

.contact-page-card-title i,
.contact-page-card-title .contact-page-title-icon {
  color: var(--secondary-orange);
  font-size: 1.2em;
  text-shadow: 0 0 4px rgba(243, 156, 18, 0.6),
               0 1px 2px rgba(0, 0, 0, 0.4);
}

.contact-page-form-fields .form-group {
  margin-bottom: var(--space-md);
}

.contact-page-form-fields .form-control {
  width: 100%;
}

.contact-page-honeypot {
  position: absolute;
  left: -10000px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.contact-page-details-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.contact-page-details-item {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  text-decoration: none;
  color: rgba(255, 255, 255, 0.92);
  padding: clamp(0.85rem, 2.5vw, 1rem);
  border-radius: var(--border-radius-md);
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: rgba(255, 255, 255, 0.08);
  transition: transform var(--transition-normal), border-color var(--transition-normal), box-shadow var(--transition-normal);
}

.contact-page-details-item:hover {
  transform: translateY(-2px);
  border-color: rgba(243, 156, 18, 0.55);
  box-shadow: 0 8px 25px rgba(243, 156, 18, 0.25);
  color: rgba(255, 255, 255, 0.92);
}

.contact-page-details-item:visited,
.contact-page-details-item:active {
  color: rgba(255, 255, 255, 0.92);
}

.contact-page-details-item:focus-visible {
  outline: 2px solid var(--secondary-orange);
  outline-offset: 3px;
}

.contact-page-details-icon {
  width: 44px;
  height: 44px;
  flex: 0 0 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(243, 156, 18, 0.3);
  border: 2px solid rgba(243, 156, 18, 0.6);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2),
              0 0 12px rgba(243, 156, 18, 0.35),
              inset 0 0 8px rgba(243, 156, 18, 0.18);
}

.contact-page-details-text {
  font-family: var(--font-primary);
  font-size: clamp(0.95rem, 2.4vw, 1.05rem);
  font-weight: 600;
  letter-spacing: 0.01em;
}

.contact-page-form .btn-submit,
.contact-page-form .btn-submit:hover,
.contact-page-form .btn-submit:active,
.contact-page-form .btn-submit:focus {
  background: var(--gradient-primary);
  color: var(--white);
}

.contact-page-form .btn-submit:active {
  transform: none;
  filter: none;
}

@media (max-width: 768px) {
  .contact-page {
    padding: clamp(2rem, 6vw, 3rem) clamp(1rem, 3vw, 1.5rem);
  }
}

/* ==========================================================================
   Shop Coming Soon Page
   ========================================================================== */

.shop-coming-soon {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: linear-gradient(135deg, 
    var(--primary-burgundy-dark) 0%, 
    var(--primary-burgundy) 40%, 
    var(--secondary-orange-dark) 100%);
  padding: clamp(3rem, 8vw, 6rem) clamp(1rem, 3vw, 2rem);
}

/* Background & Particles */
.shop-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}

.shop-particles {
  position: absolute;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.particle {
  position: absolute;
  width: clamp(2px, 0.5vw, 4px);
  height: clamp(2px, 0.5vw, 4px);
  background: rgba(255, 255, 255, 0.6);
  border-radius: 50%;
  animation: float-particle 10s infinite ease-in-out;
  box-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
}

/* Generate random positions for particles */
.particle:nth-child(1) { left: 10%; top: 20%; animation-delay: 0s; animation-duration: 8s; }
.particle:nth-child(2) { left: 20%; top: 80%; animation-delay: 1s; animation-duration: 10s; }
.particle:nth-child(3) { left: 30%; top: 40%; animation-delay: 2s; animation-duration: 12s; }
.particle:nth-child(4) { left: 40%; top: 60%; animation-delay: 0.5s; animation-duration: 9s; }
.particle:nth-child(5) { left: 50%; top: 30%; animation-delay: 1.5s; animation-duration: 11s; }
.particle:nth-child(6) { left: 60%; top: 70%; animation-delay: 2.5s; animation-duration: 8.5s; }
.particle:nth-child(7) { left: 70%; top: 50%; animation-delay: 0.8s; animation-duration: 10.5s; }
.particle:nth-child(8) { left: 80%; top: 25%; animation-delay: 1.8s; animation-duration: 9.5s; }
.particle:nth-child(9) { left: 90%; top: 85%; animation-delay: 2.2s; animation-duration: 11.5s; }
.particle:nth-child(10) { left: 15%; top: 55%; animation-delay: 1.2s; animation-duration: 10.2s; }
.particle:nth-child(11) { left: 25%; top: 15%; animation-delay: 0.3s; animation-duration: 9.8s; }
.particle:nth-child(12) { left: 35%; top: 75%; animation-delay: 1.7s; animation-duration: 11.2s; }
.particle:nth-child(13) { left: 45%; top: 45%; animation-delay: 2.3s; animation-duration: 8.8s; }
.particle:nth-child(14) { left: 55%; top: 65%; animation-delay: 0.7s; animation-duration: 10.8s; }
.particle:nth-child(15) { left: 65%; top: 35%; animation-delay: 1.3s; animation-duration: 9.3s; }
.particle:nth-child(16) { left: 75%; top: 90%; animation-delay: 2.8s; animation-duration: 11.8s; }
.particle:nth-child(17) { left: 85%; top: 10%; animation-delay: 0.2s; animation-duration: 10.3s; }
.particle:nth-child(18) { left: 5%; top: 50%; animation-delay: 1.9s; animation-duration: 9.2s; }
.particle:nth-child(19) { left: 95%; top: 40%; animation-delay: 2.6s; animation-duration: 11.3s; }
.particle:nth-child(20) { left: 50%; top: 10%; animation-delay: 0.9s; animation-duration: 10.9s; }

@keyframes float-particle {
  0%, 100% {
    transform: translateY(0) scale(1);
    opacity: 0.6;
  }
  50% {
    transform: translateY(-30px) scale(1.2);
    opacity: 1;
  }
}

.shop-coming-soon .container {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

.shop-content {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 900px;
  width: 100%;
}

/* Badge */
.shop-badge {
  display: inline-flex;
  align-items: center;
  gap: clamp(0.4rem, 1.2vw, 0.6rem);
  padding: clamp(0.5rem, 1.5vw, 0.75rem) clamp(1rem, 3vw, 1.5rem);
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(10px);
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: 50px;
  margin-bottom: clamp(1.5rem, 4vw, 2.5rem);
}

.badge-icon {
  font-size: clamp(1.2rem, 3vw, 1.5rem);
}

.badge-text {
  font-family: var(--font-heading);
  font-size: clamp(0.9rem, 2.2vw, 1.1rem);
  font-weight: 600;
  color: var(--white);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

/* Title */
.shop-title {
  font-family: var(--font-hero);
  font-size: clamp(3rem, 10vw, 6rem);
  font-weight: 700;
  line-height: 1.1;
  margin-bottom: clamp(1.5rem, 4vw, 2.5rem);
  display: flex;
  flex-direction: column;
  gap: clamp(0.3rem, 1vw, 0.5rem);
}

.title-line {
  display: block;
  color: var(--white);
  text-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.title-line--gradient {
  background: linear-gradient(135deg, #FFD700 0%, #FFA500 50%, #FF6B35 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  filter: drop-shadow(0 4px 20px rgba(255, 215, 0, 0.4));
}

/* Description */
.shop-description {
  font-family: var(--font-primary);
  font-size: clamp(1rem, 2.8vw, 1.3rem);
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.95);
  max-width: 750px;
  margin: 0 auto;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

/* Mobile Optimizations */
@media (max-width: 768px) {
  .shop-coming-soon {
    padding: clamp(2rem, 6vw, 3rem) clamp(1rem, 3vw, 1.5rem);
  }
  
  .shop-title {
    font-size: clamp(2.5rem, 12vw, 4rem);
  }
  
  .shop-description {
    font-size: clamp(0.95rem, 3.5vw, 1.15rem);
  }
}

/* Small Devices (≤375px) */
@media (max-width: 375px) {
  .shop-title {
    font-size: clamp(2rem, 10vw, 2.8rem);
  }
}

/* ==========================================================================
   Documents Page
   ========================================================================== */

.documents-page {
  min-height: 100vh;
  padding: var(--space-2xl) var(--space-md);
  background: var(--gradient-hero), url(/images/Banner_background_main.svg);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-blend-mode: overlay;
  background-attachment: fixed;
  color: var(--white);
  display: flex;
  flex-direction: column;
}

.documents-page .container {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
}

.documents-page .section-header {
  margin-bottom: var(--space-2xl);
}

.documents-page .section-header h1 {
  font-family: var(--font-hero);
  font-size: clamp(2rem, 5vw, 3rem);
  color: var(--white);
  margin-bottom: var(--space-sm);
  text-align: center;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.documents-page .section-subtitle {
  color: rgba(255, 255, 255, 0.9);
  font-size: 1.1rem;
  text-align: center;
}

.documents-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--space-lg);
  max-width: 1200px;
  margin: 0 auto;
  padding: var(--space-md);
  animation: fadeInUp 0.6s ease-out backwards;
  animation-delay: 0.2s;
}

.document-card {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--border-radius-lg);
  padding: var(--space-xl) var(--space-lg);
  width: 100%;
  min-width: 0;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: all 0.3s ease;
}

.document-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.2);
  border-color: rgba(243, 156, 18, 0.5);
  background: rgba(255, 255, 255, 0.15);
}

.document-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto var(--space-md);
  background: rgba(243, 156, 18, 0.2);
  border: 2px solid rgba(243, 156, 18, 0.6);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.2rem;
  box-shadow: 0 4px 15px rgba(243, 156, 18, 0.3);
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.document-card:hover .document-icon {
  transform: scale(1.1) rotate(5deg);
  background: rgba(243, 156, 18, 0.3);
  border-color: var(--secondary-orange);
  box-shadow: 0 0 25px rgba(243, 156, 18, 0.6);
}

.document-card h3 {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  color: var(--white);
  margin-bottom: var(--space-xs);
}

/* Document Card Link - clickable area for opening in new tab */
.document-card-link {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-decoration: none;
  cursor: pointer;
  width: 100%;
}

.document-card-link:hover .document-icon {
  transform: scale(1.1) rotate(5deg);
  background: rgba(243, 156, 18, 0.3);
  border-color: var(--secondary-orange);
  box-shadow: 0 0 25px rgba(243, 156, 18, 0.6);
}

.document-card-link h3 {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  color: var(--white);
  margin-bottom: var(--space-xs);
  transition: color var(--transition-fast);
}

.document-card-link:hover h3 {
  color: var(--secondary-orange-light);
}

.document-desc {
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: var(--space-lg);
}

.document-actions {
  margin-top: auto;
  width: 100%;
}

.document-actions .btn {
  width: 100%;
  justify-content: center;
}

/* Mobile Responsive for Documents */
@media (max-width: 768px) {
  .documents-grid {
    grid-template-columns: minmax(0, 1fr);
    max-width: 400px;
  }
}

/* RU localization: keep long document titles inside card bounds on small phones */
@media (max-width: 429px) {
  html[lang="ru"] .documents-page .document-card-link h3 {
    font-size: clamp(1.1rem, 5.6vw, 1.3rem);
    line-height: 1.2;
    overflow-wrap: anywhere;
    hyphens: auto;
  }
}
/* ==========================================================================
   Partnership Page
   ========================================================================== */

.partnership-page {
  min-height: 100vh;
  padding: var(--space-2xl) var(--space-md);
  background: var(--gradient-hero), url('/images/Banner_background_main.svg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-blend-mode: overlay;
  background-attachment: fixed;
  color: var(--white);
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  box-sizing: border-box;
  overflow-x: hidden;
}

.partnership-page .container {
  width: 100%;
  max-width: 100%;
  padding: 0 var(--space-md);
  box-sizing: border-box;
}

.partnership-page .section-header {
  margin-bottom: var(--space-2xl);
}

.partnership-page .section-header h1 {
  font-family: var(--font-hero);
  font-size: clamp(2rem, 5vw, 3rem);
  color: var(--white);
  margin-bottom: var(--space-sm);
  text-align: center;
  overflow-wrap: anywhere;
  word-break: break-word;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.partnership-page .section-subtitle {
  color: rgba(255, 255, 255, 0.9);
  font-size: 1.1rem;
  text-align: center;
}

.partnership-content {
  width: 100%;
  max-width: 800px;
  margin: 0 auto;
  padding: 0;
  box-sizing: border-box;
  animation: fadeInUp 0.6s ease-out backwards;
  animation-delay: 0.2s;
}

@media (max-width: 768px) {
  .partnership-page {
    padding: var(--space-xl) var(--space-sm);
  }
  
  .partnership-page .container {
    padding: 0 var(--space-xs);
  }
  
  .partnership-content {
    max-width: 100%;
  }
  
  .partnership-card {
    padding: var(--space-lg) var(--space-md);
  }
}

.partnership-card {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--border-radius-lg);
  padding: var(--space-xl);
  text-align: center;
}

.partnership-icon {
  width: 100px;
  height: 100px;
  margin: 0 auto var(--space-lg);
  background: rgba(243, 156, 18, 0.2);
  border: 2px solid rgba(243, 156, 18, 0.6);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  box-shadow: 0 4px 15px rgba(243, 156, 18, 0.3);
}

.partnership-card h2 {
  font-family: var(--font-heading);
  font-size: clamp(1.5rem, 4vw, 2rem);
  color: var(--white);
  margin-bottom: var(--space-md);
  overflow-wrap: anywhere;
  word-break: break-word;
}

.partnership-description {
  font-size: clamp(1rem, 2.5vw, 1.1rem);
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: var(--space-xl);
  line-height: 1.7;
}

.partnership-benefits {
  text-align: left;
  margin-bottom: var(--space-xl);
  padding: var(--space-lg);
  background: rgba(255, 255, 255, 0.05);
  border-radius: var(--border-radius-md);
}

.partnership-benefits h3 {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  color: var(--secondary-orange-light);
  margin-bottom: var(--space-md);
  text-align: center;
}

.partnership-benefits ul {
  list-style: none;
}

.partnership-benefits li {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  padding: var(--space-sm) 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--white);
  font-size: clamp(0.95rem, 2vw, 1.05rem);
}

.partnership-benefits li span:last-child {
  min-width: 0;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.partnership-benefits li:last-child {
  border-bottom: none;
}

.benefit-icon {
  font-size: 1.5rem;
  min-width: 40px;
  text-align: center;
}

.partnership-cta {
  margin-top: var(--space-lg);
}

.partnership-cta p {
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: var(--space-md);
  font-size: 1.1rem;
}

/* ==========================================================================
   Cookie Consent Banner (GDPR)
   ========================================================================== */

.cookie-consent {
  position: fixed;
  bottom: var(--space-md);
  left: 50%;
  transform: translateX(-50%) translateY(calc(100% + var(--space-md) + 20px));
  z-index: 10000;
  width: min(94%, 820px);
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(20px) saturate(1.4);
  -webkit-backdrop-filter: blur(20px) saturate(1.4);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--border-radius-lg);
  padding: var(--space-lg) var(--space-xl);
  box-shadow:
    0 8px 32px rgba(0, 0, 0, 0.25),
    inset 0 1px 0 rgba(255, 255, 255, 0.15);
  transition: transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1),
              opacity 0.4s ease;
  opacity: 0;
}

.cookie-consent.is-visible {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}

.cookie-consent__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-lg);
}

.cookie-consent__text {
  color: rgba(255, 255, 255, 0.92);
  font-size: clamp(0.85rem, 2vw, 0.95rem);
  line-height: 1.6;
  margin: 0;
  flex: 1;
}

.cookie-consent__link {
  color: var(--secondary-orange-light);
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color var(--transition-fast);
  font-weight: 500;
  white-space: nowrap;
}

.cookie-consent__link:hover {
  color: var(--secondary-orange);
}

.cookie-consent__btn {
  white-space: nowrap;
  flex-shrink: 0;
  min-width: 130px;
  padding: var(--space-sm) var(--space-xl);
  font-size: clamp(0.85rem, 2vw, 0.95rem);
  border-radius: var(--border-radius-md);
  font-weight: 600;
  letter-spacing: 0.02em;
  transition: all var(--transition-normal);
  cursor: pointer;
}

.cookie-consent__actions {
  display: flex;
  gap: var(--space-sm);
  flex-shrink: 0;
}

.cookie-consent__btn--accept {
  box-shadow: 0 4px 15px rgba(243, 156, 18, 0.3);
}

.cookie-consent__btn--accept:hover {
  box-shadow: 0 6px 20px rgba(243, 156, 18, 0.5);
  transform: translateY(-2px);
}

.cookie-consent__btn--decline {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: rgba(255, 255, 255, 0.8);
}

.cookie-consent__btn--decline:hover {
  background: rgba(255, 255, 255, 0.18);
  border-color: rgba(255, 255, 255, 0.4);
  color: var(--white);
  transform: translateY(-2px);
}

/* Mobile: stack vertically */
@media (max-width: 480px) {
  .cookie-consent {
    width: calc(100% - var(--space-md) * 2);
    padding: var(--space-md) var(--space-lg);
    bottom: var(--space-sm);
  }

  .cookie-consent__inner {
    flex-direction: column;
    text-align: center;
    gap: var(--space-md);
  }

  .cookie-consent__actions {
    width: 100%;
    flex-direction: column-reverse;
    gap: var(--space-xs);
  }

  .cookie-consent__btn {
    width: 100%;
    padding: var(--space-sm) var(--space-lg);
  }
}

/* ==========================================================================
   Mobile: Fix for background-attachment: fixed
   Chrome/Safari on mobile dynamically resize the viewport when the address
   bar hides/shows during scroll. With background-attachment: fixed the
   background is positioned relative to the viewport, so every resize causes
   a visible "jump" / repositioning of the background image.
   Firefox Mobile does not exhibit this issue.
   
   Solution: On mobile, use a single position:fixed pseudo-element on body
   as the background layer. This avoids background-attachment: fixed entirely
   while keeping a single continuous background across all sections (no seams).
   position: fixed on a real DOM element is handled correctly by all mobile
   browsers without the viewport resize artifact.
   ========================================================================== */

/* Hidden on desktop - sections use their own background-attachment: fixed */
.mobile-bg-layer {
  display: none;
}

@media (max-width: 1024px) {
  .split-header {
    background: transparent;
    box-shadow: none;
  }

  .mobile-bg-layer {
    display: block;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh; /* fallback for older browsers */
    height: 100lvh; /* large viewport height - CONSTANT regardless of address bar */
    background: var(--gradient-hero), url('/images/Banner_background_main.svg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-blend-mode: overlay;
    z-index: -1;
    pointer-events: none;
  }

  .main-nav-bar,
  .hero,
  .about,
  .programs,
  .instagram,
  .registration-page,
  .registration,
  .about-page,
  .contact,
  .testimonials,
  .faq,
  .site-footer,
  .locations-page,
  .contact-page,
  .documents-page,
  .partnership-page {
    background: none;
  }
}