/* Global Styles */
:root {
  --primary-color: #B80101;
  --secondary-color: #B80101D4;
  --accent-color: #B8010100;
  --text-color-light: #333;
  --text-color-dark: #f4f4f4;
  --bg-color-light: #f9f9f9;
  --bg-color-dark: #121212;
  --card-bg-light: #fff;
  --card-bg-dark: #1e1e1e;
  --transition: all 0.3s ease;
  --red-primary: #B80101;
  --red-secondary: #B80101D4;
  --red-transparent: #B8010100;
}

a {
  text-decoration: none !important;
}

body {
  font-family: 'Roboto', sans-serif;
  margin: 0;
  padding: 0;
  transition: var(--transition);
}

/* Prevent horizontal overflow on mobile */
html,
body {
  max-width: 100%;
  overflow-x: hidden;
}

/* ------------------------------------------------------------------ */
/* Mobile Hero Enhancements (overrides)                                */
/* ------------------------------------------------------------------ */
@media (max-width: 576px) {

  /* Place stats next to each other on small screens */
  .mathematical-stats-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 14px !important;
  }

  .stat-card {
    padding: 12px !important;
  }

  /* Ensure right visual fits without causing overflow */
  .hero-visual-mathematical {
    height: 380px !important;
    margin-top: 24px !important;
  }

  /* Re-enable floating formulas around the photo on mobile */
  .floating-formulas-interactive {
    display: block !important;
    opacity: 0.9 !important;
    transform: scale(0.78) !important;
    transform-origin: center;
  }

  /* Keep geometric shapes subtle on mobile */
  .geometric-shapes-container {
    opacity: 0.35 !important;
  }
}

/* Remove red glow effect around the professor photo (neutral look) */
.portrait-glow-mathematical {
  background: radial-gradient(circle,
      rgba(255, 255, 255, 0.22) 0%,
      rgba(255, 255, 255, 0.12) 30%,
      transparent 70%) !important;
}

.portrait-glass-frame:hover+.portrait-glow-mathematical {
  background: radial-gradient(circle,
      rgba(255, 255, 255, 0.28) 0%,
      rgba(255, 255, 255, 0.16) 30%,
      rgba(255, 255, 255, 0.06) 70%) !important;
}

/* Theme Styles */
body.light-theme {
  background-color: var(--bg-color-light);
  color: var(--text-color-light);
}

body.dark-theme {
  background-color: var(--bg-color-dark);
  color: var(--text-color-dark);
}

/* Navbar Styles */
.navbar {
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
  transition: all 0.4s ease;
  padding: 15px 0;
  position: fixed;
  width: 100%;
  top: 0;
  z-index: 1000;
}

.modern-navbar {
  background: rgba(15, 32, 39, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

/* Light theme navbar */
.light-theme .modern-navbar {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

/* Dark theme navbar */
.dark-theme .modern-navbar {
  background: rgba(15, 32, 39, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.navbar-brand {
  padding: 0;
}

/* Logo Styles */
.logo-container {
  display: flex;
  align-items: center;
}

.logo-image-wrapper {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 12px;
  position: relative;
  overflow: visible;
  transition: all 0.3s ease;
  animation: logo-float 6s ease-in-out infinite;
}

.logo-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  transition: all 0.3s ease;
  z-index: 2;
  position: relative;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.dark-theme .logo-image {
  box-shadow: 0 5px 15px rgba(255, 255, 255, 0.15);
}

@keyframes logo-float {

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

  25% {
    transform: translateY(-6px) rotate(5deg);
  }

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

  75% {
    transform: translateY(6px) rotate(-5deg);
  }
}

.navbar-brand:hover .logo-image {
  transform: scale(1.05);
  border-color: var(--primary-color);
}

.logo-image-wrapper::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(to right,
      rgba(255, 255, 255, 0),
      rgba(255, 255, 255, 0.1),
      rgba(255, 255, 255, 0));
  transform: rotate(45deg);
  animation: shine 6s ease-in-out infinite;
  z-index: 1;
  pointer-events: none;
}

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

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

.navbar-brand:hover .logo-image-wrapper {
  animation-play-state: paused;
  transform: scale(1.1);
}

/* Math symbols around logo */
.math-symbol {
  position: absolute;
  font-family: 'Cambria Math', 'STIX Two Math', serif;
  font-weight: bold;
  opacity: 0;
  color: var(--primary-color);
  text-shadow: 0 0 5px rgba(58, 146, 98, 0.5);
  pointer-events: none;
  z-index: 3;
}

.dark-theme .math-symbol {
  color: #fff;
  text-shadow: 0 0 5px rgba(255, 255, 255, 0.5);
}

.math-symbol-1 {
  top: -10px;
  left: -5px;
  font-size: 16px;
  animation: math-float-1 4s ease-in-out infinite 0.5s, math-fade 4s ease-in-out infinite 0.5s;
}

.math-symbol-2 {
  top: 5px;
  right: -8px;
  font-size: 18px;
  animation: math-float-2 5s ease-in-out infinite 1s, math-fade 5s ease-in-out infinite 1s;
}

.math-symbol-3 {
  bottom: -5px;
  left: 5px;
  font-size: 14px;
  animation: math-float-3 4.5s ease-in-out infinite 1.5s, math-fade 4.5s ease-in-out infinite 1.5s;
}

.math-symbol-4 {
  bottom: 10px;
  right: -10px;
  font-size: 16px;
  animation: math-float-4 5.5s ease-in-out infinite 0.2s, math-fade 5.5s ease-in-out infinite 0.2s;
}

@keyframes math-float-1 {

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

  50% {
    transform: translate(-8px, -8px) rotate(-10deg);
  }
}

@keyframes math-float-2 {

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

  50% {
    transform: translate(8px, -5px) rotate(15deg);
  }
}

@keyframes math-float-3 {

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

  50% {
    transform: translate(-5px, 8px) rotate(-5deg);
  }
}

@keyframes math-float-4 {

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

  50% {
    transform: translate(10px, 5px) rotate(10deg);
  }
}

@keyframes math-fade {

  0%,
  100% {
    opacity: 0;
  }

  50% {
    opacity: 0.8;
  }
}

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

.logo-text {
  font-size: 1.5rem;
  font-weight: 800;
  color: #ffffff;
  font-family: 'Cambria Math', 'STIX Two Math', serif;
  letter-spacing: 1px;
  line-height: 1.2;
  margin: 0;
  transition: color 0.3s ease;
}

.logo-tagline {
  font-size: 0.7rem;
  color: rgba(255, 255, 255, 0.7);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  font-weight: 500;
  transition: color 0.3s ease;
}

/* Light theme logo text */
.light-theme .logo-text {
  color: #1e293b;
}

.light-theme .logo-tagline {
  color: rgba(30, 41, 59, 0.7);
}

/* Custom Toggler */
.custom-toggler {
  border: none;
  background: rgba(255, 255, 255, 0.1);
  color: white;
  border-radius: 8px;
  padding: 8px 12px;
  transition: all 0.3s ease;
}

.custom-toggler:hover {
  background: rgba(255, 255, 255, 0.2);
}

/* Navigation Links */
.navbar-nav {
  margin-left: 20px;
}

.nav-link-animated {
  color: rgba(255, 255, 255, 0.85) !important;
  font-weight: 500;
  padding: 10px 16px !important;
  margin: 0 5px;
  border-radius: 8px;
  transition: all 0.3s ease;
  position: relative;
  display: flex;
  align-items: center;
  overflow: hidden;
}

/* Light theme navigation links */
.light-theme .nav-link-animated {
  color: rgba(30, 41, 59, 0.85) !important;
}

.nav-link-animated:hover {
  color: #ffffff !important;
  background-color: rgba(255, 255, 255, 0.1);
  transform: translateY(-2px);
}

/* Light theme navigation hover */
.light-theme .nav-link-animated:hover {
  color: #1e293b !important;
  background-color: rgba(30, 41, 59, 0.1);
}

.nav-link-animated::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.3s ease;
  border-radius: 3px;
}

.nav-link-animated:hover::before {
  transform: scaleX(1);
  transform-origin: left;
}

.nav-icon-wrapper {
  width: 28px;
  height: 28px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 8px;
  transition: all 0.3s ease;
}

.nav-link-animated:hover .nav-icon-wrapper {
  background: rgba(58, 146, 98, 0.2);
  transform: rotate(360deg);
}

.nav-icon {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.9);
  transition: color 0.3s ease;
}

/* Light theme nav icons */
.light-theme .nav-icon {
  color: rgba(30, 41, 59, 0.9);
}

/* Dropdown Menu */
.modern-dropdown {
  border-radius: 12px;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.05);
  background: rgba(15, 32, 39, 0.95);
  backdrop-filter: blur(10px);
  padding: 12px;
  margin-top: 15px;
  min-width: 220px;
  transition: all 0.3s ease;
}

/* Light theme dropdown */
.light-theme .modern-dropdown {
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid rgba(0, 0, 0, 0.1);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
}

.dropdown-header {
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 8px 16px;
  font-weight: 600;
  transition: color 0.3s ease;
}

/* Light theme dropdown header */
.light-theme .dropdown-header {
  color: rgba(30, 41, 59, 0.5);
}

.dropdown-item {
  padding: 10px 16px;
  border-radius: 8px;
  transition: all 0.2s ease;
  color: rgba(255, 255, 255, 0.85);
  font-weight: 500;
}

/* Light theme dropdown items */
.light-theme .dropdown-item {
  color: rgba(30, 41, 59, 0.85);
}

.dropdown-item:hover {
  background-color: rgba(58, 146, 98, 0.15);
  color: white;
  transform: translateX(5px);
}

/* Light theme dropdown item hover */
.light-theme .dropdown-item:hover {
  background-color: rgba(58, 146, 98, 0.15);
  color: #1e293b;
}


.dropdown-divider {
  border-color: rgba(255, 255, 255, 0.1);
  margin: 8px 0;
}

/* Theme Toggle */
.theme-toggle {
  cursor: pointer;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  transition: all 0.3s ease;
}

.theme-toggle:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: rotate(15deg);
}

/* Hide both icons by default (overridden by theme-toggle.css) as fallback */
.theme-toggle .light-icon,
.theme-toggle .dark-icon {
  display: none;
  transition: all 0.3s ease;
}

/* Theme-specific icon visibility */
.dark-theme .navbar .theme-toggle .light-icon {
  display: inline-block;
  color: #facc15;
}

.light-theme .navbar .theme-toggle .dark-icon {
  display: inline-block;
  color: #1e293b;
}

/* General theme toggle button styling */
.navbar .theme-toggle {
  background: rgba(255, 255, 255, 0.1);
  border: none;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  cursor: pointer;
}

.light-theme .navbar .theme-toggle {
  background: rgba(30, 41, 59, 0.1);
}

.navbar .theme-toggle:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: rotate(15deg);
}

.light-theme .navbar .theme-toggle:hover {
  background: rgba(30, 41, 59, 0.2);
}

/* User Button */
.user-btn {
  display: flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.1);
  border: none;
  border-radius: 30px;
  padding: 8px 16px;
  color: white;
  transition: all 0.3s ease;
}

/* Light theme user button */
.light-theme .user-btn {
  background: rgba(30, 41, 59, 0.1);
  color: #1e293b;
}

.user-btn:hover {
  background: rgba(255, 255, 255, 0.2);
}

/* Light theme user button hover */
.light-theme .user-btn:hover {
  background: rgba(30, 41, 59, 0.2);
}

.user-avatar {
  width: 32px;
  height: 32px;
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 10px;
  font-size: 1.2rem;
}

.user-name {
  font-weight: 500;
  max-width: 120px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.user-dropdown {
  min-width: 240px;
}

.logout-item {
  color: #ff5252;
}

.logout-item:hover {
  background-color: rgba(255, 82, 82, 0.1);
  color: #ff5252;
}

/* Auth Buttons */
.auth-buttons {
  display: flex;
}

.btn-glow-secondary {
  background: transparent;
  border: 2px solid rgba(255, 255, 255, 0.3);
  color: white;
  border-radius: 30px;
  padding: 8px 20px;
  font-weight: 500;
  transition: all 0.3s ease;
}

/* Light theme auth buttons */
.light-theme .btn-glow-secondary {
  border-color: rgba(30, 41, 59, 0.3);
  color: #1e293b;
}

.btn-glow-secondary:hover {
  border-color: rgba(255, 255, 255, 0.5);
  background: rgba(255, 255, 255, 0.1);
  color: white;
  transform: translateY(-3px);
}

/* Light theme auth button hover */
.light-theme .btn-glow-secondary:hover {
  border-color: rgba(30, 41, 59, 0.5);
  background: rgba(30, 41, 59, 0.1);
  color: #1e293b;
}

/* Theme Toggle Button */
.theme-toggle {
  cursor: pointer;
  padding: 5px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.theme-toggle:hover {
  background-color: rgba(0, 0, 0, 0.1);
}

.dark-theme .theme-toggle:hover {
  background-color: rgba(255, 255, 255, 0.1);
}

/* Card Styles */
.card {
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  transition: var(--transition);
}

.light-theme .card {
  background-color: var(--card-bg-light);
}

.dark-theme .card {
  background-color: var(--card-bg-dark);
  border-color: #333;
}

.dark-theme .card-header {
  background-color: rgba(255, 255, 255, 0.05);
  border-bottom: 1px solid #333;
}

/* Button Styles */
.btn {
  border-radius: 5px;
  padding: 10px 20px;
  font-weight: 500;
  transition: var(--transition);
}

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

.btn-primary:hover {
  background-color: #2980b9;
  border-color: #2980b9;
}

.btn-success {
  background-color: var(--secondary-color);
  border-color: var(--secondary-color);
}

.btn-success:hover {
  background-color: #27ae60;
  border-color: #27ae60;
}

/* Form Styles */
.form-control {
  border-radius: 5px;
  padding: 10px;
  transition: var(--transition);
}

.dark-theme .form-control {
  background-color: #2d2d2d;
  border-color: #444;
  color: var(--text-color-dark);
}

.dark-theme .form-control:focus {
  background-color: #333;
  color: var(--text-color-dark);
  border-color: var(--primary-color);
  box-shadow: 0 0 0 0.25rem rgba(52, 152, 219, 0.25);
}

/* Input Group with Icons */
.input-group-text {
  transition: var(--transition);
}

.dark-theme .input-group-text {
  background-color: #333;
  border-color: #444;
  color: var(--text-color-dark);
}

/* Alert Styles */
.alert {
  border-radius: 5px;
  transition: var(--transition);
}

/* Footer Styles */
footer {
  margin-top: 50px;
  padding: 20px 0;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.light-theme footer {
  background-color: #f5f5f5;
  border-top: 1px solid #eee;
}

.dark-theme footer {
  background-color: #1a1a1a;
  border-top: 1px solid #333;
}

/* Footer Watermark Logo */
.footer-watermark {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 0;
  opacity: 0.05;
  pointer-events: none;
}

.footer-watermark-logo {
  width: 300px;
  height: 300px;
  object-fit: contain;
  animation: footer-logo-float 15s ease-in-out infinite;
}

@keyframes footer-logo-float {

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

  25% {
    transform: rotate(5deg) scale(1.05);
  }

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

  75% {
    transform: rotate(-5deg) scale(0.95);
  }
}

/* Footer Logo in Brand */
.footer-logo-image {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  animation: logo-float 6s ease-in-out infinite;
}

.dark-theme .footer-logo-image {
  box-shadow: 0 5px 15px rgba(255, 255, 255, 0.15);
}

/* Landing Page Styles */
.hero-section {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: linear-gradient(135deg, #0f2027 0%, #203a43 50%, #2c5364 100%);
}

/* Background Logo Watermark */
.background-logo-watermark {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 1;
  pointer-events: none;
}

/* Also apply to hero-section-new */
.hero-section-new .background-logo-watermark {
  z-index: 2;
  /* Adjust z-index as needed based on other elements */
}

.bg-logo-image {
  width: 500px;
  height: 500px;
  opacity: 0.03;
  animation: bg-logo-float 20s ease-in-out infinite;
}

@keyframes bg-logo-float {

  0%,
  100% {
    transform: rotate(0deg) scale(1) translate(0, 0);
    opacity: 0.03;
  }

  25% {
    transform: rotate(5deg) scale(1.1) translate(-30px, 20px);
    opacity: 0.04;
  }

  50% {
    transform: rotate(0deg) scale(1) translate(0, 0);
    opacity: 0.03;
  }

  75% {
    transform: rotate(-5deg) scale(0.9) translate(30px, -20px);
    opacity: 0.02;
  }
}

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

.hero-overlay {
  position: relative;
  width: 100%;
  z-index: 3;
  padding: 80px 0;
}

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

.hero-content {
  z-index: 2;
  position: relative;
  padding: 2.5rem;
  border-radius: 1.5rem;
  background-color: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(15px);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.glass-card {
  position: relative;
  overflow: hidden;
}

.glass-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg,
      transparent,
      rgba(255, 255, 255, 0.1),
      transparent);
  transition: 0.5s;
  pointer-events: none;
}

.glass-card:hover::before {
  left: 100%;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  background: linear-gradient(90deg, #ff4e50, #f9d423);
  color: white;
  padding: 8px 15px;
  border-radius: 50px;
  margin-bottom: 20px;
  box-shadow: 0 5px 15px rgba(255, 78, 80, 0.3);
  font-weight: 600;
  font-size: 0.9rem;
}

.badge-icon {
  margin-right: 8px;
  font-size: 1rem;
}

.hero-title {
  font-size: 3.5rem;
  font-weight: 800;
  margin-bottom: 20px;
  font-family: 'Cambria Math', 'STIX Two Math', serif;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
  line-height: 1.2;
  color: white;
}

.gradient-text {
  background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-weight: 900;
}

.hero-subtitle {
  font-size: 1.5rem;
  margin-bottom: 30px;
  font-family: 'Cambria Math', 'STIX Two Math', serif;
  color: rgba(255, 255, 255, 0.85);
  line-height: 1.5;
}

.math-equations-container {
  background: rgba(0, 0, 0, 0.2);
  border-radius: 12px;
  padding: 20px;
  margin-bottom: 25px;
  position: relative;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.equation-badge {
  position: absolute;
  top: -12px;
  left: 20px;
  background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
  color: white;
  padding: 5px 12px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
}

.hero-features {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  margin-bottom: 25px;
}

.feature-item {
  display: flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.1);
  padding: 8px 15px;
  border-radius: 50px;
  font-size: 0.9rem;
  color: white;
}

.feature-item i {
  color: #4caf50;
  margin-right: 8px;
}

.hero-cta {
  margin-top: 30px;
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
}

.btn-glow {
  position: relative;
  background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
  border: none;
  box-shadow: 0 5px 15px rgba(58, 146, 98, 0.4);
  transition: all 0.3s ease;
  overflow: hidden;
}

.btn-glow:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(58, 146, 98, 0.6);
}

.btn-hover-effect {
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
}

.btn-hover-effect:hover {
  background-color: rgba(255, 255, 255, 0.1);
  transform: translateY(-3px);
}

.animation-wrapper {
  position: relative;
  width: 100%;
  height: 450px;
  perspective: 1000px;
}

.glow-effect {
  position: absolute;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  background: radial-gradient(circle,
      rgba(58, 146, 98, 0.3) 0%,
      rgba(0, 176, 80, 0) 70%);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  filter: blur(30px);
  z-index: 0;
  animation: pulse-glow 3s infinite alternate;
}

@keyframes pulse-glow {
  0% {
    opacity: 0.5;
    transform: translate(-50%, -50%) scale(0.8);
  }

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

.students-counter {
  display: flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border-radius: 12px;
  padding: 15px 20px;
  margin-top: 30px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
  width: fit-content;
  margin-left: auto;
  margin-right: auto;
}

.counter-icon {
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 15px;
  font-size: 1.5rem;
  color: white;
}

.counter-text {
  text-align: left;
}

.counter-number {
  font-size: 1.8rem;
  font-weight: 700;
  color: white;
  line-height: 1;
}

.counter-label {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.9rem;
}

.hero-wave {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  line-height: 0;
  z-index: 4;
}

.hero-wave svg {
  width: 100%;
  height: auto;
}

/* Math Background Animation */
.math-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  opacity: 0.1;
  pointer-events: none;
  overflow: hidden;
}

.dark-theme .math-background {
  opacity: 0.15;
}

/* Math Bubbles */
.math-bubble {
  position: absolute;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.3);
  box-shadow: 0 0 10px rgba(255, 255, 255, 0.1);
  text-align: center;
  font-family: 'Courier New', monospace;
  font-weight: bold;
  animation: float linear forwards;
  z-index: 1;
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.8);
  text-shadow: 0 0 5px rgba(255, 255, 255, 0.5);
  backdrop-filter: blur(2px);
}

@keyframes float {
  0% {
    transform: translateY(0) rotate(0deg);
    opacity: 0;
  }

  10% {
    opacity: 1;
  }

  90% {
    opacity: 1;
  }

  100% {
    transform: translateY(-100vh) rotate(360deg);
    opacity: 0;
  }
}

/* Three.js Container */
.three-math-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}

/* Math Animation Container */
.math-animation-container {
  width: 100%;
  height: 400px;
  position: relative;
  z-index: 2;
  background-color: rgba(0, 0, 0, 0.2);
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

/* Math Shapes */
.math-shapes-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  pointer-events: none;
}

.math-shape {
  position: absolute;
  border: 2px solid rgba(255, 255, 255, 0.7);
  box-shadow: 0 0 15px rgba(255, 255, 255, 0.5);
  opacity: 0.7;
  transition: transform 0.5s ease, opacity 0.5s ease;
  z-index: 2;
}

.shape-circle {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  top: 10%;
  left: 10%;
  border-color: transparent;
  background: radial-gradient(circle at 30% 30%, #ff5722, #ff9800);
  box-shadow: 0 0 20px rgba(255, 87, 34, 0.6);
}

.shape-square {
  width: 70px;
  height: 70px;
  top: 30%;
  right: 15%;
  border-color: transparent;
  background: linear-gradient(135deg, #4caf50, #8bc34a);
  box-shadow: 0 0 20px rgba(76, 175, 80, 0.6);
}

.shape-triangle {
  width: 0;
  height: 0;
  border-left: 50px solid transparent;
  border-right: 50px solid transparent;
  border-bottom: 86px solid rgba(33, 150, 243, 0.9);
  background-color: transparent;
  bottom: 20%;
  left: 20%;
  box-shadow: 0 10px 20px rgba(33, 150, 243, 0.5);
}

.shape-pentagon {
  width: 60px;
  height: 60px;
  position: absolute;
  top: 60%;
  right: 25%;
  clip-path: polygon(50% 0%, 100% 38%, 82% 100%, 18% 100%, 0% 38%);
  background: linear-gradient(135deg, #9c27b0, #673ab7);
  box-shadow: 0 0 20px rgba(156, 39, 176, 0.6);
}

.shape-hexagon {
  width: 70px;
  height: 60px;
  position: absolute;
  top: 40%;
  left: 30%;
  clip-path: polygon(25% 0%, 75% 0%, 100% 50%, 75% 100%, 25% 100%, 0% 50%);
  background: linear-gradient(135deg, #ffc107, #ff9800);
  box-shadow: 0 0 20px rgba(255, 193, 7, 0.6);
}

/* Shape animations */
.pulse-animation {
  animation: pulse-shape 3s infinite ease-in-out;
}

.rotate-animation {
  animation: rotate-shape 8s infinite linear;
}

.bounce-animation {
  animation: bounce-shape 5s infinite ease-in-out;
}

.float-animation {
  animation: float-shape 6s infinite ease-in-out;
}

.spin-animation {
  animation: spin-shape 7s infinite ease-in-out;
}

@keyframes pulse-shape {

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

  50% {
    transform: scale(1.2);
    opacity: 0.9;
  }
}

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

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

@keyframes bounce-shape {

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

  50% {
    transform: translateY(-30px);
  }
}

@keyframes float-shape {

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

  25% {
    transform: translateY(-20px) translateX(10px);
  }

  50% {
    transform: translateY(0) translateX(20px);
  }

  75% {
    transform: translateY(20px) translateX(10px);
  }
}

@keyframes spin-shape {

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

  50% {
    transform: rotate(180deg) scale(1.1);
  }
}

/* Typing Animation */
.typing-animation::after {
  content: '|';
  animation: blink 1s infinite;
}

@keyframes blink {

  0%,
  100% {
    opacity: 1;
  }

  50% {
    opacity: 0;
  }
}

/* Features Section */
.features-section {
  padding: 100px 0;
  position: relative;
  background-color: #ffffff;
  overflow: hidden;
}

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

.floating-shape {
  position: absolute;
  opacity: 0.05;
  filter: blur(3px);
  z-index: 0;
}

.shape1 {
  top: 10%;
  left: 5%;
  width: 300px;
  height: 300px;
  background: linear-gradient(135deg, #00c6ff, #0072ff);
  border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
  animation: float-shape-slow 15s infinite alternate ease-in-out;
}

.shape2 {
  bottom: 10%;
  right: 5%;
  width: 250px;
  height: 250px;
  background: linear-gradient(135deg, #4caf50, #8bc34a);
  border-radius: 64% 36% 27% 73% / 55% 58% 42% 45%;
  animation: float-shape-slow 12s infinite alternate-reverse ease-in-out;
}

.shape3 {
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 400px;
  height: 400px;
  background: linear-gradient(135deg, #ff9800, #f44336);
  border-radius: 46% 54% 62% 38% / 30% 30% 70% 70%;
  opacity: 0.03;
  animation: rotate-slow 20s infinite linear;
}

@keyframes float-shape-slow {
  0% {
    transform: translate(0, 0) rotate(0deg);
  }

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

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

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

.section-header {
  position: relative;
  z-index: 1;
  margin-bottom: 60px;
}

.section-icon {
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  color: white;
  font-size: 1.5rem;
  box-shadow: 0 10px 20px rgba(58, 146, 98, 0.3);
}

.section-title {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 15px;
  color: #333;
}

.section-divider {
  width: 100%;
  display: flex;
  justify-content: center;
  margin-bottom: 20px;
}

.section-divider span {
  width: 80px;
  height: 4px;
  background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
  border-radius: 2px;
}

.section-subtitle {
  font-size: 1.2rem;
  color: #666;
  max-width: 700px;
  margin: 0 auto;
}

.feature-card-modern {
  background: white;
  border-radius: 16px;
  padding: 30px;
  text-align: center;
  height: 100%;
  position: relative;
  z-index: 1;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
  transition: all 0.4s ease;
  transform-style: preserve-3d;
  perspective: 1000px;
}

.feature-card-modern:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 40px rgba(0, 114, 255, 0.15);
}

.feature-icon-wrapper {
  position: relative;
  width: 80px;
  height: 80px;
  margin: 0 auto 25px;
}

.feature-icon-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  border-radius: 30% 70% 50% 50% / 50%;
  opacity: 0.1;
  transition: all 0.4s ease;
}

.feature-card-modern:hover .feature-icon-bg {
  transform: scale(1.2) rotate(10deg);
  opacity: 0.2;
}

.feature-icon {
  position: relative;
  z-index: 1;
  font-size: 2.5rem;
  color: var(--primary-color);
  line-height: 80px;
  transition: all 0.4s ease;
}

.feature-card-modern:hover .feature-icon {
  transform: rotateY(360deg);
  color: var(--secondary-color);
}

.feature-title {
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 15px;
  color: #333;
  transition: all 0.3s ease;
}

.feature-card-modern:hover .feature-title {
  color: var(--primary-color);
}

.feature-description {
  color: #666;
  margin-bottom: 0;
  line-height: 1.6;
}

.feature-hover-effect {
  position: absolute;
  top: -100%;
  left: -100%;
  width: 300%;
  height: 300%;
  background: radial-gradient(circle,
      rgba(58, 146, 98, 0.1) 0%,
      rgba(0, 176, 80, 0) 70%);
  transform: rotate(45deg);
  transition: all 0.8s ease;
  z-index: -1;
}

.feature-card-modern:hover .feature-hover-effect {
  top: -50%;
  left: -50%;
}

.features-cta {
  margin-top: 50px;
  position: relative;
  z-index: 1;
}

/* Math Demo Section */
.math-demo-section {
  padding: 120px 0;
  position: relative;
  overflow: hidden;
  background-color: #0f2027;
  color: white;
}

.demo-bg-wrapper {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}

.demo-bg-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg,
      rgba(15, 32, 39, 0.9) 0%,
      rgba(32, 58, 67, 0.9) 50%,
      rgba(44, 83, 100, 0.9) 100%);
  z-index: 1;
}

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

.demo-grid {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: linear-gradient(rgba(255, 255, 255, 0.05) 1px,
      transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
  background-size: 30px 30px;
  z-index: 3;
}

.demo-content {
  position: relative;
  z-index: 5;
  padding: 30px;
}

.demo-badge {
  display: inline-flex;
  align-items: center;
  background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
  color: white;
  padding: 8px 15px;
  border-radius: 50px;
  margin-bottom: 20px;
  font-weight: 600;
  font-size: 0.9rem;
  box-shadow: 0 5px 15px rgba(58, 146, 98, 0.3);
}

.demo-title {
  font-size: 3rem;
  font-weight: 800;
  margin-bottom: 20px;
  background: linear-gradient(to right, #ffffff, #a3e4ff);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  line-height: 1.2;
}

.demo-description {
  font-size: 1.1rem;
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 30px;
  line-height: 1.6;
}

.demo-features {
  margin-bottom: 30px;
}

.demo-feature {
  display: flex;
  align-items: center;
  margin-bottom: 20px;
}

.demo-feature-icon {
  width: 50px;
  height: 50px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 20px;
  font-size: 1.5rem;
  color: var(--primary-color);
}

.demo-feature-text h5 {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 5px;
  color: white;
}

.demo-feature-text p {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 0;
}

.demo-cta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
}

.demo-video-btn {
  color: var(--primary-color);
  font-weight: 500;
  font-size: 1rem;
  text-decoration: none;
  transition: all 0.3s ease;
}

.demo-video-btn:hover {
  color: white;
  transform: translateX(5px);
}

.demo-animation-wrapper {
  position: relative;
  width: 100%;
  height: 450px;
  perspective: 1000px;
}

.demo-animation-container {
  width: 100%;
  height: 100%;
  position: relative;
  z-index: 1;
}

.demo-animation-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at center,
      transparent 30%,
      rgba(15, 32, 39, 0.8) 100%);
  z-index: 2;
  pointer-events: none;
}

.demo-animation-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 300px;
  height: 300px;
  border-radius: 50%;
  background: radial-gradient(circle,
      rgba(58, 146, 98, 0.3) 0%,
      rgba(0, 176, 80, 0) 70%);
  filter: blur(30px);
  z-index: 0;
  animation: demo-glow 5s infinite alternate;
}

@keyframes demo-glow {
  0% {
    opacity: 0.5;
    transform: translate(-50%, -50%) scale(0.8);
  }

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

/* Testimonials Section */
.testimonials-section {
  padding: 100px 0;
  background-color: #f9f9f9;
  position: relative;
  overflow: hidden;
}

.dark-theme .testimonials-section {
  background-color: #1a1a1a;
}

.testimonial-shape {
  position: absolute;
  opacity: 0.05;
  z-index: 0;
}

.testimonial-shape1 {
  top: -100px;
  right: -100px;
  width: 400px;
  height: 400px;
  background: #3498db;
  border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
  animation: float-shape-slow 15s infinite alternate ease-in-out;
}

.testimonial-shape2 {
  bottom: -100px;
  left: -100px;
  width: 350px;
  height: 350px;
  background: #2ecc71;
  border-radius: 64% 36% 27% 73% / 55% 58% 42% 45%;
  animation: float-shape-slow 12s infinite alternate-reverse ease-in-out;
}

.testimonials-slider {
  display: flex;
  flex-wrap: nowrap;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  margin-bottom: 30px;
  padding: 20px 0;
  gap: 20px;
  scrollbar-width: none;
  /* Firefox */
}

.testimonials-slider::-webkit-scrollbar {
  display: none;
  /* Chrome, Safari, Opera */
}

.testimonial-card-modern {
  flex: 0 0 100%;
  max-width: 100%;
  scroll-snap-align: start;
  padding: 10px;
}

@media (min-width: 768px) {
  .testimonial-card-modern {
    flex: 0 0 calc(50% - 20px);
    max-width: calc(50% - 20px);
  }
}

@media (min-width: 992px) {
  .testimonial-card-modern {
    flex: 0 0 calc(33.333% - 20px);
    max-width: calc(33.333% - 20px);
  }
}

.testimonial-card-inner {
  background: white;
  border-radius: 16px;
  padding: 30px;
  height: 100%;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
  position: relative;
  z-index: 1;
  overflow: hidden;
}

.dark-theme .testimonial-card-inner {
  background: #2d2d2d;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.testimonial-card-inner:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 40px rgba(0, 114, 255, 0.15);
}

.testimonial-header {
  display: flex;
  align-items: center;
  margin-bottom: 20px;
  position: relative;
}

.testimonial-avatar {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  overflow: hidden;
  margin-right: 15px;
  border: 3px solid #f0f0f0;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.dark-theme .testimonial-avatar {
  border-color: #444;
}

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

.testimonial-info {
  flex: 1;
}

.testimonial-name {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 5px;
  color: #333;
}

.dark-theme .testimonial-name {
  color: #f0f0f0;
}

.testimonial-role {
  font-size: 0.9rem;
  color: #666;
  margin: 0;
}

.dark-theme .testimonial-role {
  color: #aaa;
}

.testimonial-quote-icon {
  position: absolute;
  top: 0;
  right: 0;
  color: rgba(58, 146, 98, 0.1);
  font-size: 2rem;
}

.testimonial-content {
  margin-bottom: 20px;
  position: relative;
}

.testimonial-content p {
  font-size: 1rem;
  line-height: 1.6;
  color: #555;
  font-style: italic;
}

.dark-theme .testimonial-content p {
  color: #ccc;
}

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

.testimonial-rating {
  color: #ffd700;
  font-size: 1rem;
}

.testimonial-date {
  font-size: 0.8rem;
  color: #999;
}

.testimonials-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 15px;
  margin-top: 40px;
}

.testimonial-nav-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: white;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #333;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  cursor: pointer;
  transition: all 0.3s ease;
}

.dark-theme .testimonial-nav-btn {
  background: #2d2d2d;
  color: #f0f0f0;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.testimonial-nav-btn:hover {
  background: var(--primary-color);
  color: white;
  transform: translateY(-3px);
}

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

.testimonial-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #ddd;
  cursor: pointer;
  transition: all 0.3s ease;
}

.dark-theme .testimonial-dot {
  background: #555;
}

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

/* Call to Action Section */
.cta-section {
  padding: 80px 0;
  background: linear-gradient(135deg,
      var(--primary-color),
      var(--secondary-color));
  color: white;
  text-align: center;
}

.cta-title {
  font-size: 2.5rem;
  margin-bottom: 20px;
}

