/* Hero contacts hover styles */
.hero-contacts .contact-card {
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease, background-color 0.2s ease;
}

.hero-contacts .contact-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.18);
  border-color: var(--elkably-primary, #B80101);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.06));
}

.hero-contacts .contact-card .contact-icon {
  transition: background-color 0.2s ease, transform 0.2s ease;
}

.hero-contacts .contact-card:hover .contact-icon {
  background: #a00101;
  transform: scale(1.05);
}

/**
 * Index Page Specific Styles for Mr Mohrr7am
 */

/* Elkably Team Color Variables */

/* Elkably Header Styles */
.logo-container-elkably {
  display: flex;
  align-items: center;
  gap: 15px;
}

.logo-image-wrapper-elkably {
  position: relative;
}

.k-logo-large {
  width: 50px;
  height: 50px;
  background: var(--elkably-text);
  color: white;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1.8rem;
  font-family: 'Poppins', sans-serif;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  transition: all 0.3s ease;
}

.k-logo-large:hover {
  transform: scale(1.05);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}

.logo-text-container-elkably {
  display: flex;
  flex-direction: column;
}

.logo-text-elkably {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--elkably-text);
  font-family: 'Poppins', sans-serif;
  letter-spacing: 0.5px;
  margin: 0;
}

.nav-link-elkably {
  color: var(--elkably-text) !important;
  font-weight: 500;
  font-size: 1rem;
  padding: 8px 16px !important;
  border-radius: 6px;
  transition: all 0.3s ease;
  position: relative;
}

.nav-link-elkably:hover {
  color: var(--elkably-primary) !important;
  background: rgba(184, 1, 1, 0.1);
  transform: translateY(-1px);
}

.nav-link-elkably::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 2px;
  background: var(--elkably-primary);
  transition: all 0.3s ease;
  transform: translateX(-50%);
}

.nav-link-elkably:hover::after {
  width: 80%;
}

.auth-buttons-elkably {
  display: flex;
  align-items: center;
  gap: 12px;
}

.btn-login-elkably {
  background: var(--elkably-primary);
  color: white;
  padding: 10px 20px;
  border-radius: 25px;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
  transition: all 0.3s ease;
  border: none;
  box-shadow: 0 4px 12px rgba(184, 1, 1, 0.3);
}

.btn-login-elkably:hover {
  background: #A00101;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(184, 1, 1, 0.4);
  color: white;
}

.btn-register-elkably {
  background: #8B0000;
  color: white;
  padding: 10px 20px;
  border-radius: 25px;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
  transition: all 0.3s ease;
  border: none;
  box-shadow: 0 4px 12px rgba(139, 0, 0, 0.3);
}

.btn-register-elkably:hover {
  background: #7A0000;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(139, 0, 0, 0.4);
  color: white;
}

/* Dark theme adjustments for header */
.dark-theme .k-logo-large {
  background: var(--elkably-primary);
  color: white;
}

.dark-theme .logo-text-elkably {
  color: var(--elkably-text);
}

.dark-theme .nav-link-elkably {
  color: var(--elkably-text) !important;
}

.dark-theme .nav-link-elkably:hover {
  color: var(--elkably-primary) !important;
  background: rgba(184, 1, 1, 0.15);
}

/* Elkably Team Color Variables */
:root {
  --elkably-primary: #B80101;
  --elkably-primary-transparent: #B80101D4;
  --elkably-primary-fade: #B8010100;
  --elkably-accent: #f59e0b;
  --elkably-gradient: linear-gradient(135deg,
      var(--elkably-primary),
      var(--elkably-primary-transparent));
  --elkably-text: #1f2937;
  --elkably-text-light: #6b7280;
  --elkably-bg: #ffffff;
  --elkably-surface: #f8fafc;
  --elkably-border: #e5e7eb;
  --elkably-red-gradient: linear-gradient(90deg,
      var(--elkably-primary) 0%,
      var(--elkably-primary-transparent) 50%,
      var(--elkably-primary-fade) 100%);
}

.dark-theme {
  --elkably-text: #f9fafb;
  --elkably-text-light: #d1d5db;
  --elkably-bg: #111827;
  --elkably-surface: #1f2937;
  --elkably-border: #374151;
  --elkably-primary: #B80101;
  --elkably-primary-transparent: #B80101D4;
  --elkably-primary-fade: #B8010100;
  --elkably-accent: #fbbf24;
}

/* Theme Toggle - Updated to match unified system */
.theme-toggle {
  background: linear-gradient(135deg,
      rgba(255, 255, 255, 0.1),
      rgba(255, 255, 255, 0.05));
  border: none;
  border-radius: 50%;
  width: 45px;
  height: 45px;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.light-theme .theme-toggle {
  background: linear-gradient(135deg,
      rgba(30, 41, 59, 0.1),
      rgba(30, 41, 59, 0.05));
  box-shadow: 0 4px 15px rgba(30, 41, 59, 0.15);
  border: 1px solid rgba(30, 41, 59, 0.1);
}

.dark-theme .theme-toggle {
  background: linear-gradient(135deg,
      rgba(255, 255, 255, 0.1),
      rgba(255, 255, 255, 0.05));
  box-shadow: 0 4px 15px rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.theme-toggle:hover {
  transform: translateY(-2px) scale(1.05);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

.light-theme .theme-toggle:hover {
  box-shadow: 0 6px 20px rgba(30, 41, 59, 0.2);
}

.dark-theme .theme-toggle:hover {
  box-shadow: 0 6px 20px rgba(255, 255, 255, 0.2);
}

/* Icons - Use same system as theme-toggle.css */
.theme-toggle .light-icon,
.theme-toggle .dark-icon {
  font-size: 18px;
  transition: all 0.3s ease;
  position: absolute;
  display: none !important;
}

/* Light theme shows moon icon (to switch to dark) */
.light-theme .theme-toggle .dark-icon {
  display: inline-block !important;
  color: #1e293b;
  opacity: 1;
  transform: scale(1);
}

/* Dark theme shows sun icon (to switch to light) */
.dark-theme .theme-toggle .light-icon {
  display: inline-block !important;
  color: #facc15;
  opacity: 1;
  transform: scale(1);
}

/* High priority override for index page specifically */
body.light-theme .theme-toggle .dark-icon,
.hero-section-new .light-theme .theme-toggle .dark-icon {
  display: inline-block !important;
  color: #1e293b !important;
  opacity: 1 !important;
  transform: scale(1) !important;
}

body.dark-theme .theme-toggle .light-icon,
.hero-section-new .dark-theme .theme-toggle .light-icon {
  display: inline-block !important;
  color: #facc15 !important;
  opacity: 1 !important;
  transform: scale(1) !important;
}

/* Remove old data-theme selectors that conflict */
/* [data-theme="dark"] selectors removed to prevent conflicts */

/* Floating Math Elements */
.floating-math-elements {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
  overflow: hidden;
}

.math-element {
  position: absolute;
  font-size: 24px;
  font-weight: bold;
  color: var(--elkably-primary);
  opacity: 0.1;
  animation: floatMath 20s infinite linear;
}

@keyframes floatMath {
  0% {
    transform: translateX(-100px) translateY(100vh) rotate(0deg);
  }

  100% {
    transform: translateX(100vw) translateY(-100px) rotate(360deg);
  }
}

/* Elkably Team Hero Section */
.hero-section-elkably {
  min-height: 100vh;
  position: relative;
  background: var(--elkably-bg);
  overflow: hidden;
  display: flex;
  align-items: center;
}

.hero-background-elkably {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.hero-curve-shape {
  position: absolute;
  top: 0;
  right: 0;
  width: 60%;
  height: 100%;
  background: var(--elkably-red-gradient);
  clip-path: ellipse(80% 100% at 100% 50%);
  z-index: 1;
}

.hero-pattern-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="dots" width="20" height="20" patternUnits="userSpaceOnUse"><circle cx="10" cy="10" r="1" fill="rgba(255,255,255,0.1)"/></pattern></defs><rect width="100" height="100" fill="url(%23dots)"/></svg>');
  z-index: 2;
}

.hero-content-wrapper-elkably {
  position: relative;
  z-index: 3;
  width: 100%;
}

.hero-text-content-elkably {
  padding: 60px 0;
}

.hero-title-elkably {
  font-size: clamp(3rem, 8vw, 6rem);
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 30px;
  color: var(--elkably-text);
}

.title-main {
  display: block;
  animation: slideInUp 0.8s ease-out forwards;
  opacity: 0;
  transform: translateY(30px);
}

.hero-tagline-elkably {
  font-size: 1.5rem;
  line-height: 1.6;
  color: var(--elkably-text-light);
  margin-bottom: 40px;
  max-width: 500px;
  animation: fadeIn 1s ease-out 0.8s forwards;
  opacity: 0;
}

.hero-cta-elkably {
  animation: slideInUp 0.8s ease-out 1.2s forwards;
  opacity: 0;
  transform: translateY(30px);
}

.btn-login-student {
  display: inline-block;
  background: var(--elkably-primary);
  color: white;
  padding: 18px 40px;
  border-radius: 50px;
  font-weight: 700;
  font-size: 1.1rem;
  text-decoration: none;
  transition: all 0.3s ease;
  box-shadow: 0 8px 25px rgba(184, 1, 1, 0.3);
  position: relative;
  overflow: hidden;
}

.btn-login-student:hover {
  background: #A00101;
  transform: translateY(-3px);
  box-shadow: 0 12px 35px rgba(184, 1, 1, 0.4);
  color: white;
}

.btn-login-student::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.5s ease;
}

.btn-login-student:hover::before {
  left: 100%;
}

.hero-visual-container-elkably {
  position: relative;
  height: 500px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.teacher-portrait-elkably {
  position: relative;
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
}

.portrait-frame-elkably {
  position: relative;
  width: 350px;
  height: 350px;
  border-radius: 50%;
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
  animation: portraitFloat 6s ease-in-out infinite;
}

.portrait-image-elkably {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.portrait-outline-elkably {
  position: absolute;
  top: -5px;
  left: -5px;
  right: -5px;
  bottom: -5px;
  border: 3px solid var(--elkably-primary);
  border-radius: 50%;
  opacity: 0.8;
  animation: outlinePulse 3s ease-in-out infinite;
}

.portrait-pattern-elkably {
  position: absolute;
  top: -20px;
  left: -20px;
  right: -20px;
  bottom: -20px;
  background: radial-gradient(circle, var(--elkably-primary) 2px, transparent 2px);
  background-size: 20px 20px;
  border-radius: 50%;
  opacity: 0.3;
  animation: patternRotate 20s linear infinite;
}

@keyframes portraitFloat {

  0%,
  100% {
    transform: translateY(0) rotate(0deg);
  }

  25% {
    transform: translateY(-10px) rotate(2deg);
  }

  50% {
    transform: translateY(0) rotate(0deg);
  }

  75% {
    transform: translateY(10px) rotate(-2deg);
  }
}

@keyframes outlinePulse {

  0%,
  100% {
    opacity: 0.8;
    transform: scale(1);
  }

  50% {
    opacity: 1;
    transform: scale(1.05);
  }
}

@keyframes patternRotate {
  0% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(360deg);
  }
}

/* Student Showcase Sections */
.student-showcase-section {
  padding: 80px 0;
  background: var(--elkably-bg);
}

.student-category-section {
  margin-bottom: 80px;
}

.category-title {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--elkably-text);
  text-align: center;
  margin-bottom: 50px;
}

.highlight-red {
  color: var(--elkably-primary);
}

.student-cards-container {
  display: flex;
  gap: 30px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 60px;
}

.student-card {
  background: white;
  border-radius: 15px;
  padding: 20px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  width: 280px;
  border: 1px solid var(--elkably-border);
}

.student-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
}

.card-header {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 20px;
  padding-bottom: 15px;
  border-bottom: 2px solid var(--elkably-primary);
}

.k-logo {
  width: 40px;
  height: 40px;
  background: var(--elkably-primary);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.2rem;
}

.student-name {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--elkably-primary);
}

.card-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.student-info {
  flex: 1;
}

.info-item {
  display: flex;
  justify-content: space-between;
  margin-bottom: 8px;
  font-size: 0.9rem;
}

.label {
  color: var(--elkably-text-light);
  font-weight: 500;
}

.value {
  color: var(--elkably-text);
  font-weight: 600;
}

.student-avatar {
  width: 60px;
  height: 60px;
  background: var(--elkably-surface);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--elkably-text-light);
  font-size: 1.5rem;
  border: 2px solid var(--elkably-border);
}

.elkably-games-section {
  text-align: center;
  margin-top: 60px;
}

.games-title {
  font-size: 3rem;
  font-weight: 800;
  color: var(--elkably-primary);
  margin: 0;
}

/* Dark theme adjustments */
.dark-theme .student-card {
  background: var(--elkably-surface);
  border-color: var(--elkably-border);
}

.dark-theme .student-avatar {
  background: var(--elkably-bg);
  border-color: var(--elkably-border);
}

