@import url('../css/variable.css');

/* Hero Section */
.heroImage img {
    width: 100%;
}
.sectionSpace {
    width: 95%;
    padding-block: 16px;
    margin: auto;
}
.heroContent {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    
}

section.heroSectionParent {
    position: relative;
    text-align: center;
}

.heroContent h3{
    color: white;
    font-weight: 600;
    text-transform: uppercase;
}

.heroContent p{
    color: white;
    font-weight: 500;
    margin-top: 16px;
}

/* Training Time */

section.aboutTrainingParent {
    display: flex;
    align-items: center;
    justify-content: space-between;
}


.aboutTrainingImg {
    flex: 0 0 40%;
}

.aboutTrainingContents {
    flex: 0 0 55%;
}


.aboutTrainingContents h3 {
    font-weight: 600;
    color: #1A2753;
    margin-bottom: 42px;
}

.aboutTrainingPara {
    margin-bottom: 32px;
}
.aboutTrainingContents p {
    font-weight: 400;
}

.headerUnderscore::after {
    content: "";
    display: block;
    width: 120px; 
    height: 4px;  
    background-color: #C12033;  
    border-radius: 15px; 
  }
  
  
/* Benefits section */

.title-wrapper {
    display: flex;
    justify-content: center;
    text-align: center;
  }
  .title-wrapper h2 {
    font-weight: 600;
    color: #202F64;
    text-transform: uppercase;
}

  
  .underline-span {
    position: relative;
    display: inline-block;
  }
  
  .curve-underline {
    position: absolute;
    left: 0;
    bottom: -10px; /* adjust gap */
    width: 100%;  /* match span width */
    height: 10px;
  }



.benefitGrid {
   
    margin-top: 88px;
}
.benefitGridWrapper{
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 48px;
}
.benefitIndvBox {
   border: 2px solid #202F64;
   padding: 4px;
   position: relative;
    border-radius: 10px;
    margin-bottom: 36px;
}

.benefitIndvBoxContent {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 18px;
    padding-top: 32px;
    min-height: 250px;
}

.benefitIndvBoxContent h3 {
    text-align: center;
}

.benefitIndvBoxContent p {
    text-align: center;
}

img.benefitIndvBoxIcon {
    width: 17%;
    position: absolute;
    top: -20%;
    left: 50%;
    transform: translate(-50%);
}



@media(max-width: 786px){
   img.benefitIndvBoxIcon {
    width: 20%;
    position: absolute;
    top: -2.5rem;
    left: 50%;
    transform: translate(-50%);
}
    .heroContent h3{
        font-size: 28px;
        line-height: normal;
    }
    
    .heroContent p {
        font-size: 14px;
        line-height: normal;
    }
    
    .aboutTrainingContents h3 {
        margin-bottom: 8px;
        font-size: 22px;
        line-height: normal;
    }
    
    .headerUnderscore::after {
        content: "";
        display: block;
        width: 53px;
        height: 3px;
        background-color: #C12033;
        /* margin-top: 6px; */
        border-radius: 15px;
    }
    
    section.aboutTrainingParent {
        flex-direction: column;
        gap: 30px;
    }
    
    .aboutTrainingContents p {
        font-size: 14px;
        line-height: normal;
    }
    
    .heroContent {
        width: 100%;
    }
    
    .title-wrapper h2{
        font-size: 24px;
    }
    
    .benefitGrid {
        grid-template-columns: 1fr;
        margin-top: unset;
    }
  
    .benefitIndvBox {
        margin-top: 15%;
    }
    .curve-underline {
        position: absolute;
        left: 0;
        bottom: -5px;
        width: 100%;
        height: 10px;
    }
    
    .heroImage img {
        width: 100%;
        object-fit: cover;
        height: 203px;
    }

    .benefitGridWrapper{
        grid-template-columns: 1fr;
        gap: unset;
    }
}