#contact {
  scroll-margin-top: 150px;
}
#intro {
  scroll-margin-top: 160px;
}
#achievement,
#journey,
#links {
  scroll-margin-top: 165px;
}
/* banner section starts here */

.banner {
  height: 600px;
  animation: changeBg 30s infinite;
}

@keyframes changeBg {
  0% {
    background-image: url("../images/achievement-html/staffs-rego-program.jpg");
  }
  50% {
    background-image: url("../images/achievement-html/HOSPITAL-ADARASH.jpg");
  }
  100% {
    background-image: url("../images/achievement-html/staffs-rego-program.jpg");
  }
}

/* banner section ends here */

/* ================= HERO SECTION ================= */

.achievement-hero-content {
  margin: 80px auto;
  justify-content: center;
  text-align: center;
  color: white;
  max-width: 800px;
}

.achievement-hero-content h2 {
  color: white;
  border-bottom: none;
}

.achievement-hero-content p {
  font-size: 20px;
  line-height: 1.8;
  text-align: center;
}
/* ================= INTRO SECTION ================= */
.achievement-intro {
  text-align: center;
  max-width: 1000px;
  margin: auto;
}

.achievement-intro p {
  line-height: 2;
  margin-bottom: 20px;
  color: #444;
}
/* ================= CARDS ================= */
.achievement-section span,
.timeline-section span,
.achievement-gallery span,
.statistics span,
.closing span {
  width: 250px;
  height: 50px;
  border: 3px solid var(--orage-red);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 15px;
}
.achievement-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.achievement-card {
  background: white;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.08);
  transition: 0.4s;
}

.achievement-card:hover {
  transform: translateY(-10px);
}
.achievement-card img {
  width: 100%;
  height: 260px;
  object-fit: cover;
}

.achievement-content {
  padding: 30px 25px;
}

.achievement-content i {
  font-size: 40px;
  color: #0b6efd;
  margin-bottom: 18px;
}

.achievement-content h3 {
  margin-bottom: 15px;
  color: #222;
}

.achievement-content p {
  line-height: 1.8;
  color: #555;
}

/* ================= TIMELINE ================= */
.timeline {
  position: relative;
  max-width: 900px;
  margin: auto;
}

.timeline::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 0;
  width: 4px;
  height: 100%;
  background: #0b6efd;
  transform: translateX(-50%);
}

.timeline-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 60px;
  position: relative;
}

.timeline-year {
  background: #0b6efd;
  color: white;
  padding: 12px 20px;
  border-radius: 30px;
  font-weight: bold;
  transition: 0.4s;
}

.timeline-year:hover {
  transform: translateY(-5px);
}
.timeline-content {
  width: 42%;
  background: white;
  padding: 25px;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  transition: 0.4s;
}

.timeline-content:hover {
  transform: translateY(-10px);
}
.timeline-content p {
  margin-top: 10px;
  line-height: 1.8;
}

/* ================= STATS ================= */
/* .statistics {
  margin-bottom: 10px;
} */
.achievement-stats {
  background: linear-gradient(135deg, #333, #0f172a);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 30px;
  border-radius: 18px;
  color: white;
  margin: 10px auto 60px auto;
}

.stat-box {
  text-align: center;
}

.stat-box i {
  font-size: 45px;
  margin-bottom: 20px;
}
.stat-box h2 {
  font-size: 32px;
  margin-bottom: 10px;
}

/* ================= CLOSING ================= */
.achievement-closing {
  background: linear-gradient(135deg, #333, #0f172a);
  background-size: cover;
  background-position: center;
  color: white;
  text-align: center;
  border-radius: 18px;
}

.closing-content {
  max-width: 900px;
  margin: auto;
}

.closing-content h2 {
  font-size: 32px;
  margin-bottom: 20px;
}
.closing-content p {
  line-height: 2;
  font-size: 18px;
}

/* ================= RESPONSIVE ================= */
@media (max-width: 900px) {
  .achievement-hero-content h1 {
    font-size: 45px;
  }

  .achievement-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .timeline::before {
    left: 20px;
  }

  .timeline-item {
    flex-direction: column;
    align-items: flex-start;

    padding-left: 50px;
  }
  .timeline-content {
    width: 100%;
    margin-top: 20px;
  }
}

@media (max-width: 600px) {
  section {
    padding: 60px 6%;
  }

  .achievement-hero {
    height: 55vh;
  }
  .achievement-hero-content h1 {
    font-size: 36px;
  }

  .achievement-hero-content p {
    font-size: 16px;
  }

  .section-title h2 {
    font-size: 30px;
  }
  .achievement-grid {
    grid-template-columns: 1fr;
  }
  .closing-content h2 {
    font-size: 32px;
  }
}
