* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Poppins", sans-serif;
}
p {
  margin-bottom: 0px;
}

.about-section {
  padding: 70px;
  /* background: #ffffff; */
  background: url("../images/Rectangle 30.png");
  background-repeat: no-repeat;
  background-position: center;
  background-size: cover;
}

.about-container{
  max-width: 1320px;
   margin: 0 auto;
}

/* ================= WRAPPER ================= */
.about-wrapper {
  /* max-width: 1400px; */
  margin: auto;
  /* display: grid;
      grid-template-columns: 2.2fr 1fr;
      gap: 40px;
      align-items: flex-start; */
  position: relative;
}

/* ================= LEFT ================= */
.about-left {
  max-width: 80vw;
   position: relative;
}
/* ================= DESKTOP / BIG DEVICES ================= */
.about-wrapper {
  position: relative;
  
}

.about-right {
  position: absolute;
  top: 295%;
  right: 110px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  z-index: 5;
}

.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;
}

/* small line above */
.about-title::before {
  content: "";
  width: 32px;          /* very small line */
  height: 4px;
  background: #e11b22;  /* change color if needed */
  border-radius: 2px;
}

/* Shine layer */
/* .about-title::after {
  content: "";
  position: absolute;
  top: 0;
  left: -120%;
  width: 60%;
  height: 100%;
  background: linear-gradient(
    120deg,
    transparent,
    rgba(234, 146, 146, 0.8),
    transparent
  );
  transform: skewX(-20deg);
  animation: headingShine 3.5s ease-in-out infinite;
}

/* Shine animation */
/* @keyframes headingShine {
  0% {
    left: -120%;
  }
  40% {
    left: 120%;
  }
  100% {
    left: 120%;
  }
} */ */

.about-title .line {
  width: 30px;
  height: 3px;
  background: #e11b22;
}

.about-card {
  position: relative;
  border-radius: 18px;
  overflow: hidden;
}

/* ===== LEFT CARD HOVER RED OVERLAY ===== */
.about-card::after {
  content: "";
  position: absolute;
  inset: 0;
  /* background: linear-gradient(
    120deg,
    rgba(225, 27, 34, 0.85),
    rgba(225, 27, 34, 0.35),
    transparent
  ); */
  opacity: 0;
  transition: opacity 0.5s ease;
  z-index: 1;
}

.about-card:hover::after {
  opacity: 1;
}

/* keep text above overlay */
.about-overlay {
  position: absolute;
  z-index: 2;
}

.stat-card {
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.stat-card:hover {
  transform: translateY(-6px);
}

.about-card img {
  width: 100%;
  height: 420px;
  object-fit: cover;
  display: block;
}

/* ================= OVERLAY ================= */
.about-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to right,
    rgba(0, 0, 0, 0.85),
    rgba(0, 0, 0, 0.35),
    transparent
  );
  padding: 30px;
  color: #ffffff;
  max-width: 48%;
  text-align: justify;
}

.about-overlay p {
  line-height: 1.4;
  margin-bottom: 16px;

  font-family: Outfit;
  font-weight: 400;
  font-style: Regular;
  font-size: 16px;

  letter-spacing: 1%;
  text-align: justify;
}

.about-overlay ul {
  list-style: lower-alpha;
  padding-left: 18px;
  margin-bottom: 20px;
}

.about-overlay li {
  font-family: Outfit;
  font-weight: 400;
  font-style: Regular;
  font-size: 16px;
  margin-bottom: 6px;
}

.read-more {
  padding: 10px 20px;
  background: transparent;
  border: 2px solid #e11b22;
  color: #e11b22;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
}

/* ================= RIGHT ================= */
.about-right {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.stat-card {
background: linear-gradient(
  to right,
  rgba(255, 255, 255, 0.95) 0%,
  rgba(255, 255, 255, 0.701) 30%,
  rgba(255, 255, 255, 0.6) 70%,
  rgba(255, 255, 255, 0.0) 100%
);


  border-radius: 12px;
  padding: 15px 15px;

  /* box-shadow: 0 8px 20px rgba(237, 28, 36, 0.35); */
  border-left: 4px solid  #ED1C24;

}

.stat-card h3 {
  color: #e11b22;

  font-family: EB Garamond;
  font-weight: 400;
  font-style: Regular;
  font-size: 30px;
}

.stat-card span {
  font-family: EB Garamond;
  font-weight: 400;
  font-style: Regular;
  font-size: 20px;

  letter-spacing: 1%;

  color: #252525;
  margin-top: 4px;
}

/* ================= TABLET ================= */
@media (max-width: 992px) {
  .about-wrapper {
    display: flex;
    flex-direction: column;
    gap: 30px;
  }

  .about-left,
  .about-right {
    width: 100%;
  }

  .about-overlay {
    max-width: 100%;
    background: rgba(0, 0, 0, 0.75);
  }

  .about-card img {
    height: 360px;
  }
    .stat-card {
background: linear-gradient(
  to right,
  rgba(255, 255, 255, 0.95) 0%,
  rgba(255, 255, 255, 0.701) 30%,
  rgba(255, 255, 255, 0.6) 70%,
  rgba(255, 255, 255, 0.0) 100%
);


  border-radius: 12px;
  padding: 15px 15px;

  box-shadow: 0 8px 20px rgba(237, 28, 36, 0.35);
  border-left: 4px solid  #ED1C24;

}
}

/* ================= MOBILE ================= */
@media (max-width: 576px) {
  .about-section {
    padding: 40px 20px;
  }

  .about-title {
    font-size: 26px;
  }

  .about-overlay {
    padding: 20px;
  }

  .about-card img {
    height: 300px;
  }

  .stat-card h3 {
    font-size: 24px;
  }

  .stat-card p {
    font-size: 13px;
  }


}

/* ===== LEFT TEXT CAROUSEL ===== */
.about-text-carousel {
  position: relative;
  min-height: 210px;
}

/* Slides */
.about-text-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.about-text-slide.active {
  opacity: 1;
  transform: translateY(0);
  position: relative;
}

/* ===== PREMIUM RED-BLACK TRANSITION ===== */
.about-text-carousel::after {
  content: "";
  position: absolute;
  inset: 0;
  /* background: linear-gradient(
    120deg,
    rgba(0, 0, 0, 0.75),
    rgba(225, 27, 34, 0.85),
    rgba(0, 0, 0, 0.65)
  ); */
  opacity: 0;
  pointer-events: none;
}

.about-text-carousel.transition::after {
  animation: softOverlay 0.7s ease;
}

@keyframes softOverlay {
  0% {
    opacity: 0;
  }
  45% {
    opacity: 1;
  }
  100% {
    opacity: 0;
  }
}

/* ===== IMAGE CAROUSEL ===== */
.about-image-carousel {
  position: relative;
  width: 100%;
  height: 420px;
  overflow: hidden;
}

.img-slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transform: scale(1.05);
  transition: opacity 0.8s ease, transform 1.2s ease;
}

