:root {
  --primary-color: #1e3a8a;
  --accent-color: #10b981;
  --background-color: #f8fafc;
  --text-color: #111827;
  --light-gray: #f3f4f6;
  --dark-gray: #6b7280;
}

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

body {
  font-family: "Poppins", sans-serif;
  line-height: 1.6;
  color: var(--text-color);
  overflow-x: hidden;
  touch-action: pan-y !important;
}

/* Fix body scrolling on mobile */
html,
body {
  overflow-x: hidden !important;
  overflow-y: auto !important;
  position: relative !important;
}

/* ================= ENHANCED NAVBAR ================= */
.navbar {
  background: linear-gradient(135deg, #1e3a8a 0%, #3b82f6 100%) !important;
  transition: all 0.3s ease;
  z-index: 1030;
  box-shadow: 0 4px 20px rgba(30, 58, 138, 0.3);
  padding: 0.8rem 0;
}

.navbar .container-fluid {
  padding-left: 3rem;
  padding-right: 3rem;
}

.navbar-brand {
  font-size: 1.4rem;
  font-weight: 700;
  color: white !important;
  display: flex;
  align-items: center;
  transition: all 0.3s ease;
}

.navbar-brand img {
  object-fit: contain;
  height: 45px;
  width: auto;
  margin-right: 0.7rem;
  transition: all 0.3s ease;
}

.nav-link,
.dropdown-toggle {
  color: white !important;
  font-weight: 500;
  margin: 0 0.5rem;
  position: relative;
  transition: all 0.3s ease;
  padding: 0.5rem 1rem !important;
}

.nav-link:hover,
.dropdown-toggle:hover {
  color: #e0e7ff !important;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 8px;
}

.navbar-toggler {
  border: none;
  padding: 0.5rem;
}

.navbar-toggler:focus {
  box-shadow: none;
}

.navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba(255, 255, 255, 1)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

.dropdown-menu {
  border: none;
  box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
  border-radius: 0.5rem;
  background: white;
}

.dropdown-item {
  padding: 0.7rem 1.2rem;
  transition: all 0.3s ease;
  color: var(--text-color) !important;
}

.dropdown-item:hover {
  background: rgba(30, 58, 138, 0.1) !important;
  color: var(--primary-color) !important;
}

/* Mobile navbar fixes */
@media (max-width: 992px) {
  .navbar .container-fluid {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .navbar-brand {
    font-size: 1.2rem;
  }

  .navbar-brand img {
    height: 35px;
  }

  .navbar-collapse {
    background: rgba(30, 58, 138, 0.95);
    padding: 1.5rem;
    border-radius: 15px;
    margin-top: 10px;
    text-align: center;
    backdrop-filter: blur(10px);
  }

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

  .nav-link {
    padding: 1rem 1.5rem !important;
    width: 100%;
    text-align: center;
    border-radius: 8px;
    margin: 0.2rem 0;
  }

  .dropdown-menu {
    background: rgba(59, 130, 246, 0.95) !important;
    margin: 0.5rem 0;
    border: none !important;
    box-shadow: none !important;
    display: none !important;
    position: static !important;
    transform: none !important;
    width: 100% !important;
    border-radius: 10px;
  }

  .dropdown-menu.show {
    display: block !important;
  }

  .dropdown-item {
    color: white !important;
    padding: 0.75rem 1.5rem;
    border-radius: 0 !important;
  }

  .dropdown-item:hover {
    background: rgba(255, 255, 255, 0.1) !important;
    color: white !important;
  }

  .dropdown-divider {
    border-color: rgba(255, 255, 255, 0.2) !important;
    margin: 0.5rem 0;
  }
}

/* Navbar scroll effect */
.navbar.scrolled {
  background: linear-gradient(
    135deg,
    rgba(30, 58, 138, 0.95) 0%,
    rgba(59, 130, 246, 0.95) 100%
  ) !important;
  backdrop-filter: blur(10px);
}

/* ================= HERO SECTION ================= */
.hero-section-education {
  background: linear-gradient(
      90deg,
      rgb(196 240 249) 0%,
      rgb(255 255 255) 18%,
      rgb(163 226 239) 100%
    ),
    linear-gradient(rgba(14, 165, 233, 0.1) 1px, transparent 1px),
    linear-gradient(90deg, rgba(14, 165, 233, 0.1) 1px, transparent 1px);
  background-size: 100% 100%, 40px 40px, 40px 40px;
  background-position: 0 0, 0 0, 0 0;
  position: relative;
  overflow: hidden;
  padding: 30px 0 20px 0;
  min-height: 90vh;
}

.hero-bg-pattern {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: radial-gradient(
      circle at 25% 75%,
      rgba(14, 165, 233, 0.05) 0%,
      transparent 50%
    ),
    radial-gradient(
      circle at 75% 25%,
      rgba(56, 189, 248, 0.04) 0%,
      transparent 50%
    ),
    radial-gradient(
      circle at 50% 50%,
      rgba(125, 211, 252, 0.03) 0%,
      transparent 70%
    );
  z-index: 1;
}

.hero-content-education {
  position: relative;
  z-index: 2;
}

.trust-badge {
  display: inline-block;
  margin-bottom: 1.5rem;
}

.trust-text {
  background: rgba(14, 165, 233, 0.15);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(56, 189, 248, 0.3);
  color: #0c4a6e;
  padding: 0.6rem 1.2rem;
  border-radius: 50px;
  font-size: 0.9rem;
  font-weight: 600;
  box-shadow: 0 4px 15px rgba(14, 165, 233, 0.1);
}

.hero-title {
  font-size: 3rem;
  font-weight: 800;
  line-height: 1.1;
  color: #0f172a;
  margin-bottom: 2rem;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

@media (max-width: 767px) {
  .hero-title {
    font-size: 2.1rem;
    /* Adjust this value as needed */
    line-height: 1.3;
  }
}

.text-accent {
  color: #0e7490;
  background: linear-gradient(135deg, #0891b2 0%, #0e7490 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-size: 1.2rem;
  color: #334155;
  line-height: 1.6;
  font-weight: 500;
}

@media (max-width: 767px) {
  .hero-subtitle {
    font-size: 1rem;
    /* Slightly smaller text for mobile */
    line-height: 1.5;
    /* Adjusted line-height */
  }
}

.hero-features .feature-item {
  color: #1e293b;
  font-weight: 600;
  background: rgba(255, 255, 255, 0.8);
  padding: 0.7rem 1.2rem;
  border-radius: 12px;
  margin-bottom: 1rem;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(14, 165, 233, 0.15);
  box-shadow: 0 4px 12px rgba(14, 165, 233, 0.08);
  transition: all 0.3s ease;
}

.hero-features .feature-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(14, 165, 233, 0.15);
}

.hero-features .feature-item i {
  color: #0284c7;
  font-size: 1.1rem;
}

.hero-cta-buttons .btn {
  font-weight: 600;
  font-size: 1.1rem;
  padding: 1rem 2.5rem;
  transition: all 0.3s ease;
  border-radius: 50px;
}

.btn-primary {
  background: linear-gradient(135deg, #0284c7 0%, #0c4a6e 100%);
  border: none;
  color: white;
  box-shadow: 0 6px 20px rgba(2, 132, 199, 0.3);
}

.btn-primary:hover {
  background: linear-gradient(135deg, #0c4a6e 0%, #075985 100%);
  transform: translateY(-3px);
  box-shadow: 0 10px 30px rgba(2, 132, 199, 0.4);
  color: white;
}

.btn-outline-success {
  border: 2px solid #0891b2;
  color: #0c4a6e;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
}

.btn-outline-success:hover {
  background: #0891b2;
  border-color: #0891b2;
  color: white;
  transform: translateY(-3px);
  box-shadow: 0 10px 30px rgba(8, 145, 178, 0.3);
}

.hero-stats .stat-item {
  color: #1e293b;
}

.stat-number {
  font-size: 2.2rem;
  font-weight: 800;
  margin-bottom: 0.5rem;
  color: #0284c7;
  text-shadow: 0 2px 4px rgba(2, 132, 199, 0.1);
}

.stat-label {
  font-size: 0.9rem;
  color: #475569;
  margin: 0;
  font-weight: 500;
}

/* Hero Visual Elements */
.hero-visual {
  position: relative;
  z-index: 2;
}

.hero-image-container {
  position: relative;
  text-align: center;
}

.hero-main-image {
  width: 100%;
  max-width: 500px;
  height: auto;
  border-radius: 20px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
  transform: perspective(1000px) rotateY(-5deg);
  transition: transform 0.3s ease;
}

.hero-main-image:hover {
  transform: perspective(1000px) rotateY(0deg) scale(1.02);
}

/* Floating Elements in Hero */
.floating-element {
  position: absolute;
  background: white;
  border-radius: 15px;
  padding: 1rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  animation: float 3s ease-in-out infinite;
}

.success-badge {
  top: 10%;
  right: -10%;
  animation-delay: 0s;
}

.course-info {
  top: 60%;
  left: -15%;
  animation-delay: 1s;
}

.live-class {
  bottom: 20%;
  right: -5%;
  animation-delay: 2s;
}

.success-content,
.course-content,
.live-content {
  display: flex;
  align-items: center;
  min-width: 200px;
}

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

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

/* ================= ENHANCED APP SECTION ================= */
.app-showcase-section {
  background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
  position: relative;
  overflow: hidden;
  padding: 80px 0;
}

.section-badge .badge {
  font-size: 1rem;
  font-weight: 500;
  background: rgba(30, 58, 138, 0.1) !important;
  color: var(--primary-color) !important;
}

.app-features .feature-item {
  background: white;
  padding: 1.2rem;
  border-radius: 15px;
  margin-bottom: 1rem;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
  border: 1px solid rgba(0, 0, 0, 0.05);
}

.app-features .feature-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
}

.feature-icon-small {
  width: 45px;
  height: 45px;
  background: rgba(30, 58, 138, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.feature-icon-small i {
  font-size: 1.1rem;
  color: var(--primary-color);
}

/* ENHANCED DOWNLOAD BUTTONS */
.app-download-buttons h5 {
  color: #1e293b;
  margin-bottom: 1.5rem;
  font-weight: 700;
}

@media (max-width: 992px) {
  .app-download-buttons h5.fw-bold {
    text-align: center !important;
    margin-bottom: 2rem !important;
  }
}

.download-buttons-container {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 2rem;
}

.download-btn {
  display: flex;
  align-items: center;
  text-decoration: none;
  padding: 8px 16px;
  border-radius: 8px;
  transition: all 0.3s ease;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  min-width: 150px;
  height: 60px;
  border: 1px solid rgba(0, 0, 0, 0.1);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12);
  background: #000000;
  color: white;
}

.download-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  text-decoration: none;
  background: #1a1a1a;
  color: white;
}

.download-btn i {
  font-size: 24px;
  margin-right: 12px;
  color: white;
}

.download-text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
  text-align: left;
}

.download-text small {
  font-size: 10px;
  font-weight: 400;
  opacity: 0.9;
  margin-bottom: 2px;
}

.download-text strong {
  font-size: 14px;
  font-weight: 600;
  letter-spacing: -0.5px;
}

/* Desktop Version Button */
.desktop-version {
  margin-top: 20px;
}

.desktop-version p {
  font-size: 14px;
  margin-bottom: 10px;
  color: #6b7280;
}

.btn-outline-primary {
  border: 2px solid #3b82f6;
  color: #3b82f6;
  background: white;
  padding: 12px 25px;
  border-radius: 25px;
  font-weight: 600;
  font-size: 14px;
  transition: all 0.3s ease;
}

.btn-outline-primary:hover {
  background: #3b82f6;
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(59, 130, 246, 0.3);
}

.btn-outline-primary i {
  font-size: 16px;
}

/* App Mockup Container */
.app-mockup-container {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 600px;
  padding: 2rem 0;
}

.mockup-main {
  position: relative;
  z-index: 2;
  display: flex;
  justify-content: center;
}

.app-mockup-img {
  max-width: 600px;
  width: 100%;
  height: auto;
  filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.3));
  animation: float 4s ease-in-out infinite;
  border-radius: 20px;
}

/* Floating Feature Cards for App */
.mockup-features {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 3;
  pointer-events: none;
}

.floating-feature {
  position: absolute;
  animation: float 3s ease-in-out infinite;
}

.top-left {
  top: 15%;
  left: 5%;
  animation-delay: 0s;
}

.top-right {
  top: 12%;
  right: 5%;
  animation-delay: 1s;
}

.bottom-left {
  bottom: 30%;
  left: 2%;
  animation-delay: 2s;
}

.feature-card-mini {
  background: white;
  padding: 1rem 1.2rem;
  border-radius: 15px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
  display: flex;
  align-items: center;
  min-width: 160px;
  border: 1px solid rgba(0, 0, 0, 0.05);
}

.feature-card-mini i {
  font-size: 1.2rem;
  margin-right: 0.8rem;
  color: var(--primary-color);
}

.feature-card-mini p {
  font-size: 0.9rem;
  margin: 0;
  line-height: 1.2;
}

.feature-card-mini small {
  font-size: 0.75rem;
  color: #6b7280;
}

/* Background Elements for App Section */
.mockup-bg-elements {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1;
}

.bg-circle {
  position: absolute;
  border-radius: 50%;
  opacity: 0.08;
}

.circle-1 {
  width: 300px;
  height: 300px;
  background: linear-gradient(135deg, var(--primary-color), #3b82f6);
  top: 5%;
  left: 5%;
  animation: rotate 25s linear infinite;
}

.circle-2 {
  width: 200px;
  height: 200px;
  background: linear-gradient(135deg, #10b981, #34d399);
  bottom: 15%;
  right: 10%;
  animation: rotate 20s linear infinite reverse;
}

.bg-dots {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 150px;
  height: 150px;
  background-image: radial-gradient(
    circle,
    var(--primary-color) 2px,
    transparent 2px
  );
  background-size: 25px 25px;
  opacity: 0.1;
}

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

  to {
    transform: rotate(360deg);
  }
}

/* Glass Morphism Effect */
.glass-morphism {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

/* Floating Cards */
.floating-card {
  background: #fff;
  border-radius: 15px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  border: 1px solid rgba(0, 0, 0, 0.05);
}

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

/* Course Cards */
.course-card {
  border: none;
  overflow: hidden;
  transition: all 0.3s ease;
  background: white;
  border-radius: 15px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
}

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

.course-image {
  overflow: hidden;
  height: 200px;
}

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

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

/* ================= WHY CHOOSE US SCROLLING SECTION ================= */

#why-choose-us {
  position: relative;
  overflow: hidden;
}

/* Desktop Navigation */
.features-nav-container {
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  transform: translateY(-50%);
  pointer-events: none;
  z-index: 10;
}

.features-nav-btn {
  position: absolute;
  width: 55px;
  height: 55px;
  background: white;
  border: 2px solid rgba(30, 58, 138, 0.2);
  border-radius: 50%;
  color: #1e3a8a;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  transition: all 0.3s ease;
  pointer-events: auto;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.features-nav-btn:hover {
  background: #1e3a8a;
  color: white;
  transform: translateY(-50%) scale(1.1);
  box-shadow: 0 12px 35px rgba(30, 58, 138, 0.3);
}

.features-prev {
  left: 5px;
}

.features-next {
  right: 5px;
}

/* Features Container */
.features-container {
  position: relative;
  padding: 1rem 0;
}

/* FIXED: Keep flex layout for scrolling on ALL screen sizes */
.features-wrapper {
  display: flex !important;
  gap: 2rem;
  overflow-x: auto;
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
  padding: 1rem 0;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.features-wrapper::-webkit-scrollbar {
  display: none;
}

/* Feature Card Scroll Container */
.feature-card-scroll {
  flex: 0 0 320px;
  scroll-snap-align: center;
}

/* Updated Feature Card */
.feature-card {
  background: white;
  padding: 2.5rem 1.5rem;
  border-radius: 20px;
  transition: all 0.4s ease;
  height: 100%;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  border: 1px solid rgba(0, 0, 0, 0.05);
  position: relative;
  overflow: hidden;
  min-height: 350px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.feature-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #1e3a8a, #3b82f6, #60a5fa);
}

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

/* Feature Icon */
.feature-icon {
  width: 80px;
  height: 80px;
  background: linear-gradient(135deg, #e0e7ff, #c7d2fe);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
  transition: all 0.3s ease;
}

.feature-icon i {
  font-size: 2.5rem !important;
  color: #1e3a8a;
  transition: all 0.3s ease;
}

.feature-card:hover .feature-icon {
  background: linear-gradient(135deg, #1e3a8a, #3b82f6);
  transform: scale(1.1);
}

.feature-card:hover .feature-icon i {
  color: white;
  transform: scale(1.1);
}

/* Feature Title */
.feature-card h5 {
  color: #1e3a8a;
  font-size: 1.3rem;
  font-weight: 700;
  line-height: 1.3;
}

/* Feature Description */
.feature-card p {
  color: #6b7280;
  line-height: 1.6;
  font-size: 0.95rem;
  flex-grow: 1;
}

/* Feature Stats */
.feature-stats {
  margin-top: auto;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(30, 58, 138, 0.1);
  text-align: center;
}

.stat-number {
  display: block;
  font-size: 1.8rem;
  font-weight: 800;
  color: #1e3a8a;
  line-height: 1;
}

.stat-label {
  font-size: 0.8rem;
  color: #6b7280;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-weight: 600;
}

/* Features Indicators */
.features-indicators .indicator {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(30, 58, 138, 0.3);
  transition: all 0.3s ease;
  cursor: pointer;
  margin: 0 0.3rem;
}

.features-indicators .indicator.active {
  background: #1e3a8a;
  transform: scale(1.3);
  box-shadow: 0 3px 10px rgba(30, 58, 138, 0.3);
}

/* Mobile Responsive */
@media (max-width: 767px) {
  .feature-card-scroll {
    flex: 0 0 280px;
    margin: 0 0.5rem;
  }

  .feature-card {
    padding: 2rem 1.5rem;
    min-height: 320px;
  }

  .feature-icon {
    width: 70px;
    height: 70px;
  }

  .feature-icon i {
    font-size: 2rem !important;
  }

  .feature-card h5 {
    font-size: 1.1rem;
  }

  .feature-card p {
    font-size: 0.9rem;
  }

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

@media (max-width: 576px) {
  .feature-card-scroll {
    flex: 0 0 260px;
  }

  .feature-card {
    padding: 1.8rem 1.2rem;
    min-height: 300px;
  }

  .feature-icon {
    width: 60px;
    height: 60px;
    margin-bottom: 1rem;
  }

  .feature-icon i {
    font-size: 1.8rem !important;
  }

  .feature-card h5 {
    font-size: 1rem;
    margin-bottom: 1rem;
  }

  .feature-stats {
    padding-top: 1rem;
  }
}

/* ================= BEAUTIFUL WORKING TESTIMONIALS ================= */

.testimonial-slider-container {
  position: relative;
  max-width: 800px;
  margin: 0 auto;
  padding: 0 60px;
}

/* Testimonial Slider */
.testimonial-slider {
  position: relative;
  height: 500px;
  overflow: hidden;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(10px);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.1);
}

/* Testimonial Slides */
.testimonial-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transform: translateX(100%);
  transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 1;
}

.testimonial-slide.active {
  opacity: 1;
  transform: translateX(0);
  z-index: 2;
}

.testimonial-slide.prev {
  transform: translateX(-100%);
}

/* Beautiful Card Design */
.testimonial-card-beautiful {
  height: 100%;
  padding: 3rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
  border-radius: 20px;
  position: relative;
}

.testimonial-card-beautiful::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #1e3a8a, #3b82f6, #60a5fa);
  border-radius: 20px 20px 0 0;
}

/* Card Top */
.card-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
}

.quote-icon {
  width: 50px;
  height: 50px;
  background: linear-gradient(135deg, #1e3a8a, #3b82f6);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.2rem;
  box-shadow: 0 8px 20px rgba(30, 58, 138, 0.3);
}

.rating {
  display: flex;
  gap: 4px;
}

.rating i {
  color: #fbbf24;
  font-size: 1.3rem;
  text-shadow: 0 2px 4px rgba(251, 191, 36, 0.3);
}

/* Testimonial Text */
.testimonial-text {
  flex: 1;
  display: flex;
  align-items: center;
  margin-bottom: 2rem;
}

.testimonial-text p {
  font-size: 1.2rem;
  line-height: 1.7;
  color: #374151;
  text-align: center;
  font-style: italic;
  margin: 0;
  position: relative;
}

/* Student Profile */
.student-profile {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(30, 58, 138, 0.1);
}

.student-avatar {
  position: relative;
  flex-shrink: 0;
}

.student-avatar img {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid rgba(30, 58, 138, 0.2);
  transition: all 0.3s ease;
}

.testimonial-card-beautiful:hover .student-avatar img {
  border-color: #3b82f6;
  transform: scale(1.05);
}

.verified-check {
  position: absolute;
  bottom: -2px;
  right: -2px;
  width: 24px;
  height: 24px;
  background: #10b981;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 0.7rem;
  border: 2px solid white;
}

/* Student Details */
.student-details {
  flex: 1;
}

.student-name {
  font-size: 1.3rem;
  font-weight: 700;
  color: #1e3a8a;
  margin: 0 0 0.5rem 0;
}

.student-rank {
  color: #6b7280;
  margin: 0 0 1rem 0;
  font-weight: 500;
}

/* Exam Badges */
.exam-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.5rem 1rem;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.mppsc-badge {
  background: linear-gradient(135deg, #10b981, #34d399);
  color: white;
}

.upsc-badge {
  background: linear-gradient(135deg, #ef4444, #f97316);
  color: white;
}

.mpsi-badge {
  background: linear-gradient(135deg, #8b5cf6, #a855f7);
  color: white;
}

/* Navigation Buttons */
.slider-nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: white;
  border: 2px solid rgba(30, 58, 138, 0.2);
  color: #1e3a8a;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  transition: all 0.3s ease;
  z-index: 10;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.slider-nav-btn:hover {
  background: #1e3a8a;
  color: white;
  transform: translateY(-50%) scale(1.1);
  box-shadow: 0 6px 20px rgba(30, 58, 138, 0.3);
}

.slider-prev {
  left: 0;
}

.slider-next {
  right: 0;
}

/* Dots Indicators */
.slider-dots {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-top: 2rem;
}

.dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: rgba(30, 58, 138, 0.3);
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
}

.dot.active {
  background: #1e3a8a;
  transform: scale(1.2);
  box-shadow: 0 3px 10px rgba(30, 58, 138, 0.3);
}

.dot:hover {
  background: #3b82f6;
  transform: scale(1.1);
}

/* Mobile Responsive */
/* ================= MOBILE OPTIMIZED RESPONSIVE ================= */

/* Tablet View (768px - 991px) */
@media (min-width: 768px) and (max-width: 991px) {
  .testimonial-slider-container {
    padding: 0 50px;
    max-width: 700px;
  }

  .testimonial-slider {
    height: 420px;
  }

  .testimonial-card-beautiful {
    padding: 2.5rem 2rem;
  }

  .testimonial-text p {
    font-size: 1.1rem;
    line-height: 1.6;
  }

  .student-name {
    font-size: 1.2rem;
  }

  .student-rank {
    font-size: 0.9rem;
  }

  .slider-nav-btn {
    width: 48px;
    height: 48px;
    font-size: 1.1rem;
  }
}

/* Mobile View (up to 767px) */
@media (max-width: 767px) {
  .testimonial-slider-container {
    padding: 0 35px !important;
    max-width: 100% !important;
  }

  .testimonial-slider {
    height: 380px !important;
    border-radius: 15px !important;
  }

  .testimonial-card-beautiful {
    padding: 1.5rem 1.2rem 1.8rem 1.2rem !important;
    border-radius: 15px !important;
  }

  /* Compact card header */
  .card-top {
    margin-bottom: 1.2rem !important;
    gap: 1rem;
  }

  .quote-icon {
    width: 35px !important;
    height: 35px !important;
    font-size: 0.9rem !important;
  }

  .rating i {
    font-size: 1rem !important;
    gap: 2px;
  }

  /* Compact testimonial text */
  .testimonial-text {
    margin-bottom: 1.2rem !important;
    flex: none !important;
  }

  .testimonial-text p {
    font-size: 0.9rem !important;
    line-height: 1.5 !important;
    padding: 0 0.5rem !important;
  }

  /* Compact student profile */
  .student-profile {
    flex-direction: column !important;
    text-align: center !important;
    gap: 0.8rem !important;
    padding-top: 1.2rem !important;
    border-top: 1px solid rgba(30, 58, 138, 0.1) !important;
  }

  .student-avatar img {
    width: 60px !important;
    height: 60px !important;
    border-width: 2px !important;
  }

  .verified-check {
    width: 18px !important;
    height: 18px !important;
    font-size: 0.6rem !important;
    bottom: -1px !important;
    right: -1px !important;
  }

  .student-name {
    font-size: 1rem !important;
    margin: 0 0 0.3rem 0 !important;
  }

  .student-rank {
    font-size: 0.8rem !important;
    margin: 0 0 0.8rem 0 !important;
  }

  .exam-badge {
    font-size: 0.7rem !important;
    padding: 0.4rem 0.8rem !important;
    border-radius: 12px !important;
  }

  /* Compact navigation buttons */
  .slider-nav-btn {
    width: 36px !important;
    height: 36px !important;
    font-size: 0.8rem !important;
    border-width: 1px !important;
  }

  .slider-prev {
    left: 5px !important;
  }

  .slider-next {
    right: 5px !important;
  }

  /* Compact dots */
  .slider-dots {
    margin-top: 1.2rem !important;
    gap: 8px !important;
  }

  .dot {
    width: 10px !important;
    height: 10px !important;
  }
}

/* Small Mobile View (up to 576px) */
@media (max-width: 576px) {
  .testimonial-slider-container {
    padding: 0 30px !important;
  }

  .testimonial-slider {
    height: 350px !important;
    border-radius: 12px !important;
  }

  .testimonial-card-beautiful {
    padding: 1.2rem 1rem 1.5rem 1rem !important;
    border-radius: 12px !important;
  }

  .testimonial-card-beautiful::before {
    height: 3px !important;
  }

  /* Extra compact header */
  .card-top {
    margin-bottom: 1rem !important;
    flex-wrap: wrap;
    justify-content: center !important;
    gap: 0.8rem;
  }

  .quote-icon {
    width: 30px !important;
    height: 30px !important;
    font-size: 0.8rem !important;
  }

  .rating {
    gap: 1px !important;
  }

  .rating i {
    font-size: 0.9rem !important;
  }

  /* Extra compact text */
  .testimonial-text {
    margin-bottom: 1rem !important;
  }

  .testimonial-text p {
    font-size: 0.85rem !important;
    line-height: 1.4 !important;
    padding: 0 !important;
  }

  /* Extra compact profile */
  .student-profile {
    padding-top: 1rem !important;
    gap: 0.6rem !important;
  }

  .student-avatar img {
    width: 50px !important;
    height: 50px !important;
  }

  .verified-check {
    width: 16px !important;
    height: 16px !important;
    font-size: 0.5rem !important;
  }

  .student-name {
    font-size: 0.9rem !important;
    margin: 0 0 0.2rem 0 !important;
  }

  .student-rank {
    font-size: 0.75rem !important;
    margin: 0 0 0.6rem 0 !important;
  }

  .exam-badge {
    font-size: 0.65rem !important;
    padding: 0.3rem 0.6rem !important;
    border-radius: 10px !important;
  }

  /* Extra compact navigation */
  .slider-nav-btn {
    width: 32px !important;
    height: 32px !important;
    font-size: 0.7rem !important;
  }

  .slider-prev {
    left: 2px !important;
  }

  .slider-next {
    right: 2px !important;
  }

  /* Extra compact dots */
  .slider-dots {
    margin-top: 1rem !important;
    gap: 6px !important;
  }

  .dot {
    width: 8px !important;
    height: 8px !important;
  }
}

/* Extra Small Mobile (up to 480px) */
@media (max-width: 480px) {
  .testimonial-slider-container {
    padding: 0 25px !important;
  }

  .testimonial-slider {
    height: 320px !important;
  }

  .testimonial-card-beautiful {
    padding: 1rem 0.8rem 1.2rem 0.8rem !important;
  }

  .card-top {
    margin-bottom: 0.8rem !important;
  }

  .testimonial-text {
    margin-bottom: 0.8rem !important;
  }

  .testimonial-text p {
    font-size: 0.8rem !important;
    line-height: 1.3 !important;
  }

  .student-profile {
    padding-top: 0.8rem !important;
  }

  .student-avatar img {
    width: 45px !important;
    height: 45px !important;
  }

  .student-name {
    font-size: 0.85rem !important;
  }

  .student-rank {
    font-size: 0.7rem !important;
  }

  .exam-badge {
    font-size: 0.6rem !important;
    padding: 0.25rem 0.5rem !important;
  }

  .slider-nav-btn {
    width: 28px !important;
    height: 28px !important;
    font-size: 0.6rem !important;
  }
}

/* Landscape Mobile Optimization */
@media (max-width: 767px) and (orientation: landscape) {
  .testimonial-slider {
    height: 280px !important;
  }

  .testimonial-card-beautiful {
    padding: 1rem !important;
  }

  .card-top {
    margin-bottom: 0.8rem !important;
  }

  .testimonial-text {
    margin-bottom: 0.8rem !important;
  }

  .student-profile {
    flex-direction: row !important;
    padding-top: 0.8rem !important;
    gap: 1rem !important;
  }

  .student-avatar img {
    width: 40px !important;
    height: 40px !important;
  }

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

/* ================= EXPERT TEAM SECTION - FIXED ================= */

#expert-team {
  position: relative;
  overflow: hidden;
}

/* Desktop Navigation */
.team-nav-container {
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  transform: translateY(-50%);
  pointer-events: none;
  z-index: 10;
}

.team-nav-btn {
  position: absolute;
  width: 55px;
  height: 55px;
  background: white;
  border: 2px solid rgba(30, 58, 138, 0.2);
  border-radius: 50%;
  color: #1e3a8a;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  transition: all 0.3s ease;
  pointer-events: auto;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.team-nav-btn:hover {
  background: #1e3a8a;
  color: white;
  transform: translateY(-50%) scale(1.1);
  box-shadow: 0 12px 35px rgba(30, 58, 138, 0.3);
}

.team-prev {
  left: 5px;
}

.team-next {
  right: 5px;
}

/* Team Container */
.team-container {
  position: relative;
  padding: 1rem 0;
}

.team-wrapper {
  display: flex !important;
  gap: 2rem;
  overflow-x: auto;
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
  padding: 1rem 0;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.team-wrapper::-webkit-scrollbar {
  display: none;
}

/* Expert Card - Fixed Heights */
.expert-card {
  flex: 0 0 320px;
  background: white;
  border-radius: 25px;
  overflow: hidden;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
  transition: all 0.4s ease;
  scroll-snap-align: center;
  border: 1px solid rgba(0, 0, 0, 0.05);
  position: relative;
  /* Remove fixed height to allow content to flow naturally */
  min-height: 580px;
  /* Minimum height for consistency */
  display: flex;
  flex-direction: column;
}

.expert-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.2);
}

/* Expert Image Container */
.expert-image-container {
  position: relative;
  height: 280px;
  overflow: hidden;
  background: linear-gradient(135deg, #1e3a8a, #3b82f6);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  /* Prevent shrinking */
}

.expert-image {
  width: 200px;
  height: 200px;
  border-radius: 50%;
  object-fit: cover;
  border: 6px solid rgba(255, 255, 255, 0.9);
  transition: all 0.4s ease;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3);
}

.expert-card:hover .expert-image {
  transform: scale(1.05);
  border-color: white;
}

/* Expert Badges */
.expert-badge {
  position: absolute;
  top: 20px;
  left: 20px;
  padding: 0.5rem 1rem;
  border-radius: 25px;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  backdrop-filter: blur(10px);
}

.expert-badge.director {
  background: linear-gradient(135deg, #ffd700, #ffed4e);
  color: #8b5cf6;
  box-shadow: 0 4px 15px rgba(255, 215, 0, 0.4);
}

.expert-badge.senior {
  background: linear-gradient(135deg, #10b981, #34d399);
  color: white;
  box-shadow: 0 4px 15px rgba(16, 185, 129, 0.4);
}

.expert-badge.faculty {
  background: linear-gradient(135deg, #3b82f6, #60a5fa);
  color: white;
  box-shadow: 0 4px 15px rgba(59, 130, 246, 0.4);
}

/* Expert Content - Fixed Layout */
.expert-content {
  padding: 2rem;
  /* Remove fixed height - let content flow naturally */
  flex: 1;
  /* Take remaining space */
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 300px;
  /* Minimum height for consistency */
}

.expert-name {
  font-size: 1.4rem;
  font-weight: 700;
  color: #1e3a8a;
  margin-bottom: 0.5rem;
  text-align: center;
  line-height: 1.3;
}

.expert-designation {
  text-align: center;
  color: #6b7280;
  font-weight: 500;
  margin-bottom: 1.5rem;
  font-size: 1rem;
  line-height: 1.4;
}

/* Subject Specialization */
.expert-specialization {
  margin-bottom: 1.5rem;
  flex-shrink: 0;
  /* Prevent shrinking */
}

.subject-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: center;
}

.subject-tag {
  background: linear-gradient(135deg, #e0e7ff, #c7d2fe);
  color: #1e40af;
  padding: 0.3rem 0.8rem;
  border-radius: 15px;
  font-size: 0.8rem;
  font-weight: 600;
  border: 1px solid rgba(30, 64, 175, 0.2);
}

/* Expert Credentials */
.expert-credentials {
  margin-top: auto;
  /* Push to bottom */
  flex-shrink: 0;
  /* Prevent shrinking */
}

.credential-item {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  margin-bottom: 0.8rem;
  font-size: 0.9rem;
  color: #4b5563;
  line-height: 1.4;
}

.credential-item:last-child {
  margin-bottom: 0;
}

.credential-item i {
  width: 20px;
  color: #3b82f6;
  text-align: center;
  flex-shrink: 0;
  /* Prevent icon shrinking */
}

/* Team Indicators */
.team-indicators .indicator {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(30, 58, 138, 0.3);
  transition: all 0.3s ease;
  cursor: pointer;
  margin: 0 0.3rem;
}

.team-indicators .indicator.active {
  background: #1e3a8a;
  transform: scale(1.3);
  box-shadow: 0 3px 10px rgba(30, 58, 138, 0.3);
}

/* Mobile Responsive Fixes */
@media (max-width: 767px) {
  .expert-card {
    flex: 0 0 280px;
    /* Wider on mobile for better readability */
    min-height: 500px;
    /* Reduced minimum height for mobile */
  }

  .expert-content {
    padding: 1.5rem;
    min-height: 220px;
    /* Adjusted for mobile */
  }

  .expert-image-container {
    height: 220px;
  }

  .expert-image {
    width: 140px;
    height: 140px;
  }

  .expert-name {
    font-size: 1.2rem;
  }

  .expert-designation {
    font-size: 0.9rem;
    margin-bottom: 1rem;
  }

  .expert-specialization {
    margin-bottom: 1rem;
  }

  .credential-item {
    margin-bottom: 0.6rem;
    font-size: 0.85rem;
  }

  .subject-tag {
    font-size: 0.75rem;
    padding: 0.25rem 0.6rem;
  }
}

/* Extra Small Mobile */
@media (max-width: 480px) {
  .expert-card {
    flex: 0 0 260px;
    min-height: 480px;
  }

  .expert-content {
    padding: 1.2rem;
    min-height: 200px;
  }

  .expert-image-container {
    height: 200px;
  }

  .expert-image {
    width: 120px;
    height: 120px;
  }

  .expert-name {
    font-size: 1.1rem;
  }

  .expert-designation {
    font-size: 0.85rem;
  }

  .credential-item {
    font-size: 0.8rem;
    gap: 0.6rem;
  }

  .credential-item i {
    width: 16px;
  }
}

/* Landscape Mobile Fix */
@media (max-width: 767px) and (orientation: landscape) {
  .expert-card {
    min-height: 400px;
  }

  .expert-image-container {
    height: 180px;
  }

  .expert-content {
    padding: 1rem;
    min-height: 180px;
  }
}

/* Content Overflow Prevention */
.expert-content * {
  word-wrap: break-word;
  overflow-wrap: break-word;
}

/* Ensure proper spacing between elements */
.expert-content > * {
  margin-bottom: 0;
}

.expert-content > *:not(:last-child) {
  margin-bottom: 1rem;
}

@media (max-width: 767px) {
  .expert-content > *:not(:last-child) {
    margin-bottom: 0.8rem;
  }
}

/* about us */

.stat-card {
  background: white;
  padding: 2rem;
  border-radius: 15px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
}

.stat-card:hover {
  transform: translateY(-5px);
}

/* ❺  desktop grid वाली पुरानी media-query को हटा/कमेंट कर दें  
   (जिसमें  grid-template-columns… लिखा था)                        */

/* Achiever Cards 
.achiever-card {
  background: white;
  padding: 2rem;
  border-radius: 15px;
  transition: all 0.3s ease;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
}

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

.achiever-img {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  object-fit: cover;
  margin: 0 auto;
  display: block;
}


.stat-card {
  background: white;
  padding: 2rem;
  border-radius: 15px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
}

.stat-card:hover {
  transform: translateY(-5px);
}


.accordion-item {
  border: none;
  margin-bottom: 1rem;
}

.accordion-button {
  background: white;
  border: none;
  border-radius: 15px;
  padding: 1.5rem;
  font-weight: 600;
  box-shadow: none;
  color: var(--text-color);
}

.accordion-button:not(.collapsed) {
  background: var(--primary-color);
  color: white;
}

.accordion-button:focus {
  box-shadow: none;
}

.accordion-body {
  padding: 1.5rem;
  background: white;
  border-radius: 0 0 15px 15px;
}*/

/* ================= BOOKS PRODUCT SECTION ================= */
.books-nav-container {
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  transform: translateY(-50%);
  pointer-events: none;
  z-index: 10;
}

.books-nav-btn {
  position: absolute;
  width: 55px;
  height: 55px;
  background: #fff;
  border: 2px solid rgba(30, 58, 138, 0.2);
  border-radius: 50%;
  color: #1e3a8a;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  transition: 0.3s;
  pointer-events: auto;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.books-nav-btn:hover {
  background: #1e3a8a;
  color: #fff;
  transform: translateY(-50%) scale(1.1);
}

.books-prev {
  left: -25px;
}

.books-next {
  right: -25px;
}

.books-wrapper {
  display: flex;
  gap: 2rem;
  overflow-x: auto;
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
  padding: 1rem 0;
  scrollbar-width: none;
}

.books-wrapper::-webkit-scrollbar {
  display: none;
}

.book-card {
  flex: 0 0 320px;
  background: #fff;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  transition: 0.4s;
  scroll-snap-align: center;
  border: 1px solid rgba(0, 0, 0, 0.05);
  position: relative;
}

.book-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.2);
}

.book-image-container {
  position: relative;
  height: 240px;
  overflow: hidden;
}

.book-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: 0.4s;
}

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

.book-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  padding: 0.4rem 0.8rem;
  border-radius: 20px;
  font-size: 0.7rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 0.3rem;
  color: #fff;
}

.book-badge.bestseller {
  background: linear-gradient(135deg, #ffd700, #ffed4e);
  color: #8b5cf6;
}

.book-badge.new {
  background: linear-gradient(135deg, #10b981, #34d399);
}

.book-discount {
  position: absolute;
  top: 12px;
  right: 12px;
  background: #dc2626;
  color: #fff;
  padding: 0.3rem 0.6rem;
  border-radius: 15px;
  font-size: 0.7rem;
  font-weight: 700;
}

.book-content {
  padding: 1.5rem;
}

.book-category {
  color: #3b82f6;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  margin-bottom: 0.4rem;
}

.book-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: #1e293b;
  line-height: 1.35;
  margin-bottom: 0.6rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.book-rating {
  font-size: 0.8rem;
  color: #6b7280;
}

.recently-bought {
  font-size: 0.75rem;
  color: #10b981;
  font-weight: 600;
  gap: 0.2rem;
}

.recently-bought i {
  color: #f59e0b;
}

.book-pricing {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 0.8rem 0;
  font-weight: 700;
}

.current-price {
  color: #1e3a8a;
  font-size: 1.2rem;
}

.original-price {
  color: #9ca3af;
  text-decoration: line-through;
  font-size: 0.9rem;
}

.book-actions {
  display: flex;
  gap: 0.6rem;
}

.btn-buy-now,
.btn-more-info {
  flex: 1;
  padding: 0.75rem;
  border-radius: 12px;
  font-weight: 600;
  font-size: 0.85rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  cursor: pointer;
  transition: 0.3s;
  border: none;
}

.btn-buy-now {
  background: linear-gradient(135deg, #1e3a8a, #3b82f6);
  color: #fff;
}

.btn-buy-now:hover {
  background: linear-gradient(135deg, #1e40af, #2563eb);
  transform: translateY(-2px);
}

.btn-more-info {
  background: #f8fafc;
  color: #374151;
  border: 1px solid #e5e7eb;
}

.btn-more-info:hover {
  background: #f1f5f9;
  color: #1f2937;
  transform: translateY(-2px);
}

.books-indicators .indicator {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(30, 58, 138, 0.3);
  transition: 0.3s;
}

.books-indicators .indicator.active {
  background: #1e3a8a;
  transform: scale(1.2);
}



.book-actions {
   display: flex;
   gap: 10px;
   align-items: center;  /* Center align items */
}

.out-of-stock-badge {
   background: #ef4444;
   color: #fff;
   padding: 8px 16px;
   font-size: 14px;
   font-weight: bold;
   border-radius: 6px;
   white-space: nowrap;   /* ✅ हमेशा single line */
}





/* ------- Mobile tweaks ------- */
@media (max-width: 767px) {
  .book-card {
    flex: 0 0 260px;
    margin: 0 0.4rem;
  }

  .book-content {
    padding: 1rem 1rem 0.9rem;
  }

  .book-title {
    font-size: 0.9rem;
  }

  .book-actions {
    flex-direction: row;
  }

  .btn-buy-now,
  .btn-more-info {
    padding: 0.55rem;
    font-size: 0.75rem;
  }
}

/* Contact Form */
.contact-form {
  background: white;
  padding: 2.5rem;
  border-radius: 20px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.form-control,
.form-select {
  border-radius: 10px;
  border: 2px solid #e5e7eb;
  padding: 0.8rem 1rem;
  transition: all 0.3s ease;
}

.form-control:focus,
.form-select:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 0.2rem rgba(30, 58, 138, 0.25);
}

/* Footer */
footer {
  background: linear-gradient(135deg, #111827 0%, #1f2937 100%);
}

.social-links a {
  transition: all 0.3s ease;
}

.social-links a:hover {
  color: var(--accent-color) !important;
  transform: translateY(-2px);
}

/* Floating button instagram, WhatsApp, youtube */
.floating-whatsapp {
  position: fixed;
  bottom: 30px;
  right: 30px;
  z-index: 1000;
}

.whatsapp-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  background: #25d366;
  color: white;
  border-radius: 50%;
  text-decoration: none;
  font-size: 1.2rem;
  box-shadow: 0 4px 12px rgba(37, 211, 102, 0.4);
  transition: all 0.3s ease;
  animation: pulse 2s infinite;
}

.whatsapp-btn:hover {
  background: #128c7e;
  color: white;
  transform: scale(1.1);
}

@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7);
  }

  70% {
    box-shadow: 0 0 0 10px rgba(37, 211, 102, 0);
  }

  100% {
    box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
  }
}

/* Floating YouTube */
.floating-youtube {
  position: fixed;
  bottom: 70px;
  right: 30px;
  z-index: 1000;
}

.youtube-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  background: #ff0000;
  color: white;
  border-radius: 50%;
  text-decoration: none;
  font-size: 1.2rem;
  box-shadow: 0 4px 12px rgba(255, 0, 0, 0.4);
  transition: all 0.3s ease;
  animation: pulse-youtube 2s infinite;
}

.youtube-btn:hover {
  background: #cc0000;
  transform: scale(1.1);
}

/* Floating Instagram */
.floating-instagram {
  position: fixed;
  bottom: 110px;
  right: 30px;
  z-index: 1000;
}

.instagram-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  background: radial-gradient(
    circle at 30% 107%,
    #fdf497 0%,
    #fd5949 45%,
    #d6249f 60%,
    #285aeb 90%
  );
  color: white;
  border-radius: 50%;
  text-decoration: none;
  font-size: 1.2rem;
  box-shadow: 0 4px 12px rgba(221, 42, 123, 0.4);
  transition: all 0.3s ease;
  animation: pulse-instagram 2s infinite;
}

.instagram-btn:hover {
  transform: scale(1.1);
}

/* Pulse Animations */
@keyframes pulse-youtube {
  0% {
    box-shadow: 0 0 0 0 rgba(255, 0, 0, 0.7);
  }

  70% {
    box-shadow: 0 0 0 10px rgba(255, 0, 0, 0);
  }

  100% {
    box-shadow: 0 0 0 0 rgba(255, 0, 0, 0);
  }
}

@keyframes pulse-instagram {
  0% {
    box-shadow: 0 0 0 0 rgba(221, 42, 123, 0.7);
  }

  70% {
    box-shadow: 0 0 0 10px rgba(221, 42, 123, 0);
  }

  100% {
    box-shadow: 0 0 0 0 rgba(221, 42, 123, 0);
  }
}

/* Mobile adjustments */
@media (max-width: 480px) {
  .floating-instagram,
  .floating-youtube,
  .floating-whatsapp {
    right: 15px;
  }

  .instagram-btn,
  .youtube-btn,
  .whatsapp-btn {
    width: 20px;
    height: 20px;
    font-size: 0.9rem;
  }

  .floating-instagram {
    bottom: 80px;
  }

  .floating-youtube {
    bottom: 50px;
  }

  .floating-whatsapp {
    bottom: 20px;
  }
}

/* ================= MOBILE APP DOWNLOAD SECTION ================= */
@media (max-width: 992px) {
  .download-buttons-container {
    flex-direction: column;
    align-items: stretch;
    width: 100%;
  }

  .download-btn {
    width: 100%;
    max-width: 200px;
    margin: 0 auto;
    justify-content: center;
  }

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

  .btn-outline-primary {
    width: 100%;
    max-width: 200px;
  }

  .app-mockup-container {
    min-height: 400px;
    margin-top: 3rem;
  }

  .app-mockup-img {
    max-width: 400px !important;
    width: 100% !important;
    height: auto !important;
  }

  /* Stack layout vertically on mobile */
  #app-download .row {
    flex-direction: column-reverse !important;
  }

  /* App content section */
  #app-download .col-lg-6:first-child {
    order: 2;
    margin-top: 2rem;
  }

  /* Mockup section */
  #app-download .col-lg-6:last-child {
    order: 1;
    text-align: center;
  }

  /* App mockup container */
  .app-mockup-container {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 2rem;
  }

  /* Floating features container - position below mockup */
  .mockup-features {
    position: static !important;
    display: flex !important;
    flex-direction: row !important;
    justify-content: center !important;
    flex-wrap: wrap !important;
    gap: 1rem !important;
    margin-top: 1.5rem !important;
    width: 100% !important;
  }

  /* Remove absolute positioning from floating cards */
  .floating-feature {
    position: static !important;
    transform: none !important;
    margin: 0 !important;
  }

  .floating-feature.top-left,
  .floating-feature.top-right,
  .floating-feature.bottom-left {
    position: static !important;
    top: auto !important;
    left: auto !important;
    right: auto !important;
    bottom: auto !important;
    transform: none !important;
  }

  /* Feature cards styling */
  .feature-card-mini {
    min-width: 120px !important;
    padding: 0.8rem 1rem !important;
    border-radius: 12px !important;
    display: flex !important;
    align-items: center !important;
    background: white !important;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1) !important;
    border: 1px solid rgba(0, 0, 0, 0.05) !important;
    transition: transform 0.3s ease !important;
  }

  .feature-card-mini:hover {
    transform: translateY(-2px) !important;
  }

  /* Background elements */
  .mockup-bg-elements {
    display: none !important;
  }

  /* App features grid - better spacing on mobile */
  .app-features .row {
    gap: 0.5rem !important;
  }

  .app-features .col-md-6 {
    flex: 0 0 100% !important;
    max-width: 100% !important;
  }

  /* Download buttons - stack vertically on small screens */
  .download-buttons-container {
    justify-content: center !important;
  }
}

@media (max-width: 576px) {
  /* Even larger mockup on very small screens */
  .app-mockup-img {
    max-width: 350px !important;
  }

  /* Smaller feature cards on small screens */
  .feature-card-mini {
    min-width: 100px !important;
    padding: 0.6rem 0.8rem !important;
    font-size: 0.85rem !important;
  }

  /* Two cards per row on very small screens */
  .mockup-features {
    justify-content: space-around !important;
  }

  /* Stack download buttons vertically */
  .download-buttons-container {
    flex-direction: column !important;
    align-items: center !important;
  }

  .download-btn {
    width: 100% !important;
    max-width: 200px !important;
  }
}

/* Keep desktop layout unchanged */
@media (min-width: 993px) {
  /* Reset mobile overrides for desktop */
  .app-mockup-container {
    position: relative !important;
    display: block !important;
    flex-direction: initial !important;
    align-items: initial !important;
    margin-bottom: initial !important;
    min-height: 600px !important;
  }

  /* Reset mockup features for desktop */
  .mockup-features {
    position: absolute !important;
    display: block !important;
    flex-direction: initial !important;
    justify-content: initial !important;
    flex-wrap: initial !important;
    gap: initial !important;
    margin-top: initial !important;
    width: 100% !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    z-index: 3 !important;
    pointer-events: none !important;
  }

  /* Proper desktop positioning for floating cards */
  .floating-feature {
    position: absolute !important;
    animation: float 3s ease-in-out infinite !important;
    margin: 0 !important;
  }

  .floating-feature.top-left {
    position: absolute !important;
    top: 3% !important;
    left: -2% !important;
    transform: none !important;
    animation-delay: 0s !important;
  }

  .floating-feature.top-right {
    position: absolute !important;
    top: 0% !important;
    right: -2% !important;
    transform: none !important;
    animation-delay: 1s !important;
  }

  .floating-feature.bottom-left {
    position: absolute !important;
    bottom: 30% !important;
    left: -2% !important;
    transform: none !important;
    animation-delay: 2s !important;
  }

  /* Reset feature cards for desktop */
  .feature-card-mini {
    min-width: 160px !important;
    padding: 1rem 1.2rem !important;
    border-radius: 15px !important;
    display: flex !important;
    align-items: center !important;
    background: white !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15) !important;
    border: 1px solid rgba(0, 0, 0, 0.05) !important;
    transition: transform 0.3s ease !important;
    pointer-events: auto !important;
  }

  .feature-card-mini:hover {
    transform: translateY(-5px) !important;
  }

  /* Show background elements on desktop */
  .mockup-bg-elements {
    display: block !important;
  }

  /* Ensure proper mockup image size on desktop */
  .app-mockup-img {
    max-width: 600px !important;
    width: 100% !important;
    height: auto !important;
  }

  /* Ensure content ordering is correct on desktop */
  #app-download .row {
    flex-direction: row !important;
  }

  #app-download .col-lg-6:first-child {
    order: initial !important;
    margin-top: initial !important;
  }

  #app-download .col-lg-6:last-child {
    order: initial !important;
    text-align: initial !important;
  }
}

