/* Main Background - FIXED */
.main-bg {
  background: url("../../../../images/Union.svg") no-repeat right center;
  background-size: contain;
  background-attachment: scroll;
  min-height: 100vh;
  flex: 1;
}

/* About Page Specific Styles */
.about-container {
  background-color: white;
  padding: 2rem 0;
  animation: fadeInUp 0.8s ease-out;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.about-container .container-fluid {
  margin-top: 100px;
  padding-bottom: 2rem;
  max-width: 1300px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

/* Breadcrumb Styles */
.breadcrumb {
  background-color: transparent;
  padding: 0;
  margin-bottom: 1rem;
  font-size: 1rem;
  color: #949494;
  font-weight: 400;
}

.breadcrumb-item a:hover {
  color: #2d2e83;
  text-decoration: underline;
}

.breadcrumb-item.active {
  color: #2d2e83;
  font-weight: 500;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.breadcrumb-item + .breadcrumb-item::before {
  content: "/";
  color: #949494;
  margin: 0 0.5rem;
}

/* Page Title */
.page-title {
  font-size: 40px;
  font-weight: bold;
  margin-bottom: 3rem;
  padding: 2px;
  line-height: 1.2;
  background: linear-gradient(0deg, #2d2e83, #4544e7, #2d2e83);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  color: transparent;
}

/* Content Paragraphs */
.content-paragraph {
  font-size: 1rem;
  line-height: 1.6;
  font-weight: 500;
  color: #2d2e83;
  margin-bottom: 2rem;
  text-align: justify;
  max-width: 100%;
}

.content-paragraph:last-child {
  margin-bottom: 0;
}

/* Section Layout - 40/60 Split with Vertical Centering */
.solution-section {
  flex: 1;
  display: flex;
  align-items: center;
  min-height: 500px;
}

/* Text Content - 40% (col-lg-5) */
.solution-text-content {
  padding-right: 2rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  height: 100%;
}

/* Image Container - 60% (col-lg-7) */
.solution-image-container {
  display: flex;
  justify-content: center;
  align-items: center;
  padding-left: 1rem;
  height: 100%;
  position: relative;
}

/* Images Container - CLOSER POSITIONING */
.stacked-images-container {
  width: 100%;
  height: 450px;
  position: relative;
}

.upper-image-wrapper {
  width: 280px;
  height: 350px;
  position: absolute;
  top: 0;
  right: 40px; /* Moved closer to center */
  z-index: 2;
  transform: rotate(0deg);
  opacity: 1;
}

.lower-image-wrapper {
  width: 280px;
  height: 350px;
  position: absolute;
  top: 60px; /* Reduced gap - closer vertically */
  left: 40px; /* Moved closer to center */
  z-index: 1;
  transform: rotate(0deg);
  opacity: 1;
}

.solution-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 16px;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15), 0 8px 20px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  opacity: 1;
  transform: rotate(0deg);
}

.upper-image {
  border-radius: 16px;
}

.lower-image {
  border-radius: 16px;
}

.solution-image:hover {
  transform: translateY(-5px) rotate(0deg);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.2), 0 10px 25px rgba(0, 0, 0, 0.15);
}

.upper-image-wrapper:hover {
  z-index: 3;
}

.lower-image-wrapper:hover {
  z-index: 3;
}

/* Animation */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Large Desktop - 1400px+ */
@media (min-width: 1400px) {
  .about-container .container-fluid {
    max-width: 1300px;
  }

  .stacked-images-container {
    height: 500px;
  }

  .solution-section {
    min-height: 550px;
  }

  .upper-image-wrapper {
    width: 300px;
    height: 380px;
    top: 0;
    right: 50px; /* Closer positioning */
  }

  .lower-image-wrapper {
    width: 300px;
    height: 380px;
    top: 80px; /* Closer vertically */
    left: 50px; /* Closer positioning */
  }
}

/* Desktop - 1200px to 1399px */
@media (min-width: 1200px) and (max-width: 1399px) {
  .about-container .container-fluid {
    max-width: 1200px;
  }

  .stacked-images-container {
    height: 450px;
  }

  .solution-section {
    min-height: 500px;
  }

  .upper-image-wrapper {
    width: 270px;
    height: 340px;
    top: 0;
    right: 40px; /* Closer positioning */
  }

  .lower-image-wrapper {
    width: 270px;
    height: 340px;
    top: 60px; /* Closer vertically */
    left: 40px; /* Closer positioning */
  }
}

/* Medium Desktop - 992px to 1199px */
@media (min-width: 992px) and (max-width: 1199px) {
  .about-container .container-fluid {
    max-width: 100%;
    padding: 0 2rem;
  }

  .stacked-images-container {
    height: 400px;
  }

  .solution-section {
    min-height: 450px;
  }

  .upper-image-wrapper {
    width: 250px;
    height: 320px;
    top: 0;
    right: 30px; /* Closer positioning */
  }

  .lower-image-wrapper {
    width: 250px;
    height: 320px;
    top: 50px; /* Closer vertically */
    left: 30px; /* Closer positioning */
  }
}

/* Tablet - 768px to 991px */
@media (min-width: 768px) and (max-width: 991px) {
  .about-container {
    padding: 1rem 0;
  }

  .about-container .container-fluid {
    padding-bottom: 1rem;
    max-width: 100%;
    padding: 0 1rem;
  }

  .solution-section {
    flex-direction: column;
    align-items: flex-start;
    min-height: auto;
  }

  .solution-text-content {
    padding-right: 15px;
    width: 100%;
    margin-bottom: 3rem;
  }

  .solution-image-container {
    padding-left: 15px;
    width: 100%;
    margin-bottom: 1rem;
  }

  .page-title {
    text-align: center;
    font-size: 2.5rem;
  }

  .content-paragraph {
    text-align: left;
  }

  .stacked-images-container {
    height: 280px;
  }

  .upper-image-wrapper {
    width: 200px;
    height: 260px;
    top: 0;
    right: 60px; /* Closer positioning */
  }

  .lower-image-wrapper {
    width: 200px;
    height: 260px;
    top: 50px; /* Closer vertically */
    left: 60px; /* Closer positioning */
  }
}

/* Large Mobile - 576px to 767px */
@media (min-width: 576px) and (max-width: 767px) {
  .about-container {
    padding: 1rem 0;
  }

  .about-container .container-fluid {
    padding-bottom: 1rem;
    max-width: 100%;
    padding: 0 1rem;
  }

  .solution-section {
    flex-direction: column;
    align-items: flex-start;
    min-height: auto;
  }

  .solution-text-content {
    padding-right: 15px;
    width: 100%;
    margin-bottom: 1.5rem;
  }

  .solution-image-container {
    padding-left: 15px;
    width: 100%;
    margin-bottom: 1rem;
  }

  .page-title {
    text-align: center;
    font-size: 2rem;
  }

  .content-paragraph {
    text-align: left;
    font-size: 0.9rem;
  }

  .stacked-images-container {
    height: 260px;
  }

  .upper-image-wrapper {
    width: 170px;
    height: 220px;
    top: 0;
    right: 50px; /* Closer positioning */
  }

  .lower-image-wrapper {
    width: 170px;
    height: 220px;
    top: 60px; /* Closer vertically */
    left: 50px; /* Closer positioning */
  }
}

/* Medium Mobile - 480px to 575px */
@media (min-width: 480px) and (max-width: 575px) {
  .about-container {
    padding: 1rem 0;
  }

  .about-container .container-fluid {
    padding-bottom: 1rem;
    max-width: 100%;
    padding: 0 1rem;
  }

  .solution-section {
    flex-direction: column;
    align-items: flex-start;
    min-height: auto;
  }

  .solution-text-content {
    padding-right: 15px;
    width: 100%;
    margin-bottom: 1.5rem;
  }

  .solution-image-container {
    padding-left: 15px;
    width: 100%;
    margin-bottom: 1rem;
  }

  .page-title {
    text-align: center;
    font-size: 1.8rem;
  }

  .content-paragraph {
    text-align: left;
    font-size: 0.85rem;
    margin-bottom: 1.5rem;
  }

  .stacked-images-container {
    height: 240px;
  }

  .upper-image-wrapper {
    width: 150px;
    height: 190px;
    top: 0;
    right: 40px; /* Closer positioning */
  }

  .lower-image-wrapper {
    width: 150px;
    height: 190px;
    top: 70px; /* Closer vertically */
    left: 40px; /* Closer positioning */
  }
}

/* Small Mobile - 400px to 479px */
@media (min-width: 400px) and (max-width: 479px) {
  .about-container {
    padding: 1rem 0;
  }

  .about-container .container-fluid {
    padding-bottom: 1rem;
    max-width: 100%;
    padding: 0 1rem;
  }

  .solution-section {
    flex-direction: column;
    align-items: flex-start;
    min-height: auto;
  }

  .solution-text-content {
    padding-right: 10px;
    width: 100%;
    margin-bottom: 1.5rem;
  }

  .solution-image-container {
    padding-left: 10px;
    width: 100%;
    margin-bottom: 1rem;
  }

  .page-title {
    text-align: center;
    font-size: 1.6rem;
  }

  .content-paragraph {
    text-align: left;
    font-size: 0.8rem;
    margin-bottom: 1.5rem;
  }

  .stacked-images-container {
    height: 220px;
  }

  .upper-image-wrapper {
    width: 130px;
    height: 170px;
    top: 0;
    right: 30px; /* Closer positioning */
  }

  .lower-image-wrapper {
    width: 130px;
    height: 170px;
    top: 70px; /* Closer vertically */
    left: 30px; /* Closer positioning */
  }
}

/* Extra Small Mobile - below 400px */
@media (max-width: 399px) {
  .about-container {
    padding: 1rem 0;
  }

  .about-container .container-fluid {
    padding-bottom: 1rem;
    max-width: 100%;
    padding: 0 1rem;
  }

  .solution-section {
    flex-direction: column;
    align-items: flex-start;
    min-height: auto;
  }

  .solution-text-content {
    padding-right: 10px;
    width: 100%;
    margin-bottom: 1.5rem;
  }

  .solution-image-container {
    padding-left: 10px;
    width: 100%;
    margin-bottom: 1rem;
  }

  .page-title {
    font-size: 1.4rem;
  }

  .content-paragraph {
    text-align: left;
    font-size: 0.75rem;
    margin-bottom: 1rem;
  }

  .stacked-images-container {
    height: 200px;
  }

  .upper-image-wrapper {
    width: 110px;
    height: 140px;
    top: 0;
    right: 50px; /* Closer positioning */
  }

  .lower-image-wrapper {
    width: 110px;
    height: 140px;
    top: 80px; /* Closer vertically */
    left: 60px; /* Closer positioning */
  }
}
