/* style/news.css */
/* Custom colors */
:root {
    --max88-primary-color: #11A84E;
    --max88-secondary-color: #22C768;
    --max88-button-gradient: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
    --max88-card-bg: #11271B;
    --max88-bg: #08160F;
    --max88-text-main: #F2FFF6;
    --max88-text-secondary: #A7D9B8;
    --max88-border: #2E7A4E;
    --max88-glow: #57E38D;
    --max88-gold: #F2C14E;
    --max88-divider: #1E3A2A;
    --max88-deep-green: #0A4B2C;
}

.page-news {
    font-family: Arial, sans-serif;
    color: var(--max88-text-main); /* Ensure light text on dark body background */
    background-color: var(--max88-bg); /* Inherited from body, but good to be explicit for main content */
}

.page-news__hero-section {
    position: relative;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 10px 0 60px 0; /* Small top padding, more bottom padding */
    overflow: hidden;
    background-color: var(--max88-deep-green);
}

.page-news__hero-image-wrapper {
    width: 100%;
    position: relative;
    order: 1; /* Image first */
}

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

.page-news__hero-content {
    order: 2; /* Content after image */
    text-align: center;
    max-width: 900px;
    margin: 40px auto 0 auto;
    padding: 0 20px;
}

.page-news__hero-title {
    font-size: 2.8em;
    font-weight: bold;
    color: var(--max88-gold);
    line-height: 1.2;
    margin-bottom: 20px;
    text-shadow: 0 0 10px rgba(87, 227, 141, 0.5); /* Glow effect */
}

.page-news__hero-description {
    font-size: 1.1em;
    color: var(--max88-text-secondary);
    line-height: 1.6;
    margin-bottom: 30px;
}

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

.page-news__section-title {
    font-size: 2.2em;
    color: var(--max88-primary-color);
    text-align: center;
    margin-bottom: 20px;
    font-weight: bold;
}

.page-news__section-description {
    font-size: 1.1em;
    color: var(--max88-text-secondary);
    text-align: center;
    margin-bottom: 40px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.page-news__btn-primary,
.page-news__btn-secondary {
    display: inline-block;
    padding: 12px 25px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s ease;
    text-align: center;
    box-sizing: border-box;
    white-space: normal;
    word-wrap: break-word;
}

.page-news__btn-primary {
    background: var(--max88-button-gradient);
    color: #ffffff;
    border: none;
    box-shadow: 0 4px 15px rgba(34, 199, 104, 0.4);
}

.page-news__btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(34, 199, 104, 0.6);
}

.page-news__btn-secondary {
    background-color: transparent;
    color: var(--max88-primary-color);
    border: 2px solid var(--max88-primary-color);
}

.page-news__btn-secondary:hover {
    background-color: var(--max88-primary-color);
    color: #ffffff;
}

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

.page-news__news-card,
.page-news__article-card {
    background-color: var(--max88-card-bg);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
}

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

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

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

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

.page-news__news-card-title a,
.page-news__article-card-title a {
    color: var(--max88-text-main);
    text-decoration: none;
    transition: color 0.3s ease;
}

.page-news__news-card-title a:hover,
.page-news__article-card-title a:hover {
    color: var(--max88-primary-color);
}

.page-news__news-card-meta,
.page-news__article-card-meta {
    font-size: 0.9em;
    color: var(--max88-text-secondary);
    margin-bottom: 15px;
}

.page-news__news-card-summary,
.page-news__article-card-summary {
    font-size: 1em;
    color: var(--max88-text-secondary);
    line-height: 1.6;
    margin-bottom: 20px;
    flex-grow: 1;
}

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

.page-news__why-choose-max88 {
    background-color: var(--max88-deep-green);
    color: var(--max88-text-main);
    padding: 80px 20px;
}

.page-news__why-choose-max88 .page-news__section-title {
    color: var(--max88-gold);
}

.page-news__why-choose-max88 .page-news__section-description {
    color: var(--max88-text-secondary);
}

.page-news__features-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    list-style: none;
    padding: 0;
    margin: 40px 0;
}

.page-news__feature-item {
    background-color: var(--max88-card-bg);
    padding: 30px;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.page-news__feature-icon {
    font-size: 2.5em;
    color: var(--max88-primary-color);
    margin-bottom: 15px;
    display: block;
}

.page-news__feature-title {
    font-size: 1.5em;
    color: var(--max88-text-main);
    margin-bottom: 10px;
}

.page-news__feature-text {
    color: var(--max88-text-secondary);
    line-height: 1.6;
}

.page-news__faq-section {
    background-color: var(--max88-bg);
}

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

.page-news__faq-item {
    background-color: var(--max88-card-bg);
    border: 1px solid var(--max88-divider);
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
    color: var(--max88-text-main);
}

.page-news__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    font-size: 1.2em;
    font-weight: bold;
    cursor: pointer;
    background-color: var(--max88-card-bg);
    color: var(--max88-text-main);
    list-style: none;
    user-select: none;
}

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

.page-news__faq-question::marker {
    display: none;
}

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

.page-news__faq-toggle {
    font-size: 1.5em;
    line-height: 1;
    margin-left: 15px;
    color: var(--max88-primary-color);
}

.page-news__faq-answer {
    padding: 0 25px 20px 25px;
    font-size: 1em;
    color: var(--max88-text-secondary);
    line-height: 1.6;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .page-news__hero-title {
        font-size: 2.4em;
    }
    .page-news__section-title {
        font-size: 1.8em;
    }
    .page-news__news-card-title,
    .page-news__article-card-title {
        font-size: 1.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: 2em;
        max-width: 100%;
    }
    .page-news__hero-description {
        font-size: 1em;
    }
    .page-news__section {
        padding: 40px 15px;
    }
    .page-news__section-title {
        font-size: 1.6em;
    }
    .page-news__section-description {
        font-size: 0.95em;
    }
    .page-news__news-grid,
    .page-news__articles-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    .page-news__news-card-image,
    .page-news__article-card-image {
        height: 200px;
    }
    .page-news__news-card-content,
    .page-news__article-card-content {
        padding: 20px;
    }
    .page-news__news-card-title,
    .page-news__article-card-title {
        font-size: 1.1em;
    }
    .page-news__feature-item {
        padding: 25px;
    }
    .page-news__faq-question {
        padding: 15px 20px;
        font-size: 1.1em;
    }
    .page-news__faq-answer {
        padding: 0 20px 15px 20px;
    }

    /* Mobile responsive images, videos, buttons */
    .page-news img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    .page-news video,
    .page-news__video {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    .page-news__section,
    .page-news__card,
    .page-news__container,
    .page-news__video-section,
    .page-news__video-container,
    .page-news__video-wrapper,
    .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 !important;
        padding-right: 15px !important;
        overflow: hidden !important;
    }
    .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;
        margin-bottom: 10px; /* Add space between stacked buttons */
    }
    .page-news__cta-buttons {
        flex-direction: column !important;
        gap: 10px;
    }
    .page-news__hero-section {
        padding-top: 10px !important; /* body already handles --header-offset */
    }
}

@media (max-width: 480px) {
    .page-news__hero-title {
        font-size: 1.8em;
    }
    .page-news__section-title {
        font-size: 1.4em;
    }
    .page-news__news-card-title,
    .page-news__article-card-title {
        font-size: 1em;
    }
    .page-news__faq-question {
        font-size: 1em;
    }
}