:root {
  --primary: #9b000e;
  --primary-hover: #b80012;
  --primary-light: #fff2f3;
  --secondary: #e65c00;
  --secondary-hover: #ff751a;
  --accent: #d4af37;
  --dark: #000000;
  --light: #f8fafc;
  --slate-50: #f8fafc;
  --slate-100: #f1f5f9;
  
  --font-heading: 'Outfit', sans-serif;
  --font-body: 'Inter', sans-serif;
  
  --transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.08);
  --shadow-md: 0 10px 30px rgba(0,0,0,0.06);
  --shadow-lg: 0 20px 40px rgba(0,0,0,0.08);
}

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

body {
  font-family: var(--font-body);
  color: #000000;
  background-color: #ffffff;
  overflow-x: hidden;
  line-height: 1.65;
}

p, span, small, label, input, select, textarea, .text-muted, .text-secondary, .text-dark, .text-white-50, .text-light-50 {
  color: #000000 !important;
  font-size: 0.95rem;
}

.text-muted, .text-secondary, .text-dark {
  color: #000000 !important;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 600; /* Standardized semi-bold weight */
  color: var(--dark);
}

/* Hero Title semantic size and weight matching other headers */
.hero-title {
  font-size: 2.75rem;
  font-weight: 600;
  color: var(--dark);
  line-height: 1.2;
}

.hero-title span {
  font-size: 2.75rem !important;
  font-weight: 600 !important;
}

/* Uniform Section Headings (Semantic and Equal) */
.section-title {
  font-size: 2.1rem;
  font-weight: 600;
  color: var(--dark);
  margin-bottom: 0.75rem;
  text-align: center;
  font-family: var(--font-heading);
}

.section-title span, .section-title strong {
  font-size: 2.1rem !important;
  font-weight: 600 !important;
}

.section-badge {
  display: block;
  width: fit-content;
  margin: 0 auto 0.75rem auto;
  background-color: var(--primary-light);
  color: var(--primary);
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  padding: 6px 14px;
  border-radius: 30px;
  border: 1px solid rgba(155, 0, 14, 0.12);
}

.section-badge-left {
  display: block;
  width: fit-content;
  margin: 0 0 0.75rem 0;
  background-color: var(--primary-light);
  color: var(--primary);
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  padding: 6px 14px;
  border-radius: 30px;
  border: 1px solid rgba(155, 0, 14, 0.12);
}

/* Text overrides in dark image sections */
.text-white-override,
.text-white-override p,
.text-white-override span,
.text-white-override small,
.text-white-override a,
.text-white-override h2,
.text-white-override h2 span,
.text-white-override h3,
.text-white-override h4,
.text-white-override h5,
.text-white-override .text-white-50,
.text-white-override .text-light-50,
.text-white-override .text-muted,
.text-white-override .text-secondary,
.footer-main,
.footer-main p,
.footer-main span,
.footer-main small,
.footer-main a,
.footer-main h5,
.footer-main .text-white-50,
.footer-main .text-light-50,
.footer-main .text-muted,
.footer-main .text-secondary,
.btn-premium-primary,
.btn-premium-primary i,
.btn-premium-secondary,
.btn-premium-secondary i,
.gallery-overlay-text h5 {
  color: #ffffff !important;
}

.badge-premium, .section-badge, .section-badge-left {
  color: var(--primary) !important;
}

/* Equal Section Padding */
.section-padding {
  padding: 60px 0;
}

/* Redesigned Background Colors */
.bg-hero-premium {
  background: linear-gradient(90deg, #5a000a 0%, #140003 45%, #600073 100%) !important; /* Premium dark theme gradient: left wine-red, center dark wine-black, right deep violet/magenta */
  background-size: cover;
  background-position: center;
  position: relative;
  /* padding: 20px 0 !important; Decreased height of the hero section */
}
/* Force all text inside dark hero section to be readable and light */
.bg-hero-premium,
.bg-hero-premium .hero-title,
.bg-hero-premium p,
.bg-hero-premium span,
.bg-hero-premium small,
.bg-hero-premium .text-dark,
.bg-hero-premium .lead {
  color: #ffffff !important;
}
.bg-hero-premium .text-danger {
  color: #ffdd00 !important; /* High contrast bright yellow highlight */
}
.inner-page .bg-hero-premium .text-danger,
.inner-page .text-danger {
  color: #ffdd00 !important;
}
.bg-hero-premium .lead,
.bg-hero-premium p {
  color: rgba(255, 255, 255, 0.9) !important;
}
.bg-hero-premium::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
  background-size: 30px 30px;
  pointer-events: none;
}


