:root {
    --primary-color: #26A9E0;
    --secondary-color: #FFFFFF;
    --text-dark: #333333;
    --text-light: #f0f0f0;
    --login-button-color: #EA7C07;
    --border-color: #e0e0e0;
}

.page-news {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background: var(--secondary-color);
}

/* --- Global Section Styles --- */
.page-news__section {
    padding: 60px 20px;
    text-align: center;
}

.page-news__section-title {
    font-size: 2.5em;
    color: var(--primary-color);
    margin-bottom: 20px;
    font-weight: 700;
}

.page-news__section-description {
    font-size: 1.1em;
    max-width: 800px;
    margin: 0 auto 40px auto;
    color: var(--text-dark);
}

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

/* Dark background sections */
.page-news__dark-bg {
    background: #000000;
    color: var(--text-light);
}

.page-news__dark-bg .page-news__section-title {
    color: var(--primary-color);
}

.page-news__dark-bg .page-news__section-description {
    color: var(--text-light);
}

/* Light background sections */
.page-news__light-bg {
    background: var(--secondary-color);
    color: var(--text-dark);
}

/* --- CTA Button Styles --- */
.page-news__cta-button {
    display: inline-block;
    padding: 15px 40px;
    background: var(--login-button-color);
    color: var(--secondary-color);
    text-decoration: none;
    border-radius: 5px;
    font-size: 18px;
    font-weight: bold;
    margin: 15px 10px;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    max-width: 100%;
    box-sizing: border-box;
    white-space: normal;
    word-wrap: break-word;
}

.page-news__cta-button:hover {
    background: #c26306;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.page-news__cta-button--secondary {
    background: var(--primary-color);
    border-color: var(--primary-color);
}

.page-news__cta-button--secondary:hover {
    background: #1f8ec4;
}


/* --- HERO Section --- */
.page-news__hero-section {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 60px 20px;
    padding-top: 10px; /* Fixed header spacing */
    background: #000000;
}

.page-news__hero-container {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%; /* For flex items */
}

.page-news__hero-image {
    width: 100%;
    margin-bottom: 30px;
}

.page-news__hero-image img {
    width: 100%;
    height: auto;
    max-width: 100%;
    display: block;
    border-radius: 8px;
    object-fit: cover;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
}

.page-news__hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    width: 100%;
    color: var(--text-light);
}

.page-news__hero-content h1 {
    font-size: clamp(2em, 4vw, 3.2em); /* Using clamp for responsive H1 */
    color: var(--primary-color);
    margin-bottom: 20px;
    font-weight: 700;
    line-height: 1.2;
}

.page-news__hero-content p {
    font-size: 1.2em;
    max-width: 700px;
    margin: 0 auto 30px auto;
    color: var(--text-light);
}

/* --- Card Styles (for news, promotions, guides) --- */
.page-news__news-grid,
.page-news__promotion-grid,
.page-news__guide-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.page-news__news-card,
.page-news__promotion-card,
.page-news__guide-card {
    background: var(--secondary-color);
    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;
    text-align: left;
    display: flex;
    flex-direction: column;
    height: 100%;
}

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

.page-news__news-card img,
.page-news__promotion-card img,
.page-news__guide-card img {
    width: 100%;
    height: 220px; /* Fixed height for consistent card appearance */
    object-fit: cover;
    display: block;
    border-bottom: 1px solid var(--border-color);
}

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

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

.page-news__card-title a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

.page-news__card-title a:hover {
    color: #1f8ec4;
}

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

.page-news__card-text {
    font-size: 1em;
    color: var(--text-dark);
    margin-bottom: 20px;
    flex-grow: 1;
}

.page-news__card-read-more {
    display: inline-block;
    color: var(--primary-color);
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s ease;
}

.page-news__card-read-more:hover {
    color: #1f8ec4;
}

/* --- Announcement Section --- */
.page-news__announcement-list {
    display: flex;
    flex-direction: column;
    gap: 30px;
    margin-top: 40px;
    text-align: left;
}

.page-news__announcement-item {
    display: flex;
    background: var(--secondary-color);
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    align-items: center;
}

.page-news__announcement-image {
    width: 300px; /* Fixed width for image */
    height: 200px;
    object-fit: cover;
    flex-shrink: 0;
}

