/* style/news.css */

/* Custom Colors */
:root {
    --color-primary: #11A84E;
    --color-secondary: #22C768;
    --color-button-gradient: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
    --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;
}

/* Base styles for page-news scope */
.page-news {
    font-family: 'Arial', sans-serif;
    color: var(--color-text-main); /* Default text color for dark background */
    background-color: var(--color-background);
}

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

.page-news__section-title {
    font-size: clamp(28px, 4vw, 48px);
    color: var(--color-gold);
    text-align: center;
    margin-bottom: 40px;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: 0.05em;
    text-shadow: 0 0 10px rgba(242, 193, 78, 0.5);
}

.page-news__subtitle {
    font-size: clamp(22px, 3vw, 32px);
    color: var(--color-text-main);
    margin-top: 30px;
    margin-bottom: 15px;
    font-weight: 600;
    line-height: 1.3;
}

.page-news__text-main {
    font-size: 18px;
    line-height: 1.6;
    margin-bottom: 20px;
    color: var(--color-text-main);
}

.page-news__text-secondary {
    font-size: 16px;
    line-height: 1.5;
    margin-bottom: 15px;
    color: var(--color-text-secondary);
}

/* Hero Section */
.page-news__hero-section {
    position: relative;
    padding: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    overflow: hidden;
    max-width: none; /* Allows full width */
    width: 100%;
    padding-top: 10px; /* Small top padding, body handles header offset */
}

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

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

.page-news__hero-content {
    padding: 40px 20px;
    max-width: 900px;
    margin-top: -100px; /* Overlap slightly for design, but text is below image in DOM */
    background: rgba(17, 39, 27, 0.9);
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    position: relative;
    z-index: 2;
    margin-bottom: 40px;
}

.page-news__main-title {
    font-size: clamp(32px, 5vw, 56px);
    color: var(--color-gold);
    margin-bottom: 20px;
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: 0.08em;
    text-shadow: 0 0 15px rgba(242, 193, 78, 0.7);
}

.page-news__intro-text {
    font-size: 20px;
    line-height: 1.7;
    margin-bottom: 30px;
    color: var(--color-text-main);
}

/* Button Group */
.page-news__button-group {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
    margin-top: 30px;
}

/* Primary Button */
.page-news__btn-primary,
.page-news a[class*="button"],
.page-news a[class*="btn"] {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 50px;
    font-size: 18px;
    font-weight: bold;
    text-decoration: none;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    background: var(--color-button-gradient);
    color: #ffffff;
    border: none;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    max-width: 100%;
    box-sizing: border-box;
    white-space: normal;
    word-wrap: break-word;
}

.page-news__btn-primary:hover,
.page-news a[class*="button"]:hover,
.page-news a[class*="btn"]:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
    opacity: 0.9;
}

/* Secondary Button */
.page-news__btn-secondary {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 50px;
    font-size: 18px;
    font-weight: bold;
    text-decoration: none;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    background: transparent;
    color: var(--color-secondary);
    border: 2px solid var(--color-secondary);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    max-width: 100%;
    box-sizing: border-box;
    white-space: normal;
    word-wrap: break-word;
}

.page-news__btn-secondary:hover {
    background: var(--color-secondary);
    color: var(--color-background);
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

/* Grid Container for Updates Section */
.page-news__grid-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.page-news__card {
    background: var(--color-card-bg);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.4);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid var(--color-border);
    display: flex;
    flex-direction: column;
    color: var(--color-text-main);
}

.page-news__card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
}

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

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

.page-news__card-title {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 10px;
    line-height: 1.3;
}

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

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

.page-news__card-date {
    font-size: 14px;
    color: var(--color-text-secondary);
    margin-bottom: 15px;
}

.page-news__card-description {
    font-size: 16px;
    line-height: 1.5;
    color: var(--color-text-secondary);
    margin-bottom: 20px;
    flex-grow: 1;
}

.page-news__read-more {
    display: inline-block;
    color: var(--color-secondary);
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s ease;
    margin-top: auto; /* Pushes to bottom */
}

.page-news__read-more:hover {
    color: var(--color-glow);
    text-decoration: underline;
}

/* Promotions & Guides Section Specifics */
.page-news__promotions-section .page-news__promo-image,
.page-news__guides-section .page-news__guide-image,
.page-news__security-section .page-news__security-image {
    width: 100%;
    height: auto;
    max-height: 500px;
    object-fit: cover;
    border-radius: 10px;
    margin-bottom: 40px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.5);
}

.page-news__content-wrapper {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
}

/* FAQ Section */
.page-news__faq-list {
    margin-top: 40px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

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

.page-news__faq-item summary {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    color: var(--color-gold);
    list-style: none; /* Hide default marker */
    outline: none;
}

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

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

.page-news__faq-toggle {
    font-size: 24px;
    line-height: 1;
    margin-left: 15px;
    color: var(--color-secondary);
}

.page-news__faq-item[open] .page-news__faq-toggle {
    content: '−';
}

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

/* Call to Action Section */
.page-news__call-to-action {
    text-align: center;
    padding: 80px 20px;
    background: var(--color-deep-green);
    border-radius: 15px;
    margin-top: 60px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.page-news__call-to-action .page-news__section-title {
    color: var(--color-gold);
    margin-bottom: 25px;
}

.page-news__call-to-action .page-news__text-main {
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 40px;
    font-size: 19px;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .page-news__section {
        padding: 40px 15px;
    }

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

    .page-news__main-title {
        font-size: 32px;
    }

    .page-news__intro-text {
        font-size: 16px;
    }

    .page-news__section-title {
        font-size: 28px;
        margin-bottom: 30px;
    }

    .page-news__subtitle {
        font-size: 22px;
    }

    .page-news__text-main,
    .page-news__text-secondary {
        font-size: 15px;
    }

    .page-news__button-group {
        flex-direction: column;
        gap: 15px;
    }

    .page-news__btn-primary,
    .page-news__btn-secondary,
    .page-news a[class*="button"],
    .page-news a[class*="btn"] {
        padding: 12px 20px;
        font-size: 16px;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
    }

    .page-news__card-image {
        height: 180px;
    }

    .page-news__card-title {
        font-size: 18px;
    }

    .page-news__card-description {
        font-size: 14px;
    }

    .page-news__faq-item summary {
        padding: 15px 20px;
        font-size: 16px;
    }

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

    /* Mobile image responsiveness */
    .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,
    .page-news__hero-image-wrapper,
    .page-news__hero-content,
    .page-news__content-wrapper,
    .page-news__faq-list,
    .page-news__button-group {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        overflow-x: hidden;
    }
    
    .page-news__hero-section {
        padding-top: 10px !important; /* body already handles --header-offset */
    }
    
    .page-news__video-section {
        padding-top: 10px !important;
    }
    
    /* Ensure flex items wrap if they are buttons in a group */
    .page-news__button-group {
        flex-wrap: wrap !important;
        gap: 10px;
    }
}