.bg-section-white {
  background-color: #ffffff;
}

.bg-section-slate {
  background-color: var(--slate-100);
}

.bg-section-light {
  background-color: var(--slate-50);
}

/* Equal Height & Matching Background Image parameters for Youtube and CTA Section */
.bg-youtube-image {
  background: linear-gradient(rgba(11, 15, 25, 0.85), rgba(3, 7, 18, 0.6)), url('../images/youtube-bg.jpg');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  color: white;
  position: relative;
  overflow: hidden;
  min-height: 480px;
  display: flex;
  align-items: center;
}

.bg-cta-image {
  background: linear-gradient(rgba(11, 15, 25, 0.85), rgba(3, 7, 18, 0.6)), url('../images/cta-background.webp');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  color: white;
  position: relative;
  overflow: hidden;
  min-height: 320px;
  display: flex;
  align-items: center;
  padding: 35px 0 !important;
}

/* Glassmorphism */
.glass-panel-dark {
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

/* Header & Nav styling */
.header-top {
  background-color: #030712;
  font-size: 0.85rem;
}

.header-top a {
  color: rgba(255, 255, 255, 0.9) !important;
  text-decoration: none;
  transition: var(--transition);
}

.header-top a:hover {
  color: var(--accent) !important;
}

.navbar-custom {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  transition: var(--transition);
  padding: 0.8rem 0;
}

.navbar-custom.scrolled {
  box-shadow: var(--shadow-md);
  padding: 0.5rem 0;
}

.navbar-brand img {
  height: 52px;
  width: auto;
  border-radius: 50%;
  border: 2px solid var(--primary);
  padding: 2px;
}

.navbar-brand span {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.2rem;
  line-height: 1.15;
  color: var(--primary);
}

.nav-link-custom {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--text-dark) !important;
  padding: 0.5rem 1rem !important;
  border-radius: 10px;
  transition: var(--transition);
}

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

/* Hero Wrapper */
.hero-wrapper {
  position: relative;
  padding: 30px 0 0 0;
  overflow: hidden;
}

.hero-image-tanweer {
  max-height: 430px;
  width: auto;
  object-fit: contain;
  display: block;
  margin: 0 0 0 auto;
  vertical-align: bottom;
  filter: drop-shadow(0 15px 30px rgba(0, 0, 0, 0.12));
  transition: var(--transition);
}

.badge-premium {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background-color: var(--primary-light);
  color: var(--primary);
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 6px 14px;
  border-radius: 30px;
  border: 1px solid rgba(155, 0, 14, 0.15);
  margin-bottom: 1.25rem;
}

