/* style/news.css */

/* Base styles for the news page, ensuring text is visible on a dark background */
.page-news {
    color: #ffffff; /* Light text for dark body background */
    font-family: Arial, sans-serif;
    line-height: 1.6;
    background-color: transparent; /* Assuming body handles the actual background color */
}

/* Sections padding and alignment */
.page-news__section {
    padding: 60px 0;
    text-align: center;
}

.page-news__hero-section {
    position: relative;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-top: 10px; /* Small top padding, body handles header offset */
    padding-bottom: 60px;
    background-color: var(--black-color); /* Ensure section background is dark */
}

.page-news__hero-image-wrapper {
    width: 100%;
    max-width: 100%;
    overflow: hidden;
    box-sizing: border-box;
}

.page-news__hero-image {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    max-height: 675px; /* Limit height for aesthetic */
    min-width: 200px;
    min-height: 200px;
}

.page-news__hero-content {
    max-width: 800px;
    margin-top: 30px;
    padding: 0 20px;
}

.page-news__main-title {
    font-size: clamp(2em, 4vw, 3.5em); /* Responsive H1 font size */
    color: #ffffff;
    margin-bottom: 20px;
    line-height: 1.2;
    font-weight: bold;
    letter-spacing: -0.02em;
}

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

.page-news__cta-button {
    display: inline-block;
    padding: 12px 25px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s ease, color 0.3s ease;
    cursor: pointer;
    max-width: 100%;
    box-sizing: border-box;
    white-space: normal;
    word-wrap: break-word;
}

.page-news__btn-primary {
    background-color: #26A9E0; /* Brand primary color */
    color: #ffffff;
    border: 2px solid #26A9E0;
}

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

.page-news__btn-secondary {
    background-color: transparent;
    color: #26A9E0;
    border: 2px solid #26A9E0;
    margin-left: 15px;
}

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

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

.page-news__section-title {
    font-size: clamp(1.8em, 3vw, 2.8em);
    color: #ffffff;
    margin-bottom: 20px;
    font-weight: bold;
}

.page-news__section-description {
    font-size: 1.05em;
    color: #f0f0f0;
    margin-bottom: 40px;
}

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

.page-news__news-card {
    background-color: rgba(255, 255, 255, 0.08); /* Slightly visible card background */
    border-radius: 12px;
    overflow: hidden;
    text-align: left;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
}

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

.page-news__card-image {
    width: 100%;
    height: 220px; /* Fixed height for consistency */
    object-fit: cover;
    display: block;
    min-width: 200px;
    min-height: 200px;
}

.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.3;
    font-weight: bold;
}

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

.page-news__card-title a:hover {
    color: #26A9E0;
}

.page-news__card-meta {
    font-size: 0.9em;
    color: #bbbbbb;
    margin-bottom: 15px;
}

.page-news__card-excerpt {
    font-size: 1em;
    color: #e0e0e0;
    margin-bottom: 20px;
    flex-grow: 1;
}

.page-news__read-more {
    color: #26A9E0;
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s ease;
    align-self: flex-start;
}

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

.page-news__view-all {
    margin-top: 20px;
}

.page-news__analysis-section {
    background-color: rgba(255, 255, 255, 0.05); /* Slightly different background for contrast */
}

.page-news__content-block {
    text-align: left;
    margin-bottom: 40px;
}

.page-news__sub-title {
    font-size: clamp(1.5em, 2.5vw, 2.2em);
    color: #26A9E0;
    margin-bottom: 20px;
    font-weight: bold;
}

.page-news__content-block p {
    font-size: 1em;
    color: #e0e0e0;
    margin-bottom: 15px;
}

.page-news__content-block a {
    color: #26A9E0;
    text-decoration: underline;
    transition: color 0.3s ease;
}

.page-news__content-block a:hover {
    color: #ffffff;
}

.page-news__faq-section {
    background-color: var(--black-color);
}

.page-news__faq-list {
    max-width: 900px;
    margin: 0 auto;
    text-align: left;
}

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

.page-news__faq-item details {
    border: none;
}

.page-news__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    font-size: 1.1em;
    font-weight: bold;
    color: #ffffff;
    cursor: pointer;
    background-color: rgba(255, 255, 255, 0.1);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

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

.page-news__faq-qtext {
    flex-grow: 1;
    color: #ffffff;
}

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

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

.page-news__faq-answer {
    padding: 20px 25px;
    font-size: 1em;
    color: #e0e0e0;
    line-height: 1.5;
}

.page-news__faq-answer p:last-child {
    margin-bottom: 0;
}

.page-news__cta-bottom {
    background-color: #26A9E0; /* Brand color for bottom CTA */
    color: #ffffff;
    padding: 80px 0;
}

.page-news__container--flex {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.page-news__section-title--small {
    font-size: clamp(1.5em, 2.5vw, 2.5em);
    margin-bottom: 15px;
    color: #ffffff;
}

.page-news__section-description--small {
    font-size: 1.1em;
    margin-bottom: 30px;
    color: #f0f0f0;
}

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

.page-news__cta-bottom .page-news__btn-primary {
    background-color: #EA7C07; /* Custom login color for this CTA */
    border-color: #EA7C07;
}

.page-news__cta-bottom .page-news__btn-primary:hover {
    background-color: #c96a06;
    border-color: #c96a06;
}

.page-news__cta-bottom .page-news__btn-secondary {
    border-color: #ffffff;
    color: #ffffff;
}

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

/* Mobile responsiveness */
@media (max-width: 768px) {
    .page-news__hero-section {
        padding-top: 10px !important;
        padding-bottom: 40px;
    }

    .page-news__hero-content {
        margin-top: 20px;
    }

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

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

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

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

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

    .page-news__news-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .page-news__card-image {
        height: 180px;
    }

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

    .page-news__card-excerpt {
        font-size: 0.9em;
    }

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

    .page-news__content-block p {
        font-size: 0.95em;
    }

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

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

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

    .page-news__cta-button {
        width: 100% !important;
        margin-left: 0 !important;
        padding: 12px 15px;
    }

    .page-news__container,
    .page-news__hero-image-wrapper,
    .page-news__news-card,
    .page-news__faq-item {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        overflow: hidden !important;
    }

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

    /* Ensure video responsiveness, although no video is explicitly requested for this page, it's a general rule */
    .page-news video,
    .page-news__video {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }

    .page-news__video-section,
    .page-news__video-container,
    .page-news__video-wrapper {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        overflow: hidden !important;
    }
    .page-news__video-section {
        padding-top: 10px !important;
    }
}

/* Content area images CSS size lower bound check */
.page-news img {
    min-width: 200px;
    min-height: 200px;
}
.page-news__card-image {
    min-width: unset; /* Override for card images to allow smaller content cards if needed, but still > 200px due to overall image rule */
    min-height: unset;
}