* {
    box-sizing: border-box;
}

.first-section {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 140px;
    margin-top: 10rem;
    display: flex;
    flex-direction: column;
}

.first-section h2 {
    font-family: "Montserrat", sans-serif;
    font-size: 2.8rem;
    font-weight: 800;
    color: #000;
    margin-bottom: 40px;
    text-align: left;
}

.whatsapp-icon {
    margin-right: 8px;
}

.btn-create-case {
    display: inline-block;
    margin-bottom: 20px;
    padding: 6px 14px;
    color: #fff;
    border: none;
    border-radius: 20px;
    cursor: pointer;
    font-size: 0.85rem;
    font-weight: 600;
    background-color: #481e9c;
}

.clients-content {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.cases-hero {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.case-card {
    display: flex;
    background-color: #F1F1F1;
    border-radius: 20px;
    overflow: hidden;
    min-height: 300px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease;
}

.case-card:hover {
    transform: translateY(-5px);
}

.case-image {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 30px;
    background-color: transparent;
    min-width: 35%;
}

.case-image img {
    max-width: 100%;
    height: auto;
    object-fit: contain;
    max-height: 200px;
}

.case-content {
    flex: 1.5;
    padding: 40px 40px 40px 10px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
}

.case-title {
    font-family: "Montserrat", sans-serif;
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 15px;
    color: #000;
}

.case-description {
    font-family: "Montserrat", sans-serif;
    font-size: 1rem;
    color: #333;
    line-height: 1.6;
    margin-bottom: 30px;
}

.btn-ver-mais {
    font-family: "Montserrat", sans-serif;
    background-color: #481E9C;
    color: white;
    padding: 24px 35px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.85rem;
    letter-spacing: 1px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: background 0.3s;
}

.btn-ver-mais:hover {
    background-color: #4a148c;
}

.pagination {
    display: flex;
    justify-content: flex-start;
    gap: 10px;
    margin-top: 50px;
}

.btn-page {
    font-family: "Montserrat", sans-serif;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    border: 2px solid #481E9C;
    background: transparent;
    color: #481E9C;
    font-weight: bold;
    font-size: 1.1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
}

.btn-page:hover {
    background-color: #f3e5f5;
}

.btn-page.current-page {
    background-color: #481E9C;
    color: white;
}

.btn-page.prev-btn,
.btn-page.next-btn {
    border: 2px solid #481E9C;
}

.slide-left {
    animation: slideLeft 0.8s ease forwards;
}

.slide-right {
    animation: slideRight 0.8s ease forwards;
}

@media (min-width: 2560px) {
    .first-section {
        margin-top: 14rem;

    }
}

@media (max-width: 900px) {
    .first-section {
        margin-top: 18vh;
        padding: 70px 10px;
    }

    .first-section h2 {
        font-size: 2rem;
        text-align: center;
        margin-bottom: 25px;
    }

    .case-card {
        flex-direction: column;
        border-radius: 18px;
    }

    .case-image {
        min-height: 200px;
        width: 100%;
        padding: 30px 20px 10px 20px;
    }

    .case-content {
        padding: 20px 18px 30px 18px;
        align-items: center;
        text-align: center;
    }

    .case-description {
        text-align: center;
    }
}

@media (max-width: 768px) {
    .case-card {
        flex-direction: column;
    }

    .case-image {
        padding: 40px 20px 0 20px;
    }

    .case-content {
        padding: 20px 30px 40px 30px;
        align-items: center;
        text-align: center;
    }
}

@keyframes slideLeft {
    from {
        transform: translateX(-50px);
        opacity: 0;
    }

    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideRight {
    from {
        transform: translateX(50px);
        opacity: 0;
    }

    to {
        transform: translateX(0);
        opacity: 1;
    }
}

#createCaseBtn {
    display: none;
}

.admin-actions {
    display: flex;
    gap: 10px;
    margin-top: 20px;
    justify-content: center;
}

.edit-btn,
.delete-btn {
    display: inline-block;
    padding: 6px 14px;
    color: #fff;
    border: none;
    border-radius: 20px;
    cursor: pointer;
    font-size: 0.85rem;
    font-weight: 600;
    background-color: #481e9c;
    transition: background 0.3s;
}

.edit-btn:hover {
    background-color: #4a148c;
}

.delete-btn {
    background-color: #dc3545;
}

.delete-btn:hover {
    background-color: #c82333;
}