/* style/news.css */

/* Base styles for the page content, ensuring light text on dark body background */
.page-news {
    font-family: 'Arial', sans-serif;
    color: #ffffff; /* Light text for dark body background */
    line-height: 1.6;
    background-color: transparent; /* Body background is handled by shared.css */
    padding-top: 0; /* Handled by shared.css or specific sections */
}

/* Header offset for main content */
.page-news__hero-section {
    padding-top: var(--header-offset, 120px); /* Ensures content is below fixed header */
}

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

.page-news__section-title {
    font-size: 2.5em;
    color: #26A9E0; /* Brand primary color */
    text-align: center;
    margin-bottom: 20px;
    font-weight: bold;
    line-height: 1.2;
}

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

/* Hero Section */
.page-news__hero-section {
    position: relative;
    background: linear-gradient(135deg, #1a1a2e 0%, #26A9E0 100%); /* Blend with brand color */
    padding-bottom: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    text-align: center;
}

.page-news__hero-content {
    max-width: 900px;
    padding: 40px 20px;
    z-index: 1;
}

.page-news__hero-title {
    font-size: 3.2em;
    color: #ffffff;
    margin-bottom: 20px;
    line-height: 1.2;
    font-weight: bold;
}

.page-news__hero-description {
    font-size: 1.2em;
    color: #f0f0f0;
    margin-bottom: 40px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.page-news__hero-cta {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap; /* Allow wrapping on small screens */
}

.page-news__hero-image-wrapper {
    width: 100%;
    max-width: 1200px;
    margin-top: 40px;
    overflow: hidden;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.page-news__hero-image {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

/* Buttons */
.page-news__btn-primary,
.page-news__btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 15px 30px;
    border-radius: 8px;
    font-size: 1.1em;
    font-weight: bold;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    white-space: normal; /* Allow text wrapping */
    word-wrap: break-word; /* Allow text wrapping */
    box-sizing: border-box; /* Include padding in width */
    max-width: 100%; /* Ensure button doesn't overflow */
    text-align: center;
}

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

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

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

.page-news__btn-secondary:hover {
    background-color: #26A9E0;
    color: #ffffff;
    transform: translateY(-2px);
}

/* Latest Articles Section */
.page-news__latest-articles {
    padding: 80px 0;
    background-color: #1a1a2e; /* Dark background for this section */
}

.page-news__dark-section {
    background-color: #1a1a2e;
    color: #ffffff;
}

.page-news__light-bg {
    background-color: #f8f9fa; /* Light background for contrast */
    color: #333333; /* Dark text for light background */
}

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

.page-news__article-card {
    background-color: rgba(255, 255, 255, 0.08); /* Slightly lighter card on dark background */
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    color: #ffffff; /* Ensure text is light */
}

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

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

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

.page-news__article-title {
    font-size: 1.3em;
    margin-bottom: 10px;
    font-weight: bold;
}

.page-news__article-title a {
    color: #26A9E0; /* Brand color for links */
    text-decoration: none;
    transition: color 0.3s ease;
}

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

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

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

.page-news__read-more-icon {
    margin-left: 8px;
    font-size: 1.2em;
}

/* Featured Article Section */
.page-news__featured-article {
    padding: 80px 0;
}

.page-news__article-detail {
    background-color: #ffffff; /* White background for readability */
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    color: #333333; /* Dark text on white background */
}

.page-news__detail-image {
    width: 100%;
    height: auto;
    max-height: 600px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 30px;
    display: block;
}

.page-news__text-block {
    margin-bottom: 20px;
    font-size: 1.1em;
    line-height: 1.7;
}

.page-news__sub-title {
    font-size: 1.8em;
    color: #26A9E0;
    margin-top: 40px;
    margin-bottom: 20px;
    font-weight: bold;
}

.page-news__bullet-list,
.page-news__number-list {
    margin-bottom: 20px;
    padding-left: 25px;
}

.page-news__bullet-list li,
.page-news__number-list li {
    margin-bottom: 10px;
    font-size: 1.05em;
    color: #333333;
}

.page-news__bullet-list li strong {
    color: #26A9E0;
}

.page-news__cta-block {
    text-align: center;
    margin-top: 50px;
}

/* Tips & Strategy Section */
.page-news__tips-strategy {
    padding: 80px 0;
}

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

.page-news__strategy-item {
    background-color: rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    color: #ffffff;
}

.page-news__strategy-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.page-news__strategy-image {
    width: 100%;
    max-width: 300px; /* Constrain image size within item */
    height: 200px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 20px;
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.page-news__strategy-title {
    font-size: 1.4em;
    color: #26A9E0;
    margin-bottom: 15px;
    font-weight: bold;
}

.page-news__strategy-text {
    font-size: 1em;
    color: #cccccc;
}

/* Promotions Section */
.page-news__promotions {
    padding: 80px 0;
}

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

.page-news__promo-card {
    background-color: #ffffff; /* White background for promo cards */
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    color: #333333; /* Dark text on white background */
}

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

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

.page-news__promo-content {
    padding: 20px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.page-news__promo-title {
    font-size: 1.3em;
    margin: 0 0 10px;
    font-weight: bold;
}

.page-news__promo-title a {
    color: #26A9E0;
    text-decoration: none;
    transition: color 0.3s ease;
}

.page-news__promo-title a:hover {
    color: #1a1a2e;
}

.page-news__promo-text {
    font-size: 0.95em;
    color: #555555;
    margin-bottom: 20px;
    flex-grow: 1;
}

/* FAQ Section */
.page-news__faq {
    padding: 80px 0;
}

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

.page-news__faq-item {
    background-color: rgba(255, 255, 255, 0.08); /* Card-like background */
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
    color: #ffffff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.page-news__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    font-size: 1.15em;
    font-weight: bold;
    cursor: pointer;
    color: #26A9E0; /* Question text color */
    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.12);
}

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

.page-news__faq-toggle {
    font-size: 1.5em;
    margin-left: 15px;
    color: #ffffff; /* Toggle icon color */
}

.page-news__faq-item[open] .page-news__faq-toggle {
    content: "−"; /* Change to minus when open */
}

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

.page-news__faq-answer p {
    margin-bottom: 10px;
}

.page-news__faq-answer a {
    color: #26A9E0;
    text-decoration: none;
}

.page-news__faq-answer a:hover {
    text-decoration: underline;
}

.page-news__faq-item details > summary {
    list-style: none; /* Remove default marker */
}
.page-news__faq-item details > summary::-webkit-details-marker {
    display: none; /* Remove default marker for webkit browsers */
}

.page-news__faq-image {
    width: 100%;
    max-width: 600px;
    height: auto;
    display: block;
    margin: 40px auto 0 auto;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}


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

@media (max-width: 768px) {
    .page-news {
        font-size: 16px;
        line-height: 1.6;
    }

    .page-news__hero-section {
        padding-bottom: 40px;
    }

    .page-news__hero-title {
        font-size: 2.2em;
        margin-bottom: 15px;
    }

    .page-news__hero-description {
        font-size: 1em;
        margin-bottom: 30px;
    }

    .page-news__hero-cta {
        flex-direction: column;
        gap: 15px;
    }

    .page-news__btn-primary,
    .page-news__btn-secondary {
        max-width: 100% !important;
        width: 100% !important;
        padding: 12px 20px;
        font-size: 1em;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
    }
    
    .page-news__section-title {
        font-size: 1.8em;
        margin-bottom: 15px;
    }

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

    .page-news__latest-articles,
    .page-news__featured-article,
    .page-news__tips-strategy,
    .page-news__promotions,
    .page-news__faq {
        padding: 40px 0;
    }

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

    .page-news__article-card,
    .page-news__strategy-item,
    .page-news__promo-card,
    .page-news__faq-item {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

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

    /* Video responsiveness (if any) */
    .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__article-detail {
        padding: 20px;
    }

    .page-news__sub-title {
        font-size: 1.5em;
        margin-top: 30px;
    }

    .page-news__bullet-list,
    .page-news__number-list {
        padding-left: 20px;
    }

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

    .page-news__faq-answer {
        padding: 0 20px 15px;
    }
    
    /* Ensure content containers also adapt */
    .page-news__container {
        padding: 0 15px; /* Smaller padding for mobile */
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

    /* Specific padding for hero section if shared doesn't handle it universally */
    .page-news__hero-section {
        padding-top: var(--header-offset, 120px) !important;
    }
}

@media (max-width: 480px) {
    .page-news__hero-title {
        font-size: 1.8em;
    }
    .page-news__section-title {
        font-size: 1.5em;
    }
    .page-news__btn-primary,
    .page-news__btn-secondary {
        font-size: 0.95em;
        padding: 10px 15px;
    }
}