/* ROOT */
:root {
  --primary: #0d47a1;
  --accent: #e02618;
  --gradient: linear-gradient(135deg, #0d47a1 0%, #1976d2 100%);
  --white: #ffffff;
  --light: #f8f9fa;
  --dark: #333333;
  --gray: #666666;
}

/* RESET */
* { margin: 0; padding: 0; box-sizing: border-box; }
body {
  font-family: 'Poppins', sans-serif;
  color: var(--dark);
  line-height: 1.7;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }

/* HERO SECTION */
.hero-section {
  background: var(--gradient);
  color: var(--white);
  padding: 110px 20px 80px;
  position: relative;
  overflow: hidden;
}

.hero-section::before {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0; height: 100px;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1440 320"><path fill="%23ffffff" fill-opacity="0.12" d="M0,96L48,112C96,128,192,160,288,160C384,160,480,128,576,122.7C672,117,768,139,864,138.7C960,139,1056,117,1152,106.7C1248,96,1344,96,1392,96L1440,96L1440,320L1392,320C1344,320,1248,320,1152,320C1056,320,960,320,864,320C768,320,672,320,576,320C480,320,384,320,288,320C192,320,96,320,48,320L0,320Z"></path></svg>');
  background-repeat: no-repeat;
  background-size: cover;
}

/* HERO CONTENT */
.hero-content {
  max-width: 650px;
  text-align: left;
}

.hero-content h1 {
  font-size: 40px;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 1.2rem;
}

.hero-content p {
  font-size: clamp(1rem, 2.2vw, 1.25rem);
  opacity: 0.95;
  margin-bottom: 2rem;
  line-height: 1.6;
}

/* HERO BUTTONS */
.hero-buttons {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.btn-explore, .btn-contact {
  background: #e02618;
  color: #fff;
  font-weight: 700;
  font-size: 1rem;
  padding: 0.9rem 2rem;
  border-radius: 50px;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.btn-explore:hover, .btn-contact:hover {
  background:#e02618;
  /* transform: translateY(-4px); */
  color: black;
}

/* HERO IMAGE */
.hero-img {
  width:80%;
  max-height: 420px;
  object-fit: cover;
  border-radius: 26px;
  box-shadow: 0 15px 40px rgba(0,0,0,0.3);
  margin-top: 10px;
  margin-left: 90px;
}

/* COUNTERS */
.counter-box {
  position: absolute;
  background: #ffffff;
  padding: 1rem 1.2rem;
  border-radius: 20px;
  min-width: 140px;
  text-align: center;
  box-shadow: 0 12px 30px rgba(0,0,0,0.15);
  z-index: 2;
}

.counter-box h3 {
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 0.2rem;
}

.counter-box p {
  font-size: 0.85rem;
  color: var(--primary);
  font-weight: 600;
  text-transform: uppercase;
}

/* Counter positions (desktop only) */
.counter-box.students { top: 15%; right: -3%; }
.counter-box.courses { bottom: 12%; left: -3%; }

/* APPLICATION STEPS */
.apply-steps {
  padding: 70px 20px;
  background: linear-gradient(to bottom, #f8f9fa, #e9ecef); /* Subtle gradient for luxury */
}

.section-title {
  font-size: clamp(1.7rem, 4vw, 2.5rem);
  font-weight: 800;
  color: var(--primary);
  text-align: center;
  margin-bottom: 2rem;
  position: relative;
  display: inline-block;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  border-radius: 3px;
  background: var(--accent);
}

/* STEP CONTENT */
.step-card p {
  color: white; /* Changed to white for dark background */
  font-size: 0.95rem;
  line-height: 1.6;
}

/* VERTICAL TIMELINE */
.timeline-container {
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px 0;
}

/* The actual timeline (vertical line) */
.timeline-container::before {
  content: '';
  position: absolute;
  width: 4px;
  background: var(--primary); /* Adjust color for progress line */
  top: 0;
  bottom: 0;
  left: 50%;
  margin-left: -2px;
  border-radius: 2px;
  z-index: 0;
}

/* Individual timeline item */
.timeline-item {
  padding: 10px 0;
  position: relative;
  width: 50%;
  padding-left: 30px; /* Space for the dot */
  margin-bottom: 30px;
}

/* Alternating items */
.timeline-item:nth-child(odd) {
  left: 0;
  clear: both; /* Clear floats for proper stacking */
}

.timeline-item:nth-child(even) {
  left: 50%;
  padding-left: 0;
  padding-right: 30px; /* Space for the dot */
  text-align: right;
}

/* The timeline dot */
.timeline-dot {
  position: absolute;
  width: 50px;
  height: 50px;
  background: var(--accent); /* Accent color for the dot */
  border-radius: 50%;
  top: 50%; /* Center vertically with content */
  transform: translateY(-50%);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1.3rem;
  color: var(--white);
  box-shadow: 0 5px 15px rgba(0,0,0,0.2); /* Subtle shadow */
}

.timeline-item:nth-child(odd) .timeline-dot {
  right: -25px; /* Position dot on the right side of left items */
}

.timeline-item:nth-child(even) .timeline-dot {
  left: -25px; /* Position dot on the left side of right items */
}

/* Content box for each item */
.timeline-content {
  background: linear-gradient(135deg, var(--primary) 0%, hsl(212, 80%, 42%) 100%);
  border-radius: 15px;
  padding: 1.5rem;
  box-shadow: 0 20px 50px rgba(0,0,0,0.3); /* Enhanced shadow for luxury */
  transition: 0.3s ease;
  color: var(--white);
  position: relative; /* For pseudo-elements */
}

.timeline-content:hover {
  transform: translateY(-8px);
  box-shadow: 0 35px 70px rgba(0,0,0,0.4); /* Even more enhanced shadow on hover */
}

/* Responsive timeline on small screens */
@media (max-width: 768px) {
  .timeline-container::after {
    left: 20px; /* Move line to the left */
  }

  .timeline-item {
    width: 100%;
    padding-left: 60px; /* Space for line and dot */
    padding-right: 15px;
    margin-bottom: 20px;
  }

  .timeline-item:nth-child(even) {
    left: 0%;
    padding-left: 60px;
    padding-right: 15px;
    text-align: left;
  }

  .timeline-item:nth-child(odd) .timeline-dot,
  .timeline-item:nth-child(even) .timeline-dot {
    left: 0px; /* Position dot on the line */
    transform: translateX(0%) translateY(-50%);
    margin-left: 0;
    right: auto;
  }

  .timeline-content::before {
    display: none; /* Hide arrows on mobile */
  }
}



/* RESPONSIVE */
@media (max-width: 992px) {
  .hero-section {
    padding: 90px 20px 70px;
  }

  .hero-img {
    max-height: 350px;
            margin-left: 27px;
    
  }

  .counter-box {
    position: static;
    margin: 1rem auto;
  }

  .hero-content {
    text-align: center;
    margin: 0 auto;
  }

  .hero-buttons {
    justify-content: center;
  }
}

@media (max-width: 600px) {
  .hero-content h1 { font-size: 2rem; }
  .hero-content p { font-size: 1rem; }
  .btn-explore, .btn-contact {
    width: 100%;
    max-width: 260px;
  }
}