/* Responsive Design */
@media (max-width: 768px) {
  .hero-curve-shape {
    width: 80%;
    clip-path: ellipse(90% 100% at 100% 50%);
  }

  .portrait-frame-elkably {
    width: 280px;
    height: 280px;
  }

  .student-cards-container {
    gap: 20px;
  }

  .student-card {
    width: 100%;
    max-width: 300px;
  }

  .category-title {
    font-size: 2rem;
  }

  .games-title {
    font-size: 2.5rem;
  }
}

.hero-canvas-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.hero-canvas {
  width: 100%;
  height: 100%;
}

.hero-particles-system {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 2;
}

.hero-content-wrapper {
  position: relative;
  z-index: 3;
  width: 100%;
}

.hero-badge-new {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(58, 146, 98, 0.1);
  border: 1px solid rgba(58, 146, 98, 0.2);
  border-radius: 50px;
  padding: 8px 16px;
  margin-bottom: 24px;
  position: relative;
  overflow: hidden;
}

.badge-glow {
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg,
      transparent,
      rgba(255, 255, 255, 0.2),
      transparent);
  animation: shimmer 3s infinite;
}

@keyframes shimmer {
  0% {
    left: -100%;
  }

  100% {
    left: 100%;
  }
}

.badge-icon {
  color: var(--elkably-primary);
  font-size: 16px;
}

.badge-text {
  color: var(--elkably-primary);
  font-weight: 600;
  font-size: 14px;
}

.hero-title-new {
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 24px;
  color: var(--elkably-text);
}

.title-line {
  display: block;
  animation: slideInUp 0.8s ease-out forwards;
  opacity: 0;
  transform: translateY(30px);
}

.title-line:nth-child(1) {
  animation-delay: 0.2s;
}

.title-line:nth-child(2) {
  animation-delay: 0.4s;
}

.title-line:nth-child(3) {
  animation-delay: 0.6s;
}

.math-gradient {
  background: var(--elkably-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

@keyframes slideInUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-description-new {
  font-size: 1.25rem;
  line-height: 1.6;
  color: var(--elkably-text-light);
  margin-bottom: 40px;
  max-width: 500px;
  animation: fadeIn 1s ease-out 0.8s forwards;
  opacity: 0;
}

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

.hero-highlights {
  display: flex;
  align-items: center;
  gap: 24px;
  margin-bottom: 40px;
  animation: slideInUp 0.8s ease-out 1s forwards;
  opacity: 0;
  transform: translateY(30px);
  flex-wrap: wrap;
}

.highlight-item {
  display: flex;
  align-items: center;
  gap: 12px;
  background: rgba(58, 146, 98, 0.1);
  border: 1px solid rgba(58, 146, 98, 0.2);
  border-radius: 12px;
  padding: 12px 16px;
  transition: all 0.3s ease;
}

.highlight-item:hover {
  background: rgba(58, 146, 98, 0.15);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(58, 146, 98, 0.2);
}

.dark-theme .highlight-item {
  background: rgba(0, 176, 80, 0.1);
  border: 1px solid rgba(0, 176, 80, 0.2);
}

.dark-theme .highlight-item:hover {
  background: rgba(0, 176, 80, 0.15);
  box-shadow: 0 8px 20px rgba(0, 176, 80, 0.2);
}

.highlight-icon {
  font-size: 1.5rem;
  color: var(--elkably-primary);
  background: rgba(58, 146, 98, 0.1);
  border-radius: 50%;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.dark-theme .highlight-icon {
  background: rgba(0, 176, 80, 0.1);
}

.highlight-content {
  display: flex;
  flex-direction: column;
}

.highlight-title {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--elkably-text);
  margin-bottom: 2px;
}

.highlight-desc {
  font-size: 0.75rem;
  color: var(--elkably-text-light);
}

.hero-cta-new {
  display: flex;
  align-items: center;
  gap: 16px;
  animation: slideInUp 0.8s ease-out 1.2s forwards;
  opacity: 0;
  transform: translateY(30px);
}

.btn-primary-new,
.btn-secondary-new {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 16px 32px;
  border-radius: 50px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  border: none;
  cursor: pointer;
  font-size: 16px;
}

.btn-primary-new {
  background: var(--elkably-gradient);
  color: white;
  box-shadow: 0 8px 25px rgba(58, 146, 98, 0.3);
}

.btn-primary-new:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 35px rgba(58, 146, 98, 0.4);
  color: white;
}

.btn-secondary-new {
  background: transparent;
  color: var(--elkably-text);
  border: 2px solid var(--elkably-border);
}

.btn-secondary-new:hover {
  background: var(--elkably-surface);
  transform: translateY(-2px);
  color: var(--elkably-text);
}

.btn-glow-effect {
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg,
      transparent,
      rgba(255, 255, 255, 0.2),
      transparent);
  transition: left 0.5s ease;
}

.btn-primary-new:hover .btn-glow-effect {
  left: 100%;
}

.hero-visual-container {
  position: relative;
  height: 500px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Teacher Portrait Container */
.teacher-portrait-container {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 30px;
  z-index: 2;
}

.teacher-portrait-frame {
  position: relative;
  width: 320px;
  height: 320px;
  border-radius: 50%;
  background: var(--elkably-gradient);
  padding: 8px;
  box-shadow:
    0 10px 30px rgba(0, 0, 0, 0.2),
    0 0 0 2px rgba(255, 255, 255, 0.1),
    0 0 0 15px rgba(58, 146, 98, 0.1),
    0 0 0 30px rgba(58, 146, 98, 0.05);
  animation: teacher-portrait-pulse 4s ease-in-out infinite;
  transition: all 0.5s ease;
  overflow: hidden;
  transform-style: preserve-3d;
  perspective: 1000px;
}

.teacher-portrait-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  transform: scale(1);
  transition: transform 0.5s ease;
  animation: teacher-portrait-float 6s ease-in-out infinite;
}

.teacher-portrait-glow {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.4) 0%, rgba(255, 255, 255, 0) 70%);
  border-radius: 50%;
  pointer-events: none;
  z-index: 2;
}

.teacher-portrait-badge {
  position: absolute;
  bottom: -15px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--elkably-gradient);
  color: white;
  padding: 8px 20px;
  border-radius: 30px;
  font-weight: 600;
  font-size: 0.9rem;
  box-shadow: 0 5px 15px rgba(58, 146, 98, 0.3);
  display: flex;
  align-items: center;
  gap: 8px;
  z-index: 3;
  white-space: nowrap;
}

.teacher-portrait-badge i {
  font-size: 1rem;
}

@keyframes teacher-portrait-pulse {

  0%,
  100% {
    box-shadow:
      0 10px 30px rgba(0, 0, 0, 0.2),
      0 0 0 2px rgba(255, 255, 255, 0.1),
      0 0 0 15px rgba(58, 146, 98, 0.1),
      0 0 0 30px rgba(58, 146, 98, 0.05);
  }

  50% {
    box-shadow:
      0 15px 40px rgba(0, 0, 0, 0.3),
      0 0 0 4px rgba(255, 255, 255, 0.2),
      0 0 0 20px rgba(58, 146, 98, 0.15),
      0 0 0 40px rgba(58, 146, 98, 0.08);
  }
}

@keyframes teacher-portrait-float {

  0%,
  100% {
    transform: translateY(0) rotate(0deg);
  }

  25% {
    transform: translateY(-8px) rotate(3deg);
  }

  50% {
    transform: translateY(0) rotate(0deg);
  }

  75% {
    transform: translateY(8px) rotate(-3deg);
  }
}

.hero-visual-container:hover .teacher-portrait-frame {
  transform: scale(1.05);
}

.hero-visual-container:hover .teacher-portrait-image {
  transform: scale(1.1);
}

.floating-equations-new {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.equation-item {
  position: absolute;
  font-size: 18px;
  font-weight: 600;
  color: var(--elkably-primary);
  opacity: 0;
  animation: floatEquation 4s infinite ease-in-out;
  animation-delay: var(--delay);
}

.equation-item:nth-child(1) {
  top: 10%;
  left: 20%;
}

.equation-item:nth-child(2) {
  top: 20%;
  right: 15%;
}

.equation-item:nth-child(3) {
  bottom: 30%;
  left: 10%;
}

.equation-item:nth-child(4) {
  bottom: 20%;
  right: 20%;
}

.equation-item:nth-child(5) {
  top: 50%;
  left: 5%;
}

@keyframes floatEquation {

  0%,
  100% {
    opacity: 0;
    transform: translateY(0px);
  }

  50% {
    opacity: 0.7;
    transform: translateY(-20px);
  }
}

.hero-glow-orb {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 200px;
  height: 200px;
  background: radial-gradient(circle, rgba(58, 146, 98, 0.1), transparent);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  animation: pulse 3s infinite ease-in-out;
}

@keyframes pulse {

  0%,
  100% {
    transform: translate(-50%, -50%) scale(1);
    opacity: 0.5;
  }

  50% {
    transform: translate(-50%, -50%) scale(1.2);
    opacity: 0.8;
  }
}

.scroll-indicator {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  text-align: center;
  color: var(--elkably-text-light);
  animation: bounce 2s infinite;
}

.scroll-text {
  font-size: 14px;
  margin-bottom: 8px;
}

.scroll-arrow {
  font-size: 20px;
}

@keyframes bounce {

  0%,
  20%,
  50%,
  80%,
  100% {
    transform: translateX(-50%) translateY(0);
  }

  40% {
    transform: translateX(-50%) translateY(-10px);
  }

  60% {
    transform: translateX(-50%) translateY(-5px);
  }
}

/* Interactive Learning Hub Section */
.learning-hub-section {
  padding: 120px 0;
  background: var(--elkably-surface);
  position: relative;
  overflow: hidden;
}

.section-bg-pattern {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: radial-gradient(circle at 25% 25%,
      rgba(30, 64, 175, 0.05) 0%,
      transparent 50%),
    radial-gradient(circle at 75% 75%,
      rgba(5, 150, 105, 0.05) 0%,
      transparent 50%);
}

.section-header-new {
  text-align: center;
  margin-bottom: 80px;
}

.section-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(58, 146, 98, 0.1);
  border: 1px solid rgba(58, 146, 98, 0.2);
  border-radius: 50px;
  padding: 8px 16px;
  margin-bottom: 16px;
  color: var(--elkably-primary);
  font-weight: 600;
  font-size: 14px;
}

.section-title-new {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  color: var(--elkably-text);
  margin-bottom: 16px;
}

.section-subtitle-new {
  font-size: 1.125rem;
  color: var(--elkably-text-light);
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.6;
}

.learning-hub-container {
  margin-top: 60px;
}

.interactive-demo-panel {
  background: var(--elkably-bg);
  border-radius: 20px;
  padding: 40px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
  border: 1px solid var(--elkably-border);
  transition: all 0.3s ease;
}

.interactive-demo-panel:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 50px rgba(0, 0, 0, 0.15);
}

.control-group {
  margin-bottom: 30px;
}

.control-label {
  display: block;
  font-weight: 600;
  color: var(--elkably-text);
  margin-bottom: 12px;
}

.concept-buttons {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.concept-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 20px;
  border: 2px solid var(--elkably-border);
  border-radius: 50px;
  background: var(--elkably-bg);
  color: var(--elkably-text);
  cursor: pointer;
  transition: all 0.3s ease;
  font-weight: 500;
}

.concept-btn:hover,
.concept-btn.active {
  border-color: var(--elkably-primary);
  background: var(--elkably-primary);
  color: white;
  transform: translateY(-2px);
}

.parameter-controls {
  margin-bottom: 30px;
}

.slider-control {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 16px;
}

.slider-control label {
  min-width: 120px;
  font-weight: 500;
  color: var(--elkably-text);
}

.math-slider {
  flex: 1;
  height: 6px;
  border-radius: 3px;
  background: var(--elkably-border);
  outline: none;
  -webkit-appearance: none;
  appearance: none;
}

.math-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--elkably-gradient);
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

.slider-value {
  min-width: 40px;
  text-align: center;
  font-weight: 600;
  color: var(--elkably-primary);
}

.action-buttons {
  display: flex;
  gap: 12px;
}

.action-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 20px;
  border: 2px solid var(--elkably-border);
  border-radius: 50px;
  background: var(--elkably-bg);
  color: var(--elkably-text);
  cursor: pointer;
  transition: all 0.3s ease;
  font-weight: 500;
}

.action-btn:hover {
  border-color: var(--elkably-primary-transparent);
  background: var(--elkably-primary-transparent);
  color: white;
  transform: translateY(-2px);
}

.interactive-canvas-container {
  position: relative;
  height: 400px;
  border-radius: 20px;
  overflow: hidden;
  background: var(--elkably-bg);
  border: 1px solid var(--elkably-border);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
}

.math-visualization {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  padding: 20px;
}

.visualization-header {
  text-align: center;
  margin-bottom: 20px;
}

.visualization-header h3 {
  color: var(--elkably-text);
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.visualization-header p {
  color: var(--elkably-text-light);
  font-size: 0.9rem;
}

.visualization-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
}

.math-object {
  width: 120px;
  height: 120px;
  position: relative;
  transform-style: preserve-3d;
  animation: rotate3D 8s infinite linear;
  margin-bottom: 30px;
}

.object-3d {
  width: 100%;
  height: 100%;
  position: relative;
  transform-style: preserve-3d;
}

