/* style/news.css */
.page-news {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #333333; /* Default dark text for light background */
    background-color: #FFFFFF;
}

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

.page-news__hero-section {
    position: relative;
    padding: 100px 0 60px; /* Adjust top padding for header offset */
    padding-top: var(--header-offset, 120px); /* Ensures content is not hidden by fixed header */
    text-align: center;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: #FFFFFF;
    background-color: #017439; /* Primary color for hero */
}

.page-news__hero-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.3;
    z-index: 0;
}

.page-news__hero-section .page-news__container {
    position: relative;
    z-index: 1;
}

.page-news__main-title {
    font-size: 3.5em;
    margin-bottom: 20px;
    line-height: 1.2;
    color: #FFFF00; /* Register/Login font color for prominence */
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.page-news__subtitle {
    font-size: 1.2em;
    margin-bottom: 40px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    color: #FFFFFF;
}

.page-news__section {
    padding: 60px 0;
}

.page-news__section-title {
    font-size: 2.5em;
    color: #017439;
    text-align: center;
    margin-bottom: 20px;
}

.page-news__section-description {
    font-size: 1.1em;
    text-align: center;
    max-width: 800px;
    margin: 0 auto 40px;
    color: #555555;
}

.page-news__dark-section {
    background-color: #017439;
    color: #FFFFFF;
}

.page-news__dark-section .page-news__section-title,
.page-news__dark-section .page-news__section-description {
    color: #FFFFFF;
}

.page-news__light-bg {
    background-color: #FFFFFF;
    color: #333333;
}

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

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

.page-news__dark-section .page-news__article-card,
.page-news__dark-section .page-news__promotion-card {
    background-color: rgba(255, 255, 255, 0.1); /* Slightly transparent white on dark background */
    color: #FFFFFF;
}

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

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

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

.page-news__article-title,
.page-news__promotion-title {
    font-size: 1.5em;
    margin-bottom: 15px;
    line-height: 1.3;
    color: #017439;
}

.page-news__dark-section .page-news__article-title,
.page-news__dark-section .page-news__promotion-title {
    color: #FFFF00;
}

.page-news__article-title a,
.page-news__promotion-title a {
    color: inherit;
    text-decoration: none;
}

.page-news__article-title a:hover,
.page-news__promotion-title a:hover {
    text-decoration: underline;
}

.page-news__article-summary,
.page-news__promotion-summary {
    font-size: 0.95em;
    margin-bottom: 20px;
    flex-grow: 1;
}

.page-news__read-more-link,
.page-news__btn-secondary {
    display: inline-block;
    padding: 10px 20px;
    background-color: #017439;
    color: #FFFFFF;
    text-decoration: none;
    border-radius: 5px;
    transition: background-color 0.3s ease;
    align-self: flex-start;
    border: 2px solid transparent;
}

.page-news__read-more-link:hover,
.page-news__btn-secondary:hover {
    background-color: #005f2e;
}

.page-news__dark-section .page-news__read-more-link,
.page-news__dark-section .page-news__btn-secondary {
    background-color: #FFFF00;
    color: #017439;
}

.page-news__dark-section .page-news__read-more-link:hover,
.page-news__dark-section .page-news__btn-secondary:hover {
    background-color: #ffee00;
}

.page-news__articles-list {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
    margin-top: 40px;
}

.page-news__article-item {
    display: flex;
    align-items: center;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.page-news__dark-section .page-news__article-item {
    background-color: rgba(255, 255, 255, 0.1);
}

.page-news__article-item-image {
    width: 200px;
    height: 150px;
    object-fit: cover;
    border-radius: 5px;
    margin-right: 20px;
    flex-shrink: 0;
}

.page-news__article-item-content {
    flex-grow: 1;
}

.page-news__article-item-title {
    font-size: 1.3em;
    margin-bottom: 10px;
    color: #FFFF00;
}

.page-news__article-item-title a {
    color: inherit;
    text-decoration: none;
}

.page-news__article-item-title a:hover {
    text-decoration: underline;
}

.page-news__article-item-summary {
    font-size: 0.9em;
    color: #FFFFFF;
}

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

.page-news__faq-item {
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
    color: #FFFFFF;
}

.page-news__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    cursor: pointer;
    font-size: 1.1em;
    font-weight: bold;
    background-color: rgba(255, 255, 255, 0.05);
    transition: background-color 0.3s ease;
}

.page-news__faq-question:hover {
    background-color: rgba(255, 255, 255, 0.15);
}

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

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

.page-news__faq-answer {
    max-height: 0;
    overflow: hidden;
    padding: 0 20px;
    transition: max-height 0.3s ease, padding 0.3s ease;
}

.page-news__faq-item.active .page-news__faq-answer {
    max-height: 1000px !important; /* Sufficiently large to contain content */
    padding: 15px 20px;
}

.page-news__faq-answer p {
    margin: 0;
    font-size: 0.95em;
    color: #f0f0f0;
}

.page-news__video-wrapper {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
    height: 0;
    overflow: hidden;
    max-width: 800px;
    margin: 40px auto;
    background-color: #000000;
    border-radius: 10px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

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

.page-news__cta-section {
    padding: 80px 0;
    text-align: center;
    background-color: #017439;
    color: #FFFFFF;
}

.page-news__cta-buttons {
    margin-top: 30px;
}

.page-news__btn-primary {
    display: inline-block;
    padding: 15px 30px;
    background-color: #C30808; /* Register/Login color */
    color: #FFFF00; /* Register/Login font color */
    text-decoration: none;
    border-radius: 8px;
    font-size: 1.2em;
    font-weight: bold;
    transition: background-color 0.3s ease, transform 0.3s ease;
    border: 2px solid transparent;
}

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

/* Responsive adjustments */
@media (max-width: 1024px) {
    .page-news__main-title {
        font-size: 3em;
    }
    .page-news__section-title {
        font-size: 2em;
    }
    .page-news__article-card {
        grid-template-columns: 1fr;
    }
    .page-news__article-image {
        height: 200px;
    }
    .page-news__article-item {
        flex-direction: column;
        text-align: center;
    }
    .page-news__article-item-image {
        margin-right: 0;
        margin-bottom: 15px;
    }
    .page-news__read-more-link,
    .page-news__btn-secondary {
        align-self: center;
    }
}

@media (max-width: 768px) {
    .page-news {
        font-size: 16px;
        line-height: 1.6;
    }
    .page-news__hero-section {
        padding: 80px 0 40px;
        padding-top: var(--header-offset, 120px) !important;
    }
    .page-news__main-title {
        font-size: 2.2em;
    }
    .page-news__subtitle {
        font-size: 1em;
    }
    .page-news__section {
        padding: 40px 0;
    }
    .page-news__section-title {
        font-size: 1.8em;
    }
    .page-news__section-description {
        font-size: 0.95em;
    }
    .page-news__articles-grid,
    .page-news__promotions-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    .page-news__article-card,
    .page-news__promotion-card {
        margin: 0 15px;
    }
    .page-news__article-item {
        flex-direction: column;
        text-align: center;
        padding: 15px;
        margin: 0 15px;
    }
    .page-news__article-item-image {
        margin-right: 0;
        margin-bottom: 15px;
        width: 100% !important;
        height: auto !important;
    }
    .page-news__read-more-link,
    .page-news__btn-secondary {
        align-self: stretch;
        text-align: center;
    }
    .page-news__faq-list {
        margin: 40px 15px 0;
    }
    .page-news__faq-item {
        margin: 0 15px 15px;
    }
    .page-news__video-wrapper {
        margin: 40px 15px;
        padding-bottom: 75%; /* Adjust aspect ratio for mobile if needed, or keep 16:9 */
    }
    .page-news__cta-section .page-news__container {
        padding: 0 15px;
    }
    .page-news__btn-primary {
        font-size: 1em;
        padding: 12px 25px;
        width: 100%;
        box-sizing: border-box;
    }

    /* Mobile responsive for images, videos, buttons */
    .page-news img {
        max-width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    .page-news__section,
    .page-news__card,
    .page-news__container,
    .page-news__article-card,
    .page-news__promotion-card,
    .page-news__article-item,
    .page-news__faq-item,
    .page-news__video-section,
    .page-news__video-container,
    .page-news__video-wrapper,
    .page-news__cta-section {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        overflow-x: hidden !important;
    }
    .page-news__video {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    .page-news__cta-button,
    .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;
    }
    .page-news__cta-buttons,
    .page-news__button-group,
    .page-news__btn-container {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        flex-wrap: wrap !important;
        gap: 10px;
    }
    .page-news__cta-buttons {
        display: flex;
        flex-direction: column;
    }
}

@media (max-width: 480px) {
    .page-news__main-title {
        font-size: 1.8em;
    }
    .page-news__section-title {
        font-size: 1.5em;
    }
    .page-news__article-image,
    .page-news__promotion-image {
        height: 180px;
    }
    .page-news__video-wrapper {
        padding-bottom: 65%; /* Closer to 4:3 for smaller screens if content fits better */
    }
}

/* Contrast Fixes */
.page-news__dark-bg .page-news__section-title {
    color: #FFFFFF;
}

.page-news__dark-bg .page-news__section-description {
    color: #f0f0f0;
}

.page-news__light-bg .page-news__section-title {
    color: #017439;
}

.page-news__light-bg .page-news__section-description {
    color: #555555;
}

.page-news__article-card a,
.page-news__promotion-card a {
    color: inherit;
}

.page-news__article-card .page-news__article-title a,
.page-news__promotion-card .page-news__promotion-title a {
    color: #017439;
}

.page-news__dark-section .page-news__article-card .page-news__article-title a,
.page-news__dark-section .page-news__promotion-card .page-news__promotion-title a {
    color: #FFFF00;
}

.page-news__article-item .page-news__article-item-title a {
    color: #FFFF00;
}

.page-news__read-more-link,
.page-news__btn-secondary {
    color: #FFFFFF;
}

.page-news__dark-section .page-news__read-more-link,
.page-news__dark-section .page-news__btn-secondary {
    color: #017439;
}