/* Custom styles for the home page */
/* All font size reductions in this file apply ONLY to the home page elements */

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

body {
  font-family: 'Montserrat', sans-serif;
  font-size: 1.05rem; /* Slightly increased font size for home page */
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Playfair Display', serif;
}

/* Hero section with video */
.hero {
  position: relative;
  height: 95vh; /* Increased from 90vh for taller hero section */
  min-height: 650px; /* Increased from 600px for taller hero section */
  max-height: 900px; /* Increased from 800px */
  overflow: hidden;
  display: flex;
  align-items: center;
  margin-top: 80px; /* Added margin-top to account for navbar height */
  padding-top: 0; /* Removed padding-top since we're using margin now */
  z-index: 1;
  margin-bottom: 0; /* Ensure no bottom margin causes overlap */
}

.hero-video-container {
  position: absolute;
  top: 0; /* Keep at 0 */
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  height: 100%; /* Keep 100% for proper fit */
  z-index: 0;
  margin-top: 0;
  overflow: hidden; /* Ensure video stays within container */
}

.hero-video-container::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0, 0, 0, 0.65); /* Increased opacity layer from 0.6 to 0.65 */
  opacity: 0.9;
  z-index: 2;
} 

.hero-video {
  width: 100%;
  height: 100%;
  object-fit: cover; /* Back to cover for better filling */
  object-position: center; /* Centered position */
  filter: brightness(1.2) contrast(1.05) saturate(1.1); /* Reduced brightness slightly */
  transform: scale(1.1) translateY(50px); /* Increased scale and translateY to move video down more significantly */
  background-color: #000; /* Add black background */
}

.video-overlay-gradient {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, 
    rgba(var(--asset-red-rgb), 0.2) 0%, 
    rgba(var(--asset-blue-rgb), 0.2) 100%);
  z-index: 1;
  mix-blend-mode: overlay;
  margin-top: 0; /* Ensure it starts from the very top */
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(
    circle at center,
    rgba(0, 0, 0, 0.3) 0%,
    rgba(0, 0, 0, 0.5) 50%,
    rgba(0, 0, 0, 0.65) 100%
  );
  z-index: 1;
  backdrop-filter: blur(1px);
  margin-top: 0; /* Ensure it starts from the very top */
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  color: white;
  padding: 2rem;
  padding-top: calc(22vh); /* Increased from 12vh to move content down */
  margin-top: 2rem; /* Added margin-top to push content down further */
  margin-bottom: 0; /* Reset to 0 as we've adjusted the video container */
}

.tagline-container {
  overflow: hidden;
  margin-bottom: 1.5rem; /* Decreased from 2.5rem to reduce gap with subtitle */
  margin-top: 5rem; /* Keep this the same to maintain position */
  height: 12rem; /* Reduced from 14rem as we're making the text smaller */
  position: relative;
}

.hero-tagline {
  font-size: 3.4rem; /* Decreased from 3.8rem */
  font-weight: 600; /* Decreased from 700 */
  letter-spacing: 4px; /* Reduced from 5px */
  text-transform: uppercase;
  color: #ffffff;
  text-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
  position: relative;
  visibility: hidden; /* Hide the original text */
  font-family: 'Montserrat', sans-serif;
}

/* First animated word */
.tagline-container::before {
  content: "SPEAK.";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  color: #ffffff;
  font-size: 3.4rem; /* Decreased from 3.8rem */
  font-weight: 600; /* Decreased from 700 */
  letter-spacing: 4px; /* Reduced from 5px */
  text-transform: uppercase;
  text-shadow: 0 3px 10px rgba(0, 0, 0, 0.4);
  animation: word1-animation 5s ease-in-out infinite;
  visibility: visible;
  line-height: 1.1;
  font-family: 'Montserrat', sans-serif;
}

/* Second animated word */
.tagline-container::after {
  content: "INFLUENCE.";
  position: absolute;
  top: 3.8rem; /* Adjusted from 4.2rem to account for smaller font */
  left: 0;
  width: 100%;
  color: #ffffff;
  font-size: 3.4rem; /* Decreased from 3.8rem */
  font-weight: 600; /* Decreased from 700 */
  letter-spacing: 4px; /* Reduced from 5px */
  text-transform: uppercase;
  text-shadow: 0 3px 10px rgba(0, 0, 0, 0.4);
  animation: word2-animation 5s ease-in-out infinite;
  visibility: visible;
  line-height: 1.1;
  font-family: 'Montserrat', sans-serif;
}

/* Third animated word */
.hero-tagline::before {
  content: "INSPIRE.";
  position: absolute;
  top: 7.6rem; /* Adjusted from 8.4rem to account for smaller font */
  left: 0;
  width: 100%;
  color: #ffffff;
  font-size: 3.4rem; /* Decreased from 3.8rem */
  font-weight: 600; /* Decreased from 700 */
  letter-spacing: 4px; /* Reduced from 5px */
  text-transform: uppercase;
  text-shadow: 0 3px 10px rgba(0, 0, 0, 0.4);
  animation: word3-animation 5s ease-in-out infinite;
  visibility: visible;
  line-height: 1.1;
  font-family: 'Montserrat', sans-serif;
}

/* First word animation */
@keyframes word1-animation {
  0%, 1% {  /* Start almost immediately */
    transform: translateX(-100%);
    opacity: 0;
  }
  10%, 60% {
    transform: translateX(0);
    opacity: 1;
  }
  65%, 66% {
    transform: translateX(100%);
    opacity: 0;
  }
  67%, 100% {
    transform: translateX(-100%);
    opacity: 0;
  }
}

/* Second word animation */
@keyframes word2-animation {
  0%, 15% {
    transform: translateX(-100%);
    opacity: 0;
  }
  20%, 65% {
    transform: translateX(0);
    opacity: 1;
  }
  70%, 71% {
    transform: translateX(100%);
    opacity: 0;
  }
  72%, 100% {
    transform: translateX(-100%);
    opacity: 0;
  }
}

/* Third word animation */
@keyframes word3-animation {
  0%, 25% {
    transform: translateX(-100%);
    opacity: 0;
  }
  30%, 70% {
    transform: translateX(0);
    opacity: 1;
  }
  75%, 78% {
    transform: translateX(100%);
    opacity: 0;
  }
  79%, 100% {
    transform: translateX(-100%);
    opacity: 0;
  }
}

/* Remove the original after pseudo-element */
.hero-tagline::after {
  display: none;
}

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

@keyframes gradient-flow {
  0% { background-position: 0% center; }
  50% { background-position: 100% center; }
  100% { background-position: 0% center; }
}

.hero h2 {
  font-size: 1.3rem; /* Decreased from 1.45rem */
  margin-bottom: 2.5rem; /* Space before buttons */
  margin-top: 1.5rem; /* Reduced from 2.5rem to decrease space after animated text */
  text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.5);
  font-weight: 400; /* Decreased from 500 to make it lighter */
  color: rgba(255, 255, 255, 0.85); /* Made slightly more transparent */
  letter-spacing: 0.5px; /* Added letter spacing for better readability */
}

.hero-buttons {
  display: flex;
  gap: 1.5rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 2rem; /* Decreased from the previous 4rem to maintain overall spacing */
}

/* Enhanced hero buttons with better UI */
.hero .btn {
  padding: 14px 34px; /* Decreased from 16px 38px */
  font-weight: 500;
  font-size: 0.95rem; /* Added smaller font size for buttons */
  text-transform: uppercase;
  letter-spacing: 1.5px;
  border-radius: 50px;
  transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
  position: relative;
  overflow: hidden;
  z-index: 1;
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
}

.hero .btn::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(120deg, 
    rgba(117, 110, 110, 0.3) 0%, 
    rgba(255, 255, 255, 0) 50%, 
    rgba(255, 255, 255, 0.3) 100%);
  z-index: -1;
  transform: translateX(-100%);
  transition: all 0.6s ease;
}

.hero .btn:hover {
  transform: translateY(-5px) scale(1.03);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
}

.hero .btn:hover::after {
  transform: translateX(100%);
}

.hero .btn-light {
  background: linear-gradient(45deg, var(--asset-red), var(--asset-purple), var(--asset-blue));
  background-size: 180% auto;
  border: none;
  color: white;
  animation: gradient-shift 8s linear infinite;
}

.hero .btn-outline-light {
  background: rgba(255, 255, 255, 0.15);
  border: 2px solid rgba(255, 255, 255, 0.9);
  color: white;
}

.hero .btn-outline-light:hover {
  background: rgba(255, 255, 255, 0.25);
  border-color: white;
}

.text-gradient {
  background: linear-gradient(90deg, 
    var(--asset-red) 0%, 
    var(--asset-blue) 20%, 
    var(--asset-yellow) 40%,
    var(--asset-purple) 60%,
    var(--asset-green) 80%,
    var(--asset-red) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  display: inline-block;
}

/* Animation for the gradient shift */
@keyframes gradient-shift {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

/* Course cards styling */
.course-card {
  border-radius: 15px;
  overflow: hidden;
  transition: all 0.4s ease;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  margin-bottom: 30px;
  height: 100%;
  border: none;
}

.course-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.12);
}

