html {
  scroll-behavior: smooth;
}
[data-aos] {
  opacity: 0;
  transition-property: opacity, transform;
}

[data-aos].aos-animate {
  opacity: 1;
}

/* General Styles */
.topcontainer {
  padding: 50px 95px !important;
}

.hero {
  text-align: center;
  margin-bottom: 60px;
  color: rgb(0, 4, 87);
  padding: 50px 20px;
  border-radius: 10px;
}

.hero h1 {
  font-size: 42px;
  font-weight: 700;
  color: #003471;
  text-transform: uppercase;
  letter-spacing: 2px;
}

.hero p {
  font-size: 20px;
  font-weight: 400;
  line-height: 1.6;
  margin-top: 20px;
  color: #666;
}

.section {
  margin-bottom: 80px;
}

.section h2 {
  font-size: 32px;
  font-weight: 700;
  color: #003471;
  margin-bottom: 20px;
  text-align: center;
  text-transform: uppercase;
}

.section p, .section ul {
  font-size: 18px;
  color: #555555;
  line-height: 1.8;
  text-align: justify;
  margin-bottom: 30px;
}

.section ul {
  list-style-type: none;
  padding-left: 20px;
}

.section ul li {
  margin-bottom: 15px;
  font-weight: 500;
}

/* Flexbox Layout for Image and Text */
.content-flex {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 40px;
  flex-wrap: wrap; /* Allows wrapping on small screens */
}

.text-container {
  flex: 1;
  max-width: 45%;
  background: white;
  padding: 40px;
  border-radius: 10px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
}

.text-container:hover {
  transform: translateY(-10px);
}

.text-container h2 {
  font-size: 28px;
  font-weight: 700;
  color: #003471;
  margin-bottom: 15px;
}

.image-container {
  flex: 1;
  max-width: 45%;
  position: relative;
  overflow: hidden;
  border-radius: 10px;
}

.about-img {
  width: 100%;
  height: auto;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.image-container:hover .about-img {
  transform: scale(1.1);
}

/* Values Section */
.values {
  display: flex;
  justify-content: space-between;
  gap: 30px;
  flex-wrap: wrap;
}

.value {
  background:#f8f6f1;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.1);
  text-align: center;
  width: 30%;
  transition: transform 0.3s ease;
}

.value:hover {
  transform: translateY(-10px);
}

.value i {
  font-size: 50px;
  color: #0b0162;
  margin-bottom: 20px;
}

.value h3 {
  font-size: 24px;
  color: #0b0162;
  font-weight: 700;
  margin-bottom: 10px;
}

.value p {
  font-size: 16px;
  color: #777676;
}
/* General Mission & Vision Section Styles */
.mission-vision {
  padding: 40px 20px;
  background-color: #0b0162;
  color: white;
}

.mission-vision .topcontainer {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
  text-align: center;
}

.mission-vision .title {
  font-size: 28px;
  font-weight: bold;
  margin-bottom: 40px;
  text-align: center;
  color: #f8f6f1;
}

.content-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
  justify-items: center;
}

/* Boxes */
.vision-box, .mission-box {
  background-color: #0b0162;
  border: 1px solid #f8f6f1;
  border-radius: 10px;
  padding: 30px 20px 20px;
  position: relative;
  text-align: center;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.icon-wrapper {
  position: absolute;
  top: -25px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 60px;
  background: #f8f6f1;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.icon-wrapper i {
  font-size: 30px;
  color: #0b0162;
}

h3 {
  margin-top: 40px;
  font-size: 22px;
  font-weight: bold;
}

p {
  font-size: 16px;
  line-height: 1.5;
  margin-top: 15px;
}

/* Responsive Design */
@media (max-width: 768px) {
  .topcontainer {
    padding: 20px 10px !important;
  }

  .content-flex  {
    flex-direction: column;  /* Stacks elements vertically */
    align-items: center;
    gap: 3px;
  }

  .hero h1 {
    letter-spacing: 2px;
  }

  .text-container {
    flex: 1;
    max-width: 100%;
    background: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
    order: 1; /* Ensures the text comes first */
  }

  .image-container {
    max-width: 100%;
    width: 100%;
    padding: 15px;
    box-sizing: border-box;
    order: 2; /* Ensures the image comes after the text */
  }

  .about-img {
    width: 100%;
    height: auto;
    object-fit: cover;
    max-height: 350px;
  }

  .section {
    margin-bottom: 50px;
    padding: 0 15px;
  }

  .value {
    width: 100%;
    margin-bottom: 30px;
    padding: 25px;
  }

  .topcontent-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .content-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .vision-box, .mission-box {
    padding: 30px 15px;
  }

  h3 {
    margin-top: 30px;
  }
  
  .image-container {
    height: auto;
    min-height: 100px;
  }
}
