
/*start*/

/* Prevent horizontal overflow on all devices */
html, body {
  overflow-x: hidden;
  max-width: 100%;
}

* {
  box-sizing: border-box;
}

.vid-btn {
  padding: 10px 20px;
  cursor: pointer;
  background-color: #ffffff;
  color: #168a99;
  border: none;
  border-radius: 10px;
  font-size: 18px;
  display: inline-block;
  letter-spacing: 0.5px;
  font-weight: 500;
  transition: all 0.4s ease;
  text-decoration: none;
  width: -webkit-max-content;
}
.vid-btn:hover {
  background-color: #168a99;
  color: #ffffff;
  transform: translateY(-3px);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2);
}

/* Popup modal styles */
.modal {
  display: none; /* Hidden by default */
  position: fixed;
  z-index: 999;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(3px);
  justify-content: center;
  align-items: center;
}

.modal-content {
  background: #000;
  padding: 15px;
  border-radius: 10px;
  max-width: 800px;
  width: 90%;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
  animation: fadeIn 0.4s ease;
}

@keyframes fadeIn {
  from {opacity: 0; transform: scale(0.95);}
  to {opacity: 1; transform: scale(1);}
}

.close-btn {
  color: #fff;
  float: right;
  font-size: 28px;
  cursor: pointer;
  margin-bottom: 10px;
  transition: color 0.3s ease;
}
.close-btn:hover {
  color: #2694cc;
}
/*end vid btn*/
/* ESG SECTION 1 */
.esg-section-1-wrapper {
  display: grid;
  grid-template-columns: 1fr 1fr;
  background-color: #23586d;
  color: white;
  padding: 4rem 2rem;
  gap: 2rem;
  width: 100%;
  overflow-x: hidden;
}