.course-card .card-img-top {
  height: 220px;
  object-fit: cover;
}

.course-card .card-body {
  padding: 2rem;
}

.course-card .card-title {
  font-weight: 700;
  margin-bottom: 1rem;
  color: var(--text-primary);
}

.course-card .card-text {
  margin-bottom: 1.5rem;
  color: var(--text-secondary);
}

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

.dark-theme .course-card .card-title {
  color: var(--text-primary);
}

.dark-theme .course-card .card-text {
  color: var(--text-secondary);
}

/* Features Section */
.features-section {
  padding: 5rem 0;
}

.feature-card {
  text-align: center;
  padding: 2rem;
  transition: all 0.4s ease;
  border-radius: 10px;
}

.feature-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

.feature-card .feature-icon {
  height: 80px;
  width: 80px;
  margin: 0 auto 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  color: white;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--asset-blue), var(--asset-purple));
}

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

.dark-theme .feature-card:hover {
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

/* Testimonials section */
.testimonials-section {
  padding: 6rem 0;
  position: relative;
  overflow: hidden;
  background-color: var(--bg-primary);
}

.testimonials-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url('../assets/images/pattern-bg.png');
  background-size: cover;
  background-position: center;
  opacity: 0.03;
  z-index: 0;
}

.testimonials-section .section-header {
  margin-bottom: 3rem;
}

.testimonials-wrapper {
  position: relative;
  z-index: 2;
  margin: 0 auto;
  max-width: 1200px;
  overflow: visible;
  padding: 0;
}

.testimonials-carousel {
  display: flex;
  transition: transform 0.5s ease;
  gap: 20px;
  padding: 10px 5px 20px 5px;
  margin: 0 40px;
  overflow-x: auto;
  scroll-behavior: smooth;
  scrollbar-width: none; /* Firefox */
  -ms-overflow-style: none; /* IE and Edge */
  scroll-snap-type: x mandatory;
}

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

.testimonial-card {
  height: auto;
  min-height: 180px; /* Reduced from 300px */
  max-height: 220px; /* Added fixed maximum height */
  overflow: hidden; /* Changed from visible to hidden */
  display: flex;
  flex-direction: column;
  margin-bottom: 2rem;
  padding: 2.5rem 2rem 1.8rem;
  border-radius: 15px;
  background-color: var(--card-bg);
  transition: all 0.4s ease;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.06);
  position: relative;
  flex: 0 0 calc(33.333% - 20px);
  min-width: 300px;
  border-bottom: 5px solid transparent;
  scroll-snap-align: start;
}

.testimonial-card::before {
  display: none;
}

.testimonial-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
  border-bottom: 5px solid var(--asset-blue);
}

.dark-theme .testimonial-card {
  background-color: var(--card-bg);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.15);
}

.dark-theme .testimonial-card:hover {
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3);
}

.quote-icon-container {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  transition: all 0.3s ease;
}

.testimonial-card .quote-icon {
  font-size: 3rem;
  color: rgba(var(--asset-blue-rgb), 0.08);
  transition: all 0.3s ease;
}

.testimonial-card:hover .quote-icon {
  transform: scale(1.1) rotate(10deg);
  color: rgba(var(--asset-blue-rgb), 0.15);
}

.dark-theme .testimonial-card .quote-icon {
  color: rgba(255, 255, 255, 0.05);
}

.testimonial-content {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100%;
}

.testimonial-content .d-flex {
  margin-top: auto;
  align-items: center;
}

.testimonial-content p {
  font-size: 0.85rem; /* Decreased from 0.95rem */
  line-height: 1.6; /* Reduced from 1.8 */
  color: var(--text-secondary);
  margin-bottom: 1rem; /* Reduced from 1.5rem */
  position: relative;
  transition: all 0.3s ease;
  font-style: italic;
  padding-left: 1rem;
  border-left: 3px solid rgba(var(--asset-blue-rgb), 0.5);
  display: -webkit-box;
  -webkit-line-clamp: 3; /* Limit to 3 lines */
  -webkit-box-orient: vertical;
  overflow: hidden; /* Changed from visible to hidden */
  max-height: 80px; /* Added max height */
}

.testimonial-card:hover .testimonial-content p {
  display: -webkit-box; /* Changed from block to keep multi-line ellipsis */
  -webkit-line-clamp: 3; /* Maintain 3 lines even on hover */
  max-height: 80px; /* Maintain consistent height */
}

.testimonial-content p::before {
  content: "";
  position: absolute;
  top: -10px;
  left: -15px;
  font-size: 1.8rem;
  opacity: 0.1;
}

.testimonial-avatar {
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  font-size: 1.2rem;
  font-weight: 600;
  transition: all 0.3s ease;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  position: relative;
}

.testimonial-card:hover .testimonial-avatar {
  transform: scale(1.05);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
  border-radius: 50%;
}

.testimonial-content .ms-3 h5 {
  font-size: 0.95rem; /* Decreased from 1.1rem */
  font-weight: 600;
  margin-bottom: 0.15rem;
  transition: all 0.3s ease;
  letter-spacing: 0.5px;
  color: var(--text-primary);
}

.testimonial-card:hover .testimonial-content .ms-3 h5 {
  color: var(--asset-blue);
}

.testimonial-content .ms-3 p {
  font-size: 0.75rem; /* Decreased from 0.85rem */
  color: var(--text-secondary);
  margin-bottom: 0;
  transition: all 0.3s ease;
  font-style: normal;
  padding-left: 0;
  border-left: none;
}

.carousel-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 45px;
  height: 45px;
  border-radius: 50%;
  background-color: var(--card-bg);
  color: var(--text-primary);
  border: none;
  z-index: 3;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  font-size: 1rem;
}

.dark-theme .carousel-nav {
  background-color: var(--card-bg);
  color: var(--text-primary);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.4);
}

.carousel-nav:hover {
  background-color: var(--asset-blue);
  color: white;
  box-shadow: 0 8px 20px rgba(var(--asset-blue-rgb), 0.5);
}

.carousel-nav:active {
  transform: translateY(-50%) scale(0.95);
}

.carousel-prev {
  left: -5px;
}

.carousel-next {
  right: -5px;
}

/* Hide testimonial dots */
.testimonial-dots-container {
  display: none;
}

/* Contact Form Section */
.contact-section {
  padding: 5rem 0;
  background-color: var(--bg-secondary);
}

.contact-form {
  transition: all 0.4s ease;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.07);
}

.contact-form:hover {
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12);
  transform: translateY(-5px);
}

.contact-form .form-control {
  padding: 0.8rem 1.2rem;
  border-radius: 8px;
  transition: all 0.3s ease;
  background-color: var(--form-input-bg);
  border-color: var(--form-border);
  color: var(--text-primary);
}

.contact-form .form-control:focus {
  box-shadow: 0 0 0 3px rgba(var(--primary-color-rgb), 0.15);
}

.contact-form .btn-primary {
  padding: 12px 30px;
  background: linear-gradient(45deg, var(--asset-blue), var(--asset-purple));
  border: none;
  font-weight: 600;
  letter-spacing: 0.5px;
  transition: all 0.3s ease;
  box-shadow: 0 10px 20px rgba(var(--asset-blue-rgb), 0.3);
}

.contact-form .btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 15px 25px rgba(var(--asset-blue-rgb), 0.4);
}

/* Achievements Section */
.achievements-section {
  position: relative;
  padding: 5rem 0;
  z-index: 1;
  background-color: var(--bg-primary);
}

.achievements-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url('../assets/images/pattern-bg.png');
  background-size: cover;
  background-position: center;
  opacity: 0.04;
  z-index: 0;
}

.achievement-card {
  background-color: var(--card-bg);
  padding: 2rem 1.5rem;
  border-radius: 15px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
  transition: all 0.4s ease;
  position: relative;
  z-index: 1;
  height: 100%;
  overflow: hidden;
  color: var(--text-primary);
}

.achievement-card::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 5px;
  background: linear-gradient(to right, var(--asset-red), var(--asset-blue));
  transform: translateY(-100%);
  transition: transform 0.3s ease;
}

.achievement-card:hover::after {
  transform: translateY(0);
}

.dark-theme .achievement-card {
  background-color: var(--card-bg);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
  color: var(--text-primary);
}

.dark-theme .achievement-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.25);
}

.achievement-icon {
  font-size: 2.5rem;
  color: var(--asset-red);
  margin-bottom: 1rem;
  transition: all 0.3s ease;
}

.dark-theme .achievement-icon {
  color: var(--asset-red);
}

.achievement-card:hover .achievement-icon {
  transform: scale(1.1);
}

.achievement-number {
  font-size: 3rem;
  font-weight: 800;
  background: linear-gradient(45deg, var(--asset-red), var(--asset-blue), var(--asset-purple));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  display: inline-block;
  background-size: 200% auto;
  animation: gradient-shift 8s linear infinite;
  margin-bottom: 0.4rem;
}

.achievement-suffix {
  font-size: 1.5rem;
  vertical-align: super;
}

.achievement-text {
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin-bottom: 0;
}

/* Why Choose Us section styling */
.why-choose-section {
  position: relative;
  padding: 6rem 0;
  background-color: var(--bg-secondary);
}

