.btn-animated-small {
    position: relative;
    display: inline-block;
    background: none;
    border: none;
    color: #192940;
    font-family: sans-serif;
    font-weight: bold;
    text-transform: uppercase;
    text-decoration: none;
    transition: color 0.4s ease;
    overflow: hidden;
    border: 1px solid #192940;
    border-radius: 99px;
}


.btn-animated-small:hover {
    color: #ffffff;
    background-color: #ff4500;
}




/* Responsive adjustments */
@media (max-width: 768px) {
    .btn-animated-small {
        padding: 12px 24px;
        font-size: 12px;
    }

}

@media (max-width: 480px) {
    .btn-animated-small {
        padding: 0;
        font-size: 11px;
    }

}

.ep-container {
    max-width: 1440px;
    width: 100%;
    padding: 30px;
}

.ep-container__title {
    text-align: center;
    margin-bottom: 40px;
    font-size: 2.5rem;
    color: #2c3e50;
}

.ep-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.ep-grid__col {
    display: grid;
    grid-template-rows: 1fr 1fr;
    gap: 20px;
}

.ep-card {
    position: relative;
    overflow: hidden;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
    height: 100%;
    background: linear-gradient(135deg, #6a11cb 0%, #2575fc 100%);
}

.ep-card:hover {
    transform: translateY(-5px);
}

.ep-card--large {
    height: 550px;
}

.ep-card__image {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    transition: transform 0.5s ease;
}

.ep-card:hover .ep-card__image {
    transform: scale(1.05);
}

.ep-card__overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8) 0%, rgba(0, 0, 0, 0) 100%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 25px;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.ep-card:hover .ep-card__overlay {
    opacity: 1;
}

.ep-card__title {
    color: white;
    font-size: 1.1rem;
    margin-bottom: 30px;
    transform: translateY(20px);
    transition: transform 0.4s ease;
    color: #ffffff;
    font-family: "Inter", Sans-serif;
    text-transform: uppercase;
    font-weight: 300;
}

.ep-card:hover .ep-card__title {
    transform: translateY(0);
}

.ep-card__arrow {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: all 0.3s ease;
    z-index: 10;
}

.ep-card__arrow svg {
    width: 20px;
    height: 20px;
    fill: #192940;
    transition: fill 0.3s ease;
    stroke: #192940;
    stroke-width: 1;
    fill: none;
    transform: rotate(-45deg);
}

.ep-card:hover .ep-card__arrow {
    background-color: #192940;
}

.ep-card:hover .ep-card__arrow svg {
    stroke: white;
}

@keyframes ep-bg-animation {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

.ep-card {
    background-size: 200% 200%;
    animation: ep-bg-animation 10s ease infinite;
}

.ep-card:nth-child(2) {
    background: linear-gradient(135deg, #ff9a9e 0%, #fad0c4 100%);
    background-size: 200% 200%;
    animation: ep-bg-animation 8s ease infinite;
}

.ep-card:nth-child(3) {
    background: linear-gradient(135deg, #a1c4fd 0%, #c2e9fb 100%);
    background-size: 200% 200%;
    animation: ep-bg-animation 12s ease infinite;
}

@media (max-width: 992px) {
    /* --- CORREÇÃO DE LAYOUT --- */
    .ep-container{
        padding: 0;
    }
    .ep-grid {
        grid-template-columns: 1fr;
    }
    .ep-grid__col{
        grid-template-rows: 1fr;
    }

    .ep-grid__col:first-child {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 20px;
    }

    .ep-grid__col:last-child {
        display: grid;
        grid-template-columns: 1fr;
        gap: 20px;
    }
    .ep-card__arrow{
        padding: 0;
    }
    .ep-card--large {
        height: 300px;
    }

    /* --- CORREÇÃO DE VISIBILIDADE PARA TÁTIL --- */
    .ep-card .ep-card__overlay {
        opacity: 1;
        background: linear-gradient(to top, rgba(0, 0, 0, 0.7) 0%, rgba(0, 0, 0, 0) 80%);
    }

    .ep-card .ep-card__title {
        transform: translateY(0);
    }

    /* Desativa animações de hover desnecessárias */
    .ep-card:hover {
        transform: none;
    }
    .ep-card:hover .ep-card__image {
        transform: none;
    }
}


@media (max-width: 576px) {

    .ep-container__title {
        font-size: 2rem;
    }
    .ep-card{
        height: 200px;
    }
    .ep-card__overlay{
        padding: 10px;
    }

    .ep-card__title {
        font-size: 0.9rem;
    }

    .ep-card__arrow {
        width: 35px;
        height: 35px;
        top: 15px;
        right: 15px;
    }
}
