html,
body {
  margin: 0;
  padding: 0;
  height: 100%;
}

/* ------------------------------ Main About Section ------------------------------ */
.about-section {
  background: #ffffff;
  padding: 2rem;
}

.about-section .section-title {
  font-size: 2rem;
  position: relative;
  display: inline-block;
  text-align: center;
  width: 100%;
}

/* add breathing room below the section title */
.about-section .section-title {
  margin-bottom: 1.75rem;
}

.about-section .section-title::after {
  content: "";
  display: block;
  width: 20%;
  height: 4px;
  background: #b2186d;
  /* same purplish color */
  margin: 0.5rem auto;
  border-radius: 2px;
}

.about-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 40px;
  align-items: stretch;
  padding: 1rem;
  margin-bottom: 1rem;
}

/* Text Card */
.about-card {
  background: white;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  padding: 25px;
  text-align: center;
  line-height: 1.6;
  font-size: 1rem;
  color: #4b5563;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.about-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
}

.about-card p {
  margin-bottom: 1.2rem;
}

/* Image Card */
.about-image {
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  background: white;
  border-radius: 12px;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.about-image:hover {
  transform: translateY(-5px);
}

.about-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* ------------------------------ Mission & Vision ------------------------------ */

.mission-vision .section-subtitle {
  text-align: center;
  font-size: 1.5rem;
  margin-bottom: 1rem;
  color: #1f2937;
}

.mission-vision {
  margin-bottom: 0;
  /* Removes extra bottom margin */
  padding-bottom: 0;
  /* Removes extra bottom padding */
}

.mv-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  align-items: start;
  padding-bottom: 0;
  /* Override existing 2rem 0 padding if needed */
  margin-bottom: 0;
  /* Ensure no bottom gap */
}

.mv-card {
  background: #ffffff;
  border-radius: 12px;
  padding: 20px;
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.06);
  color: #374151;
  line-height: 1.2;
}

.mv-card h4 {
  margin-top: 0;
  margin-bottom: 0.5rem;
  color: #111827;
  font-size: 1.25rem;
  font-weight: bold;
}

/*--------------Resposinsive------------------------*/

@media (max-width: 480px) {
  .about-section {
    background: #ffffff;
    margin-left: auto;
    margin-right: auto;
    padding-bottom: 0;
    margin-bottom: 0;
  }

  .about-section .section-title {
    font-size: 1.75rem;
    margin-bottom: -5px;
    margin-top: -5px;
  }

  .about-grid {
    display: flex;
    flex-direction: column;
  }

  .about-card {
    padding: 15px;
    line-height: 1.6;
    font-size: 1.1rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
  }

  .about-image img {
    width: 100%;
    aspect-ratio: 4 / 3;
    max-width: 300px;
    /* Cap size on very large screens */
    height: auto;
    border-radius: 8px;
    /* Slightly smaller radius for image inside card */
    margin-bottom: 0.5rem;
  }

  .mission-vision {
    padding-top: 0;
    margin-top: 0;
    padding-bottom: 0;
    margin-bottom: 0;
  }


  .mission-vision .section-subtitle {
    font-size: 1.75rem;
  }

  .mv-grid {
    display: flex;
    flex-direction: column;
  }
}


@media (min-width: 735px) {
  .about-section {
    background: #ffffff;
    margin-left: auto;
    margin-right: auto;
  }

  .about-section .section-title {
    font-size: 1.75rem;
    margin-bottom: -5px;
    margin-top: -5px;
  }

  .about-grid {
    display: flex;
    flex-direction: column;
  }

  .about-card {
    padding: 15px;
    line-height: 1.6;
    font-size: 1.1rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
  }

  .about-image img {
    width: 100%;
    aspect-ratio: 4 / 3;
    max-width: 700px;
    /* Cap size on very large screens */
    height: auto;
    border-radius: 8px;
    /* Slightly smaller radius for image inside card */
    margin-bottom: 0.5rem;
  }

  .mission-vision .section-subtitle {
    font-size: 1.75rem;
  }

  .mv-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
    padding: 2rem 0;
    justify-content: center;
    grid-auto-rows: 1fr;
    position: relative;
  }

    .mv-card {
    width: -webkit-fill-available;
  }
}

@media (min-width: 756px) {
  .mv-grid {
    display: flex;
    gap: 30px;
    padding: 2rem 0;
    justify-content: center;
    position: relative;
  }

  .mv-card {
    width: -webkit-fill-available;
  }
}

@media (min-width: 820px) {

  .about-section{
    padding: 3rem;
  }
  
  .about-card{
    display: flex;
    flex-direction: row;
  gap: 150px;
  align-items: center;
  text-align: justify;
}

.about-image img {
  display: block;
  margin: 0 auto;
  border-radius: 12px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
  width: 100%;
  max-width: 400px; /* Optional: keeps it from being too large */
  height: auto;
}

.about-text p{
  width: 100%;
  max-width: 500px;
  font-size: 1rem;
}

.mv-grid {
  display: flex;
        gap: 30px;
        padding: 2rem 0;
        justify-content: center;
        position: relative;
        flex-direction: column;
        width: 550px;
        margin-left: auto;
        margin-right: auto;
}
}