/* style/news.css */

/* Base styles for the page-news scope */
.page-news {
    font-family: Arial, sans-serif;
    color: var(--text-main); /* Light text for dark background */
    background-color: var(--background-color); /* Matches body background: #08160F */
    line-height: 1.6;
}

/* Color variables from custom palette */
:root {
    --primary-color: #11A84E;
    --secondary-color: #22C768;
    --button-gradient: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
    --card-bg: #11271B;
    --background-color: #08160F;
    --text-main: #F2FFF6;
    --text-secondary: #A7D9B8;
    --border-color: #2E7A4E;
    --glow-color: #57E38D;
    --gold-color: #F2C14E;
    --divider-color: #1E3A2A;
    --deep-green: #0A4B2C;
}

/* Section padding and max-width */
.page-news__hero-section,
.page-news__video-section,
.page-news__content-area,
.page-news__cta-section {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
    box-sizing: border-box;
}

/* Hero Section */
.page-news__hero-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding-top: 10px;
    gap: 20px;
}

.page-news__hero-image {
    width: 100%;
    height: auto;
    border-radius: 8px;
    object-fit: cover;
    display: block;
    min-height: 200px;
}

.page-news__hero-content {
    max-width: 800px;
}

.page-news__main-title {
    color: var(--text-main);
    font-weight: bold;
    line-height: 1.2;
    letter-spacing: -0.02em;
    margin-bottom: 15px;
}

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

/* Video Section */
.page-news__video-section {
    padding-top: 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 20px;
}

.page-news__video-container {
    width: 100%;
    max-width: 900px;
    position: relative;
    box-sizing: border-box;
}

.page-news__video-wrapper {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    background-color: var(--card-bg);
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.page-news__video-overlay-link {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10;
    cursor: pointer;
}

.page-news__video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
    display: block;
    cursor: pointer;
}

.page-news__video-caption {
    color: var(--text-secondary);
    font-size: 0.95em;
    margin-top: 15px;
}

/* Section Titles */
.page-news__section-title {
    color: var(--text-main);
    font-weight: bold;
    text-align: center;
    margin-bottom: 30px;
    font-size: clamp(1.8em, 2.5vw, 2.5em);
}

/* Text Blocks */
.page-news__text-block {
    color: var(--text-secondary);
    margin-bottom: 20px;
    text-align: justify;
}

/* Buttons */
.page-news__cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 30px;
}

.page-news__btn-primary,
.page-news__btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 25px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s ease;
    min-width: 180px;
    max-width: 100%;
    box-sizing: border-box;
    white-space: normal;
    word-wrap: break-word;
    text-align: center;
}

.page-news__btn-primary {
    background: var(--button-gradient);
    color: #ffffff;
    border: 2px solid transparent;
    box-shadow: 0 4px 10px rgba(42, 209, 111, 0.4);
}

.page-news__btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(42, 209, 111, 0.6);
}

.page-news__btn-secondary {
    background: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.page-news__btn-secondary:hover {
    background: var(--primary-color);
    color: #ffffff;
    transform: translateY(-2px);
}

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

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

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

.page-news__article-image {
    width: 100%;
    height: 225px;
    object-fit: cover;
    display: block;
    min-height: 200px;
}

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

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

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

.page-news__article-title a:hover {
    color: var(--primary-color);
}

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

.page-news__article-excerpt {
    color: var(--text-secondary);
    font-size: 0.95em;
    line-height: 1.5;
    margin-bottom: 20px;
    flex-grow: 1;
}

.page-news__read-more {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: bold;
    align-self: flex-start;
    transition: color 0.3s ease;
}

.page-news__read-more:hover {
    text-decoration: underline;
    color: var(--glow-color);
}

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

/* CTA Section */
.page-news__cta-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 40px;
    background-color: var(--card-bg);
    border-radius: 10px;
    padding: 60px 40px;
    margin-top: 60px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
    text-align: center;
}

.page-news__cta-content {
    max-width: 700px;
}

.page-news__cta-image {
    width: 100%;
    max-width: 600px;
    height: auto;
    border-radius: 8px;
    object-fit: cover;
    min-height: 200px;
}

/* FAQ Section */
.page-news__faq-section {
    margin-top: 60px;
}

.page-news__faq-list {
    margin-top: 30px;
}

.page-news__faq-item {
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
    transition: background-color 0.3s ease;
}

.page-news__faq-item[open] {
    background-color: var(--deep-green);
}

.page-news__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 25px;
    cursor: pointer;
    font-weight: bold;
    color: var(--text-main);
    font-size: 1.1em;
    transition: color 0.3s ease;
}

.page-news__faq-question:hover {
    color: var(--primary-color);
}

.page-news__faq-item summary {
    list-style: none;
}

.page-news__faq-item summary::-webkit-details-marker {
    display: none;
}

.page-news__faq-toggle {
    font-size: 1.5em;
    line-height: 1;
    margin-left: 15px;
    color: var(--primary-color);
}

.page-news__faq-answer {
    padding: 0 25px 20px;
    color: var(--text-secondary);
    font-size: 1em;
    line-height: 1.6;
}

.page-news__faq-answer p {
    margin-bottom: 10px;
}

.page-news__faq-answer p:last-child {
    margin-bottom: 0;
}

/* Links within content */
.page-news a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

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

/* Responsive Styles */
@media (max-width: 768px) {
    .page-news__hero-section,
    .page-news__video-section,
    .page-news__content-area,
    .page-news__cta-section {
        padding: 20px 15px;
    }

    .page-news__main-title {
        font-size: clamp(2em, 8vw, 2.5em);
    }

    .page-news__section-title {
        font-size: clamp(1.5em, 6vw, 2em);
    }

    /* Images responsiveness */
    .page-news img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    
    .page-news__hero-image,
    .page-news__article-image,
    .page-news__cta-image {
        min-height: 200px !important;
    }

    /* Image/Video containers responsiveness */
    .page-news__hero-section,
    .page-news__video-section,
    .page-news__content-area,
    .page-news__cta-section,
    .page-news__articles-grid,
    .page-news__article-card,
    .page-news__video-container,
    .page-news__video-wrapper,
    .page-news__faq-list,
    .page-news__faq-item {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
    }

    /* Videos responsiveness */
    .page-news video,
    .page-news__video {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }

    /* Buttons responsiveness */
    .page-news__cta-buttons {
        flex-direction: column;
        gap: 15px;
        max-width: 100% !important;
        width: 100% !important;
        padding-left: 15px;
        padding-right: 15px;
    }

    .page-news__btn-primary,
    .page-news__btn-secondary {
        max-width: 100% !important;
        width: 100% !important;
        min-width: unset;
        padding: 12px 15px;
        white-space: normal !important;
        word-wrap: break-word !important;
    }

    .page-news__cta-section {
        flex-direction: column;
        padding: 30px 15px;
    }

    .page-news__article-card {
        padding: 0;
    }
    
    .page-news__article-image {
        height: auto;
    }

    .page-news__video-section {
        padding-top: 10px !important;
    }
}