/* ==========================================================================
   MATRIXDANCE ACADEMY - PREMIUM CLEAN WHITE DESIGN SYSTEM
   Inspired by Apple, Stripe, Linear, & Framer
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Poppins:wght@400;500;600;700;800;900&display=swap');

:root {
  --font-heading: 'Poppins', sans-serif;
  --font-body: 'Inter', sans-serif;

  /* Color Palette */
  --bg-white: #FFFFFF;
  --bg-secondary: #F8FAFC;
  --bg-surface: #FFFFFF;

  --primary-purple: #7C3AED;
  --primary-purple-hover: #6D28D9;
  --primary-purple-light: rgba(124, 58, 237, 0.08);

  --cta-gold: #F59E0B;
  --cta-gold-hover: #D97706;
  --cta-gold-light: rgba(245, 158, 11, 0.1);

  --text-headings: #111827;
  --text-body: #6B7280;
  --text-muted: #9CA3AF;

  --border-color: #E5E7EB;
  --divider-color: #F3F4F6;

  --color-success: #10B981;
  --color-warning: #F59E0B;
  --color-error: #EF4444;
  --color-info: #3B82F6;

  --card-shadow: 0 10px 30px rgba(17, 24, 39, 0.08);
  --card-shadow-hover: 0 20px 40px rgba(124, 58, 237, 0.14);
  
  --radius-card: 16px;
  --radius-pill: 50px;

  --transition-smooth: all 0.3s ease;
}

/* Base Body Setup */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body {
  overflow-x: hidden !important;
  width: 100% !important;
  max-width: 100% !important;
}

html {
  scroll-behavior: smooth;
}

body {
  background-color: var(--bg-white);
  color: var(--text-body);
  font-family: var(--font-body);
  line-height: 1.6;
}

h1, h2, h3, h4, h5, h6, .navbar-brand {
  font-family: var(--font-heading);
  color: var(--text-headings);
  font-weight: 700;
  letter-spacing: -0.02em;
}

p {
  color: var(--text-body);
}

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

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

/* Website Brand Logo Styles */
.navbar-logo-img {
  height: 44px;
  width: auto;
  max-width: 180px;
  object-fit: contain;
  transition: var(--transition-smooth);
  display: block;
}

.footer-logo-img {
  height: 46px;
  width: auto;
  max-width: 200px;
  object-fit: contain;
  margin-bottom: 12px;
  display: block;
}

.sidebar-logo-img {
  height: 48px;
  width: auto;
  max-width: 180px;
  object-fit: contain;
  margin: 0 auto;
  display: block;
}

@media (max-width: 767.98px) {
  .navbar-logo-img {
    height: 36px;
    max-width: 150px;
  }
}

/* Typography & Gradient Highlights */
.text-gradient {
  color: var(--primary-purple) !important;
  background: none !important;
  -webkit-text-fill-color: initial !important;
}

.text-gradient-gold {
  color: var(--cta-gold) !important;
  background: none !important;
  -webkit-text-fill-color: initial !important;
}

/* Cards & Surfaces */
.glass-card, .selection-card, .stat-box, .dash-card {
  background: var(--bg-surface) !important;
  border: 1px solid var(--border-color) !important;
  border-radius: var(--radius-card) !important;
  box-shadow: var(--card-shadow) !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  transition: var(--transition-smooth) !important;
}

.glass-card:hover, .selection-card:hover {
  box-shadow: var(--card-shadow-hover) !important;
  border-color: var(--primary-purple) !important;
}

/* Buttons */
.btn-matrix {
  font-family: var(--font-heading);
  font-weight: 600;
  padding: 12px 28px;
  border-radius: var(--radius-pill);
  transition: var(--transition-smooth);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-decoration: none;
  cursor: pointer;
  border: none;
  font-size: 0.95rem;
}

/* Primary CTA Button (Gold) */
.btn-matrix-primary, .btn-matrix-gold {
  background: var(--cta-gold) !important;
  color: #FFFFFF !important;
  box-shadow: 0 4px 14px rgba(245, 158, 11, 0.35);
}

.btn-matrix-primary:hover, .btn-matrix-gold:hover {
  background: var(--cta-gold-hover) !important;
  color: #FFFFFF !important;
  box-shadow: 0 6px 20px rgba(217, 119, 6, 0.45);
  transform: translateY(-2px);
}

/* Secondary / Brand Button (Purple Solid) */
.btn-matrix-purple {
  background: var(--primary-purple) !important;
  color: #FFFFFF !important;
  border: 1px solid var(--primary-purple) !important;
}

.btn-matrix-purple:hover {
  background: var(--primary-purple-hover) !important;
  color: #FFFFFF !important;
  border-color: var(--primary-purple-hover) !important;
  transform: translateY(-2px);
}

/* Outline Button */
.btn-matrix-outline {
  background: transparent !important;
  color: var(--primary-purple) !important;
  border: 1.5px solid var(--primary-purple) !important;
}

.btn-matrix-outline:hover {
  background: var(--primary-purple) !important;
  color: #FFFFFF !important;
  border-color: var(--primary-purple) !important;
  transform: translateY(-2px);
}

/* Sticky Navigation Bar Across Entire Site */
.navbar-matrix {
  position: sticky !important;
  top: 0 !important;
  z-index: 1030 !important;
  padding: 16px 0;
  transition: var(--transition-smooth);
  background: rgba(255, 255, 255, 0.95) !important;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-color);
}

.navbar-matrix.scrolled {
  background: rgba(255, 255, 255, 0.98) !important;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  padding: 12px 0;
  box-shadow: 0 4px 20px rgba(17, 24, 39, 0.08);
}

.nav-link {
  font-family: var(--font-heading);
  color: var(--text-headings) !important;
  font-weight: 500;
  padding: 8px 16px !important;
  transition: var(--transition-smooth);
}