.btn-premium {
  font-family: var(--font-heading);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 0.85rem 2.2rem;
  border-radius: 30px;
  transition: var(--transition);
  border: none;
  box-shadow: 0 4px 15px rgba(155, 0, 14, 0.15);
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.btn-premium-primary {
  background: linear-gradient(135deg, var(--primary) 0%, #a3000d 100%);
  color: white !important;
}

.btn-premium-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(155, 0, 14, 0.25);
}

.btn-premium-secondary {
  background: linear-gradient(135deg, var(--secondary) 0%, #f97316 100%);
  color: white !important;
}

.btn-premium-secondary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(230, 92, 0, 0.25);
}

.btn-premium-outline {
  background: transparent;
  color: var(--primary) !important;
  border: 2px solid var(--primary);
  box-shadow: none;
}

.btn-premium-outline:hover {
  background-color: var(--primary);
  color: white !important;
  transform: translateY(-2px);
}

/* Card Redesign */
.card-premium {
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.card-premium:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: rgba(155, 0, 14, 0.15);
}

.card-icon-wrapper {
  width: 56px;
  height: 56px;
  border-radius: 12px;
  background-color: var(--primary-light);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 1.25rem;
  transition: var(--transition);
}

.card-premium:hover .card-icon-wrapper {
  background-color: var(--primary);
  color: white;
}

/* Milestones Right-Side Panel */
.about-milestones-title {
  font-size: 1.55rem !important;
  font-weight: 700 !important;
  color: var(--dark) !important;
}

.milestone-item-box {
  background: #ffffff;
  border-left: 4px solid var(--primary);
  border-radius: 0 12px 12px 0;
  padding: 16px 20px;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.milestone-item-box h5 {
  font-size: 1.15rem !important;
  font-weight: 700 !important;
  color: var(--dark) !important;
}

.milestone-item-box p {
  font-size: 0.95rem !important;
}

.milestone-item-box:hover {
  transform: translateX(4px);
  box-shadow: var(--shadow-md);
  background-color: var(--primary-light);
}

/* Gallery Section */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}

.gallery-card {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  height: 360px;
  box-shadow: var(--shadow-sm);
  cursor: pointer;
  border: 1px solid rgba(0, 0, 0, 0.08);
  transition: var(--transition);
}

.gallery-card-img-wrapper {
  width: 100%;
  height: 100%;
  overflow: hidden;
}

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

.gallery-overlay-text {
  position: absolute;
  inset: 0;
  background: rgba(155, 0, 14, 0.9);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  transition: var(--transition);
}

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

.gallery-overlay-text h5 {
  color: white !important;
  font-family: var(--font-heading);
  font-weight: 600;
  text-align: center;
  margin: 0;
}

/* Testimonial slider */
.testimonial-carousel-wrapper {
  position: relative;
}

.testimonial-video-thumbnail {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  aspect-ratio: 16/9;
  cursor: pointer;
  border: 1px solid rgba(0, 0, 0, 0.1);
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

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

.play-btn-circle {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 56px;
  height: 56px;
  background-color: var(--primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.25rem;
  box-shadow: 0 4px 15px rgba(155,0,14,0.4);
  transition: var(--transition);
}

.testimonial-video-thumbnail:hover .play-btn-circle {
  background-color: var(--secondary);
  box-shadow: 0 4px 20px rgba(230,92,0,0.5);
  transform: translate(-50%, -50%) scale(1.08);
}

/* Smooth transitions */
.carousel-inner {
  transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

.carousel-item {
  transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

/* Services custom navigation controls placement */
.services-control-prev, .services-control-next {
  width: 40px;
  height: 40px;
  background-color: var(--primary);
  border-radius: 50%;
  border: none;
  color: white;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.services-control-prev:hover, .services-control-next:hover {
  background-color: var(--secondary);
}

.cta-badge-item {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  padding: 10px 24px;
  border-radius: 30px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.cta-badge-item i {
  color: var(--secondary);
}

/* Form inputs styling (Polished flat look for direct backgrounds without cards) */
.input-container-premium {
  position: relative;
  display: flex;
  align-items: center;
  margin-bottom: 1.25rem;
}

.input-container-premium i {
  position: absolute;
  left: 18px;
  color: var(--primary);
  font-size: 1.1rem;
}

.input-container-premium .form-control-custom {
  padding-left: 48px !important;
  width: 100%;
}

.form-control-custom {
  border: 1.5px solid var(--gray-200);
  background-color: #ffffff;
  padding: 0.9rem 1.4rem;
  border-radius: 12px;
  font-family: var(--font-body);
  transition: var(--transition);
  color: #000000 !important;
  box-shadow: var(--shadow-sm);
}

.form-control-custom:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(155, 0, 14, 0.08);
  outline: none;
  background-color: #ffffff;
}

/* Footer Section */
.footer-main {
  background-color: #030712;
  padding: 80px 0 40px 0;
  border-top: 4px solid var(--primary);
  font-size: 0.9rem;
}

.footer-heading {
  color: white;
  font-size: 1.15rem;
  margin-bottom: 25px;
  position: relative;
  padding-bottom: 10px;
}

.footer-heading::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 40px;
  height: 3px;
  background-color: var(--primary);
}

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

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

.footer-links a {
  text-decoration: none;
  transition: var(--transition);
  display: inline-block;
}

.footer-links a:hover {
  color: var(--accent) !important;
  transform: translateX(4px);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding-top: 30px;
  margin-top: 20px;
  font-size: 0.85rem;
}

/* Carousel Testimonial Controls Styling */
.carousel-control-prev-custom, .carousel-control-next-custom {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  background-color: var(--primary);
  border-radius: 50%;
  border: none;
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 10px rgba(0,0,0,0.15);
  z-index: 10;
  transition: var(--transition);
}

.carousel-control-prev-custom:hover, .carousel-control-next-custom:hover {
  background-color: var(--secondary);
  color: white;
  transform: translateY(-50%) scale(1.05);
}

.carousel-control-prev-custom {
  left: -22px;
}

.carousel-control-next-custom {
  right: -22px;
}

@media (max-width: 1200px) {
  .carousel-control-prev-custom {
    left: 10px;
  }
  .carousel-control-next-custom {
    right: 10px;
  }
}

@media (max-width: 991px) {
  .hero-wrapper {
    padding: 20px 0 0 0;
  }
  .hero-image-tanweer {
    max-height: 320px !important;
    margin: 0 auto;
  }
  .hero-title {
    font-size: 2.2rem !important;
  }
  .hero-title span {
    font-size: 2.2rem !important;
  }
  .social-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 575px) {
  .hero-wrapper {
    padding: 15px 0 0 0;
  }
  .hero-image-tanweer {
    max-height: 240px !important;
    margin: 0 auto;
  }
  .hero-title {
    font-size: 1.8rem !important;
  }
  .hero-title span {
    font-size: 1.8rem !important;
  }
  .section-padding {
    padding: 40px 0;
  }
}

/* Lightbox overlay styling */
.lightbox-custom {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(2, 6, 23, 0.96);
  z-index: 1100;
  display: none;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.lightbox-custom.active {
  display: flex !important;
  opacity: 1;
}

.lightbox-container {
  max-width: 90%;
  max-height: 80%;
  position: relative;
}

.lightbox-container img {
  max-width: 100%;
  max-height: 80vh;
  border-radius: 12px;
  box-shadow: 0 25px 50px rgba(0,0,0,0.5);
}

.lightbox-close {
  position: absolute;
  top: -50px;
  right: 0;
  color: white;
  font-size: 2.25rem;
  cursor: pointer;
  background: none;
  border: none;
  transition: var(--transition);
}

.lightbox-close:hover {
  color: var(--primary);
  transform: rotate(90deg);
}

/* Floating Animated WhatsApp Button */
.whatsapp-float {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 56px;
  height: 56px;
  background-color: #25d366;
  color: #ffffff !important;
  border-radius: 50%;
  box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
  z-index: 1050;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  font-size: 1.85rem;
  transition: var(--transition);
  animation: whatsapp-pulse 2s infinite;
}

.whatsapp-float:hover {
  background-color: #20ba5a;
  transform: scale(1.08);
  color: #ffffff !important;
}

.whatsapp-float i {
  color: #ffffff !important;
}

@keyframes whatsapp-pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.6);
  }
  70% {
    box-shadow: 0 0 0 15px rgba(37, 211, 102, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
  }
}

/* Modal Header Title Color fix */
.modal-header .modal-title {
  color: #ffffff !important;
}

/* Responsive Modal layout */
@media (max-width: 576px) {
  #registerModal .modal-body {
    padding: 1.5rem !important;
  }
  #registerModal .row.g-4 {
    --bs-gutter-y: 1.25rem !important;
  }
}

/* Services and Testimonial single-row slider mobile optimization */
@media (max-width: 768px) {
  #servicesCarousel .carousel-item .row,
  #testimonialsCarousel .carousel-item .row {
    display: flex !important;
    flex-wrap: nowrap !important;
    overflow-x: auto !important;
    scroll-snap-type: x mandatory !important;
    scrollbar-width: none !important;
    -ms-overflow-style: none !important;
  }
  
  #servicesCarousel .carousel-item .row::-webkit-scrollbar,
  #testimonialsCarousel .carousel-item .row::-webkit-scrollbar {
    display: none !important;
  }
  
  #servicesCarousel .carousel-item .row > [class*="col-"],
  #testimonialsCarousel .carousel-item .row > [class*="col-"] {
    flex: 0 0 85% !important;
    max-width: 85% !important;
    scroll-snap-align: center !important;
  }
}

