@import url('https://fonts.googleapis.com/css2?family=Courier+Prime:ital,wght@0,400;0,700;1,400;1,700&family=Lato:ital,wght@0,100;0,300;0,400;0,700;0,900;1,100;1,300;1,400;1,700;1,900&display=swap');

/* General Styles */
body {

  font-family: Arial, sans-serif;
  background-color: #0b0b0f;
  color: white;
  margin: 0;
  padding-top: 60px;
  /* Adjust based on navbar height */
}

/* -------------------------Navbar-------------------------- */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background-color: #14080b;
  border-bottom: 1px solid #770505;
  padding: 10px 0;
  z-index: 1000;
  /* stays above content */
  box-shadow: 0 4px 15px rgba(176, 18, 46, 0.3);
}

.nav-container {
  max-width: 1200px;
  margin: auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 25px;

}

.nav-logo {

  font-family: "Courier Prime", monospace;

  color: #ffffff;
  font-size: 20px;

  text-decoration: none;
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 15px;
}

.nav-links li a {
  color: white;
  text-decoration: none;
  font-weight: ;
  transition: color 0.3s ease;
}

.nav-links li a:hover {
  color: #e61111;
}

/* Hamburger Icon */
.hamburger {
  display: none;
  flex-direction: column;
  cursor: pointer;
  gap: 5px;
}

.hamburger span {
  width: 25px;
  height: 3px;
  background: white;
  border-radius: 2px;
  transition: all 0.3s ease;


}

/* Active state (cross) */
.hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
}

.hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}



/* Mobile Styles */
@media (max-width: 768px) {
  .hamburger {
    display: flex;
  }

  .navbar {
    padding: 20px 0;
  }

  .nav-links {

    position: absolute;
    top: 60px;
    right: -100%;
    background: #14080b;
    flex-direction: column;
    width: 200px;
    border-left: 2px solid #dd0e0e;
    padding: 15px;
    transition: right 0.3s ease;
  }

  .nav-links.active {
    right: 0;
  }

  .nav-links li {
    margin: 10px 0;
  }
}



/* Header */
header {
  text-align: center;
  padding: 20px;

}

h1 {
  color: #fdfdfd;
  margin-bottom: 15px;
}



/* Filter Buttons */
.filter-buttons {
  display: flex;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 40px;
}

.filter-btn {
  background-color: transparent;
  border: 2px solid #d60b0b;
  color: white;
  padding: 8px 16px;
  cursor: pointer;
  border-radius: 20px;
  transition: all 0.3s ease;
}

.filter-btn:hover,
.filter-btn.active {
  background-color: #690707;
}

/* Card Container */
.card-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 29px;
  padding: 20px;
  max-width: 1000px;
  margin: auto;
}

/* Card Styles */
.card {
  background: #14080b;
  /* dark with red tint */
  border: 1px solid #be0909;
  border-radius: 12px;
  padding: 20px;
  box-shadow: 0 4px 15px rgba(176, 18, 46, 0.3);
  color: #fff;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  text-align: center;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(176, 18, 46, 0.5);
}

.card h3 {
  color: #e70a0a;
  margin-bottom: 10px;
}

.card p {
  color: #ccc;
  font-size: 14px;
  line-height: 1.4;
}

/* Buttons Container */
.card-buttons {
  margin-top: 15px;
  display: flex;
  justify-content: center;
  gap: 8px;
}

/* Enroll Now Button */
.enroll-btn {
  background: #db0808;
  color: white;
  padding: 8px 14px;
  border-radius: 6px;
  text-decoration: none;
  font-size: 14px;
  font-weight: bold;
  border: none;
  transition: background 0.3s ease, transform 0.2s ease;
}

.enroll-btn:hover {
  background: #660303;
  transform: scale(1.05);
}

/* Learn More Button */
.learn-btn {
  background: transparent;
  color: #dd0a0a;
  padding: 8px 14px;
  border-radius: 6px;
  border: 2px solid #e20909;
  text-decoration: none;
  font-size: 14px;
  font-weight: bold;
  transition: all 0.3s ease;
}

.learn-btn:hover {
  background: #770303;
  color: white;
  transform: scale(1.05);
}

/* Course Section Specific */
.course-section {
  margin-top: 20px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  padding: 20px;
  gap: 20px;
}