.nav-link:hover, .nav-link.active {
  color: var(--primary-purple) !important;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

/* Premium Mobile Header Admission Button & Soft Pulse Animation */
.mobile-nav-admission-btn {
  background: linear-gradient(135deg, #F59E0B 0%, #D97706 100%);
  color: #FFFFFF !important;
  font-family: var(--font-heading);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 6px 13px;
  border-radius: 50px;
  text-decoration: none;
  line-height: 1.2;
  box-shadow: 0 2px 10px rgba(245, 158, 11, 0.3);
  transition: var(--transition-smooth);
  animation: mobileAdmissionGlow 2.5s infinite ease-in-out;
  border: 1px solid rgba(255, 255, 255, 0.4);
}

.mobile-nav-admission-btn:hover,
.mobile-nav-admission-btn:focus {
  color: #FFFFFF !important;
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(245, 158, 11, 0.45);
}

@keyframes mobileAdmissionGlow {
  0% {
    box-shadow: 0 0 0 0 rgba(245, 158, 11, 0.6);
  }
  50% {
    box-shadow: 0 0 0 8px rgba(245, 158, 11, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(245, 158, 11, 0);
  }
}

@media (min-width: 768px) {
  .mobile-nav-admission-btn {
    display: none !important;
  }
}

.nav-actions .btn-matrix {
  height: 42px;
  line-height: 1;
  padding: 0 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
  font-weight: 600;
  white-space: nowrap;
  margin-left: 0.25rem !important;
}

.nav-icon-btn {
  width: 42px;
  height: 42px;
  flex-shrink: 0;
  border-radius: 50%;
  background: var(--bg-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-headings);
  border: 1px solid var(--border-color);
  cursor: pointer;
  transition: var(--transition-smooth);
}

.nav-icon-btn:hover, .nav-icon-btn.active {
  background: var(--primary-purple);
  color: #FFFFFF;
  border-color: var(--primary-purple);
}

/* Hero Clean Layout Styles */
.hero-clean-section {
  position: relative;
  background-color: #FFFFFF;
  padding: 40px 0 60px 0;
  overflow: hidden;
}

.hero-badge-container {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 20px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 8px 18px;
  border-radius: 50px;
}

.hero-badge.badge-purple {
  background: rgba(124, 58, 237, 0.08);
  color: #7C3AED;
  border: 1px solid rgba(124, 58, 237, 0.25);
}

.hero-badge.badge-gold {
  background: rgba(245, 158, 11, 0.08);
  color: #D97706;
  border: 1px solid rgba(245, 158, 11, 0.3);
}

.hero-clean-title {
  font-size: 3.5rem;
  font-weight: 900;
  line-height: 1.12;
  color: #111827;
  letter-spacing: -0.03em;
  margin-bottom: 20px;
  text-transform: uppercase;
}

.hero-clean-title .highlight-purple {
  color: #7C3AED;
}

.hero-clean-title .highlight-gold {
  color: #F59E0B;
}

.hero-clean-subtitle {
  font-size: 1.05rem;
  line-height: 1.6;
  color: #6B7280;
  margin-bottom: 35px;
  max-width: 520px;
}

.hero-dancer-image-wrapper {
  position: relative;
  text-align: center;
  padding: 20px 0;
}

.hero-dancer-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 380px;
  height: 380px;
  background: radial-gradient(circle, rgba(124, 58, 237, 0.22) 0%, rgba(255, 255, 255, 0) 70%);
  border-radius: 50%;
  z-index: 1;
  filter: blur(25px);
}

.hero-dancer-img {
  position: relative;
  z-index: 2;
  max-height: 490px;
  width: auto;
  object-fit: contain;
  filter: drop-shadow(0 15px 30px rgba(124, 58, 237, 0.15));
}

.hero-stat-card-clean {
  background: #FFFFFF;
  border: 1px solid #E5E7EB;
  border-radius: 16px;
  padding: 20px 24px;
  display: flex;
  align-items: center;
  gap: 16px;
  box-shadow: 0 10px 30px rgba(17, 24, 39, 0.06);
  transition: all 0.3s ease;
  margin-bottom: 18px;
}

.hero-stat-card-clean:hover {
  transform: translateY(-4px);
  border-color: #7C3AED;
  box-shadow: 0 15px 35px rgba(124, 58, 237, 0.12);
}

.hero-stat-icon-circle {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: rgba(124, 58, 237, 0.1);
  color: #7C3AED;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  flex-shrink: 0;
}

.hero-stat-number-clean {
  font-size: 1.85rem;
  font-weight: 800;
  color: #7C3AED;
  line-height: 1;
  margin-bottom: 4px;
}

.hero-stat-label-clean {
  font-size: 0.825rem;
  color: #6B7280;
  margin-bottom: 0;
  font-weight: 500;
}

/* Feature Bar Clean (4 Columns) */
.feature-bar-card {
  background: #FFFFFF;
  border: 1px solid #E5E7EB;
  border-radius: 20px;
  padding: 28px 32px;
  box-shadow: 0 10px 30px rgba(17, 24, 39, 0.06);
}

.feature-item-clean {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}

.feature-icon-circle {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(124, 58, 237, 0.1);
  color: #7C3AED;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  flex-shrink: 0;
}

.feature-title-clean {
  font-size: 0.975rem;
  font-weight: 700;
  color: #111827;
  margin-bottom: 4px;
}

.feature-desc-clean {
  font-size: 0.825rem;
  color: #6B7280;
  margin-bottom: 0;
  line-height: 1.45;
}

/* Category Cards */
.category-card {
  position: relative;
  border-radius: var(--radius-card);
  overflow: hidden;
  height: 380px;
  box-shadow: var(--card-shadow);
  border: 1px solid var(--border-color);
}

.category-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition-smooth);
}

