/* style/news.css */

/* --- General Page Styles --- */
.page-news {
    color: #f0f0f0; /* Light text for dark body background */
    background-color: #000000; /* Assuming body background is black from shared.css */
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    padding-top: var(--header-offset, 120px); /* Fixed header spacing */
}

.page-news__container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    box-sizing: border-box;
}

.page-news__section-title {
    font-size: 36px;
    font-weight: bold;
    color: #FFD700; /* Gold for main titles */
    text-align: center;
    margin-bottom: 40px;
    position: relative;
    padding-bottom: 15px;
}

.page-news__section-title::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background-color: #0A2A5B; /* Dark blue underline */
    border-radius: 2px;
}

/* --- Hero Section --- */
.page-news__hero-section {
    background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), url('[GALLERY:hero:1920x1080:kubet,news,hero,latest_updates]') no-repeat center center / cover; /* Placeholder for hero background image */
    padding: 100px 20px;
    text-align: center;
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 500px;
}

.page-news__hero-container {
    max-width: 900px;
    margin: 0 auto;
}

.page-news__main-title {
    font-size: 48px;
    font-weight: 900;
    margin-bottom: 20px;
    color: #FFD700; /* Gold for H1 */
    text-shadow: 0 4px 8px rgba(0, 0, 0, 0.5);
}

.page-news__hero-description {
    font-size: 18px;
    margin-bottom: 30px;
    line-height: 1.8;
    color: #f0f0f0;
}

.page-news__cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap; /* Allow wrapping on smaller screens */
}

.page-news__cta-button {
    display: inline-block;
    padding: 15px 35px;
    border-radius: 8px;
    font-size: 18px;
    font-weight: bold;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    text-align: center;
    white-space: normal; /* Allow text wrapping */
    word-wrap: break-word; /* Allow text wrapping */
}

.page-news__btn-primary {
    background-color: #FFD700; /* Gold button */
    color: #0A2A5B; /* Dark blue text */
    border: 2px solid #FFD700;
}

.page-news__btn-primary:hover {
    background-color: #e6c200;
    border-color: #e6c200;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.3);
}

.page-news__btn-secondary {
    background-color: #0A2A5B; /* Dark blue button */
    color: #ffffff; /* White text */
    border: 2px solid #0A2A5B;
}

.page-news__btn-secondary:hover {
    background-color: #08224a;
    border-color: #08224a;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.3);
}

/* --- Latest Articles Section --- */
.page-news__latest-articles {
    padding: 80px 0;
    background-color: #000000; /* Match body background */
}

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

.page-news__article-item {
    background-color: #1a1a1a; /* Slightly lighter than body for contrast */
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-news__article-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.5);
}

.page-news__article-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

.page-news__article-image {
    width: 100%;
    height: 200px; /* Fixed height for consistency */
    object-fit: cover;
    display: block;
    border-bottom: 1px solid #0A2A5B;
}

.page-news__article-content {
    padding: 20px;
}

.page-news__article-title {
    font-size: 22px;
    font-weight: bold;
    color: #FFD700; /* Gold for article titles */
    margin-bottom: 10px;
    line-height: 1.3;
}

.page-news__article-excerpt {
    font-size: 16px;
    color: #cccccc;
    margin-bottom: 15px;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 3; /* Limit to 3 lines */
    -webkit-box-orient: vertical;
}

.page-news__article-meta {
    display: flex;
    justify-content: space-between;
    font-size: 14px;
    color: #888888;
    border-top: 1px solid #2a2a2a;
    padding-top: 10px;
}

.page-news__article-category {
    background-color: #0A2A5B;
    color: #ffffff;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 13px;
    font-weight: bold;
}

/* --- Pagination --- */
.page-news__pagination {
    display: flex;
    justify-content: center;
    margin-top: 50px;
    gap: 10px;
}

.page-news__pagination-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: #1a1a1a;
    color: #FFD700;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s ease, color 0.3s ease;
    border: 1px solid #0A2A5B;
}

.page-news__pagination-link:hover:not(.page-news__pagination-link--disabled):not(.page-news__pagination-link--active) {
    background-color: #0A2A5B;
    color: #ffffff;
}

.page-news__pagination-link--active {
    background-color: #FFD700;
    color: #0A2A5B;
    border-color: #FFD700;
    cursor: default;
}

.page-news__pagination-link--disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* --- Featured Articles Section --- */
.page-news__featured-articles {
    padding: 80px 0;
    background-color: #0A2A5B; /* Dark blue background */
    color: #ffffff; /* White text for contrast */
}