/* ---------- offline-classes core card look (unchanged) ---------- */
.class-card {
  background: #fff;
  border-radius: 15px;
  overflow: hidden;
  transition: 0.3s;
  border: 1px solid rgba(0, 0, 0, 0.05);
}

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

.class-image-container {
  position: relative;
  height: 180px;
  overflow: hidden;
}

.class-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: 0.3s;
}

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

.class-badge {
  position: absolute;
  top: 10px;
  right: 10px;
}

.detail-item i {
  width: 18px;
  text-align: center;
  color: #1e3a8a;
}

/* ---------- slider behaviour ---------- */
.offline-wrapper {
  display: flex;
  gap: 1.25rem;
  overflow-x: auto;
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
  padding-bottom: 1rem;
}

.offline-wrapper::-webkit-scrollbar {
  display: none;
}

.offline-wrapper .class-card {
  flex: 0 0 320px;
  scroll-snap-align: center;
}

@media (max-width: 768px) {
  .offline-wrapper .class-card {
    flex: 0 0 260px;
  }

  .class-image-container {
    height: 150px;
  }

  .class-details {
    font-size: 0.8rem;
  }

  .class-buttons .btn {
    font-size: 0.8rem;
    padding: 0.55rem 0.8rem;
  }
}

/* dots */
.offline-dots .dot {
  display: inline-block;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: rgba(30, 58, 138, 0.3);
  margin: 0 4px;
  transition: 0.3s;
}