.category-card:hover img {
  transform: scale(1.08);
}

.category-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 30px;
  background: linear-gradient(180deg, rgba(17, 24, 39, 0) 0%, rgba(17, 24, 39, 0.88) 100%);
  color: #FFFFFF;
}

.category-title {
  color: #FFFFFF !important;
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 6px;
}

.category-overlay p {
  color: rgba(255, 255, 255, 0.8) !important;
}

/* Course Cards */
.course-card {
  background: #FFFFFF;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-card);
  overflow: hidden;
  box-shadow: var(--card-shadow);
  transition: var(--transition-smooth);
  height: 100%;
}

.course-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--card-shadow-hover);
  border-color: var(--primary-purple);
}

.course-img-wrapper {
  position: relative;
  height: 265px;
  overflow: hidden;
}

.course-img-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.course-card:hover .course-img-wrapper img {
  transform: scale(1.06);
}

.course-tag {
  position: absolute;
  top: 15px;
  left: 15px;
  background: rgba(255, 255, 255, 0.95);
  color: var(--primary-purple);
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  font-size: 0.75rem;
  font-weight: 700;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.course-price {
  position: absolute;
  bottom: 15px;
  right: 15px;
  background: var(--primary-purple);
  color: #FFFFFF;
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  font-size: 0.85rem;
  font-weight: 700;
}

.course-body {
  padding: 24px;
}

.course-meta {
  display: flex;
  gap: 15px;
  font-size: 0.825rem;
  color: var(--text-muted);
  margin-bottom: 12px;
}

.course-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-headings);
  margin-bottom: 10px;
}

/* Section Headings */
.section-subtitle {
  color: var(--primary-purple);
  font-weight: 700;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  display: block;
  margin-bottom: 8px;
}

.section-title {
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--text-headings);
  margin-bottom: 24px;
}

/* Mega Menu (Desktop 900px, Mobile 100% width) */
@media (min-width: 992px) {
  .dropdown-mega .dropdown-menu {
    width: 900px;
    left: 50% !important;
    transform: translateX(-50%) !important;
    padding: 24px !important;
    background: #FFFFFF !important;
    border: 1px solid var(--border-color) !important;
    border-radius: var(--radius-card) !important;
    box-shadow: 0 20px 50px rgba(17, 24, 39, 0.12) !important;
  }
}

@media (max-width: 991.98px) {
  .dropdown-mega .dropdown-menu {
    width: 100% !important;
    max-width: 100% !important;
    left: 0 !important;
    transform: none !important;
    box-sizing: border-box !important;
  }
}

.mega-menu-item {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 12px;
  border-radius: 12px;
  transition: var(--transition-smooth);
}

.mega-menu-item:hover {
  background: var(--bg-secondary);
}

.mega-menu-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: var(--primary-purple-light);
  color: var(--primary-purple);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
}

.mega-menu-title {
  font-weight: 700;
  color: var(--text-headings);
  font-size: 0.95rem;
}

.mega-menu-desc {
  font-size: 0.775rem;
  color: var(--text-muted);
}

/* Footer Clean White Aesthetic Styles */
.footer-matrix {
  background-color: var(--bg-secondary) !important;
  border-top: 1px solid var(--border-color) !important;
  padding: 44px 0 20px 0 !important;
  color: var(--text-body) !important;
}

.footer-brand {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--primary-purple);
  text-decoration: none;
  display: inline-block;
  margin-bottom: 12px;
  letter-spacing: -0.02em;
  transition: var(--transition-smooth);
}

.footer-brand:hover {
  color: var(--primary-purple-hover);
  transform: translateY(-1px);
}

.footer-desc {
  font-size: 0.875rem;
  color: #6B7280;
  line-height: 1.6;
  margin-bottom: 16px;
  max-width: 380px;
}

.footer-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-headings);
  margin-bottom: 14px;
  letter-spacing: 0.01em;
}

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

.footer-links li {
  margin-bottom: 8px;
  font-size: 0.875rem;
}

.footer-links li:last-child {
  margin-bottom: 0;
}

.footer-links a {
  color: #6B7280;
  font-size: 0.875rem;
  text-decoration: none;
  transition: var(--transition-smooth);
  display: inline-block;
}

.footer-links a:hover {
  color: var(--primary-purple);
  transform: translateX(3px);
}

.footer-contact-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 8px;
  font-size: 0.875rem;
  color: #6B7280;
}

.footer-contact-item i {
  color: #7C3AED;
  margin-top: 3px;
  font-size: 0.9rem;
}

.footer-social-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--bg-white);
  border: 1px solid var(--border-color);
  color: #4B5563;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-right: 6px;
  transition: var(--transition-smooth);
  text-decoration: none;
  font-size: 0.875rem;
}

.footer-social-btn:hover {
  background: var(--primary-purple);
  color: #FFFFFF;
  border-color: var(--primary-purple);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(124, 58, 237, 0.25);
}

.footer-bottom-bar {
  border-top: 1px solid #E5E7EB;
  margin-top: 28px;
  padding-top: 18px;
  font-size: 0.85rem;
}

.footer-bottom-links a {
  color: #6B7280;
  text-decoration: none;
  transition: color 0.2s ease;
}

.footer-bottom-links a:hover {
  color: #7C3AED;
}

/* Section Backgrounds */
section, .section-padding {
  background-color: var(--bg-white);
}

.bg-secondary-clean {
  background-color: var(--bg-secondary) !important;
}

/* Badges */
.badge-neon {
  background: var(--primary-purple-light);
  color: var(--primary-purple);
  border: 1px solid rgba(124, 58, 237, 0.2);
  padding: 6px 16px;
  border-radius: var(--radius-pill);
  font-weight: 600;
  font-size: 0.825rem;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

/* Scroll Progress Bar */
.scroll-progress-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  z-index: 9999;
}

