/* style/news.css */

/* Base styles for the page */
.page-news {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #333333;
    background-color: var(--neon-background-dark); /* Inherited from shared, will use light text on this */
}

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

.page-news__section-title {
    font-size: 2.5em;
    color: #ffffff;
    text-align: center;
    margin-bottom: 40px;
    position: relative;
    padding-bottom: 15px;
}

.page-news__section-title::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background-color: #26A9E0;
    border-radius: 2px;
}

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

/* Hero Section */
.page-news__hero-section {
    position: relative;
    width: 100%;
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
    padding: 80px 0;
    background-color: #26A9E0; /* Fallback */
}

.page-news__hero-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
    filter: brightness(0.6);
}

.page-news__hero-section .page-news__container {
    position: relative;
    z-index: 1;
    color: #ffffff;
}

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

.page-news__hero-description {
    font-size: 1.3em;
    max-width: 900px;
    margin: 0 auto 40px auto;
    color: #f0f0f0;
}

.page-news__hero-cta {
    display: flex;
    justify-content: center;
    gap: 20px;
}

/* Buttons */
.page-news__btn-primary,
.page-news__btn-secondary {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1em;
    transition: all 0.3s ease;
    white-space: nowrap;
}

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

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

.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__cta-bottom,
.page-news__cta-center {
    text-align: center;
    margin-top: 60px;
}

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

/* Latest Articles Section */
.page-news__latest-articles {
    padding: 80px 0;
    background-color: #0d0d0d; /* Dark background from shared */
}

.page-news__latest-articles .page-news__section-title {
    color: #ffffff;
}

.page-news__latest-articles .page-news__section-description {
    color: #f0f0f0;
}

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