.offline-dots .dot.active {
  background: #1e3a8a;
  transform: scale(1.3);
}
/* blink*/
.blinking-date {
  color: red;
  font-weight: bold;
  animation: blink-animation 1s steps(2, start) infinite;
}

@keyframes blink-animation {
  to {
    visibility: hidden;
  }
}

/* ================= UPDATED ONLINE BATCHES SECTION ================= */
#online-batches {
  background: linear-gradient(135deg, #f8f9fa 0%, #e3f2fd 100%);
  position: relative;
}

/* Mobile Cards Design (Unchanged) */
.mobile-cards-container {
  position: relative;
  padding: 0 1rem;
}

.cards-scroll-wrapper {
  display: flex;
  overflow-x: auto;
  gap: 1rem;
  padding-bottom: 1rem;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.cards-scroll-wrapper::-webkit-scrollbar {
  display: none;
}

.scroll-card {
  flex: 0 0 280px;
  background: white;
  border-radius: 15px;
  padding: 1.5rem;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
  scroll-snap-align: center;
  position: relative;
  border: 1px solid rgba(0, 0, 0, 0.05);
}

.card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}

.status-badge {
  font-size: 0.75rem;
  padding: 0.3rem 0.8rem;
  border-radius: 20px;
  font-weight: 600;
}

