/* style/news.css */

/* --- Base Styles --- */
.page-news {
    background-color: #08160F; /* Background */
    color: #F2FFF6; /* Text Main */
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
}

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

.page-news__section-title {
    font-size: 2.5rem;
    color: #F2FFF6; /* Text Main */
    text-align: center;
    margin-bottom: 40px;
    font-weight: bold;
    line-height: 1.2;
}

.page-news__description {
    font-size: 1.1rem;
    color: #A7D9B8; /* Text Secondary */
    text-align: center;
    margin-bottom: 30px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.page-news__cta-button {
    display: inline-block;
    padding: 15px 30px;
    background: linear-gradient(180deg, #2AD16F 0%, #13994A 100%); /* Button */
    color: #ffffff;
    text-decoration: none;
    border-radius: 8px;
    font-weight: bold;
    transition: background-color 0.3s ease;
    text-align: center;
    border: none;
    cursor: pointer;
}

.page-news__cta-button:hover {
    background: linear-gradient(180deg, #13994A 0%, #2AD16F 100%);
}

.page-news__cta-button--secondary {
    background: transparent;
    border: 2px solid #2AD16F;
    color: #2AD16F;
}

.page-news__cta-button--secondary:hover {
    background: #2AD16F;
    color: #ffffff;
}

/* --- Hero Section --- */
.page-news__hero-section {
    position: relative;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 60px 0;
    padding-top: 10px; /* Small top padding, body handles header offset */
    overflow: hidden;
}

.page-news__hero-image-wrapper {
    width: 100%;
    max-width: 100%;
    height: auto;
    overflow: hidden;
    margin-bottom: 30px;
    border-radius: 10px;
}

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

.page-news__hero-content {
    text-align: center;
    max-width: 900px;
    padding: 0 20px;
    box-sizing: border-box;
}

.page-news__main-title {
    font-size: clamp(2.5rem, 5vw, 3.5rem); /* Responsive H1 font size */
    color: #F2FFF6;
    font-weight: bold;
    line-height: 1.2;
    margin-bottom: 20px;
    letter-spacing: -1px;
}

/* --- Latest Articles Section --- */
.page-news__latest-articles-section {
    padding: 80px 0;
}

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

.page-news__article-card {
    background-color: #11271B; /* Card BG */
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
}

.page-news__article-card:hover {
    transform: translateY(-5px);
}

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

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

.page-news__article-title {
    font-size: 1.5rem;
    color: #F2FFF6; /* Text Main */
    margin-bottom: 15px;
    line-height: 1.3;
}

.page-news__article-title a {
    color: #F2FFF6; /* Text Main */
    text-decoration: none;
    transition: color 0.3s ease;
}

.page-news__article-title a:hover {
    color: #2AD16F; /* Highlight color */
}

.page-news__article-meta {
    font-size: 0.9rem;
    color: #A7D9B8; /* Text Secondary */
    margin-bottom: 10px;
}

.page-news__article-excerpt {
    font-size: 1rem;
    color: #A7D9B8; /* Text Secondary */
    margin-bottom: 20px;
    flex-grow: 1;
}

.page-news__read-more-link {
    display: inline-flex;
    align-items: center;
    color: #2AD16F; /* Highlight color */
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s ease;
    margin-top: auto;
}

.page-news__read-more-link:hover {
    color: #57E38D; /* Glow */
}

.page-news__arrow {
    margin-left: 8px;
    transition: transform 0.3s ease;
}

.page-news__read-more-link:hover .page-news__arrow {
    transform: translateX(5px);
}

.page-news__view-all-button-wrapper {
    text-align: center;
    margin-top: 60px;
}

.page-news__view-all-button {
    display: inline-block;
    padding: 12px 25px;
    background: transparent;
    border: 2px solid #2AD16F;
    color: #2AD16F;
    text-decoration: none;
    border-radius: 8px;
    font-weight: bold;
    transition: all 0.3s ease;
}

.page-news__view-all-button:hover {
    background: #2AD16F;
    color: #ffffff;
}

/* --- Promotions Callout Section --- */
.page-news__promotions-callout {
    background-color: #0A4B2C; /* Deep Green */
    padding: 80px 0;
    text-align: center;
}

.page-news__promotions-content {
    max-width: 900px;
}

/* --- News by Category Section --- */
.page-news__categories-section {
    padding: 80px 0;
    text-align: center;
}

.page-news__categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-top: 40px;
}

.page-news__category-card {
    background-color: #11271B; /* Card BG */
    border-radius: 8px;
    padding: 30px 20px;
    text-decoration: none;
    color: #F2FFF6;
    font-weight: bold;
    font-size: 1.2rem;
    transition: background-color 0.3s ease, transform 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 120px;
    text-align: center;
}

.page-news__category-card:hover {
    background-color: #1E3A2A; /* Divider color for hover */
    transform: translateY(-3px);
}

/* --- Why Choose 77win9 Section --- */
.page-news__why-choose-section {
    padding: 80px 0;
    background-color: #08160F; /* Background */
}

.page-news__why-choose-content {
    display: flex;
    flex-direction: column;
    gap: 30px;
    text-align: left;
}

.page-news__why-choose-item {
    background-color: #11271B; /* Card BG */
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.page-news__why-choose-item h3 {
    color: #2AD16F; /* Highlight color */
    font-size: 1.8rem;
    margin-bottom: 15px;
    font-weight: bold;
}

.page-news__why-choose-item p {
    color: #A7D9B8; /* Text Secondary */
    font-size: 1rem;
}

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

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

.page-news__faq-item {
    background-color: #11271B; /* Card BG */
    border-radius: 10px;
    margin-bottom: 15px;
    overflow: hidden;
    color: #F2FFF6; /* Text Main */
}

.page-news__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    cursor: pointer;
    font-size: 1.2rem;
    font-weight: bold;
    color: #F2FFF6; /* Text Main */
    background-color: #11271B; /* Card BG */
    border-bottom: 1px solid #1E3A2A; /* Divider */
    transition: background-color 0.3s ease;
}

.page-news__faq-item[open] .page-news__faq-question {
    background-color: #1E3A2A; /* Divider for active */
}

.page-news__faq-question:hover {
    background-color: #1E3A2A; /* Divider for hover */
}

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

.page-news__faq-toggle {
    font-size: 1.8rem;
    line-height: 1;
    margin-left: 15px;
    color: #2AD16F; /* Highlight color */
}

.page-news__faq-item[open] .page-news__faq-toggle {
    content: "−";
}

.page-news__faq-answer {
    padding: 20px 25px;
    font-size: 1rem;
    color: #A7D9B8; /* Text Secondary */
}

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

/* --- Responsive Design --- */
@media (max-width: 1024px) {
    .page-news__main-title {
        font-size: clamp(2rem, 4.5vw, 3rem);
    }
    .page-news__section-title {
        font-size: 2rem;
    }
    .page-news__hero-section {
        padding: 40px 0;
        padding-top: 10px;
    }
    .page-news__articles-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    }
}

@media (max-width: 768px) {
    /* General responsive for content areas */
    .page-news__container {
        padding: 0 15px !important;
    }

    /* Images */
    .page-news img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    .page-news__hero-image-wrapper,
    .page-news__article-card,
    .page-news__category-card,
    .page-news__why-choose-item {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }
    .page-news__article-image {
        height: 180px;
    }

    /* Videos (if any, though none currently) */
    .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; /* body handles --header-offset */
    }

    /* Buttons */
    .page-news__cta-button,
    .page-news__view-all-button,
    .page-news a[class*="button"],
    .page-news a[class*="btn"] {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
        padding-left: 15px;
        padding-right: 15px;
        margin-bottom: 10px; /* Add space between stacked buttons */
    }
    .page-news__cta-button:last-child,
    .page-news__view-all-button:last-child {
        margin-bottom: 0;
    }
    .page-news__cta-buttons,
    .page-news__button-group,
    .page-news__btn-container {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        flex-wrap: wrap !important;
        gap: 10px;
        display: flex;
        flex-direction: column; /* Stack buttons vertically */
    }

    /* Sections */
    .page-news__hero-section,
    .page-news__latest-articles-section,
    .page-news__promotions-callout,
    .page-news__categories-section,
    .page-news__why-choose-section,
    .page-news__faq-section {
        padding: 40px 0;
    }
    .page-news__hero-section {
        padding-top: 10px;
    }

    .page-news__main-title {
        font-size: 2rem;
    }
    .page-news__section-title {
        font-size: 1.8rem;
    }
    .page-news__description,
    .page-news__article-excerpt,
    .page-news__faq-answer p {
        font-size: 0.95rem;
    }
    .page-news__article-title {
        font-size: 1.3rem;
    }
    .page-news__faq-question {
        font-size: 1.1rem;
    }
    .page-news__categories-grid {
        grid-template-columns: 1fr;
    }
    .page-news__category-card {
        height: auto;
        min-height: 80px;
    }
}