/* ================= RESET ================= */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: Arial, sans-serif;
}

body {
  background: #f7f7f7;
  color: #111;
  
}


/* ================= HERO ================= */
.hero {
  position: relative;
  height: 320px;
  background: url("imagehero.png") center/cover no-repeat;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 24px 20px;
  color: white;
}

.overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
}

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

.logo {
  width: 70px;
  height: 65px;
  border-radius: 50%;
  object-fit: cover;
  background: white;
  padding: 4px;
  cursor: pointer;
  display: block;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.logo:hover {
  transform: scale(1.05);
  opacity: 0.9;
}

.hero-content {
  margin-bottom: 20px;
}

.hero-content h1 {
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 10px;
}

.hero-content p {
  font-size: 15px;
  line-height: 1.5;
  max-width: 320px;
}


/* ================= FORM ================= */
.form-section {
  padding: 30px 18px 40px;
}

.form-container {
  max-width: 500px;
  margin: auto;
  background: white;
  padding: 28px 20px 30px;
  border-radius: 20px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.08);
  margin-top: -40px;
  position: relative;
  z-index: 5;
}

.form-container h2 {
  font-size: 24px;
  margin-bottom: 12px;
}

.subtitle {
  color: #555;
  font-size: 16px;
  margin-bottom: 28px;
}

form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

label {
  font-size: 15px;
  font-weight: 600;
}

input,
select {
  width: 100%;
  padding: 16px;
  border: 1px solid #ddd;
  border-radius: 14px;
  font-size: 16px;
  outline: none;
  background: #fff;
}

input:focus,
select:focus {
  border-color: #f54a0a;
  box-shadow: 0 0 0 3px rgba(249, 115, 22, 0.12);
}

.submit-btn {
  margin-top: 18px;
  padding: 16px;
  border: none;
  border-radius: 14px;
  background: #f54a0a;
  color: white;
  font-size: 18px;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 10px 20px rgba(11, 87, 208, 0.25);
}

.submit-btn:hover {
  opacity: 0.95;
}


/* ================= WHATSAPP FLOAT ================= */
.whatsapp-float {
  position: fixed;
  bottom: 24px;
  right: 18px;
  width: 60px;
  height: 60px;
  background: #25D366;
  color: white;
  font-size: 28px;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  text-decoration: none;
  box-shadow: 0 10px 20px rgba(0,0,0,0.2);
  z-index: 999;
}


/* ================= MODAL ================= */
.modal {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.45);
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 20px;
  z-index: 1000;
}

.hidden {
  display: none;
}

.modal-card {
  background: white;
  width: 100%;
  max-width: 420px;
  border-radius: 24px;
  padding: 28px 22px;
  text-align: center;
  position: relative;
  box-shadow: 0 20px 40px rgba(0,0,0,0.18);
}

.close-btn {
  position: absolute;
  top: 16px;
  right: 18px;
  border: none;
  background: none;
  font-size: 30px;
  cursor: pointer;
  color: #666;
}

.modal-card h3 {
  font-size: 24px;
  margin-bottom: 12px;
}

.modal-card p {
  font-size: 15px;
  color: #333;
  line-height: 1.6;
}


/* ================= SUCCESS CHECKMARK ================= */
.checkmark-container {
  display: flex;
  justify-content: center;
  margin-bottom: 15px;
}

/* DEFAULT STATE (NO animation here) */
.checkmark-circle {
  width: 70px;
  height: 70px;
  background: #25D366;
  border-radius: 50%;
  position: relative;
}

.checkmark {
  position: absolute;
  left: 22px;
  top: 18px;
  width: 20px;
  height: 35px;
  border-right: 4px solid white;
  border-bottom: 4px solid white;
  transform: rotate(45deg) scale(0);
}

/* 🔥 ONLY animate when JS adds .animate */
.modal.animate .checkmark-circle {
  animation: scaleIn 0.4s ease forwards;
}

.modal.animate .checkmark {
  animation: drawCheck 0.4s 0.3s ease forwards;
}

/* KEYFRAMES */
@keyframes scaleIn {
  from { transform: scale(0); }
  to { transform: scale(1); }
}

@keyframes drawCheck {
  to { transform: rotate(45deg) scale(1); }
}


/* ================= BUTTONS ================= */
.whatsapp-btn {
  display: block;
  margin-top: 15px;
  background: #25D366;
  color: white;
  padding: 14px;
  border-radius: 10px;
  text-decoration: none;
  font-weight: 600;
}

.whatsapp-btn:hover {
  background: #1ebe5d;
}

.modal-secondary-btn {
  background: #f54a0a;
  color: white;
  padding: 14px;
  border: none;
  width: 100%;
  border-radius: 10px;
  margin-top: 10px;
  cursor: pointer;
}


/* ================= TEXT ================= */
.note-text {
  font-size: 14px;
  color: #666;
  margin: 12px 0 18px;
}


/* ================= RESPONSIVE ================= */
@media (min-width: 768px) {
  .hero {
    height: 420px;
    padding: 40px 50px;
  }

  .hero-content h1 {
    font-size: 42px;
  }

  .hero-content p {
    font-size: 18px;
    max-width: 520px;
  }

  .form-container {
    padding: 35px 30px 40px;
  }
}

.enroll-banner-pro {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #fff;
  padding: 12px 16px;
  border-radius: 10px;
  font-size: 10px;
  font-weight: 500;
  margin-bottom: 15px;
  background: rgba(26, 25, 79);
  backdrop-filter: blur(6px);
}

/* Badge */
.enroll-banner-pro .badge {
  background: #ff5a1f;
  color: white;
  padding: 3px 9px;
  font-size: 10px;
  border-radius: 5px;
  flex-shrink: 0; /* prevents shrinking */
  box-shadow: 0 2px 6px rgba(0,0,0,0.2);
}

