/* ==== Hero Carousel Section ==== */
#aboutCarousel {
  height: 800px;
  width: 100%;
  position: relative;
  overflow: hidden;
}

#aboutCarousel .carousel-inner,
#aboutCarousel .carousel-item {
  height: 800px !important;
}

#aboutCarousel .carousel-item img {
  height: 100%;
  width: 100%;
  object-fit: cover;
  filter: brightness(0.5);
}

#aboutCarousel .carousel-caption {
  position: absolute;
  top: 50%; 
  left: 50%;
  transform: translate(-50%, -50%);
  padding: 30px 40px;
  border-radius: 12px;
  color: #fff;
  text-align: center;
  z-index: 10;
  max-width: 85%;
  animation: fadeInUp 1s ease-out forwards;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

#aboutCarousel .carousel-caption h2 {
  font-size: 3rem;
  font-weight: 700;
  margin-bottom: 15px;
  width: 600px;
}

#aboutCarousel .carousel-caption p {
  font-size: 1.5rem;
  font-weight: 400;
  margin-top: 10px;
  width: 1000px;
}

@keyframes fadeInUp {
  0% {
    opacity: 0;
    transform: translate(-50%, -60%);
  }
  100% {
    opacity: 1;
    transform: translate(-50%, -50%);
  }
}

@media (max-width: 768px) {
  #aboutCarousel {
    height: 500px;
  }

  #aboutCarousel .carousel-inner,
  #aboutCarousel .carousel-item {
    height: 500px !important;
  }

  #aboutCarousel .carousel-caption {
    padding: 15px 20px;
    max-width: 95%;
  }

  #aboutCarousel .carousel-caption h2 {
    font-size: 2rem;
    width: auto;
  }

  #aboutCarousel .carousel-caption p {
    font-size: 1rem;
    width: auto;
  }
}

.header-section {
  text-align: center;
  padding: 60px 20px 30px;
  background-color: #f9f9f9;
}

.header-section h1 {
  font-size: 3rem;
  font-weight: 700;
  margin-bottom: 10px;
}

.header-section p {
  font-size: 1.2rem;
  color: #666;
}

.certifications-section {
  background-color: #f8f9fa;
}

.section-title {
  font-weight: 600;
  color: #2a5d9f;
  position: relative;
}

.cert-box {
  background: #ffffff;
  padding: 25px 20px;
  border-radius: 15px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid #eaeaea;
  height: 100%;
}

.cert-box:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}

.cert-box i {
  color: #007bff;
}

.cert-box p {
  white-space: pre-line; /* Ensures <br> style line breaks are respected */
}

.apeda-logo {
  max-height: 60px;
  max-width:200px !important;
  width: auto;
  display: inline-block;
  margin-left:75px;
}

/* Optional: Ensure alignment in grid stays even if content varies slightly */
.cert-box h5 {
  min-height: 48px;
}

