/* =========================================
   1. ROOT VARIABLES & RESETS
   ========================================= */
:root {
  --font-main: 'Poppins', system-ui, -apple-system, sans-serif;
  --bg-body: #f8f9fa;
  --color-dark: #111111;
  --color-black: #000000;
  --color-white: #ffffff;
  --color-primary: #ff3c3c;
  --color-primary-hover: #e03535;
  --color-accent: #ff8c00;
  --whatsapp-green: #25D366;
}

*, *::before, *::after { box-sizing: border-box; }

body {
  font-family: var(--font-main);
  margin: 0;
  /* Pure black background so the hero gradient blends perfectly */
  background-color: #000000;
  color: var(--text-main);
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  color-scheme: dark;
}

/* =========================================
   3. HERO SECTION (FIXED GRADIENT)
   ========================================= */
.hero { 
  /* EXACT MATCH: Pitch black on the left, intense deep crimson glow on the right */
  background: radial-gradient(circle at 75% 50%, #a10000 0%, #3a0000 40%, #000000 80%); 
  background-color: #000000;
  color: #ffffff; 
  padding: 100px 0; /* A bit more padding to let the gradient breathe */
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid rgba(255, 0, 0, 0.15);
}

.hero h1 span { 
  /* Brighter flat red for the text highlight to pop against the black */
  color: #ff3333;
  background: none;
  -webkit-text-fill-color: initial;
}

.hero-img { 
  border-radius: 12px; 
  object-fit: cover; 
  /* Optional: Adds a dark shadow so the image separates from the bright red background */
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.6); 
  border: 1px solid rgba(255, 255, 255, 0.05);
}

/* =========================================
   4. BUTTONS
   ========================================= */
.btn { transition: all 0.3s ease; font-weight: 500; }
.btn-danger { background-color: var(--color-primary); border: none; }
.btn-danger:hover { background-color: var(--color-primary-hover); transform: translateY(-2px); box-shadow: 0 4px 12px rgba(255, 60, 60, 0.3); }

/* =========================================
   5. CARDS & BADGES
   ========================================= */
.glass-card {
  background: var(--color-white);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  position: relative;
  border: 1px solid rgba(0,0,0,0.03);
}

.glass-card:hover { transform: translateY(-8px); box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1); }

.badge.bg-gradient {
  background: linear-gradient(90deg, var(--color-primary), var(--color-accent));
  color: var(--color-white); 
  font-weight: 600; 
  padding: 6px 14px; 
  border-radius: 20px;
  position: absolute; 
  top: 15px; 
  left: 15px; 
  z-index: 10;
}

/* =========================================
   6. PLATFORMS SCROLLING STRIP
   ========================================= */
.platform-track {
  animation: scrollPlatform 20s linear infinite;
  will-change: transform;
}
@keyframes scrollPlatform {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* =========================================
   7. POPUP MODAL
   ========================================= */
.modal-overlay { 
  display: none; 
  position: fixed; 
  top: 0; left: 0; width: 100%; height: 100%; 
  background: rgba(0, 0, 0, 0.7); 
  backdrop-filter: blur(5px);
  align-items: center; justify-content: center; 
  z-index: 9999; 
  opacity: 0;
  transition: opacity 0.3s ease;
}
.modal-overlay.is-active { display: flex; opacity: 1; }

.popup-content { 
  background-color: var(--color-white); 
  padding: 40px 30px; 
  border-radius: 20px; 
  max-width: 450px; width: 90%; 
  position: relative; 
  transform: translateY(20px);
  transition: transform 0.3s ease;
}
.modal-overlay.is-active .popup-content { transform: translateY(0); }

.close-btn { 
  position: absolute; top: 15px; right: 20px; 
  font-size: 28px; cursor: pointer; 
  background: none; border: none; color: #777; transition: color 0.2s;
}
.close-btn:hover { color: var(--color-primary); }

/* =========================================
   8. WHATSAPP FAB
   ========================================= */
#whatsappBtn {
  position: fixed; bottom: 25px; right: 25px; 
  background-color: var(--whatsapp-green); color: var(--color-white);
  border-radius: 50%; width: 60px; height: 60px; 
  display: flex; justify-content: center; align-items: center;
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.4); 
  z-index: 9998; transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
#whatsappBtn:hover { transform: scale(1.15) rotate(-5deg); }

/* =========================================
   7. POPUP MODAL (ENHANCED UI/UX)
   ========================================= */
