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

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

/* Hero Section */
.page-news__hero-section {
    position: relative;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 60px 20px;
    padding-top: 10px; /* body already handles --header-offset */
    box-sizing: border-box;
    overflow: hidden; /* Ensure no overflow from video */
}

.page-news__hero-video-container {
    width: 100%;
    max-width: 100%; /* Ensure it spans full width */
    position: relative;
    padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
    height: 0;
    overflow: hidden;
    margin-bottom: 20px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.page-news__hero-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    cursor: pointer; /* Indicate clickability for JS */
}

.page-news__hero-content {
    max-width: 900px;
    text-align: center;
    margin-top: 20px;
}

.page-news__main-title {
    color: var(--cr88-text-main);
    font-size: clamp(2em, 4vw, 3.5em); /* Responsive font size */
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.03em;
    margin-bottom: 20px;
}

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

/* General Section Styling */
.page-news__section {
    padding: 50px 20px;
    box-sizing: border-box;
}

.page-news__container {
    max-width: 1200px;
    margin: 0 auto;
    width: 100%; /* Ensure container takes full width up to max-width */
    box-sizing: border-box;
}

.page-news__section-title {
    color: var(--cr88-text-main);
    font-size: clamp(1.8em, 3vw, 2.8em);
    font-weight: 600;
    text-align: center;
    margin-bottom: 30px;
    position: relative;
    padding-bottom: 10px;
}

.page-news__section-title::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: var(--cr88-gold);
    border-radius: 2px;
}

.page-news__section-description {
    color: var(--cr88-text-secondary);
    text-align: center;
    max-width: 800px;
    margin: 0 auto 40px auto;
    font-size: 1em;
}

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

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

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

.page-news__card-image {
    width: 100%;
    height: 250px; /* Fixed height for consistency */
    object-fit: cover;
    display: block;
}

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

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

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

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

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

.page-news__card-description {
    color: var(--cr88-text-secondary);
    font-size: 1em;
    margin-bottom: 20px;
    flex-grow: 1; /* Allows description to take available space */
}

.page-news__read-more-btn {
    display: inline-block;
    background: var(--cr88-button-gradient);
    color: var(--cr88-text-main);
    padding: 10px 20px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 600;
    transition: opacity 0.3s ease;
    align-self: flex-start; /* Align button to start of card */
}

.page-news__read-more-btn:hover {
    opacity: 0.9;
}

/* Article List */
.page-news__article-list {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.page-news__article-item {
    background-color: var(--cr88-card-bg);
    border-radius: 8px;
    padding: 25px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
}

.page-news__article-title {
    font-size: 1.3em;
    font-weight: 600;
    margin-bottom: 8px;
}

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

.page-news__article-title a:hover {
    color: var(--cr88-gold);
}

.page-news__article-meta {
    color: var(--cr88-text-secondary);
    font-size: 0.85em;
    margin-bottom: 15px;
}

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

/* Call to Action Buttons */
.page-news__cta-container {
    text-align: center;
    margin-top: 30px;
}

.page-news__cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 30px;
    flex-wrap: wrap; /* Allow buttons to wrap on smaller screens */
}

.page-news__btn-primary,
.page-news__btn-secondary {
    display: inline-block;
    padding: 14px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.1em;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-sizing: border-box;
    white-space: normal; /* Allow text to wrap */
    word-wrap: break-word; /* Break long words */
    text-align: center;
    min-width: 180px; /* Minimum width for buttons */
}

.page-news__btn-primary {
    background: var(--cr88-button-gradient);
    color: var(--cr88-text-main);
    border: none;
    box-shadow: 0 4px 10px rgba(42, 209, 111, 0.3);
}

.page-news__btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(42, 209, 111, 0.4);
}

.page-news__btn-secondary {
    background-color: transparent;
    color: var(--cr88-gold);
    border: 2px solid var(--cr88-gold);
    box-shadow: 0 4px 10px rgba(242, 193, 78, 0.2);
}

.page-news__btn-secondary:hover {
    transform: translateY(-2px);
    background-color: rgba(242, 193, 78, 0.1);
    box-shadow: 0 6px 15px rgba(242, 193, 78, 0.3);
}


/* FAQ Section */
.page-news__faq-section {
    background-color: var(--cr88-deep-green); /* Darker background for FAQ for visual separation */
    padding: 60px 20px;
    border-radius: 10px;
    margin: 40px auto;
}

.page-news__faq-section .page-news__section-title {
    color: var(--cr88-text-main);
}

.page-news__faq-list {
    max-width: 900px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.page-news__faq-item {
    background-color: var(--cr88-card-bg);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
    color: var(--cr88-text-main);
}

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

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

.page-news__faq-item[open] .page-news__faq-question {
    background-color: var(--cr88-deep-green); /* Slightly darker when open */
}

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

.page-news__faq-toggle {
    font-size: 1.5em;
    font-weight: 300;
    margin-left: 15px;
    color: var(--cr88-gold);
}

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

.page-news__faq-answer p {
    margin-bottom: 10px;
}
.page-news__faq-answer p:last-child {
    margin-bottom: 0;
}

.page-news__faq-answer a {
    color: var(--cr88-gold);
    text-decoration: none;
}

.page-news__faq-answer a:hover {
    text-decoration: underline;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .page-news__main-title {
        font-size: clamp(2em, 5vw, 3em);
    }
    .page-news__section-title {
        font-size: clamp(1.8em, 4vw, 2.5em);
    }
}

@media (max-width: 768px) {
    .page-news__hero-section {
        padding: 40px 15px;
        padding-top: 10px !important;
    }
    .page-news__main-title {
        font-size: clamp(1.8em, 7vw, 2.5em);
    }
    .page-news__intro-text {
        font-size: 1em;
    }
    .page-news__section {
        padding: 30px 15px;
    }
    .page-news__container {
        padding-left: 15px;
        padding-right: 15px;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

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

    /* Video responsiveness */
    .page-news video,
    .page-news__hero-video {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    .page-news__hero-video-container {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 0;
        padding-right: 0;
        overflow: hidden !important;
    }

    /* Button responsiveness */
    .page-news__cta-buttons {
        flex-direction: column;
        gap: 15px;
        padding-left: 15px;
        padding-right: 15px;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }
    .page-news__btn-primary,
    .page-news__btn-secondary {
        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;
        min-width: unset;
    }

    .page-news__news-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .page-news__card-image {
        height: 200px; /* Adjust height for mobile cards */
    }

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

@media (max-width: 480px) {
    .page-news__main-title {
        font-size: clamp(1.5em, 8vw, 2em);
    }
    .page-news__section-title {
        font-size: clamp(1.5em, 6vw, 2em);
    }
    .page-news__intro-text {
        font-size: 0.95em;
    }
}