/* style/news.css */

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

.page-news {
    font-family: Arial, sans-serif;
    color: var(--mcw-text-main);
    background-color: var(--mcw-background);
}

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

.page-news__hero-section {
    position: relative;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-top: 10px;
    background-color: var(--mcw-deep-green);
    overflow: hidden;
}

.page-news__hero-image-wrapper {
    width: 100%;
    max-height: 675px;
    overflow: hidden;
}

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

.page-news__hero-content {
    text-align: center;
    padding: 40px 20px;
    max-width: 900px;
    background-color: var(--mcw-card-bg);
    border-radius: 8px;
    margin-top: -80px; /* Overlap with image slightly for design */
    position: relative;
    z-index: 1;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    border: 1px solid var(--mcw-border);
}

.page-news__main-title {
    font-weight: bold;
    color: var(--mcw-gold);
    line-height: 1.2;
    margin-bottom: 20px;
    letter-spacing: -0.5px;
    max-width: 90%;
    margin-left: auto;
    margin-right: auto;
}

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

.page-news__cta-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

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

.page-news__btn-primary {
    background: var(--mcw-button-gradient);
    color: var(--mcw-text-main);
    border: none;
}

.page-news__btn-primary:hover {
    opacity: 0.9;
    transform: translateY(-2px);
}

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

.page-news__btn-secondary:hover {
    background-color: var(--mcw-primary);
    color: var(--mcw-text-main);
}

.page-news__latest-news-section,
.page-news__promotions-section,
.page-news__faq-section,
.page-news__cta-bottom-section {
    padding: 60px 0;
}

.page-news__section-title {
    text-align: center;
    color: var(--mcw-gold);
    margin-bottom: 20px;
    font-weight: bold;
    line-height: 1.3;
}

.page-news__section-description {
    text-align: center;
    color: var(--mcw-text-secondary);
    max-width: 800px;
    margin: 0 auto 40px auto;
    line-height: 1.6;
}

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

.page-news__news-card,
.page-news__promo-card {
    background-color: var(--mcw-card-bg);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease;
    border: 1px solid var(--mcw-border);
    display: flex;
    flex-direction: column;
}

.page-news__news-card:hover,
.page-news__promo-card:hover {
    transform: translateY(-5px);
}

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

.page-news__promo-image {
    height: 300px;
}

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

.page-news__card-title {
    font-size: 1.4em;
    margin-bottom: 10px;
    line-height: 1.4;
}

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

.page-news__card-title a:hover {
    color: var(--mcw-gold);
}

.page-news__card-meta {
    font-size: 0.9em;
    color: var(--mcw-text-secondary);
    margin-bottom: 15px;
}

.page-news__card-excerpt {
    color: var(--mcw-text-secondary);
    line-height: 1.6;
    margin-bottom: 20px;
    flex-grow: 1;
}

.page-news__read-more-btn {
    display: inline-block;
    background-color: var(--mcw-primary);
    color: var(--mcw-text-main);
    padding: 10px 20px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s ease;
    align-self: flex-start;
}

.page-news__read-more-btn:hover {
    background-color: var(--mcw-secondary);
}

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

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

.page-news__faq-item {
    background-color: var(--mcw-card-bg);
    border: 1px solid var(--mcw-border);
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
    transition: all 0.3s ease;
}

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

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

.page-news__faq-toggle {
    font-size: 1.5em;
    line-height: 1;
    color: var(--mcw-gold);
    transition: transform 0.3s ease;
}

.page-news__faq-item[open] .page-news__faq-toggle {
    transform: rotate(45deg);
}

.page-news__faq-answer {
    padding: 0 25px 20px;
    color: var(--mcw-text-secondary);
    line-height: 1.6;
}

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

.page-news__cta-bottom-section .page-news__container {
    background-color: var(--mcw-deep-green);
    border-radius: 8px;
    padding: 60px 40px;
    text-align: center;
    border: 1px solid var(--mcw-border);
}

/* Responsive styles */
@media (max-width: 1024px) {
    .page-news__hero-content {
        margin-top: -60px;
        padding: 30px 20px;
    }

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

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

    .page-news__container {
        padding-left: 15px;
        padding-right: 15px;
    }

    .page-news__hero-section {
        padding-top: 10px !important;
    }

    .page-news__hero-content {
        margin-top: -40px;
        padding: 25px 15px;
    }

    .page-news__main-title {
        font-size: 1.8em;
        max-width: 100%;
    }

    .page-news__description {
        font-size: 1em;
    }

    .page-news__cta-buttons {
        flex-direction: column;
        gap: 10px;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding: 0 15px;
    }

    .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__news-grid,
    .page-news__promo-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .page-news__news-image,
    .page-news__promo-image {
        height: 180px;
    }

    .page-news__promo-image {
        height: 250px;
    }

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

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

    .page-news__news-card,
    .page-news__promo-card,
    .page-news__faq-item {
        margin-left: 15px;
        margin-right: 15px;
        max-width: calc(100% - 30px);
        width: auto;
    }

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

    .page-news__section,
    .page-news__card,
    .page-news__container {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

    .page-news__cta-bottom-section .page-news__container {
        padding: 40px 20px;
        margin-left: 15px;
        margin-right: 15px;
        max-width: calc(100% - 30px);
        width: auto;
    }

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

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

@media (max-width: 480px) {
    .page-news__main-title {
        font-size: 1.6em;
    }

    .page-news__hero-content {
        margin-top: -30px;
    }

    .page-news__news-image,
    .page-news__promo-image {
        height: 150px;
    }

    .page-news__promo-image {
        height: 200px;
    }

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