/* Wrapper */
.text-wrapper {
  overflow: hidden;
  white-space: nowrap;
  flex: 1;
}

/* 🔥 KEY FIXES HERE */
.text-track {
  display: flex;              /* was inline-block ❌ */
  width: max-content;         /* ensures full width */
  animation: slideText 10s linear infinite;
}

/* spacing */
.text-track span {
  padding-right: 100px;
  white-space: nowrap;
}

/* Animation */
@keyframes slideText {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

.text-track .item {
  margin-right: 100px; /* clean gap between repeats */
  white-space: nowrap;


}


/* ================= SCHOLARSHIP SECTION ================= */

.scholarship-section {
  margin-top: 40px;
}

.scholarship-banner img {
  width: 100%;
  border-radius: 20px;
  display: block;
}

.section-title {
  text-align: center;
  margin-bottom: 28px;
}

.section-title h2 {
  font-size: 28px;
  font-weight: 800;
}

.section-title span {
  color: #f54a0a;
}

.section-title p {
  color: #666;
  margin-top: 8px;
}

.course-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
}

.course-card {
  background: white;
  border-radius: 18px;
  padding: 24px 20px;
  text-align: center;
  border: 1px solid #eee;
  box-shadow: 0 6px 18px rgba(0,0,0,0.05);
}

.icon {
  font-size: 42px;
  margin-bottom: 14px;
}

.course-card h3 {
  font-size: 22px;
  margin-bottom: 10px;
}

.course-card p {
  color: #666;
  margin-bottom: 16px;
}

.price-label {
  font-size: 14px;
  color: #777;
}

.old-price {
  font-size: 24px;
  font-weight: bold;
  text-decoration: line-through;
  margin: 8px 0 18px;
}

.price-label.new {
  font-weight: 700;
}

.new-price {
  font-size: 38px;
  font-weight: 800;
  margin-top: 8px;
}

.blue {
  color: #2457ff;
}

.green {
  color: #1db954;
}

.purple {
  color: #7c3aed;
}

.orange {
  color: #f54a0a;
}

.save-box {
  margin-top: 16px;
  padding: 10px;
  border-radius: 10px;
  font-weight: 700;
  font-size: 15px;
}

.blue-bg {
  background: #edf2ff;
  color: #2457ff;
}

.green-bg {
  background: #e9fceb;
  color: #1db954;
}

.purple-bg {
  background: #f3e8ff;
  color: #7c3aed;
}

.orange-bg {
  background: #fff1eb;
  color: #f54a0a;
}

/* DESKTOP */
@media (min-width: 768px) {
  .course-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}


/* ================= FEATURES ================= */
.features-section{
  width:100%;
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(150px,1fr));
  gap:15px;
  margin-top:40px;
}

.feature-box{
  background:#fff;
  padding:20px 15px;
  border-radius:14px;
  text-align:center;
  box-shadow:0 5px 15px rgba(0,0,0,0.06);
}

.feature-box span{
  font-size:30px;
  display:block;
  margin-bottom:10px;
}

.feature-box p{
  font-size:15px;
  font-weight:600;
  color:#111;
}


/* ================= HELP SECTION ================= */
.help-section{
  margin-top:35px;
  background:#eef4ff;
  border-radius:20px;
  padding:24px;
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:20px;
  flex-wrap:wrap;
}

.help-left{
  display:flex;
  align-items:center;
  gap:15px;
}

.help-icon{
  width:60px;
  height:60px;
  border-radius:50%;
  background:#fff;
  display:flex;
  justify-content:center;
  align-items:center;
  font-size:30px;
}

.help-left h3{
  font-size:28px;
  margin-bottom:5px;
}

.help-left p{
  color:#555;
  font-size:15px;
}

.help-btn{
  background:#00004f;
  color:#fff;
  text-decoration:none;
  padding:16px 28px;
  border-radius:12px;
  font-weight:600;
}


/* ================= FOOTER ================= */
.footer{
  margin-top:50px;
  background:#00004f;
  color:#fff;
  padding:50px 20px 25px;
}

.footer-grid{
  max-width:1200px;
  margin:auto;
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(220px,1fr));
  gap:35px;
}

.footer h2{
  font-size:26px;
  margin-bottom:12px;
}

.footer h4{
  margin-bottom:15px;
  font-size:18px;
}

.footer p{
  color:#d8d8d8;
  line-height:1.7;
}

.footer ul{
  list-style:none;
}

.footer ul li{
  margin-bottom:12px;
  color:#d8d8d8;
}

.footer a{
  color:#d8d8d8;
  text-decoration:none;
}

.footer a:hover{
  color:#fff;
}

.footer-bottom{
  margin-top:40px;
  text-align:center;
  color:#bbb;
  font-size:14px;
  border-top:1px solid rgba(255,255,255,0.1);
  padding-top:20px;
}


/* ================= MOBILE ================= */
@media (max-width:768px){

  .help-section{
    text-align:center;
    justify-content:center;
  }

  .help-left{
    flex-direction:column;
  }

  .help-btn{
    width:100%;
    text-align:center;
  }

}

.submit-btn:disabled{
  opacity:0.7;
  cursor:not-allowed;
}

.whatsapp-float {
  position: fixed;
  bottom: 24px;
  right: 18px;
  width: 60px;
  height: 60px;
  background: #25D366;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  box-shadow: 0 10px 20px rgba(0,0,0,0.2);
  z-index: 999;
  text-decoration: none;
}

/* 🔥 THIS FIXES THE SMALL ICON PROBLEM */
.whatsapp-float img {
  width: 32px;
  height: 32px;
  object-fit: contain;
  display: block;
}