.why-choose-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url('../assets/images/pattern-bg.png');
  background-size: cover;
  background-position: center;
  opacity: 0.03;
  z-index: 0;
}

.why-choose-section .section-header {
  margin-bottom: 3rem;
  color: #000; /* Black color in light mode */
}

.why-choose-item {
  background-color: var(--card-bg);
  border-radius: 15px;
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  transition: all 0.4s ease;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05);
  position: relative;
  overflow: hidden;
  z-index: 1;
  height: 100%;
  border-left: 4px solid transparent;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.why-choose-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, 
    rgba(var(--asset-blue-rgb), 0.05) 0%, 
    rgba(var(--asset-purple-rgb), 0.05) 100%);
  z-index: -1;
  opacity: 0;
  transition: opacity 0.4s ease;
}

.why-choose-item:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
  border-left: 4px solid var(--asset-blue);
}

.why-choose-item:hover::before {
  opacity: 1;
}

.dark-theme .why-choose-item {
  background-color: var(--card-bg);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.dark-theme .why-choose-item:hover {
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.25);
}

.feature-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 0.8rem;
  width: 100%;
}

.why-choose-item .icon-container {
  width: 60px;
  height: 60px;
  min-width: 60px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--asset-blue), var(--asset-purple));
  color: white;
  font-size: 1.4rem;
  flex-shrink: 0;
  transition: all 0.4s ease;
  box-shadow: 0 8px 20px rgba(var(--asset-blue-rgb), 0.3);
  margin-bottom: 0.8rem;
}

.why-choose-item:hover .icon-container {
  transform: scale(1.1) rotate(5deg);
  border-radius: 16px;
  box-shadow: 0 10px 25px rgba(var(--asset-blue-rgb), 0.4);
}

.why-choose-item h5 {
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 0.4rem;
  color: var(--text-primary);
  position: relative;
  display: inline-block;
}

.why-choose-item h5::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 50%;
  transform: translateX(-50%) scaleX(0);
  width: 40px;
  height: 2px;
  background: linear-gradient(to right, var(--asset-blue), var(--asset-purple));
  border-radius: 2px;
  transition: transform 0.4s ease;
}

.why-choose-item:hover h5::after {
  transform: translateX(-50%) scaleX(1);
}

.why-choose-item p {
  margin-bottom: 0;
  color: var(--text-secondary);
  font-size: 0.9rem;
  line-height: 1.5;
}

/* Section Headers */
.section-header {
  font-size: 2.2rem; /* Decreased from 2.5rem */
  font-weight: 700;
  margin-bottom: 1.5rem;
  position: relative;
  padding-bottom: 1rem;
}

.section-header::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background: linear-gradient(90deg, var(--asset-red), var(--asset-blue));
  border-radius: 4px;
}

.section-subheading {
  font-size: 0.9rem; /* Decreased from 1rem */
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--asset-blue);
  display: block;
  margin-bottom: 1rem;
}

/* About Section */
.section-description {
  font-size: 0.9rem;
  line-height: 1.6;
  color: var(--text-secondary);
  margin-bottom: 0;
}

/* Program cards */
.program-card {
  border-radius: 15px;
  overflow: hidden;
  transition: all 0.4s ease;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
  border: none;
  background-color: var(--card-bg);
  position: relative;
  z-index: 1;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.dark-theme .program-card {
  background-color: var(--card-bg);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3);
}

.program-card:hover {
  transform: translateY(-15px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
}

.program-card-img {
  height: 220px;
  background-size: cover;
  background-position: center;
  position: relative;
  transition: all 0.5s ease;
  flex-shrink: 0;
}

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

.program-card-img::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to top, 
    rgba(0, 0, 0, 0.7) 0%, 
    rgba(0, 0, 0, 0.3) 25%, 
    rgba(0, 0, 0, 0.1) 50%);
  z-index: 1;
}

.program-card-img h3 {
  font-size: 1.5rem; /* Added/decreased font size */
  font-weight: 600;
  z-index: 2;
  position: relative;
  text-shadow: 0 2px 5px rgba(0, 0, 0, 0.7);
}

.program-card .card-body {
  padding: 2rem;
  position: relative;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.program-card .card-body::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  transform: translateX(0);
  width: 0;
  height: 4px;
  background: linear-gradient(to right, 
    var(--asset-red), 
    var(--asset-blue));
  transition: all 0.3s ease;
}

.program-card:hover .card-body::after {
  width: 100%;
}

.program-card p {
  font-size: 0.9rem; /* Decreased from 1.05rem */
  line-height: 1.7;
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
}

.program-card .btn {
  transition: all 0.3s ease;
  background: linear-gradient(45deg, 
    #3d8bfd, 
    var(--asset-purple));
  border: none;
  padding: 12px 30px;
  font-weight: 600;
  letter-spacing: 0.5px;
  align-self: flex-start;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
}

.program-card .btn:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 25px rgba(0, 0, 0, 0.5);
}

.school-program {
  background-image: url('../assets/images/H_Student_program.jpeg');
}

.college-program {
  background-image: url('../assets/images/H_College_program.jpeg');
}

.professional-program {
  background-image: url('../assets/images/H_Proff_program.jpeg');
}

/* About Section Styles */
.about-section {
  position: relative;
  overflow: hidden;
  padding: 4rem 0;
  background-color: var(--bg-secondary);
}

.about-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url('../assets/images/pattern-bg.png');
  background-size: cover;
  background-position: center;
  opacity: 0.03;
  z-index: 0;
}

.about-section .section-heading {
  margin-bottom: 2.5rem;
}

.about-section .text-gradient {
  background-size: 200% auto;
  animation: gradient-shift 6s linear infinite;
}

.about-images-grid {
  display: grid;
  grid-template-columns: 1fr;
  grid-template-rows: auto auto;
  gap: 15px;
  position: relative;
  height: auto;
  margin-right: 20px;
}

.about-image-container {
  position: relative;
  overflow: hidden;
  border-radius: 8px;
  height: 330px; /* Reduced height */
}

.main-image {
  grid-row: 1;
  height: 330px; /* Reduced height */
}

.second-image {
  grid-row: 2;
  height: 330px; /* Reduced height */
}

.about-image-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

@media (max-width: 768px) {
  .about-images-grid {
    height: auto;
    margin-right: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
  }

  .about-image-container {
    width: 100%;
    height: 290px; /* Slightly reduced height for mobile */
  }

  .main-image, .second-image {
    height: 290px; /* Slightly reduced height for mobile */
  }

  .about-image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }
}

.about-image-accent {
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  border-radius: 10px;
  border: 2px solid transparent;
  border-image: linear-gradient(to right, var(--asset-red), var(--asset-blue));
  border-image-slice: 1;
  opacity: 0;
  transition: all 0.4s ease;
}

.about-image-container:hover .about-image-accent {
  opacity: 0.5;
  transform: scale(1.01);
}

.about-content {
  padding: 1.5rem;
  background-color: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(10px);
  border-radius: 15px;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
  height: 100%;
  display: flex;
  flex-direction: column;
  position: relative;
  justify-content: space-between;
  z-index: 2;
  padding-bottom: 1.8rem;
}

.about-content:hover {
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
  transform: translateY(-5px);
}

.about-content-top {
  margin-bottom: 20px;
}

.mentor-section {
  background-color: rgba(255, 255, 255, 0.8);
  border-radius: 10px;
  padding: 1.5rem 1.5rem 1.8rem;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
  border-left: 4px solid var(--asset-blue);
  backdrop-filter: blur(5px);
  text-align: center;
  margin-bottom: 1.8rem;
}

.mentor-section:hover {
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.12);
  transform: translateY(-5px);
}

.mentor-heading {
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 1rem;
  color: var(--asset-blue);
  position: relative;
  display: inline-block;
}

.mentor-heading::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 40px;
  height: 3px;
  background: linear-gradient(to right, var(--asset-red), var(--asset-blue));
  border-radius: 2px;
}

.mentor-image-container {
  display: flex;
  justify-content: center;
  margin-bottom: 20px;
}

.mentor-image {
  width: 170px;
  height: 170px;
  overflow: hidden;
  box-shadow: 0 8px 20px rgba(var(--asset-blue-rgb), 0.3);
  border: 3px solid white;
  position: relative;
  transition: all 0.3s ease;
  margin: 0 auto;
}

.square-image {
  border-radius: 10px;
}

