/*-----------------------------CARD STYLES---------------------------*/


.cards-container{
    width: 100%;
    display: flex; /* prev grid*/
    flex-wrap: wrap;
    justify-content: center;
    /*grid-template-columns: repeat(auto-fit, minmax(300px, max-content));
    justify-content: center;
    align-items: start; for uneven item purposes currently outdated*/
    gap: var(--space-3);
    padding: var(--space-3);
    
}

.card {
    padding: 0;
    position: relative;
    box-shadow: var(--shadow-custom);
    width: 100%;
    max-width: 300px;
    aspect-ratio: 1;
    border-radius: 15px;
    transition: transform 0.3s ease-in-out;
}

.cards-container > a{
    width: 100%;
    max-width: 300px;
}

.card:hover{
    transform: translateY(10px) scale(1.05);
    box-shadow: var(--shadow-intense);
}


.card-img {
    position: absolute;
    top:0;
    z-index: 3;
    width: 100%;
    height: 100%; 
    overflow: hidden;
    border-radius: 15px;
}

.card-img img {
    height: 100%;
    width: 100%;
    object-fit: cover;
}


/*---------------------WELCOME SECTION----------------------*/


.welcome, .second, .third{
    text-align: center;
    padding: var(--space-3) var(--space-4);
    gap: var(--space-3);
}

.welcome{
    padding-top: var(--space-3);
}

.img-container{
    width: 100%;
    max-width: 700px;
    margin-top: 0;
    margin-bottom: var(--space-5);
    display: flex;
    justify-content: center;
}

.img-container img{
    width: 100%;
    height: auto;
    display: block;
}


.entry-title{
    font-family: CG, serif;
    font-size: 46px;
    font-weight: 400;         
    line-height: 1.25;
    letter-spacing: 0.02em;   
    color: #3a342c;            
    margin-bottom: var(--space-3);
}


.entry-emphasis {
    font-weight: 500;
    color: #836745;  
    letter-spacing: 0.01em;
    margin-bottom: var(--space-2);
}


/* ------------------------------------COURSES SECTION---------------------------------------------------------*/


.section.service-cards{
    scroll-padding-top: 80px;
}


/* -------------------------------------FOOTER AND SOCIALS STYLES----------------------------------------------*/


footer{
    padding: 0;
    padding-top: var(--space-3);
    background-color: #445761;
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-align: center;
    gap: var(--space-2);
    color: white;
}


.socials{
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    gap: var(--space-5);
    font-size: 1.5rem;
}


.socials a{
    transition: transform 0.3s ease-in-out;
    text-decoration: none;
}

.socials a:hover{
    transform: translateY(10px);
}


.legal{
    display: flex;
    align-items: center;
    flex-direction: row;
    color: rgb(213, 210, 210);
    font-size: 14px;
    width: 100%;
    justify-content: center;
    flex-direction: column;
    padding-bottom: var(--space-1);
}
/*
.credit{
    display: flex;
    align-items: center;
    flex-direction: row;
    padding: var(--space-1);
    color: grey;
    background-color: #e4e0d7;
    font-size: 12px;
    justify-content: center;
}*/


/*------------------------MEDIA RULES-----------------------------*/


@media (max-width: 768px) {

    .entry-title{
        font-size: 36px;
    }

    .cards-container{
        justify-items: center;
        gap: var(--space-5);
        grid-template-columns: 1fr;
    }

}