.scroll-progress-bar {
  height: 100%;
  background: var(--primary-purple);
  width: 0%;
}

/* Forms & Inputs */
.form-control, .form-select {
  background-color: var(--bg-white) !important;
  color: var(--text-headings) !important;
  border: 1px solid var(--border-color) !important;
  border-radius: 10px !important;
}

.form-control:focus, .form-select:focus {
  border-color: var(--primary-purple) !important;
  box-shadow: 0 0 0 4px rgba(124, 58, 237, 0.15) !important;
}

/* Modals */
.modal-content {
  background: var(--bg-white) !important;
  border: 1px solid var(--border-color) !important;
  color: var(--text-headings) !important;
  border-radius: var(--radius-card) !important;
  box-shadow: 0 25px 50px rgba(17, 24, 39, 0.15) !important;
}

.modal-header, .modal-footer {
  border-color: var(--divider-color) !important;
}

/* ==========================================================================
   PHOTO GALLERY & LATEST VIDEOS SECTIONS
   ========================================================================== */
.photo-gallery-card {
  position: relative;
  border-radius: var(--radius-card);
  overflow: hidden;
  box-shadow: 0 10px 25px rgba(17, 24, 39, 0.08);
  transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
  cursor: pointer;
  display: block;
  text-decoration: none;
}

.photo-gallery-card img {
  width: 100%;
  height: 260px;
  object-fit: cover;
  transition: transform 0.5s ease;
  display: block;
}

.photo-gallery-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 35px rgba(124, 58, 237, 0.16);
}

.photo-gallery-card:hover img {
  transform: scale(1.08);
}

.photo-gallery-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(17, 24, 39, 0.85) 0%, rgba(17, 24, 39, 0.2) 65%, transparent 100%);
  opacity: 0;
  transition: opacity 0.3s ease;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 1.25rem;
  color: #ffffff;
}

.photo-gallery-card:hover .photo-gallery-overlay {
  opacity: 1;
}

.photo-gallery-zoom-icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--primary-purple);
  color: #ffffff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.5rem;
  box-shadow: 0 4px 12px rgba(124, 58, 237, 0.4);
}

/* Gallery Page Specific Components */
.gallery-item {
  position: relative;
  border-radius: var(--radius-card);
  overflow: hidden;
  box-shadow: 0 10px 25px rgba(17, 24, 39, 0.08);
  transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
  cursor: pointer;
  display: block;
  text-decoration: none;
  background: #FFFFFF;
}

.gallery-item img {
  width: 100%;
  height: 280px;
  object-fit: cover;
  transition: transform 0.5s ease;
  display: block;
}

.gallery-item:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 35px rgba(124, 58, 237, 0.18);
}

.gallery-item:hover img {
  transform: scale(1.08);
}

.gallery-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(17, 24, 39, 0.9) 0%, rgba(17, 24, 39, 0.3) 60%, transparent 100%);
  opacity: 0;
  transition: opacity 0.3s ease;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 1.25rem;
  color: #ffffff;
}

.gallery-item:hover .gallery-overlay,
.gallery-item:focus .gallery-overlay {
  opacity: 1;
}

.gallery-zoom-icon {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--primary-purple);
  color: #ffffff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
  box-shadow: 0 4px 14px rgba(124, 58, 237, 0.4);
}

/* Category Hero Representative Card */
.category-hero-thumbnail {
  border: 1px solid var(--border-color);
  transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
  cursor: pointer;
  position: relative;
  background: #0F172A;
}

.category-hero-thumbnail:hover {
  transform: translateY(-6px);
  box-shadow: 0 25px 50px rgba(124, 58, 237, 0.22) !important;
}

.category-hero-thumbnail:hover #categoryHeroImg {
  transform: scale(1.05);
}

.category-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(15, 23, 42, 0.95) 0%, rgba(15, 23, 42, 0.5) 50%, rgba(15, 23, 42, 0.2) 100%);
  pointer-events: none;
}

/* Lightbox Navigation Buttons */
.lightbox-nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: rgba(124, 58, 237, 0.85);
  color: #FFFFFF;
  border: 1px solid rgba(255, 255, 255, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  cursor: pointer;
  z-index: 1060;
  transition: all 0.3s ease;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
  outline: none;
}

.lightbox-nav-btn:hover {
  background: #7C3AED;
  color: #FFFFFF;
  transform: translateY(-50%) scale(1.15);
}

.lightbox-prev-btn {
  left: 20px;
}

.lightbox-next-btn {
  right: 20px;
}

@media (max-width: 767.98px) {
  .lightbox-nav-btn {
    width: 44px;
    height: 44px;
    font-size: 1rem;
  }
  .lightbox-prev-btn {
    left: 10px;
  }
  .lightbox-next-btn {
    right: 10px;
  }
  #categoryHeroImg {
    height: 380px !important;
  }
}

/* Video Card Component */
.video-card {
  background: var(--bg-white);
  border-radius: var(--radius-card);
  overflow: hidden;
  border: 1px solid var(--border-color);
  box-shadow: var(--card-shadow);
  transition: all 0.35s ease;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.video-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--card-shadow-hover);
  border-color: rgba(124, 58, 237, 0.3);
}

.video-card-body {
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.video-card-title {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-headings);
  margin-bottom: 0.5rem;
}

.video-card-desc {
  font-size: 0.875rem;
  color: var(--text-body);
  margin-bottom: 0;
}

/* ==========================================================================
   FLOATING UTILITIES & ACTION BUTTONS
   ========================================================================== */
.floating-whatsapp {
  position: fixed;
  bottom: 25px;
  right: 25px;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: #25D366;
  color: #FFFFFF !important;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  box-shadow: 0 8px 24px rgba(37, 211, 102, 0.4);
  z-index: 999;
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  text-decoration: none;
}

