.sec2 {
  background: url("../images/sec-2/overview-bg.jpg") no-repeat center
    center/cover;
  position: relative;
  padding: 40px 0;
  min-height: 600px;
}

/* Main container for overlapping layout */
.sec2-con {
  position: relative;
  z-index: 2;
  width: 100%;
  height: 100%;
  display: flex;
  flex-wrap: wrap;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  padding: 40px 20px;
  max-width: 1400px;
  margin: 0 auto;
}

/* Left wrapper - Text content */
.sec2-left-wrapper {
  position: relative;
  z-index: 3;
  width: 50%;
  flex-shrink: 0;
  left: 100px;
  z-index: -2;
}

.sec2-content-box {
  background: #000;
  color: #fff;
  padding: 35px;
  max-width: 650px;
  border-radius: 8px;
}

.sec2-subtitle {
  font-style: italic;
  font-family: var(--font3);
  font-size: 2rem;
}

.sec2-title {
  font-size: 48px;
  font-weight: 600;
  line-height: 1.3;
}

.sec2-title .green {
  color: #2ecc71;
}

.sec2-title .line {
  display: inline-block;
  width: 50px;
  height: 2px;
  background: #fff;
  margin-right: 10px;
  vertical-align: middle;
}

.sec2-text {
  margin-top: 20px;
  line-height: 29px;
  color: #ccc;
  width: 90%;
  font-size: 16px;
  padding-right: 50px;
}

/* Right wrapper - Image with overlap effect */
.sec2-right-wrapper {
  top: 50%;
  width: 50%;
  height: 100%;
  z-index: 2;
}

.sec2-image-wrapper {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding-right: 20px;
  right: 25px;
}

.sec2-image-wrapper img {
  width: 90%;
  max-width: 650px;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

/* SVG at bottom right */
.sec2-svg-con {
  display: flex;
  justify-content: flex-end;
  width: 100%;
  height: 200px;
}

.sec2-svg-wrapper img {
  opacity: 0.8;
  fill: white;
  bottom: 0;
}

/* Breakpoint 1: < 1200px */
@media (max-width: 1199px) {
  .sec2 {
    min-height: 550px;
    padding: 30px 0;
  }

  .sec2-con {
    padding: 30px 15px;
  }

  .sec2-left-wrapper {
    width: 45%;
  }

  .sec2-content-box {
    padding: 50px;
    max-width: 550px;
  }

  .sec2-title {
    font-size: 40px;
  }

  .sec2-text {
    width: 100%;
    font-size: 13px;
  }

  .sec2-right-wrapper {
    width: 50%;
  }

  .sec2-image-wrapper img {
    width: 90%;
    max-width: 500px;
  }
}

/* Breakpoint 2: < 900px */
@media (max-width: 899px) {
  .sec2 {
    min-height: 500px;
    padding: 15px 0;
  }

  .sec2-con {
    padding: 30px 15px;
  }

  .sec2-left-wrapper {
    width: 40%;
  }

  .sec2-content-box {
    padding: 40px;
    max-width: 500px;
  }

  .sec2-title {
    font-size: 40px;
  }

  .sec2-text {
    width: 100%;
    font-size: 13px;
  }

  .sec2-right-wrapper {
    width: 50%;
  }

  .sec2-image-wrapper img {
    width: 90%;
    max-width: 500px;
  }
}

/* Breakpoint 3: < 520px */
@media (max-width: 519px) {
  .sec2 {
    min-height: 550px;
    padding: 15px 0;
  }

  .sec2-con {
    padding: 20px 15px;
    flex-direction: column;
  }

  .sec2-left-wrapper {
    width: 100%;
    left: 0;
  }

  .sec2-content-box {
    padding: 25px;
    max-width: 100%;
    background: rgba(0, 0, 0, 0.85);
  }

  .sec2-subtitle {
    font-size: 12px;
    margin-bottom: 8px;
  }

  .sec2-title {
    font-size: 24px;
    line-height: 1.2;
  }

  .sec2-title br {
    display: none;
  }

  .sec2-text {
    width: 100%;
    font-size: 12px;
    line-height: 1.6;
    margin-top: 12px;
  }

  .sec2-right-wrapper {
    position: relative;
    width: 100%;
    transform: none;
  }

  .sec2-image-wrapper {
    width: 100%;
    right: 0;
    padding-right: 0;
  }
  .sec2-image-wrapper img {
    width: 100%;
  }
}

/* Breakpoint 4: < 375px */
@media (max-width: 374px) {
  .sec2 {
    min-height: 600px;
    padding: 10px 0;
  }

  .sec2-con {
    padding: 15px 10px;
  }

  .sec2-left-wrapper {
    width: 100%;
    margin-bottom: 10px;
  }

  .sec2-content-box {
    padding: 20px;
    max-width: 100%;
    background: rgba(0, 0, 0, 0.9);
  }

  .sec2-subtitle {
    font-size: 11px;
    margin-bottom: 6px;
  }

  .sec2-title {
    font-size: 20px;
    line-height: 1.1;
  }

  .sec2-text {
    width: 100%;
    font-size: 11px;
    line-height: 1.5;
    margin-top: 10px;
  }

  .sec2-right-wrapper {
    position: absolute;
    bottom: 0;
    right: 0;
    top: auto;
    width: 60%;
    height: 220px;
  }

  .sec2-image-wrapper {
    padding-right: 8px;
  }

  .sec2-image-wrapper img {
    width: 100%;
    max-width: 150px;
  }
}