.cta-subtitle {
  font-size: 1.2rem;
  margin-bottom: 30px;
  opacity: 0.9;
}

/* Animation Classes */
.fade-in {
  animation: fadeIn 1s ease-in-out;
}

.slide-up {
  animation: slideUp 0.8s ease-in-out;
}

.slide-in-right {
  animation: slideInRight 0.8s ease-in-out;
}

.slide-in-left {
  animation: slideInLeft 0.8s ease-in-out;
}

/* Section Animations */
.section-animated {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 1s ease, transform 1s ease;
}

.section-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Keyframes */
@keyframes fadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

@keyframes slideUp {
  from {
    transform: translateY(50px);
    opacity: 0;
  }

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

@keyframes slideInRight {
  from {
    transform: translateX(50px);
    opacity: 0;
  }

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

@keyframes slideInLeft {
  from {
    transform: translateX(-50px);
    opacity: 0;
  }

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

/* Responsive Styles */
@media (max-width: 768px) {
  .hero-title {
    font-size: 2.5rem;
  }

  .hero-subtitle {
    font-size: 1.2rem;
  }

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

/* Math Chalkboard Background */
.chalkboard-bg {
  background: linear-gradient(135deg, #2a3439 0%, #1a2327 100%);
  position: relative;
  overflow: hidden;
}

/* Math Typing Animation */
.math-equations-typing {
  margin: 20px 0;
  min-height: 40px;
}

.typing-text {
  font-family: 'Courier New', monospace;
  font-size: 1.2rem;
  font-weight: bold;
  display: inline-block;
  position: relative;
  padding-right: 5px;
}

.typing-text::after {
  content: '|';
  position: absolute;
  right: 0;
  animation: blink 0.7s infinite;
}

/* 3D Math Container */
.math-3d-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.math-formula {
  position: absolute;
  color: rgba(255, 255, 255, 0.1);
  font-family: 'Cambria Math', 'STIX Two Math', 'Courier New', monospace;
  pointer-events: none;
}

.math-equation {
  position: absolute;
  font-family: 'Cambria Math', 'STIX Two Math', 'Courier New', monospace;
  color: rgba(255, 255, 255, 0.7);
  text-shadow: 0 0 5px rgba(255, 255, 255, 0.5);
  pointer-events: none;
  transition: transform 0.5s ease, opacity 0.5s ease;
}

/* Auth Pages */
.auth-container {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  position: relative;
}

/* Auth specific styles for green theme */
.auth-card .btn-primary {
  background: linear-gradient(135deg, rgb(58, 146, 98), rgb(0, 176, 80));
  border: none;
  box-shadow: 0 5px 15px rgba(58, 146, 98, 0.4);
}

.auth-card .btn-primary:hover {
  background: linear-gradient(135deg, rgb(45, 120, 80), rgb(0, 150, 70));
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(58, 146, 98, 0.6);
}

.auth-card .form-control:focus {
  border-color: rgb(58, 146, 98);
  box-shadow: 0 0 0 0.25rem rgba(58, 146, 98, 0.25);
}

.auth-card .input-group-text {
  background: rgba(58, 146, 98, 0.1);
  border-color: rgba(58, 146, 98, 0.3);
  color: rgb(58, 146, 98);
}

.auth-card .animated-link {
  color: rgb(58, 146, 98);
  text-decoration: none;
  transition: all 0.3s ease;
}

.auth-card .animated-link:hover {
  color: rgb(0, 176, 80);
  text-decoration: underline;
}

.auth-card .gradient-text {
  background: linear-gradient(135deg, rgb(58, 146, 98), rgb(0, 176, 80));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.math-auth-bg {
  background: linear-gradient(135deg, rgb(58, 146, 98) 0%, rgb(0, 176, 80) 100%);
  overflow: hidden;
}

.auth-card {
  width: 100%;
  max-width: 450px;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  border: none;
}

.dark-theme .auth-card {
  background-color: #2d2d2d;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

.auth-header {
  text-align: center;
  margin-bottom: 30px;
}

/* Math Icon Animation */
.math-icon-container {
  width: 80px;
  height: 80px;
  background: linear-gradient(135deg, rgb(58, 146, 98), rgb(0, 176, 80));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  position: relative;
  overflow: hidden;
}

.math-icon-container::before {
  content: '';
  position: absolute;
  width: 150%;
  height: 150%;
  background: rgba(255, 255, 255, 0.2);
  transform: rotate(45deg);
  top: -40%;
  left: -40%;
  animation: shine 3s infinite;
}

.math-icon-animated {
  font-size: 2.5rem;
  color: white;
  animation: bounce 2s infinite;
}

@keyframes shine {
  0% {
    left: -40%;
    top: -40%;
  }

  100% {
    left: 100%;
    top: 100%;
  }
}

@keyframes bounce {

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

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

/* Floating Math Symbols */
.floating-math-symbol {
  position: absolute;
  pointer-events: none;
  z-index: 0;
}

@keyframes float {
  0% {
    transform: translate(0, 0) rotate(0deg);
  }

  50% {
    transform: translate(10px, -15px) rotate(5deg);
  }

  100% {
    transform: translate(-10px, 10px) rotate(-5deg);
  }
}

/* Math Particles Canvas */
.math-particles-canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
}

.auth-form {
  margin-bottom: 20px;
}

.auth-footer {
  text-align: center;
  margin-top: 20px;
}

.auth-separator {
  display: flex;
  align-items: center;
  text-align: center;
  margin: 20px 0;
}

.auth-separator::before,
.auth-separator::after {
  content: '';
  flex: 1;
  border-bottom: 1px solid #ddd;
}

.dark-theme .auth-separator::before,
.dark-theme .auth-separator::after {
  border-color: #444;
}

.auth-separator-text {
  padding: 0 10px;
}

/* 404 Page */
.error-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.error-code {
  font-size: 8rem;
  font-weight: 700;
  color: var(--primary-color);
  margin-bottom: 20px;
}

.error-message {
  font-size: 2rem;
  margin-bottom: 30px;
}

/* Student Photos Slider Styles */
.student-photos-section {
  padding: 100px 0;
  background: linear-gradient(135deg, #0f2027 0%, #203a43 50%, #2c5364 100%);
  position: relative;
  overflow: hidden;
}

.student-photos-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="25" cy="25" r="1" fill="rgba(255,255,255,0.1)"/><circle cx="75" cy="75" r="1" fill="rgba(255,255,255,0.1)"/><circle cx="50" cy="10" r="0.5" fill="rgba(255,255,255,0.05)"/><circle cx="10" cy="60" r="0.5" fill="rgba(255,255,255,0.05)"/><circle cx="90" cy="40" r="0.5" fill="rgba(255,255,255,0.05)"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
  opacity: 0.3;
  pointer-events: none;
}

.student-photos-container {
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.student-photos-slider {
  position: relative;
  overflow: hidden;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 40px 20px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.slides-container {
  display: flex;
  gap: 40px;
  transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  height: 100%;
  padding: 0 20px;
  transform: translateX(0);
}

.student-photo-card {
  position: relative;
  background: transparent;
  border: 2px solid rgba(255, 255, 255, 0.2);
  border-radius: 15px;
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
  backdrop-filter: blur(10px);
  width: 350px;
  height: 350px;
  flex-shrink: 0;
}

.student-photo-card:hover {
  transform: translateY(-10px) scale(1.05);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
  border-color: rgba(58, 146, 98, 0.8);
}

.student-photo {
  position: relative;
  height: 100%;
  overflow: hidden;
  background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
}

.student-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: all 0.4s ease;
  filter: brightness(1.1) contrast(1.1);
}

.student-photo-card:hover .student-photo img {
  transform: scale(1.1);
  filter: brightness(1.2) contrast(1.2);
}

.photo-glow {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(45deg, transparent 30%, rgba(255, 255, 255, 0.1) 50%, transparent 70%);
  transform: translateX(-100%);
  transition: transform 0.6s ease;
}

.student-photo-card:hover .photo-glow {
  transform: translateX(100%);
}

/* Slider Controls */
.slider-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 30px;
  margin-top: 30px;
  position: relative;
}

.slider-arrow {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: rgba(255, 255, 255, 0.8);
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
  font-size: 1.2rem;
}

.slider-arrow:hover {
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.4);
  color: white;
  transform: scale(1.1);
}

.slider-arrow:active {
  transform: scale(0.95);
}

.slider-arrow:disabled {
  opacity: 0.3;
  cursor: not-allowed;
  transform: none;
}

.slider-arrow:disabled:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.2);
  color: rgba(255, 255, 255, 0.8);
  transform: none;
}

/* Slider Info */
.slider-info {
  position: absolute;
  top: 20px;
  right: 20px;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  padding: 8px 15px;
  border-radius: 20px;
  color: white;
  font-size: 0.9rem;
  font-weight: 600;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

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

/* Fallback Content */
.fallback-content {
  text-align: center;
  padding: 60px 20px;
  color: white;
}

.fallback-icon {
  font-size: 4rem;
  margin-bottom: 20px;
  opacity: 0.7;
}

.fallback-content h3 {
  font-size: 1.5rem;
  margin-bottom: 15px;
  font-weight: 600;
}

.fallback-content p {
  font-size: 1rem;
  opacity: 0.8;
  max-width: 400px;
  margin: 0 auto;
}

/* Responsive Design */
@media (max-width: 768px) {
  .student-photos-section {
    padding: 60px 0;
  }

  .student-photos-slider {
    padding: 20px 15px;
  }

  .slides-container {
    gap: 25px;
  }

  .student-photo-card {
    width: 280px;
    height: 280px;
  }

  .slider-info {
    position: static;
    margin-top: 20px;
    display: inline-block;
  }

  .slider-controls {
    gap: 20px;
  }

  .slider-arrow {
    width: 45px;
    height: 45px;
    font-size: 1.1rem;
  }
}

@media (max-width: 480px) {
  .slides-container {
    gap: 20px;
  }

  .student-photo-card {
    width: 220px;
    height: 220px;
  }

  .slider-controls {
    flex-direction: column;
    gap: 10px;
  }
}

/* ================================ */
/* PROFESSOR MATHEMATICS STYLES */
/* ================================ */

/* Enhanced Glass Navbar Styles */
.glass-navbar-professor {
  background: rgba(255, 255, 255, 0.08) !important;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  padding: 10px 0;
  z-index: 1000;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  display: flex;
  align-items: center;
}

.light-theme .glass-navbar-professor {
  background: rgba(255, 255, 255, 0.9) !important;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

.dark-theme .glass-navbar-professor {
  background: rgba(0, 0, 0, 0.5) !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.navbar-glass-backdrop {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg,
      rgba(184, 1, 1, 0.05) 0%,
      rgba(184, 1, 1, 0.02) 50%,
      rgba(184, 1, 1, 0.05) 100%);
  pointer-events: none;
}

.navbar-brand {
  display: flex;
  align-items: center;
  margin-right: 2rem;
}

.container.position-relative {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.navbar-collapse {
  display: flex;
  align-items: center;
}

.navbar-nav {
  display: flex;
  align-items: center;
}

/* Professor Logo and Header Styles */
.logo-container-professor {
  display: flex;
  align-items: center;
  position: relative;
  z-index: 2;
}

.logo-image-wrapper-professor {
  width: 70px;
  height: 70px;
  border-radius: 18px;
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 15px;
  position: relative;
  overflow: visible;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.logo-image-k {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 8px 15px rgba(184, 1, 1, 0.3));
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  transform-origin: center;
  animation: logo-pulse 3s infinite ease-in-out;
  z-index: 2;
}

.logo-image-wrapper-professor:hover .logo-image-k {
  transform: scale(1.05);
  filter: drop-shadow(0 12px 20px rgba(184, 1, 1, 0.5));
}

.logo-accent-math {
  position: absolute;
  top: -8px;
  right: -8px;
  font-size: 1.2rem;
  color: rgba(255, 255, 255, 0.9);
  font-family: 'Cambria Math', 'STIX Two Math', serif;
  animation: accent-float 4s infinite ease-in-out;
  text-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
}

.logo-mathematical-particles {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.logo-mathematical-particles .particle {
  position: absolute;
  font-family: 'Cambria Math', 'STIX Two Math', serif;
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.8rem;
  animation: particle-float 8s infinite ease-in-out;
}

.logo-mathematical-particles .particle:nth-child(1) {
  top: -15px;
  left: -10px;
  animation-delay: 0s;
}

.logo-mathematical-particles .particle:nth-child(2) {
  top: 10px;
  right: -15px;
  animation-delay: 2s;
}

.logo-mathematical-particles .particle:nth-child(3) {
  bottom: -10px;
  left: 5px;
  animation-delay: 4s;
}

@keyframes particle-float {

  0%,
  100% {
    transform: translate(0, 0) rotate(0deg);
    opacity: 0.6;
  }

  50% {
    transform: translate(5px, -8px) rotate(180deg);
    opacity: 1;
  }
}

@keyframes logo-pulse {

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

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

@keyframes accent-float {

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

  50% {
    transform: translate(-3px, 3px) rotate(15deg);
  }
}

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

.logo-text-professor {
  font-size: 1.4rem;
  font-weight: 800;
  color: #ffffff;
  font-family: 'Poppins', sans-serif;
  letter-spacing: 1px;
  line-height: 1.2;
  margin: 0;
  transition: color 0.3s ease;
}

.logo-subtitle-professor {
  font-size: 0.65rem;
  color: rgba(255, 255, 255, 0.7);
  text-transform: uppercase;
  letter-spacing: 1.2px;
  font-weight: 500;
  transition: color 0.3s ease;
}

.light-theme .logo-text-professor {
  color: #1e293b;
}

.light-theme .logo-subtitle-professor {
  color: rgba(30, 41, 59, 0.7);
}

/* Professor Navigation Links */
.nav-link-professor {
  color: rgba(255, 255, 255, 0.85) !important;
  font-weight: 500;
  padding: 12px 18px !important;
  margin: 0 8px;
  border-radius: 12px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  display: flex;
  align-items: center;
  overflow: hidden;
  text-decoration: none;
}

.nav-link-professor::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 2px;
  background: var(--red-primary);
  transform: translateX(-50%);
  transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 1;
}

.nav-link-professor::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(184, 1, 1, 0.15), rgba(184, 1, 1, 0.05));
  border-radius: 12px;
  opacity: 0;
  transform: scale(0.9);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: -1;
}

.nav-link-professor .nav-icon {
  margin-right: 8px;
  font-size: 0.9rem;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-link-professor:hover {
  color: #ffffff !important;
  transform: translateY(-2px);
}

.nav-link-professor:hover::before {
  width: 70%;
}

.nav-link-professor:hover::after {
  opacity: 1;
  transform: scale(1);
}

.nav-link-professor:hover .nav-icon {
  transform: scale(1.2) rotate(10deg);
  color: #ffffff;
}

.nav-link-professor.active {
  background: linear-gradient(135deg, var(--red-primary), var(--red-secondary));
  color: #ffffff !important;
  box-shadow: 0 8px 25px rgba(184, 1, 1, 0.3);
}

.nav-link-professor.active::before {
  width: 70%;
}

.light-theme .nav-link-professor {
  color: rgba(30, 41, 59, 0.85) !important;
}

.light-theme .nav-link-professor:hover {
  color: var(--red-primary) !important;
}

.light-theme .nav-link-professor:hover::after {
  background: rgba(184, 1, 1, 0.1);
}

.light-theme .nav-link-professor.active {
  color: #ffffff !important;
}

/* Professor Auth Buttons */
.auth-buttons-professor {
  display: flex;
  align-items: center;
  gap: 12px;
}

.btn-login-professor,
.btn-register-professor {
  padding: 10px 20px;
  border-radius: 25px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9rem;
  border: 2px solid transparent;
}

.btn-login-professor {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.3);
  color: rgba(255, 255, 255, 0.9);
}

.btn-register-professor {
  background: linear-gradient(135deg, var(--red-primary), var(--red-secondary));
  color: white;
  box-shadow: 0 5px 15px rgba(184, 1, 1, 0.3);
}

.btn-login-professor:hover {
  border-color: var(--red-primary);
  background: rgba(184, 1, 1, 0.1);
  color: white;
  transform: translateY(-2px);
}

.btn-register-professor:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(184, 1, 1, 0.4);
}

/* Enhanced Hero Section Professor */
.hero-section-professor {
  position: relative;
  min-height: 90vh;
  /* Reduced from 100vh */
  display: flex;
  align-items: flex-start;
  /* Changed from center to start */
  overflow: hidden;
  background: linear-gradient(135deg, #0a0a0a 0%, #1a1a1a 30%, #2a1a1a 100%);
  padding-top: 70px;
  /* Reduced padding top */
}

.light-theme .hero-section-professor {
  background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 30%, #e2e8f0 100%);
}

/* Mathematical Background Elements */
.mathematical-grid-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image:
    linear-gradient(rgba(184, 1, 1, 0.1) 1px, transparent 1px),
    linear-gradient(90deg, rgba(184, 1, 1, 0.1) 1px, transparent 1px);
  background-size: 50px 50px;
  animation: grid-move 20s linear infinite;
  opacity: 0.3;
}

@keyframes grid-move {
  0% {
    transform: translate(0, 0);
  }

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

.mathematical-equations-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  pointer-events: none;
}

.equation-float {
  position: absolute;
  font-family: 'Cambria Math', 'STIX Two Math', serif;
  color: rgba(184, 1, 1, 0.15);
  font-size: 1.2rem;
  animation: equation-drift 15s infinite ease-in-out;
  opacity: 0;
}

.light-theme .equation-float {
  color: rgba(184, 1, 1, 0.2);
}

.eq-bg-1 {
  top: 15%;
  left: 10%;
  animation-delay: 0s;
}

.eq-bg-2 {
  top: 25%;
  right: 15%;
  animation-delay: 3s;
}

.eq-bg-3 {
  bottom: 30%;
  left: 20%;
  animation-delay: 6s;
}

.eq-bg-4 {
  bottom: 20%;
  right: 25%;
  animation-delay: 9s;
}

.eq-bg-5 {
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  animation-delay: 12s;
}

@keyframes equation-drift {

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

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

  50% {
    opacity: 0.8;
    transform: translateY(-5px) rotate(-1deg);
  }

  75% {
    opacity: 0.6;
    transform: translateY(10px) rotate(1deg);
  }
}

/* Hero Glass Container */
.hero-glass-container {
  margin: auto;
  position: relative;
  z-index: 3;
  width: 100%;
}

.hero-content-glass {
  position: relative;
  z-index: 2;
  margin-top: 30px;
  /* Add margin top to bring content down */
  padding-top: 0;
  /* Remove any top padding */
}

/* Academic Excellence Badge */
.academic-excellence-badge {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: rgba(184, 1, 1, 0.1);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(184, 1, 1, 0.2);
  border-radius: 50px;
  padding: 12px 24px;
  margin-bottom: 30px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 8px 25px rgba(184, 1, 1, 0.15);
}

.light-theme .academic-excellence-badge {
  background: rgba(184, 1, 1, 0.08);
  border-color: rgba(184, 1, 1, 0.15);
}

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

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

  100% {
    left: 100%;
  }
}

.badge-icon {
  color: var(--red-primary);
  font-size: 1.2rem;
  animation: badge-icon-pulse 2s infinite ease-in-out;
}

@keyframes badge-icon-pulse {

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

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

.badge-text {
  color: var(--red-primary);
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: 0.5px;
}

.light-theme .badge-text,
.light-theme .badge-icon {
  color: var(--red-primary);
}

.badge-mathematical-accent {
  position: absolute;
  top: -5px;
  right: -5px;
  font-family: 'Cambria Math', 'STIX Two Math', serif;
  color: rgba(184, 1, 1, 0.7);
  font-size: 1.5rem;
  animation: accent-spin 6s infinite ease-in-out;
}

@keyframes accent-spin {

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

  50% {
    transform: rotate(180deg);
  }
}

/* Enhanced Hero Title */
.hero-title-mathematical {
  font-size: clamp(2.5rem, 8vw, 5rem);
  font-weight: 900;
  line-height: 1.1;
  margin-bottom: 35px;
  font-family: 'Poppins', sans-serif;
  letter-spacing: -0.02em;
  width: 100%;
  overflow-wrap: break-word;
  word-wrap: break-word;
  hyphens: auto;
}

.hero-title-compact {
  font-size: clamp(2.2rem, 6vw, 4.2rem);
  margin-bottom: 25px;
}

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

.title-line-1 {
  color: #ffffff;
  animation-delay: 0.2s;
}

.title-line-2.title-accent-red {
  background: linear-gradient(135deg, var(--red-primary), var(--red-secondary));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation-delay: 0.4s;
  text-shadow: 0 0 30px rgba(184, 1, 1, 0.3);
  font-size: 1.1em;
  letter-spacing: -0.03em;
  margin: 8px 0;
  position: relative;
}

/* Ensure the red second line can wrap and avoid overlap with the right photo */
.hero-title-mathematical.hero-title-compact .title-line-2 {
  display: inline;
  line-height: 1.1;
  word-break: break-word;
  overflow-wrap: anywhere;
}

/* Slightly reduce size of the second line on large screens to keep balance */
@media (min-width: 992px) {
  .hero-title-mathematical.hero-title-compact .title-line-2 {
    font-size: 0.95em;
  }
}

/* Center hero content and contacts on mobile, and allow comfortable wrapping */
@media (max-width: 768px) {
  .hero-content-glass {
    text-align: center;
  }

  .hero-title-mathematical.hero-title-compact .title-line {
    display: block;
  }

  .hero-title-mathematical.hero-title-compact .title-line-1 {
    margin-bottom: 6px;
  }

  .hero-title-mathematical.hero-title-compact .title-line-2 {
    font-size: 1em;
    display: inline-block;
  }

  .hero-description-enhanced {
    margin-left: auto;
    margin-right: auto;
  }

  .hero-contacts {
    justify-content: center;
  }

  .hero-contacts .contact-card {
    width: 100%;
    max-width: 420px;
    justify-content: center;
  }
}

@media (max-width: 480px) {
  .hero-title-mathematical.hero-title-compact .title-line-1 {
    font-size: 1.95em;
  }

  .hero-title-mathematical.hero-title-compact .title-line-2 {
    font-size: 1.75em;
  }
}

/* Ensure contact numbers are readable in dark mode */
.dark-theme .hero-contacts .contact-card strong {
  color: #ffffff !important;
}

.dark-theme .hero-contacts .contact-card small {
  color: rgba(255, 255, 255, 0.8) !important;
}

.title-line-2.title-accent-red::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--red-primary), var(--red-secondary), var(--red-transparent));
  animation: title-underline 1.2s ease-out 0.8s forwards;
}

@keyframes title-underline {
  to {
    width: 100%;
  }
}

.title-line-3 {
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.7em;
  font-weight: 600;
  animation-delay: 0.6s;
  letter-spacing: 0.01em;
  max-width: 90%;
}

.light-theme .title-line-1 {
  color: #1a1a1a;
}

.light-theme .title-line-3 {
  color: rgba(26, 26, 26, 0.7);
}

@keyframes title-line-appear {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Animated text effect for "Excellence" */
.title-accent-red {
  position: relative;
  display: inline-block;
}

.title-accent-red::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg,
      var(--red-transparent),
      var(--red-primary),
      var(--red-secondary),
      var(--red-transparent));
  background-size: 200% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: shine 4s infinite linear;
  opacity: 0.7;
  z-index: 1;
}

@keyframes shine {
  0% {
    background-position: -200% 0;
  }

  100% {
    background-position: 200% 0;
  }
}

/* Enhanced Description */
.hero-description-enhanced {
  margin-bottom: 45px;
  width: 100%;
  position: relative;
}

.hero-description-enhanced p {
  font-size: 1.25rem;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.9);
  max-width: 95%;
  margin: 0;
  font-weight: 400;
  letter-spacing: 0.01em;
  overflow-wrap: break-word;
  word-wrap: break-word;
  position: relative;
  z-index: 2;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
  animation: fadeInUp 1s ease-out 0.8s forwards;
  opacity: 0;
  transform: translateY(20px);
}

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

.hero-description-enhanced::before {
  content: '';
  position: absolute;
  left: -20px;
  top: 50%;
  transform: translateY(-50%);
  width: 3px;
  height: 0;
  background: linear-gradient(to bottom, var(--red-primary), var(--red-transparent));
  animation: descriptionBorder 1s ease-out 1s forwards;
}

@keyframes descriptionBorder {
  to {
    height: 100%;
  }
}

.light-theme .hero-description-enhanced p {
  color: rgba(26, 26, 26, 0.8);
  text-shadow: none;
}

/* Subtle animated math background */
.mathematical-equations-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  pointer-events: none;
  overflow: hidden;
}

.equation-float {
  position: absolute;
  font-family: 'Cambria Math', 'STIX Two Math', serif;
  color: rgba(184, 1, 1, 0.08);
  font-size: 2rem;
  animation: equation-drift 15s infinite ease-in-out;
  opacity: 0;
  text-shadow: 0 0 20px rgba(184, 1, 1, 0.1);
}

.light-theme .equation-float {
  color: rgba(184, 1, 1, 0.1);
}

.equation-float.visible {
  animation: equation-appear 0.8s ease-out forwards, equation-drift 15s infinite ease-in-out;
}

@keyframes equation-appear {
  from {
    opacity: 0;
    transform: scale(0.8) translateY(20px);
  }

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

/* Mathematical Stats Grid */
.mathematical-stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 25px;
  margin-bottom: 50px;
}

@media (max-width: 768px) {
  .mathematical-stats-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
}

.stat-card {
  display: flex;
  align-items: center;
  gap: 15px;
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  padding: 18px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.stat-card:hover {
  transform: translateY(-6px);
  background: rgba(184, 1, 1, 0.12);
  border-color: rgba(184, 1, 1, 0.35);
  box-shadow: 0 18px 40px rgba(184, 1, 1, 0.25);
}

.stat-icon {
  width: 48px;
  height: 48px;
  background: linear-gradient(135deg, var(--red-primary), var(--red-secondary));
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.2rem;
  box-shadow: 0 10px 20px rgba(184, 1, 1, 0.3);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.stat-card:hover .stat-icon {
  transform: translateY(-4px) rotate(6deg);
  box-shadow: 0 14px 28px rgba(184, 1, 1, 0.45);
}

.stat-number {
  font-size: 1.9rem;
  font-weight: 900;
  line-height: 1;
  background: linear-gradient(135deg, var(--red-primary), var(--red-secondary));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-shadow: 0 0 0 rgba(0, 0, 0, 0);
}

.stat-label {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.75);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-top: 3px;
}

.light-theme .stat-card {
  background: rgba(255, 255, 255, 0.9);
  border-color: rgba(0, 0, 0, 0.06);
}

.light-theme .stat-card:hover {
  background: rgba(184, 1, 1, 0.08);
  box-shadow: 0 18px 40px rgba(184, 1, 1, 0.18);
}

.light-theme .stat-label {
  color: rgba(26, 26, 26, 0.6);
}

/* Enhanced CTA Buttons with Advanced Effects */
.hero-cta-enhanced {
  display: flex;
  gap: 20px;
  align-items: center;
  flex-wrap: wrap;
  margin-top: 10px;
  position: relative;
  z-index: 5;
}

.btn-primary-mathematical,
.btn-secondary-mathematical {
  position: relative;
  padding: 18px 35px;
  border-radius: 50px;
  font-weight: 700;
  font-size: 1.1rem;
  text-decoration: none;
  transition: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
  display: flex;
  align-items: center;
  gap: 12px;
  overflow: hidden;
  border: 2px solid transparent;
  cursor: pointer;
  transform-style: preserve-3d;
  perspective: 1000px;
}

/* Primary Button Styling */
.btn-primary-mathematical {
  background: linear-gradient(135deg, var(--red-primary), var(--red-secondary));
  color: white;
  box-shadow: 0 12px 30px rgba(184, 1, 1, 0.3);
  position: relative;
  z-index: 1;
}

.btn-primary-mathematical::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, var(--red-secondary), var(--red-primary));
  border-radius: 50px;
  opacity: 0;
  transition: opacity 0.5s ease;
  z-index: -1;
}

.btn-primary-mathematical:hover {
  transform: translateY(-5px) translateZ(20px);
  box-shadow: 0 18px 40px rgba(184, 1, 1, 0.5);
  color: white;
  letter-spacing: 0.5px;
  animation: button-pulse 1.5s infinite alternate;
}

@keyframes button-pulse {
  0% {
    box-shadow: 0 18px 40px rgba(184, 1, 1, 0.5);
  }

  100% {
    box-shadow: 0 18px 40px rgba(184, 1, 1, 0.8);
  }
}

.btn-primary-mathematical:hover::before {
  opacity: 1;
}

.btn-primary-mathematical:active {
  transform: translateY(-2px) scale(0.98);
  box-shadow: 0 10px 20px rgba(184, 1, 1, 0.4);
  transition: all 0.2s ease;
}

/* Secondary Button Styling */
.btn-secondary-mathematical {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(20px);
  border-color: rgba(255, 255, 255, 0.2);
  color: rgba(255, 255, 255, 0.9);
  position: relative;
  z-index: 1;
}

.light-theme .btn-secondary-mathematical {
  background: rgba(184, 1, 1, 0.05);
  border-color: rgba(184, 1, 1, 0.2);
  color: var(--red-primary);
}

.btn-secondary-mathematical::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, var(--red-primary), var(--red-secondary));
  border-radius: 50px;
  opacity: 0;
  transition: opacity 0.5s ease;
  z-index: -1;
}

.btn-secondary-mathematical:hover {
  transform: translateY(-5px) translateZ(20px);
  border-color: rgba(184, 1, 1, 0.4);
  color: white;
  box-shadow: 0 12px 30px rgba(184, 1, 1, 0.3);
}

.btn-secondary-mathematical:hover::before {
  opacity: 1;
}

.btn-secondary-mathematical:active {
  transform: translateY(-2px) scale(0.98);
  transition: all 0.2s ease;
}

/* Button Accent Symbol */
.btn-mathematical-accent {
  position: absolute;
  top: -8px;
  right: -8px;
  font-family: 'Cambria Math', 'STIX Two Math', serif;
  font-size: 1.4rem;
  color: rgba(255, 255, 255, 0.8);
  animation: btn-accent-float 4s infinite ease-in-out;
  text-shadow: 0 0 10px rgba(255, 255, 255, 0.3);
  transition: all 0.5s ease;
  transform-origin: center;
}

.btn-primary-mathematical:hover .btn-mathematical-accent {
  transform: scale(1.2) rotate(15deg);
  color: rgba(255, 255, 255, 1);
  text-shadow: 0 0 15px rgba(255, 255, 255, 0.5);
}

@keyframes btn-accent-float {

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

  50% {
    transform: translate(-3px, 3px) rotate(15deg);
  }
}

/* Button Glow Wave Effect */
.btn-glow-wave {
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  animation: btn-wave 2s infinite;
  z-index: 2;
}

.btn-primary-mathematical:hover .btn-glow-wave {
  animation: btn-wave 1.5s infinite;
}

@keyframes btn-wave {
  0% {
    left: -100%;
  }

  100% {
    left: 100%;
  }
}

/* Button Text Animation */
.btn-primary-mathematical span,
.btn-secondary-mathematical span {
  position: relative;
  z-index: 2;
  transition: all 0.5s ease;
}

.btn-primary-mathematical:hover span,
.btn-secondary-mathematical:hover span {
  transform: scale(1.05);
}

/* Button Icon Animation */
.btn-secondary-mathematical i {
  transition: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.btn-secondary-mathematical:hover i {
  transform: scale(1.2) rotate(15deg);
}

/* Button Ripple Effect */
.btn-primary-mathematical::after,
.btn-secondary-mathematical::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 5px;
  height: 5px;
  background: rgba(255, 255, 255, 0.5);
  opacity: 0;
  border-radius: 100%;
  transform: scale(1) translate(-50%, -50%);
  transform-origin: 50% 50%;
}

.btn-primary-mathematical:active::after,
.btn-secondary-mathematical:active::after {
  animation: ripple 0.6s ease-out;
}

