/* style/news.css */

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

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

.page-news__hero-section {
    position: relative;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 10px 0 60px 0; /* Adjusted padding-top to 10px */
    overflow: hidden;
}

.page-news__hero-image-wrapper {
    width: 100%;
    max-height: 700px; /* Limit height for hero image */
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
}

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

.page-news__hero-content {
    max-width: 900px;
    margin: 40px auto 0 auto;
    text-align: center;
    padding: 0 20px;
}

.page-news__main-title {
    font-size: clamp(2em, 5vw, 3.5em);
    font-weight: 700;
    color: var(--color-gold);
    margin-bottom: 20px;
    line-height: 1.2;
    letter-spacing: 0.05em;
}

.page-news__intro-text {
    font-size: 1.1em;
    color: var(--color-text-secondary);
    margin-bottom: 30px;
}

.page-news__section-title {
    font-size: 2.5em;
    color: var(--color-primary);
    text-align: center;
    margin-bottom: 40px;
    font-weight: 700;
    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: var(--color-gold);
    border-radius: 2px;
}

.page-news__latest-news-section,
.page-news__guides-section,
.page-news__promotions-section,
.page-news__security-section,
.page-news__faq-section,
.page-news__cta-final-section {
    max-width: 1200px;
    margin: 60px auto;
    padding: 0 20px;
    box-sizing: border-box;
}

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

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

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

.page-news__news-card-image,
.page-news__promotion-card-image {
    width: 100%;
    height: 220px;
    object-fit: cover;
}

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

.page-news__news-card-title,
.page-news__promotion-card-title {
    font-size: 1.4em;
    color: var(--color-primary);
    margin-bottom: 10px;
    font-weight: 600;
}

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

.page-news__news-card-title a:hover,
.page-news__promotion-card-title a:hover {
    color: var(--color-gold);
}

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

.page-news__news-card-excerpt,
.page-news__promotion-card-text {
    font-size: 1em;
    color: var(--color-text-main);
    margin-bottom: 20px;
    flex-grow: 1;
}

.page-news__read-more-link {
    color: var(--color-gold);
    text-decoration: none;
    font-weight: 600;
    align-self: flex-start;
    transition: color 0.3s ease;
}

.page-news__read-more-link:hover {
    color: var(--color-primary);
}

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

.page-news__cta-button {
    display: inline-block;
    background: var(--button-gradient);
    color: #ffffff;
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.1em;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: none;
    cursor: pointer;
    box-sizing: border-box;
    white-space: normal;
    word-wrap: break-word;
}

.page-news__cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(34, 199, 104, 0.4);
}

.page-news__cta-button--small {
    padding: 12px 25px;
    font-size: 1em;
}

.page-news__cta-button--large {
    padding: 18px 35px;
    font-size: 1.2em;
}

.page-news__video-wrapper {
    width: 100%;
    max-width: 900px;
    margin: 0 auto 40px auto;
    position: relative;
    padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
    height: 0;
    overflow: hidden;
    background-color: #000;
    border-radius: 10px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.page-news__video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
    cursor: pointer;
}

.page-news__video-description {
    text-align: center;
    margin-top: 15px;
    font-style: italic;
    color: var(--color-text-secondary);
}

.page-news__guide-card {
    background-color: var(--color-card-bg);
    border: 1px solid var(--color-border);
    border-radius: 10px;
    padding: 25px;
    display: flex;
    flex-direction: column;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-news__guide-card-title {
    font-size: 1.5em;
    color: var(--color-gold);
    margin-bottom: 15px;
    font-weight: 600;
}

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

.page-news__security-section {
    text-align: center;
}

.page-news__security-image {
    width: 100%;
    max-width: 900px;
    height: auto;
    border-radius: 10px;
    margin-bottom: 40px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
}

.page-news__security-content {
    max-width: 900px;
    margin: 0 auto;
    text-align: left;
}

.page-news__security-subtitle {
    font-size: 1.8em;
    color: var(--color-primary);
    margin-top: 30px;
    margin-bottom: 15px;
    font-weight: 600;
}

.page-news__security-text {
    font-size: 1.1em;
    color: var(--color-text-main);
    margin-bottom: 25px;
}

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

.page-news__faq-item {
    background-color: var(--color-card-bg);
    border: 1px solid var(--color-border);
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
}

.page-news__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    font-size: 1.2em;
    font-weight: 600;
    color: var(--color-primary);
    cursor: pointer;
    background-color: var(--color-deep-green);
    border-bottom: 1px solid var(--color-divider);
    list-style: none; /* For details/summary */
}

.page-news__faq-question::-webkit-details-marker {
    display: none; /* Hide default marker */
}

.page-news__faq-toggle {
    font-size: 1.5em;
    font-weight: bold;
    color: var(--color-gold);
    margin-left: 15px;
    transition: transform 0.3s ease;
}

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

.page-news__faq-answer {
    padding: 20px;
    font-size: 1em;
    color: var(--color-text-secondary);
}

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

.page-news__cta-final-section {
    text-align: center;
    background-color: var(--color-deep-green);
    padding: 60px 20px;
    border-radius: 10px;
    margin-bottom: 80px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.page-news__cta-description {
    font-size: 1.2em;
    color: var(--color-text-secondary);
    margin-bottom: 40px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* --- Responsive Styles --- */
@media (max-width: 1024px) {
    .page-news__hero-content {
        max-width: 768px;
    }
    .page-news__news-grid,
    .page-news__guide-grid,
    .page-news__promotion-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: 20px;
    }
    .page-news__section-title {
        font-size: 2em;
    }
}

@media (max-width: 768px) {
    .page-news__hero-section {
        padding-bottom: 40px;
    }
    .page-news__hero-content {
        padding: 0 15px;
    }
    .page-news__main-title {
        font-size: clamp(1.8em, 7vw, 2.5em);
    }
    .page-news__intro-text {
        font-size: 1em;
    }
    .page-news__section-title {
        font-size: 1.8em;
    }
    .page-news__news-grid,
    .page-news__guide-grid,
    .page-news__promotion-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    .page-news__latest-news-section,
    .page-news__guides-section,
    .page-news__promotions-section,
    .page-news__security-section,
    .page-news__faq-section,
    .page-news__cta-final-section {
        margin: 40px auto;
        padding: 0 15px;
    }
    .page-news__news-card-image,
    .page-news__promotion-card-image {
        height: 180px;
    }
    .page-news__news-card-title,
    .page-news__promotion-card-title {
        font-size: 1.2em;
    }
    .page-news__guide-card-title {
        font-size: 1.3em;
    }
    .page-news__security-subtitle {
        font-size: 1.5em;
    }
    .page-news__security-text,
    .page-news__cta-description {
        font-size: 1em;
    }
    .page-news__faq-question {
        font-size: 1.1em;
        padding: 15px;
    }
    .page-news__faq-answer {
        padding: 15px;
    }

    /* Mobile specific image, video, button adaptations */
    .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__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 already handles --header-offset */
    }
    .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 {
        display: flex;
        flex-direction: column;
    }
    .page-news__latest-news-section,
    .page-news__guides-section,
    .page-news__promotions-section,
    .page-news__security-section,
    .page-news__faq-section,
    .page-news__cta-final-section {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
    }
}

@media (max-width: 480px) {
    .page-news__main-title {
        font-size: clamp(1.5em, 8vw, 2em);
    }
    .page-news__section-title {
        font-size: 1.5em;
    }
    .page-news__cta-button {
        font-size: 1em;
        padding: 12px 20px;
    }
    .page-news__cta-button--large {
        padding: 15px 25px;
        font-size: 1.1em;
    }
}