/* style/news.css */

/* Base styles for the news page */
.page-news {
    font-family: 'Arial', sans-serif;
    color: #FFF3E6; /* Text Main color, chosen for contrast with #0D0E12 body background */
    background-color: #0D0E12; /* Background color from custom palette */
    line-height: 1.6;
}

/* Hero Section */
.page-news__hero-section {
    position: relative;
    width: 100%;
    display: flex;
    flex-direction: column; /* Ensure image is above content for desktop */
    align-items: center;
    justify-content: center;
    padding: 10px 20px 60px; /* Small top padding, larger bottom padding */
    text-align: center;
    overflow: hidden; /* Prevent content overflow */
}

.page-news__hero-image-wrapper {
    width: 100%;
    max-height: 500px; /* Limit height of hero image wrapper */
    overflow: hidden;
    margin-bottom: 30px; /* Space between image and content */
}

.page-news__hero-image {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    filter: none; /* Ensure no CSS filter changes image color */
}

.page-news__hero-content {
    max-width: 900px;
    margin: 0 auto;
    z-index: 1;
}

.page-news__main-title {
    font-size: clamp(2.2rem, 4vw, 3.5rem); /* Responsive font size */
    font-weight: 700;
    color: #FFF3E6; /* Text Main */
    margin-bottom: 20px;
    line-height: 1.2;
}

.page-news__description {
    font-size: 1.1rem;
    color: #f0f0f0;
    margin-bottom: 30px;
}

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

/* CTA Button Styles */
.page-news__cta-button {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    box-sizing: border-box;
    white-space: normal; /* Allow text wrapping */
    word-wrap: break-word; /* Allow text breaking */
}

.page-news__btn-primary {
    background: linear-gradient(180deg, #FFA53A 0%, #D96800 100%); /* Button gradient */
    color: #FFF3E6; /* Text Main */
    border: none;
}

.page-news__btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.page-news__btn-secondary {
    background: transparent;
    color: #FF8C1A; /* Main color */
    border: 2px solid #FF8C1A; /* Main color for border */
    margin-left: 20px;
}

.page-news__btn-secondary:hover {
    background: #FF8C1A; /* Main color */
    color: #FFF3E6; /* Text Main */
}

/* Articles Section */
.page-news__articles-section {
    padding: 60px 0;
    background-color: #0D0E12; /* Background color from custom palette */
}

.page-news__section-title {
    font-size: clamp(1.8rem, 3vw, 2.8rem);
    font-weight: 700;
    color: #FFF3E6; /* Text Main */
    text-align: center;
    margin-bottom: 40px;
}

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

.page-news__article-card {
    background-color: #17191F; /* Card BG color */
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

.page-news__article-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

.page-news__article-link {
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.page-news__article-thumbnail {
    width: 100%;
    height: 200px; /* Fixed height for thumbnails */
    object-fit: cover;
    display: block;
    min-width: 200px; /* Minimum size requirement */
    min-height: 200px; /* Minimum size requirement */
    filter: none; /* Ensure no CSS filter changes image color */
}

.page-news__article-content {
    padding: 25px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    color: #FFF3E6; /* Text Main for card content */
}

.page-news__article-title {
    font-size: 1.4rem;
    font-weight: 600;
    color: #FF8C1A; /* Main color for title */
    margin-bottom: 10px;
    line-height: 1.3;
}

.page-news__article-meta {
    font-size: 0.9rem;
    color: #A84F0C; /* Border color for meta info */
    margin-bottom: 15px;
}

.page-news__article-excerpt {
    font-size: 1rem;
    color: #f0f0f0;
    margin-bottom: 20px;
}

.page-news__view-all-button-wrapper {
    text-align: center;
    margin-top: 40px;
}

/* CTA Section at the bottom */
.page-news__cta-section {
    padding: 80px 0;
    background-color: #17191F; /* Card BG, but using as a dark section */
    text-align: center;
}

.page-news__cta-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px;
}

.page-news__cta-text-content {
    max-width: 800px;
    margin: 0 auto;
}

.page-news__cta-title {
    font-size: clamp(1.8rem, 3.5vw, 3rem);
    font-weight: 700;
    color: #FFF3E6; /* Text Main */
    margin-bottom: 20px;
}

.page-news__cta-description {
    font-size: 1.1rem;
    color: #f0f0f0;
    margin-bottom: 30px;
}

.page-news__cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    width: 100%; /* Ensure container takes full width for responsiveness */
    max-width: 600px; /* Limit max width for button group */
}

/* Responsive Styles */
@media (max-width: 1024px) {
    .page-news__hero-section {
        padding-bottom: 40px;
    }

    .page-news__hero-image-wrapper {
        max-height: 400px;
    }

    .page-news__main-title {
        font-size: clamp(2rem, 5vw, 3rem);
    }

    .page-news__description {
        font-size: 1rem;
    }

    .page-news__article-title {
        font-size: 1.3rem;
    }
}

@media (max-width: 768px) {
    .page-news {
        font-size: 16px;
        line-height: 1.6;
    }

    .page-news__hero-section {
        padding: 10px 15px 40px;
    }

    .page-news__hero-image-wrapper {
        max-height: 300px;
        margin-bottom: 20px;
    }

    .page-news__hero-image,
    .page-news__article-thumbnail {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }

    .page-news__main-title {
        font-size: clamp(1.8rem, 6vw, 2.5rem);
        margin-bottom: 15px;
    }

    .page-news__description {
        font-size: 0.95rem;
        margin-bottom: 25px;
    }

    .page-news__cta-button,
    .page-news a[class*="button"],
    .page-news a[class*="btn"] {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
        padding: 12px 20px;
        font-size: 1rem;
        margin-left: 0 !important; /* Remove margin for single column */
    }

    .page-news__btn-secondary {
        margin-top: 15px; /* Add space between primary and secondary button when stacked */
    }

    .page-news__container,
    .page-news__section,
    .page-news__card,
    .page-news__cta-buttons,
    .page-news__video-section,
    .page-news__video-container,
    .page-news__video-wrapper {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        overflow: hidden !important; /* Prevent horizontal scroll */
        padding-left: 15px;
        padding-right: 15px;
    }

    .page-news__articles-section {
        padding: 40px 0;
    }

    .page-news__section-title {
        font-size: clamp(1.6rem, 5vw, 2.2rem);
        margin-bottom: 30px;
    }

    .page-news__articles-grid {
        grid-template-columns: 1fr;
        gap: 25px;
        padding-left: 0; /* Handled by .page-news__container */
        padding-right: 0; /* Handled by .page-news__container */
    }

    .page-news__article-card {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

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

    .page-news__article-title {
        font-size: 1.2rem;
    }

    .page-news__cta-section {
        padding: 60px 0;
    }

    .page-news__cta-title {
        font-size: clamp(1.6rem, 5.5vw, 2.5rem);
    }

    .page-news__cta-description {
        font-size: 1rem;
    }

    .page-news__cta-buttons {
        flex-direction: column; /* Stack buttons vertically */
        gap: 15px;
        padding-left: 0; /* Handled by .page-news__container */
        padding-right: 0; /* Handled by .page-news__container */
    }
    .page-news__cta-buttons a {
        margin-left: 0 !important; /* Remove margin for stacked buttons */
    }

    /* Specific overrides for containers that need internal padding for content */
    .page-news__hero-content,
    .page-news__cta-text-content {
        padding-left: 15px;
        padding-right: 15px;
    }

    /* Video section mobile padding */
    .page-news__video-section {
        padding-top: 10px !important;
    }
}