.news-page {
    margin: 0 auto;
    padding: 70px 1rem 2rem;
    text-align: center;
}

.news-section {
    background-color: #ffffff;
    color: #333;
    line-height: 1.6;
    padding: 20px;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, 380px);
    gap: 30px;
    margin-bottom: 40px;
    justify-content: center;
}

.news-card {
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    width: 380px;
    background: white;
}

.news-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4);
}

.card-image {
    width: 100%;
    height: 250px;
    background-color: #701f27;
    position: relative;
    overflow: hidden;
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.placeholder-image {
    background: linear-gradient(135deg, #701f27, #8a252f);
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.card-content {
    padding: 25px;
    text-align: left;
}

.card-title {
    font-size: 1.4rem;
    font-weight: bold;
    margin-bottom: 15px;
    color: #000000;
    word-wrap: break-word;
    word-break: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
}

.card-description {
    color: #666;
    font-size: 0.95rem;
    margin-bottom: 20px;
    line-height: 1.5;
    word-wrap: break-word;
    word-break: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
}

.read-more {
    display: inline-block;
    color: #701f27;
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s ease;
    cursor: pointer;
}

.read-more:hover {
    color: #a02d39;
}

.card-meta {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    margin-top: 20px;
    padding-top: 15px;
    border-top: 1px solid #eee;
}

.card-date {
    color: #999;
    font-size: 0.85rem;
}

.no-news {
    grid-column: 1 / -1;
    text-align: center;
    padding: 3rem;
    color: #666;
}

.no-news h3 {
    color: #701f27;
    margin-bottom: 1rem;
}

.custom-pagination {
    display: flex;
    justify-content: center;
    margin: 2rem 0;
    padding-top: 2rem;
    border-top: 1px solid #e9ecef;
    gap: 0.25rem;
}

.custom-pagination a,
.custom-pagination a:hover,
.custom-pagination a:focus,
.custom-pagination a:active,
.custom-pagination a:visited,
.custom-pagination .page-item,
.custom-pagination .page-item a,
.custom-pagination .page-item a:hover,
.custom-pagination .page-item a:focus,
.custom-pagination .page-item a:active,
.custom-pagination .page-item a:visited,
.custom-pagination .page-item .page-link,
.custom-pagination .page-item .page-link:hover,
.custom-pagination .page-item .page-link:focus,
.custom-pagination .page-item .page-link:active,
.custom-pagination .page-item .page-link:visited {
    text-decoration: none !important;
    text-decoration-line: none !important;
    text-decoration-style: none !important;
}

.custom-pagination .page-item {
    display: inline-block;
    margin: 0;
}

.custom-pagination .page-item .page-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    padding: 0;
    background: #701f27;
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none !important;
    line-height: 1;
}

.custom-pagination .page-item:hover .page-link {
    background: #a02d39;
    transform: none;
    text-decoration: none !important;
}

.custom-pagination .page-item.active .page-link {
    background: #a02d39;
    font-weight: 600;
    box-shadow: 0 2px 4px rgba(112, 31, 39, 0.3);
}

.custom-pagination .page-item.active:hover .page-link {
    background: #a02d39;
}

.custom-pagination .page-item.disabled .page-link {
    background: #f8f9fa;
    color: #adb5bd;
    cursor: not-allowed;
    opacity: 0.6;
}

.custom-pagination .page-item.disabled:hover .page-link {
    background: #f8f9fa;
    color: #adb5bd;
    transform: none;
}

@media (max-width: 768px) {
    .news-page {
        padding: 50px 1rem 1rem;
    }

    .news-grid {
        grid-template-columns: repeat(auto-fit, minmax(300px, 380px));
        gap: 20px;
    }

    .card-title {
        font-size: 1.2rem;
    }

    .card-description {
        font-size: 0.9rem;
    }

    .pagination .page-item .page-link {
        width: 35px;
        height: 35px;
        font-size: 0.75rem;
    }
}

@media (max-width: 420px) {
    .news-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .news-card {
        width: 100%;
        max-width: 380px;
        margin: 0 auto;
    }
}