.esg-section-1-text {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.esg-section-1-images h1 {
  font-size: 2.5rem;
  font-weight: 300;
  /* margin-bottom: 2rem; */
  color: #fff;
  line-height: 1em;
}

.esg-section-1-images strong {
  font-weight: 500;
  color: #fff;
}

.esg-section-1-features {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  padding:50px;
  background-color:#ffffff30;
}

.panel-ico {
  max-width: 60px;
  display: flex;
  flex-direction: column;
  align-content: center;
  justify-content: center;
  align-items: center;
}

.esg-section-1-feature {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.esg-section-1-feature-icon {
  width: 100%!important;
  max-width:150px;
  height: 150px!important;
  display: flex;
  align-items: center;
  justify-content: center;
}

.esg-section-1-feature-content h3 {
  margin: 0 0 0.5rem 0;
    font-size: 20px;
    line-height: 26px; 
    margin-bottom: 0;
    font-weight: 500; 
}

.esg-section-1-feature-content p {
 
  color: #dceef5; 
    font-size: 18px;
    line-height: 19px;
    font-weight: 300;
}
 

.esg-section-1-images {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.esg-section-1-image-box {
  position: relative;
  overflow: hidden;
  border-radius: 4px;
}

.esg-section-1-image-box img {
  width: 100%;
  height: auto;
  display: block;
}

.esg-section-1-unit-label {
  position: absolute;
  bottom: 10px;
  right: 15px;
  background: rgba(0, 0, 0, 0.6);
  padding: 5px 10px;
  color: white;
  font-size: 0.9rem;
  font-weight: 300;
}

/* ESG SECTION 2 */
.esg-section-2-wrapper {
  background: url('solar-bg.jpg') no-repeat center center / cover;
  color: #0e2d38;
  padding: 4rem 2rem;
  position: relative;
  width: 100%;
  overflow-x: hidden;
}

.esg-section-2-overlay {
  background-image: url("https://www.greenbox-darlington.co.uk/new_assets/images/esg/esg-bg.jpg");
  background-repeat: no-repeat;
  background-position: center center;
  background-size: cover;
  padding: 3rem 1rem;
  max-width: 100%;
}

.esg-section-2-container {
  max-width: 1200px;
  margin: auto;
  text-align: center;
}

.esg-section-2-container h1 {
  font-size: 2.5rem;
  font-weight: 300;
  margin-bottom: 1rem;
  color: #000;;
  text-align: left;
}

.esg-section-2-container h1 strong {
  color: #0e2d38;
  font-weight: 500;
  text-align: left;
}

.esg-section-2-lead {

  text-align: left;
  padding-right:40%;
  font-size: 20px;
  line-height: 26px;
  color: #0e2d38;
  margin-bottom: 30px;
  font-weight: 300;
  margin-left: auto;
}

 
.esg-section-2-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.esg-section-2-box {
  background: rgba(14, 45, 56, 0.4); /* semi-transparent background */
  border: 1px solid #9ecfa7;
  padding: 2rem;
  border-radius: 0;
  text-align: left;

  backdrop-filter: blur(5px);         /* adds the blur effect */
  -webkit-backdrop-filter: blur(5px); /* for Safari support */
}

.esg-section-2-box h3 {
  text-align: center;
  color: #ffffff!important;
  margin-bottom: 0.25rem;
  line-height: 1em;
  font-size: 21px;
  font-weight: 500;
  padding: 20px 0 20px 0;
}

.esg-section-2-box p {
  text-align: center;
  color: #fff;
  font-size: 16px;
  line-height: 1;
  font-weight: 300;
}

.esg-section-2-icon {
  font-size: 1.8rem;
  margin-bottom: 0.5rem;
  display: flex;
  justify-content: center;
  align-content: center;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
  .esg-section-1-wrapper {
    grid-template-columns: 1fr;
    padding: 2rem 1rem;
    gap: 1.5rem;
  }

  .esg-section-1-images {
    max-width: 100%;
  }

  .esg-section-1-images h1 {
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
  }

  .esg-section-1-features {
    padding: 25px 15px;
    gap: 1.5rem;
    margin: 0;
  }

  .esg-section-1-feature {
    flex-direction: column;
    text-align: center;
  }

  .esg-section-1-feature-icon {
    max-width: 100px;
    height: 100px !important;
  }

  .esg-section-1-feature-content h3 {
    font-size: 18px;
  }

  .esg-section-1-feature-content p {
    font-size: 16px;
  }

  .esg-section-2-wrapper {
    padding: 2rem 0;
  }

  .esg-section-2-overlay {
    padding: 2rem 1rem;
  }

  .esg-section-2-container {
    padding: 0;
  }

  .esg-section-2-container h1 {
    font-size: 1.75rem;
  }

  .esg-section-2-lead {
    padding-right: 0;
    font-size: 16px;
    line-height: 22px;
    margin-bottom: 20px;
  }

  .esg-section-2-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    margin-top: 1.5rem;
  }

  .esg-section-2-box {
    padding: 1.5rem 1rem;
    margin: 0;
  }

  .esg-section-2-box h3 {
    font-size: 18px;
    padding: 15px 0;
  }

  .esg-section-2-box p {
    font-size: 14px;
    line-height: 1.4;
  }
}

.esg-section-3-wrapper {
  display: flex;
  min-height: 100vh;
  background: #fff;
  width: 100%;
  overflow-x: hidden;
}

.esg-section-3-left {
  flex: 1 1 50%;
  padding: 4rem 3rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.esg-section-3-left h2 {
  font-size: 2.4rem;
  font-weight: 300;
  margin-bottom: 2rem;
  line-height: 1.1;
  color: #0e2d38 !important;
}

.esg-section-3-left h2 strong {
  font-weight: 700;
  color: #0e2d38;
}

.esg-section-3-columns {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 3rem;
}

.esg-section-3-stats {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.esg-section-3-stat {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}

.esg-section-3-stat img {
  width: 120px;
  height: 120px;
}

.esg-section-3-stat h4 {
  margin: 0;
  font-size: 20px;
  font-weight: 700;
  color: #0e2d38;
}

.esg-section-3-stat p {
  margin: 0.25rem 0 0 0;
  font-size: 16px;
  color: #0e2d38;
}

.esg-section-3-logos {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  gap: 1.5rem;
  padding-top: 0.5rem;
}

.esg-section-3-logos img {
  max-height: 40px;
  object-fit: contain;
}

/* Right column: background image only */
.esg-section-3-right {
  flex: 1 1 50%;
  background-image: url('https://www.greenbox-darlington.co.uk/new_assets/images/esg/demographics-bg.jpg');
  background-position: center center;
  background-repeat: no-repeat;
  background-size: cover;
}

/* Responsive */
@media (max-width: 992px) {
  .esg-section-3-wrapper {
    flex-direction: column;
  }

  .esg-section-3-left {
    padding: 2rem 1.5rem;
  }

  .esg-section-3-columns {
    grid-template-columns: 1fr;
  }

  .esg-section-3-right {
    height: 300px;
    flex: none;
  }

  .esg-section-3-stat img {
    width: 80px;
    height: 80px;
  }

  .esg-section-3-stat h4 {
    font-size: 18px;
  }

  .esg-section-3-stat p {
    font-size: 14px;
  }

  .esg-section-3-logos img {
    max-height: 35px;
  }
}

@media (max-width: 576px) {
  .esg-section-3-left h2 {
    font-size: 1.8rem;
  }

  .esg-section-3-stat {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .esg-section-3-stat img {
    width: 60px;
    height: 60px;
  }
}

/* --- location ---- */

.esg-logistics-wrapper {
  background-image: url("https://www.greenbox-darlington.co.uk/new_assets/images/location-bg");
  background-repeat: no-repeat;
  background-position: center center;
  background-size: cover;
  color: white;
  padding: 2rem;
  font-family: sans-serif;
  width: 100%;
  overflow-x: hidden;
}

/* Top section layout */
.esg-logistics-top {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
}

.esg-logistics-text {
  flex: 1 1 45%;
}

.esg-logistics-text h2 {
  font-size: 2rem;
  margin-bottom: 1rem;
  color: #fff;
  font-weight: 300;
}

.esg-logistics-text p {
  margin-bottom: 1rem;
  line-height: 1.5;
}

.esg-population-key {
  margin-top: 1.5rem;
  font-size: 0.9rem;
}

.key-box {
  display: inline-block;
  width: 14px;
  height: 14px;
  margin: 0 6px;
}

.green-30 { background: #6ec179; }
.green-45 { background: #2fa286; }

/* Tables Grid */
.esg-logistics-tables {
  flex: 1 1 50%;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.esg-logistics-table {
   
  padding: 1rem;
  border-radius: 4px;
}

.esg-logistics-table .icon {
  width: 24px;
 
}

.esg-logistics-table table {
  width: 100%;
  border-collapse: collapse;
  color: white;
  font-size: 14px;
}

.esg-logistics-table th {
  text-align: left;
  padding-bottom: 0.3rem;
  color: #fff;
  font-weight: 600;
}

.esg-logistics-table td {
  font-weight: 300;
  padding: 0.2rem 0.2rem;
  border-bottom: 1px solid #278a9a;
}

/* Map layout fix */
.esg-logistics-maps {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 2rem;
  width: 100%;
}

.esg-logistics-map-col {
  flex: 1 1 48%;
}

.esg-logistics-map-col img {
  width: 100%;
  height: auto;
  display: block;
  border: 2px solid white;
  box-shadow: 0 0 6px rgba(0,0,0,0.3);
  object-fit: cover;
}


.esg-gallery-wrapper{
  background-color: #0e2d38;
  padding: 3rem 4rem;
  color: white;
  width: 100%;
  overflow-x: hidden;
}

.vid-local-wrapper {
  background-color: #0e2d38;
  padding: 3rem 2rem 0 2rem;
  color: white;
}

.esg-gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}

.esg-gallery-item img {
  width: 100%;
  border: 2px solid white;
  cursor: pointer;
  transition: transform 0.3s ease;
}

.esg-gallery-item:hover img {
  transform: scale(1.05);
}

/* Lightbox styles */
.esg-lightbox {
  display: none;
  position: fixed;
  z-index: 9999;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.9);
  overflow: hidden;
}

.esg-lightbox-content {
  display: block;
  margin: auto;
  max-width: 90%;
  max-height: 90vh;
  box-shadow: 0 0 15px rgba(255, 255, 255, 0.2);
}

.esg-lightbox-close {
  position: absolute;
  top: 20px;
  right: 35px;
  font-size: 40px;
  color: white;
  cursor: pointer;
}

/* Arrows */
.esg-lightbox-prev,
.esg-lightbox-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  font-size: 48px;
  color: white;
  cursor: pointer;
  user-select: none;
  padding: 0 1rem;
}

.esg-lightbox-prev {
  left: 10px;
}

.esg-lightbox-next {
  right: 10px;
}

/* Responsive */
@media (max-width: 992px) {
  .esg-gallery-wrapper {
    padding: 2rem 2rem;
  }

  .esg-gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .esg-logistics-top {
    flex-direction: column;
  }

  .esg-logistics-text,
  .esg-logistics-tables {
    flex: 1 1 100%;
  }

  .esg-logistics-tables {
    grid-template-columns: 1fr;
  }

  .esg-logistics-maps {
    flex-direction: column;
  }

  .esg-logistics-map-col {
    flex: 1 1 100%;
  }
}

@media (max-width: 576px) {
  .esg-gallery-wrapper {
    padding: 2rem 0.5rem;
  }

  .esg-gallery-grid {
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }

  .esg-logistics-wrapper {
    padding: 1rem 0.5rem;
  }

  .esg-logistics-text {
    padding: 0 0.5rem;
  }

  .esg-logistics-text h2 {
    font-size: 1.5rem;
  }

  .esg-logistics-text p {
    font-size: 14px;
    line-height: 1.5;
  }

  .esg-logistics-tables {
    padding: 0 0.5rem;
  }

  .esg-logistics-table {
    padding: 0.5rem;
  }

  .esg-logistics-table table {
    font-size: 12px;
  }

  .esg-logistics-maps {
    gap: 0.75rem;
    margin-top: 1rem;
  }

  .esg-lightbox-prev,
  .esg-lightbox-next {
    font-size: 32px;
    padding: 0 0.5rem;
  }

  .esg-lightbox-close {
    font-size: 32px;
    top: 10px;
    right: 15px;
  }
}

