/* Temporary for development stage, recommend to copy these CSS code to frontend.css when production */
section[data-module="esg-module"] {}

section[data-module="esg-module"] .esg-panel-section {
  width: 100%;
  padding: 0;
  box-sizing: border-box;
  overflow: hidden;
}

section[data-module="esg-module"] .esg-panels {
  display: flex;
  width: 100%;
  height: 500px;
  gap: 0;
}

section[data-module="esg-module"] .esg-panel {
  position: relative;
  flex: 1 1 0;
  min-width: 0;
  height: 100%;
  background-size: cover;
  background-position: center;
  overflow: hidden;
  cursor: pointer;
  transition: flex 0.6s ease;
  z-index: 3;
}

section[data-module="esg-module"] .esg-panel.active {
  flex: 3.2 1 0;
}

section[data-module="esg-module"] .esg-overlay {
  position: absolute;
  inset: 0;
  background: rgba(238, 48, 60, 0.13);
  z-index: 1;
}

section[data-module="esg-module"] .esg-content {
  position: absolute;
  z-index: 2;
  color: #fff;
  transition: opacity 0.35s ease, transform 0.35s ease;
}

section[data-module="esg-module"] .esg-collapsed-content {
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) rotate(-90deg);
  transform-origin: center;
  white-space: nowrap;
  opacity: 1;
}

section[data-module="esg-module"] .esg-collapsed-content h3 {
  margin: 0;
  font-size: 40px;
  line-height: 1;
  font-weight: 600;
  color: #fff;
  text-shadow: 0 4px 12px rgba(0, 0, 0, 0.35);
}

section[data-module="esg-module"] .esg-expanded-content {
  left: 50%;
  bottom: 50px;
  width: calc(100% - 60px);
  max-width: 780px;
  transform: translateX(-50%);
  text-align: center;
  opacity: 0;
}

section[data-module="esg-module"] .esg-expanded-content h2 {
  margin: 0 0 14px;
  font-size: 40px;
  line-height: 1.2;
  font-weight: 600;
  color: #fff;
  text-shadow: 0 4px 12px rgba(0, 0, 0, 0.35);
}

section[data-module="esg-module"] .esg-expanded-content p {
  margin: 0;
  font-size: 18px;
  line-height: 1.5;
  font-weight: 500;
  color: #fff;
  text-shadow: 0 4px 12px rgba(0, 0, 0, 0.35);
}

section[data-module="esg-module"] .esg-panel.active .esg-collapsed-content {
  opacity: 0;
  pointer-events: none;
}

section[data-module="esg-module"] .esg-panel.active .esg-expanded-content {
  opacity: 1;
}

section[data-module="esg-module"] .esg-panels::after {
  content: "";
  position: absolute;
  left: -116px;
  bottom: -337px;
  width: 600px;
  height: 100%;
  background-image: url("https://cab.stagings.entertopwp.com/wp-content/uploads/2026/04/pattern-wobble-1-04.png");
  background-repeat: no-repeat;
  background-size: contain;
  background-position: center;
  pointer-events: none;
  z-index: 1;
}

@media (max-width: 1600px) {
section[data-module="esg-module"] .esg-panels::after {
  left: -89px;
  bottom: -301px;
  width: 420px;
}
}

@media (max-width: 480px) {
section[data-module="esg-module"] .esg-expanded-content h2 {
  font-size: 28px;
}
section[data-module="esg-module"] .esg-expanded-content p {
  font-size: 16px;
}
section[data-module="esg-module"] .esg-collapsed-content h3 {
  font-size: 24px;
}
section[data-module="esg-module"] .esg-panel-section {
    width: 100% !important;
    padding: 0 !important;
    box-sizing: border-box;
    overflow: hidden;
}
section[data-module="esg-module"] .esg-panel {
  height: 100%;
  flex: 0.5 0.5 0;
}
section[data-module="esg-module"] .esg-panels {
  height: 220px;
}
section[data-module="esg-module"] .esg-panels::after {
  left: -20px;
  bottom: -189px;
  width: 200px;
}
section[data-module="esg-module"] .esg-overlay {
  background: rgba(238, 48, 60, 0.3);
}
}