/* style/news.css */
.page-news {
    color: #333333;
    background-color: var(--dark-bg-1); /* Assuming --dark-bg-1 is dark from shared.css */
}

.page-news__hero-section {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 80px 20px;
    padding-top: var(--header-offset, 120px); /* Ensures content is not hidden by fixed header */
    min-height: 500px;
    color: #ffffff;
    overflow: hidden;
    background-color: #26A9E0;
}

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

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

.page-news__main-title {
    font-size: 3.2em;
    margin-bottom: 20px;
    font-weight: bold;
    line-height: 1.2;
    color: #ffffff; /* Light text on dark/brand background */
}

.page-news__hero-description {
    font-size: 1.2em;
    margin-bottom: 30px;
    max-width: 800px;
    line-height: 1.6;
    color: #f0f0f0; /* Slightly lighter white for description */
}

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

.page-news__btn {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1em;
    transition: all 0.3s ease;
    box-sizing: border-box;
    max-width: 100%;
    white-space: normal;
    word-wrap: break-word;
}

.page-news__btn-primary {
    background-color: #EA7C07; /* Login color */
    color: #ffffff;
    border: 2px solid #EA7C07;
}

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

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

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

.page-news__section {
    padding: 60px 0;
    background-color: #ffffff; /* Default light background for sections */
    color: #333333;
}

.page-news__dark-section {
    background-color: #26A9E0;
    color: #ffffff;
}

.page-news__dark-bg {
    background-color: #26A9E0;
    color: #ffffff;
}

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

.page-news__section-description {
    font-size: 1.1em;
    text-align: center;
    max-width: 900px;
    margin: 0 auto 40px;
    line-height: 1.6;
    color: inherit;
}

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

.page-news__news-card, .page-news__promo-card {
    background-color: #ffffff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    color: #333333;
}

.page-news__news-card:hover, .page-news__promo-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

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

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

.page-news__card-title {
    font-size: 1.4em;
    margin-bottom: 10px;
    font-weight: bold;
    line-height: 1.4;
}

.page-news__card-title a {
    color: #26A9E0;
    text-decoration: none;
}

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

.page-news__card-excerpt {
    font-size: 0.95em;
    line-height: 1.6;
    margin-bottom: 15px;
    color: #555555;
}

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

.page-news__read-more:hover {
    color: #1a7bb2;
    text-decoration: underline;
}

.page-news__read-more span {
    margin-left: 5px;
}

.page-news__guide-list, .page-news__article-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
}

.page-news__guide-item, .page-news__article-item {
    background-color: rgba(255, 255, 255, 0.1);
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    color: inherit;
}

.page-news__dark-section .page-news__guide-item, .page-news__dark-section .page-news__article-item {
    background-color: rgba(255, 255, 255, 0.15);
    color: #ffffff;
}

.page-news__guide-title, .page-news__article-title {
    font-size: 1.3em;
    margin-bottom: 10px;
    font-weight: bold;
    line-height: 1.4;
}

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

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

.page-news__guide-text, .page-news__article-text {
    font-size: 0.95em;
    line-height: 1.6;
    color: inherit;
    opacity: 0.9;
}

/* FAQ Section */
.page-news__faq-list {
    max-width: 900px;
    margin: 0 auto;
}

.page-news__faq-item {
    background-color: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

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

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

.page-news__faq-question h3 {
    margin: 0;
    font-size: 1em;
    color: inherit;
}

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

.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;
    background-color: #ffffff;
    color: #555555;
}

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

.page-news__faq-answer p {
    margin: 0;
    line-height: 1.6;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .page-news__main-title {
        font-size: 2.8em;
    }

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

@media (max-width: 768px) {
    .page-news__hero-section {
        padding: 60px 15px;
        padding-top: var(--header-offset, 120px) !important;
    }

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

    .page-news__hero-description {
        font-size: 1em;
    }

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

    .page-news__btn {
        width: 100% !important;
        max-width: 100% !important;
        padding: 12px 20px;
        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;
        margin-bottom: 30px;
    }

    .page-news__news-grid, .page-news__promo-grid, .page-news__guide-list, .page-news__article-list {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .page-news__news-card, .page-news__promo-card {
        margin: 0 15px;
    }

    .page-news__news-image, .page-news__promo-image {
        height: 180px; /* Adjust height for mobile */
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
    }

    .page-news__container,
    .page-news__latest-news .page-news__container,
    .page-news__guides .page-news__container,
    .page-news__promotions .page-news__container,
    .page-news__industry-news .page-news__container,
    .page-news__faq-section .page-news__container,
    .page-news__cta-bottom .page-news__container {
        padding-left: 15px;
        padding-right: 15px;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

    .page-news img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    .page-news__news-image,
    .page-news__promo-image {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
    }
    .page-news__faq-question {
        padding: 15px 20px;
        font-size: 1em;
    }
    .page-news__faq-answer {
        padding: 10px 20px;
    }
}

@media (max-width: 480px) {
    .page-news__main-title {
        font-size: 1.8em;
    }

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

    .page-news__news-image, .page-news__promo-image {
        height: 150px;
    }
}

/* Ensure no image filter */
.page-news img {
    filter: none;
}

/* Content area image CSS size lower bound (applies to .page-news img, not just specific classes) */
.page-news img:not(.shared-header__logo):not(.shared-footer__payment-icon):not(.shared-footer__social-icon) {
    min-width: 200px;
    min-height: 200px;
    /* Ensure no width/height/max-width/max-height rules make display size less than 200px */
    /* For responsive display, max-width: 100%; height: auto; is used, which respects min-width/height */
}

/* Ensure images in cards are large */
.page-news__news-card .page-news__news-image, 
.page-news__promo-card .page-news__promo-image {
    width: 100%; /* Occupy card width */
    height: 220px; /* Specific height, but will be auto on mobile */
    object-fit: cover;
    min-width: 200px;
    min-height: 200px;
}