/* style/news.css */
.page-news {
    font-family: Arial, sans-serif;
    color: #ffffff; /* Text color for dark body background */
    line-height: 1.6;
    background-color: transparent; /* Body background is #000 from shared.css */
}

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

.page-news__hero-section {
    padding-top: 10px; /* Small top padding, body handles header offset */
    padding-bottom: 40px;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.page-news__hero-image-wrapper {
    width: 100%;
    max-height: 675px; /* Limit height for hero image */
    overflow: hidden;
}

.page-news__hero-image {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

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

.page-news__main-title {
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 15px;
    line-height: 1.2;
}

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

.page-news__cta-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.page-news__btn-primary,
.page-news__btn-secondary {
    display: inline-block;
    padding: 14px 28px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1rem;
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
    max-width: 100%;
    box-sizing: border-box;
    white-space: normal;
    word-wrap: break-word;
    text-align: center;
}

/* Custom colors for Register/Login buttons */
.page-news__btn-primary {
    background-color: #C30808;
    color: #FFFF00;
    border: 2px solid #C30808;
}

.page-news__btn-primary:hover {
    background-color: #a30606;
    border-color: #a30606;
}

.page-news__btn-secondary {
    background-color: #C30808; /* As per custom color rules, both register and login buttons use #C30808 */
    color: #FFFF00; /* As per custom color rules */
    border: 2px solid #C30808;
}

.page-news__btn-secondary:hover {
    background-color: #a30606;
    border-color: #a30606;
}

.page-news__section-title {
    font-size: clamp(2rem, 4vw, 2.8rem);
    color: #ffffff;
    text-align: center;
    margin-bottom: 15px;
    font-weight: 700;
}

.page-news__section-description {
    font-size: 1.05rem;
    color: #f0f0f0;
    text-align: center;
    margin-bottom: 40px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.page-news__dark-section {
    background-color: rgba(1, 116, 57, 0.1); /* Semi-transparent brand color for sections */
    padding: 60px 0;
    margin-bottom: 20px;
}

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

.page-news__news-card,
.page-news__promo-card,
.page-news__insight-card {
    background-color: rgba(255, 255, 255, 0.1); /* Lighter background for cards */
    border-radius: 10px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    color: #ffffff;
}

.page-news__news-card:hover,
.page-news__promo-card:hover,
.page-news__insight-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.page-news__news-image-wrapper,
.page-news__promo-image-wrapper,
.page-news__insight-image-wrapper {
    width: 100%;
    height: 225px;
    overflow: hidden;
}

.page-news__news-image,
.page-news__promo-image,
.page-news__insight-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.page-news__news-content,
.page-news__promo-content,
.page-news__insight-content {
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.page-news__news-date,
.page-news__promo-date,
.page-news__insight-date {
    font-size: 0.9rem;
    color: #b0b0b0;
    margin-bottom: 10px;
}

.page-news__news-title,
.page-news__promo-title,
.page-news__insight-title {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 10px;
}

.page-news__news-title a,
.page-news__promo-title a,
.page-news__insight-title a {
    color: #ffffff;
    text-decoration: none;
    transition: color 0.3s ease;
}

.page-news__news-title a:hover,
.page-news__promo-title a:hover,
.page-news__insight-title a:hover {
    color: #017439; /* Brand color on hover */
}

.page-news__news-excerpt,
.page-news__promo-excerpt,
.page-news__insight-excerpt {
    font-size: 0.95rem;
    color: #e0e0e0;
    margin-bottom: 15px;
    flex-grow: 1;
}

.page-news__read-more-btn {
    display: inline-block;
    padding: 8px 15px;
    background-color: #017439;
    color: #ffffff;
    text-decoration: none;
    border-radius: 5px;
    font-size: 0.9rem;
    align-self: flex-start;
    transition: background-color 0.3s ease;
}

.page-news__read-more-btn:hover {
    background-color: #005a2d;
}

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

.page-news__view-all-btn {
    display: inline-block;
    padding: 12px 25px;
    background-color: #017439;
    color: #ffffff;
    text-decoration: none;
    border-radius: 8px;
    font-weight: bold;
    font-size: 1.05rem;
    transition: background-color 0.3s ease;
}

.page-news__view-all-btn:hover {
    background-color: #005a2d;
}

.page-news__cta-section {
    text-align: center;
    padding: 80px 0;
    background-color: rgba(1, 116, 57, 0.2); /* Slightly darker brand color for CTA */
    margin-top: 40px;
}

.page-news__cta-title {
    font-size: clamp(2.2rem, 4.5vw, 3rem);
    color: #ffffff;
    margin-bottom: 20px;
    font-weight: 700;
}

.page-news__cta-description {
    font-size: 1.1rem;
    color: #f0f0f0;
    margin-bottom: 40px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

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

.page-news__faq-list {
    max-width: 900px;
    margin: 0 auto;
    margin-top: 40px;
}

.page-news__faq-item {
    background-color: rgba(255, 255, 255, 0.08); /* Slightly lighter background for FAQ items */
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
    color: #ffffff;
}

.page-news__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 25px;
    font-size: 1.15rem;
    font-weight: 600;
    cursor: pointer;
    color: #ffffff;
    background-color: rgba(1, 116, 57, 0.2); /* Brand color for FAQ question background */
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    list-style: none; /* For details/summary */
}

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

.page-news__faq-question:hover {
    background-color: rgba(1, 116, 57, 0.3);
}

.page-news__faq-toggle {
    font-size: 1.5rem;
    line-height: 1;
    margin-left: 15px;
    transition: transform 0.3s ease;
}

.page-news__faq-item[open] .page-news__faq-toggle {
    transform: rotate(45deg); /* Plus sign rotates to X */
}

.page-news__faq-answer {
    padding: 20px 25px;
    font-size: 1rem;
    color: #e0e0e0;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.page-news__faq-answer p {
    margin: 0;
    color: #e0e0e0;
}

.page-news__faq-answer a {
    color: #FFFF00; /* Yellow for links in FAQ answer */
    text-decoration: underline;
}

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

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

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

    .page-news__hero-content {
        padding: 15px;
    }

    .page-news__main-title {
        font-size: 2.2rem;
    }

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

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

    .page-news__btn-primary,
    .page-news__btn-secondary {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding: 12px 20px;
        font-size: 0.95rem;
    }

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

    .page-news__section-description {
        font-size: 0.95rem;
        margin-bottom: 30px;
    }

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

    .page-news__news-grid,
    .page-news__promo-grid,
    .page-news__insights-grid {
        grid-template-columns: 1fr;
        gap: 20px;
        margin-bottom: 30px;
    }

    .page-news__news-card,
    .page-news__promo-card,
    .page-news__insight-card {
        margin: 0 15px; /* Add horizontal padding for cards */
    }

    .page-news__news-image-wrapper,
    .page-news__promo-image-wrapper,
    .page-news__insight-image-wrapper {
        height: 180px;
    }

    .page-news__news-title,
    .page-news__promo-title,
    .page-news__insight-title {
        font-size: 1.15rem;
    }

    .page-news__news-excerpt,
    .page-news__promo-excerpt,
    .page-news__insight-excerpt {
        font-size: 0.9rem;
    }

    .page-news__read-more-btn {
        padding: 7px 12px;
        font-size: 0.85rem;
    }

    .page-news__view-all-btn {
        padding: 10px 20px;
        font-size: 1rem;
    }

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

    .page-news__cta-title {
        font-size: 2rem;
    }

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

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

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

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

    .page-news__faq-toggle {
        font-size: 1.3rem;
    }

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

    /* Forced image responsiveness */
    .page-news img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
    }
    
    .page-news__hero-image-wrapper,
    .page-news__news-image-wrapper,
    .page-news__promo-image-wrapper,
    .page-news__insight-image-wrapper,
    .page-news__container,
    .page-news__section,
    .page-news__card {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        overflow: hidden !important;
    }
    .page-news__container {
        padding-left: 15px !important;
        padding-right: 15px !important;
    }
    .page-news__cta-buttons {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
    }
}

@media (max-width: 1024px) {
    .page-news__container {
        padding: 20px;
    }
    .page-news__hero-content {
        max-width: 700px;
    }
    .page-news__news-grid,
    .page-news__promo-grid,
    .page-news__insights-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: 25px;
    }
    .page-news__hero-image-wrapper {
        max-height: 500px;
    }
}