section.cgfs-hero {
	position: relative;
 padding: 120px 0 30px;
 background-image: url('../../images/blurbackground.png');
 background-position: bottom center;
 background-size: 100% 100%;
 min-height: 730px;
 height: 100%;
 background-color: #050038;
}

section.cgfs-hero .left h1 span{
    background: linear-gradient(90deg, #BC42B9 4%, #4BC7E8 96%);
    -webkit-background-clip: text;  /* Safari/Chrome support */
    -webkit-text-fill-color: transparent; 
}


section.cgfs-hero .inner {
 position: relative;
 display: grid;
 grid-template-columns: 1.5fr 1fr;
 grid-column-gap: 15px;
}

section.cgfs-hero .left {
 padding: 57px 0;
}

section.cgfs-hero .left h1 {
 margin-bottom: 20px;
 color: #F1F3FD;
}

section.cgfs-hero .left p {
 margin-bottom: 45px;
 font-family: Inter, sans-serif;
 font-size: 18px;
 line-height: 1.52;
 color: #F1F3FD;
}

section.cgfs-hero .left .hero-txt {
 margin-top: 28px;
 font-family: Inter, sans-serif;
 font-weight: 500;
 font-size: 16px;
 color: #F1F3FD;
 line-height: 1.94;
}

section.cgfs-hero .left h1 span {
 color: #ff6fbc;
}

section.cgfs-hero .right img {
 position: absolute;
 max-width: 100%;
 height: auto;
 border-radius: 8px;
 margin: 40px 5px 0;
}

.stats-section {
    justify-content: center;
    display: flex;
    padding: 10px;
    margin-bottom: 5%;

}
.stats-element {
    display: flex
;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border: transparent;
    border-radius: 20px;
    background: linear-gradient(90deg, rgba(105, 102, 136, 0.2) 0%, rgba(5, 0, 56, 0.2) 100%);
    backdrop-filter: blur(5px);
    width: 1180px;
    height: 226px;
    scale: 0.8;
}

.stat {
text-align: center;
flex: 1;
}

.stat h2 {
font-size: 60px;
color: #B8B8FF; /* Light lavender color */
margin-bottom: 10px;
}

.stat p {
font-size: 21px;
font-weight: 600;
color: #FFFFFF;
margin: 0;
}

.stats-element div:not(:last-child) {
margin-right: 20px;
}

@media (max-width: 768px) {
    section.cgfs-hero {
      padding: 80px 0 30px; /* Reduce padding for smaller screens */
      background-size: cover;
      min-height: auto; /* Allow flexible height */
    }
  
    section.cgfs-hero .inner {
      display: flex;
      flex-direction: column;
      text-align: center;
      grid-template-columns: 1fr; /* Stack content vertically */
      grid-column-gap: 0;
    }
  
    section.cgfs-hero .left {
      padding: 20px;
    }
  
    section.cgfs-hero .left h1 {
      margin-bottom: 15px;
    }
  
    section.cgfs-hero .left p {
      font-size: 16px; /* Adjust font size */
      line-height: 1.4;
      margin-bottom: 30px;
    }
  
    section.cgfs-hero .right img {
      position: static;
      width: 100%;
      height: auto;
      margin: 20px auto;
      border-radius: 10px;
    }
    .btn-inline {
        justify-content: center;
    }

  
    .stats-section {
      flex-direction: column;
      align-items: center;
      padding: 10px;
      margin-bottom: 10%;
    }
  
    .stats-element {
      width: 90%;
      height: auto;
      padding: 15px;
      scale: 0.9 !important;
      flex-direction: column;
    }
  
    .stat h2 {
      font-size: 36px;
    }
  
    .stat p {
      font-size: 18px;
      margin-bottom: 10px;
    }
  
    .stats-element div:not(:last-child) {
      margin-right: 0;
      margin-bottom: 10px;
    }
  }

/* 📱📲 Mobile Horizontal & iPad-Friendly Layout */
@media (max-width: 1024px) {
  section.cgfs-hero {
      padding: 100px 0 40px;
      background-size: cover;
      min-height: auto;
  }

  section.cgfs-hero .inner {
      max-width: 90%;
      margin: 0 auto;
      display: flex;
      flex-direction: column;
      align-items: center;
      text-align: center;
  }

  section.cgfs-hero .left {
      padding: 30px;
  }

  section.cgfs-hero .left h1 {
      font-size: 56px;
      margin-bottom: 18px;
  }

  section.cgfs-hero .left p {
      font-size: 17px;
      line-height: 1.5;
      margin-bottom: 35px;
  }

  section.cgfs-hero .right img {
      position: static;
      width: 90%;
      height: auto;
      margin: 25px auto;
      border-radius: 12px;
      scale: 1.3;
  }

  .btn-inline {
      justify-content: center;
  }

  .stats-section {
      flex-direction: column;
      align-items: center;
      padding: 15px;
      margin-bottom: 8%;
  }

  .stats-element {
      width: 85%;
      height: auto;
      padding: 20px;
      scale: 1;
      flex-direction: column;
  }

  .stat h2 {
      font-size: 40px;
  }

  .stat p {
      font-size: 19px;
      margin-bottom: 12px;
  }

  .stats-element div:not(:last-child) {
      margin-right: 0;
      margin-bottom: 12px;
  }
}

@media (max-width: 768px) and (orientation: landscape) {
  section.cgfs-hero {
      padding: 70px 0 30px;
      min-height: auto;
  }

  section.cgfs-hero .inner {
      display: flex;
      flex-direction: row;
      flex-wrap: wrap;
      justify-content: center;
      align-items: center;
      text-align: center;
  }

  section.cgfs-hero .left {
      padding: 20px;
      max-width: 80%;
  }

  section.cgfs-hero .left h1 {
      font-size: 28px;
      margin-bottom: 15px;
  }

  section.cgfs-hero .left p {
      font-size: 15px;
      line-height: 1.4;
      margin-bottom: 25px;
  }

  section.cgfs-hero .right img {
      width: 80%;
      height: auto;
      margin: 20px auto;
      border-radius: 10px;
  }

  .stats-section {
      flex-direction: row;
      flex-wrap: wrap;
      align-items: center;
      justify-content: center;
      padding: 15px;
      margin-bottom: 6%;
  }

  .stats-element {
      width: 90%;
      height: auto;
      padding: 15px;
      scale: 1;
      flex-direction: row;
      flex-wrap: wrap;
      justify-content: center;
  }

  .stat h2 {
      font-size: 32px;
  }

  .stat p {
      font-size: 16px;
      margin-bottom: 10px;
  }

  .stats-element div:not(:last-child) {
      margin-right: 10px;
      margin-bottom: 10px;
  }
}
