.main-bannercsr {
  background-repeat: no-repeat;
  background-position: center center;
  background-size: cover;
  background-image: url(../images/raw_black.png);
  padding: 290px 0px 180px 0px;
  position: relative;
  overflow: hidden;
}

.main-bannercsr .top-text {
  text-align: center;
}

.main-bannercsr .top-text h6 {
  color: #fff;
  text-shadow: 4px 4px #113295a5;
  font-size: 30px;
  font-weight: bold;
  text-transform: uppercase;
}

.main-bannercsr .top-text h2 {
  color: #fff;
  text-shadow: 9px 7px #113295a5;
  font-size: 45px;
  font-weight: 800;
  text-transform: capitalize;
  margin-bottom: 45px;
}

.main-bannercsr ul.categories {
  width: 100%;
  margin-top: 60px;
  text-align: center;
}

.main-bannercsr ul.categories li {
  display: inline-block;
  text-align: center;
  width: 18%;
}

.main-bannercsr ul.categories li a {
  color: #fff;
  text-align: center;
  font-size: 15px;
  margin-top: 15px;
}

.main-bannercsr ul.categories li .icon {
  display: block;
  margin: 0 auto 12px auto;
  width: 66px;
  height: 66px;
  border-radius: 50%;
  text-align: center;
  line-height: 62px;
  color: #8d99af;
  background-color: #fff;
  transition: all .5s;
}

.main-bannercsr ul.categories li a:hover .icon {
  background-color: #000080;
}

.main-bannercsr ul.categories li .icon img {
  max-width: 27px;
}

/* /////////////////// */

body {
  margin: 0;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background-color: #ffffff;
}

.environmental-box {
  position: relative;
  background: url('../images/bgcsr2.png') no-repeat center center;
  background-size: cover;
  border-radius: 10px;
  max-width: 1000px;
  margin: 20px auto;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
  overflow: hidden;
}

.environmental-overlay {
  background-color: rgba(17, 126, 92, 0.85);
  /* สีเขียวทับแบบโปร่ง */
  padding: 40px;
}

.environmental-content {
  max-width: 90%;
  color: #ffffff;
}

.environmental-title {
  font-size: 28px;
  font-weight: bold;
  margin-bottom: 20px;
}

.environmental-text {
  font-size: 18px;
  line-height: 1.6;
  margin-bottom: 16px;
  color: #e0f5ec;
}


/* ------------------------------- */

.certificate-gallery {
  padding: 40px 20px;
  background-image: url('../images/about1.jpg');
  /* เปลี่ยน path ภาพพื้นหลังตามที่มี */
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  text-align: center;
  color: rgb(179, 212, 252);
  font-weight: bold;
}

.cert-title {
  font-size: 32px;
  margin-bottom: 10px;
}

.cert-description {
  font-size: 16px;
  margin-bottom: 30px;
  color: rgb(255, 255, 255);
}

.cert-gallery {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  max-width: 1000px;
  margin: auto;
}

.cert-item {
  cursor: pointer;
  transition: transform 0.3s;
}

.cert-item:hover {
  transform: scale(1.05);
}

.cert-item img {
  width: 100%;
  border: 1px solid #ccc;
  border-radius: 8px;
}

.cert-caption {
  margin-top: 8px;
  font-size: 14px;
  color: white;
}

/* Lightbox */
.cert-lightbox {
  display: none;
  position: fixed;
  z-index: 9999;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.9);
  justify-content: center;
  align-items: center;
  flex-direction: column;
}

.cert-lightbox img {
  max-width: 90%;
  max-height: 80%;
  object-fit: contain;
  border-radius: 10px;
}

.cert-lightbox p {
  color: #fff;
  margin-top: 15px;
  font-size: 16px;
  text-align: center;
}

