/* style/news.css */

/* General Styles for News Page */
.page-news {
    font-family: 'Arial', sans-serif;
    color: #f0f0f0; /* Light text for dark background */
    background-color: #0d123d; /* Darker blue for page background */
}

.page-news-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Hero Section */
.page-news-hero-section {
    background: linear-gradient(135deg, #1A237E, #0d123d);
    padding: 100px 0;
    text-align: center;
    color: #FFD700;
}

.page-news-hero-title {
    font-size: 3.5em;
    margin-bottom: 20px;
    color: #FFD700;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    line-height: 1.2;
}

.page-news-hero-description {
    font-size: 1.3em;
    margin-bottom: 40px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    color: #ffffff;
}

/* Buttons */
.page-news-btn {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 8px;
    font-size: 1.1em;
    font-weight: bold;
    text-decoration: none;
    transition: background-color 0.3s ease, transform 0.3s ease;
    margin: 10px;
}

.page-news-btn-primary {
    background-color: #FFD700; /* Gold */
    color: #1A237E; /* Dark blue text */
    border: 2px solid #FFD700;
}

.page-news-btn-primary:hover {
    background-color: #e5c100;
    transform: translateY(-3px);
}

.page-news-btn-secondary {
    background-color: transparent;
    color: #FFD700;
    border: 2px solid #FFD700;
}

.page-news-btn-secondary:hover {
    background-color: #FFD700;
    color: #1A237E;
    transform: translateY(-3px);
}

/* Articles Section */
.page-news-articles-section {
    padding: 60px 0;
    background-color: #0d123d;
}

.page-news-section-title {
    font-size: 2.8em;
    color: #FFD700;
    text-align: center;
    margin-bottom: 50px;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.3);
}

.page-news-article-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
}

.page-news-item {
    background-color: #1A237E; /* Main dark blue */
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

.page-news-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 25px rgba(0, 0, 0, 0.6);
}

.page-news-item-image {
    width: 100%;
    height: 250px;
    object-fit: cover;
    display: block;
    border-bottom: 3px solid #FFD700;
}

.page-news-item-content {
    padding: 25px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.page-news-item-title {
    font-size: 1.8em;
    color: #FFD700;
    margin-bottom: 15px;
    line-height: 1.3;
}

.page-news-item-meta {
    font-size: 0.9em;
    color: #a0a0a0;
    margin-bottom: 15px;
}

.page-news-item-excerpt {
    font-size: 1em;
    color: #e0e0e0;
    line-height: 1.7;
    margin-bottom: 20px;
    flex-grow: 1;
    /* Truncate text for grid view, full content will be on detail page */
    display: -webkit-box;
    -webkit-line-clamp: 6; /* Limit to 6 lines */
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

.page-news-item .page-news-btn {
    align-self: flex-start;
    margin-top: auto; /* Push button to bottom */
}

/* Pagination */
.page-news-pagination {
    text-align: center;
    margin-top: 60px;
}

.page-news-pagination-link {
    display: inline-block;
    padding: 12px 20px;
    margin: 0 8px;
    border-radius: 6px;
    text-decoration: none;
    color: #FFD700;
    background-color: #1A237E;
    border: 1px solid #FFD700;
    transition: background-color 0.3s ease, color 0.3s ease;
    font-weight: bold;
}

.page-news-pagination-link:hover {
    background-color: #FFD700;
    color: #1A237E;
}

.page-news-pagination-link-active {
    background-color: #FFD700;
    color: #1A237E;
    cursor: default;
}

/* Bottom CTA Section */
.page-news-cta-bottom {
    background: linear-gradient(135deg, #1A237E, #0d123d);
    padding: 80px 0;
    text-align: center;
    color: #ffffff;
    border-top: 5px solid #FFD700;
}

.page-news-cta-title {
    font-size: 2.8em;
    color: #FFD700;
    margin-bottom: 20px;
    line-height: 1.2;
}

.page-news-cta-description {
    font-size: 1.2em;
    max-width: 700px;
    margin: 0 auto 40px auto;
    color: #e0e0e0;
}

.page-news-cta-buttons {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
}

/* Responsive Design */
@media (max-width: 992px) {
    .page-news-hero-title {
        font-size: 2.8em;
    }
    .page-news-hero-description {
        font-size: 1.1em;
    }
    .page-news-section-title {
        font-size: 2.2em;
    }
    .page-news-item-title {
        font-size: 1.5em;
    }
    .page-news-cta-title {
        font-size: 2.2em;
    }
}

@media (max-width: 768px) {
    .page-news-hero-section,
    .page-news-articles-section,
    .page-news-cta-bottom {
        padding: 60px 0;
    }
    .page-news-hero-title {
        font-size: 2.2em;
    }
    .page-news-hero-description {
        font-size: 1em;
    }
    .page-news-section-title {
        font-size: 1.8em;
    }
    .page-news-item-image {
        height: 200px;
    }
    .page-news-item-title {
        font-size: 1.3em;
    }
    .page-news-item-excerpt {
        -webkit-line-clamp: 5;
    }
    .page-news-btn {
        padding: 12px 25px;
        font-size: 1em;
    }
    .page-news-cta-title {
        font-size: 1.8em;
    }
    .page-news-cta-description {
        font-size: 1em;
    }
}

@media (max-width: 480px) {
    .page-news-hero-title {
        font-size: 1.8em;
    }
    .page-news-hero-description {
        font-size: 0.9em;
    }
    .page-news-section-title {
        font-size: 1.6em;
    }
    .page-news-item-title {
        font-size: 1.2em;
    }
    .page-news-item-excerpt {
        -webkit-line-clamp: 4;
    }
    .page-news-article-grid {
        grid-template-columns: 1fr;
    }
    .page-news-btn {
        padding: 10px 20px;
        font-size: 0.9em;
    }
    .page-news-cta-title {
        font-size: 1.6em;
    }
    .page-news-cta-description {
        font-size: 0.9em;
    }
    .page-news-pagination-link {
        padding: 8px 15px;
        margin: 0 5px;
    }
}