.course-card {
  background: #14080b;
  width: 300px;
  border-radius: 10px;
  border: solid #e90b0b 0.2px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(176, 18, 46, 0.3);
  transition: transform 0.2s ease-in-out;
}

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

.course-card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
}

.course-content {
  padding: 15px;
}

.course-content h2 {
  font-size: 18px;
  margin: 0 0 10px;
  color: #ffffff;
}

.course-content p {
  font-size: 14px;
  color: #ccc;
}

.price-duration {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}

.price {
  font-size: 16px;
  font-weight: bold;
  color: #f11313;
}

.duration {
  font-size: 14px;
  color: #aaa;
}

/* Responsive Adjustments */
@media (max-width: 1024px) {
  .card-container {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .card-container {
    grid-template-columns: 1fr;
    max-width: 300px;
  }
}


/* Card Buttons Container */
.card-buttons {
  margin-top: 12px;
  display: flex;
  justify-content: center;
  gap: 8px;
}

/* Learn More Button */
.learn-btn {
  background: transparent;
  color: #eb0c0c;
  padding: 6px 12px;
  border-radius: 5px;
  border: 2px solid #6e0707;
  text-decoration: none;
  font-size: 13px;
  font-weight: bold;
  transition: all 0.3s ease;
}

.learn-btn:hover {
  background: #e9091c;
  color: white;
  transform: scale(1.05);
}

/* Enroll Now Button */
.enroll-btn {
  background: #800303;
  color: white;
  padding: 6px 12px;
  border-radius: 5px;
  text-decoration: none;
  font-size: 13px;
  font-weight: bold;
  transition: background 0.3s ease, transform 0.2s ease;
}

.enroll-btn:hover {
  background: #ff002b;
  transform: scale(1.05);
}

/* Card Images */
.card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  /* keeps proportions, fills space */
  border-radius: 10px;

  box-shadow: 0 4px 8px rgba(176, 18, 46, 0.3);
  /* red-tinted shadow */
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card img:hover {
  transform: scale(1.03);
  box-shadow: 0 6px 14px rgba(176, 18, 46, 0.5);
}

/* ------------price----------------- */
.price-duration {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: bold;
  margin: 8px 0;
}

.price {
  color: #ff0000;
  font-size: 16px;
}

.duration {
  color: #666;
  font-size: 14px;
}

@media (max-width: 600px) {
  .card-container {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    gap: 24px;
    /* gap only between cards */
    padding: 20;
    margin: 20;
    width: 100vw;
    scroll-snap-type: x mandatory;
    justify-content: flex-start;
  }

  .card {
    flex: 0 0 80%;
    max-width: 80%;
    min-width: 240px;
    scroll-snap-align: start;
  }

  .card-container::-webkit-scrollbar {
    display: none;
  }
}


/* -----------------------whatsapp------------------------ */
:root {
  --wa-green: #022507;
  --wa-dark: #041a06;
  --wa-white: #fff;
  --wa-shadow: 0 10px 25px rgba(0, 0, 0, .25);
}

/* Middle-left placement */
.wa-widget {
  position: fixed;
  left: -150px;
  /* start hidden off-screen */
  top: 95%;
  transform: translateY(-50%);
  z-index: 9999;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  user-select: none;
  opacity: 0;
  transition: left 0.6s cubic-bezier(0.23, 1, 0.32, 1),
    opacity 0.4s ease;
}

/* Active state: slide in */
.wa-widget.wa-show {
  left: 14px;
  opacity: 1;
}

/* WhatsApp button */
.wa-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border-radius: 9999px;
  background: linear-gradient(135deg, var(--wa-green), #09682c);
  color: var(--wa-white);
  font: 600 14px/1.1 system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  text-decoration: none;
  box-shadow: var(--wa-shadow);
  transition: transform .15s ease, box-shadow .15s ease, filter .15s ease;
}

.wa-btn:hover {
  transform: translateY(-1px);
}

.wa-btn:active {
  transform: translateY(0);
  filter: brightness(.95);
}

.wa-icon {
  width: 22px;
  height: 22px;
  display: block;
}

/* subtle attention ripple */
.wa-ripple {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  box-shadow: 0 0 0 0 rgba(5, 65, 27, 0.5);
  animation: waPulse 2.2s ease-out infinite;
}

@keyframes waPulse {
  0% {
    box-shadow: 0 0 0 0 rgba(8, 167, 66, 0.42);
  }

  70% {
    box-shadow: 0 0 0 12px rgba(8, 167, 66, 0);
  }

  100% {
    box-shadow: 0 0 0 0 rgba(7, 168, 66, 0);
  }
}

/* Close (×) badge */
.wa-close {
  position: absolute;
  top: -8px;
  right: -8px;
  width: 22px;
  height: 22px;
  border-radius: 9999px;
  border: none;
  background: #bb0404;
  color: #fff;
  font-size: 16px;
  line-height: 22px;
  text-align: center;
  cursor: pointer;
  box-shadow: var(--wa-shadow);
  transition: transform .15s ease, opacity .15s ease;
}

.wa-close:hover {
  transform: scale(1.05);
}

.wa-close:active {
  transform: scale(.96);
}

/* Mobile sizing */
@media (max-width: 480px) {
  .wa-btn {
    padding: 8px 12px;
    font-size: 13px;
    position: fixed;

  }

  .wa-icon {
    width: 20px;
    height: 20px;
  }
}

/* Hide helper */
.wa-hidden {
  display: none !important;
}


/* —— Mobile fix: keep the widget fixed & visible —— */
@media (max-width: 600px) {

  /* Keep the floating container fixed and anchored near the bottom-left */
  .wa-widget {
    position: fixed;
    left: -200px;
    /* start off-screen (for slide-in) */
    bottom: calc(env(safe-area-inset-bottom, 0px) + 18px);
    top: auto;
    /* override desktop top */
    transform: none;
    /* no vertical translate on mobile */
    z-index: 99999;
    bottom: 30px;
  }

  /* When shown (after scroll > 300px), slide into view */
  .wa-widget.wa-show {
    left: 12px;
  }

  /* Undo the incorrect fixed positioning on the button */
  .wa-btn {
    position: relative;
    /* or 'static' — just not fixed */
    padding: 8px 12px;
    font-size: 13px;
    touch-action: manipulation;
  }

  /* Slightly smaller icon on small screens */
  .wa-icon {
    width: 20px;
    height: 20px;
  }
}

.wa-custom-icon {
  height: 20px;
  width: 20px;
}



/* ------------------footer----------------------------- */


.footer {
  background-color: #0d0d0d;
  /* black */
  color: #fff;
  padding: 40px 20px 20px;
  font-family: Arial, sans-serif;
}

.footer-container {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  max-width: 1200px;
  margin: auto;
}

.footer-about,
.footer-links,
.footer-contact {
  flex: 1 1 250px;
  margin: 15px;
}

.footer h2 {
  font-family: "Courier Prime", monospace;
  color: #ffffff;
  /* dark red */
  margin-bottom: 15px;

}

.footer h3 {
  color: #ec1212;
  /* dark red */
  margin-bottom: 15px;
}

.footer p,
.footer a {
  color: #ddd;
  font-size: 14px;
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer a:hover {
  color: #ff3b3b;
  /* brighter red on hover */
}

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

.footer ul li {
  margin-bottom: 8px;
}

.footer-bottom {
  text-align: center;
  border-top: 1px solid #222;
  margin-top: 20px;
  padding-top: 15px;
  font-size: 13px;
  color: #aaa;
}

/* --------------------course marquee--------------------------- */


.course-marquee {
  width: 100%;
  overflow: hidden;
  font-family: "Courier Prime", monospace;
  font-size: 45px;
  color: white;
  padding: 10px 0;
  position: relative;
  margin-top: 100px;
  margin-bottom: 100px;

}

.course-track {
  display: flex;
  width: max-content;
  white-space: nowrap;
  animation: marquee 40s linear infinite;
  /* slower speed */
}

.course-track span {
  display: inline-block;
  margin: 0 50px;
  font-size: 18px;
  font-weight: 400;
  color: #ffffff;
  text-transform: uppercase;
  letter-spacing: 1px;
}

@keyframes marquee {
  from {
    transform: translateX(0);
  }

  to {
    transform: translateX(-50%);
  }

  /* only half since we duplicate */
}