/* style/news.css */
:root {
    --primary-color: #11A84E;
    --secondary-color: #22C768;
    --button-gradient: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
    --card-bg: #11271B;
    --background-color-page: #08160F; /* Specific page background to ensure contrast */
    --text-main-color: #F2FFF6;
    --text-secondary-color: #A7D9B8;
    --border-color: #2E7A4E;
    --glow-color: #57E38D;
    --gold-color: #F2C14E;
    --divider-color: #1E3A2A;
    --deep-green-color: #0A4B2C;
}

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

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

.page-news__hero-section {
    position: relative;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 10px 0 60px 0; /* body handles top padding, add small for visual */
    overflow: hidden;
    background-color: var(--deep-green-color);
}

.page-news__hero-image-wrapper {
    width: 100%;
    max-height: 675px; /* Adjust as needed for aspect ratio */
    overflow: hidden;
    position: relative;
}

.page-news__hero-image {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    object-position: center;
    min-height: 200px; /* Ensure minimum size */
}

.page-news__hero-content {
    position: relative;
    z-index: 10;
    padding: 40px 20px;
    max-width: 900px;
    margin-top: 40px;
}

.page-news__main-title {
    color: var(--text-main-color);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 20px;
    text-shadow: 0 0 10px rgba(0, 255, 0, 0.5);
    text-transform: uppercase;
}

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

.page-news__btn-primary {
    display: inline-block;
    background: var(--button-gradient);
    color: var(--text-main-color);
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 700;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    min-width: 200px; /* Ensure minimum button size */
    text-align: center;
    box-sizing: border-box;
}

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

.page-news__featured-section,
.page-news__latest-news-section,
.page-news__cta-section,
.page-news__faq-section {
    padding: 60px 0;
    border-bottom: 1px solid var(--divider-color);
}

.page-news__section-title {
    color: var(--gold-color);
    font-size: 2.5em;
    text-align: center;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-shadow: 0 0 8px rgba(242, 193, 78, 0.4);
}

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

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

.page-news__card {
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

.page-news__card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 25px rgba(0, 255, 0, 0.4);
}

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

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

.page-news__card-title {
    font-size: 1.4em;
    margin-bottom: 10px;
    line-height: 1.4;
    flex-grow: 1;
}

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

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

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

.page-news__card-text {
    color: var(--text-secondary-color);
    font-size: 1em;
    margin-bottom: 20px;
}

.page-news__btn-secondary {
    display: inline-block;
    background: none;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
    padding: 10px 20px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    min-width: 120px; /* Ensure minimum button size */
    text-align: center;
    box-sizing: border-box;
}

.page-news__btn-secondary:hover {
    background: var(--primary-color);
    color: var(--text-main-color);
    box-shadow: 0 4px 10px rgba(17, 168, 78, 0.4);
}

.page-news__news-list {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
}

.page-news__news-item {
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    overflow: hidden;
    display: flex;
    align-items: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-news__news-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 255, 0, 0.3);
}

.page-news__news-image {
    width: 250px;
    height: 180px;
    object-fit: cover;
    display: block;
    flex-shrink: 0;
    min-width: 200px; /* Ensure minimum size */
    min-height: 150px; /* Ensure minimum size */
}

.page-news__news-content {
    padding: 20px;
    flex-grow: 1;
}

.page-news__news-title {
    font-size: 1.2em;
    margin-bottom: 8px;
    line-height: 1.3;
}

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

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

.page-news__news-meta {
    color: var(--text-secondary-color);
    font-size: 0.85em;
    margin-bottom: 10px;
}

.page-news__news-excerpt {
    color: var(--text-secondary-color);
    font-size: 0.95em;
    margin-bottom: 15px;
}