.mentor-image::after {
  content: '';
  position: absolute;
  top: -3px;
  left: -3px;
  right: -3px;
  bottom: -3px;
  border-radius: inherit;
  border: 2px solid transparent;
  background: linear-gradient(135deg, var(--asset-red), var(--asset-blue)) border-box;
  -webkit-mask: linear-gradient(#fff 0 0) padding-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: destination-out;
  mask-composite: exclude;
}

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

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

.mentor-name {
  font-size: 1.3rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  background: linear-gradient(90deg, #ff3333, #3366ff);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.mentor-bio {
  font-size: 0.85rem;
  line-height: 1.5;
  color: var(--text-secondary);
  max-width: 95%;
  margin: 0 auto;
}

.button-container {
  margin-top: 1.5rem;
  position: relative;
  z-index: 10;
  text-align: center;
}

.about-section .btn-primary {
  background: linear-gradient(45deg, var(--asset-red), var(--asset-purple));
  border: none;
  padding: 12px 30px;
  border-radius: 50px;
  transition: all 0.3s ease;
  font-weight: 600;
  box-shadow: 0 8px 20px rgba(var(--asset-red-rgb), 0.2);
  font-size: 1.05rem;
  align-self: flex-start;
  margin-top: auto;
  margin-bottom: 0;
  position: relative;
  z-index: 5;
}

.about-section .btn-primary:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 25px rgba(var(--asset-red-rgb), 0.3);
}

/* Programs Section */
.programs-section {
  position: relative;
  overflow: hidden;
  padding: 6rem 0;
  background-color: var(--bg-primary);
  margin-top: 0 !important;
}

.programs-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg,
    rgba(var(--asset-red-rgb), 0.02) 0%,
    rgba(var(--asset-blue-rgb), 0.02) 100%);
  z-index: 0;
}

.programs-section .section-header {
  margin-bottom: 3rem;
}

/* Responsive Adjustments */
@media (max-width: 1400px) {
  .about-images-grid {
    height: 840px;
  }
  
  .about-content {
    height: 840px;
  }
  
  .section-description {
    font-size: 1.1rem;
    line-height: 1.7;
  }
  
  .mentor-bio {
    font-size: 1.05rem;
  }
  
  .mentor-name {
    font-size: 1.7rem;
  }
}

@media (max-width: 1200px) {
  .about-images-grid {
    height: 740px;
    margin-right: 15px;
  }
  
  .about-content {
    padding: 1.8rem;
    padding-bottom: 2.5rem;
  }
  
  .section-description {
    font-size: 1.05rem;
    line-height: 1.7;
    margin-bottom: 0;
  }
  
  .about-content-top {
    margin-bottom: 15px;
  }
  
  .mentor-section {
    padding: 1.8rem;
    margin-bottom: 25px;
  }
  
  .mentor-heading {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
  }
  
  .mentor-image {
    width: 170px;
    height: 170px;
  }
  
  .mentor-name {
    font-size: 1.6rem;
  }
  
  .mentor-bio {
    font-size: 1rem;
    line-height: 1.6;
  }
  
  .about-section .btn-primary {
    padding: 10px 25px;
    font-size: 1rem;
  }
}

@media (max-width: 991px) {
  .hero {
    height: 95vh; /* Increased from 90vh */
    min-height: 650px; /* Increased from 600px */
    max-height: 800px; /* Increased from 700px */
    margin-bottom: 0;
    margin-top: 70px; /* Adjusted for smaller screens */
  }
  
  .hero-video {
    height: 100%;
    object-fit: cover; /* Back to cover */
    object-position: center; /* Keep centered */
    transform: scale(1.1) translateY(50px); /* Increased scale and translateY to move video down more significantly */
  }
  
  .hero-content {
    padding-top: calc(18vh); /* Increased from 10vh */
    margin-top: 2rem; /* Added margin-top */
  }

  .tagline-container {
    height: 8rem; /* Reduced from 10rem */
    margin-top: 3rem; /* Keep this to maintain position */
    margin-bottom: 1rem; /* Decreased from 1.5rem to reduce gap with subtitle */
  }
}

@media (max-width: 768px) {
  .hero {
    height: 95vh; /* Increased from 90vh */
    min-height: 600px; /* Increased from 550px */
    max-height: 750px; /* Increased from 650px */
    margin-bottom: 0;
    margin-top: 60px; /* Adjusted for smaller screens */
  }
  
  .hero-video {
    height: 100%;
    object-fit: cover; /* Back to cover */
    object-position: center;
    transform: scale(1.1) translateY(40px); /* Increased scale and translateY to move video down more significantly */
  }
  
  .hero-content {
    padding-top: calc(16vh); /* Increased from 8vh */
    margin-top: 1.5rem; /* Added margin-top */
  }

  .hero-tagline {
    font-size: 2.8rem; /* Decreased from 3.2rem */
    font-weight: 600; /* Decreased from 700 */
  }
  
  .tagline-container::before,
  .tagline-container::after,
  .hero-tagline::before {
    font-size: 2.8rem; /* Decreased from 3.2rem */
    font-weight: 600; /* Decreased from 700 */
  }
  
  .tagline-container::after {
    top: 3.1rem; /* Adjusted from 3.6rem for smaller font */
  }
  
  .hero-tagline::before {
    top: 6.2rem; /* Adjusted from 7.2rem for smaller font */
  }

  .hero h2 {
    font-size: 1.1rem; /* Decreased from 1.2rem */
    margin-bottom: 2rem; /* Space before buttons */
    margin-top: 1rem; /* Reduced from 2rem to decrease space after animated text */
    font-weight: 400; /* Decreased from 500 */
  }

  .hero-buttons {
    margin-top: 4rem; /* Adjusted to maintain overall spacing */
    margin-bottom: 2rem;
  }

  .hero .btn {
    padding: 12px 30px;
    font-size: 0.9rem;
  }
}

@media (max-width: 576px) {
  .hero {
    height: 95vh; /* Increased from 90vh */
    min-height: 550px; /* Increased from 500px */
    max-height: 650px; /* Increased from 600px */
    margin-bottom: 0;
    margin-top: 60px; /* Adjusted for mobile screens */
  }
  
  .hero-video {
    height: 100%;
    object-fit: cover; /* Back to cover */
    object-position: center;
    transform: scale(1.15) translateY(30px); /* Increased scale and adjusted translateY for mobile */
  }
  
  .hero-content {
    padding-top: calc(14vh); /* Increased from 6vh */
    margin-top: 1rem; /* Added margin-top */
  }

  .hero-tagline {
    font-size: 2.2rem; /* Decreased from 2.5rem */
    font-weight: 600; /* Decreased from 700 */
  }
  
  .tagline-container {
    height: 8rem; /* Reduced from 10rem */
    margin-top: 3rem; /* Keep this to maintain position */
    margin-bottom: 1rem; /* Decreased from 1.5rem to reduce gap with subtitle */
  }
  
  .tagline-container::before,
  .tagline-container::after,
  .hero-tagline::before {
    font-size: 2.2rem; /* Decreased from 2.5rem */
    font-weight: 600; /* Decreased from 700 */
  }
  
  .tagline-container::after {
    top: 2.4rem; /* Adjusted from 2.8rem for smaller font */
  }
  
  .hero-tagline::before {
    top: 4.8rem; /* Adjusted from 5.6rem for smaller font */
  }

  .hero h2 {
    font-size: 1rem; /* Decreased from 1.2rem */
    margin-bottom: 1.5rem; /* Space before buttons */
    margin-top: 0.75rem; /* Reduced from 1.5rem to decrease space after animated text */
    font-weight: 400; /* Decreased from 500 */
  }

  .hero-buttons {
    flex-direction: column;
    gap: 1rem;
    margin-top: 3.5rem; /* Adjusted to maintain overall spacing */
  }

  .hero .btn {
    padding: 10px 24px;
    font-size: 0.85rem;
  }
}

/* Clients Section */
.clients-section {
  position: relative;
  padding: 5rem 0;
  overflow: hidden;
  background-color: var(--bg-primary);
}

.clients-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url('../assets/images/pattern-bg.png');
  background-size: cover;
  background-position: center;
  opacity: 0.04;
  z-index: 0;
}

.clients-carousel-container {
  position: relative;
  overflow: hidden;
  width: 100%;
  padding: 20px 0;
  z-index: 1;
  max-width: 100%;
}

.clients-carousel {
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding: 10px 0;
  width: auto;
  white-space: nowrap;
  will-change: transform;
  overflow: visible;
}

.client-row {
  display: flex;
  gap: 20px;
  margin: 0 -10px;
  width: max-content;
}

.client-row:first-child {
  animation: infiniteScrollAlternate 40s linear infinite alternate;
}

.client-row:last-child {
  animation: infiniteScrollAlternate 40s linear infinite alternate-reverse;
}

@keyframes infiniteScrollAlternate {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(calc(-50%));
  }
}

@keyframes infiniteScrollReverse {
  from {
    transform: translateX(calc(-50%));
  }
  to {
    transform: translateX(0);
  }
}

