body{
    width: 100%;
    margin: 0;
    
}

#slider{
    width: 100%;
    height: 500px;
    background-size: cover;
    background-position: center;
    background-image: url(../images/proffesed.png);
    padding-top: 80px;
    
}
#slider3{
    margin-top: 500px;
    display:flex;
}
#slider h1{
    color: navy;
    background-color: rgba(217, 226, 234, 0.776);
    font-size: 60px;
    width: 1000px;
    position: relative;
    left: 130px;
    bottom: -90px;
   margin-top:0px;

   
}
    
#slider button{
    font-size: 15px;
    background-color: rgb(90, 185, 233);
    border-radius: 10px;
    padding: 5px;
    margin-bottom: -700px;
    position: relative;
    left: 600px;
    bottom: -330px;
    }
#slider button:hover{
    color: azure;
}

.about-section {
  padding: -150px 10%;
  background-color: rgba(26, 83, 130, 0.518);
  /* margin-top: -50px; */   
}

.about-container {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 50px;
}

.about-text {
  flex: 1 1 45%;
}

.main-title {
  font-size: 2.5rem;
  color: #3b3b98;
  font-weight: 700;
  margin-bottom: 10px;
  position: relative;
  left: 500px;
bottom: 15px;
}

.sub-title {
  font-size: 1.6rem;
  color:black;
  margin-bottom: 20px;
}

.about-text p {
  line-height: 1.8;
  font-size: 1.1rem;
  color: #444;
}

/* Image Section */
.about-image {
  flex: 1 1 45%;
  position: relative;
  height: 450px;
  overflow: hidden;
  border-radius: 12px;
  box-shadow: 0 10px 20px rgb(15, 149, 252);
  margin-bottom: -100px;
}

.image-slider img {
  position: absolute;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  animation: fade 15s infinite;
  border-radius: 17px;
}

/* Each image fades in and out */
.image-slider img:nth-child(1) {
  animation-delay: 0s;
}

.image-slider img:nth-child(2) {
  animation-delay: 5s;
}

.image-slider img:nth-child(3) {
  animation-delay: 10s;
}

/* Animation for fading images */
@keyframes fade {
  0% { opacity: 0; }
  10% { opacity: 1; }
  30% { opacity: 1; }
  40% { opacity: 0; }
  100% { opacity: 0; }
}

/* Responsive Design */
@media (max-width: 768px) {
  .about-container {
    flex-direction: column;
    border: #000000cb;
  }

  .about-image, .about-text {
    flex: 1 1 100%;
    
  }
  .about-text {
    text-align: center;
  }
}

#about2{
    display: flex;
    width: 70%;
    align-items: center;
    justify-content: center;
    margin-left: 450px;
    gap: 200px;
    margin-top: -250px;


}


/* Font & Page Setup */
body {
  margin: 0;
  font-family: 'DM Sans', sans-serif;
  color: #333;
}

/* Section Title */
.section-title {
  text-align: center;
  font-size: 2.5rem;
  color:navy;
  margin-top: -100px;
  margin-bottom: 40px;
  font-weight: 700;
  letter-spacing: 1px;
  position: relative;
  animation: fadeSlide 2s ease;
}

/* Container Layout */
.home-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  max-width: 1200px;
  margin: 0 auto 80px;
  padding: 0 20px;
   box-shadow:  0 10px 20px rgb(18, 157, 244);
}

/* Each Box */
.home-box {
  background: #fff;
  border-radius: 15px;
  overflow: hidden;
  text-align: center;
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
  transition: transform 0.4s ease, box-shadow 0.4s ease;
  padding-bottom: 20px;
}

/* Hover Animation */
.home-box:hover {
  transform: translateY(-10px);
  box-shadow: 0 10px 25px rgba(0,0,0,0.15);
  color: #1c94e4;
}

/* Images */
.home-box img {
  width: 100%;
  height: 350px;
  object-fit: cover;
  background-color: #1c94e4;
}

/* Descriptions */
.home-box p {
  padding: 15px 20px;
  font-size: 1.05rem;
  line-height: 1.7;
  color: #444;
  opacity: 0;
  animation: fadeInUp 1.2s forwards;
}

/* Text Animation */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Title Animation */
@keyframes fadeSlide {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Responsive Adjustments */
@media (max-width: 768px) {
  .section-title {
    font-size: 2rem;
  }

  .home-box p {
    font-size: 1rem;
  }
}

.about-container button{
    color:black;
    background-color:rgb(90, 185, 233) ;
    padding: 5px;
    font-size: 15px;
    border-radius: 10px;
margin-bottom: 50px;
}

.about-container button:hover{
    color: white;
}
#mission{
    display: flex;
    width: 100%;
    font-size: 15px;
    font-family: DM sans;
}


.ministry1{
    width: 40%
}
.ministry2 {
    width: 40%;
    margin-left: 200px;
    border: 1px solid #ccc;
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  padding: 5px;
 
}
.ministry2 p{
 font-family: sans-serif;
 background-color:white;
 
}
.ministry1 img{
    width:700px;
    height:400px;
  
}
  h1{
    color: navy;
  }  

.home-container button {
  color: white;
  background-color: #1c94e4;
}
#contact{
  margin-bottom: 20px;
}
#contact h2{
  color: navy;
}