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

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

.page-news__hero-section {
    position: relative;
    padding-top: var(--header-offset, 120px);
    padding-bottom: 60px;
    background-color: #f5f5f5;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.page-news__hero-content {
    position: relative;
    z-index: 2;
    margin-bottom: 40px;
}

.page-news__main-title {
    font-size: 3.2em;
    color: #017439;
    margin-bottom: 20px;
    line-height: 1.2;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.1);
}

.page-news__description {
    font-size: 1.2em;
    color: #555555;
    margin-bottom: 30px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.page-news__hero-image-wrapper {
    position: relative;
    width: 100%;
    max-width: 100%;
    overflow: hidden;
    margin-top: 30px;
}

.page-news__hero-image {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.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-title--light {
    color: #FFFFFF;
}

.page-news__section-description {
    font-size: 1.1em;
    color: #666666;
    text-align: center;
    margin-bottom: 40px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

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

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

.page-news__article-card {
    background-color: #FFFFFF;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

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

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

.page-news__article-title {
    font-size: 1.4em;
    margin-bottom: 10px;
    min-height: 60px;
}

.page-news__article-title a {
    color: #017439;
    text-decoration: none;
    transition: color 0.3s ease;
}

.page-news__article-title a:hover {
    color: #005f2e;
}

.page-news__article-excerpt {
    color: #666666;
    font-size: 0.95em;
    margin-bottom: 15px;
    min-height: 70px;
}

.page-news__read-more {
    color: #017439;
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s ease;
}

.page-news__read-more:hover {
    color: #005f2e;
}

.page-news__video-section {
    background-color: #017439;
    color: #FFFFFF;
    text-align: center;
}

.page-news__video-wrapper {
    position: relative;
    width: 100%;
    max-width: 960px;
    margin: 40px auto;
    background-color: #000;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0,0,0,0.3);
}

.page-news__video {
    width: 100%;
    height: auto;
    display: block;
}

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

.page-news__text-block {
    margin-bottom: 20px;
    font-size: 1.05em;
    line-height: 1.7;
    color: #444444;
}

.page-news__subsection-title {
    font-size: 1.8em;
    color: #017439;
    margin-top: 40px;
    margin-bottom: 15px;
}

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

.page-news__promotion-card {
    background-color: #FFFFFF;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    padding: 30px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

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

.page-news__promotion-text {
    color: #666666;
    margin-bottom: 20px;
    min-height: 80px;
}

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

.page-news__faq-item {
    background-color: #FFFFFF;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
}

.page-news__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 25px;
    font-size: 1.15em;
    font-weight: bold;
    color: #017439;
    cursor: pointer;
    background-color: #f9f9f9;
    transition: background-color 0.3s ease;
}

.page-news__faq-question:hover {
    background-color: #f0f0f0;
}

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

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

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

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

.page-news__faq-answer p {
    margin-bottom: 15px;
    font-size: 1em;
}

.page-news__faq-link {
    color: #017439;
    text-decoration: underline;
    font-weight: bold;
}

.page-news__cta-bottom {
    background-color: #017439;
    color: #FFFFFF;
    text-align: center;
}

.page-news__cta-content {
    padding: 40px 20px;
}

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

/* Button styles */
.page-news__cta-button {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1em;
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
    white-space: nowrap;
    cursor: pointer;
}

.page-news__btn-register {
    background-color: #C30808;
    color: #FFFF00;
    border: 2px solid #C30808;
}

.page-news__btn-register:hover {
    background-color: #e00b0b;
    border-color: #e00b0b;
}

.page-news__btn-login {
    background-color: #FFFFFF;
    color: #017439;
    border: 2px solid #017439;
}

.page-news__btn-login:hover {
    background-color: #e0e0e0;
}

.page-news__btn-secondary {
    background-color: #FFFFFF;
    color: #017439;
    border: 2px solid #017439;
}

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

.page-news__btn-register--center, .page-news__btn-secondary--center {
    display: block;
    margin-left: auto;
    margin-right: auto;
    max-width: 300px;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .page-news__main-title {
        font-size: 2.8em;
    }
    .page-news__section-title {
        font-size: 2em;
    }
    .page-news__subsection-title {
        font-size: 1.6em;
    }
    .page-news__article-title {
        font-size: 1.2em;
    }
    .page-news__promotion-title {
        font-size: 1.3em;
    }
}

@media (max-width: 768px) {
    .page-news {
        font-size: 16px;
        line-height: 1.6;
    }
    .page-news__hero-section {
        padding-bottom: 40px;
    }
    .page-news__main-title {
        font-size: 2.2em;
        margin-bottom: 15px;
    }
    .page-news__description {
        font-size: 1em;
        margin-bottom: 20px;
    }
    .page-news__section {
        padding: 40px 0;
    }
    .page-news__section-title {
        font-size: 1.8em;
        margin-bottom: 15px;
    }
    .page-news__section-description {
        font-size: 0.95em;
        margin-bottom: 30px;
    }
    .page-news__articles-grid {
        grid-template-columns: 1fr;
    }
    .page-news__article-image {
        height: 180px;
    }
    .page-news__article-title {
        font-size: 1.1em;
        min-height: auto;
    }
    .page-news__article-excerpt {
        min-height: auto;
    }
    .page-news__video-wrapper {
        margin: 20px auto;
    }
    .page-news__in-depth-analysis .page-news__text-block {
        font-size: 0.95em;
    }
    .page-news__subsection-title {
        font-size: 1.4em;
        margin-top: 30px;
    }
    .page-news__promotions-grid {
        grid-template-columns: 1fr;
    }
    .page-news__promotion-text {
        min-height: auto;
    }
    .page-news__faq-question {
        font-size: 1em;
        padding: 15px 20px;
    }
    .page-news__faq-answer {
        padding: 0 20px;
    }
    .page-news__faq-item.active .page-news__faq-answer {
        padding: 15px 20px;
    }
    .page-news__cta-buttons {
        flex-direction: column;
        gap: 15px;
    }
    .page-news__cta-button {
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
        padding: 12px 20px;
        white-space: normal;
        word-wrap: break-word;
    }

    /* Mobile overflow prevention for images, videos, and containers */
    .page-news img {
        max-width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    .page-news__hero-image-wrapper,
    .page-news__articles-grid,
    .page-news__article-card,
    .page-news__video-section,
    .page-news__video-wrapper,
    .page-news__promotions-grid,
    .page-news__promotion-card,
    .page-news__faq-list,
    .page-news__faq-item,
    .page-news__cta-buttons,
    .page-news__cta-bottom {
        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-section {
        padding-top: var(--header-offset, 120px) !important; /* Ensure header offset for video section */
    }
    .page-news video {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }
}

@media (max-width: 480px) {
    .page-news__main-title {
        font-size: 1.8em;
    }
    .page-news__section-title {
        font-size: 1.5em;
    }
    .page-news__subsection-title {
        font-size: 1.2em;
    }
    .page-news__cta-button {
        font-size: 1em;
        padding: 10px 15px;
    }
}