@keyframes ripple {
  0% {
    transform: scale(0) translate(-50%, -50%);
    opacity: 0.5;
  }

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

/* Enhanced Visual Section */
.hero-visual-mathematical {
  position: relative;
  height: 600px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.mathematical-scene-3d {
  position: relative;
  width: 100%;
  height: 100%;
  perspective: 1000px;
  transform-style: preserve-3d;
}

/* Geometric Shapes Container */
.geometric-shapes-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.geometric-shape {
  position: absolute;
  border: 2px solid rgba(184, 1, 1, 0.3);
  background: linear-gradient(135deg, rgba(184, 1, 1, 0.1), rgba(184, 1, 1, 0.05));
  backdrop-filter: blur(10px);
}

.shape-dodecahedron {
  width: 80px;
  height: 80px;
  top: 15%;
  left: 10%;
  clip-path: polygon(50% 0%, 100% 38%, 82% 100%, 18% 100%, 0% 38%);
  animation: shape-float-1 8s infinite ease-in-out;
}

.shape-icosahedron {
  width: 60px;
  height: 60px;
  top: 70%;
  right: 15%;
  clip-path: polygon(25% 0%, 75% 0%, 100% 50%, 75% 100%, 25% 100%, 0% 50%);
  animation: shape-float-2 6s infinite ease-in-out;
}

.shape-tetrahedron {
  width: 70px;
  height: 70px;
  bottom: 20%;
  left: 20%;
  clip-path: polygon(50% 0%, 0% 100%, 100% 100%);
  animation: shape-float-3 7s infinite ease-in-out;
}

@keyframes shape-float-1 {

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

  50% {
    transform: translate(15px, -20px) rotate(120deg);
  }
}

@keyframes shape-float-2 {

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

  50% {
    transform: translate(-10px, 15px) rotate(-90deg);
  }
}

@keyframes shape-float-3 {

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

  50% {
    transform: translate(20px, -10px) rotate(180deg);
  }
}

/* Enhanced Professor Portrait with Interactive Effects */
.professor-portrait-glass {
  position: relative;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  perspective: 1000px;
}

.portrait-glass-frame {
  position: relative;
  width: 320px;
  height: 370px;
  border-radius: 30px;
  /* background: rgba(255, 255, 255, 0.1); */
  backdrop-filter: blur(30px);
  /* border: 2px solid rgba(184, 1, 1, 0.3); */
  overflow: hidden;
  /* box-shadow: 
    0 25px 50px rgba(0, 0, 0, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.2); */
  transition: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
  transform-style: preserve-3d;
  cursor: pointer;
  animation: frame-float 6s infinite ease-in-out;
}

.light-theme .portrait-glass-frame {
  /* background: rgba(255, 255, 255, 0.4);
  box-shadow: 
    0 25px 50px rgba(0, 0, 0, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.6); */
}

.portrait-glass-frame:hover {
  transform: scale(1.05) rotateY(10deg) translateY(-10px);
  box-shadow:
    0 35px 70px rgba(184, 1, 1, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.3),
    -10px 10px 30px rgba(0, 0, 0, 0.2);
  border-color: rgba(184, 1, 1, 0.6);
  animation: none;
}

@keyframes frame-float {

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

  50% {
    transform: translateY(-8px) rotateY(3deg);
  }
}

.portrait-glass-frame:active {
  transform: scale(0.98) rotateY(5deg);
  transition: all 0.2s ease;
}

.glass-reflection {
  display: none;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg,
      rgba(255, 255, 255, 0.3) 0%,
      transparent 50%,
      rgba(255, 255, 255, 0.1) 100%);
  border-radius: 30px;
  pointer-events: none;
  opacity: 0.7;
  transition: opacity 0.5s ease;
}

.portrait-glass-frame:hover .glass-reflection {
  opacity: 1;
  animation: reflection-shift 2s infinite alternate ease-in-out;
}

@keyframes reflection-shift {
  0% {
    background-position: 0% 0%;
  }

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

.mathematical-border {
  position: absolute;
  top: 10;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 5;
}

.border-symbol {
  position: absolute;
  font-family: 'Cambria Math', 'STIX Two Math', serif;
  color: rgba(184, 1, 1, 0.7);
  font-size: 1.8rem;
  animation: symbol-pulse 3s infinite ease-in-out;
  text-shadow: 0 0 10px rgba(184, 1, 1, 0.3);
  transition: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.portrait-glass-frame:hover .border-symbol {
  color: rgba(184, 1, 1, 1);
  text-shadow: 0 0 15px rgba(184, 1, 1, 0.5);
}

.border-symbol-1 {
  top: -15px;
  left: 20%;
  animation-delay: 0s;
}

.border-symbol-2 {
  top: 20%;
  right: -15px;
  animation-delay: 0.8s;
}

.border-symbol-3 {
  bottom: -15px;
  right: 20%;
  animation-delay: 1.6s;
}

.border-symbol-4 {
  bottom: 20%;
  left: -15px;
  animation-delay: 2.4s;
}

.portrait-glass-frame:hover .border-symbol-1 {
  transform: translateY(-5px) scale(1.2) rotate(15deg);
}

.portrait-glass-frame:hover .border-symbol-2 {
  transform: translateX(5px) scale(1.2) rotate(-15deg);
}

.portrait-glass-frame:hover .border-symbol-3 {
  transform: translateY(5px) scale(1.2) rotate(15deg);
}

.portrait-glass-frame:hover .border-symbol-4 {
  transform: translateX(-5px) scale(1.2) rotate(-15deg);
}

@keyframes symbol-pulse {

  0%,
  100% {
    opacity: 0.7;
    transform: scale(1) rotate(0deg);
  }

  50% {
    opacity: 1;
    transform: scale(1.2) rotate(180deg);
  }
}

.professor-image-enhanced {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 28px;
  transition: all 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
  filter: brightness(0.95) contrast(1.05);
  animation: subtle-pulse 3s infinite alternate ease-in-out;
}

@keyframes subtle-pulse {
  0% {
    transform: scale(1);
    filter: brightness(0.95) contrast(1.05);
  }

  100% {
    transform: scale(1.02);
    filter: brightness(1) contrast(1.08);
  }
}

.portrait-glass-frame:hover .professor-image-enhanced {
  transform: scale(1.08) translateZ(20px) rotate(2deg);
  filter: brightness(1.1) contrast(1.15);
  animation: none;
}

/* Animated border on hover */
.portrait-glass-frame::before {
  content: '';
  position: absolute;
  top: -3px;
  left: -3px;
  right: -3px;
  bottom: -3px;
  border: 0px solid var(--red-primary);
  border-radius: 33px;
  opacity: 0;
  z-index: 4;
  transition: all 0.5s ease;
}

.portrait-glass-frame:hover::before {
  border-width: 3px;
  opacity: 0.7;
  animation: border-pulse 2s infinite alternate ease-in-out;
}

@keyframes border-pulse {
  0% {
    box-shadow: 0 0 0 rgba(184, 1, 1, 0.5);
  }

  100% {
    box-shadow: 0 0 20px rgba(184, 1, 1, 0.7);
  }
}

.portrait-glow-mathematical {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 450px;
  height: 450px;
  background: radial-gradient(circle,
      rgba(184, 1, 1, 0.25) 0%,
      rgba(184, 1, 1, 0.15) 30%,
      transparent 70%);
  border-radius: 50%;
  animation: glow-pulse-mathematical 6s infinite ease-in-out;
  z-index: 0;
  transition: all 0.5s ease;
}

.portrait-glass-frame:hover+.portrait-glow-mathematical {
  width: 500px;
  height: 500px;
  background: radial-gradient(circle,
      rgba(184, 1, 1, 0.3) 0%,
      rgba(184, 1, 1, 0.2) 30%,
      rgba(184, 1, 1, 0.05) 70%);
  animation-duration: 3s;
}

@keyframes glow-pulse-mathematical {

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

  50% {
    opacity: 0.9;
    transform: translate(-50%, -50%) scale(1.15);
  }
}

/* Add floating formula cards */
.floating-formulas-interactive {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 2;
  pointer-events: none;
}

.formula-card {
  position: absolute;
  background: rgba(184, 1, 1, 0.9);
  backdrop-filter: blur(15px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 12px;
  padding: 12px 16px;
  color: white;
  box-shadow: 0 8px 25px rgba(184, 1, 1, 0.3);
  transition: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
  opacity: 0.8;
  transform: translateZ(10px);
}

.portrait-glass-frame:hover~.floating-formulas-interactive .formula-card {
  opacity: 1;
  transform: translateZ(30px);
  box-shadow: 0 12px 35px rgba(184, 1, 1, 0.5);
}

.formula-label {
  display: block;
  font-size: 0.7rem;
  opacity: 0.8;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 2px;
}

.formula-text {
  font-family: 'Cambria Math', 'STIX Two Math', serif;
  font-size: 1rem;
  font-weight: 600;
}

/* Top (1 box) */
.formula-top {
  top: 10%;
  left: 50%;
  transform: translateX(-50%);
  animation: formula-float-top 6s infinite ease-in-out;
}

/* Left (3 boxes) */
.formula-left-1 {
  top: 15%;
  left: -12%;
  animation: formula-float-left-1 7s infinite ease-in-out;
}

.formula-left-2 {
  top: 50%;
  left: -10%;
  transform: translateY(-50%);
  animation: formula-float-left-2 8s infinite ease-in-out;
}

.formula-left-3 {
  bottom: 20%;
  left: -12%;
  animation: formula-float-left-3 6.5s infinite ease-in-out;
}

/* Right (3 boxes) */
.formula-right-1 {
  top: 15%;
  right: -12%;
  animation: formula-float-right-1 7.5s infinite ease-in-out;
}

.formula-right-2 {
  top: 50%;
  right: -10%;
  transform: translateY(-50%);
  animation: formula-float-right-2 8.5s infinite ease-in-out;
}

.formula-right-3 {
  bottom: 20%;
  right: -12%;
  animation: formula-float-right-3 6s infinite ease-in-out;
}

/* Bottom (1 box) */
.formula-bottom {
  bottom: 4%;
  left: 50%;
  transform: translateX(-50%);
  animation: formula-float-bottom 7s infinite ease-in-out;
}

/* Top animation */
@keyframes formula-float-top {

  0%,
  100% {
    transform: translateX(-50%) translateY(0) rotate(0deg);
    opacity: 0.8;
  }

  50% {
    transform: translateX(-50%) translateY(-10px) rotate(2deg);
    opacity: 1;
  }
}

/* Left animations */
@keyframes formula-float-left-1 {

  0%,
  100% {
    transform: translate(0, 0) rotate(0deg);
    opacity: 0.8;
  }

  50% {
    transform: translate(8px, -12px) rotate(3deg);
    opacity: 1;
  }
}

@keyframes formula-float-left-2 {

  0%,
  100% {
    transform: translateY(-50%) translateX(0px) rotate(0deg);
    opacity: 0.8;
  }

  50% {
    transform: translateY(-50%) translateX(10px) rotate(-2deg);
    opacity: 1;
  }
}

@keyframes formula-float-left-3 {

  0%,
  100% {
    transform: translate(0, 0) rotate(0deg);
    opacity: 0.8;
  }

  50% {
    transform: translate(8px, 12px) rotate(2deg);
    opacity: 1;
  }
}

/* Right animations */
@keyframes formula-float-right-1 {

  0%,
  100% {
    transform: translate(0, 0) rotate(0deg);
    opacity: 0.8;
  }

  50% {
    transform: translate(-8px, -12px) rotate(-3deg);
    opacity: 1;
  }
}

@keyframes formula-float-right-2 {

  0%,
  100% {
    transform: translateY(-50%) translateX(0px) rotate(0deg);
    opacity: 0.8;
  }

  50% {
    transform: translateY(-50%) translateX(-10px) rotate(2deg);
    opacity: 1;
  }
}

@keyframes formula-float-right-3 {

  0%,
  100% {
    transform: translate(0, 0) rotate(0deg);
    opacity: 0.8;
  }

  50% {
    transform: translate(-8px, 12px) rotate(-2deg);
    opacity: 1;
  }
}

/* Bottom animation */
@keyframes formula-float-bottom {

  0%,
  100% {
    transform: translateX(-50%) translateY(0) rotate(0deg);
    opacity: 0.8;
  }

  50% {
    transform: translateX(-50%) translateY(10px) rotate(-2deg);
    opacity: 1;
  }
}

/* Floating Formulas Interactive */
.floating-formulas-interactive {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 2;
  pointer-events: none;
}

.formula-card {
  position: absolute;
  background: rgba(184, 1, 1, 0.9);
  backdrop-filter: blur(15px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 12px;
  padding: 12px 16px;
  color: white;
  box-shadow: 0 8px 25px rgba(184, 1, 1, 0.3);
  transition: all 0.3s ease;
}

.formula-label {
  display: block;
  font-size: 0.7rem;
  opacity: 0.8;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 2px;
}

.formula-text {
  font-family: 'Cambria Math', 'STIX Two Math', serif;
  font-size: 1rem;
  font-weight: 600;
}

/* Mathematical Visualization */
.mathematical-visualization {
  position: absolute;
  bottom: 10%;
  left: 50%;
  transform: translateX(-50%);
  z-index: 4;
}

.function-graph {
  width: 200px;
  height: 100px;
  background: rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(15px);
  border-radius: 12px;
  padding: 15px;
  border: 1px solid rgba(184, 1, 1, 0.3);
}

.graph-svg {
  width: 100%;
  height: 100%;
}

.function-curve {
  stroke-dasharray: 300;
  stroke-dashoffset: 300;
  animation: draw-curve 3s ease-in-out infinite;
}

@keyframes draw-curve {
  0% {
    stroke-dashoffset: 300;
  }

  50% {
    stroke-dashoffset: 0;
  }

  100% {
    stroke-dashoffset: -300;
  }
}

.function-point {
  animation: point-pulse 2s infinite ease-in-out;
}

@keyframes point-pulse {

  0%,
  100% {
    r: 3;
    opacity: 1;
  }

  50% {
    r: 5;
    opacity: 0.7;
  }
}

/* Enhanced Scroll Indicator */
.scroll-indicator-mathematical {
  position: absolute;
  bottom: 30px;
  left: 50% !important;
  right: auto !important;
  transform: translateX(-50%);
  text-align: center;
  width: max-content;
  z-index: 5;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.scroll-text-enhanced {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.7);
  margin: 0 auto 15px auto;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 600;
  text-align: center;
  display: block;
  width: fit-content;
}

.light-theme .scroll-text-enhanced {
  color: rgba(26, 26, 26, 0.6);
}

.scroll-arrow-animated {
  font-size: 1.5rem;
  color: var(--red-primary);
  animation: scroll-bounce-enhanced 2s infinite ease-in-out;
}

@keyframes scroll-bounce-enhanced {

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

  50% {
    transform: translateY(8px);
    opacity: 1;
  }
}

.scroll-mathematical-accent {
  position: absolute;
  top: -10px;
  right: -15px;
  font-family: 'Cambria Math', 'STIX Two Math', serif;
  color: rgba(184, 1, 1, 0.6);
  font-size: 1rem;
  animation: accent-rotate 6s infinite linear;
}

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

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

/* Scroll Progress Bar */
.scroll-progress-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: rgba(255, 255, 255, 0.1);
  z-index: 9999;
}

.scroll-progress-bar {
  height: 100%;
  background: linear-gradient(90deg, var(--red-primary), var(--red-secondary));
  width: 0%;
  transition: width 0.1s ease;
  box-shadow: 0 0 10px rgba(184, 1, 1, 0.5);
}

/* Enhanced Responsive Design for Professor */
@media (max-width: 1400px) {
  .hero-visual-mathematical {
    height: 550px;
  }

  .portrait-glass-frame {
    width: 300px;
    height: 300px;
  }

  .portrait-glow-mathematical {
    width: 400px;
    height: 400px;
  }

  .formula-card {
    transform: scale(0.9);
  }
}

@media (max-width: 1200px) {
  .hero-visual-mathematical {
    height: 500px;
  }

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

  .portrait-glow-mathematical {
    width: 350px;
    height: 350px;
  }

  .hero-title-mathematical {
    font-size: clamp(2.2rem, 7vw, 4rem);
  }

  .hero-description-enhanced p {
    max-width: 100%;
  }

  /* Top box */
  .formula-top {
    top: 12%;
    left: 50%;
    transform: translateX(-50%);
  }

  /* Left boxes */
  .formula-left-1 {
    top: 12%;
    left: -15%;
  }

  .formula-left-2 {
    top: 50%;
    left: -12%;
    transform: translateY(-50%);
  }

  .formula-left-3 {
    bottom: 18%;
    left: -15%;
  }

  /* Right boxes */
  .formula-right-1 {
    top: 12%;
    right: -15%;
  }

  .formula-right-2 {
    top: 50%;
    right: -12%;
    transform: translateY(-50%);
  }

  .formula-right-3 {
    bottom: 18%;
    right: -15%;
  }

  /* Bottom box */
  .formula-bottom {
    bottom: 8%;
    left: 50%;
    transform: translateX(-50%);
  }

  .mathematical-stats-grid {
    gap: 15px;
  }

  .stat-card {
    padding: 15px;
  }
}

@media (max-width: 992px) {
  .hero-section-professor {
    padding-top: 100px;
    padding-bottom: 50px;
  }

  .hero-title-mathematical {
    font-size: clamp(2rem, 6vw, 3.5rem);
    margin-bottom: 25px;
  }

  .title-line-2.title-accent-red {
    font-size: 1em;
  }

  .title-line-3 {
    font-size: 0.65em;
  }

  .hero-description-enhanced {
    margin-bottom: 30px;
  }

  .hero-description-enhanced p {
    font-size: 1.15rem;
  }

  .hero-description-enhanced::before {
    left: -15px;
  }

  .mathematical-stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-bottom: 35px;
  }

  .hero-cta-enhanced {
    justify-content: flex-start;
    flex-direction: row;
    flex-wrap: wrap;
  }

  .btn-primary-mathematical,
  .btn-secondary-mathematical {
    padding: 15px 25px;
    font-size: 1rem;
  }

  .btn-mathematical-accent {
    font-size: 1.2rem;
    top: -6px;
    right: -6px;
  }

  .hero-visual-mathematical {
    height: 400px;
    margin-top: 40px;
  }

  .portrait-glass-frame {
    width: 250px;
    height: 250px;
  }

  .portrait-glass-frame:hover {
    transform: scale(1.03) rotateY(5deg) translateY(-5px);
  }

  .floating-formulas-interactive {
    opacity: 0.7;
    transform: scale(0.8);
  }

  .formula-card {
    padding: 10px 12px;
  }

  .formula-text {
    font-size: 0.9rem;
  }

  .mathematical-border .border-symbol {
    font-size: 1.4rem;
  }
}

@media (max-width: 768px) {
  .formula-top {
    top: 2%;
  }

  .glass-navbar-professor {
    padding: 8px 0;
  }

  .logo-image-wrapper-professor {
    width: 55px;
    height: 55px;
  }

  .logo-image-k {
    width: 100%;
    height: 100%;
  }

  .logo-text-professor {
    font-size: 1.1rem;
  }

  .logo-subtitle-professor {
    font-size: 0.6rem;
  }

  .nav-link-professor {
    padding: 8px 14px !important;
    margin: 0 4px;
  }

  .hero-section-professor {
    padding-top: 80px;
    text-align: center;
  }

  .hero-content-glass {
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .hero-title-mathematical {
    text-align: center;
  }

  .hero-description-enhanced {
    text-align: center;
    width: 100%;
    padding: 0 15px;
  }

  .hero-description-enhanced::before {
    display: none;
  }

  .hero-description-enhanced p {
    font-size: 1.1rem;
    max-width: 100%;
    margin: 0 auto;
  }

  .mathematical-stats-grid {
    grid-template-columns: 1fr;
    max-width: 350px;
    margin: 0 auto 30px;
  }

  .hero-cta-enhanced {
    justify-content: center;
    gap: 15px;
  }

  .academic-excellence-badge {
    padding: 10px 20px;
  }

  .badge-text {
    font-size: 0.9rem;
  }

  .mathematical-visualization {
    display: none;
    /* Hide complex elements on mobile */
  }

  .geometric-shapes-container {
    opacity: 0.3;
    /* Reduce visual complexity */
  }

  .hero-visual-mathematical {
    height: 350px;
  }

  .portrait-glass-frame {
    margin: 0 auto;
  }

  .floating-formulas-interactive {
    display: none;
    /* Hide on mobile for cleaner look */
  }

  /* Adjust footer elements for mobile */
  .footer-achievements {
    grid-template-columns: 1fr;
    gap: 15px;
  }

  .footer-bottom-links {
    justify-content: center;
    margin-top: 20px;
    gap: 15px;
  }

  .social-links {
    justify-content: center;
  }
}

@media (max-width: 576px) {
  .container {
    padding-left: 20px;
    padding-right: 20px;
  }

  .navbar-brand {
    margin-right: 0;
  }

  .hero-title-mathematical {
    font-size: clamp(1.8rem, 5vw, 2.5rem);
  }

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

  .btn-primary-mathematical,
  .btn-secondary-mathematical {
    width: 100%;
    justify-content: center;
    padding: 14px 20px;
  }

  .hero-cta-enhanced {
    width: 100%;
    flex-direction: column;
  }

  .academic-excellence-badge {
    flex-direction: column;
    gap: 8px;
    padding: 12px 16px;
    width: 100%;
    max-width: 250px;
  }

  .stat-card {
    flex-direction: column;
    text-align: center;
    gap: 10px;
  }

  .stat-icon {
    margin: 0 auto;
  }

  .portrait-glass-frame {
    width: 220px;
    height: 220px;
  }

  .portrait-glass-frame:hover {
    transform: scale(1.02) translateY(-5px);
  }

  .scroll-text-enhanced {
    font-size: 0.8rem;
  }

  .scroll-indicator-mathematical {
    bottom: 20px;
  }
}

/* Print Media Query */
@media print {

  .glass-navbar-professor,
  .scroll-progress-container,
  .scroll-indicator-mathematical,
  .floating-math-elements-professor,
  .mathematical-equations-background,
  .hero-particles-advanced,
  .mathematical-grid-overlay {
    display: none !important;
  }

  .hero-section-professor {
    padding-top: 20px;
  }

  .hero-title-mathematical,
  .hero-description-enhanced p,
  .mathematical-stats-grid,
  .hero-cta-enhanced {
    color: #000 !important;
    text-shadow: none !important;
  }

  .portrait-glass-frame {
    box-shadow: none !important;
    border: 1px solid #ccc !important;
  }

  .portrait-glow-mathematical,
  .glass-reflection {
    display: none !important;
  }
}

/* Enhanced Footer Styles */
.professor-footer {
  background: linear-gradient(135deg, #0a0a0a 0%, #1a1a1a 100%);
  color: white;
  padding: 80px 0 40px;
  position: relative;
  overflow: hidden;
  border-top: 1px solid rgba(184, 1, 1, 0.2);
}

.light-theme .professor-footer {
  background: linear-gradient(135deg, #1e293b 0%, #334155 100%);
  border-top-color: rgba(184, 1, 1, 0.1);
}

.footer-background-pattern {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background:
    radial-gradient(circle at 25% 25%, rgba(184, 1, 1, 0.05) 0%, transparent 50%),
    radial-gradient(circle at 75% 75%, rgba(184, 1, 1, 0.03) 0%, transparent 50%);
  animation: footer-pattern-move 20s infinite ease-in-out;
}

@keyframes footer-pattern-move {

  0%,
  100% {
    transform: translate(0, 0);
  }

  50% {
    transform: translate(20px, -20px);
  }
}

.footer-brand {
  position: relative;
  z-index: 2;
}

.footer-logo-container {
  position: relative;
  width: 85px;
  height: 85px;
  background: linear-gradient(135deg, var(--red-primary), var(--red-secondary));
  border-radius: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 25px;
  box-shadow: 0 15px 35px rgba(184, 1, 1, 0.3);
  animation: footer-logo-glow 4s infinite ease-in-out;
}

@keyframes footer-logo-glow {

  0%,
  100% {
    box-shadow: 0 15px 35px rgba(184, 1, 1, 0.3);
  }

  50% {
    box-shadow: 0 20px 45px rgba(184, 1, 1, 0.5);
  }
}

.footer-logo-symbol {
  font-size: 2.8rem;
  color: white;
  font-family: 'Cambria Math', 'STIX Two Math', serif;
  font-weight: bold;
  animation: footer-symbol-rotate 8s infinite ease-in-out;
}

@keyframes footer-symbol-rotate {

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

  50% {
    transform: rotate(15deg);
  }
}

.footer-logo-accent {
  position: absolute;
  top: -8px;
  right: -8px;
  font-size: 1.4rem;
  color: rgba(255, 255, 255, 0.8);
  font-family: 'Cambria Math', 'STIX Two Math', serif;
  animation: footer-accent-pulse 3s infinite ease-in-out;
}

@keyframes footer-accent-pulse {

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

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

.footer-title {
  font-size: 1.6rem;
  font-weight: 900;
  color: white;
  margin-bottom: 15px;
  background: linear-gradient(135deg, #ffffff, #f8fafc);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.footer-description {
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.7;
  margin-bottom: 30px;
  font-size: 1rem;
}

.footer-achievements {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 25px;
  margin-bottom: 25px;
}

.achievement-item {
  text-align: center;
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(184, 1, 1, 0.2);
  border-radius: 15px;
  padding: 20px 15px;
  transition: all 0.3s ease;
}

.achievement-item:hover {
  background: rgba(184, 1, 1, 0.1);
  border-color: rgba(184, 1, 1, 0.4);
  transform: translateY(-3px);
}

.achievement-number {
  display: block;
  font-size: 2rem;
  font-weight: 900;
  color: var(--red-primary);
  line-height: 1;
  margin-bottom: 5px;
}

.achievement-label {
  display: block;
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.6);
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 600;
}

.footer-section-title {
  font-size: 1.2rem;
  font-weight: 800;
  color: white;
  margin-bottom: 25px;
  position: relative;
}

.footer-section-title::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 0;
  width: 40px;
  height: 3px;
  background: linear-gradient(90deg, var(--red-primary), var(--red-secondary));
  border-radius: 2px;
}

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

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

.footer-links a {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 0;
  border-radius: 8px;
}

.footer-links a:hover {
  color: var(--red-primary);
  transform: translateX(5px);
  background: rgba(184, 1, 1, 0.1);
  padding-left: 10px;
}

.contact-info {
  margin-bottom: 30px;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 15px;
  color: rgba(255, 255, 255, 0.8);
  padding: 12px;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 12px;
  transition: all 0.3s ease;
}

.contact-item:hover {
  background: rgba(184, 1, 1, 0.1);
  transform: translateX(3px);
}

.contact-item i {
  color: var(--red-primary);
  width: 20px;
  font-size: 1.1rem;
}

.footer-social {
  margin-top: 25px;
}

.social-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: white;
  margin-bottom: 20px;
}

.social-links {
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
}

.social-link {
  width: 45px;
  height: 45px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(184, 1, 1, 0.3);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  backdrop-filter: blur(10px);
}

.social-link:hover {
  background: var(--red-primary);
  border-color: var(--red-primary);
  color: white;
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 10px 25px rgba(184, 1, 1, 0.4);
}

.footer-bottom {
  margin-top: 50px;
  padding-top: 35px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  position: relative;
  z-index: 2;
}

.footer-copyright {
  color: rgba(255, 255, 255, 0.6);
  margin: 0;
  font-size: 0.9rem;
}

.footer-bottom-links {
  display: flex;
  gap: 25px;
  justify-content: flex-end;
  flex-wrap: wrap;
}

.footer-bottom-links a {
  color: rgba(255, 255, 255, 0.6);
  text-decoration: none;
  font-size: 0.9rem;
  transition: color 0.3s ease;
  padding: 5px 0;
}

.footer-bottom-links a:hover {
  color: var(--red-primary);
}

.footer-math-watermark {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 0;
  opacity: 0.02;
  pointer-events: none;
}

.math-symbol-large {
  font-size: 350px;
  color: var(--red-primary);
  font-family: 'Cambria Math', 'STIX Two Math', serif;
  animation: watermark-float-enhanced 25s infinite ease-in-out;
}

@keyframes watermark-float-enhanced {

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

  50% {
    transform: translate(-50%, -50%) rotate(180deg) scale(1.1);
    opacity: 0.04;
  }
}

/* Enhanced Back to Top Button */
.back-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 55px;
  height: 55px;
  background: linear-gradient(135deg, var(--red-primary), var(--red-secondary));
  border: none;
  border-radius: 50%;
  color: white;
  font-size: 1.3rem;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 1000;
  box-shadow: 0 10px 30px rgba(184, 1, 1, 0.3);
  backdrop-filter: blur(10px);
  border: 2px solid rgba(255, 255, 255, 0.1);
}

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

.back-to-top:hover {
  transform: translateY(-5px) scale(1.05);
  box-shadow: 0 15px 40px rgba(184, 1, 1, 0.5);
}

@media (max-width: 768px) {
  .footer-achievements {
    grid-template-columns: 1fr;
    gap: 15px;
  }

  .footer-bottom-links {
    justify-content: center;
    margin-top: 20px;
  }

  .social-links {
    justify-content: center;
  }

  .back-to-top {
    width: 50px;
    height: 50px;
    bottom: 20px;
    right: 20px;
  }
}

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

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

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

.hero-content-professional {
  position: relative;
  z-index: 3;
  padding: 100px 0;
}

.hero-text-professional {
  color: white;
}

.academic-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: linear-gradient(135deg, var(--red-primary), var(--red-secondary));
  color: white;
  padding: 12px 24px;
  border-radius: 50px;
  margin-bottom: 30px;
  font-weight: 600;
  font-size: 0.95rem;
  box-shadow: 0 8px 25px rgba(184, 1, 1, 0.3);
  animation: badge-glow 3s infinite ease-in-out;
}

@keyframes badge-glow {

  0%,
  100% {
    box-shadow: 0 8px 25px rgba(184, 1, 1, 0.3);
  }

  50% {
    box-shadow: 0 12px 35px rgba(184, 1, 1, 0.5);
  }
}

.hero-title-professor {
  font-size: 3.8rem;
  font-weight: 800;
  margin-bottom: 25px;
  font-family: 'Poppins', sans-serif;
  line-height: 1.1;
}

.title-line-main {
  display: block;
  color: white;
}

.title-line-accent {
  display: block;
  background: linear-gradient(135deg, var(--red-primary), var(--red-secondary));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-weight: 900;
}

.title-line-sub {
  display: block;
  font-size: 1.8rem;
  color: rgba(255, 255, 255, 0.8);
  font-weight: 500;
  margin-top: 10px;
}

.hero-description-professor {
  font-size: 1.2rem;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 35px;
  max-width: 600px;
}

.hero-stats-professor {
  display: flex;
  gap: 40px;
  margin-bottom: 40px;
  flex-wrap: wrap;
}

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

.stat-number {
  display: block;
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--red-primary);
  line-height: 1;
}

.stat-label {
  display: block;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.7);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-top: 5px;
}

.hero-cta-professor {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

.btn-primary-professor,
.btn-secondary-professor {
  padding: 15px 30px;
  border-radius: 30px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 1rem;
  border: 2px solid transparent;
  position: relative;
  overflow: hidden;
}

.btn-primary-professor {
  background: linear-gradient(135deg, var(--red-primary), var(--red-secondary));
  color: white;
  box-shadow: 0 8px 25px rgba(184, 1, 1, 0.4);
}

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

.btn-primary-professor:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 35px rgba(184, 1, 1, 0.6);
  color: white;
}

.btn-secondary-professor:hover {
  border-color: var(--red-primary);
  background: rgba(184, 1, 1, 0.1);
  transform: translateY(-2px);
  color: white;
}

/* Professor Portrait */
.hero-visual-professional {
  position: relative;
  height: 500px;
}

.professor-portrait-container {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.portrait-geometric-frame {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.geometric-shape {
  position: absolute;
  border: 2px solid var(--red-primary);
  border-radius: 20%;
}

.shape-1 {
  width: 120px;
  height: 120px;
  top: 10%;
  left: 10%;
  animation: geometric-float-1 6s infinite ease-in-out;
  clip-path: polygon(50% 0%, 100% 38%, 82% 100%, 18% 100%, 0% 38%);
  background: linear-gradient(135deg, var(--red-primary), transparent);
}

.shape-2 {
  width: 80px;
  height: 80px;
  top: 70%;
  right: 20%;
  animation: geometric-float-2 8s infinite ease-in-out;
  border-radius: 50%;
  background: linear-gradient(135deg, transparent, var(--red-secondary));
}

.shape-3 {
  width: 100px;
  height: 100px;
  top: 40%;
  right: 10%;
  animation: geometric-float-3 7s infinite ease-in-out;
  clip-path: polygon(25% 0%, 75% 0%, 100% 50%, 75% 100%, 25% 100%, 0% 50%);
  background: linear-gradient(135deg, var(--red-transparent), var(--red-primary));
}

@keyframes geometric-float-1 {

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

  50% {
    transform: translate(20px, -20px) rotate(120deg);
  }
}

@keyframes geometric-float-2 {

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

  50% {
    transform: translate(-15px, 15px) scale(1.1);
  }
}

@keyframes geometric-float-3 {

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

  50% {
    transform: translate(10px, -30px) rotate(-60deg);
  }
}

.portrait-professional-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 300px;
  height: 300px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--red-primary) 0%, transparent 70%);
  filter: blur(50px);
  opacity: 0.3;
  z-index: 0;
  animation: glow-pulse 4s infinite ease-in-out;
}

@keyframes glow-pulse {

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

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

.professor-portrait-frame {
  position: relative;
  z-index: 2;
  width: 300px;
  height: 300px;
  border-radius: 30px;
  overflow: hidden;
  border: 3px solid var(--red-primary);
  box-shadow: 0 15px 40px rgba(184, 1, 1, 0.4);
}

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

.professor-portrait-frame:hover .professor-portrait-image {
  transform: scale(1.05);
}

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

.equation-item {
  position: absolute;
  color: rgba(255, 255, 255, 0.8);
  font-family: 'Cambria Math', 'STIX Two Math', serif;
  font-size: 1rem;
  background: rgba(184, 1, 1, 0.1);
  padding: 8px 12px;
  border-radius: 8px;
  border: 1px solid rgba(184, 1, 1, 0.3);
  backdrop-filter: blur(10px);
}

.eq-1 {
  top: 15%;
  left: -10%;
  animation: equation-float-1 8s infinite ease-in-out;
}

.eq-2 {
  top: 60%;
  right: -15%;
  animation: equation-float-2 6s infinite ease-in-out;
}

.eq-3 {
  bottom: 20%;
  left: -5%;
  animation: equation-float-3 7s infinite ease-in-out;
}

@keyframes equation-float-1 {

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

  50% {
    transform: translate(15px, -10px);
    opacity: 1;
  }
}

@keyframes equation-float-2 {

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

  50% {
    transform: translate(-20px, 10px);
    opacity: 1;
  }
}

@keyframes equation-float-3 {

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

  50% {
    transform: translate(10px, -15px);
    opacity: 1;
  }
}

/* Scroll Indicator Professor */
.scroll-indicator-professor {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  text-align: center;
  color: rgba(255, 255, 255, 0.7);
  z-index: 4;
}

.scroll-text-professor {
  font-size: 0.9rem;
  margin-bottom: 10px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.scroll-arrow-professor {
  font-size: 1.2rem;
  animation: scroll-bounce 2s infinite;
}

@keyframes scroll-bounce {

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

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

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

.math-element-professor {
  position: absolute;
  font-family: 'Cambria Math', 'STIX Two Math', serif;
  font-size: 1.5rem;
  color: var(--red-primary);
  opacity: 0.1;
  animation: float-math 20s infinite linear;
}

@keyframes float-math {
  0% {
    transform: translateY(100vh) rotate(0deg);
    opacity: 0;
  }

  10% {
    opacity: 0.1;
  }

  90% {
    opacity: 0.1;
  }

  100% {
    transform: translateY(-100px) rotate(360deg);
    opacity: 0;
  }
}




/* Resources Section */
.resources-section {
  padding: 100px 0;
  background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
}

.resources-text {
  color: var(--red-primary);
}

.resource-card {
  background: white;
  border-radius: 20px;
  padding: 35px 25px;
  height: 100%;
  text-align: center;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  border: 2px solid transparent;
  position: relative;
  overflow: hidden;
}

.resource-card:hover {
  transform: translateY(-10px);
  border-color: var(--red-primary);
  box-shadow: 0 20px 40px rgba(184, 1, 1, 0.15);
}

.resource-icon-container {
  width: 80px;
  height: 80px;
  background: linear-gradient(135deg, var(--red-primary), var(--red-secondary));
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 25px;
  color: white;
  font-size: 2rem;
  box-shadow: 0 8px 25px rgba(184, 1, 1, 0.3);
  transition: transform 0.3s ease;
}

.resource-card:hover .resource-icon-container {
  transform: scale(1.1) rotate(5deg);
}

.resource-title {
  font-size: 1.4rem;
  font-weight: 700;
  color: #1a1a1a;
  margin-bottom: 15px;
}

.resource-description {
  color: #666;
  line-height: 1.6;
  margin-bottom: 25px;
}

.resource-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--red-primary);
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
}

.resource-link:hover {
  color: var(--red-secondary);
  transform: translateX(5px);
}

/* Footer Professor */
.professor-footer {
  background: linear-gradient(135deg, #0a0a0a 0%, #1a1a1a 100%);
  color: white;
  padding: 60px 0 30px;
  position: relative;
  overflow: hidden;
}

.footer-background-pattern {
  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="math-pattern" width="50" height="50" patternUnits="userSpaceOnUse"><text x="25" y="25" font-family="serif" font-size="20" fill="rgba(184,1,1,0.1)" text-anchor="middle" dominant-baseline="middle">∏</text></pattern></defs><rect width="100" height="100" fill="url(%23math-pattern)"/></svg>');
  opacity: 0.5;
}

.footer-brand {
  position: relative;
  z-index: 2;
}

.footer-logo-container {
  position: relative;
  width: 80px;
  height: 80px;
  background: linear-gradient(135deg, var(--red-primary), var(--red-secondary));
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}

.footer-logo-symbol {
  font-size: 2.5rem;
  color: white;
  font-family: 'Cambria Math', 'STIX Two Math', serif;
  font-weight: bold;
}

.footer-logo-accent {
  position: absolute;
  top: -5px;
  right: -5px;
  font-size: 1.2rem;
  color: rgba(255, 255, 255, 0.8);
  font-family: 'Cambria Math', 'STIX Two Math', serif;
}

.footer-title {
  font-size: 1.5rem;
  font-weight: 800;
  color: white;
  margin-bottom: 15px;
}

.footer-description {
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.6;
  margin-bottom: 25px;
}

.footer-achievements {
  display: flex;
  gap: 30px;
  margin-bottom: 20px;
}

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

.achievement-number {
  display: block;
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--red-primary);
  line-height: 1;
}

.achievement-label {
  display: block;
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.6);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-top: 5px;
}

