/*
Click nbfs://nbhost/SystemFileSystem/Templates/Licenses/license-default.txt to change this license
Click nbfs://nbhost/SystemFileSystem/Templates/Other/CascadeStyleSheet.css to edit this template
*/
/* 
    Created on : 6 de mai. de 2025, 18:26:26
    Author     : italo
*/

.panel-container {
    width: 100%;
    max-width: 80%;
    height: 350px; /* Altura fixa de 350px */
    display: flex;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    border-radius: 4px;
    overflow: hidden;
    background-color: white;
    margin: 5px auto;
}

.column-news {
    flex: 1;
    min-width: calc(100% - 250px);
    background-color: #fff;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.column-buttons {
    width: 250px;
    background-color: var(--faixa-menu);/*#2c3e50*/;
    display: flex;
    flex-direction: column;
    height: 100%;
    overflow-y: auto;
}

.news-carousel {
    position: relative;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.carousel-slide {
    display: none;
    flex: 1;
    flex-direction: column;
    animation: fade 1.5s ease-in-out;
    overflow: hidden;
}

.carousel-slide.active {
    display: flex;
}

.news-image-container {
    height: 70%;
    overflow: hidden;
}

.news-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.carousel-slide:hover .news-image {
    transform: scale(1.02);
}

.news-content {
    height: 30%;
    padding: 10px 30px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background-color: #fff;
}

.news-title {
    color: #2c3e50;
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 5px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.news-excerpt {
    color: #7f8c8d;
    line-height: 1.3;
    font-size: 13px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.news-date {
    position: absolute;
    top: 15px;
    right: 20px;
    background-color: rgba(52, 152, 219, 0.9);
    color: white;
    padding: 4px 8px;
    border-radius: 3px;
    font-size: 11px;
    font-weight: 500;
}

.carousel-controls {
    display: flex;
    justify-content: space-between;
    padding: 10px 30px;
    align-items: center;
    flex-shrink: 0;
    background-color: #fff;
    border-top: 1px solid #eee;
}

.carousel-indicators {
    display: flex;
    gap: 8px;
}

.indicator {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: #bdc3c7;
    cursor: pointer;
    transition: background-color 0.3s;
}

.indicator.active {
    background-color: #3498db;
}

.carousel-nav {
    display: flex;
    gap: 10px;
}

.carousel-nav button {
    background-color: #3498db;
    color: white;
    border: none;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.3s;
}

.carousel-nav button:hover {
    background-color: #2980b9;
}

.action-button {
    display: flex;
    align-items: center;
    padding: 13px 20px;
    color: white;
    text-decoration: none;
    transition: all 0.3s ease;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    flex-shrink: 0;
}

.action-button:hover {
    background-color: var(--faixa-menu-s);
    /*transform: translateX(5px);*/
}

.action-button i {
    font-size: 18px;
    margin-right: 12px;
    width: 22px;
    text-align: center;
}

.button-text {
    font-size: 14px;
    font-weight: 500;
}

@keyframes fade {
    from {
        opacity: 0.4
    }
    to {
        opacity: 1
    }
}

@media (max-width: 768px) {
    .panel-container {
        max-width: calc(100% - 12px) ;
        flex-direction: column;
        height: auto;
        max-height: 350px;
        border-radius: 4px;
        margin: 2px auto;
    }

    .column-news {
        min-width: 100%;
        height: 300px;
    }

    .column-buttons {
        width: 100%;
        flex-direction: row;
        flex-wrap: wrap;
        height: auto;
        overflow-y: visible;
        display:none;
    }

    .action-button {
        flex: 1;
        min-width: 50%;
        justify-content: center;
        border-bottom: none;
        border-right: 1px solid rgba(255, 255, 255, 0.1);
    }

    .action-button:hover {
        transform: translateY(-5px);
    }

    .news-image-container {
        height: 70%;
    }

    .news-content {
        height: 30%;
        padding: 10px 20px;
    }

    .news-date {
        top: 10px;
    }
}

@media (max-width: 480px) {
    .action-button {
        min-width: 100%;
        border-right: none;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }

    .news-image-container {
        height: 60%;
    }

    .news-content {
        height: 40%;
    }
}