.page-news__announcement-content {
    padding: 25px;
    flex-grow: 1;
}

.page-news__announcement-content h3 {
    font-size: 1.5em;
    color: var(--primary-color);
    margin-top: 0;
    margin-bottom: 10px;
}

.page-news__announcement-content p {
    color: var(--text-dark);
    margin-bottom: 15px;
}

/* --- FAQ Section --- */
.page-news__faq-section {
    padding: 60px 20px;
    background: #000000;
}

.page-news__faq-section .page-news__section-title {
    color: var(--primary-color);
}

.page-news__faq-section .page-news__section-description {
    color: var(--text-light);
}

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

details.page-news__faq-item {
    margin-bottom: 15px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    overflow: hidden;
    background: rgba(255, 255, 255, 0.05);
}

details.page-news__faq-item summary.page-news__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 25px;
    cursor: pointer;
    user-select: none;
    list-style: none;
    transition: background-color 0.3s ease;
    color: var(--text-light);
    font-weight: 600;
}

details.page-news__faq-item summary.page-news__faq-question::-webkit-details-marker {
    display: none;
}

details.page-news__faq-item summary.page-news__faq-question:hover {
    background: rgba(255, 255, 255, 0.1);
}

.page-news__faq-qtext {
    flex: 1;
    font-size: 1.1em;
    line-height: 1.5;
    text-align: left;
    color: var(--primary-color);
}

.page-news__faq-toggle {
    font-size: 28px;
    font-weight: bold;
    color: var(--primary-color);
    flex-shrink: 0;
    margin-left: 20px;
    width: 30px;
    text-align: center;
}

details.page-news__faq-item .page-news__faq-answer {
    padding: 0 25px 25px;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 0 0 8px 8px;
    color: var(--text-light);
}

.page-news__faq-answer p {
    margin: 0;
    padding-top: 15px;
}

/* --- Call to Action Section --- */
.page-news__call-to-action-section {
    background: var(--secondary-color);
    padding: 80px 20px;
}

.page-news__call-to-action-section .page-news__section-title {
    color: var(--primary-color);
}

.page-news__call-to-action-section .page-news__section-description {
    color: var(--text-dark);
    margin-bottom: 50px;
}

/* --- Image responsive styles --- */
.page-news img {
    max-width: 100%;
    height: auto;
    display: block;
}

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

    .page-news__hero-image img {
        border-radius: 4px;
    }

    .page-news__hero-content h1 {
        font-size: 2em;
    }

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

    .page-news__cta-button {
        padding: 12px 30px;
        font-size: 16px;
        margin: 10px auto;
        width: 90%; /* Make buttons full width */
    }
    
    .page-news__button-group {
        display: flex;
        flex-direction: column;
        align-items: center;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
        padding: 0 15px;
    }

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

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

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

    .page-news__news-card img,
    .page-news__promotion-card img,
    .page-news__guide-card img {
        
    }

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

    .page-news__announcement-item {
        flex-direction: column;
        text-align: center;
    }

    .page-news__announcement-image {
        width: 100%;
        height: 200px;
    }

    .page-news__announcement-content {
        padding: 20px;
    }
    
    details.page-news__faq-item summary.page-news__faq-question {
        padding: 15px;
    }
    .page-news__faq-qtext {
        font-size: 1em;
    }
    .page-news__faq-toggle {
        font-size: 24px;
        margin-left: 10px;
    }
    details.page-news__faq-item .page-news__faq-answer {
        padding: 0 15px 15px;
    }

    /* Forced responsive image/container styles */
    .page-news img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
    }
    
    .page-news__section,
    .page-news__container,
    .page-news__hero-container,
    .page-news__news-card,
    .page-news__promotion-card,
    .page-news__guide-card,
    .page-news__announcement-item {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
    }
    
    /* Ensure no horizontal scroll for elements with images */
    .page-news__hero-section,
    .page-news__latest-news-section,
    .page-news__announcements-section,
    .page-news__promotions-section,
    .page-news__guides-section {
        overflow-x: hidden;
    }
    
    /* Buttons in mobile */
    .page-news__cta-button,
    .page-news__btn-primary,
    .page-news__btn-secondary,
    .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;
    }
    
    .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;
    }
    
    .page-news__cta-buttons {
        flex-direction: column;
    }
}