.communicate2-new {
  padding: 30px;
  background-color: #fff;
  border-radius: 12px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.06);
  margin: 30px 0;
}

.power-section-title-new {
  font-size: 3.6rem;
  font-weight: bold;
  color: #2b5797;
  margin-bottom: 25px;
}

.xgs-info-section-new {
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.xgs-info-content-new p {
  font-size: 1.8rem;
  color: #333;
  line-height: 1.7;
  margin-bottom: 15px;
}

.xgs-image-container-new {
  width: 100%;
  text-align: center;
}

.xgs-slideshow-new {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 15px;
}

.xgs-illustration-new {
  width: 100%;
  max-width: 500px;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* Tablet and above */
@media (min-width: 768px) {
  .xgs-info-section-new {
      flex-direction: row;
      justify-content: space-between;
      align-items: flex-start;
  }

  .xgs-info-content-new {
      flex: 1;
      padding-right: 30px;
  }

  .xgs-image-container-new {
      flex: 1;
      padding-left: 30px;
  }
}

.xgs-image-row-new {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: center;
  margin-top: 30px;
}

.xgs-inline-image-new {
  width: 35%; /* 🔽 Reduced from 48% to 35% */
  max-width: 300px; /* Optional upper limit */
  height: auto;
  border-radius: 10px;
  object-fit: cover;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* On small devices, stack the images full width */
@media (max-width: 767px) {
  .xgs-inline-image-new {
      width: 100%;
      max-width: 100%;
  }
}

/* Reset default body and html padding/margin */
html, body {
  margin: 0;
  padding: 0;
  width: 100%;
  box-sizing: border-box;
  background-color: #ffffff;
  overflow-x: hidden; /* Prevent sideways scroll */
}

/* Apply box-sizing border-box globally */
*, *::before, *::after {
  box-sizing: border-box;
}
/* background */


.flyer{
    padding: 20px;
    font-size:2rem;
  }

  .flyer :hover{
    color: red;
  }

  
.back-audit {
  position: relative;
  width: 100%;
  height: auto;
  top: -180px;
  margin-bottom: -180px;
  aspect-ratio: 16 / 9; /* Maintain landscape shape */
  background-image: url(../images/banner/energy-audit.avif); /* Use your image path */
  background-size: contain; /* Show full image without cropping */
  background-repeat: no-repeat;
  background-position: center center;
  background-color: #042a4a; /* Fallback background */
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

/* Optional overlay for text readability */
.back-audit::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  background: rgba(0, 0, 0, 0); /* Adjust transparency if needed */
}

/* Headline text styling */
.back-audit h1 {
  position: relative;
  z-index: 2;
  color: white;
  margin: 0;
  font-size: 4vw; /* Responsive font size */
  font-weight: bold;
  text-align: center;
  text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.5);
}

/* Tablet screens */
@media (max-width: 1024px) {
  .back-audit {
      aspect-ratio: 16 / 10;
      top: -160px; /* Adjust the top spacing for smaller screens */
      margin-bottom: -160px; /* Adjust the bottom margin for smaller screens */
  }

  .back-audit h1 {
      font-size: 5vw;
  }
}

/* Small tablets and large phones */
@media (max-width: 768px) {
  .back-audit {
      aspect-ratio: 16 / 10;
      top: -80px; /* Adjust the top spacing for smaller screens */
      margin-bottom: -80px; /* Adjust the bottom margin for smaller screens */
  }

  .back-audit h1 {
      font-size: 6vw;
  }
}
/* For Small Screens like Surface Duo (540px x 720px) */
@media (max-width: 540px) {
  .back-audit {
      aspect-ratio: 16 / 12; /* Maintain appropriate aspect ratio for small screens */
      top: -100px; /* Adjust top spacing for very small screens */
      margin-bottom: -100px; /* Adjust bottom margin for small screens */
      background-size: contain; /* Make sure the image is fully visible */
  }

  .back-audit h1 {
      font-size: 8vw; /* Make the text responsive for small screens */
  }
}

/* Small phones */
@media (max-width: 480px) {
  .back-audit {
      aspect-ratio: 16 / 12;
      background-size: contain;
      top: -50px; /* Adjust the top spacing for smaller screens */
      margin-bottom: -50px; /* Adjust the bottom margin for smaller screens */
  }

  .back-audit h1 {
      font-size: 7vw;
  }
}

/* Small phones */
@media (max-width: 300px) {
  .back-audit {
      aspect-ratio: 16 / 12;
      background-size: contain;
      top: -10px; /* Adjust the top spacing for smaller screens */
      margin-bottom: -10px; /* Adjust the bottom margin for smaller screens */
  }

  .back-audit h1 {
      font-size: 7vw;
  }
}