.cube-face {
  position: absolute;
  width: 120px;
  height: 120px;
  background: linear-gradient(135deg,
      var(--elkably-primary),
      var(--elkably-primary-transparent));
  border: 2px solid rgba(255, 255, 255, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  font-weight: bold;
  color: white;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.cube-face.front {
  transform: translateZ(60px);
}

.cube-face.back {
  transform: translateZ(-60px) rotateY(180deg);
}

.cube-face.right {
  transform: translateX(60px) rotateY(90deg);
}

.cube-face.left {
  transform: translateX(-60px) rotateY(-90deg);
}

.cube-face.top {
  transform: translateY(-60px) rotateX(90deg);
}

.cube-face.bottom {
  transform: translateY(60px) rotateX(-90deg);
}

@keyframes rotate3D {
  0% {
    transform: rotateX(0deg) rotateY(0deg);
  }

  100% {
    transform: rotateX(360deg) rotateY(360deg);
  }
}

.equation-display {
  background: rgba(58, 146, 98, 0.9);
  color: white;
  padding: 12px 20px;
  border-radius: 50px;
  font-family: 'Courier New', monospace;
  font-size: 16px;
  font-weight: 600;
  backdrop-filter: blur(10px);
  margin-bottom: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.equation-label {
  font-size: 12px;
  opacity: 0.8;
}

.equation-text {
  font-size: 14px;
}

.interaction-hint {
  background: rgba(0, 0, 0, 0.7);
  color: white;
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
}

/* Features Grid Section */
.features-grid-section {
  padding: 120px 0;
  background: var(--elkably-bg);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 60px;
}

.feature-card-new {
  background: var(--elkably-surface);
  border-radius: 20px;
  padding: 40px 30px;
  text-align: center;
  position: relative;
  overflow: hidden;
  border: 1px solid var(--elkably-border);
  transition: all 0.3s ease;
  cursor: pointer;
}

.feature-card-new:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
}

.feature-icon-new {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: var(--elkably-gradient);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 24px;
  font-size: 32px;
  color: white;
  position: relative;
  z-index: 2;
}

.feature-title-new {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--elkably-text);
  margin-bottom: 16px;
}

.feature-desc-new {
  color: var(--elkably-text-light);
  line-height: 1.6;
}

.feature-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 100px;
  height: 100px;
  background: radial-gradient(circle, rgba(58, 146, 98, 0.1), transparent);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.feature-card-new:hover .feature-glow {
  opacity: 1;
}

/* Success Stories Section */
.success-stories-section {
  padding: 120px 0;
  background: var(--elkably-surface);
}

.testimonials-carousel-new {
  position: relative;
  max-width: 800px;
  margin: 60px auto 0;
}

.testimonial-card-new {
  background: var(--elkably-bg);
  border-radius: 20px;
  padding: 40px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
  border: 1px solid var(--elkably-border);
  opacity: 0;
  transform: translateX(100px);
  transition: all 0.5s ease;
  display: none;
  width: 100%;
  position: relative;
  overflow: hidden;
}

.testimonial-card-new::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg,
      var(--elkably-primary),
      var(--elkably-primary-transparent));
}

.testimonial-card-new.active {
  opacity: 1;
  transform: translateX(0);
  display: block;
}

.testimonial-card-new:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
}

.testimonial-content-new {
  text-align: center;
  position: relative;
}

.quote-icon {
  font-size: 40px;
  color: var(--elkably-primary);
  margin-bottom: 24px;
}

.testimonial-badge {
  position: absolute;
  top: 20px;
  right: 20px;
  background: linear-gradient(135deg,
      var(--elkably-primary),
      var(--elkably-primary-transparent));
  color: white;
  padding: 8px 12px;
  border-radius: 20px;
  font-size: 14px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 4px;
  box-shadow: 0 4px 12px rgba(58, 146, 98, 0.3);
}

.testimonial-text {
  font-size: 1.25rem;
  line-height: 1.6;
  color: var(--elkably-text);
  margin-bottom: 32px;
  font-style: italic;
}

.student-info {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
}

.student-avatar {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  overflow: hidden;
  border: 3px solid var(--elkably-primary);
  box-shadow: 0 4px 12px rgba(58, 146, 98, 0.3);
  transition: all 0.3s ease;
}

.student-avatar:hover {
  transform: scale(1.1);
  box-shadow: 0 8px 20px rgba(58, 146, 98, 0.4);
}

.student-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.student-details {
  text-align: left;
}

.student-name {
  font-size: 1.125rem;
  font-weight: 700;
  color: white;
  margin-bottom: 4px;
}

.student-grade {
  color: var(--elkably-text-light);
  font-size: 0.875rem;
  margin-bottom: 8px;
}

.student-rating {
  color: var(--elkably-accent);
  font-size: 14px;
  margin-top: 4px;
}

.student-rating i {
  margin-right: 2px;
}

.carousel-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  margin-top: 40px;
}

.carousel-btn {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  border: 2px solid var(--elkably-border);
  background: var(--elkably-bg);
  color: var(--elkably-text);
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.carousel-btn:hover {
  border-color: var(--elkably-primary);
  background: var(--elkably-primary);
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(58, 146, 98, 0.3);
}

.carousel-btn:active {
  transform: translateY(0);
}

.carousel-dots {
  display: flex;
  gap: 8px;
}

.dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--elkably-border);
  cursor: pointer;
  transition: all 0.3s ease;
}

.dot.active {
  background: var(--elkably-primary);
}

/* CTA Section */
.cta-section-new {
  padding: 120px 0;
  background: linear-gradient(135deg,
      var(--elkably-primary) 0%,
      var(--elkably-primary-transparent) 100%);
  position: relative;
  overflow: hidden;
  text-align: center;
}

.cta-bg-animation {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grid" width="10" height="10" patternUnits="userSpaceOnUse"><path d="M 10 0 L 0 0 0 10" fill="none" stroke="rgba(255,255,255,0.1)" stroke-width="0.5"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
  animation: moveGrid 20s linear infinite;
}

@keyframes moveGrid {
  0% {
    transform: translate(0, 0);
  }

  100% {
    transform: translate(10px, 10px);
  }
}

.cta-content-new {
  position: relative;
  z-index: 2;
}

.cta-icon {
  font-size: 60px;
  color: white;
  margin-bottom: 24px;
}

.cta-title-new {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  color: white;
  margin-bottom: 16px;
}

.cta-subtitle-new {
  font-size: 1.25rem;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 40px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.6;
}

.cta-buttons {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-bottom: 40px;
  flex-wrap: wrap;
}

.btn-cta-primary,
.btn-cta-secondary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 16px 32px;
  border-radius: 50px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
  font-size: 16px;
  border: 2px solid transparent;
}

.btn-cta-primary {
  background: white;
  color: var(--elkably-primary);
  border-color: white;
}

.btn-cta-primary:hover {
  background: transparent;
  color: white;
  border-color: white;
  transform: translateY(-2px);
}

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

.btn-cta-secondary:hover {
  background: white;
  color: var(--elkably-primary);
  border-color: white;
  transform: translateY(-2px);
}

.cta-features {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 32px;
  flex-wrap: wrap;
}

.cta-feature {
  display: flex;
  align-items: center;
  gap: 8px;
  color: rgba(255, 255, 255, 0.9);
  font-size: 14px;
}

.cta-feature i {
  color: var(--elkably-accent);
}

/* Responsive Design */
@media (max-width: 768px) {
  .hero-highlights {
    flex-direction: column;
    gap: 16px;
  }

  .interactive-demo-panel {
    padding: 20px;
  }

  .math-object {
    width: 100px;
    height: 100px;
  }

  .cube-face {
    width: 100px;
    height: 100px;
    font-size: 1.5rem;
  }

  .cube-face.front {
    transform: translateZ(50px);
  }

  .cube-face.back {
    transform: translateZ(-50px) rotateY(180deg);
  }

  .cube-face.right {
    transform: translateX(50px) rotateY(90deg);
  }

  .cube-face.left {
    transform: translateX(-50px) rotateY(-90deg);
  }

  .cube-face.top {
    transform: translateY(-50px) rotateX(90deg);
  }

  .cube-face.bottom {
    transform: translateY(50px) rotateX(-90deg);
  }

  .hero-cta-new {
    flex-direction: column;
    align-items: stretch;
  }

  .concept-buttons {
    flex-direction: column;
  }

  .slider-control {
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
  }

  .slider-control label {
    min-width: auto;
  }

  .student-info {
    flex-direction: column;
    text-align: center;
  }

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

  .cta-buttons {
    flex-direction: column;
    align-items: stretch;
  }

  .cta-features {
    flex-direction: column;
    gap: 16px;
  }
}

/* Student Photos Section */
.student-photos-section {
  padding: 120px 0;
  background: var(--elkably-bg);
  position: relative;
  overflow: hidden;
}

.student-photos-container {
  position: relative;
  margin-top: 60px;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
}

.student-photos-slider {
  position: relative;
  width: 100%;
  overflow: hidden;
  border-radius: 20px;
  height: 400px;
}

.slides-container {
  display: flex;
  transition: transform 0.5s cubic-bezier(0.25, 0.1, 0.25, 1);
  height: 100%;
}

.slides-container.smooth-transition {
  transition: transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}

.student-photo-card {
  flex: 0 0 auto;
  width: 350px;
  height: 350px;
  margin-right: 40px;
  border-radius: 20px;
  overflow: hidden;
  position: relative;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  transform: translateY(0);
}

.dark-theme .student-photo-card {
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.student-photo-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.dark-theme .student-photo-card:hover {
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.student-photo {
  width: 100%;
  height: 100%;
  overflow: hidden;
  position: relative;
}

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

.student-photo-card:hover .student-photo img {
  transform: scale(1.05);
}

@keyframes fadeInOut {

  0%,
  100% {
    opacity: 0.8;
  }

  50% {
    opacity: 1;
  }
}

.photo-glow {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to bottom, transparent 70%, rgba(0, 0, 0, 0.7));
  z-index: 2;
}

.student-info-card {
  padding: 20px;
  position: relative;
}

.student-name-card {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--elkably-text);
  margin-bottom: 5px;
}

.student-year-card {
  color: var(--elkably-text-light);
  font-size: 0.9rem;
  margin-bottom: 10px;
}

.student-achievement {
  display: inline-block;
  background: var(--elkably-gradient);
  color: white;
  padding: 5px 12px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
  margin-top: 5px;
}

.slider-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  margin-top: 40px;
  position: relative;
}

.slider-arrow {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  border: 2px solid var(--elkably-border);
  background: var(--elkably-bg);
  color: var(--elkably-text);
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.slider-arrow:hover {
  border-color: var(--elkably-primary);
  background: var(--elkably-primary);
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(58, 146, 98, 0.3);
}

.slider-arrow:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
  border-color: var(--elkably-border);
  background: var(--elkably-bg);
  color: var(--elkably-text);
  box-shadow: none;
}

.slider-pagination {
  display: flex;
  gap: 10px;
}

.pagination-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--elkably-border);
  cursor: pointer;
  transition: all 0.3s ease;
}

.pagination-dot.active {
  background: var(--elkably-primary);
  transform: scale(1.2);
}

/* Autoplay toggle button removed as requested */

.slider-info {
  text-align: center;
  margin-top: 20px;
  font-size: 1rem;
  color: var(--elkably-text-light);
  font-weight: 600;
}

.current-slide {
  color: var(--elkably-primary);
}

.slide-separator {
  margin: 0 5px;
}

/* Fallback content */
.fallback-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 400px;
  background: var(--elkably-surface);
  border-radius: 20px;
  border: 2px dashed var(--elkably-border);
  padding: 40px;
  text-align: center;
}

.fallback-icon {
  font-size: 60px;
  color: var(--elkably-primary);
  margin-bottom: 20px;
  animation: pulse-icon 2s infinite ease-in-out;
}

@keyframes pulse-icon {

  0%,
  100% {
    transform: scale(1);
    opacity: 0.8;
  }

  50% {
    transform: scale(1.1);
    opacity: 1;
  }
}

.fallback-content h3 {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--elkably-text);
  margin-bottom: 15px;
}

.fallback-content p {
  color: var(--elkably-text-light);
  max-width: 400px;
  margin: 0 auto;
}

/* Student photo hover effects */
.student-photo-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to top,
      rgba(58, 146, 98, 0.9) 0%,
      rgba(58, 146, 98, 0.7) 40%,
      rgba(58, 146, 98, 0.4) 60%,
      transparent 100%);
  opacity: 0;
  transition: opacity 0.3s ease;
  display: flex;
  align-items: flex-end;
  padding: 20px;
  z-index: 3;
}

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

.overlay-content {
  color: white;
}

.overlay-title {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 5px;
}

.overlay-subtitle {
  font-size: 0.9rem;
  opacity: 0.9;
}

/* Responsive styles for student photos section */
@media (max-width: 768px) {
  .student-photos-grid {
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 20px;
  }

  .student-photo-card {
    width: 280px;
    height: 350px;
    margin-right: 20px;
  }

  .student-photo {
    height: 200px;
  }

  .student-info-card {
    padding: 15px;
  }

  .student-name-card {
    font-size: 1.1rem;
  }
}

