* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Poppins", sans-serif;
}

.about-section {
  background: #fff; /* Or your background image */
  overflow: hidden; /* Prevents horizontal scroll on small screens */
  background: url("../images/Rectangle\ 27.png");
  background-repeat: no-repeat;
  background-position: center;
  background-size: cover;
  padding: 0px 70px;
}

.about-container {
  max-width: 1320px;
  margin: 0 auto;
  /* padding: 0 20px; */
}

/* Title Styling */





.about-title {
  font-family: "EB Garamond";
  font-weight: 400;
  font-style: normal;
  font-size: 36px;
  letter-spacing: 1%;
  color: #252525;

  display: flex;
  flex-direction: column; /* stack line + text */
  align-items: flex-start;
  gap: 2px;

  margin-bottom: 35px;
  position: relative;
      margin-top: 27px;
}

/* small line above */
.about-title::before {
  content: "";
  width: 32px;          /* very small line */
  height: 4px;
  background: #e11b22;  /* change color if needed */
  border-radius: 2px;
}


/* Flex Wrapper */
.about-wrapper {
  display: flex;
  align-items: center; /* Aligns stats to the center of the image height */
  position: relative;
}

/* Left Side (Image) */
.about-left {
  flex: 0 0 85%; /* Image takes 85% of the width */
  z-index: 1;
}

.about-card {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  height: 450px;
}

.img-slide {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  opacity: 0;
  transition: opacity 1s ease-in-out;
}

.img-slide.active {
  opacity: 1;
}

/* Text Overlay */
.about-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to right,
    rgba(0, 0, 0, 0.85),
    rgba(0, 0, 0, 0.2),
    transparent
  );
  padding: 50px;
  color: #fff;
  display: flex;
  flex-direction: column;
  justify-content: center;
  max-width: 50%;
}

.about-overlay p {
  margin-bottom: 15px;
  line-height: 1.6;
}
.about-overlay ul {
  margin-bottom: 25px;
  padding-left: 20px;
}
.about-overlay li {
  margin-bottom: 8px;
}

.read-more {
  display: inline-block;
  color: #e11b22;
  text-decoration: none;
  font-weight: bold;
  border: 2px solid #e11b22;
  padding: 8px 20px;
  width: fit-content;
  transition: 0.3s;
}

.read-more:hover {
  background: #e11b22;
  color: #fff;
}

/* Right Side (The Overlapping Stats) */
.about-right {
  flex: 0 0 250px;
  margin-left: -120px; /* This creates the OVERLAP */
  display: flex;
  flex-direction: column;
  gap: 15px;
  z-index: 2; /* Ensures stats are ABOVE the image */
}

.stat-card {
  background: linear-gradient(to right, #ffffff 20%, #ffffff6e 80%);
  padding: 15px;
  border-left: 5px solid #e11b22;
  border-radius: 10px;
  /* box-shadow: 10px 10px 30px rgba(0,0,0,0.1); */
  transition: transform 0.3s;
}

.stat-card:hover {
  transform: translateX(10px);
}
.stat-card h3 {
  color: #e11b22;
  font-size: 28px;
  font-family: "EB Garamond";
}
.stat-card span {
  color: #333;
  font-size: 14px;
}

/* ================= RESPONSIVE ================= */

/* Tablet: Reduce overlap or stack */
@media (max-width: 1024px) {
  .about-left {
    flex: 0 0 100%;
  }
  .about-right {
    margin-left: -80px; /* Smaller overlap */
    flex: 0 0 220px;
  }
  .about-overlay {
    max-width: 70%;
  }
}

/* Mobile: Stack everything vertically */
@media (max-width: 768px) {
  .about-section {
    padding: 30px 0px;
  }
  .about-title {
     padding-left: 21px;

  }
  .about-title {
    font-size: 30px;
  }

 
  .about-wrapper {
    flex-direction: column;
    align-items: flex-start;
  }

  .about-left {
    width: 100%;
  }

  .about-right {
    margin-left: 0; /* REMOVE overlap for mobile */
    margin-top: 30px; /* Space between image and stats */
    flex-direction: row;
    flex-wrap: wrap;
    width: 100%;
    justify-content: space-between;
  }

  .stat-card {
    flex: 1 1 calc(50% - 10px);
  }

  .about-overlay {
    max-width: 100%;
    padding: 25px;
    background: rgba(0, 0, 0, 0.7);
  }
}

@media (max-width: 480px) {
  .stat-card {
    flex: 1 1 100%;
  }
}