.footer-section-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: white;
  margin-bottom: 20px;
  position: relative;
}

.footer-section-title::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 30px;
  height: 2px;
  background: var(--red-primary);
}

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

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

.footer-links a {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-links a:hover {
  color: var(--red-primary);
}

.contact-info {
  margin-bottom: 25px;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
  color: rgba(255, 255, 255, 0.8);
}

.contact-item i {
  color: var(--red-primary);
  width: 16px;
}

.footer-social {
  margin-top: 20px;
}

.social-title {
  font-size: 1rem;
  font-weight: 600;
  color: white;
  margin-bottom: 15px;
}

.social-links {
  display: flex;
  gap: 15px;
}

.social-link {
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(184, 1, 1, 0.3);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  transition: all 0.3s ease;
}

.social-link:hover {
  background: var(--red-primary);
  border-color: var(--red-primary);
  color: white;
  transform: translateY(-3px);
}

.footer-bottom {
  margin-top: 40px;
  padding-top: 30px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  position: relative;
  z-index: 2;
}

.footer-copyright {
  color: rgba(255, 255, 255, 0.6);
  margin: 0;
}

.footer-bottom-links {
  display: flex;
  gap: 20px;
  justify-content: flex-end;
}

.footer-bottom-links a {
  color: rgba(255, 255, 255, 0.6);
  text-decoration: none;
  font-size: 0.9rem;
  transition: color 0.3s ease;
}

.footer-bottom-links a:hover {
  color: var(--red-primary);
}

.footer-math-watermark {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 0;
  opacity: 0.03;
  pointer-events: none;
}

.math-symbol-large {
  font-size: 300px;
  color: var(--red-primary);
  font-family: 'Cambria Math', 'STIX Two Math', serif;
  animation: watermark-float 20s infinite ease-in-out;
}

@keyframes watermark-float {

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

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

/* Back to Top Button */
.back-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 50px;
  height: 50px;
  background: linear-gradient(135deg, var(--red-primary), var(--red-secondary));
  border: none;
  border-radius: 50%;
  color: white;
  font-size: 1.2rem;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  z-index: 1000;
  box-shadow: 0 8px 25px rgba(184, 1, 1, 0.3);
}

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

.back-to-top:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 35px rgba(184, 1, 1, 0.5);
}

/* Responsive Design for Professor */
@media (max-width: 768px) {
  .hero-title-professor {
    font-size: 2.5rem;
  }

  .title-line-sub {
    font-size: 1.2rem;
  }

  .hero-stats-professor {
    gap: 20px;
    justify-content: center;
  }

  .hero-cta-professor {
    justify-content: center;
  }



  .footer-achievements {
    gap: 20px;
    justify-content: center;
  }

  .footer-bottom-links {
    justify-content: center;
    margin-top: 20px;
  }
}



/* ============================= */
/* Free Tests Slider (Homepage)  */
/* ============================= */
.free-tests-section {
  padding: 100px 0;
  background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
  overflow: hidden;
}

.dark-theme .free-tests-section {
  background: linear-gradient(135deg, #1a1a1a 0%, #2a1a1a 100%);
  color: white;
  position: relative;
  overflow: hidden;
}

.free-tests-header {
  margin-bottom: 30px;
  position: relative;
  z-index: 10;
  text-align: left;
}

.free-tests-header.text-center {
  text-align: left;
}

.dark-theme .free-tests-header .section-title-professor {
  color: #ffffff !important;
}

.dark-theme .free-tests-header .section-subtitle-professor {
  color: rgba(255, 255, 255, 0.8) !important;
}

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

.dark-theme .tests-slider {
  background: rgba(255, 255, 255, 0.02);
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
}

.tests-slides {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  border-radius: 20px 0 0 20px;
  overflow: hidden;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.student-card:hover .student-card-media {
  background: linear-gradient(135deg, rgba(184, 1, 1, 0.15), rgba(184, 1, 1, 0.08));
}

.dark-theme .student-card-media {
  background: linear-gradient(135deg, rgba(184, 1, 1, 0.15), rgba(184, 1, 1, 0.08));
}

.dark-theme .student-card:hover .student-card-media {
  background: linear-gradient(135deg, rgba(184, 1, 1, 0.2), rgba(184, 1, 1, 0.12));
}

.student-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 20px 0 0 20px;
  border: none;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Fallback shape when no image */
.student-card-media .fallback-shape {
  width: 100%;
  height: 100%;
  border-radius: 20px 0 0 20px;
  background: linear-gradient(135deg, var(--red-primary), #d32f2f);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 700;
  font-size: 1.2rem;
  border: none;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes pulse-glow {

  0%,
  100% {
    transform: scale(1);
    box-shadow: 0 4px 15px rgba(184, 1, 1, 0.3);
  }

  50% {
    transform: scale(1.05);
    box-shadow: 0 6px 20px rgba(184, 1, 1, 0.5);
  }
}

.student-card:hover .student-card-media img {
  transform: none;
  filter: brightness(1.05);
}

.student-card-body {
  flex: 1;
  padding: 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.05));
  border-radius: 0 20px 20px 0;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.student-card:hover .student-card-body {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.15), rgba(255, 255, 255, 0.08));
}

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

.dark-theme .student-card:hover .student-card-body {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.06));
}

.student-card-banner {
  margin-bottom: 15px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.student-card:hover .student-card-banner {
  transform: none;
}

.student-name {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0;
  text-align: left;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  display: block;
  opacity: 1;
  visibility: visible;
}

.student-card:hover .student-name {
  color: var(--red-primary);
  transform: none;
}

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

.dark-theme .student-card:hover .student-name {
  color: var(--red-primary);
}

.student-score-info {
  display: flex;
  flex-direction: column;
  gap: 12px;
  position: relative;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.student-card:hover .student-score-info {
  transform: none;
}

.dark-theme .student-score-info {
  color: #ffffff;
}

.subject-info,
.score-info {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 12px;
  background: rgba(184, 1, 1, 0.05);
  border-radius: 8px;
  border: 1px solid rgba(184, 1, 1, 0.1);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.student-card:hover .subject-info,
.student-card:hover .score-info {
  background: rgba(184, 1, 1, 0.08);
  border-color: rgba(184, 1, 1, 0.2);
  transform: none;
}

.dark-theme .subject-info,
.dark-theme .score-info {
  background: rgba(184, 1, 1, 0.1);
  border-color: rgba(184, 1, 1, 0.2);
}

.dark-theme .student-card:hover .subject-info,
.dark-theme .student-card:hover .score-info {
  background: rgba(184, 1, 1, 0.15);
  border-color: rgba(184, 1, 1, 0.3);
}

.subject-label {
  font-size: 0.75rem;
  font-weight: 600;
  color: rgba(184, 1, 1, 0.8);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

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

.subject-value {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text-primary);
}

.dark-theme .subject-value {
  color: #ffffff;
}

.score-label {
  font-size: 0.75rem;
  font-weight: 600;
  color: rgba(184, 1, 1, 0.8);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

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

.score-value {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text-primary);
}

.dark-theme .score-value {
  color: #ffffff;
}

.score-suffix {
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--red-primary);
  margin-left: 4px;
}


.score-badge {
  position: absolute;
  top: -10px;
  right: -10px;
  width: 75px;
  height: 50px;
  background: linear-gradient(135deg, var(--red-primary), #d32f2f);
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-size: 0.5rem;
  color: #ffffff;
  font-weight: 700;
  line-height: 1;
  text-align: center;
  padding: 6px;
  backdrop-filter: blur(10px);
  border: 2px solid rgba(255, 255, 255, 0.9);
  box-shadow: 0 6px 20px rgba(184, 1, 1, 0.4);
  z-index: 15;
  transform: rotate(5deg);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.student-card:hover .score-badge {
  transform: rotate(0deg) scale(1.05);
  box-shadow: 0 8px 25px rgba(184, 1, 1, 0.6);
  border-color: rgba(255, 255, 255, 1);
}

.dark-theme .score-badge {
  background: linear-gradient(135deg, var(--red-primary), #d32f2f);
  backdrop-filter: blur(15px);
  box-shadow: 0 6px 20px rgba(184, 1, 1, 0.5);
  border: 2px solid rgba(255, 255, 255, 0.9);
}

.dark-theme .student-card:hover .score-badge {
  transform: rotate(0deg) scale(1.05);
  box-shadow: 0 8px 25px rgba(184, 1, 1, 0.7);
  border: 2px solid rgba(255, 255, 255, 1);
}

.score-badge span {
  display: block;
  font-size: 0.45rem;
  line-height: 1.1;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.2px;
}

@media (max-width: 768px) {
  .students-slider {
    padding: 0 20px;
    justify-content: center;
  }

  .students-slides {
    justify-content: center;
    gap: 15px;
  }

  .student-card {
    flex: 0 0 320px;
    width: 320px;
    min-height: 180px;
    max-height: 200px;
    margin: 0 8px;
  }

  .student-card-media {
    flex: 0 0 100px;
  }

  .student-card-media img,
  .student-card-media .fallback-shape {
    width: 100%;
    height: 100%;
  }

  .student-card-body {
    padding: 15px;
    gap: 10px;
    flex: none;
    width: 100%;
  }

  .student-name {
    font-size: 0.9rem;
  }

  .student-score-info {
    gap: 8px;
  }

  .subject-info,
  .score-info {
    padding: 6px 10px;
  }

  .score-badge {
    width: 60px;
    height: 40px;
    font-size: 0.4rem;
    top: -8px;
    right: -8px;
  }

  .students-arrow {
    width: 35px;
    height: 35px;
    font-size: 0.8rem;
  }

  .students-arrow-prev {
    left: 3px;
  }

  .students-arrow-next {
    right: 3px;
  }
}

@media (max-width: 480px) {
  .students-slider {
    padding: 0 15px;
  }

  .student-card {
    flex: 0 0 280px;
    width: 280px;
    min-height: 160px;
    max-height: 180px;
    margin: 0 5px;
  }

  .student-card-media {
    flex: 0 0 80px;
  }

  .student-card-media img,
  .student-card-media .fallback-shape {
    width: 100%;
    height: 100%;
  }

  .student-card-body {
    padding: 12px;
    gap: 8px;
    flex: none;
    width: 100%;
  }

  .student-name {
    font-size: 0.8rem;
  }

  .student-score-info {
    gap: 6px;
  }

  .subject-info,
  .score-info {
    padding: 5px 8px;
    flex-direction: column;
    text-align: center;
    gap: 2px;
  }

  .score-badge {
    width: 50px;
    height: 35px;
    font-size: 0.35rem;
    top: -6px;
    right: -6px;
  }

  .students-arrow {
    width: 30px;
    height: 30px;
    font-size: 0.7rem;
  }

  .students-arrow-prev {
    left: 2px;
  }

  .students-arrow-next {
    right: 2px;
  }
}

/* Professional Test Types Section */
.professional-test-types-section {
  padding: 120px 0;
  background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
  position: relative;
  overflow: hidden;
}

.dark-theme .professional-test-types-section {
  background: linear-gradient(135deg, #0f1419 0%, #1a1f2e 50%, #2d3748 100%);
}

/* Simplified Test Type Cards - Enhanced Modern Design */
.simplified-test-types-section {
  padding: 100px 0;
  background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
  position: relative;
  overflow: hidden;
}

.dark-theme .simplified-test-types-section {
  background: linear-gradient(135deg, #0f1419 0%, #1a1f2e 50%, #2d3748 100%);
}

.simplified-test-types-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 40px;
  margin-top: 60px;
  align-items: stretch;
}

.simplified-test-card {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.95), rgba(255, 255, 255, 0.85));
  backdrop-filter: blur(20px);
  border-radius: 24px;
  padding: 0;
  text-align: center;
  position: relative;
  overflow: hidden;
  transition: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
  border: 2px solid rgba(184, 1, 1, 0.08);
  box-shadow:
    0 20px 60px rgba(0, 0, 0, 0.08),
    0 0 0 1px rgba(255, 255, 255, 0.5) inset;
  display: flex;
  flex-direction: column;
  height: 100%;
  text-decoration: none;
  color: inherit;
  cursor: pointer;
}

.dark-theme .simplified-test-card {
  background: linear-gradient(135deg, rgba(31, 41, 55, 0.95), rgba(31, 41, 55, 0.85));
  border: 2px solid rgba(184, 1, 1, 0.15);
  box-shadow:
    0 20px 60px rgba(0, 0, 0, 0.4),
    0 0 0 1px rgba(255, 255, 255, 0.05) inset;
}

.simplified-test-card::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(184, 1, 1, 0.1) 0%, transparent 70%);
  opacity: 0;
  transition: opacity 0.5s ease;
  pointer-events: none;
}

.simplified-test-card::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #B80101, #ff4444, #B80101);
  background-size: 200% 100%;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.5s ease;
}

.simplified-test-card:hover {
  transform: translateY(-15px) scale(1.03);
  box-shadow:
    0 30px 80px rgba(184, 1, 1, 0.25),
    0 0 0 1px rgba(184, 1, 1, 0.2) inset,
    0 0 60px rgba(184, 1, 1, 0.15);
  border-color: rgba(184, 1, 1, 0.3);
}

.simplified-test-card:hover::before {
  opacity: 1;
}

.simplified-test-card:hover::after {
  transform: scaleX(1);
  animation: shimmer 2s infinite;
}

@keyframes shimmer {
  0% {
    background-position: 200% 0;
  }

  100% {
    background-position: -200% 0;
  }
}

.dark-theme .simplified-test-card:hover {
  box-shadow:
    0 30px 80px rgba(184, 1, 1, 0.35),
    0 0 0 1px rgba(184, 1, 1, 0.3) inset,
    0 0 60px rgba(184, 1, 1, 0.25);
  border-color: rgba(184, 1, 1, 0.4);
}

.test-card-icon {
  width: 100%;
  height: 220px;
  margin: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  flex-shrink: 0;
  background: linear-gradient(135deg, rgba(184, 1, 1, 0.05) 0%, rgba(255, 68, 68, 0.05) 100%);
  padding: 30px;
  overflow: hidden;
}

.test-card-icon::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(184, 1, 1, 0.1) 0%, transparent 70%);
  transition: transform 0.6s ease;
}

.simplified-test-card:hover .test-card-icon::before {
  transform: scale(1.5) rotate(45deg);
}

.test-card-icon i {
  font-size: 2rem;
  color: white;
}

.test-card-logo {
  width: 100%;
  max-width: 160px;
  height: 160px;
  object-fit: contain;
  object-position: center;
  display: block;
  margin: 0 auto;
  border-radius: 16px;
  border: none;
  background: rgba(255, 255, 255, 1);
  padding: 20px;
  box-sizing: border-box;
  box-shadow:
    0 10px 30px rgba(0, 0, 0, 0.1),
    0 0 0 3px rgba(184, 1, 1, 0.1);
  transition: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
  position: relative;
  z-index: 1;
}

.dark-theme .test-card-logo {
  background: #ffffff;
  box-shadow:
    0 10px 30px rgba(0, 0, 0, 0.3),
    0 0 0 3px rgba(184, 1, 1, 0.2);
}

.simplified-test-card:hover .test-card-logo {
  transform: scale(1.1) rotate(2deg);
  box-shadow:
    0 15px 40px rgba(184, 1, 1, 0.2),
    0 0 0 3px rgba(184, 1, 1, 0.3);
}

.test-card-content {
  padding: 30px 30px 25px;
  flex: 1;
  display: flex;
  flex-direction: column;
  position: relative;
  z-index: 1;
}

.test-card-title {
  font-size: 1.75rem;
  font-weight: 800;
  color: #1e293b;
  margin-bottom: 15px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  background: linear-gradient(135deg, #B80101 0%, #ff4444 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  transition: all 0.3s ease;
}

.simplified-test-card:hover .test-card-title {
  transform: translateY(-2px);
}

.dark-theme .test-card-title {
  background: linear-gradient(135deg, #ff4444 0%, #ff6b6b 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.test-card-subtitle {
  font-size: 1rem;
  color: #64748b;
  margin-bottom: 25px;
  font-weight: 500;
  line-height: 1.6;
}

.dark-theme .test-card-subtitle {
  color: #94a3b8;
}

.test-card-stats {
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 20px 0 25px;
  padding: 20px;
  background: linear-gradient(135deg, rgba(184, 1, 1, 0.05) 0%, rgba(255, 68, 68, 0.05) 100%);
  border-radius: 16px;
  border: 1px solid rgba(184, 1, 1, 0.1);
  position: relative;
  overflow: hidden;
}

.test-card-stats::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(184, 1, 1, 0.1), transparent);
  transition: left 0.6s ease;
}

.simplified-test-card:hover .test-card-stats::before {
  left: 100%;
}

.dark-theme .test-card-stats {
  background: linear-gradient(135deg, rgba(184, 1, 1, 0.1) 0%, rgba(255, 68, 68, 0.1) 100%);
  border-color: rgba(184, 1, 1, 0.2);
}

.stat-item-simple {
  text-align: center;
  position: relative;
  z-index: 1;
}

.stat-number {
  font-size: 2.5rem;
  font-weight: 900;
  background: linear-gradient(135deg, #B80101 0%, #ff4444 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  display: block;
  line-height: 1.2;
  margin-bottom: 5px;
  transition: transform 0.3s ease;
}

.simplified-test-card:hover .stat-number {
  transform: scale(1.1);
}

.dark-theme .stat-number {
  background: linear-gradient(135deg, #ff4444 0%, #ff6b6b 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.stat-label {
  font-size: 0.85rem;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 600;
}

.dark-theme .stat-label {
  color: #94a3b8;
}

.btn-test-start-simple {
  background: linear-gradient(135deg, #B80101 0%, #ff4444 100%);
  color: white;
  border: none;
  padding: 16px 35px;
  border-radius: 16px;
  font-weight: 700;
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  position: relative;
  overflow: hidden;
  box-shadow:
    0 8px 25px rgba(184, 1, 1, 0.3),
    0 0 0 1px rgba(255, 255, 255, 0.1) inset;
  margin: 0 30px 30px;
  display: block;
  text-align: center;
  text-decoration: none;
  pointer-events: none;
}

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

.btn-test-start-simple::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  transform: translate(-50%, -50%);
  transition: width 0.6s ease, height 0.6s ease;
}

.simplified-test-card:hover .btn-test-start-simple {
  transform: translateY(-3px);
  box-shadow:
    0 12px 35px rgba(184, 1, 1, 0.4),
    0 0 0 1px rgba(255, 255, 255, 0.2) inset;
}

.simplified-test-card:hover .btn-test-start-simple::before {
  left: 100%;
}

.simplified-test-card:hover .btn-test-start-simple::after {
  width: 300px;
  height: 300px;
}

/* Responsive Styles for Test Type Cards */
@media (max-width: 992px) {
  .simplified-test-types-grid {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
  }

  .test-card-icon {
    height: 200px;
    padding: 25px;
  }

  .test-card-logo {
    max-width: 140px;
    height: 140px;
    padding: 15px;
  }

  .test-card-title {
    font-size: 1.5rem;
  }

  .stat-number {
    font-size: 2rem;
  }
}

@media (max-width: 768px) {
  .simplified-test-types-section {
    padding: 80px 0;
  }

  .simplified-test-types-grid {
    grid-template-columns: 1fr;
    gap: 30px;
    margin-top: 40px;
  }

  .simplified-test-card {
    border-radius: 20px;
    max-width: 100%;
  }

  .test-card-icon {
    height: 180px;
    padding: 20px;
  }

  .test-card-logo {
    max-width: 120px;
    height: 120px;
    padding: 12px;
  }

  .test-card-content {
    padding: 25px 25px 20px;
  }

  .test-card-title {
    font-size: 1.4rem;
    margin-bottom: 12px;
  }

  .test-card-stats {
    margin: 18px 0 20px;
    padding: 18px;
  }

  .stat-number {
    font-size: 1.8rem;
  }

  .stat-label {
    font-size: 0.75rem;
  }

  .btn-test-start-simple {
    padding: 14px 30px;
    font-size: 0.9rem;
    margin: 0 25px 25px;
  }

  .simplified-test-card:hover {
    transform: translateY(-10px) scale(1.02);
  }
}

@media (max-width: 576px) {
  .simplified-test-types-section {
    padding: 60px 0;
  }

  .simplified-test-types-grid {
    gap: 25px;
    margin-top: 30px;
  }

  .test-card-icon {
    height: 160px;
    padding: 15px;
  }

  .test-card-logo {
    max-width: 100px;
    height: 100px;
    padding: 10px;
  }

  .test-card-content {
    padding: 20px 20px 18px;
  }

  .test-card-title {
    font-size: 1.25rem;
    margin-bottom: 10px;
  }

  .test-card-stats {
    margin: 15px 0 18px;
    padding: 15px;
    border-radius: 12px;
  }

  .stat-number {
    font-size: 1.6rem;
  }

  .stat-label {
    font-size: 0.7rem;
  }

  .btn-test-start-simple {
    padding: 12px 25px;
    font-size: 0.85rem;
    margin: 0 20px 20px;
    border-radius: 12px;
  }
}

.test-types-background {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  pointer-events: none;
}

.floating-test-symbols {
  position: absolute;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.test-symbol {
  position: absolute;
  font-size: 2rem;
  opacity: 0.1;
  animation: testSymbolFloat 15s infinite ease-in-out;
}

.test-symbol.symbol-1 {
  top: 10%;
  left: 10%;
  animation-delay: 0s;
}

.test-symbol.symbol-2 {
  top: 20%;
  right: 15%;
  animation-delay: 3s;
}

.test-symbol.symbol-3 {
  top: 60%;
  left: 5%;
  animation-delay: 6s;
}

.test-symbol.symbol-4 {
  top: 80%;
  right: 10%;
  animation-delay: 9s;
}

.test-symbol.symbol-5 {
  top: 30%;
  left: 50%;
  animation-delay: 12s;
}

.test-symbol.symbol-6 {
  top: 70%;
  right: 30%;
  animation-delay: 15s;
}

@keyframes testSymbolFloat {

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

  50% {
    transform: translateY(-20px) rotate(5deg);
  }
}

.test-types-header {
  margin-bottom: 80px;
}

.test-types-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(184, 1, 1, 0.1);
  color: #B80101;
  padding: 8px 20px;
  border-radius: 25px;
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 20px;
  border: 2px solid rgba(184, 1, 1, 0.2);
}

.test-types-badge i {
  font-size: 1rem;
}

.test-types-title {
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 700;
  color: #1e293b;
  margin-bottom: 20px;
  line-height: 1.2;
}

.dark-theme .test-types-title {
  color: #f9fafb;
}

.test-types-subtitle {
  font-size: 1.25rem;
  color: #64748b;
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.6;
}

.dark-theme .test-types-subtitle {
  color: #94a3b8;
}

.test-type-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 40px;
  max-width: 1200px;
  margin: 0 auto;
}

.test-type-card {
  background: rgba(255, 255, 255, 0.9);
  border-radius: 20px;
  padding: 40px 30px;
  position: relative;
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  border: 2px solid rgba(255, 255, 255, 0.5);
  backdrop-filter: blur(10px);
}

.dark-theme .test-type-card {
  background: rgba(31, 41, 55, 0.9);
  border-color: rgba(255, 255, 255, 0.1);
}

.test-type-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.15);
}

.dark-theme .test-type-card:hover {
  box-shadow: 0 25px 50px rgba(184, 1, 1, 0.25);
}

.test-type-card-background {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  opacity: 0.05;
  background: linear-gradient(135deg, #B80101 0%, #ff6b6b 100%);
}

.test-type-pattern {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image:
    radial-gradient(circle at 20% 20%, rgba(184, 1, 1, 0.1) 0%, transparent 50%),
    radial-gradient(circle at 80% 80%, rgba(184, 1, 1, 0.1) 0%, transparent 50%);
}

.pattern-element {
  position: absolute;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: rgba(184, 1, 1, 0.1);
  animation: patternFloat 8s infinite ease-in-out;
}

.pattern-element:nth-child(1) {
  top: 20%;
  left: 20%;
  animation-delay: 0s;
}

.pattern-element:nth-child(2) {
  top: 60%;
  right: 20%;
  animation-delay: 2s;
}

.pattern-element:nth-child(3) {
  bottom: 20%;
  left: 50%;
  animation-delay: 4s;
}

@keyframes patternFloat {

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

  50% {
    transform: translateY(-15px) scale(1.1);
  }
}

.test-type-icon {
  position: relative;
  width: 80px;
  height: 80px;
  margin: 0 auto 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #B80101 0%, #ff6b6b 100%);
  border-radius: 20px;
  box-shadow: 0 10px 30px rgba(184, 1, 1, 0.3);
}

.test-type-icon i {
  font-size: 2rem;
  color: white;
  z-index: 2;
}

.icon-glow {
  position: absolute;
  top: -5px;
  left: -5px;
  right: -5px;
  bottom: -5px;
  background: linear-gradient(135deg, #B80101 0%, #ff6b6b 100%);
  border-radius: 25px;
  opacity: 0.3;
  filter: blur(10px);
  animation: iconGlow 3s infinite ease-in-out;
}

@keyframes iconGlow {

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

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

.test-type-content {
  text-align: center;
  margin-bottom: 30px;
}

.test-type-title {
  font-size: 1.75rem;
  font-weight: 700;
  color: #1e293b;
  margin-bottom: 15px;
}

.dark-theme .test-type-title {
  color: #f9fafb;
}

.test-type-description {
  color: #64748b;
  line-height: 1.6;
  margin-bottom: 25px;
}

.dark-theme .test-type-description {
  color: #94a3b8;
}

.test-type-features {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 25px;
}

.feature-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 15px;
  background: rgba(184, 1, 1, 0.08);
  border-radius: 10px;
  font-size: 0.9rem;
  color: #374151;
}

.dark-theme .feature-item {
  background: rgba(184, 1, 1, 0.1);
  color: #d1d5db;
}

.feature-item i {
  color: #B80101;
  font-size: 0.8rem;
}

.test-type-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px;
  margin-bottom: 30px;
}

.stat-item {
  text-align: center;
  padding: 15px;
  background: rgba(184, 1, 1, 0.05);
  border-radius: 12px;
  border: 1px solid rgba(184, 1, 1, 0.1);
}

.dark-theme .stat-item {
  background: rgba(184, 1, 1, 0.1);
  border-color: rgba(184, 1, 1, 0.2);
}

.stat-number {
  display: block;
  font-size: 1.5rem;
  font-weight: 700;
  color: #B80101;
  margin-bottom: 5px;
}

.stat-label {
  font-size: 0.8rem;
  color: #6b7280;
  font-weight: 500;
}

.dark-theme .stat-label {
  color: #9ca3af;
}

.test-type-action {
  text-align: center;
}

.btn-test-type {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: linear-gradient(135deg, #B80101 0%, #ff6b6b 100%);
  color: white;
  padding: 15px 30px;
  border-radius: 12px;
  text-decoration: none;
  font-weight: 600;
  font-size: 1rem;
  transition: all 0.3s ease;
  box-shadow: 0 8px 25px rgba(184, 1, 1, 0.3);
  position: relative;
  overflow: hidden;
}

.btn-test-type::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;
}

.btn-test-type:hover::before {
  left: 100%;
}

.btn-test-type:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 35px rgba(184, 1, 1, 0.4);
}

.btn-test-type i {
  transition: transform 0.3s ease;
}

.btn-test-type:hover i {
  transform: translateX(5px);
}

/* Specific card themes */
.est-card .test-type-card-background {
  background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
}

.sat-card .test-type-card-background {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
}

.act-card .test-type-card-background {
  background: linear-gradient(135deg, #8b5cf6 0%, #7c3aed 100%);
}

.est-card .test-type-icon {
  background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
}

.sat-card .test-type-icon {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
}

.act-card .test-type-icon {
  background: linear-gradient(135deg, #8b5cf6 0%, #7c3aed 100%);
}

.est-card .btn-test-type {
  background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
  box-shadow: 0 8px 25px rgba(59, 130, 246, 0.3);
}

.sat-card .btn-test-type {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  box-shadow: 0 8px 25px rgba(16, 185, 129, 0.3);
}

.act-card .btn-test-type {
  background: linear-gradient(135deg, #8b5cf6 0%, #7c3aed 100%);
  box-shadow: 0 8px 25px rgba(139, 92, 246, 0.3);
}

.est-card .btn-test-type:hover {
  box-shadow: 0 12px 35px rgba(59, 130, 246, 0.4);
}

.sat-card .btn-test-type:hover {
  box-shadow: 0 12px 35px rgba(16, 185, 129, 0.4);
}

.act-card .btn-test-type:hover {
  box-shadow: 0 12px 35px rgba(139, 92, 246, 0.4);
}

/* Responsive Design */
@media (max-width: 768px) {
  .professional-test-types-section {
    padding: 80px 0;
  }

  .test-types-header {
    margin-bottom: 60px;
  }

  .test-type-cards-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .test-type-card {
    padding: 30px 20px;
  }

  .test-type-icon {
    width: 70px;
    height: 70px;
  }

  .test-type-icon i {
    font-size: 1.75rem;
  }

  .test-type-title {
    font-size: 1.5rem;
  }

  .test-type-stats {
    grid-template-columns: 1fr;
    gap: 10px;
  }
}

@media (max-width: 480px) {
  .test-type-card {
    padding: 25px 15px;
  }

  .test-type-title {
    font-size: 1.25rem;
  }

  .btn-test-type {
    padding: 12px 25px;
    font-size: 0.9rem;
  }
}

/* Subtle gradient fades on slider edges for a polished look */
.students-slider::before,
.students-slider::after {
  content: '';
  position: absolute;
  top: 0;
  width: 40px;
  height: 100%;
  pointer-events: none;
  z-index: 2;
}

.students-slider::before {
  left: 0;
  background: linear-gradient(90deg, rgba(255, 255, 255, 1), rgba(255, 255, 255, 0));
}

.students-slider::after {
  right: 0;
  background: linear-gradient(270deg, rgba(255, 255, 255, 1), rgba(255, 255, 255, 0));
}

.dark-theme .students-slider::before {
  background: linear-gradient(90deg, rgba(10, 14, 19, 1), rgba(10, 14, 19, 0));
}

.dark-theme .students-slider::after {
  background: linear-gradient(270deg, rgba(10, 14, 19, 1), rgba(10, 14, 19, 0));
}

/* ============================= */
/* ACT Students Section          */
/* ============================= */

.dark-theme .dsat-mathematical-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  display: block;
}

.dark-theme .dsat-section .dsat-canvas {
  width: 100%;
  height: 100%;
  opacity: 0.6;
}

.dark-theme .dsat-section .dsat-grid-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image:
    linear-gradient(rgba(184, 1, 1, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(184, 1, 1, 0.08) 1px, transparent 1px);
  background-size: 60px 60px;
  animation: grid-move 25s linear infinite;
  z-index: 2;
  display: block;
}

.dark-theme .dsat-section .dsat-equations-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 3;
  pointer-events: none;
  overflow: hidden;
  display: block;
}

.dark-theme .dsat-section .dsat-equation-float {
  position: absolute;
  color: rgba(184, 1, 1, 0.15);
  font-family: 'Cambria Math', 'STIX Two Math', serif;
  font-size: clamp(1.2rem, 2.5vw, 2.8rem);
  font-weight: 300;
  opacity: 0;
  animation: equation-drift 18s infinite ease-in-out;
  z-index: 3;
  display: block;
}

.dark-theme .dsat-section .dsat-equation-float.dsat-eq-1 {
  top: 20%;
  left: 15%;
  animation-delay: 0s;
}

.dark-theme .dsat-section .dsat-equation-float.dsat-eq-2 {
  top: 30%;
  right: 20%;
  animation-delay: 4s;
}

.dark-theme .dsat-section .dsat-equation-float.dsat-eq-3 {
  bottom: 25%;
  left: 25%;
  animation-delay: 8s;
}

.dark-theme .dsat-section .dsat-equation-float.dsat-eq-4 {
  bottom: 15%;
  right: 15%;
  animation-delay: 12s;
}

.dark-theme .dsat-section .dsat-equation-float.dsat-eq-5 {
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  animation-delay: 16s;
}

.dark-theme .dsat-section .dsat-particles-advanced {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 4;
  pointer-events: none;
  display: block;
}

.dark-theme .dsat-section .dsat-floating-math-elements {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 5;
  display: block;
}

.dark-theme .dsat-section .dsat-math-element {
  position: absolute;
  color: rgba(184, 1, 1, 0.12);
  font-size: clamp(1.5rem, 3vw, 3rem);
  font-family: 'Cambria Math', 'STIX Two Math', serif;
  animation: float-math 10s ease-in-out infinite;
  opacity: 0.6;
  display: block;
}

.dark-theme .dsat-section .dsat-math-element:nth-child(1) {
  top: 25%;
  left: 20%;
  animation-delay: 0s;
}

.dark-theme .dsat-section .dsat-math-element:nth-child(2) {
  top: 65%;
  right: 25%;
  animation-delay: 2.5s;
}

.dark-theme .dsat-section .dsat-math-element:nth-child(3) {
  bottom: 30%;
  left: 30%;
  animation-delay: 5s;
}

.dark-theme .dsat-section .dsat-math-element:nth-child(4) {
  top: 45%;
  right: 35%;
  animation-delay: 7.5s;
}

.dsat-students-header {
  margin-bottom: 30px;
  position: relative;
  z-index: 10;
}

.dark-theme .dsat-students-header .section-title-professor {
  color: #ffffff !important;
}

.dark-theme .dsat-students-header .section-subtitle-professor {
  color: rgba(255, 255, 255, 0.8) !important;
}

.dsat-text {
  color: var(--red-primary);
}

.dsat-students-slider {
  position: relative;
  padding: 0 60px;
  margin: 0 auto;
  max-width: 1400px;
}

.dark-theme .dsat-students-slider {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 20px;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(184, 1, 1, 0.2);
}

.dsat-students-slides {
  display: flex;
  gap: 15px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: 20px 0;
  scroll-behavior: smooth;
  width: calc(4 * 450px + 3 * 15px + 60px);
  max-width: 100%;
}

.dsat-students-slides::-webkit-scrollbar {
  display: none;
}

.dsat-students-slides {
  scrollbar-width: none;
}

.dsat-students-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(184, 1, 1, 0.9);
  color: white;
  border: none;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  cursor: pointer;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
  box-shadow: 0 4px 15px rgba(184, 1, 1, 0.3);
}

