#jousters{
    color: var(--blue0);
    font-size: 6vw;
    font-weight: 550;
    width: 100%;
}

#main_header{
    background-color: var(--base);
}

#main_header_image{
    width: 100%;
    max-height: 300px;
    object-fit: contain;
}

.card{
    background-color: var(--blue0);
    position: relative;
    height: auto;
    min-height: 400px;
    max-height: 500px;
    width: 100%;

    display: flex;
}

.card_desc{
    height: auto;
    width: 100%;
    background-color: var(--blue0);
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    align-items: center;
}

.card_photo{
    display: none;
}

.card_text{
    color: var(--base);
    text-align: justify;
    width: 90%;
}


@media (min-width: 768px) {
    .card_photo{
        background-color: var(--base);
        position: relative;
        height: auto;
        width: 40%;
        overflow: hidden;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .card_photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    }

    .card_desc{
        width: 60%;
    }

    .card_text{
        width: 70%;
    }

}


.card_title a {
    text-decoration: none;
    color: var(--base);
    transition: transform 0.3s ease;
}


.card_title a:hover {
    transform: scale(1.05); /* keep centered while scaling */
}


.learn_more{
    background-color: var(--base);
    border: none;
    color: var(--blue0);
    padding: 15px 32px;
    text-align: center;
    text-decoration: none;
    font-size: 16px;
    cursor: pointer;
    transition: box-shadow 0.3s ease, transform 0.3s ease, background-color 0.2s ease, color 0.2s ease, border 0.2s ease;
}

/* Hover effect — shadow and slight lift */
.learn_more:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.6);
    transform:  scale(1.03);
}

/* Active (pressed) effect — invert colors and add border */
.learn_more:active {
    background-color: var(--blue0);
    color: var(--base);
    border: 2px solid var(--base);
    transform: scale(0.98);
    box-shadow: none; /* optional: remove shadow when pressed */
}