.page-news__article-card {
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

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

.page-news__article-image {
    width: 100%;
    height: 200px;
    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.5em;
    margin-bottom: 15px;
    line-height: 1.3;
}

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

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

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

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

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

/* Why Loto188 Section */
.page-news__why-loto188 {
    padding: 80px 0;
    background-color: #26A9E0;
    color: #ffffff;
}

.page-news__why-loto188 .page-news__section-title {
    color: #ffffff;
}

.page-news__why-loto188 .page-news__section-description {
    color: #f0f0f0;
}

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

.page-news__feature-item {
    background-color: rgba(0, 0, 0, 0.2);
    border-radius: 10px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.page-news__feature-item:hover {
    transform: translateY(-10px);
}

.page-news__feature-image {
    width: 100%;
    max-width: 300px;
    height: auto;
    border-radius: 8px;
    margin-bottom: 25px;
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.page-news__feature-title {
    font-size: 1.8em;
    color: #ffffff;
    margin-bottom: 15px;
}

.page-news__feature-text {
    color: #e0e0e0;
}

/* Guide Section */
.page-news__guide-section {
    padding: 80px 0;
    background-color: #0d0d0d;
}

.page-news__guide-section .page-news__section-title {
    color: #ffffff;
}

.page-news__guide-section .page-news__section-description {
    color: #f0f0f0;
}

.page-news__guide-block {
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 30px;
    margin-bottom: 40px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.page-news__guide-subtitle {
    font-size: 2em;
    color: #26A9E0;
    margin-bottom: 25px;
}

.page-news__guide-list {
    list-style-type: none;
    padding-left: 0;
    color: #e0e0e0;
}

.page-news__guide-list li {
    margin-bottom: 15px;
    padding-left: 30px;
    position: relative;
    font-size: 1.1em;
}

.page-news__guide-list li strong {
    color: #ffffff;
}

.page-news__guide-list ol li::before {
    content: counter(item);
    counter-increment: item;
    position: absolute;
    left: 0;
    top: 0;
    width: 25px;
    height: 25px;
    background-color: #EA7C07;
    color: #ffffff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 0.9em;
}

.page-news__guide-list ul li::before {
    content: '•';
    position: absolute;
    left: 0;
    top: 0;
    color: #EA7C07;
    font-size: 1.5em;
    line-height: 1;
}

/* Promotions Section */
.page-news__promotions {
    padding: 80px 0;
    background-color: #26A9E0;
    color: #ffffff;
}

.page-news__promotions .page-news__section-title {
    color: #ffffff;
}

.page-news__promotions .page-news__section-description {
    color: #f0f0f0;
}

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

.page-news__promo-card {
    background-color: rgba(0, 0, 0, 0.2);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
}

.page-news__promo-card:hover {
    transform: translateY(-10px);
}

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

.page-news__promo-title {
    font-size: 1.6em;
    color: #ffffff;
    padding: 20px 20px 10px;
}

.page-news__promo-text {
    color: #e0e0e0;
    padding: 0 20px 20px;
    flex-grow: 1;
}

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

.page-news__faq-section .page-news__section-title {
    color: #ffffff;
}

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

.page-news__faq-item {
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    margin-bottom: 20px;
    overflow: hidden;
    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;
    cursor: pointer;
    font-size: 1.3em;
    color: #ffffff;
    font-weight: bold;
    background-color: #26A9E0;
    transition: background-color 0.3s ease;
}

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

.page-news__faq-toggle {
    font-size: 1.5em;
    line-height: 1;
    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;
    color: #e0e0e0;
    transition: max-height 0.3s ease, padding 0.3s ease;
}

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

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

/* Final CTA Section */
.page-news__final-cta {
    padding: 80px 0;
    background-color: #26A9E0;
    color: #ffffff;
    text-align: center;
}

.page-news__final-cta .page-news__section-title {
    color: #ffffff;
}

.page-news__final-cta .page-news__section-description {
    color: #f0f0f0;
}

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

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

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

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

    .page-news__hero-section {
        min-height: 500px;
        padding: 60px 0;
    }

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

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

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

    .page-news__btn-primary,
    .page-news__btn-secondary {
        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;
    }

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

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

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

    .page-news__articles-grid,
    .page-news__features-grid,
    .page-news__promo-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }

    .page-news__article-image,
    .page-news__feature-image,
    .page-news__promo-image {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }

    .page-news__article-card,
    .page-news__feature-item,
    .page-news__promo-card,
    .page-news__guide-block,
    .page-news__faq-item,
    .page-news__container {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        overflow: hidden !important;
    }

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

    .page-news__faq-answer {
        padding: 0 20px;
    }

    .page-news__faq-item.active .page-news__faq-answer {
        padding: 15px 20px;
    }

    .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__hero-description {
        font-size: 0.9em;
    }

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

    .page-news__guide-subtitle,
    .page-news__feature-title,
    .page-news__promo-title {
        font-size: 1.4em;
    }

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

/* Color Contrast Fixes (as per requirements) */
.page-news__dark-section {
    background-color: #26A9E0;
    color: #ffffff;
}

.page-news__dark-section p,
.page-news__dark-section h1,
.page-news__dark-section h2,
.page-news__dark-section h3,
.page-news__dark-section a {
    color: #ffffff;
}

.page-news__light-bg {
    background-color: #0d0d0d;
    color: #e0e0e0;
}

.page-news__light-bg p,
.page-news__light-bg h1,
.page-news__light-bg h2,
.page-news__light-bg h3,
.page-news__light-bg a {
    color: #e0e0e0;
}

.page-news__light-bg .page-news__section-title {
    color: #ffffff;
}

.page-news__light-bg .page-news__article-title a {
    color: #26A9E0;
}

.page-news__light-bg .page-news__article-card {
    background-color: rgba(255, 255, 255, 0.1);
}

.page-news__light-bg .page-news__article-excerpt {
    color: #cccccc;
}

.page-news__light-bg .page-news__guide-block {
    background-color: rgba(255, 255, 255, 0.1);
}

.page-news__light-bg .page-news__faq-item {
    background-color: rgba(255, 255, 255, 0.1);
}

.page-news__light-bg .page-news__faq-question {
    background-color: #26A9E0;
    color: #ffffff;
}

.page-news__light-bg .page-news__faq-answer {
    color: #e0e0e0;
}

.page-news__light-bg .page-news__guide-list li {
    color: #e0e0e0;
}

.page-news__light-bg .page-news__guide-list li strong {
    color: #ffffff;
}

.page-news__light-bg .page-news__guide-subtitle {
    color: #26A9E0;
}

.page-news__light-bg .page-news__read-more {
    color: #EA7C07;
}

.page-news__light-bg .page-news__read-more:hover {
    color: #ff9900;
}

.page-news__light-bg .page-news__btn-primary {
    background-color: #EA7C07;
    border-color: #EA7C07;
    color: #ffffff;
}

.page-news__light-bg .page-news__btn-secondary {
    background-color: transparent;
    border-color: #26A9E0;
    color: #26A9E0;
}

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