.page-news__featured-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
}

.page-news__featured-item {
    background-color: #1a1a1a; /* Dark background for contrast */
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    display: flex;
    flex-direction: column;
}

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

.page-news__featured-content {
    padding: 20px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.page-news__featured-title {
    font-size: 24px;
    font-weight: bold;
    margin-bottom: 10px;
    line-height: 1.3;
}

.page-news__featured-title a {
    color: #FFD700; /* Gold for featured titles */
    text-decoration: none;
    transition: color 0.3s ease;
}

.page-news__featured-title a:hover {
    color: #ffffff;
}

.page-news__featured-excerpt {
    font-size: 16px;
    color: #cccccc;
    margin-bottom: 15px;
    flex-grow: 1;
}

.page-news__read-more {
    display: inline-flex;
    align-items: center;
    color: #FFD700;
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s ease;
    margin-top: 10px;
}

.page-news__read-more:hover {
    color: #ffffff;
}

.page-news__read-more-icon {
    margin-left: 8px;
    font-size: 20px;
    line-height: 1;
}

/* --- CTA Banner Section --- */
.page-news__cta-banner {
    padding: 80px 0;
    background-color: #000000;
}

.page-news__cta-banner .page-news__container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background-color: #1a1a1a;
    border-radius: 10px;
    padding: 40px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
    flex-wrap: wrap;
}

.page-news__cta-content {
    flex: 1;
    min-width: 300px;
    padding-right: 30px;
}

.page-news__cta-title {
    font-size: 32px;
    font-weight: bold;
    color: #FFD700;
    margin-bottom: 15px;
    line-height: 1.3;
}

.page-news__cta-description {
    font-size: 18px;
    color: #cccccc;
    margin-bottom: 25px;
}

.page-news__cta-banner .page-news__cta-button {
    margin-top: 0; /* Override default margin */
}

.page-news__cta-image {
    width: 300px;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    display: block;
    margin-left: 30px;
}

/* --- Responsive Design --- */
@media (max-width: 1024px) {
    .page-news__main-title {
        font-size: 40px;
    }

    .page-news__section-title {
        font-size: 30px;
    }

    .page-news__article-title {
        font-size: 20px;
    }

    .page-news__featured-title {
        font-size: 22px;
    }

    .page-news__cta-title {
        font-size: 28px;
    }
}

@media (max-width: 768px) {
    .page-news {
        padding-top: var(--header-offset, 120px) !important; /* Mobile header offset */
        font-size: 16px;
        line-height: 1.6;
    }

    .page-news__container {
        padding: 15px;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        overflow: hidden !important;
    }

    .page-news__hero-section {
        padding: 80px 15px;
        min-height: 400px;
    }

    .page-news__main-title {
        font-size: 32px;
    }

    .page-news__hero-description {
        font-size: 16px;
    }

    .page-news__cta-buttons {
        flex-direction: column;
        gap: 15px;
    }

    .page-news__cta-button {
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
        padding: 12px 25px;
        font-size: 16px;
    }

    .page-news__latest-articles,
    .page-news__featured-articles,
    .page-news__cta-banner {
        padding: 60px 0;
    }

    .page-news__section-title {
        font-size: 28px;
        margin-bottom: 30px;
    }

    .page-news__article-grid {
        grid-template-columns: 1fr;
    }

    .page-news__article-image {
        height: 180px;
    }

    .page-news__article-title {
        font-size: 18px;
    }

    .page-news__featured-grid {
        grid-template-columns: 1fr;
    }

    .page-news__featured-image {
        height: 200px;
    }

    .page-news__cta-banner .page-news__container {
        flex-direction: column;
        text-align: center;
        padding: 30px 20px;
    }

    .page-news__cta-content {
        padding-right: 0;
        margin-bottom: 20px;
    }

    .page-news__cta-title {
        font-size: 24px;
    }

    .page-news__cta-description {
        font-size: 16px;
    }

    .page-news__cta-image {
        width: 100%;
        max-width: 400px;
        margin-left: 0;
        margin-top: 20px;
    }

    /* Image responsiveness */
    .page-news img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }
}

@media (max-width: 480px) {
    .page-news__main-title {
        font-size: 28px;
    }

    .page-news__section-title {
        font-size: 24px;
    }

    .page-news__article-title {
        font-size: 16px;
    }

    .page-news__featured-title {
        font-size: 18px;
    }

    .page-news__cta-title {
        font-size: 22px;
    }
}