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

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

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

/* Hero Section */
.page-news__hero-section {
    position: relative;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-top: 10px; /* body handles --header-offset */
    background-color: var(--ff168-deep-green);
    overflow: hidden;
}

.page-news__hero-image-wrapper {
    width: 100%;
    max-height: 500px;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
}

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

.page-news__hero-content {
    position: relative;
    z-index: 10;
    text-align: center;
    padding: 40px 20px;
    max-width: 900px;
    margin: 0 auto;
    background-color: rgba(0, 0, 0, 0.4); /* Subtle overlay for text readability */
    border-radius: 8px;
    margin-top: -80px; /* Overlap slightly with the image for visual flow */
    border: 1px solid var(--ff168-border);
}

.page-news__hero-title {
    font-size: clamp(2em, 4vw, 3.2em); /* Responsive font size */
    color: var(--ff168-gold);
    font-weight: 700;
    margin-bottom: 15px;
    line-height: 1.2;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.page-news__hero-description {
    font-size: 1.1em;
    color: var(--ff168-text-main);
    margin-bottom: 30px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.page-news__hero-button {
    display: inline-block;
    padding: 15px 30px;
    background: var(--ff168-button-gradient);
    color: var(--ff168-text-main);
    text-decoration: none;
    border-radius: 8px;
    font-weight: bold;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    border: none;
}

.page-news__hero-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3), 0 0 15px var(--ff168-glow);
}

/* Section Titles */
.page-news__section-title {
    font-size: 2.5em;
    color: var(--ff168-gold);
    text-align: center;
    margin-top: 60px;
    margin-bottom: 40px;
    font-weight: 700;
    position: relative;
}

.page-news__section-title::after {
    content: '';
    display: block;
    width: 80px;
    height: 3px;
    background: var(--ff168-primary);
    margin: 15px auto 0;
    border-radius: 2px;
}

/* Featured News Section */
.page-news__featured-news-section {
    padding: 60px 0;
    background-color: var(--ff168-background);
}

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

.page-news__news-card {
    background-color: var(--ff168-card-bg);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid var(--ff168-border);
}

.page-news__news-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4), 0 0 20px var(--ff168-glow);
}

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

.page-news__card-content {
    padding: 25px;
}

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

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

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

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

.page-news__card-excerpt {
    font-size: 1em;
    color: var(--ff168-text-secondary);
    margin-bottom: 20px;
}

.page-news__card-link {
    display: inline-block;
    color: var(--ff168-primary);
    text-decoration: none;
    font-weight: bold;
    position: relative;
}

.page-news__card-link::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -3px;
    width: 100%;
    height: 2px;
    background-color: var(--ff168-primary);
    transform: scaleX(0);
    transform-origin: bottom right;
    transition: transform 0.3s ease-out;
}

.page-news__card-link:hover::after {
    transform: scaleX(1);
    transform-origin: bottom left;
}

/* Latest Articles Section */
.page-news__latest-articles-section {
    padding: 60px 0;
    background-color: var(--ff168-deep-green);
}

.page-news__articles-list {
    display: grid;
    grid-template-columns: 1fr;
    gap: 25px;
}

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

.page-news__list-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3), 0 0 10px var(--ff168-primary);
}

.page-news__list-image {
    width: 250px;
    height: 180px;
    object-fit: cover;
    flex-shrink: 0;
    display: block;
}

.page-news__list-content {
    padding: 20px;
    flex-grow: 1;
}

.page-news__list-title {
    font-size: 1.3em;
    margin-bottom: 8px;
    line-height: 1.3;
}

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

.page-news__list-title a:hover {
    color: var(--ff168-primary);
}

.page-news__list-meta {
    font-size: 0.85em;
    color: var(--ff168-text-secondary);
    margin-bottom: 10px;
}

.page-news__list-excerpt {
    font-size: 0.95em;
    color: var(--ff168-text-secondary);
}

.page-news__list-link {
    display: inline-block;
    margin-top: 15px;
    color: var(--ff168-primary);
    text-decoration: none;
    font-weight: bold;
    position: relative;
}

.page-news__list-link::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -3px;
    width: 100%;
    height: 2px;
    background-color: var(--ff168-primary);
    transform: scaleX(0);
    transform-origin: bottom right;
    transition: transform 0.3s ease-out;
}

.page-news__list-link:hover::after {
    transform: scaleX(1);
    transform-origin: bottom left;
}

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

.page-news__view-all-button {
    display: inline-block;
    padding: 12px 25px;
    background: var(--ff168-primary);
    color: var(--ff168-text-main);
    text-decoration: none;
    border-radius: 6px;
    font-weight: bold;
    transition: background-color 0.3s ease, transform 0.3s ease;
    border: 2px solid var(--ff168-primary);
}