.floating-whatsapp:hover {
  transform: scale(1.1) rotate(6deg);
  box-shadow: 0 12px 30px rgba(37, 211, 102, 0.55);
}

.back-to-top {
  position: fixed;
  bottom: 88px;
  right: 25px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--bg-white);
  color: var(--primary-purple) !important;
  border: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  box-shadow: 0 6px 20px rgba(17, 24, 39, 0.1);
  z-index: 998;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  text-decoration: none;
}

.back-to-top.show {
  opacity: 0.95;
  visibility: visible;
}

.back-to-top:hover {
  background: var(--primary-purple);
  color: #FFFFFF !important;
  border-color: var(--primary-purple);
  transform: translateY(-4px);
  opacity: 1;
}

/* ==========================================================================
   COMPREHENSIVE MOBILE & TABLET RESPONSIVE MEDIA QUERIES
   ========================================================================== */

/* Large Tablets & Mobile Landscape (< 992px) */
@media (max-width: 991.98px) {
  .navbar-matrix .navbar-collapse {
    background: #FFFFFF;
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 20px;
    margin-top: 14px;
    box-shadow: 0 15px 35px rgba(17, 24, 39, 0.1);
  }

  .navbar-matrix .nav-link {
    padding: 10px 14px !important;
    font-size: 1rem;
    border-radius: 8px;
  }

  .navbar-matrix .nav-link:hover, 
  .navbar-matrix .nav-link.active {
    background: rgba(124, 58, 237, 0.06);
  }

  .hero-clean-title {
    font-size: 2.75rem;
  }

  .hero-clean-subtitle {
    max-width: 100%;
  }

  .feature-bar-card {
    padding: 24px 20px;
  }

  .photo-gallery-card img {
    height: 230px;
  }
}

/* Medium Mobile & Small Tablets (< 768px) */
@media (max-width: 767.98px) {
  section {
    padding-top: 2.5rem !important;
    padding-bottom: 2.5rem !important;
  }

  .hero-clean-section {
    padding: 20px 0 40px 0;
  }

  .hero-badge-container {
    justify-content: center;
  }

  .hero-clean-title {
    font-size: 2.15rem;
    line-height: 1.2;
    text-align: center;
  }

  .hero-clean-subtitle {
    font-size: 0.95rem;
    text-align: center;
    margin-bottom: 25px;
  }

  .hero-clean-section .d-flex.flex-wrap.gap-3 {
    justify-content: center;
  }

  .hero-dancer-image-wrapper {
    padding: 10px 0;
  }

  .hero-dancer-glow {
    width: 280px;
    height: 280px;
    max-width: 85vw;
  }

  .hero-dancer-img {
    max-height: 340px;
  }

  .feature-item-clean {
    text-align: center;
    flex-direction: column;
    align-items: center;
  }

  .section-title {
    font-size: 1.65rem !important;
  }

  .section-subtitle {
    font-size: 0.8rem !important;
  }

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

  .category-card img {
    height: 230px;
  }

  /* Make gallery overlay title readable on touch devices */
  .photo-gallery-overlay {
    opacity: 1;
    background: linear-gradient(to top, rgba(17, 24, 39, 0.88) 0%, rgba(17, 24, 39, 0.25) 70%, transparent 100%);
  }

  .photo-gallery-zoom-icon {
    width: 38px;
    height: 38px;
    font-size: 0.85rem;
  }

  .footer-matrix {
    padding: 40px 0 20px 0;
    text-align: center;
  }

  .footer-matrix .d-flex {
    justify-content: center !important;
  }

  .footer-bottom-bar {
    flex-direction: column;
    text-align: center;
    gap: 12px;
  }

  .footer-bottom-bar .d-flex {
    flex-wrap: wrap;
    justify-content: center;
  }
}

/* Extra Small Phones (< 576px) */
@media (max-width: 575.98px) {
  .container {
    padding-left: 16px;
    padding-right: 16px;
  }

  .btn-matrix {
    width: 100%;
    padding: 12px 20px;
    font-size: 0.9rem;
  }

  .hero-badge {
    font-size: 0.68rem;
    padding: 6px 14px;
    text-align: center;
  }

  .hero-clean-title {
    font-size: 1.85rem;
    letter-spacing: -0.02em;
  }

  .hero-dancer-glow {
    width: 220px;
    height: 220px;
  }

  .hero-dancer-img {
    max-height: 280px;
  }

  .feature-bar-card {
    padding: 18px 14px;
    border-radius: 16px;
  }

  .photo-gallery-card img {
    height: 200px;
  }

  .video-card-title {
    font-size: 1rem;
  }

  .video-card-desc {
    font-size: 0.825rem;
  }

  .floating-whatsapp {
    bottom: 20px;
    right: 16px;
    width: 46px;
    height: 46px;
    font-size: 1.4rem;
  }

  .back-to-top {
    bottom: 76px;
    right: 16px;
    width: 40px;
    height: 40px;
    font-size: 1rem;
  }
}

/* Offcanvas & Mobile Menu Styling */
@media (max-width: 991.98px) {
  .navbar-matrix .navbar-collapse {
    background: #FFFFFF;
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 20px;
    margin-top: 15px;
    box-shadow: 0 20px 40px rgba(17, 24, 39, 0.15);
  }

  .navbar-matrix .nav-link {
    color: #111827 !important;
    padding: 10px 14px !important;
    border-radius: 10px;
  }

  .navbar-matrix .nav-link:hover,
  .navbar-matrix .nav-link.active {
    background: rgba(124, 58, 237, 0.08);
    color: var(--primary-purple) !important;
  }

  .table-responsive {
    -webkit-overflow-scrolling: touch;
    margin-bottom: 1rem;
  }
}