.client-logo-wrapper {
  padding: 10px !important;
  margin: 5px !important;
  min-width: 170px;
  height: 110px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.client-logo {
  max-width: 165px;
  max-height: 60px !important;
  transition: all 0.3s ease;
}

.clients-carousel-container, .ceo-features-carousel-container {
  margin-top: 10px !important;
  margin-bottom: 10px !important;
}

.client-row {
  margin-bottom: 10px !important;
}

/* Remove hover effects from client logos */
.client-logo-wrapper:hover, .client-logo:hover {
  transform: none !important;
  filter: none !important;
  opacity: 1 !important;
  box-shadow: none !important;
  scale: 1 !important;
  transition: none !important;
}

/* Space for client section heading */
.clients-section .text-center {
  margin-top: 25px;
}

/* Feature logos */
.feature-logo-wrapper {
  padding: 10px !important;
  margin: 5px !important;
  min-width: 170px;
  height: 110px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

/* Dark mode adjustments for hero buttons */
.dark-theme .hero .btn-light {
  background: linear-gradient(45deg, var(--asset-red), var(--asset-purple), var(--asset-blue));
  background-size: 200% auto;
  color: white;
  border: none;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
  animation: gradient-shift 8s linear infinite;
  position: relative;
  z-index: 1;
  overflow: hidden;
}

/* Add a pseudo-element for hover effect to maintain gradient */
.dark-theme .hero .btn-light::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(45deg, var(--asset-red), var(--asset-purple), var(--asset-blue));
  background-size: 200% auto;
  opacity: 0;
  z-index: -1;
  transition: opacity 0.3s ease;
  animation: gradient-shift 6s linear infinite;
}

.dark-theme .hero .btn-light:hover::before {
  opacity: 1;
}

.dark-theme .hero .btn-light:hover {
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
  transform: translateY(-5px) scale(1.03);
}

/* Dark mode improvements for text visibility */
.dark-theme .section-description {
  color: #d2d2d2;
}

.dark-theme .hero h2 {
  color: white;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
}

.dark-theme .achievement-text {
  color: #d2d2d2;
}

.dark-theme .why-choose-item p {
  color: #d2d2d2;
}

.dark-theme .program-card p {
  color: #d2d2d2;
}

.dark-theme .mentor-bio {
  color: #d2d2d2;
}

.dark-theme .testimonial-content p {
  color: #d2d2d2;
  border-left: 3px solid rgba(var(--asset-blue-rgb), 0.5);
}

/* Improve contrast for avatar backgrounds in dark mode */
.dark-theme .testimonial-avatar.bg-light {
  background-color: rgba(255, 255, 255, 0.15) !important;
  color: #ffffff !important;
}

/* Enhancing form readability in dark mode */
.dark-theme .form-control {
  background-color: #333;
  border-color: #555;
  color: #ffffff;
}

.dark-theme .form-control::placeholder {
  color: #aaaaaa;
}

/* Ensure lead text is more visible */
.dark-theme .lead {
  color: #e0e0e0;
}

/* Dark mode improvements for About and Mentor sections */
.dark-theme .about-content {
  background-color: rgba(45, 45, 45, 0.85);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.25);
}

.dark-theme .mentor-section {
  background-color: rgba(45, 45, 45, 0.9);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.25);
}

.dark-theme .mentor-image {
  border-color: #444;
  box-shadow: 0 8px 20px rgba(var(--asset-blue-rgb), 0.5);
}

.dark-theme .mentor-name {
  background: linear-gradient(90deg, #ff3333, #3366ff);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.dark-theme .about-section .btn-primary,
.dark-theme .program-card .btn,
.dark-theme .contact-form .btn-primary {
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
}

/* Improve section heading visibility in dark mode */
.dark-theme .section-heading {
  color: #ffffff;
}

/* Enhance client logo visibility in dark mode */
.dark-theme .client-logo {
  filter: brightness(1.8);
}

.dark-theme .client-logo-wrapper:hover .client-logo {
  filter: brightness(1.8) grayscale(0);
}

/* Enhance Programs Section for Dark Mode */
.dark-theme .programs-section {
  background-color: var(--bg-primary);
  position: relative;
  margin-top: 0 !important;
}

.dark-theme .programs-section::before {
  opacity: 0.05;
}

.dark-theme .program-card {
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3);
}

.dark-theme .program-card:hover {
  transform: translateY(-15px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
}

.dark-theme .program-card-img::before {
  background: linear-gradient(to top, 
    rgba(0, 0, 0, 0.7) 0%, 
    rgba(0, 0, 0, 0.3) 25%, 
    rgba(0, 0, 0, 0.1) 50%);
}

.dark-theme .program-card h3 {
  color: white;
  text-shadow: 0 2px 5px rgba(0, 0, 0, 0.7);
}

.dark-theme .program-card .card-body::after {
  background: linear-gradient(to right, 
    var(--asset-red), 
    var(--asset-blue));
  height: 4px;
}

.dark-theme .program-card .btn {
  background: linear-gradient(45deg, 
    #3d8bfd, 
    var(--asset-purple));
  border: none;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
}

.dark-theme .program-card .btn:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 25px rgba(0, 0, 0, 0.5);
}

/* CEO Features Carousel */
.ceo-features-section {
  position: relative;
  padding: 3rem 0;
  overflow: hidden;
  background-color: var(--bg-primary);
}

.ceo-features-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url('../assets/images/pattern-bg.png');
  background-size: cover;
  background-position: center;
  opacity: 0.04;
  z-index: 0;
}

.ceo-features-carousel-container {
  position: relative;
  overflow: hidden;
  width: 100%;
  padding: 20px 0;
  z-index: 1;
}

.ceo-features-carousel {
  display: flex;
  animation: infiniteScrollAlternate 35s linear infinite alternate;
  padding: 10px 0;
  width: auto;
  white-space: nowrap;
  will-change: transform;
  margin: 0 -10px;
}

.ceo-features-carousel-duplicate {
  display: none;
}

.feature-logo-wrapper {
  padding: 10px !important;
  padding: 15px;
  margin: 0 15px;
  min-width: 150px;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--card-bg);
  border-radius: 8px;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
  opacity: 0.8;
  transform: scale(0.95);
  flex-shrink: 0;
}

.feature-logo {
  max-width: 220px;
  max-height: 70px;
  transition: all 0.3s ease;
}

/* Dark mode improvements for CEO featured logos */
.dark-theme .feature-logo-wrapper {
  background-color: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(5px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.dark-theme .feature-logo {
  filter: brightness(1.5) contrast(1.2);
  opacity: 0.9;
  mix-blend-mode: normal;
}

.dark-theme .feature-logo-wrapper:hover {
  background-color: rgba(255, 255, 255, 0.2);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
  transform: scale(1);
  opacity: 1;
}

.dark-theme .feature-logo-wrapper:hover .feature-logo {
  filter: brightness(1.8) contrast(1.2);
  opacity: 1;
}

/* Specific adjustments for dark logos */
.dark-theme .feature-logo[src*="Josh_Talk_Logo"],
.dark-theme .feature-logo[src*="Dainik_Bhaskar_Logo"],
.dark-theme .feature-logo[src*="DJ_logo"],
.dark-theme .feature-logo[src*="pk_logo"],
.dark-theme .feature-logo[src*="daily-Hunt_Logo"],
.dark-theme .feature-logo[src*="Emoha_logo"],
.dark-theme .feature-logo[src*="bu2d_logo"],
.dark-theme .feature-logo[src*="stronicmedia_logo"],
.dark-theme .feature-logo[src*="demode_logo"] {
  filter: brightness(2) contrast(1.3);
  opacity: 0.95;
}

.dark-theme .feature-logo-wrapper:hover .feature-logo[src*="Josh_Talk_Logo"],
.dark-theme .feature-logo-wrapper:hover .feature-logo[src*="Dainik_Bhaskar_Logo"],
.dark-theme .feature-logo-wrapper:hover .feature-logo[src*="DJ_logo"],
.dark-theme .feature-logo-wrapper:hover .feature-logo[src*="pk_logo"],
.dark-theme .feature-logo-wrapper:hover .feature-logo[src*="daily-Hunt_Logo"],
.dark-theme .feature-logo-wrapper:hover .feature-logo[src*="Emoha_logo"],
.dark-theme .feature-logo-wrapper:hover .feature-logo[src*="bu2d_logo"],
.dark-theme .feature-logo-wrapper:hover .feature-logo[src*="stronicmedia_logo"],
.dark-theme .feature-logo-wrapper:hover .feature-logo[src*="demode_logo"] {
  filter: brightness(2.2) contrast(1.3);
  opacity: 1;
}

/* Dark Theme Specifics */
.dark-theme .card {
  background: var(--card-bg);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.dark-theme .feature-item {
  background: var(--card-bg);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15);
}

.dark-theme .program-objective {
  background: var(--card-bg);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15);
}

.dark-theme .table-row {
  background: var(--card-bg);
}

.dark-theme .focus-area {
  background: rgba(255, 255, 255, 0.05);
}

.dark-theme .special-opportunity {
  background: linear-gradient(135deg, rgba(var(--asset-red-rgb), 0.2), rgba(var(--asset-purple-rgb), 0.2));
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

/* Dark theme rule for why-choose-section header */
.dark-theme .why-choose-section .section-header {
  color: var(--text-primary); /* Keep original color for dark theme */
}

/* Dark theme scrollbar styling */

/* Large Image Section */
.large-image-section {
  position: relative;
  background-color: var(--bg-primary);
  overflow: hidden;
  padding-bottom: 0;
}

.large-image-container {
  position: relative;
  text-align: center;
  max-width: 1180px;
  margin: 0 auto;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
  border-radius: 15px;
  overflow: hidden;
  transition: all 0.3s ease;
  background-color: var(--bg-primary);
  padding: 10px 10px 0 10px;
}

.large-image-container:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.large-image-container img {
  max-width: calc(100% - 20px);
  height: auto;
  display: block;
  margin: 0 auto;
  margin-bottom: 0;
}

.light-mode-only, .dark-mode-only {
  line-height: 0;
}

.light-mode-only {
  display: block;
  position: relative;
  background-color: var(--bg-primary);
}

.dark-mode-only {
  display: none;
  position: relative;
  background-color: var(--bg-primary);
}

.dark-theme .light-mode-only {
  display: none;
}

.dark-theme .dark-mode-only {
  display: block;
}

/* Vignette effect for light mode */
.light-mode-only::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(
    circle at center,
    transparent 40%,
    var(--bg-primary) 120%
  );
  pointer-events: none;
}

/* Vignette effect for dark mode */
.dark-mode-only::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(
    circle at center,
    transparent 40%,
    var(--bg-primary) 120%
  );
  pointer-events: none;
}