.status-badge.live {
  background: #dcfce7;
  color: #166534;
}

.status-badge.warning {
  background: #fef3c7;
  color: #92400e;
}

.status-badge.info {
  background: #dbeafe;
  color: #1e40af;
}

.course-icon {
  width: 50px;
  height: 50px;
  background: linear-gradient(135deg, #1e3a8a, #3b82f6);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.2rem;
}

.card-body h5 {
  font-weight: 700;
  color: #1e3a8a;
  margin-bottom: 1rem;
  font-size: 1.1rem;
}

.course-details {
  margin-bottom: 1.5rem;
}

.course-details p {
  margin: 0.5rem 0;
  font-size: 0.9rem;
  color: #6b7280;
  display: flex;
  align-items: center;
}

.course-details i {
  width: 16px;
  margin-right: 0.5rem;
  color: #1e3a8a;
}

.scroll-card .btn {
  width: 100%;
  border-radius: 25px;
  font-weight: 600;
  padding: 0.7rem;
}

/* Mobile Scroll Indicators */
.scroll-indicators {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 1rem;
}

.indicator {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #d1d5db;
  transition: all 0.3s ease;
}

.indicator.active {
  background: #1e3a8a;
  transform: scale(1.2);
}

/* ================= NEW DESKTOP HORIZONTAL SCROLLING ================= */

/* Desktop Navigation Container */
.desktop-nav-container {
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  transform: translateY(-50%);
  pointer-events: none;
  z-index: 10;
}

.desktop-nav-btn {
  position: absolute;
  width: 55px;
  height: 55px;
  background: white;
  border: 2px solid rgba(30, 58, 138, 0.2);
  border-radius: 50%;
  color: #1e3a8a;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  transition: all 0.3s ease;
  pointer-events: auto;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.desktop-nav-btn:hover {
  background: #1e3a8a;
  color: white;
  transform: translateY(-50%) scale(1.1);
  box-shadow: 0 12px 35px rgba(30, 58, 138, 0.3);
}

.desktop-prev {
  left: -25px;
}

.desktop-next {
  right: -25px;
}

/* Desktop Scroll Wrapper */
.desktop-cards-container {
  position: relative;
  padding: 1rem 0;
}

.desktop-scroll-wrapper {
  display: flex;
  gap: 2rem;
  overflow-x: auto;
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
  padding: 1rem 0;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.desktop-scroll-wrapper::-webkit-scrollbar {
  display: none;
}

/* Desktop Cards in Horizontal Layout */
.desktop-card {
  flex: 0 0 350px;
  background: white;
  border-radius: 20px;
  padding: 2rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  transition: all 0.4s ease;
  border: 1px solid rgba(0, 0, 0, 0.05);
  position: relative;
  scroll-snap-align: center;
}

.desktop-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.2);
}

.card-status {
  position: absolute;
  top: 15px;
  right: 15px;
  font-size: 0.8rem;
  padding: 0.4rem 0.8rem;
  border-radius: 20px;
  font-weight: 600;
  background: #dcfce7;
  color: #166534;
}

.card-status.warning {
  background: #fef3c7;
  color: #92400e;
}

.card-status.info {
  background: #dbeafe;
  color: #1e40af;
}

.card-icon {
  width: 70px;
  height: 70px;
  background: linear-gradient(135deg, #1e3a8a, #3b82f6);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
  color: white;
  font-size: 1.5rem;
}

.desktop-card h4 {
  color: #1e3a8a;
  font-weight: 700;
  margin-bottom: 1.5rem;
  text-align: center;
  line-height: 1.3;
}

.course-info {
  margin-bottom: 2rem;
}

.course-info p {
  margin: 0.8rem 0;
  color: #6b7280;
  display: flex;
  align-items: center;
}

.course-info i {
  width: 20px;
  margin-right: 0.8rem;
  color: #1e3a8a;
}

.desktop-card .btn {
  width: 100%;
  border-radius: 25px;
  font-weight: 600;
  padding: 0.8rem;
  background: linear-gradient(135deg, #1e3a8a, #3b82f6);
  border: none;
}

.desktop-card .btn:hover {
  background: linear-gradient(135deg, #1e40af, #2563eb);
  transform: translateY(-2px);
}

/* Responsive Adjustments */
@media (max-width: 768px) {
  .scroll-card {
    flex: 0 0 260px;
    padding: 1.2rem;
  }

  .card-body h5 {
    font-size: 1rem;
  }

  .course-details p {
    font-size: 0.85rem;
  }
}

/* Tablet adjustments for desktop cards */
@media (min-width: 768px) and (max-width: 991px) {
  .desktop-card {
    flex: 0 0 320px;
    padding: 1.8rem;
  }

  .desktop-nav-btn {
    width: 50px;
    height: 50px;
  }
}

/* ================= YOUTUBE SECTIONS ================= */

/* ================= CLEAN YOUTUBE SECTION ================= */

#youtube-channel-section {
  background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
  position: relative;
}

/* Section Header */
.section-header {
  margin-bottom: 3rem;
}

.yt-section-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: #dc2626;
  color: white;
  padding: 0.5rem 1rem;
  border-radius: 25px;
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 1rem;
}

.section-title {
  font-size: 2.5rem;
  font-weight: 800;
  color: #1e293b;
  margin-bottom: 1rem;
  line-height: 1.2;
}

.section-subtitle {
  font-size: 1.1rem;
  color: #64748b;
  margin: 0;
}

/* Clean Tab Navigation */
.content-tabs {
  margin-bottom: 3rem;
}

.tab-navigation {
  display: flex;
  justify-content: center;
  background: white;
  border-radius: 12px;
  padding: 0.5rem;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  max-width: 600px;
  margin: 0 auto;
}

.tab-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex: 1;
  padding: 1rem 1.5rem;
  background: transparent;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
  font-weight: 600;
  color: #64748b;
  position: relative;
}

.tab-link:hover {
  background: #f8fafc;
  color: #374151;
}

.tab-link.active {
  background: #dc2626;
  color: white;
  box-shadow: 0 4px 12px rgba(220, 38, 38, 0.3);
}

/* Tab Icons */
.tab-icon {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  display: block;
}

.live-icon {
  background: #ef4444;
  animation: pulse 2s infinite;
}

.upcoming-icon {
  background: #f59e0b;
}

.latest-icon {
  background: #3b82f6;
}

.tab-link.active .tab-icon {
  background: white;
}

@keyframes pulse {
  0%,
  100% {
    opacity: 1;
  }

  50% {
    opacity: 0.5;
  }
}

.tab-text {
  font-size: 0.95rem;
  white-space: nowrap;
}

.tab-badge {
  background: rgba(0, 0, 0, 0.1);
  color: inherit;
  padding: 0.25rem 0.5rem;
  border-radius: 12px;
  font-size: 0.8rem;
  font-weight: 700;
  min-width: 24px;
  text-align: center;
}

.tab-link.active .tab-badge {
  background: rgba(255, 255, 255, 0.2);
}

/* Loading State */
.loading-container {
  text-align: center;
  padding: 4rem 2rem;
}

.loading-spinner {
  width: 50px;
  height: 50px;
  border: 4px solid #f3f4f6;
  border-top: 4px solid #dc2626;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin: 0 auto 1.5rem;
}

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

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

.loading-text {
  color: #64748b;
  font-size: 1.1rem;
  margin: 0;
}

/* Error State */
.error-container {
  padding: 4rem 2rem;
}

.error-content {
  max-width: 400px;
  margin: 0 auto;
  text-align: center;
  background: white;
  padding: 3rem 2rem;
  border-radius: 16px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.error-icon {
  font-size: 3rem;
  color: #f59e0b;
  margin-bottom: 1.5rem;
}

.error-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: #374151;
  margin-bottom: 1rem;
}

.error-message {
  color: #6b7280;
  margin-bottom: 2rem;
}

.retry-btn {
  background: #dc2626;
  color: white;
  border: none;
  padding: 0.75rem 1.5rem;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.retry-btn:hover {
  background: #b91c1c;
  transform: translateY(-1px);
}

/* Tab Content */
.tab-content {
  display: none;
}

.tab-content.active {
  display: block;
}

/* Video Grid */
.video-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 2rem;
  margin-bottom: 2rem;
}

/* Video Card */
.video-item {
  background: white;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInUp 0.6s ease forwards;
}

.video-item:nth-child(1) {
  animation-delay: 0.1s;
}

.video-item:nth-child(2) {
  animation-delay: 0.2s;
}

.video-item:nth-child(3) {
  animation-delay: 0.3s;
}

.video-item:nth-child(4) {
  animation-delay: 0.4s;
}

.video-item:nth-child(5) {
  animation-delay: 0.5s;
}

.video-item:nth-child(6) {
  animation-delay: 0.6s;
}

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

.video-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

/* Video Thumbnail */
.video-thumbnail {
  position: relative;
  aspect-ratio: 16/9;
  overflow: hidden;
  background: #000;
}

.video-thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.video-item:hover .video-thumbnail img {
  transform: scale(1.05);
}

.video-status {
  position: absolute;
  top: 8px;
  left: 8px;
  padding: 0.25rem 0.75rem;
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
}

.video-status.live {
  background: #dc2626;
  color: white;
  animation: blink 1.5s infinite;
}

.video-status.upcoming {
  background: #f59e0b;
  color: white;
}

.video-status.recorded {
  background: #3b82f6;
  color: white;
}

@keyframes blink {
  0%,
  50% {
    opacity: 1;
  }

  51%,
  100% {
    opacity: 0.7;
  }
}

.video-duration {
  position: absolute;
  bottom: 8px;
  right: 8px;
  background: rgba(0, 0, 0, 0.8);
  color: white;
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: 600;
}

.play-button {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 50px;
  height: 50px;
  background: rgba(255, 255, 255, 0.9);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: all 0.3s ease;
}

.video-item:hover .play-button {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1.1);
}