/* Glass Offcanvas Mobile Navigation Panel & Smooth Closing Transition */
.glass-offcanvas,
.offcanvas.offcanvas-end {
  background: #FFFFFF !important;
  box-shadow: -10px 0 30px rgba(17, 24, 39, 0.15) !important;
  border-left: 1px solid var(--border-color) !important;
  width: 310px !important;
  max-width: 85vw !important;
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1), visibility 0.35s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

.glass-offcanvas.showing,
.glass-offcanvas.show:not(.hiding) {
  transform: translateX(0) !important;
  visibility: visible !important;
}

.glass-offcanvas.hiding,
.offcanvas.offcanvas-end.hiding {
  transform: translateX(100%) !important;
  visibility: visible !important;
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1), visibility 0.35s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

.offcanvas-backdrop {
  transition: opacity 0.35s ease-in-out !important;
}

.glass-offcanvas .nav-link {
  transition: all 0.25s ease;
  border-radius: 10px;
}

.glass-offcanvas .nav-link:hover,
.glass-offcanvas .nav-link.active {
  background: rgba(124, 58, 237, 0.08) !important;
  color: var(--primary-purple) !important;
}

.glass-offcanvas .btn-close {
  opacity: 0.85 !important;
  padding: 0.6rem !important;
  font-size: 1.1rem !important;
  transition: all 0.25s ease !important;
  border-radius: 8px !important;
  cursor: pointer !important;
  position: relative !important;
  z-index: 1060 !important;
}

.glass-offcanvas .btn-close:hover,
.glass-offcanvas .btn-close:focus {
  opacity: 1 !important;
  background-color: rgba(124, 58, 237, 0.1) !important;
}

/* Hide Hamburger Toggler when Offcanvas Menu is Open to prevent overlap */
body.offcanvas-menu-open .navbar-toggler {
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
}

/* Mobile Hamburger Toggler Button */
@media (max-width: 991.98px) {
  .navbar-toggler {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    padding: 0 !important;
    border: 1px solid var(--border-color) !important;
    border-radius: 10px !important;
    background: #FFFFFF !important;
    color: var(--primary-purple) !important;
    box-shadow: 0 4px 12px rgba(17, 24, 39, 0.1) !important;
    transition: opacity 0.25s ease, visibility 0.25s ease, background 0.3s ease !important;
    outline: none !important;
    cursor: pointer !important;
    position: relative !important;
    z-index: 1030 !important;
    pointer-events: auto !important;
  }

  .navbar-toggler * {
    pointer-events: none !important;
  }

  .navbar-toggler i {
    font-size: 1.3rem !important;
    color: var(--primary-purple) !important;
  }

  .navbar-toggler:hover,
  .navbar-toggler:focus,
  .navbar-toggler:active {
    background: var(--primary-purple) !important;
    color: #FFFFFF !important;
    border-color: var(--primary-purple) !important;
  }

  .navbar-toggler:hover i,
  .navbar-toggler:focus i,
  .navbar-toggler:active i {
    color: #FFFFFF !important;
  }
}

/* ==========================================================================
   ENHANCED RESPONSIVE SYSTEM FOR ALL POST-HERO SECTIONS
   ========================================================================== */

/* Touch Device Overlay Accessibility (Always readable on Touch Screens) */
@media (hover: none), (pointer: coarse) {
  .category-overlay {
    opacity: 1 !important;
    background: linear-gradient(180deg, rgba(17, 24, 39, 0.15) 0%, rgba(17, 24, 39, 0.9) 100%) !important;
  }
  .photo-gallery-overlay {
    opacity: 1 !important;
    background: linear-gradient(to top, rgba(17, 24, 39, 0.9) 0%, rgba(17, 24, 39, 0.3) 70%, transparent 100%) !important;
  }
  .gallery-overlay {
    opacity: 1 !important;
    background: linear-gradient(to top, rgba(17, 24, 39, 0.92) 0%, rgba(17, 24, 39, 0.35) 65%, transparent 100%) !important;
  }
}

/* Tablet Screens (max-width: 991.98px) */
@media (max-width: 991.98px) {
  .feature-bar-card {
    padding: 24px 20px;
    margin-top: 2rem !important;
  }
  .category-card {
    height: 320px;
  }
  .course-card .course-img-wrapper {
    height: 220px;
  }
  .photo-gallery-card img {
    height: 220px;
  }
  .video-card-title {
    font-size: 1.05rem;
  }
}

/* Small Tablets & Mobile Landscape (max-width: 767.98px) */
@media (max-width: 767.98px) {
  section {
    padding-top: 2.25rem !important;
    padding-bottom: 2.25rem !important;
  }
  
  .feature-bar-card {
    padding: 20px 16px;
    margin-top: 1.5rem !important;
    border-radius: 16px;
  }

  .feature-item-clean {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    text-align: left;
    gap: 14px;
  }

  .category-card {
    height: 280px;
  }

  .category-title {
    font-size: 1.3rem !important;
  }

  .category-overlay {
    padding: 20px !important;
  }

  .course-card .course-body {
    padding: 18px 16px !important;
  }

  .course-title {
    font-size: 1.1rem !important;
  }

  .course-card .btn-matrix {
    padding: 9px 12px !important;
    font-size: 0.85rem !important;
    min-height: 44px;
  }

  .photo-gallery-card img {
    height: 210px;
  }

  .video-card-body {
    padding: 1rem !important;
  }

  .accordion-matrix .accordion-button {
    font-size: 0.95rem !important;
    padding: 14px 16px !important;
  }

  .accordion-matrix .accordion-body {
    font-size: 0.875rem !important;
    padding: 14px 16px !important;
  }

  .footer-matrix {
    padding: 40px 0 24px 0 !important;
    text-align: center;
  }

  .footer-brand {
    margin-bottom: 12px;
  }

  .footer-desc {
    font-size: 0.875rem;
    margin-bottom: 16px;
    max-width: 100% !important;
  }

  .footer-title {
    font-size: 1rem;
    margin-bottom: 14px;
    margin-top: 10px;
  }

  .footer-links li {
    margin-bottom: 10px;
  }

  .footer-social-btn {
    width: 42px;
    height: 42px;
    font-size: 1.05rem;
  }

  .footer-bottom-bar {
    text-align: center;
    padding-top: 16px;
    row-gap: 12px !important;
  }

  .footer-bottom-links {
    font-size: 0.85rem;
    row-gap: 6px;
  }
}