.dsat-students-arrow:hover {
  transform: translateY(-50%) scale(1.06);
}

.dsat-students-arrow:active {
  transform: translateY(-50%) scale(0.98);
}

.dsat-students-arrow-prev {
  left: 6px;
}

.dsat-students-arrow-next {
  right: 6px;
}

.dark-theme .dsat-students-arrow {
  background: rgba(184, 1, 1, 0.8);
  box-shadow: 0 4px 15px rgba(184, 1, 1, 0.4);
}

/* DSAT Student Cards - Same as EST */
.dsat-student-card,
.act-student-card {
  flex: 0 0 400px;
  scroll-snap-align: start;
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid rgba(184, 1, 1, 0.15);
  border-radius: 20px;
  overflow: visible;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  min-height: 220px;
  max-height: 240px;
  width: 400px;
  display: flex;
  flex-direction: row;
  position: relative;
  backdrop-filter: blur(20px);
  transform-style: preserve-3d;
  margin: 0 15px;
}

.dsat-student-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(184, 1, 1, 0.1), transparent);
  transition: left 0.8s ease;
  z-index: 1;
}

.dsat-student-card:hover::before {
  left: 100%;
}

.dark-theme .dsat-student-card {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(184, 1, 1, 0.3);
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.4), 0 0 25px rgba(184, 1, 1, 0.15);
  backdrop-filter: blur(20px);
}

.dsat-student-card:hover,
.act-student-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15), 0 0 25px rgba(184, 1, 1, 0.1);
  border-color: rgba(184, 1, 1, 0.3);
}

.dark-theme .dsat-student-card,
.dark-theme .act-student-card {
  background: rgba(20, 20, 20, 0.95);
  border-color: rgba(184, 1, 1, 0.2);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.dark-theme .dsat-student-card:hover,
.dark-theme .act-student-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4), 0 0 30px rgba(184, 1, 1, 0.15);
  border-color: rgba(184, 1, 1, 0.4);
}

/* DSAT Card Elements - Same as EST */
.dsat-student-card-media,
.act-student-card-media {
  flex: 0 0 120px;
  height: 100%;
  background: linear-gradient(135deg, rgba(184, 1, 1, 0.1), rgba(184, 1, 1, 0.05));
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  border-radius: 20px 0 0 20px;
  overflow: hidden;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.dsat-student-card:hover .dsat-student-card-media,
.act-student-card:hover .act-student-card-media {
  background: linear-gradient(135deg, rgba(184, 1, 1, 0.15), rgba(184, 1, 1, 0.08));
}

.dark-theme .dsat-student-card-media,
.dark-theme .act-student-card-media {
  background: linear-gradient(135deg, rgba(184, 1, 1, 0.15), rgba(184, 1, 1, 0.08));
}

.dark-theme .dsat-student-card:hover .dsat-student-card-media,
.dark-theme .act-student-card:hover .act-student-card-media {
  background: linear-gradient(135deg, rgba(184, 1, 1, 0.2), rgba(184, 1, 1, 0.12));
}

.dsat-student-card-media img,
.act-student-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 20px 0 0 20px;
  border: none;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.dsat-student-card:hover .dsat-student-card-media img,
.act-student-card:hover .act-student-card-media img {
  transform: none;
  filter: brightness(1.05);
}

.dsat-student-card-body {
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.15), rgba(255, 255, 255, 0.05));
  backdrop-filter: blur(10px);
  border-radius: 12px 0 0 12px;
  position: relative;
  transition: all 0.3s ease;
  justify-content: center;
  min-width: 0;
  overflow: hidden;
}

.dsat-student-card:hover .dsat-student-card-body {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0.1));
}

.dark-theme .dsat-student-card-body {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.03));
  backdrop-filter: blur(15px);
}

.dark-theme .dsat-student-card:hover .dsat-student-card-body {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.06));
}

.dsat-student-card-banner {
  background: linear-gradient(135deg, var(--red-primary), #d32f2f, #b71c1c);
  padding: 15px 25px;
  position: relative;
  clip-path: polygon(0 0, calc(100% - 25px) 0, 100% 100%, 0 100%);
  margin-bottom: 20px;
  backdrop-filter: blur(10px);
  box-shadow: 0 6px 20px rgba(184, 1, 1, 0.4);
  border-radius: 15px;
  transition: all 0.3s ease;
}

.dsat-student-card:hover .dsat-student-card-banner {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(184, 1, 1, 0.5);
}

.dsat-student-name {
  margin: 0;
  color: #ffffff;
  font-size: 1.3rem;
  font-weight: 700;
  text-align: center;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
  letter-spacing: 0.5px;
  transition: all 0.3s ease;
}

.dsat-student-card:hover .dsat-student-name {
  transform: translateY(-1px);
  text-shadow: 0 3px 6px rgba(0, 0, 0, 0.4);
}

.dsat-student-score-info {
  display: flex;
  flex-direction: row;
  gap: 12px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.05));
  padding: 12px 80px 12px 12px;
  border-radius: 8px;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(184, 1, 1, 0.15);
  transition: all 0.3s ease;
  position: relative;
  overflow: visible;
  align-items: center;
  width: 100%;
  box-sizing: border-box;
}

.dsat-student-score-info::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
  transition: left 0.6s ease;
}

.dsat-student-card:hover .dsat-student-score-info::before {
  left: 100%;
}

.dsat-student-card:hover .dsat-student-score-info {
  transform: translateY(-2px);
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.15), rgba(255, 255, 255, 0.08));
  border-color: rgba(184, 1, 1, 0.25);
}

.dark-theme .dsat-student-score-info {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.03));
  backdrop-filter: blur(15px);
  border: 1px solid rgba(184, 1, 1, 0.25);
}

.dark-theme .dsat-student-card:hover .dsat-student-score-info {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.06));
  border-color: rgba(184, 1, 1, 0.35);
}

.dsat-subject-info {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(184, 1, 1, 0.2);
}

.dark-theme .dsat-subject-info {
  border-bottom-color: rgba(255, 255, 255, 0.1);
}

.dsat-subject-label {
  font-size: 0.85rem;
  color: #666;
  font-weight: 500;
}

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

.dsat-subject-value {
  font-size: 0.9rem;
  color: var(--red-primary);
  font-weight: 600;
}

.dark-theme .dsat-subject-value {
  color: #ffffff;
}

.dsat-score-info {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.dsat-score-label {
  font-size: 0.85rem;
  color: #666;
  font-weight: 500;
}

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

.dsat-score-value {
  font-size: 2.2rem;
  color: var(--red-primary);
  font-weight: 800;
  text-shadow: 0 2px 4px rgba(184, 1, 1, 0.3);
  transition: all 0.3s ease;
}

.dsat-student-card:hover .dsat-score-value {
  transform: scale(1.05);
  text-shadow: 0 3px 6px rgba(184, 1, 1, 0.4);
}

.dsat-score-suffix {
  font-size: 0.9rem;
  color: var(--red-primary);
  font-weight: 600;
  margin-left: 4px;
}

.dsat-score-badge,
.act-score-badge {
  position: absolute;
  top: -10px;
  right: -10px;
  width: 75px;
  height: 50px;
  background: linear-gradient(135deg, var(--red-primary), #d32f2f);
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-size: 0.5rem;
  color: #ffffff;
  font-weight: 700;
  line-height: 1;
  text-align: center;
  padding: 6px;
  backdrop-filter: blur(10px);
  border: 2px solid rgba(255, 255, 255, 0.9);
  box-shadow: 0 6px 20px rgba(184, 1, 1, 0.4);
  z-index: 15;
  transform: rotate(5deg);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.dsat-student-card:hover .dsat-score-badge,
.act-student-card:hover .act-score-badge {
  transform: rotate(0deg) scale(1.05);
  box-shadow: 0 8px 25px rgba(184, 1, 1, 0.6);
  border-color: rgba(255, 255, 255, 1);
}

.dark-theme .dsat-score-badge,
.dark-theme .act-score-badge {
  background: linear-gradient(135deg, var(--red-primary), #d32f2f);
  backdrop-filter: blur(15px);
  box-shadow: 0 6px 20px rgba(184, 1, 1, 0.5);
  border: 2px solid rgba(255, 255, 255, 0.9);
}

.dark-theme .dsat-student-card:hover .dsat-score-badge,
.dark-theme .act-student-card:hover .act-score-badge {
  transform: rotate(0deg) scale(1.05);
  box-shadow: 0 8px 25px rgba(184, 1, 1, 0.7);
  border: 2px solid rgba(255, 255, 255, 1);
}

.dsat-score-badge span {
  display: block;
  font-size: 0.45rem;
  line-height: 1.1;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.2px;
}


/* ACT Card Variants and Enhanced Styling */
.act-card-glow-effect {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  border-radius: 20px;
  opacity: 0;
  transition: opacity 0.4s ease;
  z-index: 0;
  pointer-events: none;
}

/* Perfect Card (36/36) */
.act-card-perfect {
  border: 2px solid #4caf50;
  box-shadow: 0 15px 40px rgba(76, 175, 80, 0.3), 0 0 30px rgba(76, 175, 80, 0.2);
}

.act-card-perfect .act-card-glow-effect {
  background: linear-gradient(135deg, rgba(76, 175, 80, 0.2), rgba(76, 175, 80, 0.1));
}

.act-card-perfect:hover .act-card-glow-effect {
  opacity: 1;
}

.act-banner-perfect {
  background: linear-gradient(135deg, #4caf50, #81c784, #4caf50);
  box-shadow: 0 8px 25px rgba(76, 175, 80, 0.5);
}

.act-badge-perfect {
  background: linear-gradient(135deg, #4caf50, #81c784);
  color: #ffffff;
  box-shadow: 0 4px 15px rgba(76, 175, 80, 0.4);
}

/* Exceptional Card */
.act-card-exceptional {
  border: 2px solid #ff9800;
  box-shadow: 0 15px 40px rgba(255, 152, 0, 0.3), 0 0 30px rgba(255, 152, 0, 0.2);
}

.act-card-exceptional .act-card-glow-effect {
  background: linear-gradient(135deg, rgba(255, 152, 0, 0.2), rgba(255, 152, 0, 0.1));
}

.act-card-exceptional:hover .act-card-glow-effect {
  opacity: 1;
}

.act-banner-exceptional {
  background: linear-gradient(135deg, #ff9800, #ffb74d, #ff9800);
  box-shadow: 0 8px 25px rgba(255, 152, 0, 0.5);
}

.act-badge-exceptional {
  background: linear-gradient(135deg, #ff9800, #ffb74d);
  color: #ffffff;
  box-shadow: 0 4px 15px rgba(255, 152, 0, 0.4);
}

/* Distinguished Card */
.act-card-distinguished {
  border: 2px solid #e91e63;
  box-shadow: 0 15px 40px rgba(233, 30, 99, 0.3), 0 0 30px rgba(233, 30, 99, 0.2);
}

.act-card-distinguished .act-card-glow-effect {
  background: linear-gradient(135deg, rgba(233, 30, 99, 0.2), rgba(233, 30, 99, 0.1));
}

.act-card-distinguished:hover .act-card-glow-effect {
  opacity: 1;
}

.act-banner-distinguished {
  background: linear-gradient(135deg, #e91e63, #f06292, #e91e63);
  box-shadow: 0 8px 25px rgba(233, 30, 99, 0.5);
}

.act-badge-distinguished {
  background: linear-gradient(135deg, #e91e63, #f06292);
  color: #ffffff;
  box-shadow: 0 4px 15px rgba(233, 30, 99, 0.4);
}

/* Meritorious Card */
.act-card-meritorious {
  border: 2px solid #673ab7;
  box-shadow: 0 15px 40px rgba(103, 58, 183, 0.3), 0 0 30px rgba(103, 58, 183, 0.2);
}

.act-card-meritorious .act-card-glow-effect {
  background: linear-gradient(135deg, rgba(103, 58, 183, 0.2), rgba(103, 58, 183, 0.1));
}

.act-card-meritorious:hover .act-card-glow-effect {
  opacity: 1;
}

.act-banner-meritorious {
  background: linear-gradient(135deg, #673ab7, #9575cd, #673ab7);
  box-shadow: 0 8px 25px rgba(103, 58, 183, 0.5);
}

.act-badge-meritorious {
  background: linear-gradient(135deg, #673ab7, #9575cd);
  color: #ffffff;
  box-shadow: 0 4px 15px rgba(103, 58, 183, 0.4);
}

/* ACT Achievement Overlay */
.act-achievement-overlay {
  position: absolute;
  top: 15px;
  right: 15px;
  background: rgba(255, 255, 255, 0.95);
  border-radius: 50px;
  padding: 8px 12px;
  display: flex;
  align-items: center;
  gap: 6px;
  backdrop-filter: blur(10px);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  z-index: 2;
  transition: all 0.3s ease;
}

.act-student-card:hover .act-achievement-overlay {
  transform: scale(1.1);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

.act-achievement-icon {
  font-size: 1rem;
  color: var(--red-primary);
}

.act-achievement-text {
  font-size: 0.75rem;
  font-weight: 600;
  color: #1a1a1a;
}

/* ACT Floating Score */
.act-score-floating {
  position: absolute;
  bottom: 15px;
  left: 15px;
  background: rgba(255, 255, 255, 0.95);
  color: var(--red-primary);
  font-size: 1.4rem;
  font-weight: 700;
  padding: 8px 12px;
  border-radius: 20px;
  backdrop-filter: blur(10px);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  z-index: 2;
  transition: all 0.3s ease;
}

.act-student-card:hover .act-score-floating {
  transform: scale(1.1) translateY(-5px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

/* ACT Rank Badge */
.act-rank-badge {
  position: absolute;
  top: -8px;
  right: -8px;
  background: linear-gradient(135deg, #4caf50, #81c784);
  color: #ffffff;
  font-size: 0.8rem;
  font-weight: 700;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 15px rgba(76, 175, 80, 0.4);
  z-index: 3;
}

/* ACT Achievement Stats */
.act-achievement-stats {
  display: flex;
  justify-content: space-between;
  gap: 15px;
  margin-top: 15px;
  padding-top: 15px;
  border-top: 1px solid rgba(184, 1, 1, 0.2);
}

.act-stat-item {
  text-align: center;
  flex: 1;
}

.act-stat-value {
  display: block;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--red-primary);
  margin-bottom: 4px;
}

.act-stat-label {
  font-size: 0.75rem;
  color: rgba(26, 26, 26, 0.7);
  font-weight: 500;
}

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


/* ACT Mathematical Background - Red Theme (Same as EST) */
.act-mathematical-background,
.act-grid-overlay,
.act-equations-background,
.act-equation-float,
.act-particles-advanced,
.act-floating-math-elements,
.act-math-element {
  display: none;
  /* Hidden by default in light mode */
}

.dark-theme .act-mathematical-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  display: block;
}

.dark-theme .act-section .act-canvas {
  width: 100%;
  height: 100%;
  opacity: 0.6;
}

.dark-theme .act-section .act-grid-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image:
    linear-gradient(rgba(184, 1, 1, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(184, 1, 1, 0.08) 1px, transparent 1px);
  background-size: 60px 60px;
  animation: grid-move 25s linear infinite;
  z-index: 2;
  display: block;
}

.dark-theme .act-section .act-equations-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 3;
  pointer-events: none;
  overflow: hidden;
  display: block;
}

.dark-theme .act-section .act-equation-float {
  position: absolute;
  color: rgba(184, 1, 1, 0.15);
  font-family: 'Cambria Math', 'STIX Two Math', serif;
  font-size: clamp(1.2rem, 2.5vw, 2.8rem);
  font-weight: 300;
  opacity: 0;
  animation: equation-drift 18s infinite ease-in-out;
  z-index: 3;
  display: block;
}

.dark-theme .act-section .act-equation-float.act-eq-1 {
  top: 15%;
  left: 20%;
  animation-delay: 0s;
}

.dark-theme .act-section .act-equation-float.act-eq-2 {
  top: 35%;
  right: 15%;
  animation-delay: 4s;
}

.dark-theme .act-section .act-equation-float.act-eq-3 {
  bottom: 20%;
  left: 30%;
  animation-delay: 8s;
}

.dark-theme .act-section .act-equation-float.act-eq-4 {
  bottom: 10%;
  right: 25%;
  animation-delay: 12s;
}

.dark-theme .act-section .act-equation-float.act-eq-5 {
  top: 60%;
  left: 50%;
  transform: translate(-50%, -50%);
  animation-delay: 16s;
}

.dark-theme .act-section .act-particles-advanced {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 4;
  pointer-events: none;
  display: block;
}

.dark-theme .act-section .act-floating-math-elements {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 5;
  display: block;
}

.dark-theme .act-section .act-math-element {
  position: absolute;
  color: rgba(184, 1, 1, 0.12);
  font-size: clamp(1.5rem, 3vw, 3rem);
  font-family: 'Cambria Math', 'STIX Two Math', serif;
  animation: float-math 10s ease-in-out infinite;
  opacity: 0.6;
  display: block;
}

.dark-theme .act-section .act-math-element:nth-child(1) {
  top: 20%;
  left: 25%;
  animation-delay: 0s;
}

.dark-theme .act-section .act-math-element:nth-child(2) {
  top: 70%;
  right: 20%;
  animation-delay: 2.5s;
}

.dark-theme .act-section .act-math-element:nth-child(3) {
  bottom: 25%;
  left: 35%;
  animation-delay: 5s;
}

.dark-theme .act-section .act-math-element:nth-child(4) {
  top: 50%;
  right: 30%;
  animation-delay: 7.5s;
}

.act-students-header {
  margin-bottom: 30px;
  position: relative;
  z-index: 10;
}

.dark-theme .act-students-header .section-title-professor {
  color: #ffffff !important;
}

.dark-theme .act-students-header .section-subtitle-professor {
  color: rgba(255, 255, 255, 0.8) !important;
}

.act-text {
  color: var(--red-primary);
}

.act-students-slider {
  position: relative;
  padding: 0 60px;
  margin: 0 auto;
  max-width: 1400px;
}

.dark-theme .act-students-slider {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 20px;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(184, 1, 1, 0.2);
}

.act-students-slides {
  display: flex;
  gap: 15px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: 20px 0;
  scroll-behavior: smooth;
  width: calc(4 * 450px + 3 * 15px + 60px);
  max-width: 100%;
}

.act-students-slides::-webkit-scrollbar {
  display: none;
}

.act-students-slides {
  scrollbar-width: none;
}

.act-students-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(184, 1, 1, 0.9);
  color: white;
  border: none;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  cursor: pointer;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
  box-shadow: 0 4px 15px rgba(184, 1, 1, 0.3);
}

.act-students-arrow:hover {
  transform: translateY(-50%) scale(1.06);
}

.act-students-arrow:active {
  transform: translateY(-50%) scale(0.98);
}

.act-students-arrow-prev {
  left: 6px;
}

.act-students-arrow-next {
  right: 6px;
}

.dark-theme .act-students-arrow {
  background: rgba(184, 1, 1, 0.8);
  box-shadow: 0 4px 15px rgba(184, 1, 1, 0.4);
}

/* ACT Student Cards - Same as EST */
.act-student-card {
  flex: 0 0 450px;
  scroll-snap-align: start;
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid rgba(184, 1, 1, 0.2);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.12);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  min-height: 240px;
  max-height: 260px;
  width: 450px;
  display: flex;
  flex-direction: row;
  position: relative;
  animation: card-float 8s ease-in-out infinite;
  backdrop-filter: blur(15px);
  transform-style: preserve-3d;
  margin: 0 15px;
}

.act-student-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(184, 1, 1, 0.1), transparent);
  transition: left 0.8s ease;
  z-index: 1;
}

.act-student-card:hover::before {
  left: 100%;
}

.dark-theme .act-student-card {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(184, 1, 1, 0.3);
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.4), 0 0 25px rgba(184, 1, 1, 0.15);
  backdrop-filter: blur(20px);
}

.act-student-card:hover {
  transform: translateY(-12px) rotateX(5deg) rotateY(2deg);
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.2), 0 0 30px rgba(184, 1, 1, 0.1);
  border-color: rgba(184, 1, 1, 0.4);
}

.dark-theme .act-student-card:hover {
  transform: translateY(-12px) rotateX(5deg) rotateY(2deg);
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.6), 0 0 40px rgba(184, 1, 1, 0.25);
  border-color: rgba(184, 1, 1, 0.6);
}

/* ACT Card Elements - Same as EST */
.act-student-card-media {
  position: relative;
  width: 120px;
  height: 100%;
  background: linear-gradient(135deg, rgba(248, 249, 250, 0.9), rgba(255, 255, 255, 0.8));
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px;
  backdrop-filter: blur(10px);
  border-radius: 0 12px 12px 0;
  overflow: hidden;
  transition: all 0.3s ease;
  flex-shrink: 0;
}

.act-student-card:hover .act-student-card-media {
  transform: scale(1.02);
  background: linear-gradient(135deg, rgba(248, 249, 250, 0.95), rgba(255, 255, 255, 0.9));
}

.dark-theme .act-student-card-media {
  background: linear-gradient(135deg, rgba(10, 10, 10, 0.8), rgba(20, 20, 20, 0.6));
  border-bottom: 1px solid rgba(184, 1, 1, 0.2);
  backdrop-filter: blur(15px);
}

.dark-theme .act-student-card:hover .act-student-card-media {
  background: linear-gradient(135deg, rgba(10, 10, 10, 0.9), rgba(20, 20, 20, 0.8));
}

.act-student-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 12px;
  display: block;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  filter: brightness(1) contrast(1.1);
}

.act-student-card:hover .act-student-card-media img {
  transform: scale(1.05);
  filter: brightness(1.1) contrast(1.2);
}

.act-student-card-body {
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.15), rgba(255, 255, 255, 0.05));
  backdrop-filter: blur(10px);
  border-radius: 12px 0 0 12px;
  position: relative;
  transition: all 0.3s ease;
  justify-content: center;
  min-width: 0;
  overflow: hidden;
}

.act-student-card:hover .act-student-card-body {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0.1));
}

.dark-theme .act-student-card-body {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.03));
  backdrop-filter: blur(15px);
}

.dark-theme .act-student-card:hover .act-student-card-body {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.06));
}

.act-student-card-banner {
  background: linear-gradient(135deg, var(--red-primary), #d32f2f, #b71c1c);
  padding: 15px 25px;
  position: relative;
  clip-path: polygon(0 0, calc(100% - 25px) 0, 100% 100%, 0 100%);
  margin-bottom: 20px;
  backdrop-filter: blur(10px);
  box-shadow: 0 6px 20px rgba(184, 1, 1, 0.4);
  border-radius: 15px;
  transition: all 0.3s ease;
}

.act-student-card:hover .act-student-card-banner {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(184, 1, 1, 0.5);
}

.act-student-name {
  margin: 0;
  color: #ffffff;
  font-size: 1.3rem;
  font-weight: 700;
  text-align: center;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
  letter-spacing: 0.5px;
  transition: all 0.3s ease;
}

.act-student-card:hover .act-student-name {
  transform: translateY(-1px);
  text-shadow: 0 3px 6px rgba(0, 0, 0, 0.4);
}

.act-student-score-info {
  display: flex;
  flex-direction: row;
  gap: 12px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.05));
  padding: 12px 80px 12px 12px;
  border-radius: 8px;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(184, 1, 1, 0.15);
  transition: all 0.3s ease;
  position: relative;
  overflow: visible;
  align-items: center;
  width: 100%;
  box-sizing: border-box;
}

.act-student-score-info::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
  transition: left 0.6s ease;
}

.act-student-card:hover .act-student-score-info::before {
  left: 100%;
}

.act-student-card:hover .act-student-score-info {
  transform: translateY(-2px);
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.15), rgba(255, 255, 255, 0.08));
  border-color: rgba(184, 1, 1, 0.25);
}

.dark-theme .act-student-score-info {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.03));
  backdrop-filter: blur(15px);
  border: 1px solid rgba(184, 1, 1, 0.25);
}

.dark-theme .act-student-card:hover .act-student-score-info {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.06));
  border-color: rgba(184, 1, 1, 0.35);
}

.act-subject-info {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(184, 1, 1, 0.2);
}

.dark-theme .act-subject-info {
  border-bottom-color: rgba(255, 255, 255, 0.1);
}

.act-subject-label {
  font-size: 0.85rem;
  color: #666;
  font-weight: 500;
}

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

.act-subject-value {
  font-size: 0.9rem;
  color: var(--red-primary);
  font-weight: 600;
}

.dark-theme .act-subject-value {
  color: #ffffff;
}

.act-score-info {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.act-score-label {
  font-size: 0.85rem;
  color: #666;
  font-weight: 500;
}

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

.act-score-value {
  font-size: 2.2rem;
  color: var(--red-primary);
  font-weight: 800;
  text-shadow: 0 2px 4px rgba(184, 1, 1, 0.3);
  transition: all 0.3s ease;
}

.act-student-card:hover .act-score-value {
  transform: scale(1.05);
  text-shadow: 0 3px 6px rgba(184, 1, 1, 0.4);
}

.act-score-suffix {
  font-size: 0.9rem;
  color: var(--red-primary);
  font-weight: 600;
  margin-left: 4px;
}

.act-score-badge {
  position: absolute;
  top: -8px;
  right: -8px;
  width: 70px;
  height: 45px;
  background: linear-gradient(135deg, var(--red-primary), #d32f2f);
  border-radius: 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-size: 0.5rem;
  color: #ffffff;
  font-weight: 600;
  line-height: 1;
  text-align: center;
  padding: 4px;
  backdrop-filter: blur(5px);
  border: 2px solid rgba(255, 255, 255, 0.9);
  box-shadow: 0 6px 16px rgba(184, 1, 1, 0.5);
  z-index: 15;
  transform: rotate(5deg);
  transition: all 0.3s ease;
}

.dark-theme .act-score-badge {
  background: linear-gradient(135deg, var(--red-primary), #d32f2f);
  backdrop-filter: blur(10px);
  box-shadow: 0 2px 8px rgba(184, 1, 1, 0.3);
  border: 1px solid rgba(184, 1, 1, 0.5);
}

.act-score-badge span {
  display: block;
  font-size: 0.45rem;
  line-height: 1.1;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.2px;
}

/* ============================= */
/* Free Tests Slider (Homepage)  */
/* ============================= */
.free-tests-section {
  padding: 100px 0;
  background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
  overflow: hidden;
}

.dark-theme .free-tests-section {
  background: linear-gradient(135deg, #1a1a1a 0%, #2a1a1a 100%);
  color: white;
  position: relative;
  overflow: hidden;
}


.free-tests-header {
  margin-bottom: 30px;
  position: relative;
  z-index: 10;
  text-align: left;
}

.free-tests-header.text-center {
  text-align: left;
}

.dark-theme .free-tests-header .section-title-professor {
  color: #ffffff !important;
}

.dark-theme .free-tests-header .section-subtitle-professor {
  color: rgba(255, 255, 255, 0.8) !important;
}

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

.dark-theme .tests-slider {
  background: rgba(255, 255, 255, 0.02);
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
}

.tests-slides {
  display: flex;
  gap: 28px;
  /* keep in sync with width calc below */
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  padding: 14px 0;
}

.tests-slides::-webkit-scrollbar {
  display: none;
}

.tests-slides {
  scrollbar-width: none;
}

.tests-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: #1a1a1a;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 3;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}

.tests-arrow:hover {
  transform: translateY(-50%) scale(1.06);
}

.tests-arrow:active {
  transform: translateY(-50%) scale(0.98);
}

.tests-arrow-prev {
  left: 6px;
}

.tests-arrow-next {
  right: 6px;
}

.dark-theme .tests-arrow {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.2);
}

.test-card {
  /* show four cards in normal (desktop) view */
  flex: 0 0 calc((100vw - 120px - 3 * 28px) / 4);
  /* use viewport width minus margins */
  scroll-snap-align: start;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(184, 1, 1, 0.18);
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  min-height: 440px;
  display: flex;
  flex-direction: column;
  position: relative;
  animation: card-float 8s ease-in-out infinite;
}

.dark-theme .test-card {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(184, 1, 1, 0.3);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4), 0 0 20px rgba(184, 1, 1, 0.1);
  backdrop-filter: blur(10px);
}

.test-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.12);
}

.dark-theme .test-card:hover {
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.5), 0 0 30px rgba(184, 1, 1, 0.2);
  border-color: rgba(184, 1, 1, 0.5);
}

.test-card-media {
  position: relative;
  height: 220px;
  background: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px;
}

.dark-theme .test-card-media {
  background: #0a0a0a;
  border-bottom: 1px solid rgba(184, 1, 1, 0.2);
}

.test-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* changed to cover for better thumbnail display */
  display: block;
}

.test-card-difficulty {
  position: absolute;
  top: 12px;
  right: 12px;
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.test-card-difficulty.easy {
  background-color: rgba(16, 185, 129, 0.9);
  color: white;
}

.test-card-difficulty.medium {
  background-color: rgba(245, 158, 11, 0.9);
  color: white;
}

.test-card-difficulty.hard {
  background-color: rgba(239, 68, 68, 0.9);
  color: white;
}

.test-card-body {
  padding: 18px 20px 20px 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: center;
  text-align: center;
  flex: 1 1 auto;
  /* fill remaining space so button can stick to bottom */
}

.test-card-title {
  margin: 0;
  font-size: 1.35rem;
  font-weight: 800;
  color: #1a1a1a;
}

.dark-theme .test-card-title {
  color: #f0f0f0;
}

.test-card-separator {
  width: 80%;
  height: 2px;
  background: linear-gradient(90deg, var(--red-primary), var(--red-secondary));
  opacity: 0.6;
  border-radius: 2px;
}

.test-card-info {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin: 8px 0;
  flex-wrap: wrap;
}

.test-info-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.85rem;
  color: #666;
  font-weight: 500;
}

.dark-theme .test-info-item {
  color: #aaa;
}

.test-info-item i {
  font-size: 0.9rem;
  color: var(--red-primary);
}

.test-card-btn {
  align-self: stretch;
  justify-content: center;
  padding: 10px 18px;
  font-size: 0.95rem;
  margin-top: auto;
  /* push to bottom of card body */
  text-align: center;
}

@media (max-width: 768px) {
  .tests-slider {
    padding: 0 40px;
    width: calc(100vw - 0px);
    left: 50%;
    transform: translateX(-50%);
  }

  .test-card {
    flex-basis: calc((100vw - 60px - 28px) / 2);
  }
}

@media (max-width: 480px) {
  .tests-slider {
    padding: 0 30px;
    width: calc(100vw - 0px);
    left: 50%;
    transform: translateX(-50%);
  }

  .test-card {
    flex-basis: calc(100vw - 30px);
  }
}

/* Subtle gradient fades on slider edges for a polished look */
.tests-slider::before,
.tests-slider::after {
  content: '';
  position: absolute;
  top: 0;
  width: 40px;
  height: 100%;
  pointer-events: none;
  z-index: 2;
}

.tests-slider::before {
  left: 0;
  background: linear-gradient(90deg, rgba(255, 255, 255, 1), rgba(255, 255, 255, 0));
}

.tests-slider::after {
  right: 0;
  background: linear-gradient(270deg, rgba(255, 255, 255, 1), rgba(255, 255, 255, 0));
}

.dark-theme .tests-slider::before {
  background: linear-gradient(90deg, rgba(10, 14, 19, 1), rgba(10, 14, 19, 0));
}

.dark-theme .tests-slider::after {
  background: linear-gradient(270deg, rgba(10, 14, 19, 1), rgba(10, 14, 19, 0));
}

/* Enhanced floating animation for cards */
@keyframes card-float {

  0%,
  100% {
    transform: translateY(0px) rotateX(0deg) rotateY(0deg);
  }

  25% {
    transform: translateY(-8px) rotateX(1deg) rotateY(0.5deg);
  }

  50% {
    transform: translateY(-12px) rotateX(0deg) rotateY(0deg);
  }

  75% {
    transform: translateY(-8px) rotateX(-1deg) rotateY(-0.5deg);
  }
}

@keyframes card-glow {

  0%,
  100% {
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.1), 0 0 25px rgba(184, 1, 1, 0.1);
  }

  50% {
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15), 0 0 35px rgba(184, 1, 1, 0.2);
  }
}

.dark-theme .student-card {
  animation: card-float 8s ease-in-out infinite, card-glow 4s ease-in-out infinite;
}

.test-card:hover {
  animation-play-state: paused;
}

/* DSAT and ACT Responsive Styles */
@media (max-width: 768px) {

  .dsat-student-card,
  .act-student-card {
    flex: 0 0 320px;
    width: 320px;
    min-height: 180px;
    max-height: 200px;
    margin: 0 8px;
  }

  .dsat-student-card-media,
  .act-student-card-media {
    flex: 0 0 100px;
  }

  .dsat-student-card-body,
  .act-student-card-body {
    padding: 15px;
    gap: 10px;
    flex: none;
    width: 100%;
  }

  .dsat-score-badge,
  .act-score-badge {
    width: 60px;
    height: 40px;
    font-size: 0.4rem;
    top: -8px;
    right: -8px;
  }
}

@media (max-width: 480px) {

  .dsat-student-card,
  .act-student-card {
    flex: 0 0 280px;
    width: 280px;
    min-height: 160px;
    max-height: 180px;
    margin: 0 5px;
  }

  .dsat-student-card-media,
  .act-student-card-media {
    flex: 0 0 80px;
  }

  .dsat-student-card-body,
  .act-student-card-body {
    padding: 12px;
    gap: 8px;
    flex: none;
    width: 100%;
  }

  .dsat-score-badge,
  .act-score-badge {
    width: 50px;
    height: 35px;
    font-size: 0.35rem;
    top: -6px;
    right: -6px;
  }
}

.dsat-students-slider,
.act-students-slider {
  padding: 0 30px;
}

.dsat-students-arrow,
.act-students-arrow {
  width: 40px;
  height: 40px;
  font-size: 1rem;
}

.dsat-students-arrow-prev,
.act-students-arrow-prev {
  left: 3px;
}

.dsat-students-arrow-next,
.act-students-arrow-next {
  right: 3px;
}

@media (max-width: 480px) {
  .hero-title-professor {
    font-size: 2rem;
  }


  .social-links {
    justify-content: center;
  }
}

/* ===========================================
   ELKABLY TEAM SECTION
   =========================================== */

.elkably-team-section {
  padding: 100px 0;
  background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
  position: relative;
  overflow: hidden;
}