.modal-overlay { 
  display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100%; 
  background: rgba(0, 0, 0, 0.85); backdrop-filter: blur(8px);
  align-items: center; justify-content: center; z-index: 9999; opacity: 0; transition: opacity 0.3s ease;
}
.modal-overlay.is-active { display: flex; opacity: 1; }

.popup-content { 
  background: linear-gradient(145deg, #111111 0%, #2a0000 100%); 
  padding: 40px 35px; border-radius: 20px; max-width: 450px; width: 90%; 
  position: relative; transform: translateY(20px); transition: transform 0.3s ease;
  border: 1px solid rgba(255, 0, 0, 0.3);
  box-shadow: 0 15px 50px rgba(230,0,0,0.3);
}
.modal-overlay.is-active .popup-content { transform: translateY(0); }

/* Upgraded Close Button */
.close-btn { 
  position: absolute; top: -15px; right: -15px; font-size: 24px; cursor: pointer; 
  background: #111111; border: 2px solid var(--color-primary); 
  color: #ffffff; transition: all 0.3s ease;
  width: 40px; height: 40px; display: flex; align-items: center; justify-content: center;
  border-radius: 50%; line-height: 1; box-shadow: 0 4px 10px rgba(0,0,0,0.5);
}
.close-btn:hover { 
  background: var(--color-primary); 
  transform: rotate(90deg); 
}

/* Enhanced Floating Inputs for Dark Theme */
.form-floating > .form-control,
.form-floating > .form-select {
  background-color: rgba(0, 0, 0, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #ffffff;
  border-radius: 10px;
}
.form-floating > .form-control:focus,
.form-floating > .form-select:focus {
  background-color: rgba(0, 0, 0, 0.9);
  border-color: var(--color-accent);
  color: #ffffff;
  box-shadow: 0 0 0 4px rgba(255, 77, 77, 0.15);
}
.form-floating > label {
  color: #aaaaaa;
}
.form-floating > .form-control:focus ~ label,
.form-floating > .form-control:not(:placeholder-shown) ~ label,
.form-floating > .form-select ~ label {
  color: var(--color-accent);
  /* Fixes text overlapping border */
  background-color: transparent; 
}
.form-select option { background-color: #111111; color: #ffffff; }

/* Browser Autofill Fix for Dark Mode */
input:-webkit-autofill,
input:-webkit-autofill:hover, 
input:-webkit-autofill:focus, 
input:-webkit-autofill:active {
  -webkit-box-shadow: 0 0 0 30px #1a0000 inset !important;
  -webkit-text-fill-color: white !important;
  transition: background-color 5000s ease-in-out 0s;
}
/* =========================================
   10. FOOTER & RESPONSIVE
   ========================================= */
.footer-bottom {
  background: linear-gradient(135deg, #0f0f0f, #1a0000);
  border-top: 1px solid rgba(255,255,255,0.08);
  color: #bbbbbb;
}

/* text */
.footer-bottom p {
  color: #aaaaaa !important;
}

/* brand highlight */
.footer-bottom span {
  color: #ff3c3c !important;
  font-weight: 700;
}
@media (max-width: 768px) {
  .hero { text-align: center; padding: 60px 15px; }
  .hero .btn { width: 100%; margin-bottom: 10px; }
  #whatsappBtn { bottom: 15px; right: 15px; width: 55px; height: 55px; }
}
/* =========================================
   11. MEGA FOOTER (UPDATED UNIQUE DESIGN)
   ========================================= */

.footer-mega {
  background: linear-gradient(135deg, #0a0000, #000000);
  color: #cccccc;
  font-family: var(--font-main);
  position: relative;
  overflow: hidden;
}

/* 🔴 Subtle Glow Effect */
.footer-mega::before {
  content: "";
  position: absolute;
  top: -80px;
  left: -80px;
  width: 250px;
  height: 250px;
  background: rgba(255, 0, 0, 0.12);
  filter: blur(100px);
  z-index: 0;
}

/* =========================================
   CTA BAR (MODERN)
   ========================================= */
.footer-cta {
  background: linear-gradient(135deg, #ff0000, #7a0000);
  position: relative;
  z-index: 1;
}

.cta-text {
  background: transparent;
  font-size: 1rem;
  letter-spacing: 0.5px;
}

.cta-text a:hover {
  text-decoration: underline !important;
}

/* BUTTON */
.cta-btn {
  background: linear-gradient(135deg, #1a1a1a, #2a2a2a);
  border-left: 1px solid rgba(255,255,255,0.1);
  transition: all 0.3s ease;
}

.cta-btn:hover {
  background: linear-gradient(135deg, #ff0000, #ff3c3c);
  color: #fff !important;
  transform: translateY(-2px);
}

/* =========================================
   MAIN FOOTER
   ========================================= */
.footer-main {
  background-color: transparent;
  padding: 70px 0;
  position: relative;
  z-index: 1;
}

/* HEADINGS */
.footer-heading {
  color: #ffffff;
  font-weight: 700;
  margin-bottom: 25px;
  font-size: 1.05rem;
  letter-spacing: 0.6px;
  position: relative;
}

/* Underline Animation */
.footer-heading::after {
  content: "";
  width: 35px;
  height: 2px;
  background: #ff0000;
  position: absolute;
  bottom: -8px;
  left: 0;
  transition: width 0.3s ease;
}

.footer-heading:hover::after {
  width: 60px;
}

/* =========================================
   LINKS
   ========================================= */
.footer-links li {
  margin-bottom: 10px;
}

.footer-links a {
  color: #a0a0a0;
  text-decoration: none;
  font-size: 0.88rem;
  transition: all 0.3s ease;
  display: block;
  position: relative;
  padding-left: 18px;
}

/* Custom Dot Bullet */
.footer-links a::before {
  content: "";
  position: absolute;
  left: 0;
  top: 7px;
  width: 6px;
  height: 6px;
  background: var(--color-primary);
  border-radius: 50%;
  transition: all 0.3s ease;
}

/* Hover Effect */
.footer-links a:hover {
  color: #ffffff;
  padding-left: 25px;
}

.footer-links a:hover::before {
  background: #ffffff;
  transform: scale(1.3);
}

/* =========================================
   CONTACT BOX (GLASS EFFECT)
   ========================================= */
.contact-info {
  background: rgba(255,255,255,0.03);
  padding: 20px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.06);
  backdrop-filter: blur(6px);
}

.contact-link:hover {
  color: #ff3c3c !important;
}

/* =========================================
   PAYMENT BOX
   ========================================= */
.payment-methods {
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.payment-box {
  border: 1px solid rgba(255, 255, 255, 0.15);
  padding: 8px 18px;
  font-size: 0.75rem;
  border-radius: 6px;
  color: #888888;
  font-weight: 600;
  transition: all 0.3s ease;
  cursor: default;
}

.payment-box:hover {
  border-color: rgba(255, 0, 0, 0.6);
  color: #ffffff;
  background-color: rgba(255, 0, 0, 0.1);
}

/* =========================================
   FOOTER BOTTOM
   ========================================= */
.footer-bottom {
  background-color: #000000;
  border-top: 1px solid rgba(255,255,255,0.05);
}

.footer-bottom span {
  color: #ff3c3c;
}

/* =========================================
   MOBILE OPTIMIZATION
   ========================================= */
@media (max-width: 768px) {
  .footer-main {
    padding: 50px 20px;
  }

  .cta-btn {
    width: 100%;
    border-left: none;
    border-top: 1px solid rgba(255,255,255,0.1);
  }

  .footer-heading {
    margin-top: 20px;
  }
}
/* =========================================
   2. TOP BAR & NAVBAR (DARK RED/BLACK FIX)
   ========================================= */
.top-bar { 
  background-color: #000000; 
  color: #cccccc; 
  font-size: 0.85rem; 
  padding: 8px 0; 
  overflow: hidden; 
  border-bottom: 1px solid rgba(255, 0, 0, 0.2); /* Subtle red separator */
}

.marquee { white-space: nowrap; animation: scroll 25s linear infinite; will-change: transform; }

@keyframes scroll { 
  0% { transform: translate3d(100%, 0, 0); } 
  100% { transform: translate3d(-100%, 0, 0); } 
}

.navbar { 
  /* Deep dark glass effect to blend seamlessly into the black/red gradient */
  background: rgba(5, 0, 0, 0.95); 
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.8); 
  border-bottom: 1px solid rgba(255, 0, 0, 0.15);
}

/* Logo Fix: Inverts a black logo to pure white so it pops on the dark background */
.navbar-brand img { 
  object-fit: contain; 
 
}

.navbar-brand span { 
  color: #ffffff; 
}

.nav-link { 
  color: rgba(255, 255, 255, 0.8) !important; 
  font-weight: 500; 
  transition: color 0.3s; 
}

.nav-link:hover { 
  color: #ff3333 !important; /* Vibrant red hover to match the right-side glow */
}

/* Mobile Menu Toggle Fix: Makes the hamburger icon bright white */
.navbar-toggler {
  border-color: rgba(255, 255, 255, 0.2);
}

.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%28255, 255, 255, 0.9%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}



/* BUTTON GROUP - FIXED MOBILE UI */
.btn-group-custom {
  display: flex;
  gap: 8px;
  margin-top: 15px;
  width: 100%;
}

/* BOTH BUTTONS EQUAL WIDTH */
.btn-group-custom .btn-main,
.btn-group-custom .btn-whatsapp {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

.btn-main {
  display: flex;
  align-items: center;
  justify-content: center;

  background: linear-gradient(135deg, #111, #2b2b2b) !important;
  color: #fff !important;

  border: none;
  padding: 12px 10px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 600;

  transition: 0.3s ease;
}

.btn-main:hover {
  background: linear-gradient(135deg, #000, #444) !important;
}

.btn-whatsapp {
  display: flex !important;
  align-items: center;
  justify-content: center;
  flex: 1;

  background: linear-gradient(135deg, #ff0000, #ff3c3c);
  color: #ffffff !important;

  padding: 12px 10px;
  border-radius: 10px;

  font-size: 14px;
  font-weight: 600;

  text-decoration: none !important;
  border: none;

  transition: all 0.3s ease;
}

/* FORCE STATES (CHROME FIX) */
.btn-whatsapp:link,
.btn-whatsapp:visited,
.btn-whatsapp:hover,
.btn-whatsapp:active {
  color: #ffffff !important;
  text-decoration: none !important;
}

.btn-whatsapp:hover {
  background: linear-gradient(135deg, #cc0000, #ff1a1a);
}

/* ✅ MOBILE OPTIMIZATION (KEEP ROW, IMPROVE UX) */
@media (max-width: 576px) {
 .btn-group-custom {
  display: flex;
  gap: 8px;
  width: 100%;
}

.btn-group-custom > * {
  flex: 1;
}

  .btn-main,
  .btn-whatsapp {
    font-size: 13px;
    padding: 11px 8px;
  }
}


/* FORCE WHATSAPP BUTTON STYLE */
.btn-whatsapp {
  display: flex !important;
  align-items: center;
  justify-content: center;
  flex: 1;

  background: linear-gradient(135deg, #ff0000, #ff3c3c) !important;
  color: #ffffff !important;

  text-decoration: none !important;
  border: none !important;

  padding: 12px 10px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 600;

  transition: all 0.3s ease;
}

/* REMOVE BLUE LINK COLOR (MOBILE FIX) */
.btn-whatsapp:link,
.btn-whatsapp:visited,
.btn-whatsapp:active {
  color: #ffffff !important;
  text-decoration: none !important;
}

/* HOVER */
.btn-whatsapp:hover {
  background: linear-gradient(135deg, #cc0000, #ff1a1a) !important;
  color: #ffffff !important;
}



a.btn-whatsapp {
  color: #fff !important;
}

.card-body {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.glass-card {
  border-radius: 15px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.glass-card .p-4 {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.btn-group-custom {
  margin-top: auto;
}

/* FIX: Online & Offline text */
.course-meta-text {
  font-size: 13px;
  font-weight: 600;
  color: #666; /* change to white if dark bg */
  white-space: nowrap;
}

/* ALIGN FIX FOR BUTTON + TEXT ROW */
.card-footer-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
}

/* MOBILE FIX */
@media (max-width: 576px) {
  .card-footer-row {
    flex-direction: column;
    align-items: stretch;
  }

  .course-meta-text {
    text-align: center;
    margin-bottom: 8px;
    white-space: normal;
  }
}

.card-footer-custom {
  margin-top: auto;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.course-meta {
  font-size: 13px;
  font-weight: 600;
  color: #666;
}

/* MOBILE FIX */
@media (max-width: 576px) {
  .course-meta {
    text-align: center;
  }
}



@media (max-width: 576px) {
  .glass-card img {
    height: 340px !important; /* jo bhi height chahiye */
  }
}


.course-img {
  height: 340px;
  object-fit: cover;
}

/* MOBILE */
@media (max-width: 576px) {
  .course-img {
    height: 180px;
  }
}




.footer-social-icons {
    margin-top: 20px;
}

.footer-heading {
    color: #fff;
    font-size: 18px;
    margin-bottom: 15px;
    text-transform: uppercase;
}

.social-links {
    display: flex;
    gap: 12px;
}

.social-icon {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    text-decoration: none;
    font-size: 18px;
    transition: all 0.3s ease;
}

/* Specific Colors */
.whatsapp { background-color: #25d366; }
.facebook { background-color: #1877f2; }
.youtube { background-color: #ff0000; }

/* Hover Effect */
.social-icon:hover {
    transform: translateY(-3px);
    filter: brightness(1.1);
}