.img-slide.active {
  opacity: 1;
  transform: scale(1);
}

/* ===== IMAGE TRANSITION OVERLAY ===== */
.about-card::before {
  content: "";
  position: absolute;
  inset: 0;
  /* background: linear-gradient(
    120deg,
    rgba(0, 0, 0, 0.8),
    rgba(225, 27, 34, 0.85),
    rgba(0, 0, 0, 0.7)
  ); */
  opacity: 0;
  z-index: 1;
  pointer-events: none;
}

.about-card.animate::before {
  animation: imageOverlay 0.9s ease;
}

@keyframes imageOverlay {
  0% {
    opacity: 0;
  }
  40% {
    opacity: 1;
  }
  100% {
    opacity: 0;
  }
}

/* Ensure text stays above */
.about-overlay {
  z-index: 2;
}

.img-slide {
  transition: opacity 1.2s ease-in-out, transform 2.9s ease-in-out;
}
.about-text-slide {
  transition: opacity 0.9s ease-in-out, transform 0.9s ease-in-out;
}

.about-card.animate::before {
  animation: imageOverlay 1.6s ease-in-out;
}

@keyframes imageOverlay {
  0% {
    opacity: 0;
  }
  35% {
    opacity: 0.55;
  }
  65% {
    opacity: 0.55;
  }
  100% {
    opacity: 0;
  }
}

/* ================= RESPONSIVE PATCH (NO CONTENT CHANGE) ================= */

/* Large laptops / small desktops */
/* @media (max-width: 1700px) {
  .about-left {
    max-width: 90%;
  }
}
@media (max-width: 1600px) {
  .about-left {
    max-width: 1280px;
  }
}
@media (max-width: 1500px) {
  .about-left {
    max-width: 1250px;
  }
}


@media (max-width: 1400px) {
  .about-left {
    max-width: 1100px;
  }
}
@media (max-width: 1300px) {
  .about-left {
    max-width: 1000px;
  }
} */
@media (max-width: 1200px) {
  .about-right {
    right: 40px;
    top: 160px;
  }

  .about-overlay {
    max-width: 55%;
  }
}

/* Tablets */
@media (max-width: 992px) {
  .about-wrapper {
    position: static;
  }

  .about-right {
    position: static;
    flex-direction: row;
    justify-content: space-between;
    flex-wrap: wrap;
    margin-top: 25px;
  }

  .stat-card {
    flex: 1 1 calc(50% - 15px);
  }

  .about-overlay {
    max-width: 100%;
  }

  .about-card img,
  .about-image-carousel {
    height: 360px;
  }
}

/* Small tablets / large mobiles */
@media (max-width: 768px) {
  .about-left {
    max-width: 100vw;
  }
  .about-section {
    padding: 50px 30px;
  }

  .about-title {
    font-size: 30px;
  }

  .about-overlay p,
  .about-overlay li {
    font-size: 15px;
  }

  .about-text-carousel {
    min-height: 240px;
  }

  .about-card img,
  .about-image-carousel {
    height: 320px;
  }

  .about-right {
    gap: 15px;
  }

  .stat-card h3 {
    font-size: 26px;
  }

  .stat-card span {
    font-size: 18px;
  }
}

/* Mobile devices */
@media (max-width: 576px) {
  .about-section {
    padding: 40px 20px;
  }

  .about-title {
    font-size: 26px;
  }

  .about-title .line {
    width: 22px;
  }

  .about-overlay {
    padding: 18px;
  }

  .about-overlay p,
  .about-overlay li {
    font-size: 14px;
  }

  .about-text-carousel {
    min-height: 280px;
  }

  .about-card img,
  .about-image-carousel {
    height: 379px;
  }

  .about-right {
    flex-direction: column;
  }

  .stat-card {
    padding: 14px;
  }

  .stat-card h3 {
    font-size: 24px;
  }

  .stat-card span {
    font-size: 16px;
  }
}

/* Very small devices */
@media (max-width: 420px) {
  .about-title {
    font-size: 24px;
    width: 250px;
  }

  .about-overlay p,
  .about-overlay li {
    font-size: 13px;
  }

  .about-text-carousel {
    min-height: 300px;
  }

  .about-card img,
  .about-image-carousel {
    height: 400px;
  }
}