/* Services equal card height styling */
#servicesCarousel .carousel-item .row {
  display: flex !important;
  align-items: stretch !important;
}

#servicesCarousel .carousel-item .row > div {
  display: flex !important;
  flex-direction: column !important;
}

#servicesCarousel .card-premium {
  height: 100% !important;
  width: 100% !important;
}

/* Floating query button */
.floating-query-btn {
  position: fixed;
  right: -38px;
  top: 50%;
  transform: translateY(-50%) rotate(-90deg);
  z-index: 1040;
  background: linear-gradient(135deg, var(--secondary) 0%, #f97316 100%);
  color: #ffffff !important;
  border: none;
  padding: 12px 22px;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.95rem;
  border-radius: 8px 8px 0 0;
  box-shadow: 0 -4px 15px rgba(230, 92, 0, 0.35);
  cursor: pointer;
  animation: query-btn-blink 2.2s infinite alternate;
  white-space: nowrap;
  transition: right 0.3s ease, background 0.3s ease;
}

.floating-query-btn:hover {
  right: -30px;
  background: linear-gradient(135deg, #f97316 0%, var(--secondary) 100%);
}

@keyframes query-btn-blink {
  0% {
    box-shadow: 0 0 0 0 rgba(230, 92, 0, 0.6);
  }
  100% {
    box-shadow: 0 0 15px 8px rgba(230, 92, 0, 0.2);
  }
}

/* Helper Classes to replace inline styles */
.navbar-sub-title {
  font-size: 0.75rem !important;
}

.about-header-bar {
  width: 80px;
  height: 4px;
}

.section-header-bar {
  width: 60px;
  height: 3px;
}

.course-card-img {
  min-height: 250px;
  cursor: pointer;
}

.footer-logo-img {
  height: 48px;
  border: 2px solid var(--primary);
}

/* Toast Notification System */
.toast-container-custom {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 1060;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.toast-custom {
  display: flex;
  align-items: center;
  background: rgba(11, 15, 25, 0.95);
  color: #ffffff;
  padding: 16px 24px;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
  border-left: 4px solid var(--primary);
  backdrop-filter: blur(10px);
  transform: translateY(100px);
  opacity: 0;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  min-width: 300px;
  max-width: 450px;
}

.toast-custom.show {
  transform: translateY(0);
  opacity: 1;
}

.toast-custom-icon {
  margin-right: 14px;
  font-size: 20px;
}

.toast-custom-success {
  border-left-color: #10b981;
}
.toast-custom-success .toast-custom-icon {
  color: #10b981;
}

.toast-custom-error {
  border-left-color: #ef4444;
}
.toast-custom-error .toast-custom-icon {
  color: #ef4444;
}

.toast-custom-message {
  font-size: 14px;
  font-weight: 500;
  line-height: 1.4;
  font-family: var(--font-body);
}

/* Quick Actions Marquee Wrapper - No Card Backdrop (Only Running Buttons) */
.marquee-buttons-container {
  overflow: hidden;
  position: relative;
  width: 100%;
  padding: 8px 0;
  background: transparent !important;
  border-radius: 0;
  box-shadow: none !important;
  border: none !important;
}
.marquee-inner {
  display: flex;
  width: max-content;
  animation: marquee-scroll 25s linear infinite;
}
.marquee-buttons-container:hover .marquee-inner {
  animation-play-state: paused;
}
.marquee-content {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
}
@keyframes marquee-scroll {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}
.marquee-buttons-container .btn-premium {
  padding: 8px 16px !important;
  font-size: 0.82rem !important;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border-radius: 8px;
  margin: 0 8px !important;
}
.marquee-buttons-container .btn-premium i {
  font-size: 0.95rem !important;
}

/* Trending UPSC Course Tree Layout */
.trending-courses-wrapper {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}
.tree-node-top {
  width: 100%;
  max-width: 480px;
  position: relative;
  z-index: 2;
}
.tree-heading-middle {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-top: 15px;
  background: var(--bg-section-slate);
  padding: 6px 20px;
  border-radius: 20px;
  border: 1px solid rgba(155, 0, 14, 0.15);
  display: inline-block;
  position: relative;
  z-index: 2;
}
.course-card-premium {
  background: #ffffff;
  border-radius: 16px;
  border: 1px solid rgba(226, 232, 240, 0.8);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  overflow: hidden;
  position: relative;
  height: 100% !important;
  display: flex !important;
  flex-direction: column !important;
  justify-content: space-between !important;
  text-align: left !important;
}
.course-card-premium .course-card-img {
  transition: transform 0.5s ease;
}
.course-card-premium:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 35px rgba(155, 0, 14, 0.08);
  border-color: rgba(155, 0, 14, 0.25);
}
.course-card-premium:hover .course-card-img {
  transform: scale(1.06);
}
.course-card-premium .card-badge {
  background: var(--primary) !important;
  color: #ffffff !important;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 0 0 0 12px;
  position: absolute;
  top: 0;
  right: 0;
  z-index: 10;
}

/* Connecting Line Styles for Large Screens */
@media (min-width: 992px) {
  .trending-courses-wrapper::before {
    content: '';
    position: absolute;
    top: 160px; /* Start below the basic card */
    left: 50%;
    transform: translateX(-50%);
    width: 2px;
    height: 110px; /* Vertical trunk line */
    background: #e2e8f0;
    z-index: 1;
  }
  .tree-branch-line {
    position: relative;
    width: 66%;
    height: 2px;
    background: #e2e8f0;
    margin: 30px auto 10px auto;
    z-index: 1;
  }
  .tree-branch-line::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 2px;
    height: 25px;
    background: #e2e8f0;
  }
  .tree-branch-line::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 2px;
    height: 25px;
    background: #e2e8f0;
  }
  .tree-branch-line-center {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    top: 0;
    width: 2px;
    height: 25px;
    background: #e2e8f0;
  }
}