.elkably-team-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="25" cy="25" r="1" fill="%23e9ecef" opacity="0.3"/><circle cx="75" cy="75" r="1" fill="%23e9ecef" opacity="0.3"/><circle cx="50" cy="10" r="0.5" fill="%23e9ecef" opacity="0.2"/><circle cx="10" cy="60" r="0.5" fill="%23e9ecef" opacity="0.2"/><circle cx="90" cy="40" r="0.5" fill="%23e9ecef" opacity="0.2"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
  opacity: 0.4;
  z-index: 1;
}

.team-content-wrapper {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
  position: relative;
  z-index: 2;
}

/* Left Side - Text Content */
.team-text-content {
  padding-right: 40px;
}

.team-title {
  font-size: 3.5rem;
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 30px;
  color: #2c3e50;
}

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

.team-title-red::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, #e74c3c, #c0392b);
  border-radius: 2px;
}

.team-description {
  font-size: 1.2rem;
  line-height: 1.7;
  color: #5a6c7d;
  margin-bottom: 40px;
  font-weight: 400;
}

.team-learn-more-btn {
  background: linear-gradient(135deg, #e74c3c, #c0392b);
  color: white;
  border: none;
  padding: 15px 35px;
  border-radius: 8px;
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  box-shadow: 0 8px 25px rgba(231, 76, 60, 0.3);
  position: relative;
  overflow: hidden;
}

.team-learn-more-btn::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;
}

.team-learn-more-btn:hover::before {
  left: 100%;
}

.team-learn-more-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 35px rgba(231, 76, 60, 0.4);
}

.team-learn-more-btn i {
  transition: transform 0.3s ease;
}

.team-learn-more-btn:hover i {
  transform: translateX(5px);
}

/* Right Side - Team Carousel */
.team-carousel-container {
  position: relative;
  background: white;
  border-radius: 20px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  min-height: 500px;
}

.team-carousel {
  position: relative;
  height: 100%;
}

.team-carousel-prev,
.team-carousel-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: #e74c3c;
  color: white;
  border: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  cursor: pointer;
  z-index: 10;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 15px rgba(231, 76, 60, 0.3);
}

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

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

.team-carousel-prev:hover,
.team-carousel-next:hover {
  background: #c0392b;
  transform: translateY(-50%) scale(1.1);
  box-shadow: 0 6px 20px rgba(231, 76, 60, 0.4);
}

.team-carousel-prev.disabled,
.team-carousel-next.disabled {
  opacity: 0.5;
  cursor: not-allowed;
  pointer-events: none;
}

.team-carousel-prev.disabled:hover,
.team-carousel-next.disabled:hover {
  background: #e74c3c;
  transform: translateY(-50%) scale(1);
  box-shadow: 0 4px 15px rgba(231, 76, 60, 0.2);
}

.team-member-card {
  padding: 40px;
  height: 100%;
  display: none;
  flex-direction: column;
  position: relative;
  background: white;
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  transform: translateX(0);
}

.team-member-card.active {
  display: flex;
}

.team-card-header {
  text-align: center;
  margin-bottom: 30px;
}

.team-card-title {
  font-size: 2.5rem;
  font-weight: 900;
  color: #e74c3c;
  letter-spacing: 2px;
  margin: 0;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
}

.team-member-info {
  display: flex;
  align-items: center;
  gap: 30px;
  margin-bottom: 40px;
  flex: 1;
}

.team-member-image {
  flex-shrink: 0;
  width: 200px;
  height: 200px;
  border-radius: 15px;
  overflow: hidden;
  border: 4px solid #e74c3c;
  box-shadow: 0 8px 25px rgba(231, 76, 60, 0.3);
  position: relative;
}