.page-news__view-all-button:hover {
    background-color: var(--ff168-secondary);
    transform: translateY(-2px);
}

/* CTA Section */
.page-news__cta-section {
    padding: 80px 0;
    text-align: center;
    background-color: var(--ff168-background);
    border-top: 1px solid var(--ff168-divider);
}

.page-news__cta-title {
    font-size: 2.2em;
    color: var(--ff168-gold);
    margin-bottom: 20px;
}

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

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

.page-news__btn-primary,
.page-news__btn-secondary {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 8px;
    font-weight: bold;
    text-decoration: none;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-sizing: border-box;
    white-space: normal;
    word-wrap: break-word;
    max-width: 100%;
}

.page-news__btn-primary {
    background: var(--ff168-button-gradient);
    color: var(--ff168-text-main);
    border: none;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-news__btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3), 0 0 15px var(--ff168-glow);
}

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

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

/* FAQ Section */
.page-news__faq-section {
    padding: 60px 0 80px;
    background-color: var(--ff168-deep-green);
    border-top: 1px solid var(--ff168-divider);
}

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

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

.page-news__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    font-size: 1.2em;
    font-weight: bold;
    color: var(--ff168-text-main);
    cursor: pointer;
    list-style: none; /* For details/summary */
    transition: background-color 0.3s ease;
}

.page-news__faq-item[open] .page-news__faq-question {
    background-color: rgba(var(--ff168-primary), 0.1);
}

.page-news__faq-question:hover {
    background-color: rgba(var(--ff168-primary), 0.05);
}

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

.page-news__faq-toggle {
    font-size: 1.5em;
    margin-left: 15px;
    color: var(--ff168-primary);
    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(--ff168-text-secondary);
    font-size: 1em;
    line-height: 1.7;
}

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

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

/* Responsive Styles */
@media (max-width: 1024px) {
    .page-news__hero-content {
        margin-top: -60px;
        padding: 30px 20px;
    }
    .page-news__hero-title {
        font-size: clamp(1.8em, 5vw, 2.8em);
    }
    .page-news__news-card {
        margin: 0 auto;
        max-width: 450px;
    }
    .page-news__featured-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    }
    .page-news__list-item {
        flex-direction: column;
    }
    .page-news__list-image {
        width: 100%;
        height: 200px;
    }
}

@media (max-width: 768px) {
    /* Global responsive images/videos/buttons */
    .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-section, .page-news__featured-news-section, .page-news__latest-articles-section, .page-news__cta-section, .page-news__faq-section {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
    }
    .page-news__hero-section {
        padding-top: 10px !important;
    }
    .page-news__hero-content {
        margin-top: -40px;
        padding: 25px 15px;
        width: calc(100% - 30px); /* Adjust for padding */
    }
    .page-news__hero-title {
        font-size: clamp(1.5em, 6vw, 2.2em);
    }
    .page-news__hero-description {
        font-size: 1em;
    }
    .page-news__section-title {
        font-size: 2em;
        margin-top: 40px;
        margin-bottom: 30px;
    }
    .page-news__featured-grid {
        grid-template-columns: 1fr;
    }
    .page-news__list-item {
        flex-direction: column;
    }
    .page-news__list-image {
        width: 100%;
        height: 180px;
    }
    .page-news__cta-title {
        font-size: 1.8em;
    }
    .page-news__cta-description {
        font-size: 1em;
    }
    .page-news__cta-buttons {
        flex-direction: column;
        gap: 15px;
    }
    .page-news__btn-primary,
    .page-news__btn-secondary {
        width: 100% !important;
        padding: 15px 0 !important; /* Adjust padding for full width */
    }
    .page-news__faq-question {
        font-size: 1.1em;
        padding: 15px 20px;
    }
    .page-news__faq-answer {
        padding: 0 20px 15px;
    }
}

@media (max-width: 480px) {
    .page-news__hero-content {
        margin-top: -20px;
        padding: 20px 10px;
    }
    .page-news__hero-title {
        font-size: clamp(1.4em, 7vw, 1.8em);
    }
    .page-news__hero-description {
        font-size: 0.9em;
    }
    .page-news__news-card {
        border-radius: 8px;
    }
    .page-news__card-content {
        padding: 15px;
    }
    .page-news__card-title {
        font-size: 1.3em;
    }
    .page-news__list-item {
        border-radius: 8px;
    }
    .page-news__list-content {
        padding: 15px;
    }
    .page-news__list-title {
        font-size: 1.2em;
    }
    .page-news__cta-title {
        font-size: 1.6em;
    }
    .page-news__faq-question {
        font-size: 1em;
        padding: 12px 15px;
    }
    .page-news__faq-toggle {
        font-size: 1.3em;
    }
    .page-news__faq-answer {
        font-size: 0.9em;
        padding: 0 15px 12px;
    }
}