/* Phones & Extra Small Devices (max-width: 575.98px) */
@media (max-width: 575.98px) {
  .container {
    padding-left: 16px !important;
    padding-right: 16px !important;
  }

  .section-title {
    font-size: 1.45rem !important;
    margin-bottom: 16px !important;
  }

  .section-subtitle {
    font-size: 0.75rem !important;
    letter-spacing: 0.06em !important;
  }

  .feature-bar-card .row > div:not(:last-child) {
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 14px;
    margin-bottom: 14px;
  }

  .feature-icon-circle {
    width: 42px;
    height: 42px;
    font-size: 1.05rem;
  }

  .feature-title-clean {
    font-size: 0.925rem;
  }

  .feature-desc-clean {
    font-size: 0.8rem;
  }

  .category-card {
    height: 250px;
  }

  .course-card .course-img-wrapper {
    height: 190px;
  }

  .course-tag {
    top: 10px;
    left: 10px;
    padding: 4px 10px;
    font-size: 0.7rem;
  }

  .photo-gallery-card img {
    height: 190px;
  }

  .photo-gallery-overlay {
    padding: 14px !important;
  }

  .photo-gallery-zoom-icon {
    width: 36px;
    height: 36px;
    font-size: 0.8rem;
    margin-bottom: 0.35rem;
  }

  .swiper-pagination-courses,
  .swiper-pagination-testimonials {
    margin-top: 1rem !important;
  }

  .floating-whatsapp {
    bottom: 20px;
    right: 16px;
    width: 48px;
    height: 48px;
    font-size: 1.4rem;
  }

  .back-to-top {
    bottom: 78px;
    right: 16px;
    width: 42px;
    height: 42px;
    font-size: 1rem;
  }
}

/* ==========================================================================
   PREMIUM FULL-SCREEN LIGHTBOX SYSTEM (MATRIXDANCE GALLERY)
   ========================================================================== */
body.matrix-lightbox-open {
  overflow: hidden !important;
  touch-action: none;
}

.matrix-lightbox {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 999999;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  visibility: hidden;
  opacity: 0;
  transition: opacity 0.35s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.35s ease;
  outline: none;
  user-select: none;
  -webkit-user-select: none;
}

.matrix-lightbox.active {
  visibility: visible;
  opacity: 1;
}

.matrix-lightbox-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(8, 8, 14, 0.94);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  z-index: 1;
}

/* Lightbox Header / Top Bar */
.matrix-lightbox-header {
  position: relative;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 2rem;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.75) 0%, rgba(0, 0, 0, 0) 100%);
}

.matrix-lightbox-info {
  display: flex;
  align-items: center;
  gap: 12px;
}

.matrix-lightbox-counter {
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  font-size: 0.85rem;
  color: #c4b5fd;
  background: rgba(124, 58, 237, 0.25);
  border: 1px solid rgba(167, 139, 250, 0.35);
  padding: 4px 14px;
  border-radius: 20px;
  letter-spacing: 0.05em;
  box-shadow: 0 0 12px rgba(124, 58, 237, 0.2);
}

.matrix-lightbox-badge {
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: 0.8rem;
  color: #ffffff;
  background: linear-gradient(135deg, #7C3AED 0%, #6A00FF 100%);
  padding: 4px 12px;
  border-radius: 6px;
  box-shadow: 0 2px 8px rgba(106, 0, 255, 0.3);
}

.matrix-lightbox-close {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: #ffffff;
  font-size: 1.3rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  backdrop-filter: blur(8px);
}

.matrix-lightbox-close:hover {
  background: #ef4444;
  border-color: #f87171;
  color: #ffffff;
  transform: scale(1.1) rotate(90deg);
  box-shadow: 0 0 18px rgba(239, 68, 68, 0.6);
}

/* Main Lightbox Body & Stage */
.matrix-lightbox-body {
  position: relative;
  z-index: 10;
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 1.5rem;
  overflow: hidden;
}

.matrix-lightbox-stage {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  max-height: calc(100vh - 130px);
  padding: 0 1rem;
}

.matrix-lightbox-img-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  max-width: 90vw;
  max-height: 72vh;
}

.matrix-lightbox-img {
  max-width: 90vw;
  max-height: 72vh;
  object-fit: contain;
  border-radius: 12px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.85), 0 0 30px rgba(124, 58, 237, 0.2);
  transition: opacity 0.25s cubic-bezier(0.4, 0, 0.2, 1), transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
  transform: scale(0.95);
  opacity: 0;
}

.matrix-lightbox.active .matrix-lightbox-img {
  transform: scale(1);
  opacity: 1;
}

.matrix-lightbox-caption {
  margin-top: 1rem;
  text-align: center;
  max-width: 700px;
}

.matrix-lightbox-title {
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  font-size: 1.15rem;
  color: #ffffff;
  margin-bottom: 3px;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.8);
}

.matrix-lightbox-sub {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.65);
  margin-bottom: 0;
}

/* Nav Buttons */
.matrix-lightbox-nav {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.22);
  color: #ffffff;
  font-size: 1.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  backdrop-filter: blur(8px);
  flex-shrink: 0;
}