.play-button i {
  color: #dc2626;
  font-size: 1.2rem;
  margin-left: 2px;
}

/* Video Info */
.video-info {
  padding: 1.5rem;
}

.video-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: #1e293b;
  margin-bottom: 0.75rem;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.video-meta {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.25rem;
  font-size: 0.875rem;
  color: #6b7280;
}

.meta-item {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.meta-item i {
  font-size: 0.8rem;
}

.video-actions {
  display: flex;
  gap: 0.75rem;
}

.video-btn {
  flex: 1;
  padding: 0.75rem 1rem;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.875rem;
  text-decoration: none;
  text-align: center;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.btn-primary {
  background: #dc2626;
  color: white;
  border: none;
}

.btn-primary:hover {
  background: #b91c1c;
  color: white;
  text-decoration: none;
  transform: translateY(-1px);
}

.btn-secondary {
  background: #f8fafc;
  color: #374151;
  border: 1px solid #e5e7eb;
}

.btn-secondary:hover {
  background: #f1f5f9;
  color: #1f2937;
  text-decoration: none;
  border-color: #d1d5db;
}

/* Empty State */
.empty-state {
  text-align: center;
  padding: 4rem 2rem;
  background: white;
  border-radius: 16px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.empty-icon {
  font-size: 3rem;
  color: #cbd5e1;
  margin-bottom: 1.5rem;
}

.empty-state h4 {
  font-size: 1.5rem;
  font-weight: 700;
  color: #374151;
  margin-bottom: 0.75rem;
}

.empty-state p {
  color: #6b7280;
  margin: 0;
}

/* Status Bar */
.status-bar {
  margin-top: 2rem;
  text-align: center;
}

.auto-refresh {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: white;
  padding: 0.75rem 1.25rem;
  border-radius: 25px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
  font-size: 0.875rem;
  color: #6b7280;
}

.auto-refresh i {
  animation: spin 2s linear infinite;
}

/* Responsive Design */
@media (max-width: 768px) {
  .section-title {
    font-size: 2rem;
  }

  .tab-navigation {
    max-width: 100%;
  }

  .tab-link {
    padding: 0.75rem 1rem;
    flex-direction: column;
    gap: 0.5rem;
  }

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

  .video-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .video-actions {
    flex-direction: column;
  }
}

@media (max-width: 576px) {
  .tab-text {
    display: none;
  }

  .tab-link {
    padding: 1rem 0.5rem;
  }

  .video-info {
    padding: 1.25rem;
  }

  .video-meta {
    flex-wrap: wrap;
    gap: 0.5rem;
  }
}

/* ================= OUR TOPPERS SECTION ================= */

#our-toppers {
  position: relative;
  overflow: hidden;
}

#our-toppers::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: radial-gradient(
      circle at 25% 75%,
      rgba(30, 58, 138, 0.05) 0%,
      transparent 50%
    ),
    radial-gradient(
      circle at 75% 25%,
      rgba(16, 185, 129, 0.04) 0%,
      transparent 50%
    );
  z-index: 1;
}

