/*-----------------------------------*\
  #PROJECTS HERO
\*-----------------------------------*/


.courts-hero{
    width: 100%;
    height: 560px;
    background-color: var(--primary-blue);
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
}


.courts-title{
    font-size: 40px;
    line-height: 44px;
    font-weight: var(--bold);
    letter-spacing: 0.5px;
    color: var(--white);
    text-align: center;
}


.courts-hero-separator{
    width: 120px;
    height: 4px;
    background-color: var(--white);
    margin-top: 24px;
    margin-bottom: 24px;

}

.courts-hero-text{
    max-width: 540px;
    text-align: center;
    font-size: 16px;
    line-height: 20px;
    font-weight: var(--medium);
    color: var(--neutral-02);
}



/*-----------------------------------*\
  #PROJECTS
\*-----------------------------------*/



.projects{
    height: 700px;
    width: 100%;

}




.projects-container {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 32px;
    padding-left: 96px;
    flex-wrap: nowrap;
    overflow-x: hidden; /* Hide scrollbar */
    padding-bottom: 16px;
    box-sizing: border-box;
    margin-top: -120px;
    cursor: grab; /* Add 'grab' cursor */
}

.projects-container:active {
    cursor: grabbing; /* Change cursor when dragging */
}


.project-card{
    height: 540px !important;
    width: 440px !important;
    min-width: 440px;
    border-radius: 16px;
    background-color: var(--white);
    border: solid 1px var(--neutral-03);
    box-shadow:  0px 0px 4px 0px hsla(0, 0%, 0%, 0.25);

    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;

}
.project-image {
    width: 440px;
    height: 362px;
    border-top-right-radius: 16px;
    border-top-left-radius: 16px;
    background-size: cover; 
    background-position: center; 
    background-repeat: no-repeat;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative; /* Required for positioning the overlay */
    overflow: hidden; /* Ensures the overlay stays within bounds */
}

/* Gradient overlay for the image only */
.project-image::before {
    content: "";
    position: absolute;
    inset: 0; /* Covers the entire image */
    background: linear-gradient(to top, rgba(0, 0, 0, 1), rgba(0, 0, 0, 0)); /* Black to transparent gradient */
    opacity: 0; /* Initially hidden */
    transition: opacity 0.3s ease; /* Smooth transition */
    border-top-right-radius: 16px;
    border-top-left-radius: 16px;
}

/* Show overlay on hover */
.project-image:hover::before {
    opacity: 1;
}

.project-image:hover .to-project-btn {
    display: flex;
}

.to-project-btn{
    width: 180px;
    height: 40px;
    display: none;
    justify-content: center;
    align-items: center;
    text-align: center;
    border: solid 1px var(--neutral-03);
    border-radius: 8px;
    background-color: transparent;

    color: var(--text-inverse);
    font-size: 14px;
    line-height: 24px;
    font-weight: var(--semiBold);

    z-index: 100;
}


.to-project-btn:hover{
    cursor: pointer;
    color: var(--text-primary);
    background-color: var(--neutral-03);
}


.project-info{
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
    padding: 24px 24px 40px 24px;
}

.project-name{
    font-size: 18px;
    line-height: 22px;
    font-weight: var(--semiBold);
    color: var(--text-primary);
}

.project-type{
    margin-top: 14px;
    font-size: 14px;
    line-height: 18px;
    font-weight:var(--medium);
    color: var(--primary-blue);
}


.project-benefits{
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 16px;
    margin-top: 20px;
}


.project-benefit{
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    padding: 8px;
    border: solid 1px var(--neutral-03);
    border-radius: 12px;
}

.project-benefit-icon{
    width: 20px;
    height: 20px;
}

.project-benefit-name{
    font-size: 12px;
    line-height: 14px;
    font-weight: var(--semiBold);
    color: var(--text-tertirary);
}







@media (width < 650px) {

    /*-----------------------------------*\
      #COURT HERO
    \*-----------------------------------*/
    
    
    
    
.courts-title{
    font-size: 32px;
    line-height: 40px;
    max-width: 335px;
    
}



.courts-hero-text{
    max-width: 335px;
}




.projects{
    height: 100%;
    width: 100%;

}




.projects-container {

    gap: 24px;
    padding-left: 24px;
 
}





.project-card{
    height: 420px !important;
    width: 282px !important;
    min-width: 282px;


}
.project-image {
    width: 282px;
    height: 232px;

}



.project-info{

    padding: 8px 16px 8px 16px;
}

.project-name{
    font-size: 16px;
    line-height: 18px;

}

.project-type{
    margin-top: 8px;

}


.project-benefits{
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    gap: 8px;
    margin-top: 20px;
}








}