.team-member-image::before {
  content: '';
  position: absolute;
  top: -2px;
  left: -2px;
  right: -2px;
  bottom: -2px;
  background: linear-gradient(45deg, #e74c3c, #c0392b, #e74c3c);
  border-radius: 15px;
  z-index: -1;
  animation: borderGlow 3s ease-in-out infinite;
}

@keyframes borderGlow {

  0%,
  100% {
    opacity: 1;
  }

  50% {
    opacity: 0.7;
  }
}

.team-member-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

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

.team-member-fallback {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #e74c3c, #c0392b);
  color: white;
  font-size: 3rem;
  font-weight: bold;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.fallback-initials {
  font-size: 3rem;
  font-weight: bold;
  color: white;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.team-member-details {
  flex: 1;
}

.team-member-role {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 20px;
}

.role-line {
  width: 4px;
  height: 50px;
  background: linear-gradient(180deg, #e74c3c, #c0392b);
  border-radius: 2px;
  box-shadow: 0 2px 8px rgba(231, 76, 60, 0.3);
}

.role-text {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.role-field {
  font-size: 1.1rem;
  font-weight: 600;
  color: #2c3e50;
  letter-spacing: 0.5px;
}

.role-experience {
  font-size: 0.9rem;
  color: #7f8c8d;
  font-weight: 500;
}

.team-member-name {
  font-size: 1.8rem;
  font-weight: 700;
  color: #e74c3c;
  margin: 0 0 10px 0;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.1);
}

.team-member-position {
  font-size: 1.1rem;
  font-weight: 800;
  color: #2c3e50;
  margin: 0;
  letter-spacing: 1px;
  text-transform: uppercase;
}


/* Carousel Sliding Animations */
.team-member-card.slide-in-left {
  animation: slideInLeft 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.team-member-card.slide-in-right {
  animation: slideInRight 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.team-member-card.slide-out-left {
  animation: slideOutLeft 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.team-member-card.slide-out-right {
  animation: slideOutRight 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes slideInLeft {
  0% {
    opacity: 0;
    transform: translateX(-50px) scale(0.9);
  }

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

@keyframes slideInRight {
  0% {
    opacity: 0;
    transform: translateX(50px) scale(0.9);
  }

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

@keyframes slideOutLeft {
  0% {
    opacity: 1;
    transform: translateX(0) scale(1);
  }

  100% {
    opacity: 0;
    transform: translateX(-50px) scale(0.9);
  }
}

@keyframes slideOutRight {
  0% {
    opacity: 1;
    transform: translateX(0) scale(1);
  }

  100% {
    opacity: 0;
    transform: translateX(50px) scale(0.9);
  }
}

/* Carousel Indicators */
.team-carousel-indicators {
  display: flex;
  justify-content: center;
  gap: 8px;
  padding: 20px 0;
  background: #f8f9fa;
}

.indicator {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #bdc3c7;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
}

.indicator.active {
  background: #e74c3c;
  transform: scale(1.2);
  box-shadow: 0 0 0 3px rgba(231, 76, 60, 0.2);
}

.indicator:hover {
  background: #e74c3c;
  transform: scale(1.1);
}

/* Responsive Design */
@media (max-width: 1200px) {
  .team-content-wrapper {
    gap: 60px;
  }

  .team-text-content {
    padding-right: 20px;
  }

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

@media (max-width: 992px) {
  .team-content-wrapper {
    grid-template-columns: 1fr;
    gap: 50px;
    text-align: center;
  }

  .team-text-content {
    padding-right: 0;
  }

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

  .team-member-info {
    flex-direction: column;
    text-align: center;
    gap: 20px;
  }

  .team-member-role {
    justify-content: center;
  }
}

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

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

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

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

  .team-card-title {
    font-size: 2rem;
  }

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

  .fallback-initials {
    font-size: 2.5rem;
  }

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

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

  .team-learn-more-btn {
    padding: 12px 25px;
    font-size: 1rem;
  }

  .team-carousel-prev,
  .team-carousel-next {
    width: 35px;
    height: 35px;
  }

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

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

/* ===========================================
   ENHANCED SCORE CALCULATOR SECTION - 3-STEP DESIGN
   =========================================== */

.score-calculator-section {
  padding: 80px 0;
  background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 50%, #cbd5e1 100%);
  position: relative;
  overflow: hidden;
}

.score-calculator-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="calculator-grid" width="20" height="20" patternUnits="userSpaceOnUse"><path d="M 20 0 L 0 0 0 20" fill="none" stroke="%23B80101" stroke-width="0.5" opacity="0.05"/></pattern></defs><rect width="100" height="100" fill="url(%23calculator-grid)"/></svg>');
  opacity: 0.4;
  z-index: 1;
}

/* Calculator Header */
.calculator-header {
  text-align: center;
  margin-bottom: 50px;
  position: relative;
  z-index: 2;
}

.calculator-header-content {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  margin-bottom: 30px;
}

.calculator-icon-wrapper {
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, #B80101, #8B0000);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 20px rgba(184, 1, 1, 0.3);
  position: relative;
  animation: calculatorGlow 3s ease-in-out infinite;
}

.calculator-icon-wrapper::before {
  content: '';
  position: absolute;
  top: -3px;
  left: -3px;
  right: -3px;
  bottom: -3px;
  background: linear-gradient(135deg, #B80101, #8B0000);
  border-radius: 50%;
  opacity: 0.2;
  z-index: -1;
  animation: calculatorPulse 2s ease-in-out infinite;
}

.calculator-icon-wrapper i {
  color: white;
  font-size: 1.5rem;
  z-index: 2;
}

@keyframes calculatorGlow {

  0%,
  100% {
    box-shadow: 0 8px 20px rgba(184, 1, 1, 0.3);
  }

  50% {
    box-shadow: 0 12px 30px rgba(184, 1, 1, 0.5);
  }
}

@keyframes calculatorPulse {

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

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

.calculator-title-content {
  text-align: left;
}

.calculator-title {
  font-size: 2.5rem;
  font-weight: 700;
  color: #1e293b;
  margin-bottom: 10px;
  background: linear-gradient(135deg, #1e293b, #B80101);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.calculator-subtitle {
  font-size: 1.1rem;
  color: rgba(30, 41, 59, 0.7);
  max-width: 400px;
}

/* Progress Steps */
.calculator-progress {
  position: relative;
  max-width: 500px;
  margin: 0 auto;
}

.progress-steps {
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
  z-index: 2;
}

.step-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.step-number {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(30, 41, 59, 0.1);
  border: 2px solid rgba(30, 41, 59, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(30, 41, 59, 0.6);
  font-weight: 600;
  font-size: 1rem;
  transition: all 0.3s ease;
}

.step-label {
  color: rgba(30, 41, 59, 0.6);
  font-size: 0.8rem;
  font-weight: 500;
  transition: all 0.3s ease;
}

.step-item.active .step-number {
  background: linear-gradient(135deg, #B80101, #8B0000);
  border-color: #B80101;
  color: white;
  box-shadow: 0 6px 20px rgba(184, 1, 1, 0.3);
}

.step-item.active .step-label {
  color: #B80101;
}

.step-item.completed .step-number {
  background: linear-gradient(135deg, #10B981, #059669);
  border-color: #10B981;
  color: white;
}

.step-item.completed .step-label {
  color: #10B981;
}

.progress-line {
  position: absolute;
  top: 20px;
  left: 20px;
  right: 20px;
  height: 2px;
  background: rgba(30, 41, 59, 0.2);
  z-index: 1;
}

.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #B80101, #8B0000);
  border-radius: 1px;
  transition: width 0.5s ease;
  width: 0%;
}

/* Calculator Container */
.calculator-container {
  max-width: 800px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

.calculator-step {
  display: none;
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(20px);
  border-radius: 20px;
  padding: 30px;
  border: 1px solid rgba(30, 41, 59, 0.1);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
  position: relative;
  overflow: hidden;
}

.calculator-step.active {
  display: block;
  animation: stepFadeIn 0.5s ease-out;
}

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

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

.calculator-step::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(184, 1, 1, 0.05), transparent);
  transition: left 0.8s ease;
}

.calculator-step:hover::before {
  left: 100%;
}

/* Step Header */
.step-header {
  text-align: center;
  margin-bottom: 30px;
}

.step-title {
  font-size: 1.8rem;
  font-weight: 700;
  color: #1e293b;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 15px;
}

.step-title i {
  color: #B80101;
  font-size: 1.5rem;
}

.step-description {
  font-size: 1rem;
  color: rgba(30, 41, 59, 0.7);
  max-width: 400px;
  margin: 0 auto;
}

/* University Options */
.university-options {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  margin-bottom: 30px;
}

.university-option {
  background: rgba(255, 255, 255, 0.6);
  border: 2px solid rgba(30, 41, 59, 0.1);
  border-radius: 15px;
  padding: 20px;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  gap: 15px;
}

.university-option::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(184, 1, 1, 0.05), transparent);
  transition: left 0.5s ease;
}

.university-option:hover {
  border-color: #B80101;
  background: rgba(184, 1, 1, 0.05);
  transform: translateY(-3px);
  box-shadow: 0 10px 25px rgba(184, 1, 1, 0.15);
}

.university-option:hover::before {
  left: 100%;
}

.university-option.selected {
  border-color: #B80101;
  background: rgba(184, 1, 1, 0.1);
  box-shadow: 0 10px 25px rgba(184, 1, 1, 0.2);
}

.option-icon {
  width: 50px;
  height: 50px;
  background: linear-gradient(135deg, #B80101, #8B0000);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.option-icon i {
  color: white;
  font-size: 1.2rem;
}

.option-content {
  flex: 1;
}

.option-content h4 {
  color: #1e293b;
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 5px;
}

.option-content p {
  color: rgba(30, 41, 59, 0.7);
  font-size: 0.9rem;
  margin-bottom: 10px;
}

.option-requirements {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.requirement {
  background: rgba(184, 1, 1, 0.1);
  color: #B80101;
  padding: 4px 10px;
  border-radius: 15px;
  font-size: 0.8rem;
  font-weight: 500;
}

.option-check {
  width: 25px;
  height: 25px;
  border: 2px solid rgba(30, 41, 59, 0.3);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  flex-shrink: 0;
}

.university-option.selected .option-check {
  background: #B80101;
  border-color: #B80101;
}

.option-check i {
  color: white;
  font-size: 0.7rem;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.university-option.selected .option-check i {
  opacity: 1;
}

/* Scores Form */
.scores-form {
  display: grid;
  gap: 20px;
  margin-bottom: 30px;
}

.score-input-group {
  position: relative;
}

.score-input-card {
  background: rgba(255, 255, 255, 0.6);
  border: 2px solid rgba(30, 41, 59, 0.1);
  border-radius: 15px;
  padding: 20px;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 15px;
}

.score-input-card:focus-within {
  border-color: #B80101;
  background: rgba(184, 1, 1, 0.05);
  box-shadow: 0 8px 20px rgba(184, 1, 1, 0.15);
}

.score-icon {
  width: 45px;
  height: 45px;
  background: linear-gradient(135deg, #B80101, #8B0000);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.score-icon i {
  color: white;
  font-size: 1.1rem;
}

.score-content {
  flex: 1;
}

.score-label {
  display: block;
  color: #1e293b;
  font-weight: 600;
  font-size: 1rem;
  margin-bottom: 8px;
}

.score-input {
  width: 100%;
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid rgba(30, 41, 59, 0.2);
  border-radius: 10px;
  padding: 12px 16px;
  color: #1e293b;
  font-size: 0.95rem;
  transition: all 0.3s ease;
}

.score-input::placeholder {
  color: rgba(30, 41, 59, 0.5);
}

.score-input:focus {
  outline: none;
  border-color: #B80101;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 0 0 3px rgba(184, 1, 1, 0.1);
}

.score-info {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 6px;
  font-size: 0.85rem;
}

.score-range {
  color: rgba(30, 41, 59, 0.6);
}

.score-min {
  color: #B80101;
  font-weight: 500;
}

.score-note {
  color: rgba(30, 41, 59, 0.6);
  font-style: italic;
}

/* Results Container */
.results-container {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 25px;
  margin-bottom: 30px;
}

.results-card {
  background: rgba(255, 255, 255, 0.8);
  border: 2px solid rgba(30, 41, 59, 0.1);
  border-radius: 20px;
  padding: 25px;
  position: relative;
  overflow: hidden;
}

.results-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(184, 1, 1, 0.05), rgba(139, 0, 0, 0.02));
  z-index: 1;
}

.results-header {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 20px;
  position: relative;
  z-index: 2;
}

.results-icon {
  width: 50px;
  height: 50px;
  background: linear-gradient(135deg, #B80101, #8B0000);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.results-icon i {
  color: white;
  font-size: 1.2rem;
}

.results-title h4 {
  color: #1e293b;
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 3px;
}

.results-title p {
  color: rgba(30, 41, 59, 0.7);
  font-size: 0.9rem;
}

.results-score {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
  position: relative;
  z-index: 2;
}

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

.score-value {
  display: block;
  font-size: 2.5rem;
  font-weight: 700;
  color: #B80101;
  line-height: 1;
  text-shadow: 0 0 15px rgba(184, 1, 1, 0.3);
}

.score-label {
  color: rgba(30, 41, 59, 0.7);
  font-size: 0.9rem;
  font-weight: 500;
}

.score-status {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(16, 185, 129, 0.1);
  padding: 10px 18px;
  border-radius: 20px;
  border: 1px solid rgba(16, 185, 129, 0.2);
}

.score-status i {
  color: #10B981;
  font-size: 1rem;
}

.score-status span {
  color: #10B981;
  font-weight: 600;
  font-size: 0.9rem;
}

.score-breakdown {
  background: rgba(255, 255, 255, 0.4);
  border-radius: 12px;
  padding: 18px;
  margin-bottom: 20px;
  position: relative;
  z-index: 2;
}

.breakdown-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 0;
  border-bottom: 1px solid rgba(30, 41, 59, 0.1);
}

.breakdown-item:last-child {
  border-bottom: none;
}

.breakdown-item.bonus {
  background: rgba(184, 1, 1, 0.05);
  margin: 8px -12px;
  padding: 8px 12px;
  border-radius: 8px;
  border: none;
}

.breakdown-label {
  color: rgba(30, 41, 59, 0.8);
  font-weight: 500;
  font-size: 0.9rem;
}

.breakdown-value {
  color: #1e293b;
  font-weight: 600;
  font-size: 1rem;
}

.breakdown-item.bonus .breakdown-value {
  color: #B80101;
}

.results-actions {
  display: flex;
  gap: 12px;
  position: relative;
  z-index: 2;
}

.btn-recalculate,
.btn-share {
  flex: 1;
  padding: 12px 20px;
  border: 2px solid rgba(30, 41, 59, 0.2);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.6);
  color: #1e293b;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 0.9rem;
}

.btn-recalculate:hover {
  border-color: #B80101;
  background: rgba(184, 1, 1, 0.1);
  transform: translateY(-2px);
}

.btn-share:hover {
  border-color: #10B981;
  background: rgba(16, 185, 129, 0.1);
  transform: translateY(-2px);
}

/* Rules Panel Compact */
.rules-panel-compact {
  background: rgba(255, 255, 255, 0.6);
  border: 2px solid rgba(30, 41, 59, 0.1);
  border-radius: 15px;
  padding: 20px;
  height: fit-content;
}

.rules-title {
  color: #1e293b;
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 15px;
  text-align: center;
}

.rule-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  background: rgba(255, 255, 255, 0.4);
  border-radius: 10px;
  border: 1px solid rgba(30, 41, 59, 0.1);
}

.rule-item i {
  color: #B80101;
  font-size: 1rem;
}

.rule-item span {
  color: rgba(30, 41, 59, 0.8);
  font-size: 0.85rem;
  line-height: 1.4;
}

/* Step Actions */
.step-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 15px;
}

.btn-back,
.btn-next,
.btn-finish {
  padding: 12px 24px;
  border: none;
  border-radius: 10px;
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 8px;
  position: relative;
  overflow: hidden;
}

.btn-back {
  background: rgba(255, 255, 255, 0.6);
  color: rgba(30, 41, 59, 0.8);
  border: 2px solid rgba(30, 41, 59, 0.2);
}

.btn-back:hover {
  background: rgba(255, 255, 255, 0.8);
  color: #1e293b;
  transform: translateY(-2px);
}

.btn-next,
.btn-finish {
  background: linear-gradient(135deg, #B80101, #8B0000);
  color: white;
  border: 2px solid #B80101;
  box-shadow: 0 6px 20px rgba(184, 1, 1, 0.3);
}

.btn-next:hover,
.btn-finish:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(184, 1, 1, 0.4);
}

.btn-next:disabled,
.btn-finish:disabled {
  background: rgba(30, 41, 59, 0.1);
  color: rgba(30, 41, 59, 0.3);
  border-color: rgba(30, 41, 59, 0.2);
  cursor: not-allowed;
  box-shadow: none;
}

.btn-next:disabled:hover,
.btn-finish:disabled:hover {
  transform: none;
}

/* Responsive Design */
@media (max-width: 1200px) {
  .results-container {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .calculator-header-content {
    flex-direction: column;
    text-align: center;
    gap: 15px;
  }

  .calculator-title-content {
    text-align: center;
  }
}

@media (max-width: 768px) {
  .score-calculator-section {
    padding: 60px 0;
  }

  .calculator-header {
    margin-bottom: 40px;
  }

  .calculator-header-content {
    margin-bottom: 20px;
  }

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

  .calculator-icon-wrapper {
    width: 50px;
    height: 50px;
  }

  .calculator-icon-wrapper i {
    font-size: 1.2rem;
  }

  .calculator-step {
    padding: 20px;
  }

  .step-title {
    font-size: 1.5rem;
    flex-direction: column;
    gap: 10px;
  }

  .university-options {
    grid-template-columns: 1fr;
    gap: 15px;
  }

  .university-option {
    padding: 15px;
  }

  .scores-form {
    gap: 15px;
  }

  .score-input-card {
    padding: 15px;
  }

  .results-container {
    gap: 15px;
  }

  .results-card {
    padding: 20px;
  }

  .score-value {
    font-size: 2rem;
  }

  .step-actions {
    flex-direction: column;
    gap: 12px;
  }

  .btn-back,
  .btn-next,
  .btn-finish {
    width: 100%;
    justify-content: center;
  }
}

@media (max-width: 576px) {
  .score-calculator-section {
    padding: 40px 0;
  }

  .calculator-title {
    font-size: 1.8rem;
  }

  .calculator-subtitle {
    font-size: 1rem;
  }

  .calculator-step {
    padding: 15px;
  }

  .step-title {
    font-size: 1.4rem;
  }

  .step-description {
    font-size: 0.9rem;
  }

  .university-option {
    flex-direction: column;
    text-align: center;
    gap: 12px;
  }

  .option-content {
    order: 2;
  }

  .option-check {
    order: 3;
  }

  .score-input-card {
    flex-direction: column;
    text-align: center;
    gap: 12px;
  }

  .score-content {
    width: 100%;
  }

  .results-card {
    padding: 18px;
  }

  .results-header {
    flex-direction: column;
    text-align: center;
    gap: 12px;
  }

  .results-score {
    flex-direction: column;
    gap: 15px;
  }

  .score-value {
    font-size: 1.8rem;
  }

  .results-actions {
    flex-direction: column;
  }
}

/* ===========================================
   SCORE CALCULATOR SECTION - DARK MODE
   =========================================== */

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

.dark-theme .score-calculator-section::before {
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="calculator-grid-dark" width="20" height="20" patternUnits="userSpaceOnUse"><path d="M 20 0 L 0 0 0 20" fill="none" stroke="%23B80101" stroke-width="0.5" opacity="0.1"/></pattern></defs><rect width="100" height="100" fill="url(%23calculator-grid-dark)"/></svg>');
  opacity: 0.3;
}

.dark-theme .calculator-title {
  color: #ffffff;
  background: linear-gradient(135deg, #ffffff, #B80101);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

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

.dark-theme .step-number {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.3);
  color: rgba(255, 255, 255, 0.6);
}

.dark-theme .step-label {
  color: rgba(255, 255, 255, 0.6);
}

.dark-theme .progress-line {
  background: rgba(255, 255, 255, 0.2);
}

.dark-theme .calculator-step {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.1);
}

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

.dark-theme .step-description {
  color: rgba(255, 255, 255, 0.7);
}

.dark-theme .university-option {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.1);
}

.dark-theme .university-option:hover {
  background: rgba(184, 1, 1, 0.08);
  border-color: #B80101;
}

.dark-theme .university-option.selected {
  background: rgba(184, 1, 1, 0.12);
  border-color: #B80101;
}

.dark-theme .option-content h4 {
  color: #ffffff;
}

.dark-theme .option-content p {
  color: rgba(255, 255, 255, 0.7);
}

.dark-theme .option-check {
  border-color: rgba(255, 255, 255, 0.3);
}

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

.dark-theme .score-input-card:focus-within {
  background: rgba(184, 1, 1, 0.08);
  border-color: #B80101;
}

.dark-theme .score-label {
  color: #ffffff;
}

.dark-theme .score-input {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.2);
  color: #ffffff;
}

.dark-theme .score-input::placeholder {
  color: rgba(255, 255, 255, 0.5);
}

.dark-theme .score-range {
  color: rgba(255, 255, 255, 0.6);
}

.dark-theme .score-note {
  color: rgba(255, 255, 255, 0.6);
}

.dark-theme .results-card {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.1);
}

.dark-theme .results-title h4 {
  color: #ffffff;
}

.dark-theme .results-title p {
  color: rgba(255, 255, 255, 0.7);
}

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

.dark-theme .score-breakdown {
  background: rgba(255, 255, 255, 0.05);
}

.dark-theme .breakdown-label {
  color: rgba(255, 255, 255, 0.8);
}

.dark-theme .breakdown-value {
  color: #ffffff;
}

.dark-theme .btn-recalculate,
.dark-theme .btn-share {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.2);
  color: #ffffff;
}

.dark-theme .rules-panel-compact {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.1);
}

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

.dark-theme .rule-item {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.1);
}

.dark-theme .rule-item span {
  color: rgba(255, 255, 255, 0.8);
}

.dark-theme .btn-back {
  background: rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.8);
  border-color: rgba(255, 255, 255, 0.2);
}

.dark-theme .btn-back:hover {
  background: rgba(255, 255, 255, 0.2);
  color: #ffffff;
}

.dark-theme .results-header h3 {
  color: #ffffff;
}

.dark-theme .result-card {
  background: #2d2d2d;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

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

.dark-theme .result-value {
  color: #ffffff;
}

.dark-theme .results-summary {
  background: #2d2d2d;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.dark-theme .summary-item {
  color: #ffffff;
}

.dark-theme .rules-panel {
  background: #2d2d2d;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.dark-theme .rule-section h4 {
  color: #ffffff;
  border-color: #444;
}

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

/* ===========================================
   ELKABLY TEAM SECTION - DARK MODE
   =========================================== */

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

.dark-theme .elkably-team-section::before {
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain-dark" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="25" cy="25" r="1" fill="%23333" opacity="0.3"/><circle cx="75" cy="75" r="1" fill="%23333" opacity="0.3"/><circle cx="50" cy="10" r="0.5" fill="%23333" opacity="0.2"/><circle cx="10" cy="60" r="0.5" fill="%23333" opacity="0.2"/><circle cx="90" cy="40" r="0.5" fill="%23333" opacity="0.2"/></pattern></defs><rect width="100" height="100" fill="url(%23grain-dark)"/></svg>');
  opacity: 0.6;
}

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

.dark-theme .team-title-red {
  color: #e74c3c;
}

.dark-theme .team-description {
  color: rgba(255, 255, 255, 0.8);
}

.dark-theme .team-learn-more-btn {
  background: linear-gradient(135deg, #e74c3c, #c0392b);
  color: white;
  box-shadow: 0 8px 25px rgba(231, 76, 60, 0.4);
}

.dark-theme .team-learn-more-btn:hover {
  box-shadow: 0 12px 35px rgba(231, 76, 60, 0.5);
}

.dark-theme .team-carousel-container {
  background: #2d2d2d;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  border: 1px solid #444;
}

.dark-theme .team-member-card {
  background: #2d2d2d;
  color: white;
}

.dark-theme .team-card-title {
  color: #e74c3c;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.dark-theme .team-member-image {
  border-color: #e74c3c;
  box-shadow: 0 8px 25px rgba(231, 76, 60, 0.4);
}

.dark-theme .team-member-image::before {
  background: linear-gradient(45deg, #e74c3c, #c0392b, #e74c3c);
}

.dark-theme .role-field {
  color: #ffffff;
}

.dark-theme .role-experience {
  color: rgba(255, 255, 255, 0.7);
}

.dark-theme .team-member-name {
  color: #e74c3c;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

.dark-theme .team-member-position {
  color: #ffffff;
}

.dark-theme .team-member-fallback {
  background: linear-gradient(135deg, #e74c3c, #c0392b);
}

.dark-theme .fallback-initials {
  color: white;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.dark-theme .team-carousel-prev,
.dark-theme .team-carousel-next {
  background: #e74c3c;
  color: white;
  box-shadow: 0 4px 15px rgba(231, 76, 60, 0.4);
}

.dark-theme .team-carousel-prev:hover,
.dark-theme .team-carousel-next:hover {
  background: #c0392b;
  box-shadow: 0 6px 20px rgba(231, 76, 60, 0.5);
}

.dark-theme .team-carousel-indicators {
  background: #1a1a1a;
}

.dark-theme .indicator {
  background: #555;
}

.dark-theme .indicator.active {
  background: #e74c3c;
  box-shadow: 0 0 0 3px rgba(231, 76, 60, 0.3);
}

.dark-theme .indicator:hover {
  background: #e74c3c;
}

/* Dark mode responsive adjustments */
@media (max-width: 768px) {
  .dark-theme .team-member-card {
    background: #2d2d2d;
  }

  .dark-theme .team-carousel-container {
    background: #2d2d2d;
  }
}

/* =============================================== COURSES SECTION STYLES =============================================== */

/* Courses Section Styling */
.courses-section {
  background: linear-gradient(135deg, #ffffff 0%, #f8fafc 50%, #f1f5f9 100%);
  position: relative;
  overflow: hidden;
}

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

.courses-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background:
    radial-gradient(circle at 20% 80%, rgba(184, 1, 1, 0.05) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(184, 1, 1, 0.05) 0%, transparent 50%),
    radial-gradient(circle at 40% 40%, rgba(184, 1, 1, 0.03) 0%, transparent 50%);
  pointer-events: none;
}

.dark-theme .courses-section::before {
  background:
    radial-gradient(circle at 20% 80%, rgba(184, 1, 1, 0.08) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(184, 1, 1, 0.08) 0%, transparent 50%),
    radial-gradient(circle at 40% 40%, rgba(184, 1, 1, 0.05) 0%, transparent 50%);
}

.section-header-new {
  margin-bottom: 4rem;
  position: relative;
  z-index: 2;
}

.section-title-new {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--elkably-text, #1f2937);
  margin-bottom: 1rem;
  font-family: 'Poppins', sans-serif;
}

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

.highlight-red {
  color: var(--elkably-primary, #B80101);
  position: relative;
  text-shadow: 0 2px 4px rgba(184, 1, 1, 0.1);
}

.dark-theme .highlight-red {
  color: #B80101;
  text-shadow: 0 2px 4px rgba(184, 1, 1, 0.2);
}

.highlight-red::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--elkably-primary, #B80101), var(--elkably-primary-transparent, #B80101D4));
  border-radius: 2px;
}

.section-subtitle-new {
  font-size: 1.1rem;
  color: #6c757d;
  line-height: 1.6;
}

.dark-theme .section-subtitle-new {
  color: #d1d5db;
}

/* Courses Navigation Grid */
.courses-navigation-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 3rem;
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
  align-items: stretch;
}

/* Course Type Card */
.course-type-card {
  background: var(--elkably-bg, #ffffff);
  border-radius: 20px;
  padding: 30px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  position: relative;
  overflow: hidden;
  transition: all 0.4s ease;
  border: 1px solid var(--elkably-border, #e9ecef);
  display: flex;
  flex-direction: column;
  height: 100%;
}

.dark-theme .course-type-card {
  background: var(--elkably-surface, #1f2937);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  border: 1px solid var(--elkably-border, #374151);
}

.course-type-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.15);
}

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

.course-type-card-background {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.05) 0%, rgba(16, 185, 129, 0.05) 100%);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.dark-theme .course-type-card-background {
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.1) 0%, rgba(16, 185, 129, 0.1) 100%);
}

.course-type-card:hover .course-type-card-background {
  opacity: 1;
}

.course-type-pattern {
  position: absolute;
  top: 2rem;
  right: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  opacity: 0.1;
}

.dark-theme .course-type-pattern {
  opacity: 0.05;
}

.pattern-element {
  font-size: 1.5rem;
  color: var(--elkably-primary, #B80101);
  font-weight: bold;
  animation: course-pattern-float 3s ease-in-out infinite;
  opacity: 0.1;
}

.dark-theme .pattern-element {
  color: #B80101;
  opacity: 0.05;
}

.pattern-element:nth-child(2) {
  animation-delay: 1s;
}

.pattern-element:nth-child(3) {
  animation-delay: 2s;
}

@keyframes course-pattern-float {

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

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

/* Course Type Icon */
.course-type-icon {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 70px;
  height: 70px;
  background: linear-gradient(135deg, var(--elkably-primary, #B80101) 0%, var(--elkably-primary-transparent, #B80101D4) 100%);
  border-radius: 16px;
  margin-bottom: 1.5rem;
  box-shadow: 0 8px 20px rgba(184, 1, 1, 0.3);
}

.dark-theme .course-type-icon {
  box-shadow: 0 8px 20px rgba(184, 1, 1, 0.5);
}

.course-type-icon i {
  font-size: 2.5rem;
  color: white;
  z-index: 2;
}

.icon-glow {
  position: absolute;
  top: -10px;
  left: -10px;
  right: -10px;
  bottom: -10px;
  background: inherit;
  border-radius: 25px;
  opacity: 0.3;
  filter: blur(15px);
  z-index: 1;
}

/* Course Type Content */
.course-type-content {
  margin-bottom: 2rem;
}

.course-type-title {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--elkably-text, #1f2937);
  margin-bottom: 1rem;
  font-family: 'Poppins', sans-serif;
}

.dark-theme .course-type-title {
  color: #f9fafb;
}

.course-type-description {
  font-size: 1rem;
  color: #6c757d;
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

.dark-theme .course-type-description {
  color: #d1d5db;
}

/* Course Type Features */
.course-type-features {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 2rem;
}

.feature-item {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  padding: 0.75rem;
  background: rgba(184, 1, 1, 0.05);
  border-radius: 12px;
  transition: all 0.3s ease;
}

.course-type-card:nth-child(2) .feature-item {
  background: rgba(184, 1, 1, 0.08);
}

.dark-theme .feature-item {
  background: rgba(184, 1, 1, 0.1);
}

.dark-theme .course-type-card:nth-child(2) .feature-item {
  background: rgba(184, 1, 1, 0.15);
}

.feature-item:hover {
  background: rgba(184, 1, 1, 0.1);
  transform: translateX(5px);
}

.course-type-card:nth-child(2) .feature-item:hover {
  background: rgba(184, 1, 1, 0.12);
}

.dark-theme .feature-item:hover {
  background: rgba(184, 1, 1, 0.15);
}

.dark-theme .course-type-card:nth-child(2) .feature-item:hover {
  background: rgba(184, 1, 1, 0.2);
}

.feature-item i {
  color: var(--elkably-primary, #B80101);
  font-size: 1.2rem;
  width: 24px;
  text-align: center;
}

.dark-theme .feature-item i {
  color: #B80101;
}

.feature-item span {
  color: var(--elkably-text, #374151);
  font-weight: 600;
}

.dark-theme .feature-item span {
  color: #f9fafb;
}

/* Course Type Stats */
.course-type-stats {
  display: flex;
  gap: 2rem;
  margin-bottom: 2rem;
}

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

.stat-number {
  display: block;
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--elkably-primary, #B80101);
  line-height: 1;
  margin-bottom: 0.25rem;
}

.dark-theme .stat-number {
  color: #B80101;
}

.stat-label {
  font-size: 0.85rem;
  color: #6c757d;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.dark-theme .stat-label {
  color: #d1d5db;
}

/* Course Type Action */
.course-type-action {
  position: relative;
  margin-top: auto;
}

.btn-course-type {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  padding: 0.875rem 1.5rem;
  background: linear-gradient(135deg, var(--elkably-primary, #B80101) 0%, var(--elkably-primary-transparent, #B80101D4) 100%);
  color: white;
  text-decoration: none;
  border-radius: 8px;
  font-weight: 600;
  font-size: 1rem;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(184, 1, 1, 0.3);
  width: 100%;
}

.dark-theme .btn-course-type {
  box-shadow: 0 4px 15px rgba(184, 1, 1, 0.5);
}

.btn-course-type:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(184, 1, 1, 0.4);
  color: white;
  text-decoration: none;
}

.dark-theme .btn-course-type:hover {
  box-shadow: 0 8px 25px rgba(184, 1, 1, 0.6);
}

.btn-course-type i {
  font-size: 1.2rem;
  transition: transform 0.3s ease;
}

.btn-course-type:hover i {
  transform: translateX(5px);
}

.btn-wave {
  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-course-type:hover .btn-wave {
  left: 100%;
}

/* Courses Section Responsive Design */
/* Tablet view - 2 columns */
@media (max-width: 1024px) and (min-width: 769px) {
  .courses-navigation-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 2.5rem;
  }
}

/* Mobile view - 1 column */
@media (max-width: 768px) {
  .courses-navigation-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .course-type-card {
    padding: 2rem;
  }

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

  .course-type-title {
    font-size: 1.75rem;
  }

  .course-type-stats {
    gap: 1.5rem;
  }
}

@media (max-width: 480px) {
  .course-type-card {
    padding: 1.5rem;
  }

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

  .course-type-title {
    font-size: 1.5rem;
  }

  .course-type-features {
    gap: 0.75rem;
  }

  .feature-item {
    padding: 0.5rem;
  }
}

/* ===============================================
   COMPREHENSIVE COURSES STYLES
   =============================================== */

/* ===== FLOATING MATH ELEMENTS ===== */
.floating-math-elements-professor {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
  overflow: hidden;
}

.math-element-professor {
  position: absolute;
  color: var(--elkably-primary, #B80101);
  font-size: 1.5rem;
  font-weight: bold;
  opacity: 0.1;
  animation: floatMath 20s infinite linear;
  font-family: 'Times New Roman', serif;
}

.math-element-professor:nth-child(1) {
  top: 10%;
  left: 10%;
  animation-delay: 0s;
}

.math-element-professor:nth-child(2) {
  top: 20%;
  left: 80%;
  animation-delay: 2s;
}

.math-element-professor:nth-child(3) {
  top: 60%;
  left: 15%;
  animation-delay: 4s;
}

.math-element-professor:nth-child(4) {
  top: 80%;
  left: 70%;
  animation-delay: 6s;
}

.math-element-professor:nth-child(5) {
  top: 30%;
  left: 50%;
  animation-delay: 8s;
}

.math-element-professor:nth-child(6) {
  top: 70%;
  left: 30%;
  animation-delay: 10s;
}

.math-element-professor:nth-child(7) {
  top: 15%;
  left: 60%;
  animation-delay: 12s;
}

.math-element-professor:nth-child(8) {
  top: 50%;
  left: 85%;
  animation-delay: 14s;
}

.math-element-professor:nth-child(9) {
  top: 85%;
  left: 25%;
  animation-delay: 16s;
}

.math-element-professor:nth-child(10) {
  top: 40%;
  left: 5%;
  animation-delay: 18s;
}

@keyframes floatMath {
  0% {
    transform: translateY(0px) rotate(0deg);
    opacity: 0.1;
  }

  25% {
    transform: translateY(-20px) rotate(90deg);
    opacity: 0.15;
  }

  50% {
    transform: translateY(-40px) rotate(180deg);
    opacity: 0.1;
  }

  75% {
    transform: translateY(-20px) rotate(270deg);
    opacity: 0.15;
  }

  100% {
    transform: translateY(0px) rotate(360deg);
    opacity: 0.1;
  }
}

/* ===== MAIN SECTIONS ===== */
.online-courses-section,
.bundle-content-section {
  background: linear-gradient(135deg, #ffffff 0%, #f8fafc 50%, #f1f5f9 100%);
  min-height: 100vh;
  position: relative;
  overflow: hidden;
  padding: 60px 0 40px 0;
}

.dark-theme .online-courses-section,
.dark-theme .bundle-content-section {
  background: linear-gradient(135deg, #0f1419 0%, #1a1f2e 50%, #2d3748 100%);
}

.online-courses-section::before,
.bundle-content-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background:
    radial-gradient(circle at 20% 80%, rgba(184, 1, 1, 0.05) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(184, 1, 1, 0.05) 0%, transparent 50%),
    radial-gradient(circle at 40% 40%, rgba(184, 1, 1, 0.03) 0%, transparent 50%);
  pointer-events: none;
}

.dark-theme .online-courses-section::before,
.dark-theme .bundle-content-section::before {
  background:
    radial-gradient(circle at 20% 80%, rgba(184, 1, 1, 0.08) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(184, 1, 1, 0.08) 0%, transparent 50%),
    radial-gradient(circle at 40% 40%, rgba(184, 1, 1, 0.05) 0%, transparent 50%);
}

/* ===== ENHANCED FILTER SECTION ===== */
.courses-filter-section-enhanced {
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  border-radius: 20px;
  padding: 30px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  margin-bottom: 40px;
  position: relative;
  z-index: 2;
}

.dark-theme .courses-filter-section-enhanced {
  background: linear-gradient(135deg, #1f2937 0%, #374151 100%);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.filter-container {
  max-width: 100%;
}

.search-form-enhanced {
  position: relative;
}

.search-input-group-enhanced {
  display: flex;
  align-items: center;
  background: white;
  border-radius: 15px;
  padding: 5px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
}

.dark-theme .search-input-group-enhanced {
  background: #374151;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.search-input-group-enhanced:focus-within {
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
  transform: translateY(-2px);
}

.dark-theme .search-input-group-enhanced:focus-within {
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
}

/* Search icon styles removed since icons are no longer used */

.search-input-enhanced {
  flex: 1;
  border: none;
  outline: none;
  padding: 15px 10px;
  font-size: 16px;
  background: transparent;
  color: #333;
}

.dark-theme .search-input-enhanced {
  color: #f9fafb;
}

.search-input-enhanced::placeholder {
  color: #adb5bd;
}

.dark-theme .search-input-enhanced::placeholder {
  color: #6b7280;
}

.search-btn-enhanced {
  background: linear-gradient(135deg, var(--elkably-primary, #B80101) 0%, var(--elkably-primary-transparent, #B80101D4) 100%);
  color: white;
  border: none;
  padding: 12px 20px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  transition: all 0.3s ease;
  cursor: pointer;
}

.search-btn-enhanced:hover {
  background: linear-gradient(135deg, #c82333, #a71e2a);
  transform: translateY(-1px);
  box-shadow: 0 5px 15px rgba(220, 53, 69, 0.3);
}

.filter-dropdowns-enhanced {
  display: flex;
  gap: 20px;
  align-items: end;
}

/* Tablet responsiveness */
@media (min-width: 577px) and (max-width: 768px) {
  .filter-form-enhanced .row {
    align-items: end;
  }

  .filter-form-enhanced [class*="col-"] {
    margin-bottom: 12px;
  }

  .search-input-enhanced,
  .filter-select-enhanced {
    height: 42px;
    border-radius: 8px;
    border: 2px solid #e9ecef;
    transition: border-color 0.3s ease;
  }

  .search-input-enhanced:focus,
  .filter-select-enhanced:focus {
    outline: none;
    border-color: #B80101;
    box-shadow: 0 0 0 3px rgba(184, 1, 1, 0.1);
  }

  .filter-apply-btn {
    height: 42px;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s ease;
  }
}

/* Desktop styles for Bootstrap grid layout */
@media (min-width: 769px) {
  .courses-filter-section-enhanced .row {
    align-items: end;
  }

  .search-form-enhanced .search-input-enhanced,
  .filter-select-enhanced {
    width: 100%;
    height: 45px;
    border-radius: 8px;
    border: 2px solid #e9ecef;
    transition: border-color 0.3s ease;
  }

  .search-form-enhanced .search-input-enhanced:focus,
  .filter-select-enhanced:focus {
    outline: none;
    border-color: #B80101;
    box-shadow: 0 0 0 3px rgba(184, 1, 1, 0.1);
  }

  .filter-apply-btn {
    height: 45px;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s ease;
  }
}

.filter-group {
  flex: 1;
}

.filter-label {
  display: block;
  font-weight: 600;
  color: #495057;
  margin-bottom: 8px;
  font-size: 14px;
  display: flex;
  align-items: center;
  gap: 5px;
}

.dark-theme .filter-label {
  color: #f9fafb;
}

.filter-select-enhanced {
  width: 100%;
  padding: 12px 15px;
  border: 2px solid #e9ecef;
  border-radius: 12px;
  background: white;
  font-size: 14px;
  color: #495057;
  transition: all 0.3s ease;
  cursor: pointer;
}

.dark-theme .filter-select-enhanced {
  border: 2px solid #374151;
  background: #374151;
  color: #f9fafb;
}

.filter-select-enhanced:focus {
  border-color: var(--elkably-primary, #B80101);
  box-shadow: 0 0 0 3px rgba(184, 1, 1, 0.1);
  outline: none;
}

.dark-theme .filter-select-enhanced:focus {
  box-shadow: 0 0 0 3px rgba(184, 1, 1, 0.2);
}

/* ===== RESULTS COUNT ===== */
.results-count-enhanced {
  background: white;
  border-radius: 15px;
  padding: 20px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
  position: relative;
  z-index: 2;
  margin-bottom: 2rem;
}

.dark-theme .results-count-enhanced {
  background: #1f2937;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

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

.results-stats {
  display: flex;
  align-items: center;
  gap: 10px;
}

.results-number {
  font-size: 24px;
  font-weight: 700;
  color: var(--elkably-primary, #B80101);
}

.results-label {
  color: #6c757d;
  font-size: 16px;
}

.dark-theme .results-label {
  color: #9ca3af;
}

.results-type {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #495057;
  font-weight: 600;
}

.dark-theme .results-type {
  color: #f9fafb;
}

.results-type i {
  color: var(--elkably-primary, #B80101);
  font-size: 18px;
}

/* ===== BREADCRUMB NAVIGATION ===== */
.breadcrumb-nav {
  position: relative;
  z-index: 2;
  margin-bottom: 1.5rem;
}

.breadcrumb {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(15px);
  border-radius: 25px;
  padding: 12px 24px;
  box-shadow: 0 8px 25px rgba(184, 1, 1, 0.1);
  border: 1px solid rgba(184, 1, 1, 0.1);
}

.dark-theme .breadcrumb {
  background: rgba(31, 41, 55, 0.95);
  border: 1px solid rgba(184, 1, 1, 0.2);
}

.breadcrumb-item {
  font-weight: 500;
  color: var(--elkably-text, #1f2937);
  font-family: 'Poppins', sans-serif;
}

.dark-theme .breadcrumb-item {
  color: #f9fafb;
}

.breadcrumb-item a {
  color: var(--elkably-primary, #B80101);
  text-decoration: none;
  transition: all 0.3s ease;
  font-weight: 600;
}

.breadcrumb-item a:hover {
  color: var(--elkably-primary-transparent, #B80101D4);
  transform: translateY(-1px);
  text-shadow: 0 2px 4px rgba(184, 1, 1, 0.2);
}

.breadcrumb-item.active {
  color: var(--elkably-primary, #B80101);
  font-weight: 700;
}

/* ===== BUNDLE CONTENT HEADER ===== */
.bundle-content-header {
  position: relative;
  z-index: 2;
  margin-bottom: 1.5rem;
}

.bundle-header-info {
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(20px);
  border-radius: 20px;
  padding: 2.5rem;
  box-shadow: 0 15px 35px rgba(184, 1, 1, 0.1);
  border: 1px solid rgba(184, 1, 1, 0.1);
  position: relative;
  overflow: hidden;
}

.dark-theme .bundle-header-info {
  background: rgba(31, 41, 55, 0.98);
  border: 1px solid rgba(184, 1, 1, 0.2);
}

.bundle-header-info::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--elkably-primary, #B80101), var(--elkably-primary-transparent, #B80101D4));
}

.bundle-badge {
  display: flex;
  gap: 12px;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}

.badge-type,
.badge-year,
.badge-subject {
  background: linear-gradient(135deg, var(--elkably-primary, #B80101) 0%, var(--elkably-primary-transparent, #B80101D4) 100%);
  color: white;
  padding: 8px 16px;
  border-radius: 25px;
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  box-shadow: 0 4px 15px rgba(184, 1, 1, 0.3);
  transition: all 0.3s ease;
  font-family: 'Poppins', sans-serif;
}

.badge-type:hover,
.badge-year:hover,
.badge-subject:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(184, 1, 1, 0.4);
}

.bundle-title {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--elkably-primary, #B80101);
  margin-bottom: 1rem;
  line-height: 1.2;
  font-family: 'Poppins', sans-serif;
  text-shadow: 0 2px 4px rgba(184, 1, 1, 0.1);
}

.bundle-description {
  font-size: 1.1rem;
  color: #6c757d;
  line-height: 1.6;
  margin-bottom: 2rem;
}

.dark-theme .bundle-description {
  color: #9ca3af;
}

.bundle-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 1.5rem;
}

.bundle-stats .stat-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 1rem;
  background: rgba(184, 1, 1, 0.08);
  border-radius: 12px;
  border: 1px solid rgba(184, 1, 1, 0.15);
  transition: all 0.3s ease;
}

.dark-theme .bundle-stats .stat-item {
  background: rgba(184, 1, 1, 0.15);
  border: 1px solid rgba(184, 1, 1, 0.25);
}

.bundle-stats .stat-item:hover {
  background: rgba(184, 1, 1, 0.12);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(184, 1, 1, 0.2);
}

.dark-theme .bundle-stats .stat-item:hover {
  background: rgba(184, 1, 1, 0.2);
}

.bundle-stats .stat-item i {
  font-size: 1.2rem;
  color: var(--elkably-primary, #B80101);
  width: 20px;
  text-align: center;
}

.bundle-stats .stat-item span {
  font-weight: 600;
  color: var(--elkably-text, #1f2937);
  font-size: 0.95rem;
  font-family: 'Poppins', sans-serif;
}

.dark-theme .bundle-stats .stat-item span {
  color: #f9fafb;
}

/* ===== ENHANCED BUNDLE PURCHASE CARD ===== */
.bundle-purchase-card {
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(20px);
  border-radius: 20px;
  padding: 2rem;
  box-shadow: 0 15px 35px rgba(184, 1, 1, 0.1);
  border: 1px solid rgba(184, 1, 1, 0.1);
  position: sticky;
  top: 2rem;
  transition: all 0.3s ease;
}

.dark-theme .bundle-purchase-card {
  background: rgba(31, 41, 55, 0.98);
  border: 1px solid rgba(184, 1, 1, 0.2);
}

.bundle-purchase-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 40px rgba(184, 1, 1, 0.15);
}

.dark-theme .bundle-purchase-card:hover {
  box-shadow: 0 20px 40px rgba(184, 1, 1, 0.25);
}

.purchase-header {
  text-align: center;
  margin-bottom: 2rem;
  padding-bottom: 1.5rem;
  border-bottom: 2px solid rgba(184, 1, 1, 0.1);
}

.dark-theme .purchase-header {
  border-bottom: 2px solid rgba(184, 1, 1, 0.2);
}

.price-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.price-original {
  font-size: 1.2rem;
  color: #6c757d;
  text-decoration: line-through;
  font-weight: 500;
}

.dark-theme .price-original {
  color: #9ca3af;
}

.price-current {
  font-size: 2.5rem;
  font-weight: 700;
  color: #28a745;
  text-shadow: 0 2px 4px rgba(40, 167, 69, 0.2);
}

.dark-theme .price-current {
  color: #34d399;
}

.price-savings {
  background: linear-gradient(135deg, var(--elkably-primary, #B80101) 0%, var(--elkably-primary-transparent, #B80101D4) 100%);
  color: white;
  padding: 6px 16px;
  border-radius: 20px;
  font-size: 0.9rem;
  font-weight: 600;
  box-shadow: 0 4px 15px rgba(184, 1, 1, 0.3);
  font-family: 'Poppins', sans-serif;
}

.purchase-actions {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 2rem;
}

.btn-add-to-cart,
.btn-buy-now {
  padding: 1rem 2rem;
  border: none;
  border-radius: 12px;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.btn-add-to-cart {
  background: linear-gradient(135deg, var(--elkably-primary, #B80101) 0%, var(--elkably-primary-transparent, #B80101D4) 100%);
  color: white;
  box-shadow: 0 6px 20px rgba(184, 1, 1, 0.3);
  font-family: 'Poppins', sans-serif;
}

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

.btn-buy-now {
  background: var(--elkably-primary, #B80101);
  color: white;
  box-shadow: 0 6px 20px rgba(184, 1, 1, 0.3);
  font-family: 'Poppins', sans-serif;
}

.btn-buy-now:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(184, 1, 1, 0.4);
  background: var(--elkably-primary-transparent, #B80101D4);
}

.purchase-guarantee {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 1rem;
  background: rgba(184, 1, 1, 0.08);
  border-radius: 12px;
  margin-bottom: 1.5rem;
  border: 1px solid rgba(184, 1, 1, 0.15);
}

.dark-theme .purchase-guarantee {
  background: rgba(184, 1, 1, 0.15);
  border: 1px solid rgba(184, 1, 1, 0.25);
}

.purchase-guarantee i {
  color: var(--elkably-primary, #B80101);
  font-size: 1.2rem;
}

.purchase-guarantee span {
  font-weight: 600;
  color: var(--elkably-text, #1f2937);
  font-size: 0.9rem;
  font-family: 'Poppins', sans-serif;
}

.dark-theme .purchase-guarantee span {
  color: #f9fafb;
}

.bundle-info {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.bundle-info .info-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0.75rem;
  background: rgba(184, 1, 1, 0.05);
  border-radius: 8px;
  transition: all 0.3s ease;
}

.dark-theme .bundle-info .info-item {
  background: rgba(184, 1, 1, 0.1);
}

.bundle-info .info-item:hover {
  background: rgba(184, 1, 1, 0.1);
  transform: translateX(5px);
}

.dark-theme .bundle-info .info-item:hover {
  background: rgba(184, 1, 1, 0.15);
}

.bundle-info .info-item i {
  color: var(--elkably-primary, #B80101);
  width: 20px;
  text-align: center;
}

.bundle-info .info-item span {
  font-weight: 500;
  color: var(--elkably-text, #1f2937);
  font-size: 0.9rem;
  font-family: 'Poppins', sans-serif;
}

.dark-theme .bundle-info .info-item span {
  color: #f9fafb;
}

/* ===== ENHANCED COURSE CARDS ===== */
.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;
}

.courses-content-grid {
  position: relative;
  z-index: 2;
  margin-bottom: 2rem;
}

.course-card-enhanced {
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(20px);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 15px 35px rgba(184, 1, 1, 0.1);
  border: 1px solid rgba(184, 1, 1, 0.1);
  transition: all 0.4s ease;
  position: relative;
}

.dark-theme .course-card-enhanced {
  background: rgba(31, 41, 55, 0.98);
  border: 1px solid rgba(184, 1, 1, 0.2);
}

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

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

.course-card-header {
  position: absolute;
  top: 1rem;
  left: 1rem;
  right: 1rem;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  z-index: 3;
}

.course-favorite-btn-enhanced {
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.dark-theme .course-favorite-btn-enhanced {
  background: rgba(31, 41, 55, 0.9);
}

.course-favorite-btn-enhanced:hover {
  background: var(--elkably-primary, #B80101);
  color: white;
  transform: scale(1.1);
}

.course-badge-container {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.course-offer-badge-enhanced {
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  display: flex;
  align-items: center;
  gap: 4px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.course-offer-badge-enhanced.discount {
  background: rgba(184, 1, 1, 0.9);
  color: white;
}

.course-offer-badge-enhanced.online {
  background: rgba(40, 167, 69, 0.9);
  color: white;
}

.course-offer-badge-enhanced.onground {
  background: rgba(255, 193, 7, 0.9);
  color: #212529;
}

.course-offer-badge-enhanced.level {
  background: rgba(108, 117, 125, 0.9);
  color: white;
}

.course-card-media-enhanced {
  position: relative;
  height: 240px;
  width: 100%;
  overflow: hidden;
  background: #f5f5f5;
  display: flex;
  align-items: center;
  justify-content: center;
}

.course-card-media-enhanced img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  transition: all 0.4s ease;
  display: block;
}

/* Responsive image fixes for mobile devices */
@media (max-width: 768px) {
  .course-card-media-enhanced {
    height: 200px;
  }
}

@media (max-width: 576px) {
  .course-card-media-enhanced {
    height: 180px;
  }
}

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

.course-overlay-enhanced {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(184, 1, 1, 0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: all 0.3s ease;
}

.course-card-enhanced:hover .course-overlay-enhanced {
  opacity: 1;
}

.course-quick-actions {
  display: flex;
  gap: 1rem;
}

.quick-action-btn {
  width: 50px;
  height: 50px;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  border: none;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  color: var(--elkably-primary, #B80101);
  font-size: 1.1rem;
}

.quick-action-btn:hover {
  background: var(--elkably-primary, #B80101);
  color: white;
  transform: scale(1.1);
}

.course-card-body-enhanced {
  padding: 1.5rem;
}

.course-meta {
  display: flex;
  gap: 12px;
  margin-bottom: 1rem;
}

.course-year,
.course-subject {
  background: rgba(184, 1, 1, 0.1);
  color: var(--elkably-primary, #B80101);
  padding: 4px 12px;
  border-radius: 15px;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-family: 'Poppins', sans-serif;
}

.course-card-title-enhanced {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--elkably-text, #1f2937);
  margin-bottom: 0.75rem;
  line-height: 1.3;
  font-family: 'Poppins', sans-serif;
}

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

.course-card-description-enhanced {
  color: #6c757d;
  font-size: 0.95rem;
  line-height: 1.5;
  margin-bottom: 1.5rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.dark-theme .course-card-description-enhanced {
  color: #9ca3af;
}

.course-stats-enhanced {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.course-stats-enhanced .stat-item {
  text-align: center;
  padding: 0.75rem 0.5rem;
  background: rgba(184, 1, 1, 0.05);
  border-radius: 8px;
  border: 1px solid rgba(184, 1, 1, 0.1);
}

.dark-theme .course-stats-enhanced .stat-item {
  background: rgba(184, 1, 1, 0.1);
  border: 1px solid rgba(184, 1, 1, 0.2);
}

.course-stats-enhanced .stat-item i {
  display: block;
  font-size: 1rem;
  color: var(--elkably-primary, #B80101);
  margin-bottom: 4px;
}

.course-stats-enhanced .stat-item span {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--elkably-text, #1f2937);
  font-family: 'Poppins', sans-serif;
}

.dark-theme .course-stats-enhanced .stat-item span {
  color: #f9fafb;
}

.course-price-container-enhanced {
  margin-bottom: 1.5rem;
}

.price-wrapper {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 5px;
}

.course-price-original-enhanced {
  font-size: 16px;
  color: #6c757d;
  text-decoration: line-through;
}

.dark-theme .course-price-original-enhanced {
  color: #9ca3af;
}

.course-price-current-enhanced {
  font-size: 1.5rem;
  font-weight: 700;
  color: #28a745;
}

.dark-theme .course-price-current-enhanced {
  color: #34d399;
}

.savings-info {
  text-align: right;
}

.savings-amount {
  background: #d4edda;
  color: #155724;
  padding: 4px 8px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 600;
}

.dark-theme .savings-amount {
  background: rgba(52, 211, 153, 0.2);
  color: #34d399;
}

.course-actions-enhanced {
  display: flex;
  gap: 1rem;
}

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

.btn-add-to-cart-enhanced:hover {
  background: linear-gradient(135deg, #c82333, #a71e2a);
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(220, 53, 69, 0.3);
}

.btn-view-details-enhanced {
  flex: 1;
  background: transparent;
  border: 2px solid var(--elkably-primary, #B80101);
  color: var(--elkably-primary, #B80101);
  padding: 12px 20px;
  border-radius: 12px;
  text-decoration: none;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-weight: 600;
  transition: all 0.3s ease;
}

.dark-theme .btn-view-details-enhanced {
  border: 2px solid var(--elkably-primary, #B80101);
  color: var(--elkably-primary, #B80101);
}

.btn-view-details-enhanced:hover {
  background: var(--elkably-primary, #B80101);
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(184, 1, 1, 0.3);
  text-decoration: none;
}

.dark-theme .btn-view-details-enhanced:hover {
  background: var(--elkably-primary, #B80101);
  color: white;
}

.btn-view-details-enhanced i {
  transition: transform 0.3s ease;
}

.btn-view-details-enhanced:hover i {
  transform: translateX(3px);
}

.btn-primary-enhanced {
  background: linear-gradient(135deg, var(--elkably-primary, #B80101) 0%, var(--elkably-primary-transparent, #B80101D4) 100%);
  color: white;
  padding: 15px 25px;
  border-radius: 12px;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
}

.btn-primary-enhanced:hover {
  background: linear-gradient(135deg, #c82333, #a71e2a);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(220, 53, 69, 0.3);
  color: white;
  text-decoration: none;
}

.btn-secondary-enhanced {
  background: transparent;
  border: 2px solid #6c757d;
  color: #6c757d;
  padding: 15px 25px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.dark-theme .btn-secondary-enhanced {
  border: 2px solid #9ca3af;
  color: #9ca3af;
}

.btn-secondary-enhanced:hover {
  background: #6c757d;
  color: white;
  transform: translateY(-2px);
}

.dark-theme .btn-secondary-enhanced:hover {
  background: #9ca3af;
  color: #1f2937;
}

/* ===== 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) {
  .courses-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    justify-content: center;
  }

  /* Enhanced Mobile Filter Responsiveness */
  .courses-filter-section-enhanced {
    padding: 20px 0;
  }

  .filter-container {
    padding: 0 15px;
  }

  /* Center align all elements on mobile */
  .filter-form-enhanced .row {
    margin: 0;
    justify-content: center;
  }

  .filter-form-enhanced [class*="col-"] {
    padding: 0 8px;
    margin-bottom: 15px;
  }

  /* Center align filter groups */
  .filter-group {
    text-align: center;
    margin-bottom: 15px;
  }

  .filter-label {
    font-size: 13px;
    margin-bottom: 6px;
    display: block;
    text-align: center;
  }

  /* Style inputs and selects for mobile */
  .search-input-enhanced,
  .filter-select-enhanced {
    width: 100%;
    padding: 12px 15px;
    border-radius: 10px;
    border: 2px solid #e9ecef;
    font-size: 14px;
    transition: border-color 0.3s ease;
    text-align: center;
  }

  .search-input-enhanced:focus,
  .filter-select-enhanced:focus {
    outline: none;
    border-color: #B80101;
    box-shadow: 0 0 0 3px rgba(184, 1, 1, 0.1);
  }

  .filter-apply-btn {
    width: 100%;
    padding: 12px 20px;
    font-size: 14px;
    border-radius: 10px;
    font-weight: 600;
    transition: all 0.3s ease;
  }

  /* Ensure proper spacing between filter elements */
  .filter-form-enhanced .row.g-3 {
    gap: 0;
  }

  .results-info {
    flex-direction: column;
    gap: 15px;
    text-align: center;
  }

  .course-actions-enhanced {
    flex-direction: column;
  }

  .btn-view-details-enhanced,
  .btn-add-to-cart-enhanced,
  .btn-primary-enhanced,
  .btn-secondary-enhanced {
    padding: 12px 20px;
    font-size: 0.9rem;
  }

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

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

/* Extra Small Mobile Devices */
@media (max-width: 576px) {
  .courses-filter-section-enhanced {
    padding: 15px 0;
  }

  .filter-container {
    padding: 0 10px;
  }

  .filter-group {
    margin-bottom: 12px;
  }

  .filter-label {
    font-size: 12px;
    margin-bottom: 5px;
  }

  .filter-select-enhanced,
  .search-input-enhanced {
    padding: 10px 12px;
    font-size: 14px;
    border-radius: 8px;
  }

  .filter-apply-btn {
    padding: 10px 16px;
    font-size: 13px;
    border-radius: 8px;
  }

  .filter-apply-btn .apply-text {
    font-size: 13px;
  }

  /* Ensure all elements stack vertically on very small screens */
  .filter-form-enhanced [class*="col-"] {
    flex: 0 0 100%;
    max-width: 100%;
    margin-bottom: 12px;
  }
}

/* Very Small Mobile Devices */
@media (max-width: 480px) {
  .courses-filter-section-enhanced {
    padding: 10px 0;
  }

  .filter-container {
    padding: 0 8px;
  }

  .filter-label {
    font-size: 11px;
  }

  .filter-select-enhanced,
  .search-input-enhanced {
    padding: 6px 8px;
    font-size: 12px;
  }

  .search-btn-enhanced,
  .filter-apply-btn {
    padding: 8px 12px;
    font-size: 12px;
  }

  .search-btn-enhanced .search-text,
  .filter-apply-btn .apply-text {
    font-size: 12px;
  }

  /* Ensure touch targets are at least 44px for mobile accessibility */
  .search-btn-enhanced,
  .filter-apply-btn {
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .filter-select-enhanced {
    min-height: 44px;
  }

  /* Improve spacing for mobile */
  .filter-dropdowns-enhanced .row.g-2 {
    gap: 6px;
  }

  .filter-dropdowns-enhanced .col-12.mt-3 {
    margin-top: 10px !important;
  }

  .bundle-purchase-card {
    position: static;
    margin-top: 2rem;
  }

  .purchase-actions {
    flex-direction: column;
  }

  .bundle-header-info,
  .bundle-purchase-card {
    padding: 1.5rem;
  }
}

@media (max-width: 576px) {
  .courses-grid {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 15px;
    justify-content: center;
  }

  .bundle-stats {
    grid-template-columns: 1fr;
  }

  .course-stats-enhanced {
    grid-template-columns: 1fr;
  }

  .bundle-features {
    flex-direction: column;
    gap: 0.5rem;
  }

  .online-courses-section,
  .bundle-content-section {
    padding: 40px 0 20px 0;
  }

  .courses-filter-section-enhanced {
    padding: 20px;
  }
}


/* Cart Sidebar Styles */
.cart-sidebar {
  position: fixed;
  top: 0;
  right: -400px;
  width: 400px;
  height: 100vh;
  background: white;
  box-shadow: -5px 0 25px rgba(0, 0, 0, 0.1);
  z-index: 1100;
  transition: right 0.3s ease;
  overflow-y: auto;
}

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

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

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

.cart-sidebar-content {
  height: 100%;
  display: flex;
  flex-direction: column;
}

.cart-sidebar-header {
  padding: 1.5rem;
  border-bottom: 1px solid #e9ecef;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #f8f9fa;
}

.cart-sidebar-title {
  font-size: 1.25rem;
  font-weight: 600;
  color: #2c3e50;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.cart-sidebar-close {
  background: none;
  border: none;
  font-size: 1.5rem;
  color: #6c757d;
  cursor: pointer;
  padding: 0.5rem;
  border-radius: 50%;
  transition: all 0.3s ease;
}

.cart-sidebar-close:hover {
  background: #e9ecef;
  color: #495057;
}

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

.cart-sidebar-footer {
  padding: 1.5rem;
  border-top: 1px solid #e9ecef;
  background: #f8f9fa;
}

.cart-total {
  margin-bottom: 1rem;
}

.cart-total-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.5rem 0;
  border-bottom: 1px solid #e9ecef;
}

.cart-total-row:last-child {
  border-bottom: none;
}

.cart-total-final {
  font-size: 1.1rem;
  font-weight: 600;
  color: #2c3e50;
  padding-top: 1rem;
  margin-top: 1rem;
  border-top: 2px solid #3498db;
}

.btn-cart-checkout {
  width: 100%;
  background: linear-gradient(135deg, #3498db, #2980b9);
  color: white;
  border: none;
  padding: 1rem;
  border-radius: 10px;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.btn-cart-checkout:hover:not(:disabled) {
  background: linear-gradient(135deg, #2980b9, #1f5f8b);
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(52, 152, 219, 0.3);
}

.btn-cart-checkout:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.cart-count {
  position: absolute;
  top: -8px;
  right: -8px;
  background: #e74c3c;
  color: white;
  border-radius: 50%;
  width: 20px;
  height: 20px;
  font-size: 0.75rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

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

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

  50% {
    transform: scale(1.2);
  }

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

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

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

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

.cart-icon {
  font-size: 1.25rem;
  color: #3498db;
}

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

.dark-theme .cart-sidebar-header {
  background: #2d2d2d;
  border-bottom-color: #444;
}

.dark-theme .cart-sidebar-title {
  color: #f9fafb;
}

.dark-theme .cart-sidebar-close {
  color: #9ca3af;
}

.dark-theme .cart-sidebar-close:hover {
  background: #444;
  color: #f9fafb;
}

.dark-theme .cart-sidebar-footer {
  background: #2d2d2d;
  border-top-color: #444;
}

.dark-theme .cart-total-row {
  border-bottom-color: #444;
}

.dark-theme .cart-total-final {
  color: #f9fafb;
  border-top-color: #3498db;
}

.dark-theme .cart-item {
  background: #2d2d2d;
  border-color: #444;
}

.dark-theme .cart-item:hover {
  border-color: #3498db;
  background: #333;
}

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

.dark-theme .cart-item-type {
  background: rgba(52, 152, 219, 0.2);
  color: #3498db;
}

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

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

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

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

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

  .cart-sidebar-content {
    width: 100%;
    max-width: none;
    border-radius: 0;
    height: 100vh;
    overflow-y: auto;
  }

  .cart-sidebar-header {
    padding: 1rem 1.5rem;
    position: sticky;
    top: 0;
    background: inherit;
    z-index: 1;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
  }

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

  .cart-sidebar-footer {
    padding: 1rem 1.5rem;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
    position: sticky;
    bottom: 0;
    background: inherit;
  }

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

  .dark-theme .cart-sidebar-header {
    border-bottom-color: rgba(255, 255, 255, 0.1);
  }

  .dark-theme .cart-sidebar-footer {
    border-top-color: rgba(255, 255, 255, 0.1);
  }
}

/* Enhanced Multiplayer Quiz Games Section */
.free-tests-section {
  padding: 100px 0;
  background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
  overflow: hidden;
}

.dark-theme .free-tests-section {
  background: linear-gradient(135deg, #1a1a1a 0%, #2a1a1a 100%);
  color: white;
  position: relative;
  overflow: hidden;
}

/* Animated Background Elements */
.games-background-elements {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
}

/* Floating Crowns */
.floating-crowns {
  position: absolute;
  width: 100%;
  height: 100%;
}

.crown {
  position: absolute;
  font-size: 2rem;
  opacity: 0.1;
  animation: crownFloat 8s ease-in-out infinite;
  filter: drop-shadow(0 0 10px rgba(255, 215, 0, 0.3));
}

.crown-1 {
  top: 10%;
  left: 10%;
  animation-delay: 0s;
}

.crown-2 {
  top: 20%;
  right: 15%;
  animation-delay: 2s;
}

.crown-3 {
  bottom: 30%;
  left: 20%;
  animation-delay: 4s;
}

@keyframes crownFloat {

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

  50% {
    transform: translateY(-20px) rotate(5deg);
  }
}

/* Floating Game Icons */
.floating-game-icons {
  position: absolute;
  width: 100%;
  height: 100%;
}

.game-icon {
  position: absolute;
  font-size: 1.5rem;
  opacity: 0.15;
  animation: gameIconFloat 6s ease-in-out infinite;
}

.icon-1 {
  top: 15%;
  left: 80%;
  animation-delay: 1s;
}

.icon-2 {
  top: 60%;
  left: 5%;
  animation-delay: 3s;
}

.icon-3 {
  bottom: 20%;
  right: 10%;
  animation-delay: 5s;
}

.icon-4 {
  top: 40%;
  right: 30%;
  animation-delay: 2s;
}

@keyframes gameIconFloat {

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

  50% {
    transform: translateY(-15px) scale(1.1);
  }
}

/* Mathematical Particles */
.mathematical-particles {
  position: absolute;
  width: 100%;
  height: 100%;
}

.particle {
  position: absolute;
  font-size: 1.2rem;
  color: var(--elkably-primary);
  opacity: 0.1;
  animation: particleFloat 10s linear infinite;
}

.particle:nth-child(1) {
  top: 25%;
  left: 15%;
  animation-delay: 0s;
}

.particle:nth-child(2) {
  top: 45%;
  right: 20%;
  animation-delay: 2.5s;
}

.particle:nth-child(3) {
  bottom: 25%;
  left: 30%;
  animation-delay: 5s;
}

.particle:nth-child(4) {
  top: 70%;
  right: 40%;
  animation-delay: 7.5s;
}

@keyframes particleFloat {
  0% {
    transform: translateY(0px) rotate(0deg);
    opacity: 0.1;
  }

  50% {
    transform: translateY(-30px) rotate(180deg);
    opacity: 0.3;
  }

  100% {
    transform: translateY(0px) rotate(360deg);
    opacity: 0.1;
  }
}

/* Enhanced Header */
.games-header-enhanced {
  position: relative;
  z-index: 2;
  margin-bottom: 60px;
}

.games-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, rgba(255, 215, 0, 0.2), rgba(255, 215, 0, 0.1));
  border: 2px solid rgba(255, 215, 0, 0.3);
  border-radius: 50px;
  padding: 12px 24px;
  margin-bottom: 20px;
  font-size: 0.9rem;
  font-weight: 600;
  color: #ffd700;
  backdrop-filter: blur(10px);
  animation: badgeGlow 3s ease-in-out infinite;
}

.light-theme .games-badge {
  background: linear-gradient(135deg, rgba(184, 1, 1, 0.2), rgba(184, 1, 1, 0.1));
  border-color: rgba(184, 1, 1, 0.3);
  color: var(--elkably-primary);
}

.games-badge i {
  font-size: 1.1rem;
  animation: crownPulse 2s ease-in-out infinite;
}

@keyframes badgeGlow {

  0%,
  100% {
    box-shadow: 0 0 20px rgba(255, 215, 0, 0.3);
  }

  50% {
    box-shadow: 0 0 30px rgba(255, 215, 0, 0.5);
  }
}

.light-theme .games-badge {
  box-shadow: 0 0 20px rgba(184, 1, 1, 0.3);
}

.light-theme .games-badge:hover {
  box-shadow: 0 0 30px rgba(184, 1, 1, 0.5);
}

@keyframes crownPulse {

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

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

.games-title-enhanced {
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 700;
  margin-bottom: 20px;
  background: linear-gradient(135deg, #ffffff 0%, #f0f0f0 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.light-theme .games-title-enhanced {
  background: linear-gradient(135deg, #1e293b 0%, #334155 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

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

/* Special styling for Quiz Games highlight */
.games-title-enhanced .highlight-red {
  background: linear-gradient(135deg, #ff4757 0%, #ff3742 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-shadow: none;
  font-weight: 900;
}

.light-theme .games-title-enhanced .highlight-red {
  background: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-shadow: none;
}

.dark-theme .games-title-enhanced .highlight-red {
  background: linear-gradient(135deg, #ff6b6b 0%, #ff5252 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-shadow: none;
}

.games-subtitle-enhanced {
  font-size: 1.2rem;
  color: rgba(255, 255, 255, 0.8);
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.6;
}

.light-theme .games-subtitle-enhanced {
  color: rgba(30, 41, 59, 0.8);
}

.dark-theme .games-subtitle-enhanced {
  color: rgba(249, 250, 251, 0.8);
}

/* Enhanced Flip Cards */
.enhanced-flip-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 30px;
  margin-bottom: 60px;
  position: relative;
  z-index: 2;
}

.flip-card-enhanced {
  background-color: transparent;
  width: 100%;
  height: 400px;
  perspective: 1000px;
}

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

.flip-card-enhanced:hover .flip-card-inner-enhanced {
  transform: rotateY(180deg) translateY(-10px);
}

.flip-card-front-enhanced,
.flip-card-back-enhanced {
  position: absolute;
  width: 100%;
  height: 100%;
  backface-visibility: hidden;
  border-radius: 20px;
  padding: 30px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
  backdrop-filter: blur(20px);
}

.flip-card-front-enhanced {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0.05) 100%);
  border: 2px solid rgba(255, 255, 255, 0.1);
}

.light-theme .flip-card-front-enhanced {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(248, 250, 252, 0.9) 100%);
  border: 2px solid rgba(184, 1, 1, 0.15);
  box-shadow: 0 15px 35px rgba(184, 1, 1, 0.08), 0 5px 15px rgba(0, 0, 0, 0.05);
}

.dark-theme .flip-card-front-enhanced {
  background: linear-gradient(135deg, rgba(31, 41, 55, 0.8) 0%, rgba(17, 24, 39, 0.6) 100%);
  border-color: rgba(255, 255, 255, 0.2);
}

.flip-card-back-enhanced {
  background: linear-gradient(135deg, rgba(184, 1, 1, 0.2) 0%, rgba(184, 1, 1, 0.1) 100%);
  border: 2px solid rgba(184, 1, 1, 0.3);
  transform: rotateY(180deg);
}

.light-theme .flip-card-back-enhanced {
  background: linear-gradient(135deg, rgba(184, 1, 1, 0.08) 0%, rgba(220, 38, 38, 0.04) 100%);
  border: 2px solid rgba(184, 1, 1, 0.2);
  box-shadow: 0 15px 35px rgba(184, 1, 1, 0.1), 0 5px 15px rgba(0, 0, 0, 0.05);
}

.dark-theme .flip-card-back-enhanced {
  background: linear-gradient(135deg, rgba(184, 1, 1, 0.3) 0%, rgba(184, 1, 1, 0.15) 100%);
  border-color: rgba(184, 1, 1, 0.4);
}

.card-crown-container {
  position: relative;
  margin-bottom: 20px;
}

.card-crown {
  font-size: 2.5rem;
  animation: crownFloat 3s ease-in-out infinite;
  filter: drop-shadow(0 0 15px rgba(255, 215, 0, 0.6));
}

.card-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 80px;
  height: 80px;
  background: radial-gradient(circle, rgba(255, 215, 0, 0.3) 0%, transparent 70%);
  border-radius: 50%;
  animation: glowPulse 2s ease-in-out infinite;
}

@keyframes glowPulse {

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

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

.card-icon-enhanced {
  width: 90px;
  height: 90px;
  padding: 20px;
  background: linear-gradient(135deg, var(--elkably-primary) 0%, #ff6b6b 100%);
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  font-size: 2.5rem;
  color: white;
  box-shadow: 0 15px 35px rgba(184, 1, 1, 0.4);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
}

.light-theme .card-icon-enhanced {
  box-shadow: 0 15px 35px rgba(184, 1, 1, 0.25);
  background: linear-gradient(135deg, var(--elkably-primary) 0%, #dc2626 100%);
}

.dark-theme .card-icon-enhanced {
  box-shadow: 0 15px 35px rgba(184, 1, 1, 0.5);
}

.card-icon-enhanced::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  transition: left 0.6s ease;
}

.flip-card-enhanced:hover .card-icon-enhanced {
  transform: scale(1.15) rotate(8deg);
  box-shadow: 0 20px 45px rgba(184, 1, 1, 0.6);
}

.flip-card-enhanced:hover .card-icon-enhanced::before {
  left: 100%;
}

.light-theme .flip-card-enhanced:hover .card-icon-enhanced {
  box-shadow: 0 20px 45px rgba(184, 1, 1, 0.4);
}

.dark-theme .flip-card-enhanced:hover .card-icon-enhanced {
  box-shadow: 0 20px 45px rgba(184, 1, 1, 0.7);
}

.flip-card-front-enhanced h3 {
  font-size: 1.5rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 15px;
}

.light-theme .flip-card-front-enhanced h3 {
  color: #1e293b;
}

.dark-theme .flip-card-front-enhanced h3 {
  color: #f9fafb;
}

.flip-card-front-enhanced p {
  color: rgba(255, 255, 255, 0.8);
  font-size: 1rem;
  line-height: 1.6;
  margin-bottom: 20px;
}

.light-theme .flip-card-front-enhanced p {
  color: rgba(30, 41, 59, 0.8);
}

.dark-theme .flip-card-front-enhanced p {
  color: rgba(249, 250, 251, 0.8);
}

.card-stats {
  display: flex;
  gap: 15px;
  margin-bottom: 20px;
}

.stat {
  display: flex;
  align-items: center;
  gap: 5px;
  background: rgba(255, 255, 255, 0.1);
  padding: 8px 15px;
  border-radius: 20px;
  font-size: 0.9rem;
  font-weight: 600;
  color: #ffffff;
}

.light-theme .stat {
  background: rgba(184, 1, 1, 0.1);
  color: var(--elkably-primary);
}

.dark-theme .stat {
  background: rgba(255, 255, 255, 0.15);
  color: #ffffff;
}

.stat i {
  color: #ffd700;
}

.light-theme .stat i {
  color: var(--elkably-primary);
}

.hover-indicator {
  display: flex;
  align-items: center;
  gap: 8px;
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.9rem;
  font-style: italic;
}

.light-theme .hover-indicator {
  color: rgba(30, 41, 59, 0.6);
}

.dark-theme .hover-indicator {
  color: rgba(249, 250, 251, 0.6);
}

.back-content-enhanced {
  text-align: center;
}

.back-crown {
  font-size: 2rem;
  margin-bottom: 15px;
  animation: crownRotate 2s ease-in-out infinite;
  filter: drop-shadow(0 0 10px rgba(255, 215, 0, 0.5));
}

@keyframes crownRotate {

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

  50% {
    transform: rotate(10deg);
  }
}

.back-content-enhanced h4 {
  font-size: 1.3rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 20px;
}

.light-theme .back-content-enhanced h4 {
  color: #1e293b;
}

.dark-theme .back-content-enhanced h4 {
  color: #f9fafb;
}

.feature-list-enhanced {
  list-style: none;
  padding: 0;
  margin-bottom: 20px;
}

.feature-list-enhanced li {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.95rem;
}

.light-theme .feature-list-enhanced li {
  color: rgba(30, 41, 59, 0.9);
}

.dark-theme .feature-list-enhanced li {
  color: rgba(249, 250, 251, 0.9);
}

.feature-list-enhanced li i {
  color: #ffd700;
  font-size: 1rem;
}

.light-theme .feature-list-enhanced li i {
  color: var(--elkably-primary);
}

.achievement-badge {
  display: flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, rgba(255, 215, 0, 0.2), rgba(255, 215, 0, 0.1));
  border: 1px solid rgba(255, 215, 0, 0.3);
  padding: 10px 20px;
  border-radius: 25px;
  font-size: 0.9rem;
  font-weight: 600;
  color: #ffd700;
  animation: badgeGlow 3s ease-in-out infinite;
}

.light-theme .achievement-badge {
  background: linear-gradient(135deg, rgba(184, 1, 1, 0.2), rgba(184, 1, 1, 0.1));
  border-color: rgba(184, 1, 1, 0.3);
  color: var(--elkably-primary);
}

/* Enhanced CTA */
.games-cta-enhanced {
  text-align: center;
  margin-bottom: 60px;
  position: relative;
  z-index: 2;
}

.cta-crown-animation {
  position: relative;
  margin-bottom: 30px;
}

.crown-float {
  font-size: 3rem;
  animation: crownBounce 2s ease-in-out infinite;
  filter: drop-shadow(0 0 20px rgba(255, 215, 0, 0.6));
}

.crown-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 120px;
  height: 120px;
  background: radial-gradient(circle, rgba(255, 215, 0, 0.4) 0%, transparent 70%);
  border-radius: 50%;
  animation: glowExpand 3s ease-in-out infinite;
}

@keyframes crownBounce {

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

  50% {
    transform: translateY(-10px) scale(1.1);
  }
}

@keyframes glowExpand {

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

  50% {
    opacity: 0.9;
    transform: translate(-50%, -50%) scale(1.3);
  }
}

.btn-games-enhanced {
  display: inline-flex;
  align-items: center;
  gap: 15px;
  background: linear-gradient(135deg, var(--elkably-primary) 0%, #ff6b6b 100%);
  color: white;
  padding: 18px 40px;
  border-radius: 50px;
  font-size: 1.1rem;
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 15px 35px rgba(184, 1, 1, 0.4);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
  border: 2px solid transparent;
}

.btn-games-enhanced:hover {
  transform: translateY(-5px) scale(1.05);
  box-shadow: 0 25px 50px rgba(184, 1, 1, 0.6);
  color: white;
  text-decoration: none;
}

.btn-crown {
  font-size: 1.5rem;
  animation: crownSpin 2s ease-in-out infinite;
}

@keyframes crownSpin {

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

  50% {
    transform: rotate(10deg);
  }
}

.btn-sparkles {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.sparkle {
  position: absolute;
  font-size: 1rem;
  opacity: 0;
  animation: sparkleFloat 3s ease-in-out infinite;
}

.sparkle:nth-child(1) {
  top: 20%;
  left: 20%;
  animation-delay: 0s;
}

.sparkle:nth-child(2) {
  top: 30%;
  right: 20%;
  animation-delay: 1s;
}

.sparkle:nth-child(3) {
  bottom: 20%;
  left: 50%;
  animation-delay: 2s;
}

@keyframes sparkleFloat {

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

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

.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.6s ease;
}

.btn-games-enhanced:hover .btn-glow-effect {
  left: 100%;
}

/* Enhanced Game Rooms */
.sample-game-rooms-enhanced {
  position: relative;
  z-index: 2;
}

.rooms-header {
  text-align: center;
  margin-bottom: 40px;
}

.rooms-crown {
  font-size: 2rem;
  margin-bottom: 15px;
  animation: crownRotate 4s ease-in-out infinite;
  filter: drop-shadow(0 0 15px rgba(255, 215, 0, 0.5));
}

.rooms-header h3 {
  font-size: 2rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 10px;
}

.light-theme .rooms-header h3 {
  color: #1e293b;
}

.dark-theme .rooms-header h3 {
  color: #f9fafb;
}

.rooms-subtitle {
  color: rgba(255, 255, 255, 0.7);
  font-size: 1rem;
}

.light-theme .rooms-subtitle {
  color: rgba(30, 41, 59, 0.7);
}

.dark-theme .rooms-subtitle {
  color: rgba(249, 250, 251, 0.7);
}

.rooms-preview-enhanced {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 25px;
}

.room-preview-card-enhanced {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0.05) 100%);
  border: 2px solid rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  padding: 25px;
  position: relative;
  backdrop-filter: blur(20px);
  transition: all 0.4s ease;
  cursor: pointer;
}

.light-theme .room-preview-card-enhanced {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.8) 0%, rgba(248, 250, 252, 0.6) 100%);
  border-color: rgba(184, 1, 1, 0.2);
}

.dark-theme .room-preview-card-enhanced {
  background: linear-gradient(135deg, rgba(31, 41, 55, 0.8) 0%, rgba(17, 24, 39, 0.6) 100%);
  border-color: rgba(255, 255, 255, 0.2);
}

.room-preview-card-enhanced:hover {
  transform: translateY(-10px);
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.3);
  border-color: rgba(255, 215, 0, 0.3);
}

.light-theme .room-preview-card-enhanced:hover {
  border-color: rgba(184, 1, 1, 0.4);
  box-shadow: 0 25px 50px rgba(184, 1, 1, 0.2);
}

.room-crown-badge {
  position: absolute;
  top: 15px;
  right: 15px;
  font-size: 1.5rem;
  animation: crownPulse 2s ease-in-out infinite;
  filter: drop-shadow(0 0 10px rgba(255, 215, 0, 0.5));
}

.room-preview-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 15px;
}

.room-preview-header h4 {
  font-size: 1.2rem;
  font-weight: 700;
  color: #ffffff;
  margin: 0;
}

.light-theme .room-preview-header h4 {
  color: #1e293b;
}

.dark-theme .room-preview-header h4 {
  color: #f9fafb;
}

.room-status {
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
}

.status-waiting {
  background: rgba(255, 193, 7, 0.2);
  color: #ffc107;
  border: 1px solid rgba(255, 193, 7, 0.3);
}

.status-playing {
  background: rgba(40, 167, 69, 0.2);
  color: #28a745;
  border: 1px solid rgba(40, 167, 69, 0.3);
}

.room-preview-info {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 15px;
}

.room-preview-info span {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.8);
}

.light-theme .room-preview-info span {
  color: rgba(30, 41, 59, 0.8);
}

.dark-theme .room-preview-info span {
  color: rgba(249, 250, 251, 0.8);
}

.room-preview-info i {
  color: #ffd700;
  width: 16px;
}

.light-theme .room-preview-info i {
  color: var(--elkably-primary);
}

.room-preview-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.room-category {
  background: rgba(184, 1, 1, 0.2);
  color: var(--elkably-primary);
  padding: 6px 12px;
  border-radius: 15px;
  font-size: 0.8rem;
  font-weight: 600;
}

.room-difficulty {
  padding: 6px 12px;
  border-radius: 15px;
  font-size: 0.8rem;
  font-weight: 600;
}

.difficulty-easy {
  background: rgba(40, 167, 69, 0.2);
  color: #28a745;
}

.difficulty-medium {
  background: rgba(255, 193, 7, 0.2);
  color: #ffc107;
}

.difficulty-hard {
  background: rgba(220, 53, 69, 0.2);
  color: #dc3545;
}

.room-glow-effect {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(255, 215, 0, 0.1) 0%, transparent 50%);
  border-radius: 20px;
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
}

.room-preview-card-enhanced:hover .room-glow-effect {
  opacity: 1;
}

/* Room Hover Overlay */
.room-hover-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(184, 1, 1, 0.9) 0%, rgba(220, 38, 38, 0.8) 100%);
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: all 0.4s ease;
  backdrop-filter: blur(10px);
}

.room-preview-card-enhanced:hover .room-hover-overlay {
  opacity: 1;
}

.hover-content {
  text-align: center;
  color: white;
  transform: translateY(20px);
  transition: transform 0.4s ease;
}

.room-preview-card-enhanced:hover .hover-content {
  transform: translateY(0);
}

.hover-content i {
  font-size: 2rem;
  margin-bottom: 10px;
  display: block;
  animation: gamepadPulse 2s ease-in-out infinite;
}

.hover-content span {
  font-size: 1.1rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
}

@keyframes gamepadPulse {

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

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

/* Enhanced room status indicators */
.room-status {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.status-waiting {
  background: rgba(255, 193, 7, 0.2);
  color: #ffc107;
  border: 1px solid rgba(255, 193, 7, 0.3);
}

.status-playing {
  background: rgba(40, 167, 69, 0.2);
  color: #28a745;
  border: 1px solid rgba(40, 167, 69, 0.3);
}

.status-finished {
  background: rgba(108, 117, 125, 0.2);
  color: #6c757d;
  border: 1px solid rgba(108, 117, 125, 0.3);
}

/* Enhanced room info display */
.room-preview-info span {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 8px;
  padding: 4px 0;
}

.room-preview-info i {
  color: #ffd700;
  width: 16px;
  text-align: center;
}

/* Enhanced room footer */
.room-preview-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 15px;
  padding-top: 15px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.room-category {
  background: rgba(184, 1, 1, 0.2);
  color: var(--elkably-primary);
  padding: 6px 12px;
  border-radius: 15px;
  font-size: 0.8rem;
  font-weight: 600;
  border: 1px solid rgba(184, 1, 1, 0.3);
}

.room-difficulty {
  padding: 6px 12px;
  border-radius: 15px;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.difficulty-easy {
  background: rgba(40, 167, 69, 0.2);
  color: #28a745;
  border: 1px solid rgba(40, 167, 69, 0.3);
}

.difficulty-medium {
  background: rgba(255, 193, 7, 0.2);
  color: #ffc107;
  border: 1px solid rgba(255, 193, 7, 0.3);
}

.difficulty-hard {
  background: rgba(220, 53, 69, 0.2);
  color: #dc3545;
  border: 1px solid rgba(220, 53, 69, 0.3);
}

.light-theme .room-glow-effect {
  background: linear-gradient(135deg, rgba(184, 1, 1, 0.1) 0%, transparent 50%);
}

/* No Game Rooms Enhanced */
.no-game-rooms-enhanced {
  text-align: center;
  padding: 60px 20px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0.02) 100%);
  border: 2px dashed rgba(255, 255, 255, 0.2);
  border-radius: 20px;
  backdrop-filter: blur(20px);
}

.light-theme .no-game-rooms-enhanced {
  background: linear-gradient(135deg, rgba(248, 250, 252, 0.8) 0%, rgba(241, 245, 249, 0.6) 100%);
  border-color: rgba(184, 1, 1, 0.2);
}

.dark-theme .no-game-rooms-enhanced {
  background: linear-gradient(135deg, rgba(31, 41, 55, 0.8) 0%, rgba(17, 24, 39, 0.6) 100%);
  border-color: rgba(255, 255, 255, 0.2);
}

.no-rooms-crown {
  font-size: 3rem;
  margin-bottom: 20px;
  animation: crownFloat 3s ease-in-out infinite;
  filter: drop-shadow(0 0 20px rgba(255, 215, 0, 0.5));
}

.no-game-rooms-enhanced h4 {
  font-size: 1.5rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 15px;
}

.light-theme .no-game-rooms-enhanced h4 {
  color: #1e293b;
}

.dark-theme .no-game-rooms-enhanced h4 {
  color: #f9fafb;
}

.no-game-rooms-enhanced p {
  color: rgba(255, 255, 255, 0.7);
  font-size: 1rem;
  margin-bottom: 25px;
}

.light-theme .no-game-rooms-enhanced p {
  color: rgba(30, 41, 59, 0.7);
}

.dark-theme .no-game-rooms-enhanced p {
  color: rgba(249, 250, 251, 0.7);
}

/* Enhanced Responsive Design */
@media (max-width: 1200px) {
  .enhanced-flip-cards {
    grid-template-columns: repeat(2, 1fr);
    gap: 25px;
  }

  .flip-card-enhanced {
    height: 380px;
  }
}

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

  .enhanced-flip-cards {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .flip-card-enhanced {
    height: 350px;
  }

  .flip-card-front-enhanced,
  .flip-card-back-enhanced {
    padding: 25px;
  }

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

  .games-subtitle-enhanced {
    font-size: 1.1rem;
  }

  .btn-games-enhanced {
    padding: 15px 30px;
    font-size: 1rem;
  }

  .rooms-preview-enhanced {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .room-preview-card-enhanced {
    padding: 20px;
  }
}

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

  .flip-card-enhanced {
    height: 320px;
  }

  .flip-card-front-enhanced,
  .flip-card-back-enhanced {
    padding: 20px;
  }

  .games-title-enhanced {
    font-size: 2rem;
  }

  .card-icon-enhanced {
    width: 60px;
    height: 60px;
    font-size: 1.5rem;
  }

  .card-crown {
    font-size: 2rem;
  }

  .btn-games-enhanced {
    padding: 12px 25px;
    font-size: 0.9rem;
    gap: 10px;
  }

  .crown-float {
    font-size: 2.5rem;
  }
}

/* Test Type Page Styles */
.test-type-hero-section {
  min-height: 100vh;
  background: linear-gradient(135deg, #0f1419 0%, #1a1f2e 50%, #2d3748 100%);
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
}

.dark-theme .test-type-hero-section {
  background: linear-gradient(135deg, #0a0e13 0%, #1a1f2e 50%, #2d3748 100%);
}

.test-type-badge-hero {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: rgba(184, 1, 1, 0.1);
  color: #ff6b6b;
  padding: 12px 25px;
  border-radius: 30px;
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 25px;
  border: 2px solid rgba(184, 1, 1, 0.2);
  position: relative;
  overflow: hidden;
}

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

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

  50% {
    left: 100%;
  }

  100% {
    left: 100%;
  }
}

.test-type-visual-container {
  position: relative;
  height: 400px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.test-type-icon-large {
  width: 120px;
  height: 120px;
  background: linear-gradient(135deg, #B80101 0%, #ff6b6b 100%);
  border-radius: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 20px 40px rgba(184, 1, 1, 0.3);
  position: relative;
  z-index: 2;
}

.test-type-icon-large i {
  font-size: 3rem;
  color: white;
}

.tests-section {
  padding: 120px 0;
  background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
  position: relative;
  overflow: hidden;
}

.dark-theme .tests-section {
  background: linear-gradient(135deg, #0f1419 0%, #1a1f2e 50%, #2d3748 100%);
}

.tests-background {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  pointer-events: none;
}

.tests-header {
  margin-bottom: 60px;
}

.tests-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(184, 1, 1, 0.1);
  color: #B80101;
  padding: 8px 20px;
  border-radius: 25px;
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 20px;
  border: 2px solid rgba(184, 1, 1, 0.2);
}

.tests-title {
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 700;
  color: #1e293b;
  margin-bottom: 20px;
  line-height: 1.2;
}

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

.tests-subtitle {
  font-size: 1.25rem;
  color: #64748b;
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.6;
}

.dark-theme .tests-subtitle {
  color: #94a3b8;
}

.tests-filter-section {
  margin-bottom: 60px;
}

.filter-form {
  max-width: 800px;
  margin: 0 auto;
}

.filter-container {
  /* display: grid; */
  grid-template-columns: 2fr 1fr;
  gap: 20px;
  align-items: end;
}

.search-form {
  position: relative;
}

.search-input-group {
  position: relative;
  background: rgba(255, 255, 255, 0.9);
  border-radius: 15px;
  padding: 15px 20px;
  border: 2px solid rgba(184, 1, 1, 0.1);
  transition: all 0.3s ease;
}

.dark-theme .search-input-group {
  background: rgba(31, 41, 55, 0.9);
  border-color: rgba(184, 1, 1, 0.2);
}

.search-input-group:focus-within {
  border-color: #B80101;
  box-shadow: 0 8px 25px rgba(184, 1, 1, 0.15);
}

.search-icon {
  position: absolute;
  left: -12px;
  top: 50%;
  transform: translateY(-50%);
  color: #6b7280;
  font-size: 1.1rem;
  opacity: 0.5;
}

.dark-theme .search-icon {
  color: #9ca3af;
}

.search-input {
  width: 100%;
  border: none;
  background: transparent;
  padding-left: 40px;
  font-size: 1rem;
  color: #1e293b;
  outline: none;
}

.dark-theme .search-input {
  color: #f9fafb;
}

.search-input::placeholder {
  color: #9ca3af;
}

.filter-dropdowns {
  display: flex;
  gap: 15px;
}

.filter-group {
  flex: 1;
}

.filter-label {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  color: #374151;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.dark-theme .filter-label {
  color: #d1d5db;
}

.filter-select {
  width: 100%;
  padding: 15px 20px;
  border: 2px solid rgba(184, 1, 1, 0.1);
  border-radius: 15px;
  background: rgba(255, 255, 255, 0.9);
  color: #1e293b;
  font-size: 1rem;
  outline: none;
  transition: all 0.3s ease;
}

.dark-theme .filter-select {
  background: rgba(31, 41, 55, 0.9);
  border-color: rgba(184, 1, 1, 0.2);
  color: #f9fafb;
}

.filter-select:focus {
  border-color: #B80101;
  box-shadow: 0 8px 25px rgba(184, 1, 1, 0.15);
}

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

.test-card-enhanced {
  background: rgba(255, 255, 255, 0.9);
  border-radius: 20px;
  padding: 30px;
  position: relative;
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  border: 2px solid rgba(255, 255, 255, 0.5);
  backdrop-filter: blur(10px);
}

.dark-theme .test-card-enhanced {
  background: rgba(31, 41, 55, 0.9);
  border-color: rgba(255, 255, 255, 0.1);
}

.test-card-enhanced:hover {
  transform: translateY(-10px);
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.15);
}

.dark-theme .test-card-enhanced:hover {
  box-shadow: 0 25px 50px rgba(184, 1, 1, 0.25);
}

.test-card-background {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  opacity: 0.05;
  background: linear-gradient(135deg, #B80101 0%, #ff6b6b 100%);
}

.test-pattern {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image:
    radial-gradient(circle at 20% 20%, rgba(184, 1, 1, 0.1) 0%, transparent 50%),
    radial-gradient(circle at 80% 80%, rgba(184, 1, 1, 0.1) 0%, transparent 50%);
}

.test-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.test-difficulty-badge {
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
}

.test-difficulty-badge.easy {
  background: rgba(34, 197, 94, 0.1);
  color: #22c55e;
  border: 1px solid rgba(34, 197, 94, 0.2);
}

.test-difficulty-badge.medium {
  background: rgba(251, 191, 36, 0.1);
  color: #fbbf24;
  border: 1px solid rgba(251, 191, 36, 0.2);
}

.test-difficulty-badge.hard {
  background: rgba(239, 68, 68, 0.1);
  color: #ef4444;
  border: 1px solid rgba(239, 68, 68, 0.2);
}

.test-type-badge {
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
  background: rgba(184, 1, 1, 0.1);
  color: #B80101;
  border: 1px solid rgba(184, 1, 1, 0.2);
}

.test-card-body {
  margin-bottom: 25px;
}

.test-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: #1e293b;
  margin-bottom: 15px;
  line-height: 1.3;
}

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

.test-description {
  color: #64748b;
  line-height: 1.6;
  margin-bottom: 20px;
}

.dark-theme .test-description {
  color: #94a3b8;
}

.test-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 15px;
}

.stat-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 15px;
  background: rgba(184, 1, 1, 0.05);
  border-radius: 10px;
  font-size: 0.9rem;
  color: #374151;
}

.dark-theme .stat-item {
  background: rgba(184, 1, 1, 0.1);
  color: #d1d5db;
}

.stat-item i {
  color: #B80101;
  font-size: 0.8rem;
}

.test-card-footer {
  text-align: center;
}

.btn-test-start {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: linear-gradient(135deg, #B80101 0%, #ff6b6b 100%);
  color: white;
  padding: 15px 30px;
  border-radius: 12px;
  text-decoration: none;
  font-weight: 600;
  font-size: 1rem;
  transition: all 0.3s ease;
  box-shadow: 0 8px 25px rgba(184, 1, 1, 0.3);
  position: relative;
  overflow: hidden;
}

.btn-test-start::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;
}

.btn-test-start:hover::before {
  left: 100%;
}

.btn-test-start:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 35px rgba(184, 1, 1, 0.4);
}

.btn-test-start i {
  transition: transform 0.3s ease;
}

.btn-test-start:hover i {
  transform: translateX(5px);
}

.no-tests-message {
  text-align: center;
  padding: 80px 20px;
}

.no-tests-icon {
  font-size: 4rem;
  color: #9ca3af;
  margin-bottom: 20px;
}

.no-tests-message h3 {
  font-size: 1.5rem;
  color: #374151;
  margin-bottom: 10px;
}

.dark-theme .no-tests-message h3 {
  color: #d1d5db;
}

.no-tests-message p {
  color: #6b7280;
  margin-bottom: 30px;
}

.dark-theme .no-tests-message p {
  color: #9ca3af;
}

.pagination-container {
  display: flex;
  justify-content: center;
  margin-top: 60px;
}

.pagination-nav {
  display: flex;
  align-items: center;
  gap: 20px;
  background: rgba(255, 255, 255, 0.9);
  padding: 15px 25px;
  border-radius: 15px;
  border: 2px solid rgba(184, 1, 1, 0.1);
}

.dark-theme .pagination-nav {
  background: rgba(31, 41, 55, 0.9);
  border-color: rgba(184, 1, 1, 0.2);
}

.pagination-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  background: rgba(184, 1, 1, 0.1);
  color: #B80101;
  text-decoration: none;
  border-radius: 10px;
  font-weight: 600;
  transition: all 0.3s ease;
  border: 1px solid rgba(184, 1, 1, 0.2);
}

.pagination-btn:hover {
  background: rgba(184, 1, 1, 0.2);
  transform: translateY(-2px);
}

.pagination-info {
  color: #6b7280;
  font-weight: 600;
  padding: 0 15px;
}

.dark-theme .pagination-info {
  color: #9ca3af;
}

.form-actions {
  margin-top: 2rem;
  text-align: center;
}

/* Floating Formula Text Animation */
.formula-text {
  transition: opacity 0.8s ease-in-out, transform 0.8s ease-in-out !important;
  opacity: 1 !important;
  transform: translateY(0) !important;
}

.formula-text.fade-out {
  opacity: 0 !important;
  transform: translateY(-10px) !important;
}

.formula-text.fade-in {
  opacity: 1 !important;
  transform: translateY(0) !important;
}