.matrix-lightbox-nav:hover {
  background: linear-gradient(135deg, #7C3AED 0%, #6A00FF 100%);
  border-color: #a78bfa;
  transform: scale(1.12);
  box-shadow: 0 0 20px rgba(124, 58, 237, 0.6);
}

.matrix-lightbox-nav:active {
  transform: scale(0.96);
}

/* Responsive adjustments for Mobile */
@media (max-width: 768px) {
  .matrix-lightbox-header {
    padding: 1rem 1.25rem;
  }
  
  .matrix-lightbox-body {
    padding: 0 0.5rem;
  }

  .matrix-lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 20;
    width: 44px;
    height: 44px;
    font-size: 1.1rem;
    background: rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.25);
  }

  .matrix-lightbox-prev {
    left: 10px;
  }

  .matrix-lightbox-next {
    right: 10px;
  }

  .matrix-lightbox-stage {
    padding: 0;
    max-height: calc(100vh - 120px);
  }

  .matrix-lightbox-img {
    max-width: 95vw;
    max-height: 65vh;
  }

  .matrix-lightbox-title {
    font-size: 0.98rem;
  }

  .matrix-lightbox-sub {
    font-size: 0.78rem;
  }
}

/* ==========================================================================
   GALLERY FILTER SECTION STYLES & ANIMATIONS
   ========================================================================== */

/* Desktop & General: Subtle Soft Pulse Glow ONLY on Active Filter Button */
@keyframes activeFilterSoftPulse {
  0%, 100% {
    box-shadow: 0 0 10px rgba(124, 58, 237, 0.45), 0 2px 8px rgba(124, 58, 237, 0.25);
  }
  50% {
    box-shadow: 0 0 18px rgba(124, 58, 237, 0.75), 0 4px 14px rgba(124, 58, 237, 0.4);
  }
}

.gallery-filter-container .filter-btn {
  white-space: nowrap;
  flex-shrink: 0;
  transform: none !important; /* Disables vertical movement */
  transition: background-color 0.3s ease, border-color 0.3s ease, color 0.3s ease, box-shadow 0.3s ease;
}

.gallery-filter-container .filter-btn:hover {
  transform: none !important; /* Prevents vertical slide-up on hover */
}

.gallery-filter-container .filter-btn.active {
  background: var(--primary-purple, #7C3AED) !important;
  color: #FFFFFF !important;
  border-color: var(--primary-purple, #7C3AED) !important;
  transform: none !important;
  animation: activeFilterSoftPulse 2.5s infinite ease-in-out;
}

/* Mobile: Single Horizontal Scrolling Row without scrollbar */
@media (max-width: 767.98px) {
  .gallery-filter-container {
    display: flex !important;
    flex-wrap: nowrap !important;
    overflow-x: auto !important;
    overflow-y: hidden !important;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    justify-content: flex-start !important;
    align-items: center !important;
    gap: 0.5rem !important;
    padding-left: 0.75rem !important;
    padding-right: 0.75rem !important;
    padding-top: 0.25rem !important;
    padding-bottom: 0.5rem !important;
    margin-left: -0.75rem !important;
    margin-right: -0.75rem !important;
    scrollbar-width: none !important; /* Firefox */
    -ms-overflow-style: none !important; /* IE & Edge */
  }

  .gallery-filter-container::-webkit-scrollbar {
    display: none !important; /* Chrome, Safari & Opera */
    width: 0 !important;
    height: 0 !important;
  }

  .gallery-filter-container .filter-btn {
    flex: 0 0 auto !important;
    white-space: nowrap !important;
    scroll-snap-align: start;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    height: 42px !important;
    padding: 0 1.25rem !important;
    font-size: 0.875rem !important;
  }
}

/* ==========================================================================
   MOBILE ONLY: OUR POPULAR COURSES CAROUSEL RESPONSIVENESS & SPACING
   ========================================================================== */
@media (max-width: 767.98px) {
  html, body {
    overflow-x: hidden !important;
    width: 100% !important;
    max-width: 100% !important;
  }

  section, .container {
    max-width: 100% !important;
  }

  .courses-swiper {
    width: 100% !important;
    max-width: 100% !important;
    padding-bottom: 48px !important;
    overflow: hidden !important; /* Prevents off-screen swiper slides from spilling right & causing mobile compression */
    position: relative !important;
  }

  .courses-swiper .swiper-wrapper {
    width: 100% !important;
  }

  .courses-swiper .swiper-slide {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }

  .courses-swiper .course-card {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }

  .courses-swiper .swiper-pagination-courses {
    position: absolute !important;
    bottom: 4px !important;
    top: auto !important;
    left: 0 !important;
    right: 0 !important;
    width: 100% !important;
    margin-top: 20px !important;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    z-index: 10 !important;
  }
}

/* ==========================================================================
   GLOBAL MOBILE VIEWPORT & SYMMETRICAL GRID SYSTEM
   ========================================================================== */
html, body {
  overflow-x: hidden !important;
  width: 100% !important;
  max-width: 100% !important;
  position: relative;
}

@media (max-width: 991.98px) {
  html, body {
    overflow-x: hidden !important;
    width: 100% !important;
    max-width: 100% !important;
    position: relative;
  }

  main, section, header, footer {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    overflow-x: hidden;
  }

  .container, .container-fluid {
    width: 100% !important;
    max-width: 100% !important;
    padding-left: 1rem !important;
    padding-right: 1rem !important;
    box-sizing: border-box !important;
  }

  .row {
    margin-left: -0.5rem !important;
    margin-right: -0.5rem !important;
    width: auto !important;
    max-width: none !important;
  }

  .row > [class*="col-"] {
    padding-left: 0.5rem !important;
    padding-right: 0.5rem !important;
  }

  img, video, iframe, embed, object {
    max-width: 100% !important;
  }

  .hero-dancer-glow {
    max-width: 80vw !important;
    max-height: 80vw !important;
  }
}





