/* =============== Global Reset =============== */

body{
    overflow-x: hidden;
}

/* =============== Carousel Section =============== */
.carousel {
  position: relative;
  width: 100%;
  z-index: 0;
}

.carousel-item {
  transition: transform 1s ease-in-out;
}

.carousel-item img {
  width: 100%;
  height: 100vh; /* full screen height */
  object-fit: cover;
}

@media (max-width: 768px) {
  .carousel-item img {
    height: 60vh; /* smaller height for tablets/mobiles */
  }
}

@media (max-width: 480px) {
  .carousel-item img {
    width: 100%; 
    height: 40vh; /* even smaller for phones */
  }
}


.overlay {
  position: absolute;
  left: 10%;
  top: 50%;
  transform: translateY(100%);
  opacity: 0;
  color: white;
  padding: 20px;
  border-radius: 8px;
  transition: transform 1s ease-out, opacity 1s ease-out;
  width: 80%;
  max-width: 600px;
}

.carousel-item.active .overlay {
  transform: translateY(-50%);
  opacity: 1;
}

.overlay h2 {
  font-weight: bolder;
  font-size: 50px;
  line-height: 1.1;
}

.overlay p {
  font-size: 18px;
}

/* ðŸ”¹ Mobile Responsive */
@media (max-width: 768px) {
  .overlay {
    left: 0%;
    top: 50%;
    transform: translate(-50%, -50%);
    text-align: justify;
    width: 90%;
    padding: 15px;
  }

  .overlay h2 {
    font-size: 24px;
  }

  .overlay p {
    font-size: 14px;
  }
}



/* =============== "Your Future is Bright" Section =============== */
.containerBF h1 {
  color: #F36741;
  font-family: 'Franklin Gothic Medium', 'Arial Narrow', Arial, sans-serif;
}

.containerBF .lead {
  font-size: 20px;
  color: rgb(0, 0, 109);
  font-family: 'Franklin Gothic Medium', 'Arial Narrow', Arial, sans-serif;
  text-align: justify;
}

/* =============== Family Section =============== */


/* =============== Teacher Section =============== */
.teacher {
  display: flex;
  align-items: center;
  margin-top: 100px;
  padding: 80px;
}

.teacher img {
  width: 400px;
  height: 400px;
  border-radius: 30px;
  border: 1px solid black;
}

.btn.jotbtn {
  margin-top: 40px;
  background-color: rgb(221, 221, 21);
  color: darkblue;
  padding: 10px 30px;
  border: none;
  cursor: pointer;
  font-size: 20px;
  border-radius: 25px;
  transition: 0.3s;
}

.btn.jotbtn:hover {
  background-color: rgb(247, 247, 92);
  color: black;
  box-shadow: 0 0 15px rgb(105, 105, 29);
}

/* =============== College Success Section =============== */
.collegesuccess {
  background-color: rgb(241, 241, 241);
  align-items: center;
  margin-top: 50px;
}

.collegesuccess img {
  margin-top: -10px;
  margin-left: 1%;
  width: 400px;
  height: 350px;
  border-radius: 30px;
}

.btn.aasbtn {
  margin-top: 40px;
  background-color: blue;
  color: white;
  padding: 10px 30px;
  border: none;
  cursor: pointer;
  font-size: 20px;
  border-radius: 25px;
  transition: 0.3s;
}

.btn.aasbtn:hover {
  background-color: rgb(117, 167, 248);
  color: black;
    box-shadow: 0 0 15px blue;
}