.large-image-section .section-header {
  font-size: 2.2rem;
  font-weight: 700;
  background: linear-gradient(90deg, var(--asset-red), var(--asset-blue), var(--asset-purple));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  background-size: 200% auto;
  animation: gradient-shift 8s linear infinite;
}

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

/* Dark theme button styles */
.dark-theme .hero .btn-light:hover {
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
  transform: translateY(-5px) scale(1.03);
}

/* Add back the outline button styles */
.dark-theme .hero .btn-outline-light {
  background: rgba(255, 255, 255, 0.2);
  border: 2px solid rgba(255, 255, 255, 0.9);
  color: white;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.dark-theme .hero .btn-outline-light:hover {
  background: rgba(255, 255, 255, 0.3);
  transform: translateY(-5px) scale(1.03);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4);
}

/* Media query for larger screens to ensure video isn't cut off */
@media (min-width: 1600px) {
  .hero-video {
    object-fit: cover; /* Use cover for larger screens */
    transform: scale(1.08) translateY(60px); /* Increased scale and translateY for larger screens */
  }
}

/* Introduction to ASSET Section */
.intro-asset-section {
  position: relative;
  padding: 5rem 0;
  overflow: hidden;
}

.intro-asset-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, 
    rgba(var(--asset-red-rgb), 0.05) 0%, 
    rgba(var(--asset-blue-rgb), 0.05) 100%);
  z-index: 0;
}

.asset-title {
  color: var(--asset-blue);
  font-weight: 700;
}

.intro-content {
  position: relative;
  z-index: 1;
  padding: 2rem;
  background: rgba(255, 255, 255, 0.8);
  border-radius: 10px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease-in-out;
}

.dark-theme .intro-content {
  background: rgba(30, 32, 34, 0.8);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.intro-content:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
}

.feature-list {
  list-style: none;
  padding-left: 0;
  margin-top: 1.5rem;
}

.feature-list li {
  margin-bottom: 0.75rem;
  padding-left: 1.75rem;
  position: relative;
  font-weight: 500;
}

.feature-list li i {
  position: absolute;
  left: 0;
  top: 0.25rem;
}

.video-container {
  position: relative;
  z-index: 1;
  border-radius: 10px;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease-in-out;
  overflow: hidden;
}

.video-container:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.intro-video {
  width: 100%;
  height: auto;
  border-radius: 10px;
  background-color: #000;
}

/* Dark mode adjustments */
.dark-theme .intro-asset-section::before {
  background: linear-gradient(135deg, 
    rgba(var(--asset-red-rgb), 0.1) 0%, 
    rgba(var(--asset-blue-rgb), 0.1) 100%);
}

.dark-theme .feature-list li {
  color: rgba(255, 255, 255, 0.85);
}

@media (max-width: 991px) {
  .intro-asset-section {
    padding: 3rem 0;
  }
  
  .intro-content {
    margin-bottom: 2rem;
  }
}

@media (max-width: 768px) {
  .intro-content {
    padding: 1.5rem;
  }
  
  .feature-list li {
    font-size: 0.95rem;
  }
}

/* Add specific styles for screens below 600px to fix mentor card distortion */
@media (max-width: 600px) {
  .mentor-section {
    padding: 1.5rem 1rem;
    margin-bottom: 20px;
  }
  
  .mentor-heading {
    font-size: 1.1rem;
    margin-bottom: 0.8rem;
  }
  
  .mentor-image {
    width: 140px;
    height: 140px;
  }
  
  .mentor-image::after {
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    border-width: 1px;
  }
  
  .mentor-image-container {
    margin-bottom: 15px;
  }
  
  .mentor-name {
    font-size: 1.2rem;
    margin-bottom: 0.3rem;
  }
  
  .mentor-bio {
    font-size: 0.8rem;
    line-height: 1.4;
    max-width: 100%;
  }
  
  .about-content {
    padding: 1.5rem;
  }
  
  .about-section .btn-primary {
    padding: 10px 20px;
    font-size: 0.9rem;
  }
}

/* Even smaller screens */
@media (max-width: 450px) {
  .mentor-section {
    padding: 1rem 0.8rem;
    margin-bottom: 15px;
    border-radius: 8px; /* Slightly smaller border radius */
    border-left-width: 2px;
    max-width: 100%;
    box-sizing: border-box;
    overflow: hidden; /* Critical: prevent content overflow */
    display: flex;
    flex-direction: column;
    align-items: center;
  }
  
  .mentor-image-container {
    margin-bottom: 10px;
    padding: 0;
    width: 100%;
    display: flex;
    justify-content: center;
  }
  
  .mentor-image {
    width: 110px; /* Slightly larger width */
    height: auto; /* Let height adjust proportionally */
    overflow: hidden;
    border-width: 1px;
    margin: 0 auto;
    box-shadow: 0 5px 15px rgba(var(--asset-blue-rgb), 0.25);
  }
  
  .mentor-image img {
    width: 100%;
    height: auto;
    object-fit: cover;
    object-position: center top;
  }
  
  .mentor-name {
    font-size: 1rem;
    margin-bottom: 0.2rem;
    padding: 0 0.25rem;
    width: 100%;
    text-align: center;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: normal; /* Allow wrapping */
    word-break: break-word;
  }
  
  .mentor-bio {
    font-size: 0.7rem;
    line-height: 1.3;
    padding: 0 0.5rem;
    margin: 0 auto;
    width: 100%;
    text-align: center;
    overflow-wrap: break-word;
    word-wrap: break-word;
    display: -webkit-box;
    -webkit-line-clamp: 6; /* Limit to 6 lines */
    -webkit-box-orient: vertical;
    overflow: hidden;
  }
  
  .mentor-heading {
    font-size: 1rem;
    margin-bottom: 0.7rem;
    text-align: center;
    width: 100%;
  }
  
  .about-content {
    padding: 1.2rem 0.8rem;
    overflow: hidden;
  }
}

/* Extra small screens */
@media (max-width: 375px) {
  .mentor-image {
    width: 100px;
    height: auto;
  }
  
  .mentor-name {
    font-size: 0.9rem;
    margin-bottom: 0.15rem;
  }
  
  .mentor-bio {
    font-size: 0.65rem;
    line-height: 1.2;
    padding: 0 0.4rem;
  }
  
  .mentor-section {
    padding: 0.8rem 0.6rem;
    border-left-width: 1px;
  }
  
  .about-content {
    padding: 0.8rem 0.6rem;
  }
}

/* Add specific styles for screens between 500px and 601px */
@media (min-width: 501px) and (max-width: 600px) {
  .mentor-section {
    padding: 1.5rem 1.2rem;
    margin-bottom: 20px;
  }
  
  .mentor-image-container {
    margin-bottom: 16px;
    display: flex;
    justify-content: center;
  }
  
  .mentor-image {
    width: 150px;
    height: 180px; /* Taller image to prevent cutting */
    overflow: hidden;
    border-width: 2px;
  }
  
  .mentor-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top; /* Focus on top part of image */
  }
  
  .mentor-name {
    font-size: 1.2rem;
    margin-bottom: 0.4rem;
  }
  
  .mentor-bio {
    font-size: 0.85rem;
    line-height: 1.5;
    max-width: 100%;
  }
  
  .about-content {
    padding: 1.6rem 1.4rem;
    overflow: hidden; /* Prevent content from overflowing */
  }
}

/* Add specific styles for screens between 601px and 768px */
@media (min-width: 601px) and (max-width: 768px) {
  .mentor-section {
    padding: 1.8rem 1.5rem;
    margin-bottom: 25px;
  }
  
  .mentor-image-container {
    margin-bottom: 20px;
    display: flex;
    justify-content: center;
  }
  
  .mentor-image {
    width: 160px;
    height: 190px; /* Taller image to prevent cutting */
    overflow: hidden;
    border-width: 3px;
  }
  
  .mentor-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center; /* Center the image */
  }
  
  .mentor-name {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
  }
  
  .mentor-bio {
    font-size: 0.9rem;
    line-height: 1.5;
    max-width: 95%;
    margin: 0 auto;
  }
  
  .about-content {
    padding: 1.8rem 1.5rem;
    overflow: hidden; /* Prevent content from overflowing */
  }
}

