body {
    background-color: #f5f7fa;
}

section{
  padding-top: 30px;
}

.image-container {
  position: relative;
  width: 100%;
  overflow: hidden;
  text-align: center;
}

.image-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  -webkit-mask-image: linear-gradient(to bottom, black 50%, transparent 100%);
  mask-image: linear-gradient(to bottom, black 50%, transparent 100%);
  z-index: -1;
  border-radius: 10px;
}

.image-container h1 {
  position: absolute;
  bottom: 0px;
  left: 50%;
  transform: translateX(-50%);
  font-family: 'Oswald', sans-serif;
  font-weight: 600; 
  text-transform: uppercase; 
  letter-spacing: 2px;        
  z-index: 2;
  font-size: 42px;
  background: linear-gradient(to bottom, #ff6a00, #ee0979);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3); 
}

.text-container-1{
  display: flex;
  flex-direction: row-reverse;
  align-items: center;
}

.text-container-1 h1{
  width: 20%;
  font-size: 72px;
  padding-left: 25px;
  color: #ff8000;
  
}

.text-container-1 p{
  width: 80%;
  font-size: 20px;
  text-align: center;
  font-family: 'Cabin', sans-serif;
  color: #004080;
  font-weight: 700;
  padding-right: 10px;
  border-right: 4px solid yellow ;
}

.key-text-container{
  text-align: center;
  max-height: fit-content;
  background-color:  #e1e7ef;
  color: #2e3a59;
  font-weight: 900;
  font-size: 32px;
  padding: 10px;
  font-family: 'Lora', serif;
  max-width: 100%;
}

.founder-container{
  display: flex;
  justify-content: space-around;
}


.profile-image-container{
  max-width: 40%;
}

.profile-image-container img{
  width: 100%;
  border-radius: 50%;
}

.profile-image-container h1{
  text-align: center;
  font-size: 20px;
}

.profile-text-container{
  width: 60%;
  display: flex;
  flex-direction: column;
  padding-left: 40px;
  border-left: #ffe031 5px solid;
  max-height: min-content;
}

.profile-text-container h1{
  font-size: 45px;
}

.profile-text-container p{
  font-size: 20px;
  color: #2F4F4F;
  font-weight: 500;
  font-family: 'Quicksand', sans-serif;
}

.name{
  font-size: 54px;
  color: #1E3A8A;
  font-family: 'Quicksand', sans-serif;
  letter-spacing: 0px;
  font-weight: 600;
}

.vision-mission {
  display: flex;
  justify-content: space-around;
  flex-wrap: wrap;
  gap: 40px;
  padding: 40px;
}

.vision-container,
.mission-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 45%;
  position: relative;
}


.vision-container img,
.mission-container img {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translate(-50%, -20%);
  width: 120px; /* adjust as needed */
  height: 120px;
  border-radius: 50%;
  object-fit: cover;
  z-index: 3;
  border: 4px solid #1E3A8A;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}
.card-border {
  position: relative;
  width: 100%;
  margin-top: 60px;
}

.vision-text-container,
.mission-text-container {
  background-color: white;
  text-align: center;
  padding: 40px 20px 50px;
  clip-path: polygon(0 0, 100% 0, 100% 90%, 50% 100%, 0 90%);
  position: relative;
  z-index: 2;
}

.card-border::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  clip-path: polygon(0 0, 100% 0, 100% 90%, 50% 100%, 0 90%);
  background: #ffe031; /* Border color */
  z-index: 1;
  padding: 3px; /* Border thickness */
  box-sizing: content-box;
}

.vision-text-container h1,
.mission-text-container h1 {
  font-size: 36px;
  color: #1a1f36;
  margin-bottom: 10px;
  font-family: 'Poppins', sans-serif;
}

.vision-text-container p,
.mission-text-container p {
  font-size: 18px;
  color: #2F4F4F;
  font-weight: 600;
  line-height: 1.6;
}



/* -------------------- Mobile View (max-width: 767px) -------------------- */
@media only screen and (max-width: 600px) {

  body{
    margin-left: 15px;
    margin-right:15px ;
  }
  .image-container h1 {
    font-size: 22px;
    bottom: 8px;
  }

  .text-container-1 {
    flex-direction: column;
    text-align: center;
    gap: 16px;
  }

.text-container-1 {
  display: flex;
  justify-content: center; /* center horizontally */
  align-items: center;
  flex-direction: column;  /* stack vertically */
  text-align: center;
  padding: 20px 10px;
}

.text-container-1 h1 {
  position: relative;
  display: inline-block;
  font-size: 56px;
  font-family: 'Oswald', sans-serif;
  font-weight: 600;
  white-space: nowrap;       /* Keep it one line */
  padding-bottom: 10px;
  transform: translateX(-90%);
  margin: 0 auto;
  text-align: center;
}

.text-container-1 h1::after {
  content: "";
  position: absolute;
  bottom: 0;
  transform: translateX(-250%);
  width: 60%;                 /* Underline length */
  height: 4px;
  background-color: #ffe031;
  border-radius: 2px;
}



  .text-container-1 p {
    width: 100%;
    font-size: 14px;
    padding: 0 10px;
    border-right: none;
  }

  .key-text-container {
    margin-top: 10px;
    font-size: 14px;
    padding: 8px;
  }

  .founder-container {
    flex-direction: column;
    align-items: center;
    gap: 20px;
  }

  .profile-image-container {
    max-width: 75%;
  }

  .profile-text-container {
    width: 90%;
    padding-left: 0;
    border-left: none;
    border-top: 3px solid #ffe031;
    padding-top: 15px;
    text-align: center;
  }

  .profile-text-container h1 {
    font-size: 26px;
  }

  .profile-text-container p {
    font-size: 14px;
  }

  .name {
    font-size: 26px;
  }

  .vision-mission {
    flex-direction: column;
    gap: 50px;
    padding: 16px;
  }

  .vision-container,
  .mission-container {
    width: 100%;

  }

  .vision-container img,
  .mission-container img {
    width: 80px;
    height: 80px;
    transform: translate(-45px,10px);
  }

  .vision-text-container,
  .mission-text-container {
    padding: 24px 12px 32px;
  }

  .vision-text-container h1,
  .mission-text-container h1 {
    font-size: 24px;
  }

  .vision-text-container p,
  .mission-text-container p {
    font-size: 14px;
  }
}



/* -------------------- Tablet View (768px to 1023px) -------------------- */
@media only screen and (min-width: 601px) and (max-width: 1024px)  {
    .image-container h1 {
    font-size: 32px;
  }

  .text-container-1 h1 {
    font-size: 48px;
  }

  .text-container-1 p {
    font-size: 18px;
  }

  .key-text-container {
    font-size: 26px;
  }
  .profile-image-container img{
    margin-top: 20px;
  }
  .profile-image-container h1 {
    font-size: 18px;
  }

  .profile-text-container h1 {
    font-size: 32px;
  }

  .profile-text-container p {
    font-size: 14px;
  }

  .name {
    font-size: 32px;
  }

  .vision-text-container h1,
  .mission-text-container h1 {
    font-size: 18px;
  }

  .vision-text-container p,
  .mission-text-container p {
    font-size: 14px;
  }
}