/* Shared Premium Wine-Red Diamond Cut Patterns for Course and Batches */
.bg-trending-courses-pattern,
#programs {
  background-color: #4a0307 !important; /* Deeper, softer dark wine-red to reduce brightness */
  background-image: 
    linear-gradient(135deg, rgba(255, 255, 255, 0.10) 25%, transparent 25%), 
    linear-gradient(225deg, rgba(255, 255, 255, 0.10) 25%, transparent 25%), 
    linear-gradient(45deg, rgba(255, 255, 255, 0.10) 25%, transparent 25%), 
    linear-gradient(315deg, rgba(255, 255, 255, 0.10) 25%, transparent 25%) !important;
  background-size: 50px 50px !important;
  position: relative;
}

/* Elegant Light Texture Pattern for About Us Section */
.bg-about-light-pattern {
  background-color: #fdfafb !important; /* Soft premium warm off-white */
  background-image: 
    linear-gradient(135deg, rgba(155, 0, 14, 0.02) 25%, transparent 25%), 
    linear-gradient(225deg, rgba(155, 0, 14, 0.02) 25%, transparent 25%), 
    linear-gradient(45deg, rgba(155, 0, 14, 0.02) 25%, transparent 25%), 
    linear-gradient(315deg, rgba(155, 0, 14, 0.02) 25%, transparent 25%) !important;
  background-size: 50px 50px !important;
  position: relative;
}