/* Add styles for screens between 400px and 500px */
@media (min-width: 401px) and (max-width: 500px) {
  .mentor-section {
    padding: 1.2rem 1rem;
    margin-bottom: 18px;
    overflow: hidden;
    border-left-width: 2px;
  }
  
  .mentor-image-container {
    margin-bottom: 12px;
    display: flex;
    justify-content: center;
  }
  
  .mentor-image {
    width: 120px;
    height: 150px; /* Increased height to prevent cutting */
    overflow: hidden;
    border-width: 2px;
    margin: 0 auto;
  }
  
  .mentor-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
  }
  
  .mentor-name {
    font-size: 1.1rem;
    margin-bottom: 0.3rem;
    text-align: center;
  }
  
  .mentor-bio {
    font-size: 0.75rem;
    line-height: 1.3;
    max-width: 95%;
    margin: 0 auto;
    text-align: center;
  }
  
  .about-content {
    padding: 1.4rem 1.2rem;
    overflow: hidden;
  }
}

/* Styles for screens below 400px */
@media (max-width: 400px) {
  .mentor-image {
    width: 85px; /* Slightly smaller width */
    height: 115px; /* Maintained taller height ratio */
  }
  
  .mentor-section {
    padding: 0.9rem 0.5rem;
  }
  
  .mentor-bio {
    font-size: 0.65rem;
    line-height: 1.2;
  }
  
  .about-content {
    padding: 0.8rem 0.5rem;
  }
}

/* Improve mentor image display for mobile devices (L, M, S sizes) */
@media (max-width: 425px) {
  /* Main container tweaks */
  .about-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 1.2rem 0.8rem;
    overflow: visible;
    width: 100%;
    box-sizing: border-box;
  }
  
  /* Center the mentor card within the about content */
  .mentor-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 0 auto;
    max-width: 90%;
    border-left: 3px solid var(--asset-blue);
    border-radius: 10px;
    padding: 1.2rem 1rem;
    background-color: rgba(var(--asset-blue-rgb), 0.05);
    transition: all 0.3s ease;
    overflow: hidden;
  }
  
  .mentor-image-container {
    width: 100%;
    display: flex;
    justify-content: center;
    margin: 0 auto 12px auto;
    padding: 0;
  }
  
  .mentor-image {
    width: 120px;
    height: auto;
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    margin: 0 auto;
    border: 2px solid var(--asset-blue);
    transition: all 0.3s ease;
    box-shadow: 0 8px 20px rgba(var(--asset-blue-rgb), 0.2);
  }
  
  .mentor-image::after,
  .mentor-image::before {
    border-radius: 8px;
  }
  
  .mentor-image img {
    width: 100%;
    height: auto;
    object-fit: cover;
    object-position: center;
    transform: scale(1);
    transition: transform 0.5s ease;
    display: block;
    margin: 0 auto;
  }
  
  .mentor-heading {
    font-size: 1.1rem;
    color: var(--asset-blue);
    margin-bottom: 0.8rem;
    position: relative;
    font-weight: 700;
    width: 100%;
    text-align: center;
  }
  
  .mentor-heading::after {
    content: "";
    position: absolute;
    bottom: -5px;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 2px;
    background-color: var(--asset-blue);
  }
  
  .mentor-name {
    font-size: 1.05rem;
    font-weight: 600;
    margin-bottom: 0.3rem;
    color: var(--asset-red);
    text-align: center;
    padding: 0 0.5rem;
    width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: normal;
  }
  
  .mentor-bio {
    font-size: 0.75rem;
    line-height: 1.4;
    color: rgba(var(--body-color-rgb), 0.8);
    max-width: 100%;
    text-align: center;
    margin: 0 auto;
    padding: 0 0.5rem;
    display: -webkit-box;
    -webkit-line-clamp: 6;
    -webkit-box-orient: vertical;
    overflow: hidden;
    word-break: normal;
  }
}

/* Adjustments for medium-sized phones */
@media (max-width: 375px) {
  .mentor-section {
    padding: 0.9rem 0.6rem;
    width: 96%;
    max-width: 96%;
  }
  
  .mentor-image {
    width: 90px;
    height: 120px;
  }
  
  .mentor-heading {
    font-size: 0.95rem;
    margin-bottom: 0.6rem;
  }
  
  .mentor-name {
    font-size: 0.9rem;
    margin-bottom: 0.25rem;
  }
  
  .mentor-bio {
    font-size: 0.65rem;
    line-height: 1.25;
    -webkit-line-clamp: 5;
    width: 88%;
  }
}

/* Adjustments for smallest phones */
@media (max-width: 320px) {
  .mentor-section {
    padding: 0.8rem 0.4rem;
    width: 95%;
    max-width: 95%;
  }
  
  .mentor-image {
    width: 80px;
    height: 110px;
  }
  
  .mentor-name {
    font-size: 0.85rem;
    width: 85%;
  }
  
  .mentor-bio {
    font-size: 0.6rem;
    line-height: 1.2;
    -webkit-line-clamp: 4;
    width: 85%;
  }
}

/* Mobile optimizations for client logos */
@media (max-width: 767px) {
  .client-logo-wrapper {
    min-width: 120px;
    height: 90px;
    padding: 8px !important;
    margin: 3px !important;
  }
  
  .client-logo {
    max-width: 110px;
    max-height: 45px !important;
  }
}

@media (max-width: 576px) {
  .client-logo-wrapper {
    min-width: 100px;
    height: 80px;
    padding: 6px !important;
    margin: 2px !important;
  }
  
  .client-logo {
    max-width: 90px;
    max-height: 40px !important;
  }
}

@media (max-width: 400px) {
  .client-logo-wrapper {
    min-width: 80px;
    height: 70px;
  }
  
  .client-logo {
    max-width: 75px;
    max-height: 35px !important;
  }
}

/* Why Asset Section */
:root {
  --cards: 5;
  --cardHeight: auto;
  --cardTopPadding: 0;
  --cardMargin: 5px;
  --card-stack-offset: 50px; /* Increased from 30px */
  --card-header-height: 60px; /* Increased from 40px */
}

.why-section {
  position: relative;
  overflow: hidden;
  background-color: var(--bg-primary);
  padding-bottom: 40px; /* Further reduced from 60px */
}

.why-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url('../assets/images/pattern-bg.png');
  background-size: cover;
  background-position: center;
  opacity: 0.04;
  z-index: 0;
}

.left-fixed {
  align-self: flex-start;
  display: flex;
  flex-direction: column;
  align-items: flex-start; /* Changed from center to flex-start for left alignment */
  padding-top: 15px;
}

.left-fixed .text-left {
  text-align: left;
  width: 100%;
  margin-bottom: 1.5rem;
}

.left-fixed .section-header {
  text-align: left;
  padding-bottom: 0.5rem; /* Reduced from 1rem */
  margin-bottom: 1rem;
}

.left-fixed .section-header::after {
  left: 0; /* Align the underline to the left instead of center */
  transform: translateX(0); /* Remove the centering transform */
  width: 60px; /* Slightly shorter line for left alignment */
}

.left-fixed .lead {
  font-size: 0.95rem; /* Slightly smaller font size */
  line-height: 1.5;
  margin-bottom: 0.5rem;
}

.left-fixed .section-heading {
  align-self: center; /* Center the image */
  width: 100%;
}

.left-fixed img {
  transition: all 0.3s ease;
  max-width: 85%;
  border-radius: 15px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  margin: 0.5rem auto;
  display: block; /* Ensure image is centered */
}

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

.dark-theme .left-fixed img {
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.dark-theme .left-fixed img:hover {
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
}

.right-scroll {
  height: 45vh; /* Further reduced from 60vh */
  padding-bottom: 200px; /* Further reduced from 300px */
  overflow-y: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
  position: relative;
  padding: 0.6rem; /* Further reduced from 0.8rem */
}

/* Hide scrollbar for Chrome, Safari, and Opera */
.right-scroll::-webkit-scrollbar {
  display: none;
}

#cards {
  list-style: none;
  padding: 0;
  margin: 0;
  position: relative;
  padding-bottom: 40px; /* Further reduced from 60px */
}

/* Fix card layout to prevent overlapping */
.card {
  margin-bottom: 30px;
  background: transparent;
  border: none;
  box-shadow: none;
  padding: 0;
  transition: transform 0.3s ease;
  position: sticky; /* Restore sticky positioning for stacked effect */
  overflow: visible;
  z-index: 1;
}

/* Reset and restore staggered positioning with proper z-index */
#card1 { 
  z-index: 1;
  top: 0px;
  margin-top: 0;
  margin-bottom: 60px;
}

#card2 { 
  z-index: 2;
  top: 60px;
  margin-top: 0;
  margin-bottom: 60px;
}

#card3 { 
  z-index: 3;
  top: 120px;
  margin-top: 0;
  margin-bottom: 60px;
}

#card4 { 
  z-index: 4;
  top: 180px;
  margin-top: 0;
  margin-bottom: 60px;
}

#card5 {
  z-index: 5;
  top: 240px;
  margin-top: 0;
  margin-bottom: 60px;
}

/* Enhance card visibility with a slight background for the headings */
.card h2 {
  margin-bottom: 15px;
  padding: 1rem 0;
  z-index: 30; 
  position: relative;
  min-height: 50px;
  display: flex;
  align-items: center;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-primary);
  transition: all 0.3s ease;
  background: none;
  box-shadow: none;
}

