﻿h1 {
    text-align: center;
    color: #760e26;
    padding: 0;
    margin: 15px 0 70px 0;
}

.cards-container {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin: 0 auto;
    max-width: 900px;
    min-height: 300px;
}

.card {
    border: 2px solid #760e26;
    border-radius: 16px;
    padding: 20px;
    width: 280px;
    color: #760e26;
    background-color: #fff;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    margin-left:15px;
}

.card-title {
    font-size: 1.2rem;
    font-weight: bold;
    margin-bottom: 8px;
    margin-top: 40px;
    color: white;
    text-shadow: 0 5px 10px black;
    background-color: rgba(0, 0, 0, 0.5);
    box-shadow: 0 0 10px;
    border-radius: 5px;
    padding: 3px;
}

.card-slug, .card-date {
    font-size: 0.9rem;
    margin-bottom: 6px;
}

.btn.btn-info {
    color: #760e26 !important;
    background-color: #fff !important;
    border: 2px solid #760e26 !important;
    border-radius: 16px !important;
    padding: 8px 16px !important;
    margin-top: auto !important;
    cursor: pointer !important;
    transition: transform 0.3s ease-in-out !important;
    text-decoration: none !important;
    display: inline-block !important;
}

    .btn.btn-info:hover {
        transform: scale(1.1);
        box-shadow: 0 0 10px #760e26;
        color: #760e26 !important;
        background-color: #fff !important;
        border-color: #760e26 !important;
    }

    .btn.btn-info:active {
        background-color: #760e26 !important;
        color: #fff !important;
        border-color: #760e26 !important;
    }

    .btn.btn-info:focus {
        outline: none !important;
        box-shadow: 0 0 10px #760e26 !important;
        background-color: #760e26 !important;
        color: #fff !important;
        border-color: #760e26 !important;
    }

.card-text {
    color: #fff;
    text-shadow: 0 5px 10px black;
    background-color: rgba(0, 0, 0, 0.5);
    position: relative;
    gap: 10px;
    box-shadow: 0 0 10px;
    border-radius: 5px;
    max-width: 250px;
}


@media (max-width: 992px) {
    .cards-container {
        justify-content: center;
    }

    .card {
        width: 45%;
        
    }
}

@media (max-width: 768px) {
    .cards-container {
        flex-direction: column;
        align-items: center;
        margin-left:15px;
    }

    .card {
        width: 90%;
        max-width: 450px;
        margin-left: 12px;
    }
}

@media (max-width: 1080px) and (min-width: 769px) {
    .cards-container {
        gap: 30px;
        flex-wrap: wrap;
        justify-content: center;
        max-width: 1000px;
        margin-right: 1px;
        margin-left: 15px;
    }

    .card {
        width: 40%;
        min-width: 300px;
    }

    .card-title {
        font-size: 1.1rem;
    }

    h1 {
        font-size: 1.8rem;
    }
}

@media (max-width: 1366px) and (min-width: 1081px) {
    .cards-container {
        max-width: 1100px;
        gap: 40px;
    }

    .card {
        width: 30%;
        max-width: 340px;
    }

    .card-title {
        font-size: 1.2rem;
    }

    h1 {
        font-size: 2rem;
    }
}

/*@media (min-width: 820px) and (max-width: 1180px) {
    html {
        width: 100%;
        height: 100%;
        overflow-x: hidden;
    }

    .cards-container {
        flex-wrap: wrap;
        justify-content: center;
        gap: 120px;
        max-width: 1000px;
        padding: 0 5px;
        margin-right:100px;
    }

    .card {
        width: 42%; 
        max-width: 380px;
        min-width: 300px;
        margin: 10px 0;
    }

    .card-title {
        font-size: 1.1rem;
    }

    .card-text {
        font-size: 0.95rem;
        max-width: 90%;
    }

    .btn.btn-info {
        font-size: 0.95rem !important;
        padding: 8px 14px !important;
    }

    h1 {
        font-size: 1.8rem;
        margin-bottom: 50px;
    }
}*/

@media (min-width: 820px) and (max-width: 1023px) {
    .cards-container {
        flex-wrap: wrap;
        justify-content: center;
        gap: 30px;
        width: 100vw;
        margin-left: -57px;
    }

    .card {
        width: 42%;
        max-width: 360px;
        min-width: 280px;
        gap: 20px;
        padding: 0 20px;
        margin-left:-3px;
    }

    .btn-info {
        margin-bottom: 20px;
    }
}