#our-toppers .container {
  position: relative;
  z-index: 2;
}

.topper-card {
  background: white;
  border-radius: 20px;
  padding: 2rem;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
  transition: all 0.4s ease;
  border: 1px solid rgba(0, 0, 0, 0.05);
  position: relative;
  height: 100%;
  overflow: hidden;
}

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

.topper-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
  opacity: 0;
  transition: opacity 0.3s ease;
}

.topper-card:hover::before {
  opacity: 1;
}

.topper-rank-badge {
  position: absolute;
  top: 15px;
  right: 15px;
  z-index: 3;
}

.rank-badge {
  padding: 0.4rem 0.8rem;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.rank-1 {
  background: linear-gradient(135deg, #ffd700, #ffed4e);
  color: #8b5cf6;
}

.rank-top10 {
  background: linear-gradient(135deg, #10b981, #34d399);
  color: white;
}

.rank-top20 {
  background: linear-gradient(135deg, #3b82f6, #60a5fa);
  color: white;
}

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

.topper-image-container {
  position: relative;
  display: inline-block;
  margin-bottom: 1.5rem;
}

.topper-image {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid #f8fafc;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
  transition: all 0.3s ease;
}

.topper-card:hover .topper-image {
  transform: scale(1.05);
  border-color: var(--primary-color);
}

.achievement-icon {
  position: absolute;
  bottom: -5px;
  right: -5px;
  width: 32px;
  height: 32px;
  background: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  font-size: 0.9rem;
}

.topper-name {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--text-color);
  margin-bottom: 1rem;
}

.exam-badge {
  display: inline-block;
  padding: 0.5rem 1rem;
  border-radius: 25px;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 1rem;
}

.exam-mppsc {
  background: linear-gradient(135deg, #1e3a8a, #3b82f6);
  color: white;
}

.exam-upsc {
  background: linear-gradient(135deg, #7c3aed, #a855f7);
  color: white;
}

.exam-mpsi {
  background: linear-gradient(135deg, #dc2626, #ef4444);
  color: white;
}

.exam-capf {
  background: linear-gradient(135deg, #059669, #10b981);
  color: white;
}

.rank-display {
  margin-bottom: 1.5rem;
}

.rank-number {
  display: block;
  font-size: 2rem;
  font-weight: 800;
  color: var(--accent-color);
  line-height: 1;
  margin-bottom: 0.25rem;
}

.rank-category {
  font-size: 0.9rem;
  color: #6b7280;
  font-weight: 500;
}

.topper-details {
  text-align: left;
  background: #f8fafc;
  padding: 1rem;
  border-radius: 12px;
  margin-top: 1rem;
}

.topper-details p {
  margin: 0.5rem 0;
  font-size: 0.9rem;
  color: #4b5563;
  display: flex;
  align-items: center;
}

.topper-details i {
  color: var(--primary-color);
  width: 16px;
}

/* Mobile Responsive */
@media (max-width: 768px) {
  .topper-card {
    padding: 1.5rem;
    margin-bottom: 2rem;
  }

  .topper-image {
    width: 80px;
    height: 80px;
  }

  .topper-name {
    font-size: 1.1rem;
  }

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

  .exam-badge {
    padding: 0.3rem 0.75rem;
    font-size: 0.75rem;
    border-radius: 20px;
    margin-bottom: 0.75rem;
  }

  .achievement-icon {
    width: 28px;
    height: 28px;
    font-size: 0.8rem;
  }
}

/* Mobile horizontal scroll for toppers cards */
@media (max-width: 767.98px) {
  .mobile-cards-scroll {
    display: flex;
    overflow-x: auto;
    gap: 1rem;
    padding-bottom: 1rem;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
  }

  .mobile-cards-scroll::-webkit-scrollbar {
    display: none;
  }

  .scroll-card {
    flex: 0 0 82vw;
    max-width: 320px;
    background: white;
    border-radius: 20px;
    padding: 1.5rem 1rem;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    scroll-snap-align: center;
    position: relative;
    border: 1px solid rgba(0, 0, 0, 0.05);
    margin-bottom: 0;
    text-align: center;
  }
}

/* ================= HERO IMAGE SLIDER ================= */
.hero-slider-container {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 500px;
  margin-bottom: 30px;
}

.hero-image-slider {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  background: #000;
}

.slider-wrapper {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 500px;
  padding-bottom: 20px;
}

.slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transform: translateX(100%);
  transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 1;
}

.slide.active {
  opacity: 1;
  transform: translateX(0);
  z-index: 2;
}

.slide.prev {
  transform: translateX(-100%);
}

.slide-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.slide-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.7));
  padding: 3rem 2rem 2rem;
  color: white;
}

.slide-content h4 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: white;
}

.slide-content p {
  font-size: 1rem;
  margin: 0;
  opacity: 0.9;
}

/* Slider Navigation */
.slider-nav {
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  transform: translateY(-50%);
  display: flex;
  justify-content: space-between;
  padding: 0 1rem;
  z-index: 10;
  pointer-events: none;
}

.nav-btn {
  width: 50px;
  height: 50px;
  background: rgba(255, 255, 255, 0.9);
  border: none;
  border-radius: 50%;
  color: #1e3a8a;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  transition: all 0.3s ease;
  pointer-events: auto;
  backdrop-filter: blur(10px);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.nav-btn:hover {
  background: white;
  transform: scale(1.1);
  color: #1e40af;
}

/* Slider Indicators */
.slider-indicators {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 0.8rem;
  z-index: 10;
}

.indicator {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.5);
  cursor: pointer;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
}

.indicator.active {
  background: white;
  transform: scale(1.2);
  box-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
}

/* Floating Stats Cards - Updated positions */
.floating-stats {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  pointer-events: none;
  z-index: 5;
}

.floating-stats .floating-element {
  position: absolute;
  background: white;
  border-radius: 15px;
  padding: 1.2rem;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
  animation: float 4s ease-in-out infinite;
  pointer-events: auto;
  border: 1px solid rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(10px);
}

.floating-stats .success-badge {
  top: 10%;
  right: -20%;
  animation-delay: 0s;
}

.floating-stats .course-info {
  top: 90%;
  left: -15%;
  animation-delay: 1.5s;
}

.floating-stats .live-class {
  bottom: 15%;
  right: -20%;
  animation-delay: 3s;
}

.success-content,
.course-content,
.live-content {
  display: flex;
  align-items: center;
  min-width: 180px;
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0px);
  }

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

/* Mobile Responsive */
@media (max-width: 768px) {
  .hero-slider-container {
    min-height: 400px;
    margin-top: 0rem;
  }

  .slider-wrapper {
    min-height: 400px;
  }

  .slide-overlay {
    padding: 2rem 1.5rem 1.5rem;
  }

  .slide-content h4 {
    font-size: 1.2rem;
  }

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

  /* Hide floating elements on mobile */
  .floating-stats,
  .floating-stats .floating-element {
    display: none;
  }
}



/* ================= BLOG SECTION STYLES WITH SCROLLING ================= */

#blog-section {
  position: relative;
  overflow: hidden;
}

/* Desktop Navigation */
.blog-nav-container {
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  transform: translateY(-50%);
  pointer-events: none;
  z-index: 10;
}

.blog-nav-btn {
  position: absolute;
  width: 55px;
  height: 55px;
  background: white;
  border: 2px solid rgba(30, 58, 138, 0.2);
  border-radius: 50%;
  color: #1e3a8a;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  transition: all 0.3s ease;
  pointer-events: auto;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.blog-nav-btn:hover {
  background: #1e3a8a;
  color: white;
  transform: translateY(-50%) scale(1.1);
  box-shadow: 0 12px 35px rgba(30, 58, 138, 0.3);
}

.blog-prev {
  left: -25px;
}

.blog-next {
  right: -25px;
}

/* Blog Container */
.blog-container {
  position: relative;
  padding: 1rem 0;
}

.blog-wrapper {
  position: relative;
}

/* Blog Posts Horizontal Layout */
#blog-posts {
  display: flex;
  gap: 2rem;
  overflow-x: auto;
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
  padding: 1rem 0;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

#blog-posts::-webkit-scrollbar {
  display: none;
}

/* Blog Card Styling */
.blog-card {
  flex: 0 0 380px;
  background: white;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  transition: all 0.4s ease;
  border: 1px solid rgba(0, 0, 0, 0.05);
  height: 100%;
  display: flex;
  flex-direction: column;
  scroll-snap-align: center;
}

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

/* Blog Image */
.blog-image-container {
  position: relative;
  height: 240px;
  overflow: hidden;
  background: #f8fafc;
}

.blog-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

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

.blog-image-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  background: linear-gradient(135deg, #e3f2fd, #f8fafc);
  color: #64748b;
  font-size: 3rem;
}

/* Blog Content */
.blog-content {
  padding: 2rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.blog-category {
  color: #3b82f6;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 1rem;
}

.blog-title {
  font-size: 1.3rem;
  font-weight: 700;
  color: #1e293b;
  line-height: 1.4;
  margin-bottom: 1rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.blog-title:hover {
  color: #1e3a8a;
}

.blog-excerpt {
  color: #64748b;
  line-height: 1.6;
  margin-bottom: 1.5rem;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  flex: 1;
}

/* Blog Meta */
.blog-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.5rem;
  padding-top: 1rem;
  border-top: 1px solid #e5e7eb;
}

.blog-date {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: #6b7280;
  font-size: 0.9rem;
}

.blog-author {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: #6b7280;
  font-size: 0.9rem;
}

/* Read More Button */
.blog-read-more {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: linear-gradient(135deg, #1e3a8a, #3b82f6);
  color: white;
  text-decoration: none;
  padding: 0.8rem 1.5rem;
  border-radius: 12px;
  font-weight: 600;
  transition: all 0.3s ease;
  margin-top: auto;
}

.blog-read-more:hover {
  background: linear-gradient(135deg, #1e40af, #2563eb);
  color: white;
  text-decoration: none;
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(30, 58, 138, 0.3);
}

/* Blog Indicators */
.blog-indicators .indicator {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(30, 58, 138, 0.3);
  transition: all 0.3s ease;
  cursor: pointer;
  margin: 0 0.3rem;
}

.blog-indicators .indicator.active {
  background: #1e3a8a;
  transform: scale(1.3);
  box-shadow: 0 3px 10px rgba(30, 58, 138, 0.3);
}

/* Loading Animation */
.blog-card.loading {
  background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
  background-size: 200% 100%;
  animation: loading 1.5s infinite;
}

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

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

/* Desktop Grid Layout */
@media (min-width: 992px) {
  #blog-posts {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: none;
  }

  .blog-card {
    flex: 0 0 380px;
  }

  .blog-indicators {
    display: none !important;
  }
}

/* Mobile Responsive */
@media (max-width: 767px) {
  .blog-card {
    flex: 0 0 300px;
    margin: 0 0.5rem;
  }

  .blog-content {
    padding: 1.5rem;
  }

  .blog-title {
    font-size: 1.1rem;
  }

  .blog-image-container {
    height: 200px;
  }

  .blog-meta {
    flex-direction: column;
    gap: 0.5rem;
    align-items: flex-start;
  }
}

@media (max-width: 576px) {
  .blog-card {
    flex: 0 0 280px;
  }

  .blog-content {
    padding: 1.2rem;
  }

  .blog-title {
    font-size: 1rem;
  }

  .blog-excerpt {
    font-size: 0.9rem;
  }
}

/* FadeInUp Animation */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

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

/* ================= DIRECTORS MESSAGE SECTION ================= */

#directors-message {
  position: relative;
  overflow: hidden;
}

/* Message Container */
.message-container {
  background: white;
  border-radius: 20px;
  padding: 2.5rem;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.08);
  border-left: 5px solid #1e3a8a;
  position: relative;
}

.message-container::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #1e3a8a, #3b82f6, #60a5fa);
}

/* Message Header */
.message-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 2rem;
}