@media (max-width: 768px) {
  .cert-gallery {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 480px) {
  .cert-gallery {
    grid-template-columns: 1fr;
  }
}

/* wast----- */

.wast-container {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100vh;
  background-color: #ffffff;
}

/* ////////////// */

.wast {
  width: 100%;
  height: 60vh;
  position: relative;
  overflow: hidden;
}

.wast__container {
  display: flex;
  height: 100%;
  position: relative;
}

.wast__left,
.wast__right {
  flex: 1;
  position: relative;
}

.wast__left img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.wast__right {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  padding: 50px;
  background-color: white;
}

.wast__text h1 {
  font-size: 36px;
  margin: 0;
  color: #111;
}

.wast__text p {
  font-size: 16px;
  color: #7d8597;
  margin-top: 10px;
  max-width: 400px;
}

.wast__play-button {
  position: absolute;
  top: 50%;
  left: 46.7%;
  transform: translate(-50%, -50%);
  width: 80px;
  height: 80px;
  background-color: #1d9d85;
  color: white;
  font-size: 36px;
  font-weight: bold;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

/* Video popup */
.wast__popup {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  align-items: center;
  justify-content: center;
  z-index: 1000;
}

.wast__popup-content {
  position: relative;
  width: 80%;
  max-width: 800px;
  background: black;
  padding: 20px;
  border-radius: 10px;
}

.wast__popup-content video {
  width: 100%;
  height: auto;
  max-height: 80vh;
  border-radius: 10px;
}

.wast__close-btn {
  position: absolute;
  top: 10px;
  right: 20px;
  font-size: 28px;
  cursor: pointer;
}

.wast-close-btn {
  position: absolute;
  top: 16px;
  right: 16px;
  font-size: 2rem;
  background-color: rgba(0, 0, 0, 0.6);
  color: white;
  border: none;
  border-radius: 50%;
  width: 48px;
  height: 48px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 999;
  transition: background-color 0.2s ease;
}

.wast-close-btn:hover {
  background-color: rgba(0, 0, 0, 0.8);
}

.wast-video-popup {
  padding: 0;
  background: none;
  border: none;
  box-shadow: none;
}

.wast-video-popup video {
  display: block;
  width: 100%;
  height: auto;
  border: none;
}

.modal-overlay {
  background: rgba(0, 0, 0, 0.8);
}

.modal-content {
  padding: 0;
  background: none;
  border: none;
  box-shadow: none;
}

@media (max-width: 768px) {
  .wast__right {
    display: none;
  }

  .wast__left {
    flex: 1 1 100%;
  }

  .wast__play-button {
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
  }
}

.desktop-img {
  display: block;
}

.mobile-img {
  display: none;
}

@media (max-width: 768px) {
  .desktop-img {
    display: none;
  }

  .mobile-img {
    display: block;
    width: 100%;
    height: auto;
    object-fit: cover;
  }
}

.energy-banner {
  padding: 24px;
  background-image: url('../images/banner-bg.jpg');
  /* เปลี่ยน path ตามภาพที่คุณมี */
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-color: #ffffff;
  /* fallback สีพื้นหลัง */
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0);
  border-radius: 20px;
  text-align: center;
  color: #ffffff;
  /* แนะนำให้ใช้สีอักษรที่ตัดกับพื้นหลัง */
}


.energy-banner img {
  width: 1000px;
  max-width: 100%;
  height: auto;
  border-radius: 12px;
}

@media (max-width: 768px) {
  .energy-banner img {
    width: 200px;
  }
}

.Electricity-banner {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 60vh;
  /* หรือกำหนดความสูงตามต้องการ */
  background-image: url('../images/bg1.png');
  /* ถ้าต้องการพื้นหลังด้วย */
  background-size: cover;
  background-position: center;
  padding: 24px;
  box-sizing: border-box;
}


.Electricity-banner img {
  width: 1000px;
  max-width: 100%;
  height: auto;
  border-radius: 12px;
}

@media (max-width: 768px) {
  .Electricity-banner img {
    width: 200px;
  }
}

.glass-box {
  background: rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-radius: 16px;
  padding: 20px;
  color: white;
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.3);
  max-width: 1100px;
  margin: 20px auto;

  margin: 20px 0;
  text-align: left;
}