/* About Section
.about-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  justify-items: end;
  align-items: center;
}



.about-text p {
  margin-bottom: 1rem;
  font-size: large;
}

.about-sec {
  padding: 100px;
}


.stats-container {
  margin-top: 50px;
}

.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.stat-item {
  text-align: center;
  padding: 20px;
  background: white;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow);
}

.stat-number {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 5px;
}

.stat-text {
  font-size: 0.9rem;
  color: #587799;
}

@media (max-width: 768px) {
  .about-content {
    grid-template-columns: 1fr;
  }
  .stats {
    grid-template-columns: 1fr;
  }
}



.about-img {
  position: relative;
  display: inline-block;
  width: 100%;
  max-width: 400px; 
  overflow: hidden;
  border-radius: 10px;

.about-img img {
  width: 100%;
  height: auto;
  display: block;
}

.image-link {
  display: block;
  position: relative;
  text-decoration: none;
  color: inherit;
}

.overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5); 
  color: #fff;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 20px;
  font-weight: bold;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.about-img:hover .overlay {
  opacity: 1;
}
} */

/* responsive.css of about page updated*/

/* About Section */
.about-content {
  display: flex;
  margin-top: 30px;
  /* grid-template-columns: 1fr 1fr; */
  gap: 20px;
  justify-items: end;
  align-items: center;
}
@media (max-width: 968px) {
  .about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }
}

.about-text p {
  margin-bottom: 1rem;
  font-size: 18px;
}

.about-sec {
  padding: 30px 50px; /* reduce padding on smaller screens */
}

.about-img {
  width: 100%;
  max-width: 380px; /* optional */
  aspect-ratio: 3 / 4; /* portrait ratio */
  overflow: hidden;
  border-radius: 12px;
  position: relative;
}

.about-img img {
  width: 100%;
  height: 100%;
  object-fit: cover; /* keeps it portrait + zoomed nicely */
  transition: transform 0.4s ease;
}

.about-img:hover img {
  transform: scale(1.05);
}

.about-img .overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  opacity: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  border-radius: 12px;
  transition: 0.3s ease;
}

.about-img:hover .overlay {
  opacity: 1;
}

/* Stats */
.stats-container {
  margin-top: 50px;
}

.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.stat-item {
  text-align: center;
  padding: 20px;
  background: white;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow);
}

.stat-number {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 5px;
}

.stat-text {
  font-size: 0.9rem;
  color: #587799;
}

/* About hover effect */
.about-img {
  margin-left: 20px;
  position: relative;
  display: inline-block;
  width: 130%;
  max-width: 400px; /* optional, control size */
  overflow: hidden;
  border-radius: 10px;
}

.about-img img {
  width: 130%;
  height: auto;
  display: block;
}

.image-link {
  display: block;
  position: relative;
  text-decoration: none;
  color: inherit;
}

.overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5); /* dark overlay */
  color: #fff;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 20px;
  font-weight: bold;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.about-img:hover .overlay {
  opacity: 1;
}

/* ------------------------------
   Responsive Queries
------------------------------ */
@media (max-width: 992px) {
  .about-content {
    grid-template-columns: 1fr; /* stack image and text vertically */
    justify-items: center;
    text-align: center;
  }

  .about-sec {
    padding: 70px 30px;
  }
}

@media (max-width: 768px) {
  .stats {
    grid-template-columns: 1fr; /* stack stats vertically */
  }

  .about-sec {
    padding: 50px 20px;
  }
}

@media (max-width: 480px) {
  .about-text p {
    font-size: 20px;
  }

  .overlay {
    font-size: 16px;
  }

  .about-img {
    max-width: 100%;
  }
}
