:root {
  --bg: #ffffff;
  --btn-bg-inactive: #d1d1d1;
  --btn-bg-active: #ED4F18;
  --border: #ffffff;
  --btn-thumb: #ffffff;
  --btn-w: 5vw; /* change btn size, and everything else scales according to it. except border size */
  --btn-h: calc(var(--btn-w) / 2.5); /* increase btn height by descreasing the number */
  --gap: calc(var(--btn-h) / 10); /* increase gap by decreasing the number */
}


.greenfield{
    margin-top: 8%;
    margin-bottom: 15%;
}

.guide{
  margin-top: 18%;
    margin-bottom: 8%;
}

.cliere-section{
    display: flex
}
.cliere-box{
    width: 100%;
}
.img-cliere{
    width: 100%;
}

.text-banner-climate{
  margin-top: 7%;
  margin-bottom: 8%;
    width: 82%;
}

.btn-learn {
  margin-top: 3.5%;
  padding: 0.6em 0em 0.6em 1em;
  background-color: #ED4F18;
  display: flex;
  color: #ffffff;
  width: 23%;
  gap: 10%;
}
.download-tam{
    margin-top: 6.5%;
    padding: 0.6em 0em 0.6em 1em;
    background-color: #ED4F18;
    display: flex;
    color: #ffffff;
    width: 26%;
    gap: 8%;
}
.text-img-de{
    margin-top: 35%;
}
.cliere{
    margin-top: 8%;
}
.esg-certif-logo-mobile, .sus-certif-logo-mobile{
  display: none;
}
.section-esg{
    margin-top: 10%;
    display: flex;
    justify-content: space-between;
}
.esg-certif-logo{
    margin-top: 6%;
    display: flex;
    justify-content: space-between;
}
.box-esg{
    width: 100%;
}
.certif-logo-1, .certif-logo-2,.certif-logo-3, .certif-logo-4, .certif-logo-6{
    width: 8%;
}

.certif-logo-5{
    width: 9%;
}


/* Banner */
.banner-text {
    margin-top: -44.5%;
  }
  
  .banner-digital-text {
    width: 38%;
    margin-top: 5%;
  }
  
  /* ESG */
 
  .title-esg-certification {
    width: 100%;
  }
  
  .esg-certification {
    margin-top: 10%;
  }
  
  .esg-title-left {
    gap: 2%;
    width: 100%;
  }
  
  .esg-text-right {
    width: 100%;
  }
  
  .esg-logo {
    margin-top: 6%;
  }
  
  /* Carbon lifecycle */
  .carbon-content-text {
    margin-top: 3%;
  }
  
  .carbon-design {
    display: flex;
    margin-top: 5%;
    margin-bottom: 8%;
  }
  .carbon-design-2 {
    display: flex;
    margin-top: 5%;
    margin-bottom: 8%;
  }
  
  .carbon-design-2 img, .carbon-design img {
    margin-top: 7.8%;
    width: 100%;
  }
  
  .sub-title {
    margin-bottom: 0%;
    line-height: 1.3;
  }
  
  .carbon-design-left {
    width: 50%;
  }
  .carbon-design-right {
    margin-left: 5%;
    width: 50%;
  }
  .carbon-design-right-title{
    padding-left: 10%;
  }
  .design-right-sub-title {
    margin-top: 7%;
    margin-bottom: 2%;
  }
  
  /* Digital engineering */
  .CR-text {
    margin-top: 10%;
    width: 83%;
    margin-bottom: 9%;
  }
  
  .btn-exp {
    width: 22%;
  }
  
  /* Akila Digital Twins */
  .akila-digital-twin{
    margin-top: 0%;
    margin-bottom: 0%;
  }
  
  .akila-digital-twins-content{
    width: 100%;
    color: white;
    margin-top: -45%;
  }
  
  .ADT-content-left{
    width: 100%;
  }
  
  .ADT-title{
    margin-top: 2%;
  }
  
  .ADT-text{
    margin-top: 8%;
    margin-bottom: 12%;
  }
  
  
  /* Greenfield */
  .greenfield{
    margin-top: 9%;
    margin-bottom: 10%;
  }
  .greenfield-content{
    width: 100%;
  }
  
  .Greenfield-title{
    margin-top: 3%;
  }
  
  .greenfield-text{
    width: 92%;
    margin-top: 7%;
  }
  
  .border-industries{
    margin-top: 1%;
    margin-right: 0%;
  }

.carbon-life{
    background-color: #f8f8f8;
    padding: 8.5% 0 3%;
    margin-top: 7%;
}
.carbon-content-title h3{
    margin-top: 1%;
}
.green-field-box h3{
  margin-top: 7%;
  margin-bottom: 1%;
}


.text-green{
  margin-top: 9%;
  width: 96%;
}
.btn-toggle {
  margin: 0 5%;
  width: fit-content;
  display: flex;
  justify-content: flex-start;
  align-items: center;
}

input {
  display: none;
}

.toggle {
  box-sizing: content-box;
  width: var(--btn-w);
  height: var(--btn-h);
  padding: var(--gap);
  border: var(--border-w) solid var(--border);
  border-radius: var(--btn-w);
  background: var(--btn-bg-inactive);
  cursor: pointer;
  position: relative;
  transition: background 0.3s;
}