.quote-decoration {
  width: 50px;
  height: 50px;
  background: linear-gradient(135deg, #1e3a8a, #3b82f6);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.3rem;
  flex-shrink: 0;
}

.message-title {
  font-size: 1.8rem;
  font-weight: 700;
  color: #1e3a8a;
  margin: 0;
  font-family: "Noto Sans Devanagari", sans-serif;
}

/* Message Content */
.message-content {
  margin-bottom: 2rem;
}

.message-text {
  font-size: 1.1rem;
  line-height: 1.8;
  color: #374151;
  margin-bottom: 1.5rem;
  text-align: justify;
  font-family: "Noto Sans Devanagari", sans-serif;
}

.message-text:last-child {
  margin-bottom: 0;
}

.message-text strong {
  color: #1e3a8a;
  font-weight: 700;
}

/* Message Signature */
.message-signature {
  border-top: 2px solid #e5e7eb;
  padding-top: 1.5rem;
  text-align: right;
}

.signature-line {
  width: 100px;
  height: 2px;
  background: #1e3a8a;
  margin-left: auto;
  margin-bottom: 1rem;
}

.institute-name {
  font-size: 1.3rem;
  font-weight: 700;
  color: #1e3a8a;
  margin-bottom: 0.3rem;
  font-family: "Noto Sans Devanagari", sans-serif;
}

.institute-location {
  color: #6b7280;
  font-size: 1rem;
  margin: 0;
  font-family: "Noto Sans Devanagari", sans-serif;
}

/* Directors Gallery */
.directors-gallery {
  background: white;
  border-radius: 20px;
  padding: 2rem;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.08);
}

.gallery-header {
  text-align: center;
  margin-bottom: 2rem;
}

.gallery-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: #1e3a8a;
  margin-bottom: 0.5rem;
  font-family: "Noto Sans Devanagari", sans-serif;
}

.gallery-subtitle {
  color: #6b7280;
  font-size: 0.95rem;
  margin: 0;
  font-family: "Noto Sans Devanagari", sans-serif;
}

/* Directors Grid */
.directors-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin-bottom: 2rem;
}

/* Director Card */
.director-card {
  text-align: center;
  position: relative;
  transition: all 0.3s ease;
}

.director-card:hover {
  transform: translateY(-5px);
}

.director-card.main-director {
  grid-column: 1 / -1;
  max-width: 250px;
  margin: 0 auto;
}

/* Director Image */
.director-image-wrapper {
  position: relative;
  margin-bottom: 1rem;
  display: inline-block;
}

.director-image {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid white;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
  transition: all 0.3s ease;
}

.main-director .director-image {
  width: 150px;
  height: 150px;
}

.director-card:hover .director-image {
  transform: scale(1.05);
  box-shadow: 0 12px 35px rgba(30, 58, 138, 0.2);
}

/* Director Overlay */
.director-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    135deg,
    rgba(30, 58, 138, 0.8),
    rgba(59, 130, 246, 0.6)
  );
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: all 0.3s ease;
}

.director-card:hover .director-overlay {
  opacity: 1;
}

/* Director Badge */
.director-badge {
  background: rgba(255, 255, 255, 0.9);
  color: #1e3a8a;
  padding: 0.4rem 0.8rem;
  border-radius: 20px;
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  display: flex;
  align-items: center;
  gap: 0.3rem;
  font-family: "Noto Sans Devanagari", sans-serif;
}

.director-badge.academic {
  background: linear-gradient(135deg, #10b981, #34d399);
  color: white;
}

.director-badge.admin {
  background: linear-gradient(135deg, #8b5cf6, #a855f7);
  color: white;
}

.director-badge.advisor {
  background: linear-gradient(135deg, #f59e0b, #fbbf24);
  color: white;
}

/* Director Info */
.director-info {
  padding: 0 0.5rem;
}

.director-name {
  font-size: 1rem;
  font-weight: 700;
  color: #1e3a8a;
  margin-bottom: 0.3rem;
  font-family: "Noto Sans Devanagari", sans-serif;
}

.main-director .director-name {
  font-size: 1.2rem;
}

.director-title {
  font-size: 0.8rem;
  color: #6b7280;
  margin: 0;
  font-family: "Noto Sans Devanagari", sans-serif;
}

/* Directors CTA */
.directors-cta {
  text-align: center;
  padding-top: 1.5rem;
  border-top: 1px solid #e5e7eb;
}

.cta-text {
  font-size: 0.9rem;
  color: #6b7280;
  margin-bottom: 1rem;
  font-family: "Noto Sans Devanagari", sans-serif;
}

.directors-cta .btn {
  background: linear-gradient(135deg, #1e3a8a, #3b82f6);
  border: none;
  border-radius: 25px;
  padding: 0.7rem 1.5rem;
  font-weight: 600;
  box-shadow: 0 4px 15px rgba(30, 58, 138, 0.3);
  transition: all 0.3s ease;
  font-family: "Noto Sans Devanagari", sans-serif;
}

.directors-cta .btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(30, 58, 138, 0.4);
}

/* Mobile Responsive */
@media (max-width: 768px) {
  .message-container {
    padding: 2rem;
    margin-bottom: 2rem;
  }

  .message-title {
    font-size: 1.5rem;
  }

  .message-text {
    font-size: 1rem;
    line-height: 1.6;
  }

  .directors-gallery {
    padding: 1.5rem;
  }

  .directors-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .director-card.main-director {
    grid-column: 1;
    max-width: 200px;
  }

  .gallery-title {
    font-size: 1.3rem;
  }

  .quote-decoration {
    width: 40px;
    height: 40px;
    font-size: 1.1rem;
  }
}

@media (max-width: 576px) {
  .message-container {
    padding: 1.5rem;
  }

  .message-header {
    flex-direction: column;
    text-align: center;
    gap: 1rem;
  }

  .message-text {
    font-size: 0.95rem;
    text-align: left;
  }

  .directors-gallery {
    padding: 1.2rem;
  }

  .director-image {
    width: 100px;
    height: 100px;
  }

  .main-director .director-image {
    width: 120px;
    height: 120px;
  }

  .director-name {
    font-size: 0.9rem;
  }

  .director-title {
    font-size: 0.75rem;
  }
}

/* Hide desktop navbar on mobile */
@media (max-width: 767px) {
  #navbar {
    display: none !important;
  }
}

/* ================= MOBILE STICKY NAVBAR ================= */
.mobile-sticky-navbar {
  display: none;
}

.mobile-sidebar {
  display: none;
}

.mobile-overlay {
  display: none;
}

@media (max-width: 767px) {
  /* Hide desktop navbar on mobile */
  #navbar {
    display: none !important;
  }

  /* Show mobile elements */
  .mobile-sticky-navbar {
    display: block;
  }

  .mobile-sidebar {
    display: block;
  }

  .mobile-overlay {
    display: block;
  }

  /* Mobile Sticky Navbar */
  .mobile-sticky-navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 70px;
    background: linear-gradient(135deg, #1e3a8a 0%, #3b82f6 100%);
    z-index: 1040;
    box-shadow: 0 2px 20px rgba(30, 58, 138, 0.3);
    backdrop-filter: blur(10px);
  }

  .mobile-nav-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
    padding: 0 1rem;
  }

  /* Mobile Logo */
  .mobile-navbar-brand {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: white;
    gap: 0.5rem;
  }

  .mobile-logo {
    width: 55px;
    height: 45px;
    object-fit: contain;
  }

  .mobile-brand-text {
    font-size: 1.1rem;
    font-weight: 700;
    color: white;
  }

  /* Enhanced Hamburger Menu Button */
  .mobile-menu-btn {
    width: 45px;
    height: 45px;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    cursor: pointer;
    z-index: 1041;
    position: relative;
  }

  .mobile-menu-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.05);
  }

  .mobile-menu-btn:focus {
    outline: none;
    background: rgba(255, 255, 255, 0.2);
  }

  .hamburger-line {
    width: 20px;
    height: 2px;
    background: white;
    transition: all 0.3s ease;
    border-radius: 2px;
    display: block;
  }

  /* Hamburger Animation */
  .mobile-menu-btn.active .hamburger-line:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
  }

  .mobile-menu-btn.active .hamburger-line:nth-child(2) {
    opacity: 0;
  }

  .mobile-menu-btn.active .hamburger-line:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
  }

  /* Body padding for sticky navbar */
  body {
    padding-top: 70px;
  }

  /* Mobile Sidebar */
  .mobile-sidebar {
    position: fixed;
    top: 0;
    left: -300px;
    width: 280px;
    height: 100vh;
    background: linear-gradient(180deg, #1e3a8a 0%, #1e40af 100%);
    color: white;
    overflow-y: auto;
    transition: left 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1050;
    box-shadow: 4px 0 20px rgba(0, 0, 0, 0.3);
  }

  .mobile-sidebar.open {
    left: 0;
  }

  /* Sidebar Header */
  .sidebar-header {
    padding: 20px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    position: relative;
    text-align: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
  }

  .sidebar-logo {
    width: 60px;
    height: 48px;
    object-fit: contain;
    margin-bottom: px;
    display: block;
    /* Ensures it behaves like a block-level element */
    margin-left: 0;
    /* Aligns it to the left */
  }

  .sidebar-brand {
    margin: 0;
    font-weight: 700;
    font-size: 1.1rem;
    color: white;
  }

  .close-btn {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 35px;
    height: 35px;
    background: rgba(255, 255, 255, 0.2);
    border: none;
    border-radius: 50%;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    cursor: pointer;
  }

  .close-btn:hover {
    background: rgba(239, 68, 68, 0.8);
    transform: rotate(90deg);
  }

  /* Mobile Menu List */
  .mobile-menu-list {
    list-style: none;
    padding: 0;
    margin: 0;
  }

  .mobile-menu-list li {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  }

  .mobile-menu-list a {
    display: flex;
    align-items: center;
    padding: 15px 20px;
    color: white;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
  }

  .mobile-menu-list a:hover {
    background: rgba(255, 255, 255, 0.15);
    padding-left: 25px;
    color: white;
  }

  .mobile-menu-list a i {
    width: 20px;
    margin-right: 12px;
    font-size: 1rem;
    color: #93c5fd;
  }

  /* Submenu Styling */
  .has-submenu .submenu-toggle {
    justify-content: space-between;
    cursor: pointer;
  }

  .arrow {
    transition: transform 0.3s ease;
    font-size: 0.8rem !important;
    width: auto !important;
    margin: 0 !important;
  }

  .has-submenu.active .arrow {
    transform: rotate(180deg);
  }

  .submenu {
    list-style: none;
    padding: 0;
    margin: 0;
    max-height: 0;
    overflow: hidden;
    background: rgba(0, 0, 0, 0.2);
    transition: max-height 0.4s ease;
  }

  .has-submenu.active .submenu {
    max-height: 300px;
  }

  .submenu li a {
    padding: 12px 20px 12px 50px;
    font-size: 0.9rem;
    color: #e2e8f0;
  }

  .submenu li a:hover {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    padding-left: 55px;
  }

  .submenu .divider {
    height: 1px;
    background: rgba(255, 255, 255, 0.2);
    margin: 8px 20px;
  }

  /* Mobile CTA Buttons */
  .mobile-cta {
    padding: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    margin-top: auto;
  }

  .mobile-whatsapp-btn,
  .mobile-enquiry-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 12px;
    margin-bottom: 10px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s ease;
  }

  .mobile-whatsapp-btn {
    background: #25d366;
    color: white;
  }

  .mobile-whatsapp-btn:hover {
    background: #128c7e;
    color: white;
    transform: translateY(-2px);
  }

  .mobile-enquiry-btn {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.3);
  }

  .mobile-enquiry-btn:hover {
    background: white;
    color: #1e3a8a;
    transform: translateY(-2px);
  }

  /* Mobile Overlay */
  .mobile-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(2px);
    z-index: 1045;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
  }

  .mobile-overlay.active {
    opacity: 1;
    visibility: visible;
  }

  /* Prevent body scroll when sidebar is open */
  body.sidebar-open {
    overflow: hidden;
  }
}




