﻿section > div > h4 {
    text-align: center;
    font-size: 28px;
    font-weight: 500;
    letter-spacing: 0;
    line-height: 2em;
    position: relative;
}

    section > div > h4:before {
        content: "";
        position: absolute;
        bottom: 0;
        height: 5px;
        width: 55px;
        background-color: var(--lmc-orange);
        transform: translateX(-50%);
    }

    section > div > h4:after {
        content: "";
        position: absolute;
        left: 50%;
        bottom: 2px;
        height: 1px;
        width: 65%;
        max-width: 255px;
        background-color: var(--lmc-orange);
        transform: translateX(-50%);
    }

section {
    margin: 3% 5%;
}
/*#region Search*/
.searchBar {
    padding: 2% 15%;
    display: flex;
    flex-direction: column;
    gap: 20px;
    text-align: center;
    align-items: center;
}

    .searchBar > div {
        gap: 10px;
        display: flex;
        justify-content: center;
        align-items: center;
        padding: 5px;
        width: 90%;
    }

        .searchBar > div > input {
            padding: 1%;
            width: 80%;
            border: 3px solid var(--lmc-orange);
        }

            .searchBar > div > input:focus {
                border: 3px solid var(--lmc-orange);
            }

        .searchBar > div > a {
            padding: 1%;
        }
/*#endregion*/
/*#region Content */
section > div {
    height: 100%;
}

.contentContainer {
    margin: 3% 3%;
}


.contentContainer {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    padding: 0 2%;
    gap: 5%;
}

    .contentContainer > a {
        cursor: pointer;
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 20px;
        padding: 10px;
        background-color: white;
        transition: transform 0.4s ease;
    }

        .contentContainer > a:hover {
            transform: scale(1.05);
        }

        .contentContainer > a > img {
            width: 100%;
            height: auto;
            object-fit: cover;
            box-shadow: 0 5px 20px 5px gray;
        }

        .contentContainer > a > h3 {
            margin: 0;
            font-size: 1.1rem;
            font-weight: 600;
        }

        .contentContainer > a > p {
            width: 100%;
            text-align: start;
            display: -webkit-box;
            -webkit-line-clamp: 3;
            -webkit-box-orient: vertical;
            overflow: hidden;
            font-size: 0.95rem;
            color: #444;
            flex-grow: 1;
        }



/*#endregion*/
/*#region Paginable */
.paginableContainer {
    display: flex;
    text-align: center;
    width: 100%;
    justify-content: center;
    padding: 3% 0;
    gap: 5px;
}

    .paginableContainer a {
        cursor: pointer;
        color: black;
        padding: 8px 16px;
        text-decoration: none;
    }

        .paginableContainer a.activePage {
            background-color: var(--lmc-orange);
            color: white;
        }

        .paginableContainer a:hover:not(.activePage) {
            background-color: var(--lmc-soft-orange);
        }

.disabledPage {
    pointer-events: none;
    opacity: 0.5;
    cursor: default;
}

/*#endregion */
/*#region Container animations */
.animationBox {
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.6s ease-out;
}

    .animationBox.show {
        opacity: 1;
        transform: translateY(0);
    }
/*#endregion*/
@media (max-width: 480px) {
    .searchBar {
        padding: 2% 0;
    }

        .searchBar > div {
            width: 100%;
        }

            .searchBar > div > input {
                padding: 3%;
            }

            .searchBar > div > a {
                display: flex;
                justify-content: center;
                align-items: center;
                padding: 3% 3%;
                gap: 5px;
            }

    .contentContainer {
        display: flex;
        flex-direction: column;
        padding: 0 2%;
        gap: 35px;
    }

    section > div > h4:before {
        left: 25%;
    }
}
@media (max-width: 820px) {
    .searchBar {
        padding: 2% 0%;
    }
    .contentContainer {
        grid-template-columns: repeat(2, 1fr);
    }
}