/* For dark theme headings */
.dark-theme .card h2 {
  background-color: rgba(var(--bg-primary-rgb), 0.97); /* Subtle background for dark mode too */
  color: var(--text-primary);
}

/* Fix card body connection to heading with clear top border */
.card-body {
  padding: 1.5rem; /* Increased from 1.2rem */
  border-radius: 12px;
  background: var(--card-bg);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  border: 1px solid rgba(var(--asset-blue-rgb), 0.1);
  border-top: 6px solid var(--asset-blue);
  margin-top: 10px; /* Added margin to separate from heading */
  transition: all 0.3s ease;
  overflow: hidden;
  position: relative;
  isolation: isolate;
}

/* Ensure heading always stays visible and attached to its card */
.card h2, .card .card-body {
  position: relative;
  width: 100%;
}

/* Increase scroll container height to accommodate the increased spacing */
.right-scroll {
  height: 65vh;
  padding-bottom: 400px;
  overflow-y: auto;
  scrollbar-width: none;
  position: relative;
  padding: 1rem;
}

.card:hover {
  z-index: auto; /* Remove z-index change on hover */
}

.card:hover .card-body {
  transform: none; /* Remove transform on hover */
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1); /* Keep standard shadow */
}

.card-body:hover {
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1); /* Keep standard shadow */
  transform: none; /* Remove transform on hover */
}

.card-body::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, 
    rgba(var(--asset-blue-rgb), 0.03), 
    rgba(var(--asset-red-rgb), 0.03),
    rgba(var(--asset-purple-rgb), 0.03));
  z-index: -1;
  opacity: 0; /* Start with no opacity */
  transition: opacity 0.4s ease;
}

.card-body:hover::before {
  opacity: 1; /* Show subtle gradient on hover */
}

/* Subtle light glow effect on hover for card1 */
#card1 .card-body:hover::before {
  background: linear-gradient(135deg, 
    rgba(var(--asset-red-rgb), 0.05), 
    rgba(var(--asset-purple-rgb), 0.03));
}

/* Subtle light glow effect on hover for card2 */
#card2 .card-body:hover::before {
  background: linear-gradient(135deg, 
    rgba(var(--asset-blue-rgb), 0.05), 
    rgba(var(--asset-purple-rgb), 0.03));
}

/* Subtle light glow effect on hover for card3 */
#card3 .card-body:hover::before {
  background: linear-gradient(135deg, 
    rgba(var(--asset-yellow-rgb), 0.05), 
    rgba(var(--asset-red-rgb), 0.03));
}

/* Subtle light glow effect on hover for card4 */
#card4 .card-body:hover::before {
  background: linear-gradient(135deg, 
    rgba(var(--asset-purple-rgb), 0.05), 
    rgba(var(--asset-blue-rgb), 0.03));
}

/* Subtle light glow effect on hover for card5 */
#card5 .card-body:hover::before {
  background: linear-gradient(135deg, 
    rgba(var(--asset-green-rgb), 0.05), 
    rgba(var(--asset-blue-rgb), 0.03));
}

/* Remove any lingering effects on non-active cards */
.card:not(.active) .card-body:hover {
  transform: none; /* Remove transform on hover */
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1); /* Keep standard shadow */
}

.dark-theme .card-body {
  background: var(--card-bg);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.dark-theme .card-body:hover {
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.25);
}

.card h2 .diamond-icon {
  color: var(--asset-blue);
  margin-right: 8px;
  font-size: 0.9em;
}

.card h2::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 50px;
  height: 3px;
  background: linear-gradient(90deg, var(--asset-blue), var(--asset-red));
  border-radius: 3px;
  display: none; /* Remove the underline completely */
}

.card ul {
  list-style: none;
  padding-left: 10px;
}

.card ul li {
  margin-bottom: 0.5rem;
  position: relative;
  padding-left: 1.2rem;
  color: var(--text-secondary);
}

.card {
  margin-bottom: 30px;
}

/* Refined card spacing for the stacking effect */
.right-scroll {
  height: 90vh;
  padding-bottom: 500px; /* Increased from 400px to accommodate the increased spacing */
  overflow-y: auto;
  scrollbar-width: none;
  position: relative;
  padding: 1rem;
}

.card-content {
  opacity: 1;
  overflow: visible;
  max-height: none;
  transform: none;
  transition: all 0.3s ease;
}

.card.active .card-content {
  opacity: 1;
  transform: translateY(0);
  max-height: none;
}

/* Keep the content always visible, even for non-active cards */
.card:not(.active) .card-content {
  display: block;
  opacity: 1;
  max-height: none;
}

.card:hover h2 {
  color: var(--asset-blue);
}

/* Ensure dark mode headline hover is consistent with light mode */
.dark-theme .card:hover h2 {
  color: var(--asset-blue);
}

/* Specific headline hover colors to match each card's border */
#card1:hover h2 {
  color: var(--asset-red);
}

#card2:hover h2 {
  color: var(--asset-blue);
}

#card3:hover h2 {
  color: var(--asset-yellow);
}

#card4:hover h2 {
  color: var(--asset-purple);
}

#card5:hover h2 {
  color: var(--asset-green);
}

/* Same specific hover colors for dark mode */
.dark-theme #card1:hover h2 {
  color: var(--asset-red);
}

.dark-theme #card2:hover h2 {
  color: var(--asset-blue);
}

.dark-theme #card3:hover h2 {
  color: var(--asset-yellow);
}

.dark-theme #card4:hover h2 {
  color: var(--asset-purple);
}

.dark-theme #card5:hover h2 {
  color: var(--asset-green);
}

/* Responsive adjustments */
@media (max-width: 992px) {
  .why-section {
    padding: 1.5rem 0; /* Further reduced from 2rem 0 */
  }
  
  .left-fixed {
    margin-bottom: 1.5rem;
    align-items: center; /* Center align on mobile */
  }
  
  .left-fixed .text-left {
    text-align: center;
    margin-bottom: 1rem;
  }
  
  .left-fixed .section-header {
    text-align: center;
  }
  
  .left-fixed .section-header::after {
    left: 50%; /* Center the underline on mobile */
    transform: translateX(-50%);
  }
  
  .left-fixed img {
    max-width: 70%; /* Smaller image on mobile */
    margin: 0 auto 1rem;
  }
  
  .left-fixed .lead {
    text-align: center;
  }
  
  .right-scroll {
    height: auto;
    margin-top: 1rem; /* Further reduced from 1.5rem */
    overflow: visible;
  }
  
  .card {
    position: relative;
    top: 0 !important;
    margin-bottom: 1.2rem; /* Further reduced from 1.5rem */
    margin-top: 0 !important;
  }
  
  #card1, #card2, #card3, #card4, #card5 {
    top: 0 !important;
    z-index: 1;
  }
  
  #cards {
    display: flex;
    flex-direction: column;
    gap: 1rem; /* Further reduced from 1.2rem */
  }
  
  .card-body {
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    padding-top: 1rem !important; /* Further reduced from 1.2rem */
  }
  
  /* Show all card content on mobile */
  .card-content {
    max-height: none;
    opacity: 1;
    transform: translateY(0);
  }
  
  /* Reset card heading styles for mobile */
  .card h2 {
    height: auto;
    margin-bottom: 0.8rem; /* Reduced from 1rem */
    display: block;
  }
}

.card.active .card-body {
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.15);
  transform: translateY(-5px);
  border-color: rgba(var(--asset-blue-rgb), 0.3);
}

.dark-theme .card.active .card-body {
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.25);
  border-color: rgba(var(--asset-blue-rgb), 0.5);
}

/* Add margin after the last card */
#card5 {
  margin-bottom: 60px;
}

.dark-theme .card ul li {
  color: var(--text-secondary);
}

/* Dark theme card styles */
.dark-theme .card h2 {
  background-color: transparent;
  color: var(--text-primary);
}

.dark-theme .card-body {
  background: var(--card-bg);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.dark-theme .card-body:hover {
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.25);
}

.dark-theme #card1 .card-body, .dark-theme #card2 .card-body, 
.dark-theme #card3 .card-body, .dark-theme #card4 .card-body, 
.dark-theme #card5 .card-body {
  border-top: 4px solid rgba(var(--asset-blue-rgb), 0.7);
}

.dark-theme #card1 .card-body {
  border-top-color: var(--asset-red);
}

.dark-theme #card2 .card-body {
  border-top-color: var(--asset-blue);
}

.dark-theme #card3 .card-body {
  border-top-color: var(--asset-yellow);
}

.dark-theme #card4 .card-body {
  border-top-color: var(--asset-purple);
}

.dark-theme #card5 .card-body {
  border-top-color: var(--asset-green);
}

/* Card color schemes with increased border width */
#card1 .card-body {
  border-top: 6px solid var(--asset-red);
}

#card2 .card-body {
  border-top: 6px solid var(--asset-blue);
}

#card3 .card-body {
  border-top: 6px solid var(--asset-yellow);
}

#card4 .card-body {
  border-top: 6px solid var(--asset-purple);
}

#card5 .card-body {
  border-top: 6px solid var(--asset-green);
}
  