/* ================= SUCCESS STORIES TESTIMONIAL SECTION ================= 
#success-stories {
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  position: relative;
  overflow: hidden;
}

#success-stories::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="50" cy="50" r="1" fill="%23000" opacity="0.02"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
  pointer-events: none;
}

.divider {
  width: 60px;
  height: 4px;
  background: linear-gradient(90deg, #1e3a8a, #3b82f6);
  border-radius: 2px;
}

/* Main Video Card 
.main-video-card {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
}

.main-video-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.15);
}

.video-container {
  position: relative;
  overflow: hidden;
  border-radius: 15px;
  cursor: pointer;
}

.video-thumbnail {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.video-thumbnail img {
  width: 100%;
  height: 300px;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.video-thumbnail:hover img {
  transform: scale(1.05);
}

.video-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(to top, rgba(0, 123, 255, 0.8) 0%, transparent 60%);

  display: flex;
  align-items: flex-end;
  padding: 20px;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.video-thumbnail:hover .video-overlay {
  opacity: 1;
}

.play-button {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 80px;
  height: 80px;
  background: rgba(255, 255, 255, 0.9);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  color: #1e3a8a;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
}

.play-button:hover {
  background: rgba(255, 255, 255, 1);
  transform: translate(-50%, -50%) scale(1.1);
}

.play-button-small {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 50px;
  height: 50px;
  background: rgba(255, 255, 255, 0.9);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  color: #1e3a8a;
  transition: all 0.3s ease;
}

.play-button-medium {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 60px;
  height: 60px;
  background: rgba(255, 255, 255, 0.9);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  color: #1e3a8a;
  transition: all 0.3s ease;
}

/* Side Videos 
.side-videos {
  height: 100%;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.side-video-card {
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  flex: 1;
}

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

.side-video-card .video-thumbnail img {
  height: 140px;
}

/* Testimonial Scroll Section
.testimonial-scroll-section {
  position: relative;
  margin-top: 3rem;
}

.scroll-controls {
  display: flex;
  gap: 10px;
}

.scroll-btn {
  width: 45px;
  height: 45px;
  background: linear-gradient(135deg, #1e3a8a, #3b82f6);
  border: none;
  border-radius: 50%;
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(30, 58, 138, 0.3);
}

.scroll-btn:hover {
  background: linear-gradient(135deg, #1e40af, #2563eb);
  transform: scale(1.05);
}

.scroll-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}

.testimonial-scroll-container {
  position: relative;
  overflow: hidden;
  margin-top: 1rem;
}

.testimonial-scroll-wrapper {
  display: flex;
  transition: transform 0.5s ease;
  gap: 20px;
}

.testimonial-card {
  flex: 0 0 280px;
  background: white;
  border-radius: 15px;
  padding: 20px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
}

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

.testimonial-card .video-thumbnail img {
  height: 180px;
  border-radius: 10px;
}

.testimonial-content {
  padding-top: 15px;
}

.testimonial-content h5 {
  color: #1e3a8a;
  font-weight: 600;
}

.rating {
  display: flex;
  gap: 2px;
}

/* Responsive Design 
@media (max-width: 768px) {
  .main-video-card .video-thumbnail img {
    height: 200px;
  }
  
  .side-video-card .video-thumbnail img {
    height: 100px;
  }
  
  .testimonial-card {
    flex: 0 0 250px;
    padding: 15px;
  }
  
  .testimonial-card .video-thumbnail img {
    height: 140px;
  }
  
  .play-button {
    width: 60px;
    height: 60px;
    font-size: 20px;
  }
  
  .play-button-small {
    width: 40px;
    height: 40px;
    font-size: 14px;
  }
  
  .play-button-medium {
    width: 50px;
    height: 50px;
    font-size: 16px;
  }
}

@media (max-width: 576px) {
  .scroll-controls {
    display: none;
  }
  
  .testimonial-scroll-container {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
  
  .testimonial-scroll-wrapper {
    padding-bottom: 10px;
  }
  
  .testimonial-card {
    flex: 0 0 220px;
  }
}
*/



/* ================= LEAD FORM POPUP STYLES ================= */
.lead-popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    padding: 1rem;
}

.lead-popup-overlay.show {
    opacity: 1;
    visibility: visible;
}

.lead-popup-container {
    background: white;
    border-radius: 20px;
    max-width: 500px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 25px 100px rgba(0, 0, 0, 0.4),
                0 10px 40px rgba(30, 58, 138, 0.3);
    position: relative;
    transform: translateY(50px) scale(0.9);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.lead-popup-overlay.show .lead-popup-container {
    transform: translateY(0) scale(1);
}

/* Close Button */
.lead-popup-close {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.95);
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    transition: all 0.3s ease;
    color: #1e3a8a;
    font-size: 1rem;
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.lead-popup-close:hover {
    background: #ef4444;
    color: white;
    transform: rotate(90deg) scale(1.1);
    box-shadow: 0 6px 20px rgba(239, 68, 68, 0.4);
}

/* Header Section */
.lead-popup-header {
    background: linear-gradient(135deg, #1e3a8a 0%, #3b82f6 100%);
    padding: 2.5rem 2rem 2rem;
    text-align: center;
    border-radius: 20px 20px 0 0;
    position: relative;
    overflow: hidden;
}

.lead-popup-header::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)"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    opacity: 0.3;
}

.popup-logo {
    margin-bottom: 1rem;
    position: relative;
    z-index: 1;
}

.header-logo {
    width: 70px;
    height: 56px;
    object-fit: contain;
    filter: brightness(0) invert(1);
    drop-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.popup-title {
    color: white;
    font-size: 1.6rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    position: relative;
    z-index: 1;
}

.popup-subtitle {
    color: rgba(255, 255, 255, 0.95);
    font-size: 0.95rem;
    margin: 0;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
    position: relative;
    z-index: 1;
}

/* Form Body */
.lead-popup-body {
    padding: 2.5rem 2rem;
    background: #fafbff;
}

.lead-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-row {
    display: flex;
    gap: 1rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    flex: 1;
}

.form-group-half {
    flex: 0 0 calc(50% - 0.5rem);
}

.form-label {
    color: #1e3a8a;
    font-weight: 600;
    margin-bottom: 0.6rem;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.form-label i {
    color: #3b82f6;
    width: 16px;
    font-size: 0.9rem;
}

.form-input {
    border: 2px solid #e2e8f0;
    border-radius: 14px;
    padding: 0.9rem 1.2rem;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    background: white;
    font-family: inherit;
    width: 100%;
    outline: none;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.form-input:focus {
    border-color: #3b82f6;
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.1),
                0 4px 12px rgba(59, 130, 246, 0.15);
    background: white;
    transform: translateY(-1px);
}

.form-input::placeholder {
    color: #94a3b8;
    font-size: 0.9rem;
}

.form-input.success {
    border-color: #10b981 !important;
    background: #f0fdf4 !important;
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.1) !important;
}

.form-input.error {
    border-color: #ef4444 !important;
    background: #fef2f2 !important;
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1) !important;
}

/* Submit Button */
.lead-submit-btn {
    background: linear-gradient(135deg, #1e3a8a, #3b82f6);
    color: white;
    border: none;
    border-radius: 14px;
    padding: 1.2rem 2rem;
    font-size: 1.05rem;
    font-weight: 600;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
    margin-top: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    box-shadow: 0 6px 20px rgba(30, 58, 138, 0.3);
}

.lead-submit-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(30, 58, 138, 0.4),
                0 0 40px rgba(59, 130, 246, 0.3);
}

.lead-submit-btn:active {
    transform: translateY(-1px);
}

.lead-submit-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

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

.lead-submit-btn:hover .btn-glow {
    left: 100%;
}

.btn-text {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

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

.lead-submit-btn.loading .btn-text {
    opacity: 0.7;
}

.lead-submit-btn.loading::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 24px;
    height: 24px;
    margin: -12px 0 0 -12px;
    border: 3px solid transparent;
    border-top: 3px solid white;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    z-index: 2;
}

/* Privacy Note */
.form-privacy {
    text-align: center;
    color: #64748b;
    font-size: 0.8rem;
    margin-top: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    line-height: 1.5;
    padding: 1rem;
    background: rgba(59, 130, 246, 0.05);
    border-radius: 10px;
    border: 1px solid rgba(59, 130, 246, 0.1);
}

.form-privacy i {
    color: #10b981;
    font-size: 0.8rem;
}

/* Error Messages */
.field-error {
    color: #ef4444;
    font-size: 0.8rem;
    margin-top: 0.4rem;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    animation: slideInUp 0.3s ease;
}

.field-error i {
    font-size: 0.75rem;
}

/* Success and Error Messages */
.success-message,
.error-message {
    margin-top: 1.5rem;
    border-radius: 14px;
    overflow: hidden;
    animation: slideInUp 0.4s ease;
}

/* Button Hover Effects */
.btn {
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
    font-weight: 600;
    border: none;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.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 ease;
}

.btn:hover::before {
    left: 100%;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .lead-popup-container {
        max-width: 95%;
        margin: 0.5rem;
        border-radius: 16px;
        max-height: 95vh;
    }
    
    .lead-popup-header {
        padding: 2rem 1.5rem 1.5rem;
        border-radius: 16px 16px 0 0;
    }
    
    .popup-title {
        font-size: 1.4rem;
    }
    
    .popup-subtitle {
        font-size: 0.9rem;
    }
    
    .lead-popup-body {
        padding: 2rem 1.5rem;
    }
    
    .form-row {
        flex-direction: column;
        gap: 0;
    }
    
    .form-group-half {
        flex: 1;
    }
    
    .form-input {
        padding: 0.8rem 1rem;
        font-size: 0.9rem;
    }
    
    .lead-submit-btn {
        padding: 1rem 1.5rem;
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .lead-popup-overlay {
        padding: 0.25rem;
    }
    
    .lead-popup-container {
        max-width: 100%;
        border-radius: 12px;
        max-height: 98vh;
    }
    
    .lead-popup-header {
        padding: 1.5rem 1rem 1rem;
        border-radius: 12px 12px 0 0;
    }
    
    .header-logo {
        width: 50px;
        height: 40px;
    }
    
    .popup-title {
        font-size: 1.2rem;
    }
    
    .lead-popup-body {
        padding: 1.5rem 1rem;
    }
    
    .form-label {
        font-size: 0.85rem;
    }
    
    .form-input {
        font-size: 0.85rem;
        padding: 0.7rem 0.8rem;
    }
    
    .lead-submit-btn {
        font-size: 0.95rem;
        padding: 0.9rem 1.2rem;
    }
}

/* Prevent body scroll when popup is open */
body.lead-popup-open {
    overflow: hidden;
    position: fixed;
    width: 100%;
    height: 100%;
}

/* Animation keyframes */
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

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

@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideOutRight {
    from {
        transform: translateX(0);
        opacity: 1;
    }
    to {
        transform: translateX(100%);
        opacity: 0;
    }
}




/* Scroll Popup */

.reload-popup-overlay {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(12px);
  z-index: 9998;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: all 0.5s ease;
  padding: 1rem;
}
.reload-popup-overlay.show {
  opacity: 1;
  visibility: visible;
}
.reload-popup-container {
  position: relative;
  max-width: 450px;
  width: 100%;
  background: white;
  border-radius: 25px;
  overflow: hidden;
  box-shadow: 0 30px 120px rgba(0, 0, 0, 0.5),
              0 15px 50px rgba(30, 58, 138, 0.4);
  transform: translateY(60px) scale(0.85);
  transition: all 0.5s ease;
}
.reload-popup-overlay.show .reload-popup-container {
  transform: translateY(0) scale(1);
}

/* Close Button */
.reload-popup-close {
  position: absolute;
  top: 18px; right: 18px;
  width: 45px; height: 45px;
  background: rgba(255,255,255,0.98);
  border: none;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 15;
  color: #1e3a8a;
  font-size: 1.1rem;
  backdrop-filter: blur(15px);
  box-shadow: 0 6px 20px rgba(0,0,0,0.25);
  transition: all 0.3s ease;
}
.reload-popup-close:hover {
  background: #ef4444;
  color: white;
  transform: rotate(90deg) scale(1.15);
}

/* Image & Buttons */
.reload-popup-image-container {
  position: relative;
  width: 100%;
  aspect-ratio: 4/5;
  overflow: hidden;
}
.reload-popup-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}
.reload-popup-buttons {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  background: linear-gradient(transparent, rgba(0,0,0,0.8));
  padding: 2rem 1.5rem;
  display: flex;
  gap: 1rem;
  justify-content: center;
  align-items: flex-end;
}
.reload-popup-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.8rem 1.5rem;
  font-size: 1rem;
  font-weight: 700;
  border-radius: 40px;
  text-decoration: none;
  min-width: 130px;
  color: white;
  background: linear-gradient(135deg, #00b460, #014526);
  border: none;
  position: relative;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(5, 196, 107, 0.5);
  backdrop-filter: blur(15px);
  transition: all 0.3s ease;
}
.reload-popup-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
  transition: left 0.7s ease;
}
.reload-popup-btn:hover::before {
  left: 100%;
}
.buy-now-btn {
  background: linear-gradient(135deg, #1e3a8a, #3b82f6);
}
.buy-now-btn:hover {
  background: linear-gradient(135deg, #1e40af, #2563eb);
  transform: translateY(-4px);
}
.register-now-btn {
  background: linear-gradient(135deg, #10b981, #34d399);
}
.register-now-btn:hover {
  background: linear-gradient(135deg, #059669, #10b981);
  transform: translateY(-4px);
}
.reload-popup-btn i {
  font-size: 1rem;
}

/* Disable Scroll */
body.reload-popup-open {
  overflow: hidden;
}

@media (max-width: 768px) {
  .reload-popup-buttons {
    flex-direction: column;
    gap: 0.8rem;
    padding: 1.2rem 1rem;
    min-height: auto;
  }

  .reload-popup-btn {
    padding: 0.7rem 1.2rem;
    font-size: 0.95rem;
    min-width: auto;
    width: 100%; /* Full width buttons for smaller screens */
    max-width: 260px;
    margin: 0 auto;
    border-radius: 30px;
  }

  .reload-popup-btn i {
    font-size: 0.95rem;
  }
}

@media (max-width: 480px) {
  .reload-popup-btn {
    padding: 0.6rem 1rem;
    font-size: 0.9rem;
    border-radius: 28px;
    max-width: 240px;
  }

  .reload-popup-buttons {
    padding: 1rem 0.8rem;
  }
}