/* AOS Animation Styles */
[data-aos='fade-up'] {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.6s ease;
}

[data-aos='fade-up'].aos-animate {
  opacity: 1;
  transform: translateY(0);
}

/* ============================= */
/* Brilliant Students New Design */
/* ============================= */
.brilliant-students-new {
  padding: 120px 0;
  background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
  position: relative;
  overflow: hidden;
}

.dark-theme .brilliant-students-new {
  background: linear-gradient(135deg, #1a1a1a 0%, #2a1a1a 100%);
}

.section-header-new {
  margin-bottom: 50px;
  text-align: center;
}

.section-title-new {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 15px;
}

.dark-theme .section-title-new {
  color: #ffffff;
}

.section-subtitle-new {
  font-size: 1.1rem;
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto;
}

.dark-theme .section-subtitle-new {
  color: rgba(255, 255, 255, 0.8);
}

.students-slider-new {
  position: relative;
  overflow: hidden;
  padding: 20px 60px;
  margin: 0 -15px;
  /* Break out of container */
  width: calc(100vw - 0px);
  /* Full viewport width */
  left: 50%;
  transform: translateX(-50%);
}

.students-slides-new {
  display: flex;
  gap: 20px;
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.student-card-new {
  flex: 0 0 400px;
  background: rgba(255, 255, 255, 0.95);
  border-radius: 16px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  min-height: 200px;
}

.dark-theme .student-card-new {
  background: rgba(255, 255, 255, 0.08);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.student-card-new:hover {
  transform: translateY(-8px);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.15);
}

.dark-theme .student-card-new:hover {
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.4);
}

.student-photo-new {
  flex: 0 0 120px;
  position: relative;
  overflow: hidden;
}

.student-photo-new img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.student-card-new:hover .student-photo-new img {
  transform: scale(1.05);
}

.fallback-shape-new {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, var(--elkably-primary), #d32f2f);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 700;
  font-size: 1.2rem;
}

.student-content-new {
  flex: 1;
  padding: 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.student-badge-new {
  margin-bottom: 12px;
}

.test-type {
  display: inline-block;
  background: rgba(184, 1, 1, 0.1);
  color: var(--elkably-primary);
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.dark-theme .test-type {
  background: rgba(184, 1, 1, 0.2);
  color: #ffffff;
}

.student-name-new {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0 0 15px 0;
  transition: color 0.3s ease;
}

.dark-theme .student-name-new {
  color: #ffffff;
}

.student-card-new:hover .student-name-new {
  color: var(--elkably-primary);
}

.score-display-new {
  display: flex;
  align-items: baseline;
  gap: 8px;
}

.score-number {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--elkably-primary);
  line-height: 1;
}

.score-label {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.dark-theme .score-label {
  color: rgba(255, 255, 255, 0.7);
}

/* Professional Progress Bar System */
.test-score-container {
  position: relative;
  width: 100%;
  margin-top: 12px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  padding: 16px;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.test-score-header {
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.test-score-value {
  font-size: 2rem;
  font-weight: 800;
  background: linear-gradient(135deg, var(--elkably-primary) 0%, #ff6b6b 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
}

.test-score-max {
  font-size: 1.1rem;
  color: #666;
  font-weight: 600;
}

.dark-theme .test-score-max {
  color: #ccc;
}

.test-progress-wrapper {
  position: relative;
  margin-bottom: 8px;
}

.test-progress-bar {
  width: 100%;
  height: 12px;
  background: rgba(0, 0, 0, 0.1);
  border-radius: 8px;
  overflow: hidden;
  position: relative;
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1);
}

.test-progress-fill {
  height: 100%;
  border-radius: 8px;
  transition: width 2s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.test-progress-fill::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent 0%, rgba(255, 255, 255, 0.4) 50%, transparent 100%);
  animation: professionalShine 3s infinite;
}

@keyframes professionalShine {
  0% {
    left: -100%;
  }

  50% {
    left: 100%;
  }

  100% {
    left: 100%;
  }
}

.test-progress-fill::after {
  content: '';
  position: absolute;
  top: 50%;
  right: 8px;
  transform: translateY(-50%);
  width: 4px;
  height: 4px;
  background: rgba(255, 255, 255, 0.8);
  border-radius: 50%;
  box-shadow: 0 0 6px rgba(255, 255, 255, 0.6);
}

.test-progress-label {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 8px;
  font-size: 0.85rem;
}

.test-percentage {
  font-weight: 700;
  color: var(--elkably-primary);
  font-size: 0.9rem;
}

.test-category {
  color: #666;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-size: 0.8rem;
}

.dark-theme .test-category {
  color: #ccc;
}

.dark-theme .test-score-container {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.1);
}

.dark-theme .test-progress-bar {
  background: rgba(255, 255, 255, 0.1);
}

/* Unified Red Color Scheme for All Test Types */
.est-progress-fill,
.dsat-progress-fill,
.act-progress-fill {
  background: linear-gradient(135deg, var(--elkably-primary) 0%, #ff6b6b 50%, #ff8a80 100%);
}

.est-score-value,
.dsat-score-value,
.act-score-value {
  background: linear-gradient(135deg, var(--elkably-primary) 0%, #ff6b6b 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.est-percentage,
.dsat-percentage,
.act-percentage {
  color: var(--elkably-primary);
}

/* Perfect Score Styling - Using Red Color Scheme */
.test-percentage:contains("Perfect") {
  color: var(--elkably-primary) !important;
  font-weight: 700;
}

/* Perfect score progress bars - Using Red Color Scheme */
.test-progress-fill[style*="width: 100%"] {
  background: linear-gradient(135deg, var(--elkably-primary) 0%, #ff6b6b 50%, #ff8a80 100%) !important;
}

.slider-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid rgba(0, 0, 0, 0.1);
  background: #fff;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  z-index: 10;
}

.slider-arrow:hover {
  transform: translateY(-50%) scale(1.05);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.slider-arrow:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.slider-arrow:disabled:hover {
  transform: translateY(-50%);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.slider-arrow-prev {
  left: 10px;
}

.slider-arrow-next {
  right: 10px;
}

.dark-theme .slider-arrow {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.2);
  color: #ffffff;
  backdrop-filter: blur(10px);
}

.dark-theme .slider-arrow:hover {
  background: rgba(255, 255, 255, 0.15);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

/* Pagination Dots */
.slider-pagination {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-top: 30px;
}

.pagination-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(184, 1, 1, 0.3);
  cursor: pointer;
  transition: all 0.3s ease;
  border: none;
}

.pagination-dot:hover {
  background: rgba(184, 1, 1, 0.6);
  transform: scale(1.2);
}

.pagination-dot.active {
  background: var(--elkably-primary);
  transform: scale(1.3);
}

.dark-theme .pagination-dot {
  background: rgba(255, 255, 255, 0.3);
}

.dark-theme .pagination-dot:hover {
  background: rgba(255, 255, 255, 0.6);
}

.dark-theme .pagination-dot.active {
  background: #ffffff;
}

/* Responsive Design */
@media (max-width: 768px) {
  .brilliant-students-new {
    padding: 100px 0;
  }

  .section-title-new {
    font-size: 2rem;
  }

  .students-slider-new {
    padding: 0 40px;
    width: calc(100vw - 0px);
    left: 50%;
    transform: translateX(-50%);
  }

  .student-card-new {
    flex: 0 0 320px;
    min-height: 180px;
  }

  .student-photo-new {
    flex: 0 0 100px;
  }

  .student-content-new {
    padding: 15px;
  }

  .student-name-new {
    font-size: 1.1rem;
  }

  .score-number {
    font-size: 1.5rem;
  }

  .slider-arrow {
    width: 36px;
    height: 36px;
    font-size: 0.9rem;
  }

  .slider-arrow-prev {
    left: 5px;
  }

  .slider-arrow-next {
    right: 5px;
  }
}

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

  .students-slider-new {
    padding: 0 30px;
    width: calc(100vw - 0px);
    left: 50%;
    transform: translateX(-50%);
  }

  .student-card-new {
    flex: 0 0 280px;
    min-height: 160px;
  }

  .student-photo-new {
    flex: 0 0 80px;
  }

  .student-content-new {
    padding: 12px;
  }

  .student-name-new {
    font-size: 1rem;
    margin-bottom: 10px;
  }

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

  .test-type {
    font-size: 0.7rem;
    padding: 3px 10px;
  }

  .slider-arrow {
    width: 32px;
    height: 32px;
    font-size: 0.8rem;
  }
}

/* Online Courses Section */
.online-courses-section {
  padding: 100px 0;
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  position: relative;
  overflow: hidden;
}

.dark-theme .online-courses-section {
  background: linear-gradient(135deg, #1a1a1a 0%, #2a1a1a 100%);
}

.courses-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
  position: relative;
  z-index: 2;
  max-width: 100%;
  justify-content: center;
}

.course-card {
  background: rgba(255, 255, 255, 0.95);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  position: relative;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.dark-theme .course-card {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.course-card:hover {
  transform: translateY(-10px) scale(1.02);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.dark-theme .course-card:hover {
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.course-favorite-btn {
  position: absolute;
  top: 15px;
  right: 15px;
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.9);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  z-index: 10;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.dark-theme .course-favorite-btn {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.course-favorite-btn:hover {
  transform: scale(1.1);
  background: rgba(255, 255, 255, 1);
}

.dark-theme .course-favorite-btn:hover {
  background: rgba(255, 255, 255, 0.2);
}

.course-favorite-btn i {
  font-size: 18px;
  color: #666;
  transition: all 0.3s ease;
}

.dark-theme .course-favorite-btn i {
  color: #ccc;
}

.course-card-media {
  position: relative;
  height: 200px;
  overflow: hidden;
}

.course-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.course-card:hover .course-card-media img {
  transform: scale(1.1);
}

.course-offer-badge {
  position: absolute;
  top: 15px;
  left: 15px;
  background: linear-gradient(135deg, var(--elkably-primary) 0%, #ff6b6b 100%);
  color: white;
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  box-shadow: 0 4px 15px rgba(184, 1, 1, 0.3);
  z-index: 5;
}

.course-offer-badge.new {
  background: linear-gradient(135deg, #4caf50 0%, #66bb6a 100%);
  box-shadow: 0 4px 15px rgba(76, 175, 80, 0.3);
}

.course-card-body {
  padding: 25px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0.7));
  backdrop-filter: blur(10px);
}

.dark-theme .course-card-body {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.04));
}

.course-card-separator {
  width: 50px;
  height: 3px;
  background: linear-gradient(135deg, var(--elkably-primary) 0%, #ff6b6b 100%);
  border-radius: 2px;
  margin-bottom: 20px;
}

.course-card-title {
  font-size: 1.4rem;
  font-weight: 700;
  color: #1a1a1a;
  margin-bottom: 15px;
  line-height: 1.3;
}

.dark-theme .course-card-title {
  color: #ffffff;
}

.course-price-container {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 15px;
}

.course-price-original {
  font-size: 1rem;
  color: #999;
  text-decoration: line-through;
  font-weight: 500;
}

.dark-theme .course-price-original {
  color: #666;
}

.course-price-current {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--elkably-primary);
  background: linear-gradient(135deg, var(--elkably-primary) 0%, #ff6b6b 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.course-features {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 20px;
}

.course-feature {
  background: rgba(184, 1, 1, 0.1);
  color: var(--elkably-primary);
  padding: 4px 10px;
  border-radius: 15px;
  font-size: 0.8rem;
  font-weight: 500;
  border: 1px solid rgba(184, 1, 1, 0.2);
}

.dark-theme .course-feature {
  background: rgba(184, 1, 1, 0.2);
  border: 1px solid rgba(184, 1, 1, 0.3);
}

.course-actions {
  margin-top: 20px;
}

.btn-add-to-cart {
  width: 100%;
  background: linear-gradient(135deg, var(--elkably-primary) 0%, #ff6b6b 100%);
  color: white;
  border: none;
  padding: 12px 20px;
  border-radius: 12px;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  position: relative;
  overflow: hidden;
}

.btn-add-to-cart::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.5s ease;
}

.btn-add-to-cart:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(184, 1, 1, 0.3);
}

.btn-add-to-cart:hover::before {
  left: 100%;
}

.btn-add-to-cart:active {
  transform: translateY(0);
}

.btn-add-to-cart i {
  font-size: 16px;
}

/* Show More/Less Functionality */
.course-card-hidden {
  display: none;
  opacity: 0;
  transform: translateY(20px);
}

.course-card-visible {
  display: block;
  opacity: 1;
  transform: translateY(0);
  animation: courseCardAppear 0.5s ease-out forwards;
}

@keyframes courseCardAppear {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.courses-show-more-container {
  margin-top: 50px;
}

.btn-show-more {
  background: transparent;
  border: 2px solid var(--elkably-primary);
  color: var(--elkably-primary);
  padding: 15px 30px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  position: relative;
  overflow: hidden;
}

.dark-theme .btn-show-more {
  border-color: var(--elkably-primary);
  color: var(--elkably-primary);
}

.btn-show-more::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, var(--elkably-primary) 0%, #ff6b6b 100%);
  transition: left 0.4s ease;
  z-index: -1;
}

.btn-show-more:hover {
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(184, 1, 1, 0.3);
}

.btn-show-more:hover::before {
  left: 0;
}

.show-more-icon {
  transition: transform 0.3s ease;
}

/* Responsive Design */
@media (min-width: 1400px) {
  .courses-grid {
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2.5rem;
  }
}

@media (max-width: 1200px) {
  .courses-grid {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
  }
}

@media (max-width: 992px) {
  .courses-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
  }
}

@media (max-width: 768px) {
  .online-courses-section {
    padding: 80px 0;
  }

  .courses-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin-top: 2rem;
    justify-content: center;
  }

  .course-card {
    margin: 0 15px;
  }

  .course-card-body {
    padding: 20px;
  }

  .course-card-title {
    font-size: 1.2rem;
  }

  .course-price-current {
    font-size: 1.3rem;
  }

  .btn-show-more {
    padding: 12px 25px;
    font-size: 0.9rem;
  }
}

@media (max-width: 480px) {
  .online-courses-section {
    padding: 60px 0;
  }

  .courses-grid {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 15px;
    margin-top: 30px;
    justify-content: center;
  }

  .course-card-media {
    height: 180px;
  }

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

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

  .course-features {
    gap: 6px;
  }

  .course-feature {
    font-size: 0.75rem;
    padding: 3px 8px;
  }

  .btn-add-to-cart {
    padding: 10px 16px;
    font-size: 0.9rem;
  }
}

/* Shopping Cart System */
.header-cart {
  position: relative;
  margin-right: 15px;
}

.cart-toggle-btn {
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 8px;
  border-radius: 8px;
  transition: all 0.3s ease;
  position: relative;
}

.cart-toggle-btn:hover {
  background: rgba(255, 255, 255, 0.1);
}

.dark-theme .cart-toggle-btn:hover {
  background: rgba(255, 255, 255, 0.05);
}

.cart-icon-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.cart-icon {
  font-size: 20px;
  color: var(--elkably-primary);
  transition: all 0.3s ease;
}

.cart-toggle-btn:hover .cart-icon {
  transform: scale(1.1);
  color: #ff6b6b;
}

.cart-count {
  position: absolute;
  top: -8px;
  right: -8px;
  background: var(--elkably-primary);
  color: white;
  border-radius: 50%;
  width: 20px;
  height: 20px;
  font-size: 12px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid white;
  transition: all 0.3s ease;
}

.dark-theme .cart-count {
  border-color: #1a1a1a;
}

.cart-count-updated {
  animation: cartCountBounce 0.3s ease;
}

@keyframes cartCountBounce {
  0% {
    transform: scale(1);
  }

  50% {
    transform: scale(1.3);
  }

  100% {
    transform: scale(1);
  }
}

/* Cart Sidebar */
.cart-sidebar {
  position: fixed;
  top: 0;
  right: -450px;
  width: 450px;
  height: 100vh;
  z-index: 9999;
  transition: right 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.cart-sidebar-open {
  right: 0;
}

.cart-sidebar-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.5);
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  z-index: -1;
}

.cart-sidebar-open .cart-sidebar-overlay {
  opacity: 1;
  visibility: visible;
}

.cart-sidebar-content {
  background: white;
  height: 100%;
  display: flex;
  flex-direction: column;
  box-shadow: -5px 0 25px rgba(0, 0, 0, 0.1);
}

.dark-theme .cart-sidebar-content {
  background: #1a1a1a;
  box-shadow: -5px 0 25px rgba(0, 0, 0, 0.3);
}

.cart-sidebar-header {
  padding: 20px 25px;
  border-bottom: 1px solid #eee;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: linear-gradient(135deg, var(--elkably-primary) 0%, #ff6b6b 100%);
  color: white;
}

.dark-theme .cart-sidebar-header {
  border-bottom-color: #333;
  background: linear-gradient(135deg, var(--elkably-primary) 0%, #ff6b6b 100%);
}

.cart-sidebar-title {
  color: white;
  font-size: 1.5rem;
  font-weight: 700;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 10px;
}

.cart-sidebar-close {
  background: transparent;
  border: none;
  color: white;
  font-size: 20px;
  cursor: pointer;
  padding: 5px;
  border-radius: 4px;
  transition: all 0.3s ease;
}

.cart-sidebar-close:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: scale(1.1);
}

.cart-sidebar-body {
  flex: 1;
  overflow-y: auto;
  padding: 0;
}

.cart-items {
  padding: 20px;
}

.cart-empty {
  text-align: center;
  padding: 60px 20px;
  color: #666;
}

.dark-theme .cart-empty {
  color: #999;
}

.cart-empty-icon {
  font-size: 48px;
  color: #ddd;
  margin-bottom: 20px;
}

.dark-theme .cart-empty-icon {
  color: #444;
}

.cart-empty h4 {
  font-size: 1.3rem;
  margin-bottom: 10px;
  color: #333;
}

.dark-theme .cart-empty h4 {
  color: #ccc;
}

.cart-empty p {
  color: #666;
  font-size: 0.95rem;
}

.dark-theme .cart-empty p {
  color: #999;
}

.cart-item {
  display: flex;
  gap: 15px;
  padding: 15px 0;
  border-bottom: 1px solid #eee;
  animation: cartItemSlideIn 0.3s ease;
}

.dark-theme .cart-item {
  border-bottom-color: #333;
}

@keyframes cartItemSlideIn {
  from {
    opacity: 0;
    transform: translateX(20px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.cart-item-image {
  flex: 0 0 60px;
  height: 60px;
  border-radius: 8px;
  overflow: hidden;
  background: #f8f9fa;
}

.dark-theme .cart-item-image {
  background: #333;
}

.cart-item-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cart-item-details {
  flex: 1;
  min-width: 0;
}

.cart-item-title {
  font-size: 0.95rem;
  font-weight: 600;
  margin: 0 0 8px 0;
  color: #333;
  line-height: 1.3;
  display: -webkit-box;
  line-clamp: 2;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.dark-theme .cart-item-title {
  color: #fff;
}

.cart-item-price {
  font-size: 1rem;
  font-weight: 700;
  color: var(--elkably-primary);
  margin-bottom: 10px;
}

.cart-item-controls {
  display: flex;
  align-items: center;
  gap: 8px;
}

.cart-quantity-btn {
  width: 28px;
  height: 28px;
  border: 1px solid #ddd;
  background: white;
  color: #666;
  border-radius: 4px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 600;
  transition: all 0.2s ease;
}

.dark-theme .cart-quantity-btn {
  border-color: #555;
  background: #333;
  color: #ccc;
}

.cart-quantity-btn:hover {
  background: var(--elkably-primary);
  color: white;
  border-color: var(--elkably-primary);
}

.cart-quantity {
  font-weight: 600;
  color: #333;
  min-width: 20px;
  text-align: center;
}

.dark-theme .cart-quantity {
  color: #fff;
}

.cart-item-actions {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  padding-top: 5px;
}

.cart-remove-btn {
  background: transparent;
  border: none;
  color: #dc3545;
  cursor: pointer;
  padding: 5px;
  border-radius: 4px;
  transition: all 0.2s ease;
  font-size: 14px;
}

.cart-remove-btn:hover {
  background: #dc3545;
  color: white;
  transform: scale(1.1);
}

.cart-sidebar-footer {
  border-top: 1px solid #eee;
  padding: 20px 25px;
  background: #f8f9fa;
}

.dark-theme .cart-sidebar-footer {
  border-top-color: #333;
  background: #222;
}

.cart-total {
  margin-bottom: 20px;
}

.cart-total-row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 8px;
  font-size: 0.95rem;
}

.cart-total-row span:first-child {
  color: #666;
}

.dark-theme .cart-total-row span:first-child {
  color: #999;
}

.cart-total-row span:last-child {
  font-weight: 600;
  color: #333;
}

.dark-theme .cart-total-row span:last-child {
  color: #fff;
}

.cart-total-final {
  border-top: 1px solid #ddd;
  padding-top: 12px;
  margin-top: 12px;
  font-size: 1.1rem;
  font-weight: 700;
}

.dark-theme .cart-total-final {
  border-top-color: #555;
}

.cart-total-amount {
  color: var(--elkably-primary) !important;
}

.cart-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.btn-cart-checkout {
  background: linear-gradient(135deg, var(--elkably-primary) 0%, #ff6b6b 100%);
  color: white;
  border: none;
  padding: 15px 20px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.btn-cart-checkout:disabled {
  background: #ccc;
  cursor: not-allowed;
  opacity: 0.6;
}

.btn-cart-checkout:not(:disabled):hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(184, 1, 1, 0.3);
}

.btn-cart-continue {
  background: transparent;
  color: #666;
  border: 1px solid #ddd;
  padding: 12px 20px;
  border-radius: 8px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
}

.dark-theme .btn-cart-continue {
  color: #999;
  border-color: #555;
}

.btn-cart-continue:hover {
  background: #f8f9fa;
  border-color: var(--elkably-primary);
  color: var(--elkably-primary);
}

.dark-theme .btn-cart-continue:hover {
  background: #333;
  color: var(--elkably-primary);
}

/* Cart Notification */
.cart-notification {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0);
  background: white;
  border: 2px solid #ddd;
  border-radius: 16px;
  padding: 25px 35px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25);
  z-index: 10000;
  transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  min-width: 350px;
  text-align: center;
  opacity: 0;
  visibility: hidden;
  backdrop-filter: blur(10px);
}

.dark-theme .cart-notification {
  background: #1a1a1a;
  border-color: #333;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4);
}

.cart-notification.show {
  transform: translate(-50%, -50%) scale(1);
  opacity: 1;
  visibility: visible;
}

.cart-notification-content {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  color: #333;
  font-weight: 500;
  position: relative;
}

.dark-theme .cart-notification-content {
  color: #fff;
}

.cart-notification-content i {
  font-size: 20px;
  animation: notificationIconPulse 0.6s ease-in-out;
}

/* Notification Types */
.cart-notification-success {
  border-left: 4px solid #4caf50;
  background: linear-gradient(135deg, #ffffff 0%, #f8fff8 100%);
}

.dark-theme .cart-notification-success {
  background: linear-gradient(135deg, #1a1a1a 0%, #0f1a0f 100%);
}

.cart-notification-success .cart-notification-content i {
  color: #4caf50;
}

.cart-notification-error {
  border-left: 4px solid #f44336;
  background: linear-gradient(135deg, #ffffff 0%, #fff8f8 100%);
}

.dark-theme .cart-notification-error {
  background: linear-gradient(135deg, #1a1a1a 0%, #1a0f0f 100%);
}

.cart-notification-error .cart-notification-content i {
  color: #f44336;
}

.cart-notification-info {
  border-left: 4px solid #2196f3;
  background: linear-gradient(135deg, #ffffff 0%, #f8faff 100%);
}

.dark-theme .cart-notification-info {
  background: linear-gradient(135deg, #1a1a1a 0%, #0f141a 100%);
}

.cart-notification-info .cart-notification-content i {
  color: #2196f3;
}

@keyframes notificationIconPulse {
  0% {
    transform: scale(1);
  }

  50% {
    transform: scale(1.2);
  }

  100% {
    transform: scale(1);
  }
}

/* Body scroll lock when cart is open */
.cart-sidebar-active {
  overflow: hidden;
}

/* Responsive Design */
@media (max-width: 768px) {
  .cart-sidebar {
    width: 100vw;
    right: -100vw;
    z-index: 9999;
  }

  .cart-sidebar-open {
    right: 0;
  }

  /* .cart-sidebar-overlay {
    background: rgba(0, 0, 0, 0.8);
    z-index: 9998;
  } */

  .cart-notification {
    min-width: 280px;
    padding: 15px 20px;
  }

  .cart-sidebar-header,
  .cart-sidebar-footer {
    padding: 15px 20px;
  }

  .cart-items {
    padding: 15px;
  }

  .cart-item {
    padding: 12px 0;
  }

  .cart-item-image {
    flex: 0 0 50px;
    height: 50px;
  }
}

@media (max-width: 480px) {
  .header-cart {
    margin-right: 10px;
  }

  .cart-icon {
    font-size: 18px;
  }

  .cart-count {
    width: 18px;
    height: 18px;
    font-size: 11px;
  }

  .cart-sidebar-title {
    font-size: 1.3rem;
  }

  .cart-item-title {
    font-size: 0.9rem;
  }

  .cart-item-price {
    font-size: 0.9rem;
  }
}

/* ===========================================
   ENHANCED TEAM CAROUSEL STYLES
   =========================================== */

/* Team Section Container */
/* ============================================
   ELKABLY TEAM SECTION - ENHANCED RESPONSIVE
   Modern, Fully Responsive Design
   ============================================ */

.elkably-team-section-new {
  padding: 80px 0;
  background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
  position: relative;
  overflow: hidden;
  width: 100%;
}

.elkably-team-section-new .container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 40px;
}

/* Layout Wrapper - 3 Columns on Desktop, Stacked on Mobile */
.team-layout-wrapper {
  display: grid;
  grid-template-columns: 250px 1fr 520px;
  gap: 60px;
  align-items: center;
  width: 100%;
}

/* Team Columns */
.team-column {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.team-column-logo {
  align-items: center;
  justify-content: center;
}

.team-column-text {
  align-items: flex-start;
}

.team-column-carousel {
  align-items: stretch;
}

/* Logo Wrapper */
.team-logo-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
}

.team-logo-circle {
  width: 200px;
  height: 200px;
  border-radius: 50%;
  background: white;
  box-shadow: 0 20px 60px rgba(184, 1, 1, 0.2);
  padding: 20px;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.team-logo-circle:hover {
  transform: scale(1.05);
  box-shadow: 0 25px 70px rgba(184, 1, 1, 0.3);
}

.team-logo-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* Header Content */
.team-header-content {
  width: 100%;
}

.team-section-title {
  font-size: 3rem;
  font-weight: 700;
  margin-bottom: 20px;
  color: #1e293b;
  letter-spacing: 1px;
  line-height: 1.2;
}

.team-title-accent {
  color: #B80101;
}

.team-section-description {
  font-size: 1.2rem;
  line-height: 1.8;
  color: #64748b;
  margin: 0;
  max-width: 100%;
}

/* Team Carousel Wrapper */
.team-carousel-wrapper {
  position: relative;
  width: 100%;
  height: 100%;
}

/* Team Carousel Container */
.team-carousel-container-new {
  position: relative;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-radius: 24px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.08),
    0 0 0 1px rgba(255, 255, 255, 0.5),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
  overflow: hidden;
  border: 1px solid rgba(184, 1, 1, 0.1);
  min-height: 500px;
}

/* Team Carousel Track */
.team-carousel-track {
  position: relative;
  width: 100%;
  height: 500px;
  overflow: hidden;
}

/* Team Member Slide */
.team-member-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: none;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  padding: 40px;
}

.team-member-slide.active {
  display: flex;
  opacity: 1;
  z-index: 2;
}

/* Team Member Card */
.team-member-card-new {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 30px;
  width: 100%;
  max-width: 100%;
}

/* Team Member Avatar */
.team-member-avatar {
  width: 220px;
  height: 220px;
  border-radius: 20px;
  overflow: hidden;
  position: relative;
  background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
  transition: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
  flex-shrink: 0;
  box-shadow: 0 20px 60px rgba(184, 1, 1, 0.2),
    0 8px 24px rgba(0, 0, 0, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
  border: 4px solid transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
}

.team-member-avatar::before {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: 20px;
  padding: 4px;
  background: linear-gradient(135deg, #B80101, #ff4757, #B80101);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask-composite: exclude;
  z-index: -1;
  opacity: 0.8;
  transition: opacity 0.5s ease;
}

.team-member-slide.active .team-member-avatar::before {
  animation: borderGlow 3s ease-in-out infinite;
}

@keyframes borderGlow {

  0%,
  100% {
    opacity: 0.8;
  }

  50% {
    opacity: 1;
  }
}

.team-member-avatar:hover {
  transform: translateY(-12px) scale(1.05);
  box-shadow: 0 30px 80px rgba(184, 1, 1, 0.35),
    0 12px 32px rgba(0, 0, 0, 0.15),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.team-member-avatar:hover::before {
  opacity: 1;
  background: linear-gradient(135deg, #B80101, #ff6b6b, #ff4757, #B80101);
}

.team-member-avatar img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  transition: transform 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
  display: block;
  padding: 2px;
  box-sizing: border-box;
}

.team-member-avatar:hover img {
  transform: scale(1.1);
}

/* Team Member Fallback */
.team-member-fallback-new {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #B80101 0%, #ff4757 50%, #B80101 100%);
  background-size: 200% 200%;
  animation: gradientShift 3s ease infinite;
  color: white;
  font-weight: 800;
  font-size: 4rem;
  position: absolute;
  top: 0;
  left: 0;
  overflow: hidden;
}

.team-member-fallback-new::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.3) 0%, transparent 70%);
  animation: shimmer 2s ease-in-out infinite;
}

@keyframes gradientShift {

  0%,
  100% {
    background-position: 0% 50%;
  }

  50% {
    background-position: 100% 50%;
  }
}

@keyframes shimmer {
  0% {
    transform: translate(-50%, -50%) rotate(0deg);
  }

  100% {
    transform: translate(-50%, -50%) rotate(360deg);
  }
}

.fallback-initials-new {
  font-family: 'Poppins', sans-serif;
  font-weight: 800;
  letter-spacing: 3px;
  position: relative;
  z-index: 1;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

/* Team Member Info */
.team-member-info-new {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 15px;
  width: 100%;
}

.team-member-name-new {
  font-size: 2rem;
  font-weight: 800;
  background: linear-gradient(135deg, #1e293b 0%, #334155 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin: 0;
  line-height: 1.2;
  position: relative;
  display: inline-block;
}

.team-member-name-new::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 3px;
  background: linear-gradient(90deg, transparent, #B80101, transparent);
  border-radius: 2px;
  opacity: 0.6;
}

.team-member-role-new {
  font-size: 1.1rem;
  color: #64748b;
  margin: 0;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 2px;
  padding: 8px 16px;
  display: inline-block;
  background: rgba(184, 1, 1, 0.05);
  border-radius: 20px;
  border: 1px solid rgba(184, 1, 1, 0.1);
}

/* Navigation Buttons */
.team-nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 56px;
  height: 56px;
  border-radius: 50%;
  border: 2px solid rgba(184, 1, 1, 0.2);
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: #B80101;
  font-size: 1.3rem;
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12),
    0 0 0 1px rgba(255, 255, 255, 0.5);
}

.team-nav-prev {
  left: 24px;
}

.team-nav-next {
  right: 24px;
}

.team-nav-btn:hover {
  background: linear-gradient(135deg, #B80101, #ff4757);
  color: white;
  transform: translateY(-50%) scale(1.15);
  box-shadow: 0 12px 32px rgba(184, 1, 1, 0.4),
    0 0 0 4px rgba(184, 1, 1, 0.1);
  border-color: transparent;
}

.team-nav-btn:active {
  transform: translateY(-50%) scale(1.05);
}

.team-nav-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
  pointer-events: none;
}

/* Carousel Dots */
.team-carousel-dots {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  padding: 24px 20px;
  background: linear-gradient(180deg, rgba(248, 250, 252, 0.5) 0%, rgba(255, 255, 255, 0.8) 100%);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-top: 1px solid rgba(184, 1, 1, 0.1);
  flex-wrap: wrap;
}

.team-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(203, 213, 225, 0.6);
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  border: 2px solid transparent;
  padding: 0;
  flex-shrink: 0;
}

.team-dot:hover {
  background: rgba(148, 163, 184, 0.8);
  transform: scale(1.4);
  border-color: rgba(184, 1, 1, 0.3);
}

.team-dot.active {
  width: 32px;
  height: 10px;
  border-radius: 10px;
  background: linear-gradient(90deg, #B80101, #ff4757);
  transform: scale(1);
  border-color: transparent;
  box-shadow: 0 4px 12px rgba(184, 1, 1, 0.4),
    0 0 0 2px rgba(255, 255, 255, 0.8),
    inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

/* Responsive Design */
@media (max-width: 1200px) {
  .elkably-team-section-new .container {
    padding: 0 30px;
  }

  .team-layout-wrapper {
    grid-template-columns: 200px 1fr 450px;
    gap: 40px;
  }

  .team-logo-circle {
    width: 160px;
    height: 160px;
  }

  .team-section-title {
    font-size: 2.5rem;
  }

  .team-section-description {
    font-size: 1.1rem;
  }

  .team-carousel-container-new {
    min-height: 460px;
  }

  .team-carousel-track {
    height: 460px;
  }

  .team-member-avatar {
    width: 200px;
    height: 200px;
  }

  .team-member-name-new {
    font-size: 1.85rem;
  }
}

@media (max-width: 992px) {
  .elkably-team-section-new {
    padding: 60px 0;
  }

  .elkably-team-section-new .container {
    padding: 0 20px;
  }

  /* Stack columns vertically on tablet and below */
  .team-layout-wrapper {
    grid-template-columns: 1fr;
    gap: 40px;
    text-align: center;
  }

  .team-column {
    align-items: center;
  }

  .team-column-text {
    align-items: center;
  }

  .team-header-content {
    text-align: center;
    max-width: 700px;
    margin: 0 auto;
  }

  .team-logo-circle {
    width: 150px;
    height: 150px;
  }

  .team-section-title {
    font-size: 2.2rem;
  }

  .team-section-description {
    font-size: 1rem;
    padding: 0 10px;
  }

  .team-carousel-wrapper {
    max-width: 100%;
  }

  .team-carousel-container-new {
    min-height: 440px;
  }

  .team-carousel-track {
    height: 440px;
  }

  .team-member-slide {
    padding: 30px 20px;
  }

  .team-member-avatar {
    width: 180px;
    height: 180px;
  }

  .team-member-name-new {
    font-size: 1.6rem;
  }

  .team-member-role-new {
    font-size: 1rem;
  }
}

@media (max-width: 768px) {
  .elkably-team-section-new {
    padding: 50px 0;
  }

  .elkably-team-section-new .container {
    padding: 0 15px;
  }

  .team-layout-wrapper {
    gap: 30px;
  }

  .team-logo-circle {
    width: 130px;
    height: 130px;
    padding: 15px;
  }

  .team-section-title {
    font-size: 1.8rem;
    margin-bottom: 15px;
  }

  .team-section-description {
    font-size: 0.95rem;
  }

  .team-carousel-container-new {
    min-height: 420px;
    border-radius: 20px;
  }

  .team-carousel-track {
    height: 420px;
  }

  .team-member-slide {
    padding: 30px 25px;
  }

  .team-member-card-new {
    gap: 25px;
  }

  .team-member-avatar {
    width: 180px;
    height: 180px;
  }

  .team-member-name-new {
    font-size: 1.5rem;
  }

  .team-member-role-new {
    font-size: 0.95rem;
    padding: 6px 14px;
  }

  .team-nav-btn {
    width: 44px;
    height: 44px;
    font-size: 1.1rem;
  }

  .team-nav-prev {
    left: 16px;
  }

  .team-nav-next {
    right: 16px;
  }

  .team-carousel-dots {
    padding: 20px 15px;
    gap: 8px;
  }

  .team-dot {
    width: 8px;
    height: 8px;
  }

  .team-dot.active {
    width: 24px;
    height: 8px;
  }
}

@media (max-width: 480px) {
  .elkably-team-section-new {
    padding: 40px 0;
  }

  .elkably-team-section-new .container {
    padding: 0 10px;
  }

  .team-layout-wrapper {
    gap: 25px;
  }

  .team-logo-circle {
    width: 100px;
    height: 100px;
    padding: 12px;
  }

  .team-section-title {
    font-size: 1.5rem;
    margin-bottom: 12px;
  }

  .team-section-description {
    font-size: 0.9rem;
    padding: 0 5px;
  }

  .team-carousel-container-new {
    min-height: 400px;
    border-radius: 18px;
  }

  .team-carousel-track {
    height: 400px;
  }

  .team-member-slide {
    padding: 25px 18px;
  }

  .team-member-card-new {
    gap: 20px;
  }

  .team-member-avatar {
    width: 160px;
    height: 160px;
    border-radius: 18px;
  }

  .fallback-initials-new {
    font-size: 3rem;
  }

  .team-member-name-new {
    font-size: 1.4rem;
  }

  .team-member-role-new {
    font-size: 0.9rem;
    padding: 6px 12px;
    letter-spacing: 1.2px;
  }

  .team-nav-btn {
    width: 40px;
    height: 40px;
    font-size: 1rem;
  }

  .team-nav-prev {
    left: 12px;
  }

  .team-nav-next {
    right: 12px;
  }

  .team-carousel-dots {
    padding: 18px 12px;
    gap: 7px;
  }

  .team-dot {
    width: 7px;
    height: 7px;
  }

  .team-dot.active {
    width: 20px;
    height: 7px;
  }
}

@media (max-width: 360px) {
  .elkably-team-section-new {
    padding: 35px 0;
  }

  .team-layout-wrapper {
    gap: 20px;
  }

  .team-logo-circle {
    width: 90px;
    height: 90px;
  }

  .team-section-title {
    font-size: 1.4rem;
  }

  .team-section-description {
    font-size: 0.85rem;
  }

  .team-carousel-container-new {
    min-height: 380px;
    border-radius: 16px;
  }

  .team-carousel-track {
    height: 380px;
  }

  .team-member-slide {
    padding: 22px 15px;
  }

  .team-member-avatar {
    width: 140px;
    height: 140px;
    border-radius: 16px;
  }

  .fallback-initials-new {
    font-size: 2.8rem;
  }

  .team-member-name-new {
    font-size: 1.3rem;
  }

  .team-member-role-new {
    font-size: 0.85rem;
    padding: 5px 10px;
    letter-spacing: 1px;
  }

  .team-nav-btn {
    width: 36px;
    height: 36px;
    font-size: 0.95rem;
  }

  .team-nav-prev {
    left: 10px;
  }

  .team-nav-next {
    right: 10px;
  }

  .team-carousel-dots {
    padding: 16px 10px;
    gap: 6px;
  }

  .team-dot {
    width: 6px;
    height: 6px;
  }

  .team-dot.active {
    width: 18px;
    height: 6px;
  }
}

/* Dark Theme Support */
.dark-theme .elkably-team-section-new {
  background: linear-gradient(135deg, #1a1a1a 0%, #2a1a1a 100%);
}

/* Keep logo white in dark mode (same as light mode) */
.dark-theme .team-logo-circle {
  background: white;
  box-shadow: 0 20px 60px rgba(184, 1, 1, 0.2);
}

.dark-theme .team-section-title {
  color: #f9fafb;
}

.dark-theme .team-section-description {
  color: #d1d5db;
}

.dark-theme .team-carousel-container-new {
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-color: rgba(184, 1, 1, 0.3);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4),
    0 0 0 1px rgba(255, 255, 255, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.dark-theme .team-member-name-new {
  background: linear-gradient(135deg, #f9fafb 0%, #e5e7eb 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.dark-theme .team-member-role-new {
  color: #d1d5db;
  background: rgba(184, 1, 1, 0.15);
  border-color: rgba(184, 1, 1, 0.2);
}

.dark-theme .team-nav-btn {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-color: rgba(184, 1, 1, 0.3);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3),
    0 0 0 1px rgba(255, 255, 255, 0.1);
}

.dark-theme .team-nav-btn:hover {
  background: linear-gradient(135deg, #B80101, #ff4757);
  box-shadow: 0 12px 32px rgba(184, 1, 1, 0.5),
    0 0 0 4px rgba(184, 1, 1, 0.2);
}

.dark-theme .team-carousel-dots {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0.08) 100%);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-top-color: rgba(184, 1, 1, 0.3);
}

.dark-theme .team-member-avatar {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0.08) 100%);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4),
    0 8px 24px rgba(0, 0, 0, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.dark-theme .team-member-avatar:hover {
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5),
    0 12px 32px rgba(0, 0, 0, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

/* Full Width Wrapper */
.team-full-width-wrapper {
  width: 100%;
  max-width: 100%;
  padding: 0;
  overflow-x: hidden;
  box-sizing: border-box;
}

/* Three Column Layout */
.team-three-column-layout {
  display: grid;
  grid-template-columns: 250px 1fr 520px;
  gap: 60px;
  align-items: center;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 40px;
}

/* Left Column - Logo */
.team-logo-column {
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 2;
}

.team-logo-container {
  width: 200px;
  height: 200px;
  display: flex;
  justify-content: center;
  align-items: center;
  background: white;
  border-radius: 50%;
  box-shadow: 0 20px 60px rgba(184, 1, 1, 0.2);
  padding: 20px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.team-logo-container:hover {
  transform: scale(1.05);
  box-shadow: 0 25px 70px rgba(184, 1, 1, 0.3);
}

.team-logo-image {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* Center Column - Text Content */
.team-text-column {
  display: flex;
  flex-direction: column;
  justify-content: center;
  z-index: 2;
}

.team-title {
  font-size: 3rem;
  font-weight: 700;
  margin-bottom: 20px;
  color: #1e293b;
  letter-spacing: 1px;
}

.team-title-red {
  color: #B80101;
  position: relative;
}

.team-description {
  font-size: 1.2rem;
  line-height: 1.8;
  color: #64748b;
  margin-bottom: 0;
  max-width: 600px;
}

/* ============================================
   ELKABLY TEAM CAROUSEL - COMPLETE REDESIGN
   Modern, Responsive, Enhanced Design
   ============================================ */

/* Right Column - Carousel */
.team-carousel-column {
  z-index: 2;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  position: relative;
}

/* Team Carousel Container - Modern Glassmorphism Design */
.team-carousel-container {
  position: relative;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-radius: 24px;
  box-shadow:
    0 20px 60px rgba(0, 0, 0, 0.08),
    0 0 0 1px rgba(255, 255, 255, 0.5),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
  overflow: hidden;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  border: 1px solid rgba(184, 1, 1, 0.1);
}

.team-carousel {
  position: relative;
  width: 100%;
  max-width: 100%;
  height: 480px;
  min-height: 480px;
  overflow: hidden;
  box-sizing: border-box;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, rgba(248, 250, 252, 0.05) 100%);
}

/* Team Members Wrapper */
.team-members-wrapper {
  width: 100%;
  max-width: 100%;
  height: 100%;
  overflow: hidden;
  position: relative;
  box-sizing: border-box;
}

.team-members-track {
  width: 100%;
  max-width: 100%;
  height: 100%;
  position: relative;
  box-sizing: border-box;
}

/* Team Member Card - Complete Redesign */
.team-member-card {
  width: 100%;
  max-width: 100%;
  height: 100%;
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 40px 50px;
  background: transparent;
  position: absolute;
  top: 0;
  left: 0;
  opacity: 0;
  transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  box-sizing: border-box;
  overflow: visible;
  min-width: 0;
}

.team-member-card.active {
  display: flex;
  opacity: 1;
  z-index: 2;
}

.team-member-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg,
      rgba(255, 255, 255, 0.9) 0%,
      rgba(248, 250, 252, 0.95) 50%,
      rgba(255, 255, 255, 0.9) 100%);
  border-radius: 24px;
  z-index: -1;
  opacity: 0;
  transition: opacity 0.6s ease;
}

.team-member-card.active::before {
  opacity: 1;
}

/* Team Member Info Container */
.team-member-info {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 28px;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  position: relative;
  z-index: 1;
}

/* Enhanced Image Container with Modern Design */
.team-member-image {
  width: 220px;
  height: 220px;
  border-radius: 20px;
  overflow: hidden;
  position: relative;
  background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
  transition: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
  flex-shrink: 0;
  box-shadow:
    0 20px 60px rgba(184, 1, 1, 0.2),
    0 8px 24px rgba(0, 0, 0, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
  border: 4px solid transparent;
  background-clip: padding-box;
  display: flex !important;
  align-items: center;
  justify-content: center;
  visibility: visible !important;
  opacity: 1 !important;
  z-index: 1;
}

.team-member-image::before {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: 20px;
  padding: 4px;
  background: linear-gradient(135deg, #B80101, #ff4757, #B80101);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask-composite: exclude;
  z-index: -1;
  opacity: 0.8;
  transition: opacity 0.5s ease;
}

.team-member-card.active .team-member-image::before {
  animation: borderGlow 3s ease-in-out infinite;
}

@keyframes borderGlow {

  0%,
  100% {
    opacity: 0.8;
  }

  50% {
    opacity: 1;
  }
}

.team-member-image:hover {
  transform: translateY(-12px) scale(1.05);
  box-shadow:
    0 30px 80px rgba(184, 1, 1, 0.35),
    0 12px 32px rgba(0, 0, 0, 0.15),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.team-member-image:hover::before {
  opacity: 1;
  background: linear-gradient(135deg, #B80101, #ff6b6b, #ff4757, #B80101);
}

.team-member-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
  filter: brightness(1.02) contrast(1.05);
  position: relative;
  z-index: 1;
  background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
}

.team-member-image:hover img {
  transform: scale(1.1);
}

/* Ensure images are always visible */
.team-member-image img[src=""],
.team-member-image img:not([src]) {
  display: none;
}

.team-member-image img[src]:not([src=""]) {
  display: block !important;
}

/* Enhanced Fallback Avatar */
.team-member-fallback {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #B80101 0%, #ff4757 50%, #B80101 100%);
  background-size: 200% 200%;
  animation: gradientShift 3s ease infinite;
  color: white;
  font-weight: 800;
  font-size: 4rem;
  transition: all 0.5s ease;
  position: absolute;
  top: 0;
  left: 0;
  overflow: hidden;
  z-index: 2;
}

.team-member-fallback::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.3) 0%, transparent 70%);
  animation: shimmer 2s ease-in-out infinite;
}

@keyframes gradientShift {

  0%,
  100% {
    background-position: 0% 50%;
  }

  50% {
    background-position: 100% 50%;
  }
}

@keyframes shimmer {
  0% {
    transform: translate(-50%, -50%) rotate(0deg);
  }

  100% {
    transform: translate(-50%, -50%) rotate(360deg);
  }
}

.team-member-image:hover .team-member-fallback {
  transform: scale(1.08);
}

.fallback-initials {
  font-family: 'Poppins', sans-serif;
  font-weight: 800;
  letter-spacing: 3px;
  position: relative;
  z-index: 1;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

/* Enhanced Member Details */
.team-member-details {
  text-align: center;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  word-wrap: break-word;
  overflow-wrap: break-word;
  padding: 0 15px;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
}

.team-member-name {
  font-size: 2rem;
  font-weight: 800;
  background: linear-gradient(135deg, #1e293b 0%, #334155 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin: 0 0 12px 0;
  line-height: 1.2;
  word-wrap: break-word;
  overflow-wrap: break-word;
  hyphens: auto;
  letter-spacing: -0.5px;
  position: relative;
  display: inline-block;
  order: 1;
}

.team-member-name::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 3px;
  background: linear-gradient(90deg, transparent, #B80101, transparent);
  border-radius: 2px;
  opacity: 0.6;
}

.team-member-position {
  font-size: 1.1rem;
  color: #64748b;
  margin: 0;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 2px;
  word-wrap: break-word;
  overflow-wrap: break-word;
  hyphens: auto;
  position: relative;
  padding: 8px 16px;
  display: inline-block;
  background: rgba(184, 1, 1, 0.05);
  border-radius: 20px;
  border: 1px solid rgba(184, 1, 1, 0.1);
  order: 2;
}

/* Enhanced Navigation Arrows */
.team-carousel-prev,
.team-carousel-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 56px;
  height: 56px;
  border-radius: 50%;
  border: 2px solid rgba(184, 1, 1, 0.2);
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: #B80101;
  font-size: 1.3rem;
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow:
    0 8px 24px rgba(0, 0, 0, 0.12),
    0 0 0 1px rgba(255, 255, 255, 0.5);
}

.team-carousel-prev {
  left: 24px;
}

.team-carousel-next {
  right: 24px;
}

.team-carousel-prev:hover,
.team-carousel-next:hover {
  background: linear-gradient(135deg, #B80101, #ff4757);
  color: white;
  transform: translateY(-50%) scale(1.15);
  box-shadow:
    0 12px 32px rgba(184, 1, 1, 0.4),
    0 0 0 4px rgba(184, 1, 1, 0.1);
  border-color: transparent;
}

.team-carousel-prev:active,
.team-carousel-next:active {
  transform: translateY(-50%) scale(1.05);
}

.team-carousel-prev:disabled,
.team-carousel-next:disabled {
  opacity: 0.4;
  cursor: not-allowed;
  transform: translateY(-50%);
  pointer-events: none;
}

.team-carousel-prev:disabled:hover,
.team-carousel-next:disabled:hover {
  background: rgba(255, 255, 255, 0.95);
  color: #B80101;
  transform: translateY(-50%);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

/* Enhanced Carousel Indicators - Modern Design */
.team-carousel-indicators {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  padding: 24px 20px;
  background: linear-gradient(180deg,
      rgba(248, 250, 252, 0.5) 0%,
      rgba(255, 255, 255, 0.8) 100%);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-top: 1px solid rgba(184, 1, 1, 0.1);
  flex-wrap: wrap;
  max-width: 100%;
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.team-carousel-indicators::-webkit-scrollbar {
  display: none;
}

.team-carousel-indicators .indicator {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(203, 213, 225, 0.6);
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  position: relative;
  border: 2px solid transparent;
  flex-shrink: 0;
}

.team-carousel-indicators .indicator::before {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  background: linear-gradient(135deg, #B80101, #ff4757);
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: -1;
}

.team-carousel-indicators .indicator:hover {
  background: rgba(148, 163, 184, 0.8);
  transform: scale(1.4);
  border-color: rgba(184, 1, 1, 0.3);
}

.team-carousel-indicators .indicator:hover::before {
  opacity: 0.2;
}

.team-carousel-indicators .indicator.active {
  width: 32px;
  height: 10px;
  border-radius: 10px;
  background: linear-gradient(90deg, #B80101, #ff4757);
  transform: scale(1);
  border-color: transparent;
  box-shadow:
    0 4px 12px rgba(184, 1, 1, 0.4),
    0 0 0 2px rgba(255, 255, 255, 0.8),
    inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.team-carousel-indicators .indicator.active::before {
  opacity: 0;
}

/* Responsive Design */
@media (max-width: 1200px) {
  .team-three-column-layout {
    grid-template-columns: 200px 1fr 350px;
    gap: 40px;
    padding: 0 30px;
    max-width: 100%;
    box-sizing: border-box;
  }

  .team-logo-container {
    width: 160px;
    height: 160px;
  }

  .team-title {
    font-size: 2.5rem;
  }

  .team-description {
    font-size: 1.1rem;
  }

  .team-carousel {
    height: 460px;
    min-height: 460px;
  }

  .team-member-image {
    width: 200px;
    height: 200px;
  }

  .team-member-name {
    font-size: 1.85rem;
  }
}

/* Transition breakpoint between 1200px and 992px */
@media (max-width: 1100px) and (min-width: 993px) {
  .team-three-column-layout {
    grid-template-columns: 180px 1fr 320px;
    gap: 35px;
    padding: 0 25px;
  }

  .team-carousel {
    height: 440px;
    min-height: 440px;
  }

  .team-member-image {
    width: 180px;
    height: 180px;
  }
}

@media (max-width: 992px) {
  .elkably-team-section {
    overflow-x: hidden;
    padding: 60px 0;
  }

  .team-full-width-wrapper {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
    box-sizing: border-box;
  }

  .team-three-column-layout {
    grid-template-columns: 1fr !important;
    gap: 35px;
    text-align: center;
    padding: 0 20px;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
  }

  .team-logo-column {
    width: 100%;
    max-width: 100%;
    display: flex;
    justify-content: center;
  }

  .team-logo-container {
    width: 150px;
    height: 150px;
    margin: 0 auto;
  }

  .team-text-column {
    align-items: center;
    width: 100%;
    max-width: 100%;
    text-align: center;
  }

  .team-title {
    text-align: center;
    font-size: 2.2rem;
  }

  .team-description {
    text-align: center;
    margin: 0 auto;
    max-width: 100%;
    padding: 0 10px;
  }

  .team-carousel-column {
    max-width: 100%;
    margin: 0 auto;
    width: 100%;
    padding: 0;
    box-sizing: border-box;
  }

  .team-carousel-container {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    margin: 0 auto;
    box-sizing: border-box;
  }

  .team-carousel {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    box-sizing: border-box;
  }

  .team-members-wrapper {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    box-sizing: border-box;
  }

  .team-members-track {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    box-sizing: border-box;
  }

  .team-member-card {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    display: flex !important;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    box-sizing: border-box;
    padding: 30px 20px;
  }

  .team-member-card.active {
    display: flex !important;
    opacity: 1;
  }

  .team-member-info {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    box-sizing: border-box;
  }

  .team-member-details {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    box-sizing: border-box;
    text-align: center;
  }
}

/* Specific fix for 940px and below */
@media (max-width: 940px) {
  .team-carousel-column {
    max-width: 100%;
    width: 100%;
    padding: 0 10px;
  }

  .team-carousel-container {
    width: 100%;
    max-width: 100%;
  }

  .team-carousel {
    width: 100%;
    height: 380px;
    min-height: 380px;
  }

  .team-members-wrapper {
    width: 100%;
    height: 100%;
  }

  .team-member-card {
    width: 100%;
    height: 100%;
    padding: 25px 20px;
    min-height: 380px;
    display: flex !important;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    box-sizing: border-box;
  }

  .team-member-card.active {
    display: flex !important;
    opacity: 1;
  }

  .team-member-info {
    width: 100%;
    max-width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 18px;
    padding: 0 10px;
    box-sizing: border-box;
  }

  .team-member-image {
    width: 160px;
    height: 160px;
    border-radius: 16px;
    flex-shrink: 0;
    min-width: 160px;
    box-shadow: 0 12px 35px rgba(184, 1, 1, 0.3), 0 4px 12px rgba(0, 0, 0, 0.12);
  }

  .team-member-fallback {
    font-size: 3rem;
  }

  .team-member-details {
    width: 100%;
    max-width: 100%;
    text-align: center;
    box-sizing: border-box;
  }

  .team-member-name {
    font-size: 1.5rem;
    line-height: 1.4;
    word-wrap: break-word;
    overflow-wrap: break-word;
    margin-bottom: 8px;
  }

  .team-member-position {
    font-size: 0.95rem;
    line-height: 1.5;
    word-wrap: break-word;
    overflow-wrap: break-word;
  }
}

@media (max-width: 768px) {
  .elkably-team-section {
    padding: 50px 0;
    overflow-x: hidden;
  }

  .team-full-width-wrapper {
    width: 100%;
    overflow-x: hidden;
  }

  .team-three-column-layout {
    padding: 0 15px;
    gap: 30px;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
  }

  .team-title {
    font-size: 1.8rem;
    line-height: 1.3;
  }

  .team-description {
    font-size: 1rem;
    padding: 0 10px;
  }

  .team-carousel-column {
    width: 100%;
    max-width: 100%;
    padding: 0;
    margin: 0 auto;
    box-sizing: border-box;
  }

  .team-carousel-container {
    min-height: 420px;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    margin: 0;
    box-sizing: border-box;
    border-radius: 20px;
  }

  .team-carousel {
    height: auto;
    min-height: 420px;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
  }

  .team-members-wrapper {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    box-sizing: border-box;
  }

  .team-members-track {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    box-sizing: border-box;
  }

  .team-member-card {
    padding: 30px 25px;
    min-height: 420px;
    height: auto;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    display: flex !important;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    box-sizing: border-box;
  }

  .team-member-card.active {
    display: flex !important;
    opacity: 1;
  }

  .team-member-info {
    gap: 22px;
    padding: 0 10px;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    box-sizing: border-box;
  }

  .team-member-image {
    width: 180px;
    height: 180px;
    border-radius: 18px;
    flex-shrink: 0;
    min-width: 180px;
    max-width: 180px;
    border-width: 3px;
    box-sizing: border-box;
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    position: relative;
    z-index: 1;
  }

  .team-member-image:hover {
    transform: translateY(-8px) scale(1.03);
  }

  .team-member-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    position: relative;
    z-index: 1;
  }

  .team-member-fallback {
    font-size: 3.2rem;
  }

  .team-member-details {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    text-align: center;
    box-sizing: border-box;
    padding: 0 8px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0;
  }

  .team-member-name {
    font-size: 1.6rem;
    line-height: 1.3;
    word-wrap: break-word;
    overflow-wrap: break-word;
    margin-bottom: 10px;
    font-weight: 800;
    hyphens: auto;
    order: 1;
  }

  .team-member-position {
    font-size: 0.95rem;
    line-height: 1.4;
    word-wrap: break-word;
    overflow-wrap: break-word;
    font-weight: 600;
    letter-spacing: 1.5px;
    hyphens: auto;
    padding: 6px 14px;
    order: 2;
    margin-top: 0;
  }

  .team-carousel-prev,
  .team-carousel-next {
    width: 44px;
    height: 44px;
    font-size: 1.1rem;
    border-width: 2px;
  }

  .team-carousel-prev {
    left: 16px;
  }

  .team-carousel-next {
    right: 16px;
  }

  .team-carousel-indicators {
    padding: 20px 15px;
    gap: 8px;
  }

  .team-carousel-indicators .indicator {
    width: 8px;
    height: 8px;
  }

  .team-carousel-indicators .indicator.active {
    width: 24px;
    height: 8px;
  }
}

@media (max-width: 480px) {
  .elkably-team-section {
    padding: 40px 0;
    overflow-x: hidden;
  }

  .team-full-width-wrapper {
    width: 100%;
    overflow-x: hidden;
  }

  .team-three-column-layout {
    padding: 0 10px;
    gap: 25px;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
  }

  .team-logo-container {
    width: 100px;
    height: 100px;
    padding: 15px;
  }

  .team-title {
    font-size: 1.5rem;
    line-height: 1.3;
    margin-bottom: 15px;
  }

  .team-description {
    font-size: 0.9rem;
    line-height: 1.5;
    padding: 0 5px;
    max-width: 100%;
  }

  .team-carousel-column {
    width: 100%;
    max-width: 100%;
    padding: 0;
    margin: 0;
    box-sizing: border-box;
  }

  .team-carousel-container {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    border-radius: 18px;
  }

  .team-carousel {
    height: auto;
    min-height: 400px;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
  }

  .team-members-wrapper {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    box-sizing: border-box;
  }

  .team-members-track {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    box-sizing: border-box;
  }

  .team-member-card {
    padding: 25px 18px;
    min-height: 400px;
    height: auto;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    display: flex !important;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    box-sizing: border-box;
    position: relative;
  }

  .team-member-card.active {
    display: flex !important;
    opacity: 1;
  }

  .team-member-info {
    gap: 20px;
    padding: 0 8px;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    box-sizing: border-box;
  }

  .team-member-image {
    width: 160px;
    height: 160px;
    border-radius: 18px;
    flex-shrink: 0;
    min-width: 160px;
    max-width: 160px;
    border-width: 3px;
    box-sizing: border-box;
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    position: relative;
    z-index: 1;
  }

  .team-member-image:hover {
    transform: translateY(-6px) scale(1.03);
  }

  .team-member-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    position: relative;
    z-index: 1;
  }

  .team-member-fallback {
    font-size: 3rem;
  }

  .team-member-details {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    text-align: center;
    box-sizing: border-box;
    padding: 0 5px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0;
  }

  .team-member-name {
    font-size: 1.5rem;
    line-height: 1.3;
    margin: 0 0 10px 0;
    word-wrap: break-word;
    overflow-wrap: break-word;
    font-weight: 800;
    hyphens: auto;
    order: 1;
  }

  .team-member-position {
    font-size: 0.9rem;
    line-height: 1.4;
    letter-spacing: 1.2px;
    word-wrap: break-word;
    overflow-wrap: break-word;
    font-weight: 600;
    hyphens: auto;
    padding: 6px 12px;
    order: 2;
    margin-top: 0;
  }

  .team-carousel-prev,
  .team-carousel-next {
    width: 40px;
    height: 40px;
    font-size: 1rem;
    border-width: 2px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  }

  .team-carousel-prev {
    left: 12px;
  }

  .team-carousel-next {
    right: 12px;
  }

  .team-carousel-indicators {
    padding: 18px 12px;
    gap: 7px;
    flex-wrap: wrap;
    justify-content: center;
  }

  .team-carousel-indicators .indicator {
    width: 7px;
    height: 7px;
  }

  .team-carousel-indicators .indicator.active {
    width: 20px;
    height: 7px;
  }
}

@media (max-width: 360px) {
  .elkably-team-section {
    padding: 35px 0;
    overflow-x: hidden;
  }

  .team-three-column-layout {
    padding: 0 8px;
    gap: 20px;
  }

  .team-logo-container {
    width: 90px;
    height: 90px;
    padding: 12px;
  }

  .team-title {
    font-size: 1.4rem;
  }

  .team-description {
    font-size: 0.85rem;
    padding: 0 5px;
  }

  .team-carousel-column {
    width: 100%;
    max-width: 100%;
    padding: 0;
  }

  .team-carousel-container {
    min-height: 380px;
    width: 100%;
    max-width: 100%;
    border-radius: 16px;
  }

  .team-carousel {
    height: auto;
    min-height: 380px;
    width: 100%;
    max-width: 100%;
  }

  .team-member-card {
    padding: 22px 15px;
    min-height: 380px;
    height: auto;
    width: 100%;
    max-width: 100%;
    display: flex !important;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    box-sizing: border-box;
  }

  .team-member-card.active {
    display: flex !important;
    opacity: 1;
  }

  .team-member-info {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 18px;
    box-sizing: border-box;
    padding: 0 5px;
  }

  .team-member-image {
    width: 140px;
    height: 140px;
    border-radius: 16px;
    flex-shrink: 0;
    min-width: 140px;
    max-width: 140px;
    border-width: 3px;
    box-sizing: border-box;
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    position: relative;
    z-index: 1;
  }

  .team-member-image:hover {
    transform: translateY(-5px) scale(1.02);
  }

  .team-member-image img {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    position: relative;
    z-index: 1;
  }

  .team-member-fallback {
    font-size: 2.8rem;
  }

  .team-member-details {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    text-align: center;
    box-sizing: border-box;
    padding: 0 3px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0;
  }

  .team-member-name {
    font-size: 1.4rem;
    line-height: 1.3;
    word-wrap: break-word;
    overflow-wrap: break-word;
    margin-bottom: 8px;
    font-weight: 800;
    hyphens: auto;
    order: 1;
  }

  .team-member-position {
    font-size: 0.85rem;
    line-height: 1.4;
    word-wrap: break-word;
    overflow-wrap: break-word;
    font-weight: 600;
    letter-spacing: 1px;
    hyphens: auto;
    padding: 5px 10px;
    order: 2;
    margin-top: 0;
  }

  .team-carousel-prev,
  .team-carousel-next {
    width: 36px;
    height: 36px;
    font-size: 0.95rem;
    border-width: 2px;
  }

  .team-carousel-prev {
    left: 10px;
  }

  .team-carousel-next {
    right: 10px;
  }

  .team-carousel-indicators {
    padding: 16px 10px;
    gap: 6px;
  }

  .team-carousel-indicators .indicator {
    width: 6px;
    height: 6px;
  }

  .team-carousel-indicators .indicator.active {
    width: 18px;
    height: 6px;
  }
}

/* Animation Enhancements */
@keyframes slideInFromRight {
  from {
    opacity: 0;
    transform: translateX(100%);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes slideInFromLeft {
  from {
    opacity: 0;
    transform: translateX(-100%);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.team-member-card.slide-in-right {
  animation: slideInFromRight 0.5s ease-out;
}

.team-member-card.slide-in-left {
  animation: slideInFromLeft 0.5s ease-out;
}

/* Loading State */
.team-carousel.loading .team-members-track {
  opacity: 0.7;
}

.team-carousel.loading::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 40px;
  height: 40px;
  border: 3px solid #f3f3f3;
  border-top: 3px solid #B80101;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  transform: translate(-50%, -50%);
}

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

  100% {
    transform: translate(-50%, -50%) rotate(360deg);
  }
}