.page-news__btn-text {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.page-news__btn-text:hover {
    color: var(--gold-color);
}

.page-news__btn-text span {
    margin-left: 5px;
}

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

.page-news__cta-card {
    background-color: var(--deep-green-color);
    border-radius: 12px;
    display: flex;
    align-items: center;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
    position: relative;
    min-height: 200px; /* Ensure minimum card size */
}

.page-news__cta-image {
    width: 50%;
    height: 100%;
    object-fit: cover;
    display: block;
    min-width: 200px; /* Ensure minimum size */
    min-height: 200px; /* Ensure minimum size */
}

.page-news__cta-content {
    padding: 40px;
    width: 50%;
    box-sizing: border-box;
}

.page-news__cta-title {
    color: var(--gold-color);
    font-size: 2em;
    margin-bottom: 15px;
    line-height: 1.3;
    text-shadow: 0 0 6px rgba(242, 193, 78, 0.3);
}

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

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

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

.page-news__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    cursor: pointer;
    font-size: 1.2em;
    font-weight: 600;
    color: var(--text-main-color);
    transition: background-color 0.3s ease;
    user-select: none;
    list-style: none; /* For details/summary */
}

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

.page-news__faq-question:hover {
    background-color: var(--deep-green-color);
}

.page-news__faq-toggle {
    font-size: 1.5em;
    line-height: 1;
    transition: transform 0.3s ease;
    color: var(--primary-color);
}

.page-news__faq-item[open] .page-news__faq-toggle {
    transform: rotate(45deg);
}

.page-news__faq-answer {
    padding: 0 25px 20px 25px;
    color: var(--text-secondary-color);
    font-size: 1em;
    line-height: 1.7;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s ease-out;
}

.page-news__faq-item[open] .page-news__faq-answer {
    max-height: 500px; /* Sufficient height for content */
    transition: max-height 0.5s ease-in;
}

/* Responsive Styles */
@media (max-width: 992px) {
    .page-news__hero-content {
        padding: 30px 20px;
    }

    .page-news__main-title {
        font-size: 2.5em;
    }

    .page-news__section-title {
        font-size: 2em;
    }

    .page-news__news-item {
        flex-direction: column;
        text-align: center;
    }

    .page-news__news-image {
        width: 100%;
        height: 220px;
        min-width: unset;
        min-height: 200px; /* Ensure minimum size */
    }

    .page-news__cta-card {
        flex-direction: column;
    }

    .page-news__cta-image,
    .page-news__cta-content {
        width: 100%;
        min-width: unset;
        padding: 30px;
    }
    .page-news__cta-image {
        height: 300px;
    }
}

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

    .page-news__container {
        padding-left: 15px;
        padding-right: 15px;
    }

    .page-news__hero-section {
        padding-top: 10px !important;
        padding-bottom: 40px;
    }

    .page-news__hero-image {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
    }

    .page-news__main-title {
        font-size: 2em;
        line-height: 1.3;
    }

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

    .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;
        padding-right: 15px;
        min-width: unset !important;
    }

    .page-news__featured-section,
    .page-news__latest-news-section,
    .page-news__cta-section,
    .page-news__faq-section {
        padding: 40px 0;
    }

    .page-news__section-title {
        font-size: 1.8em;
    }

    .page-news__section-description {
        font-size: 1em;
    }

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

    .page-news__card {
        padding: 0;
        min-height: unset;
    }

    .page-news__card-image {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        min-height: 200px; /* Ensure minimum size */
    }

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

    .page-news__card-title {
        font-size: 1.2em;
    }

    .page-news__news-item {
        flex-direction: column;
        align-items: center;
        text-align: center;
        min-height: unset;
    }

    .page-news__news-image {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        min-height: 200px; /* Ensure minimum size */
    }

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

    .page-news__cta-card {
        min-height: unset;
    }

    .page-news__cta-image {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        min-height: 200px; /* Ensure minimum size */
    }

    .page-news__cta-title {
        font-size: 1.5em;
    }

    .page-news__cta-text {
        font-size: 1em;
    }

    .page-news__faq-question {
        font-size: 1em;
        padding: 15px 20px;
    }

    .page-news__faq-answer {
        padding: 0 20px 15px 20px;
        font-size: 0.95em;
    }

    /* Ensure all image containers are responsive */
    .page-news__section,
    .page-news__card,
    .page-news__container,
    .page-news__hero-image-wrapper,
    .page-news__news-item,
    .page-news__cta-card {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        overflow: hidden !important;
    }
}

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

    .page-news__section-title {
        font-size: 1.6em;
    }

    .page-news__cta-title {
        font-size: 1.3em;
    }
}