.toggle::before {
  content: '';
  box-sizing: border-box;
  position: absolute;
  left: var(--gap);
  width: var(--btn-h);
  height: var(--btn-h);
  border: var(--border-w) solid var(--border);
  border-radius: 50%;
  background: var(--btn-thumb);
  transition: transform 0.3s;
}

[id^="check"]:checked + .toggle::before {
  transform: translateX(calc(var(--btn-w) - var(--btn-h)));
}

[id^="check"]:checked + .toggle {
  background: var(--btn-bg-active);
}

.call-to-action-de {
  margin-top: 6%;
  background-image: url('/wp-content/themes/Aden%20services/assets/cta-de.png');
  background-repeat: no-repeat;
  background-size: cover;
  height: 33vw;
  position: relative;
}

.call-to-action-de::after {
  content: '';
  background-color: #283948;
  opacity: 0.4;
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
}

/* styles for range slider (not related to toggle button) */
.controls {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 2;
}

#btn-size {
  display: none;
}
.green-field{
  display: flex;
}
.green-field-box{
  width: 50%;
  position: relative;
}

.green-field-box img{
  margin-left: 14%;
  margin-top: 12%;
  width: 100%;
 display: none; /* Mengubah opacity saat gambar tidak aktif */
  
}
.green-field-box img.active{
  display: block;
  transition: display 0.5s ease-in-out; /* Menambahkan transisi fade */
}


.text-engi{
  margin-top: 8%;
}

@media (min-width: 640px) and (max-width: 1024px){
  .download-tam {
    margin-top: 4.5%;
    width: 29%;
  }
  .carbon-life {
  background-color: #f8f8f8;
  padding: 4.5% 0 3%;
  margin-top: 7%;
}
}
@media(min-width: 360px) and (max-width: 640px){


  :root {
    --bg: #ffffff;
    --btn-bg-inactive: #d1d1d1;
    --btn-bg-active: #ED4F18;
    --border: #ffffff;
    --btn-thumb: #ffffff;
    --btn-w: 15vw; /* change btn size, and everything else scales according to it. except border size */
    --btn-h: calc(var(--btn-w) / 2.5); /* increase btn height by descreasing the number */
    --gap: calc(var(--btn-h) / 10); /* increase gap by decreasing the number */
  }
/* display: none */
.esg-certif-logo{
  display: none;
}
.cliere-section, .carbon-design, .section-esg, .green-field{ 
    flex-direction: column;
  }
  .carbon-design-2{
    flex-direction: column-reverse;
  }
  
  .green-field-box img, .carbon-design-right{
    margin-left: 0;
  }
  .carbon-design-left, .green-field-box, .carbon-design-right{
    width: 100%;
  }

  .esg-certif-logo-mobile{
    margin: 15% 0;
    display: grid;
    grid-template-columns: repeat(3, 40%);
  }
  .sus-certif-logo-mobile{
      margin: 15% 0 30%;
    display: grid;
    grid-template-columns: repeat(4, 27%);
  }
  .certif-logo-1, .certif-logo-2, .certif-logo-3, .certif-logo-4, .certif-logo-6{
    width: 45%;
  }
  .certif-logo-5{
    margin-left: -5%;
    width: 60%;
  }
  .download-tam{
    width: 48%;
  }
  .arrow-tam {
    margin-top: 3.5%;
    width: 6%;
    height: 100%;
  }
  .certif-logo-4, .certif-logo-5, .certif-logo-6{
    margin-top: 15%;
  }
  .btn-learn {
    width: 35%;
  }
  .switch{
    margin-left: 18%;
    width: 26%;
    height: 34px;
  }
  .logo-sustain-1{
    width: 55%;
    height: 80%;
  }
  .logo-sustain-2{
    margin-left: 3%;
    width: 55%;
    height: 83%;
  }
  .logo-sustain-5{
    margin-left: 5%;
    width: 60%;
    height: 101%;
    margin-top: -6%;
  }
  .logo-sustain-3{
    margin-top: 5%;
    margin-left: 12%;
    width: 57%;
    height: 68%;
  }
  .logo-sustain-4{
    margin-top: 31%;
    margin-left: 32%;
    width: 96%;
    height: 66%;
  }
  .logo-sustain-6{
    margin-top: 44%;
    margin-left: 80%;
    width: 162%;
    height: 36%;
  }
  .carbon-design-right-title{
    padding-left: 0;
  }
  .cliere{
    margin-top: 18%;
    margin-bottom: 20%;
  }
  .cliere-section{
    gap: 30px;
  }
  .esg-text-content{
    margin-top: 10%;
  }
  .carbon-life{
    margin-top: 20%;
    padding: 7.5% 0 3%;
  }
  .guide{
    margin-top: 23%;
  }
  .green-field-box h3{
    margin-top: 0%;
  }
  .btn-toggle {
    width: fit-content;
    display: flex;
    position: absolute;
    right: 0;
    top: 9%;
    z-index: 1;
  }
  
  .green-field-box img{
      margin-top: 0;
  }
  .text-img-de {
  margin-top: 25%;
}
}