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

.page-news__hero-section {
    position: relative;
    width: 100%;
    min-height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
    background-color: #26A9E0; /* Brand color background */
    color: #ffffff;
    padding: 60px 20px;
}

.page-news__hero-image-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.page-news__hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.3; /* Slightly transparent to let background color show */
}

.page-news__hero-content {
    position: relative;
    z-index: 2;
    max-width: 900px;
    padding: 20px;
    background: rgba(0, 0, 0, 0.4); /* Dark overlay for text readability */
    border-radius: 10px;
}

.page-news__main-title {
    font-size: 2.8em;
    margin-bottom: 20px;
    color: #ffffff;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.page-news__intro-text {
    font-size: 1.2em;
    margin-bottom: 30px;
    color: #ffffff;
}

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

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

.page-news__btn-secondary {
    display: inline-block;
    background-color: #ffffff;
    color: #26A9E0;
    padding: 12px 25px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1em;
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
    border: 2px solid #26A9E0;
    margin: 5px;
}

.page-news__btn-secondary:hover {
    background-color: #26A9E0;
    color: #ffffff;
}

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

.page-news__section--white {
    background-color: #ffffff;
    color: #333333;
}

.page-news__section--dark {
    background-color: #26A9E0;
    color: #ffffff;
}

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

.page-news__section-title {
    font-size: 2.2em;
    margin-bottom: 30px;
    text-align: center;
    color: inherit; /* Inherit color from section */
}

.page-news__paragraph {
    font-size: 1.1em;
    margin-bottom: 20px;
    line-height: 1.7;
    color: inherit;
}

.page-news__content-grid {
    display: flex;
    gap: 40px;
    align-items: flex-start;
    margin-top: 40px;
}

.page-news__text-block {
    flex: 1;
}

.page-news__image-block {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

.page-news__image {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.page-news__content-grid--reverse {
    flex-direction: row-reverse;
}

.page-news__list {
    list-style-type: disc;
    margin-left: 25px;
    margin-bottom: 20px;
    color: inherit;
}

.page-news__list-item {
    margin-bottom: 10px;
    font-size: 1.05em;
    color: inherit;
}

.page-news__cta-buttons {
    text-align: center;
    margin-top: 40px;
}

.page-news__cta-buttons .page-news__btn-secondary {
    margin: 0 10px;
}

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

.page-news__faq-item {
    background-color: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    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;
    background-color: #f9f9f9;
    border-bottom: 1px solid #e0e0e0;
    transition: background-color 0.3s ease;
}

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

.page-news__faq-question h3 {
    margin: 0;
    font-size: 1.2em;
    color: #333333;
}

.page-news__faq-toggle {
    font-size: 1.8em;
    font-weight: bold;
    color: #26A9E0;
    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 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; /* Ensure it expands sufficiently */
    padding: 15px 25px;
}

.page-news__faq-answer .page-news__paragraph {
    margin-bottom: 0;
}

/* Responsive Styles */
@media (max-width: 1024px) {
    .page-news__main-title {
        font-size: 2.2em;
    }
    .page-news__intro-text {
        font-size: 1.1em;
    }
    .page-news__section-title {
        font-size: 1.8em;
    }
    .page-news__content-grid {
        flex-direction: column;
        align-items: center;
    }
    .page-news__image-block {
        margin-top: 30px;
    }
    .page-news__cta-buttons .page-news__btn-secondary {
        margin: 5px;
    }
}

@media (max-width: 768px) {
    .page-news {
        font-size: 16px;
        line-height: 1.6;
    }
    .page-news__hero-section {
        min-height: 400px;
        padding: 40px 15px;
    }
    .page-news__main-title {
        font-size: 1.8em;
        margin-bottom: 15px;
    }
    .page-news__intro-text {
        font-size: 1em;
        margin-bottom: 20px;
    }
    .page-news__btn-primary,
    .page-news__btn-secondary {
        padding: 12px 20px;
        font-size: 0.95em;
        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 {
        display: flex;
        flex-direction: column;
        gap: 10px;
        padding: 0 15px;
    }
    .page-news__cta-buttons .page-news__btn-secondary {
        margin: 0;
    }
    .page-news__section {
        padding: 40px 15px;
    }
    .page-news__section-title {
        font-size: 1.5em;
        margin-bottom: 20px;
    }
    .page-news__paragraph {
        font-size: 1em;
    }
    .page-news__list {
        margin-left: 20px;
    }
    .page-news__list-item {
        font-size: 1em;
    }
    .page-news__image {
        max-width: 100% !important;
        height: auto !important;
    }
    .page-news__image-block,
    .page-news__text-block {
        width: 100% !important;
    }
    .page-news__container,
    .page-news__hero-content {
        padding-left: 0;
        padding-right: 0;
    }
    .page-news__faq-question {
        padding: 15px 20px;
    }
    .page-news__faq-question h3 {
        font-size: 1.1em;
    }
    .page-news__faq-toggle {
        font-size: 1.5em;
    }
    .page-news__faq-answer {
        padding: 0 20px;
    }
    .page-news__faq-item.active .page-news__faq-answer {
        padding: 15px 20px;
    }
    /* Mobile image and container specific overrides */
    .page-news img {
        max-width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    .page-news__section,
    .page-news__card,
    .page-news__container {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
    }
    .page-news__hero-section {
        padding-top: var(--header-offset, 120px) !important; /* Ensure header offset for mobile */
    }
}

@media (max-width: 480px) {
    .page-news__main-title {
        font-size: 1.5em;
    }
    .page-news__intro-text {
        font-size: 0.9em;
    }
    .page-news__btn-primary {
        padding: 10px 15px;
        font-size: 0.9em;
    }
    .page-news__section-title {
        font-size: 1.3em;
    }
    .page-news__faq-question h3 {
        font-size: 1em;
    }
    .page-news__faq-toggle {
        font-size: 1.3em;
    }
}