/* style/news.css */
/* Custom Colors */
:root {
    --page-news-bg-color: #08160F;
    --page-news-card-bg: #11271B;
    --page-news-text-main: #F2FFF6;
    --page-news-text-secondary: #A7D9B8;
    --page-news-border-color: #2E7A4E;
    --page-news-btn-gradient: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
    --page-news-glow-color: #57E38D;
    --page-news-gold-color: #F2C14E;
    --page-news-divider-color: #1E3A2A;
    --page-news-deep-green: #0A4B2C;
}

.page-news {
    background-color: var(--page-news-bg-color);
    color: var(--page-news-text-main);
    font-family: Arial, sans-serif;
    line-height: 1.6;
}

.page-news__hero-section {
    position: relative;
    display: flex;
    flex-direction: column; /* Ensure image is above text */
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 60px 20px;
    padding-top: 10px; /* Small top padding, body handles --header-offset */
    overflow: hidden;
    background-color: var(--page-news-deep-green); /* A darker shade for hero background */
}

.page-news__hero-image-wrapper {
    width: 100%;
    max-width: 100%;
    margin-bottom: 20px; /* Space between image and content */
    box-sizing: border-box;
}

.page-news__hero-image {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    border-radius: 8px;
    max-width: 1200px; /* Adjust based on display width attribute */
    margin: 0 auto;
}

.page-news__hero-content {
    max-width: 900px;
    margin: 0 auto;
    padding: 20px;
}

.page-news__main-title {
    font-size: clamp(2em, 4vw, 3.2em); /* Using clamp as required */
    color: var(--page-news-gold-color);
    font-weight: bold;
    margin-bottom: 15px;
    line-height: 1.2;
    letter-spacing: -0.5px;
}

.page-news__description {
    font-size: 1.1em;
    color: var(--page-news-text-secondary);
    margin-bottom: 30px;
}

.page-news__btn-primary {
    display: inline-block;
    background: var(--page-news-btn-gradient);
    color: #ffffff;
    padding: 12px 30px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.page-news__btn-primary:hover {
    opacity: 0.9;
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.page-news__btn-secondary {
    display: inline-block;
    background: transparent;
    color: var(--page-news-text-main);
    border: 2px solid var(--page-news-border-color);
    padding: 10px 25px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s ease;
    cursor: pointer;
}

.page-news__btn-secondary:hover {
    background: var(--page-news-border-color);
    color: #ffffff;
}

.page-news__section {
    padding: 60px 0;
    border-bottom: 1px solid var(--page-news-divider-color);
}

.page-news__section:last-of-type {
    border-bottom: none;
}

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

.page-news__section-title {
    font-size: clamp(1.8em, 3vw, 2.5em);
    color: var(--page-news-text-main);
    text-align: center;
    margin-bottom: 20px;
    font-weight: bold;
}

.page-news__section-description {
    font-size: 1em;
    color: var(--page-news-text-secondary);
    text-align: center;
    margin-bottom: 40px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.page-news__latest-news .page-news__section-description {
    margin-bottom: 20px; /* Adjust for news grid */
}

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

.page-news__news-card {
    background-color: var(--page-news-card-bg);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

.page-news__news-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.page-news__card-image {
    width: 100%;
    height: 225px; /* Fixed height for consistency */
    object-fit: cover;
    display: block;
    min-height: 200px; /* Ensure minimum size */
}

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

.page-news__card-title {
    font-size: 1.3em;
    margin-bottom: 10px;
    font-weight: bold;
}

.page-news__card-title a {
    color: var(--page-news-text-main);
    text-decoration: none;
    transition: color 0.3s ease;
}

.page-news__card-title a:hover {
    color: var(--page-news-gold-color);
}

.page-news__card-meta {
    font-size: 0.9em;
    color: var(--page-news-text-secondary);
    margin-bottom: 15px;
}

.page-news__card-excerpt {
    font-size: 0.95em;
    color: var(--page-news-text-secondary);
    margin-bottom: 20px;
    flex-grow: 1; /* Pushes the link to the bottom */
}

.page-news__card-link {
    display: inline-block;
    color: var(--page-news-gold-color);
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s ease;
}

.page-news__card-link:hover {
    text-decoration: underline;
    color: var(--page-news-glow-color);
}

.page-news__cta-area {
    text-align: center;
}

.page-news__content-block {
    font-size: 1em;
    color: var(--page-news-text-secondary);
    max-width: 900px;
    margin: 0 auto 40px auto;
}

.page-news__content-block h3 {
    font-size: 1.4em;
    color: var(--page-news-text-main);
    margin-top: 30px;
    margin-bottom: 15px;
}

.page-news__content-block p {
    margin-bottom: 1em;
}

.page-news__content-block ul {
    list-style-type: disc;
    margin-left: 20px;
    margin-bottom: 1em;
}

.page-news__content-block li {
    margin-bottom: 0.5em;
}

.page-news__dark-section {
    background-color: var(--page-news-deep-green);
    color: var(--page-news-text-main);
}

.page-news__dark-section .page-news__section-title {
    color: var(--page-news-gold-color);
}

.page-news__dark-section .page-news__section-description {
    color: var(--page-news-text-secondary);
}

/* Responsive Design */
@media (max-width: 1024px) {
    .page-news__hero-section {
        padding: 40px 15px;
        padding-top: 10px;
    }
    .page-news__main-title {
        font-size: clamp(2em, 5vw, 2.8em);
    }
    .page-news__description {
        font-size: 1em;
    }
    .page-news__section {
        padding: 40px 0;
    }
    .page-news__news-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: 20px;
    }
}

@media (max-width: 768px) {
    /* Mobile image responsiveness */
    .page-news img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    
    .page-news__hero-image {
        height: auto !important; /* Override fixed height for hero on mobile */
    }

    /* Mobile video responsiveness - no videos on this page, but keeping for compliance */
    .page-news video,
    .page-news__video {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    .page-news__video-section,
    .page-news__video-container,
    .page-news__video-wrapper {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        overflow: hidden !important;
    }
    .page-news__video-section {
        padding-top: 10px !important;
    }

    /* Mobile button responsiveness */
    .page-news__btn-primary,
    .page-news__btn-secondary,
    .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-left: 15px !important; /* Ensure padding is applied */
        padding-right: 15px !important; /* Ensure padding is applied */
        text-align: center; /* Center button text if it wraps */
    }
    
    .page-news__cta-buttons,
    .page-news__button-group,
    .page-news__btn-container,
    .page-news__cta-area {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px !important;
        padding-right: 15px !important;
        flex-wrap: wrap !important;
        gap: 10px;
        display: flex; /* Ensure flex behavior for wrapping */
        flex-direction: column; /* Stack buttons vertically */
    }

    .page-news__container {
        padding: 0 15px;
    }
    .page-news__hero-section {
        padding: 30px 15px;
        padding-top: 10px;
    }
    .page-news__main-title {
        font-size: clamp(1.8em, 7vw, 2.5em);
    }
    .page-news__section-title {
        font-size: clamp(1.6em, 6vw, 2.2em);
    }
    .page-news__news-grid {
        grid-template-columns: 1fr; /* Stack cards vertically */
    }
    .page-news__card-image {
        height: 200px; /* Adjust height for mobile */
    }
    .page-news__content-block, .page-news__section-description {
        padding: 0 5px; /* Slight padding for text blocks */
    }
}

/* Image color filter restriction compliance */
.page-news img {
    filter: none; /* Explicitly ensure no filters are applied */
}