/* Footer Section - Matches Hero Background Gradient */
.footer-main {
  background: linear-gradient(90deg, #5a000a 0%, #140003 45%, #600073 100%) !important;
  position: relative;
  border-top: 1px solid rgba(255, 255, 255, 0.08) !important;
}

/* Solid Brand Background for Top Header - Matches Hero Gradient */
.header-top {
  background: linear-gradient(90deg, #5a000a 0%, #140003 45%, #600073 100%) !important;
  position: relative;
}

.bg-trending-courses-pattern,
#programs {
  border-top: 1px solid rgba(255, 255, 255, 0.1) !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1) !important;
}

.bg-trending-courses-pattern .section-title,
#programs .section-title,
.footer-main h3,
.footer-main h4,
.footer-main h5,
.footer-main span {
  color: #ffffff !important;
}

.bg-trending-courses-pattern .text-muted.text-dark,
#programs .text-muted.text-dark,
.footer-main p,
.footer-main .text-white-50 {
  color: #cbd5e1 !important; /* Lighter text for dark theme readability */
}

/* Ensure links in header top are bright and legible */
.header-top a {
  color: #ffffff !important;
  transition: color 0.3s ease;
}
.header-top a:hover {
  color: #cbd5e1 !important;
}

/* Footer specific sub-menu links - Smooth Hover Actions */
.footer-main a {
  color: #cbd5e1 !important; /* Elegant light-gray by default */
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
  display: inline-block;
}
.footer-main a:hover {
  color: #ffdd00 !important; /* Transitions to theme yellow on hover */
  transform: translateX(6px); /* Smooth slide-in effect */
}

