/* about section coding */

#about .container{
    margin-top: 100px;
}

.image-container {
    position: relative;
    display: inline-block;
    text-align: center;
    width:100%;
    height:100%;
  }

  .image-container img {
    display: block;
    width: 100%;
    max-height: 60vh;
    object-fit: cover;
    background-size: cover;
    border-radius: 16px;
    filter: grayscale(80%); 
  filter: brightness(0.5); 
    background-position: center;
}

  .overlay-text {
    position: absolute;
    top: 50%; /* Adjust this to position the text vertically */
    left: 50%; /* Adjust this to position the text horizontally */
    transform: translate(-50%, -50%);
    color: white;
    font-size: 2.6rem;
    font-weight: 600;
    background-color: rgba(0, 0, 0, 0.5); /* Optional: background for better contrast */
    padding: 10px 20px;
    border-radius: 16px;
  }

  .overlay-text button{
    padding:15px 30px;
    /* margin-top: 20px; */
    background-color: #2c5fcc91;
    border: none;
    border-radius: 8px;
  }

 .overlay-text button a{
    text-decoration: none;
    color:#fff;
    font-size: 1.2rem; 
 }

#about .container .info{
    background-image: linear-gradient(#0c6192b7, #0470e4b9),url("/media/about_us_bg.jpg");
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
    height: 400px;
    /* display: flex; */
    align-items: center;
    justify-content: center;
    text-align: center;
    border-radius: 16px;
    position: relative;
}


#about .container .image-container .overlay-text  p{
    color: #fff;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    margin: 0 auto;
    /* position: absolute; */
    padding: 10px;
    font-weight: 500;
    font-size: 1.2rem;
}

#about .container .image-container .overlay-text h2{
    color: #ffffff;
    /* text-align: center;
    display: flex;
    align-items: center; */
    justify-content: center;
    text-align: center;
    margin: 0 auto;
    /* position: absolute; */
    font-size: 2.6rem;
}

/* Responsive adjustments */
@/media (max-width: 1024px) {
  .overlay-text {
    font-size: 2rem;
    padding: 8px 16px;
  }

  .overlay-text button {
    padding: 12px 25px;
  }

  .overlay-text button a {
    font-size: 1rem;
  }

  #about .container .info {
    height: 350px;
  }

  #about .container .image-container .overlay-text h2 {
    font-size: 2.2rem;
  }

  #about .container .image-container .overlay-text p {
    font-size: 1rem;
  }
}

@/media (max-width: 768px) {
  .overlay-text {
    font-size: 1.6rem;
    padding: 8px 14px;
  }

  .overlay-text button {
    padding: 10px 20px;
  }

  .overlay-text button a {
    font-size: 0.95rem;
  }

  #about .container .info {
    height: 300px;
    padding: 10px;
  }

  #about .container .image-container .overlay-text h2 {
    font-size: 1.8rem;
  }

  #about .container .image-container .overlay-text p {
    font-size: 0.9rem;
  }
}

@/media (max-width: 480px) {
  .overlay-text {
    font-size: 1.2rem;
    padding: 6px 10px;
  }

  .overlay-text button {
    padding: 8px 16px;
    border-radius: 6px;
  }

  .overlay-text button a {
    font-size: 0.85rem;
  }

  #about .container .info {
    height: 250px;
    padding: 8px;
  }

  #about .container .image-container .overlay-text h2 {
    font-size: 1.5rem;
  }

  #about .container .image-container .overlay-text p {
    font-size: 0.8rem;
  }
}
