/* News Page Styles */
.news-page-container {
    min-height: 100vh;
    padding: 120px 20px 40px;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
}

.news-page-header {
    text-align: center;
    margin-bottom: 60px;
}

.news-page-title {
    font-size: 3.5rem;
    font-weight: 700;
    background: linear-gradient(45deg, #1B08B4, #E3941E);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.1);
}

.news-page-subtitle p {
    font-size: 1.2rem;
    color: #666;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

/* News Grid */
.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

/* News Cards */
.news-card {
    background: white;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    overflow: hidden;
    transition: all 0.3s ease;
    border: 1px solid rgba(27, 8, 180, 0.1);
}

.news-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.15);
}

.news-card-images {
    position: relative;
    height: 250px;
    overflow: hidden;
}

.news-image-container {
    width: 100%;
    height: 100%;
}

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

.news-card:hover .news-image {
    transform: scale(1.05);
}

.news-image-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, #1B08B4, #E3941E);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 4rem;
}

.news-card-content {
    padding: 25px;
}

.news-card-title {
    font-size: 1.4rem;
    font-weight: 600;
    color: #1B08B4;
    margin-bottom: 15px;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.news-card-description {
    color: #666;
    line-height: 1.6;
    margin-bottom: 20px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.news-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
}

.news-date {
    color: #888;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.news-read-more {
    background: linear-gradient(45deg, #1B08B4, #E3941E);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 25px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.news-read-more:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(27, 8, 180, 0.3);
}

/* News Modal */
.news-modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.8);
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.news-modal-content {
    background: white;
    border-radius: 20px;
    padding: 40px;
    max-width: 800px;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
}

.news-modal-close {
    position: absolute;
    top: 20px;
    right: 30px;
    font-size: 2rem;
    font-weight: bold;
    color: #aaa;
    cursor: pointer;
    transition: color 0.3s ease;
}

.news-modal-close:hover {
    color: #1B08B4;
}

.news-modal-title {
    font-size: 2rem;
    font-weight: 700;
    color: #1B08B4;
    margin-bottom: 15px;
    line-height: 1.3;
    padding-right: 40px;
}

.news-modal-date {
    color: #888;
    margin-bottom: 30px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1rem;
}

.news-modal-images {
    margin-bottom: 30px;
}

.news-modal-image-container {
    margin-bottom: 20px;
}

.news-modal-image {
    width: 100%;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.news-modal-text {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #333;
}

/* Pagination */
.news-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    margin-top: 60px;
}

.pagination-btn {
    background: white;
    border: 2px solid #1B08B4;
    color: #1B08B4;
    padding: 12px 16px;
    border-radius: 50%;
    text-decoration: none;
    transition: all 0.3s ease;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
}

.pagination-btn:hover {
    background: #1B08B4;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(27, 8, 180, 0.3);
    text-decoration: none;
}

.pagination-info {
    background: linear-gradient(45deg, #1B08B4, #E3941E);
    color: white;
    padding: 12px 24px;
    border-radius: 25px;
    font-weight: 600;
    font-size: 1rem;
}

/* No News */
.no-news {
    grid-column: 1 / -1;
    text-align: center;
    padding: 60px 20px;
    color: #666;
}

.no-news i {
    font-size: 4rem;
    margin-bottom: 20px;
    color: #ddd;
}

.no-news p {
    font-size: 1.2rem;
}

/* Modal Open Body */
body.modal-open {
    overflow: hidden;
}

/* Responsive Design */
@media screen and (max-width: 768px) {
    .news-page-container {
        padding: 100px 15px 30px;
    }
    
    .news-page-title {
        font-size: 2.5rem;
    }
    
    .news-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .news-card-content {
        padding: 20px;
    }
    
    .news-card-footer {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
    
    .news-modal-content {
        padding: 30px 20px;
        margin: 10px;
    }
    
    .news-modal-title {
        font-size: 1.5rem;
        padding-right: 30px;
    }
    
    .pagination-btn {
        width: 45px;
        height: 45px;
        font-size: 1rem;
    }
    
    .pagination-info {
        padding: 10px 20px;
        font-size: 0.9rem;
    }
}

@media screen and (max-width: 480px) {
    .news-page-title {
        font-size: 2rem;
    }
    
    .news-page-subtitle p {
        font-size: 1rem;
    }
    
    .news-card-title {
        font-size: 1.2rem;
    }
    
    .news-modal-content {
        padding: 20px 15px;
    }
    
    .news-modal-close {
        top: 15px;
        right: 20px;
        font-size: 1.5rem;
    }
}