/* Footer Accent Overrides - Red/Yellow replaced with White by default */
.footer-main .text-danger,
.footer-main i.text-danger,
.footer-main .btn-outline-danger {
  color: #ffffff !important;
  border-color: rgba(255, 255, 255, 0.4) !important;
}
.footer-main .btn-outline-danger:hover {
  background-color: #ffdd00 !important;
  color: #140003 !important; /* Dark wine background contrast */
  border-color: #ffdd00 !important;
}

/* Testimonial Card Equal Height & Styles */
#textTestimonialsCarousel .card-premium {
  height: 250px !important;
  display: flex !important;
  flex-direction: column !important;
  justify-content: space-between !important;
  padding: 1.5rem !important;
  border-left: 4px solid var(--primary) !important;
}

#textTestimonialsCarousel .card-premium p {
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 5;
  -webkit-box-orient: vertical;
  margin-bottom: 0.5rem !important;
}

/* Donate Modal Styles */
.donate-qr-wrapper {
  max-width: 240px;
  margin: 0 auto;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  border: 3px solid var(--primary);
  background: #ffffff;
}
.donate-qr-img {
  width: 100%;
  height: auto;
  display: block;
}
.bank-details-box {
  background-color: #f1f5f9;
  border-radius: 12px;
  border: 1px solid rgba(0, 0, 0, 0.05);
}
.bank-detail-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 15px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}
.bank-detail-item:last-child {
  border-bottom: none;
}
.btn-copy-mini {
  background: transparent;
  border: none;
  color: var(--primary) !important;
  cursor: pointer;
  padding: 4px 8px;
  font-size: 0.8rem;
  font-weight: 600;
  transition: all 0.3s ease;
  border-radius: 6px;
}
.btn-copy-mini:hover {
  background-color: var(--primary-light);
  color: var(--primary-hover) !important;
}

@media (max-width: 767.98px) {
  #textTestimonialsCarousel .card-premium {
    height: auto !important;
    min-height: 200px !important;
    padding: 1.25rem !important;
    margin-bottom: 10px;
  }
  #textTestimonialsCarousel .card-premium p {
    -webkit-line-clamp: 6;
  }
  .course-card-premium {
    height: 100% !important;
    margin-bottom: 15px;
  }
}

/* Header Top Icons Color Override */
.header-top i {
  color: #ffdd00 !important;
}

/* Spinner in Hero Section Red Color Override */
.bg-hero-premium .spinner-grow.text-danger {
  color: #9b000e !important;
}

