/* Enhanced News Section Styles */
.news-container {
    background-color: #ffffff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
    width: 70%;
    max-width: 900px;
    margin: 2rem auto;
    padding: 0;
    transition: all 0.3s ease;
}

#inputNombre {
    border: 2px solid #ddd;
}

    #inputNombre:focus {
        border-color: #589e1e;
        box-shadow: 0 0 0 0.2rem rgba(88, 158, 30, 0.25);
    }

.news-header {
    background: linear-gradient(135deg, #589e1e 0%, #468018 100%);
    color: white;
    padding: 24px 30px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 3px solid rgba(255, 255, 255, 0.2);
}

    .news-header h2 {
        margin: 0;
        font-size: 28px;
        font-weight: 700;
        letter-spacing: 0.5px;
        text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.2);
    }

.smitco-logo {
    width: 150px;
    filter: drop-shadow(1px 1px 2px rgba(0, 0, 0, 0.2));
    transition: transform 0.3s ease;
}

    .smitco-logo:hover {
        transform: scale(1.05);
    }

/* Filter/Search Form */
.news-container form {
    background-color: #f8f9fa;
    padding: 20px 30px;
    border-bottom: 1px solid #e0e0e0;
}

.news-container select.form-select {
    border: 2px solid #ddd;
    border-radius: 6px;
    /*    padding: 8px 12px;
*/ transition: border-color 0.3s ease;
    box-shadow: none;
}

    .news-container select.form-select:focus {
        border-color: #589e1e;
        box-shadow: 0 0 0 0.2rem rgba(88, 158, 30, 0.25);
    }

.form-control:focus {
    border-color: #589e1e;
    box-shadow: 0 0 0 0.2rem rgba(88, 158, 30, 0.25);
}

.news-container label {
    font-weight: 600;
    color: #333;
}

/* News List */
.news-list {
    list-style-type: none;
    padding: 0;
    margin: 0;
    /*    max-height: 500px;
*/ /*overflow-y: auto;*/
}

.news-item {
    border-bottom: 1px solid #e0e0e0;
    padding: 18px 25px;
    transition: all 0.25s ease;
    position: relative;
}

    .news-item:last-child {
        border-bottom: none;
    }

    .news-item:hover {
        background-color: #f5f9f0;
        transform: translateX(5px);
    }

    .news-item::before {
        content: '';
        position: absolute;
        left: 0;
        top: 0;
        height: 100%;
        width: 0;
        background-color: #589e1e;
        transition: width 0.25s ease;
    }

    .news-item:hover::before {
        width: 4px;
    }

.news-date {
    font-weight: 600;
    color: #589e1e;
    margin-bottom: 6px;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
}

    .news-date::before {
        content: '\f073';
        font-family: 'Font Awesome 5 Free';
        margin-right: 8px;
        font-weight: 900;
    }

.news-title {
    margin: 0;
    font-size: 17px;
    color: #333;
    padding-left: 2px;
    transition: color 0.3s ease;
}

.news-item:hover .news-title {
    color: #468018;
}

.news-title a {
    text-decoration: none;
    color: inherit;
    display: block;
    padding-right: 24px;
    position: relative;
}

    .news-title a::after {
        content: '\f105';
        font-family: 'Font Awesome 5 Free';
        position: absolute;
        right: 0;
        top: 50%;
        transform: translateY(-50%);
        font-weight: 900;
        color: #589e1e;
        opacity: 0;
        transition: opacity 0.3s ease, transform 0.3s ease;
    }

.news-item:hover .news-title a::after {
    opacity: 1;
    transform: translate(5px, -50%);
}

/* Empty state styling */
.news-item.text-center {
    padding: 40px 20px;
    color: #6c757d;
}

    .news-item.text-center i {
        font-size: 36px;
        color: #589e1e;
        opacity: 0.7;
        margin-bottom: 10px;
    }

    .news-item.text-center p {
        font-size: 16px;
        margin-top: 10px;
    }

/* Modal Styling */
.modal-content {
    border-radius: 12px;
    border: none;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    overflow: hidden;
}

.modal-header {
    background-color: #589e1e;
    color: white;
    border-bottom: none;
    padding: 18px 25px;
}

    .modal-header h5 {
        font-weight: 600;
        font-size: 20px;
    }

    .modal-header .btn-close {
        filter: brightness(0) invert(1);
        opacity: 0.8;
        transition: opacity 0.3s ease;
    }

        .modal-header .btn-close:hover {
            opacity: 1;
            color: blue;
        }

.modal-body {
    padding: 20px;
}

#pdfViewer {
    border: 1px solid #dee2e6;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.05);
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    margin: 25px 0;
    flex-wrap: wrap;
    gap: 5px;
}

    .pagination .page-item .page-link {
        border: 1px solid #d0d0d0;
        color: #444;
        min-width: 40px;
        height: 40px;
        display: flex;
        align-items: center;
        justify-content: center;
        font-weight: 500;
        border-radius: 6px;
        transition: all 0.3s ease;
    }

        .pagination .page-item .page-link:hover {
            background-color: #589e1e;
            color: white;
            border-color: #589e1e;
        }

    .pagination .page-item.active .page-link {
        background-color: #589e1e;
        border-color: #589e1e;
        color: white;
        box-shadow: 0 2px 5px rgba(88, 158, 30, 0.3);
    }

    .pagination .page-item.disabled .page-link {
        color: #aaa;
        background-color: #f5f5f5;
        border-color: #d0d0d0;
    }

/* Responsive Adjustments */
@media (max-width: 992px) {
    .news-container {
        width: 85%;
    }
}

@media (max-width: 768px) {
    .news-container {
        width: 95%;
    }

    .news-header {
        flex-direction: row;
        gap: 15px;
        text-align: center;
        padding: 20px;
    }

    .modal-content {
        width: 100%;
        height: 100%;
    }

    #pdfViewer {
        height: 70vh;
    }
}

@media (max-width: 576px) {
    .news-container form .row {
        flex-direction: column;
        align-items: stretch !important;
    }

    .news-container form .col-auto {
        width: 100%;
        margin-bottom: 10px;
    }

    .pagination .page-link {
        min-width: 35px;
        height: 35px;
        padding: 0.4rem;
        font-size: 0.9rem;
    }

    .news-item {
        padding: 15px;
    }

    .news-title {
        font-size: 15px;
    }
}
