/* Main Container Styles - Keep desktop styles unchanged */
.infraCont {
  width: 100%;
  position: relative;
  overflow: hidden;
  background-color: #f8fafc;
  padding: 0;
  text-align: justify;
}

.custom {
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
  height: 600px;
}

.infraWrap {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  opacity: 0;
  transition: opacity 0.8s ease, transform 0.8s ease;
  transform: translateX(50px);
  text-align: justify;
}

.infraWrap.active {
  opacity: 1;
  transform: translateX(0);
  z-index: 2;
  text-align: justify;
}

.slideTing {
  width: 50%;
  padding-right: 4rem;
  display: flex;
  justify-content: center;
  align-items: center;
}

/* Card for Image */
/* Card for Image */
.sector-card {
  width: 400px;
  height: 400px;
  background: #fff;
  border-radius: 1rem;
  box-shadow: 0 8px 20px rgba(0,0,0,0.1);
  overflow: hidden; /* ensures no overflow if image is cropped */
  display: flex;
  justify-content: center;
  align-items: center;
}

.sector-image {
  width: 100%;
  height: 100%;
  object-fit: cover;  /* fill card completely */
}


/* Right side content */
.infraright {
  width: 50%;
  padding-left: 2rem;
  position: relative;
}

.infraInfo {
  max-width: 90%;
}

.infraInfo h2 {
  font-size: 2.5rem;
  font-weight: 700;
  color: #1e3a8a;
  margin-bottom: 1rem;
  line-height: 1.2;
}

.infraInfo h3 {
  font-size: 1.5rem;
  font-weight: 600;
  color: #334155;
  margin-bottom: 1.5rem;
  text-transform: uppercase;
}

.infraInfo p {
  font-size: 1.1rem;
  color: #475569;
  /* line-height: 1.8; */
  margin-bottom: 2.5rem;
  text-align: justify;
}

/* Slider Navigation Arrows */
.slider-nav {
  position: absolute;
  top: 50%;
  left: 0;
  width: 100%;
  display: flex;
  justify-content: space-between;
  transform: translateY(-150%);
  padding: 0 15px;
  z-index: 10;
}

.nav-arrow {
  background: none;
  color: #1e3a8a;
  border: none;
  font-size: 2.5rem;
  cursor: pointer;
  padding: 0;
  transition: color 0.3s ease, transform 0.2s ease;
}

.nav-arrow:hover {
  color: #d32f2f;
  transform: scale(1.1);
}

/* Indicators */
.indicators {
  display: flex;
  justify-content: center;
  margin-top: 1.5rem;
  gap: 0.5rem;
}

.indicator {
  width: 12px;
  height: 12px;
  background: #cbd5e1;
  border-radius: 50%;
  border: none;
  cursor: pointer;
  transition: background 0.3s;
}

.indicator.active {
  background: #1e3a8a;
}

/* Mobile View - Horizontal Slider */
@media (max-width: 768px) {
  .custom {
    height: auto;
    padding: 0;
    display: block;
    overflow: hidden;
  }

  .infraCont { padding: 2rem 0; }

  .infraWrap {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: auto;
    opacity: 0;
    transition: opacity 0.8s ease, transform 0.8s ease;
    transform: translateX(50px);
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    padding: 0 0.5rem;
    gap: 1rem;
  }
  .infraWrap.active {
    opacity: 1;
    transform: translateX(0);
    z-index: 2;
  }

  .slideTing,
  .infraright {
    width: 100%;
    padding: 0;
    margin: 0;
    text-align: -webkit-center;
  }

  .sector-card {
    width: 250px;
    height: 250px;
  }

  .infraInfo {
    margin: 0;
    padding: 0;
  }

  .infraInfo h2 { font-size: 1.8rem; }
  .infraInfo h3 { font-size: 1.2rem; }
  .infraInfo p  { font-size: 1rem; margin-bottom: 1.5rem; }
  
  .indicators { bottom: 1rem; }
}

/* Smaller Mobile Devices */
@media (max-width: 480px) {
  .custom {
    height: 650px;
  }

  .infraInfo h2 { font-size: 1.6rem; }
  .infraInfo h3 { font-size: 1.1rem; }
  .infraInfo p { font-size: 0.9rem; }

  .sector-card {
    width: 200px;
    height: 200px;
  }
}
