/* style/index-latest-news.css */

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

/* Base styles for the page content */
.page-index-latest-news {
    background-color: var(--page-index-latest-news-background);
    color: var(--page-index-latest-news-text-main); /* Dark background needs light text */
    font-family: Arial, sans-serif;
    line-height: 1.6;
    padding-bottom: 40px; /* Add some padding at the bottom before footer */
}

.page-index-latest-news__container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Hero Section */
.page-index-latest-news__hero-section {
    position: relative;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-top: 10px; /* Small top padding, body handles header offset */
    background-color: var(--page-index-latest-news-deep-green); /* Ensure a background for the section */
}

.page-index-latest-news__hero-image {
    width: 100%;
    height: auto;
    display: block;
    max-width: 100%;
    object-fit: cover;
    border-radius: 8px;
}

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

.page-index-latest-news__main-title {
    font-size: clamp(2.2em, 4vw, 3.5em); /* Responsive font size for H1 */
    color: var(--page-index-latest-news-text-main);
    margin-bottom: 15px;
    font-weight: bold;
    line-height: 1.2;
    letter-spacing: -0.5px;
}

.page-index-latest-news__description {
    font-size: 1.1em;
    color: var(--page-index-latest-news-text-secondary);
    margin-bottom: 30px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* Section Titles */
.page-index-latest-news__section-title {
    font-size: clamp(1.8em, 3.5vw, 2.8em);
    color: var(--page-index-latest-news-text-main);
    text-align: center;
    margin-bottom: 40px;
    font-weight: bold;
    line-height: 1.3;
}

.page-index-latest-news__section-title--white {
    color: #ffffff;
}

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

.page-index-latest-news__btn-primary,
.page-index-latest-news__btn-secondary,
.page-index-latest-news__btn-tertiary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 25px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s ease;
    box-sizing: border-box;
    white-space: normal; /* Allow text to wrap */
    word-wrap: break-word; /* Allow long words to break */
    text-align: center;
    min-width: 150px;
}

.page-index-latest-news__btn-primary {
    background: var(--page-index-latest-news-button-gradient);
    color: #ffffff; /* White text for primary button */
    border: none;
    box-shadow: 0 4px 15px rgba(34, 199, 104, 0.4);
}

.page-index-latest-news__btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(34, 199, 104, 0.6);
}

.page-index-latest-news__btn-secondary {
    background-color: transparent;
    color: var(--page-index-latest-news-text-main);
    border: 2px solid var(--page-index-latest-news-border);
}

.page-index-latest-news__btn-secondary:hover {
    background-color: var(--page-index-latest-news-border);
    color: #ffffff;
}

.page-index-latest-news__btn-tertiary {
    background-color: var(--page-index-latest-news-deep-green);
    color: var(--page-index-latest-news-text-main);
    border: 1px solid var(--page-index-latest-news-border);
    font-size: 0.9em;
    padding: 8px 15px;
    border-radius: 20px;
}

.page-index-latest-news__btn-tertiary:hover {
    background-color: var(--page-index-latest-news-border);
}

/* General Section Styling */
.page-index-latest-news__section {
    padding: 60px 0;
    margin-bottom: 20px;
}

.page-index-latest-news__about-news .page-index-latest-news__text-block {
    font-size: 1.05em;
    color: var(--page-index-latest-news-text-secondary);
    margin-bottom: 20px;
    text-align: justify;
}

.page-index-latest-news__highlight {
    color: var(--page-index-latest-news-gold);
    font-weight: bold;
}

.page-index-latest-news__highlight--gold {
    color: var(--page-index-latest-news-gold);
}

/* News Categories Grid */
.page-index-latest-news__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.page-index-latest-news__card {
    background-color: var(--page-index-latest-news-card-bg);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
    border: 1px solid var(--page-index-latest-news-border);
    display: flex;
    flex-direction: column;
    height: 100%; /* Ensure cards have equal height */
}

.page-index-latest-news__card-image {
    width: 100%;
    height: 200px; /* Fixed height for consistency */
    object-fit: cover;
    display: block;
    min-height: 200px; /* Ensure minimum size */
}

.page-index-latest-news__card-title {
    font-size: 1.4em;
    color: var(--page-index-latest-news-text-main);
    padding: 15px 20px 10px;
    font-weight: bold;
    line-height: 1.3;
}

.page-index-latest-news__card-text {
    font-size: 0.95em;
    color: var(--page-index-latest-news-text-secondary);
    padding: 0 20px 15px;
    flex-grow: 1; /* Allow text to grow */
}

.page-index-latest-news__card .page-index-latest-news__btn-tertiary {
    margin: 0 20px 20px;
    align-self: flex-start; /* Align button to start */
}

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

/* Stay Updated List */
.page-index-latest-news__list {
    list-style: none;
    padding: 0;
    margin-top: 30px;
}

.page-index-latest-news__list-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 20px;
    background-color: var(--page-index-latest-news-card-bg);
    padding: 15px 20px;
    border-radius: 8px;
    border: 1px solid var(--page-index-latest-news-border);
}

.page-index-latest-news__list-icon {
    font-size: 1.5em;
    color: var(--page-index-latest-news-glow);
    margin-right: 15px;
    line-height: 1;
}

.page-index-latest-news__list-text {
    font-size: 1.05em;
    color: var(--page-index-latest-news-text-secondary);
    margin: 0;
}

/* FAQ Section */
.page-index-latest-news__faq-list {
    margin-top: 30px;
}

.page-index-latest-news__faq-item {
    background-color: var(--page-index-latest-news-card-bg);
    border: 1px solid var(--page-index-latest-news-border);
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
}

.page-index-latest-news__faq-item summary {
    list-style: none; /* Remove default marker */
    cursor: pointer;
    padding: 18px 25px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: bold;
    color: var(--page-index-latest-news-text-main);
    font-size: 1.1em;
    transition: background-color 0.3s ease;
}

.page-index-latest-news__faq-item summary::-webkit-details-marker {
    display: none; /* Remove default marker for webkit browsers */
}

.page-index-latest-news__faq-item summary:hover {
    background-color: var(--page-index-latest-news-deep-green);
}

.page-index-latest-news__faq-question {
    display: flex;
    align-items: center;
    width: 100%;
}

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

.page-index-latest-news__faq-toggle {
    font-size: 1.8em;
    line-height: 1;
    margin-left: 15px;
    color: var(--page-index-latest-news-glow);
}

.page-index-latest-news__faq-answer {
    padding: 0 25px 18px;
    color: var(--page-index-latest-news-text-secondary);
    font-size: 1em;
    line-height: 1.6;
}

/* Call to Action Section */
.page-index-latest-news__call-to-action {
    padding: 80px 0;
    text-align: center;
}

.page-index-latest-news__call-to-action .page-index-latest-news__container {
    background-color: var(--page-index-latest-news-deep-green);
    border-radius: 12px;
    padding: 50px 30px;
    border: 1px solid var(--page-index-latest-news-border);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.page-index-latest-news__description--white {
    color: #f0f0f0; /* Slightly off-white for better contrast on deep green */
    margin-bottom: 40px;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .page-index-latest-news__hero-content {
        margin-top: -60px;
        padding: 30px 15px;
    }
    .page-index-latest-news__main-title {
        font-size: clamp(2em, 5vw, 3em);
    }
    .page-index-latest-news__description {
        font-size: 1em;
    }
    .page-index-latest-news__section-title {
        font-size: clamp(1.6em, 4vw, 2.5em);
    }
}

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

    /* Images */
    .page-index-latest-news img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    .page-index-latest-news__card-image {
        min-height: 200px; /* Maintain minimum size */
        height: auto;
    }

    /* Videos (if any) */
    .page-index-latest-news video,
    .page-index-latest-news__video {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    .page-index-latest-news__video-section,
    .page-index-latest-news__video-container,
    .page-index-latest-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-index-latest-news__video-section {
        padding-top: 10px !important; /* body already handles --header-offset */
    }

    /* Buttons */
    .page-index-latest-news__cta-button,
    .page-index-latest-news__btn-primary,
    .page-index-latest-news__btn-secondary,
    .page-index-latest-news a[class*="button"],
    .page-index-latest-news a[class*="btn"] {
        max-width: 100% !important;
        width: 100% !important; /* Ensure full width on mobile */
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
        padding-left: 15px;
        padding-right: 15px;
        margin-bottom: 10px; /* Add space between stacked buttons */
    }
    .page-index-latest-news__cta-buttons {
        flex-direction: column; /* Stack buttons vertically */
        gap: 10px;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding: 0 15px;
        overflow: hidden !important;
    }

    .page-index-latest-news__container {
        padding: 0 15px;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

    .page-index-latest-news__hero-content {
        margin-top: -40px;
        padding: 25px 15px;
    }
    .page-index-latest-news__main-title {
        font-size: clamp(1.8em, 7vw, 2.5em);
    }
    .page-index-latest-news__description {
        font-size: 0.95em;
    }
    .page-index-latest-news__section-title {
        font-size: clamp(1.5em, 6vw, 2em);
    }
    .page-index-latest-news__grid {
        grid-template-columns: 1fr;
    }
    .page-index-latest-news__card {
        padding-bottom: 20px;
    }
    .page-index-latest-news__list-item {
        flex-direction: column;
        align-items: flex-start;
        padding: 15px;
    }
    .page-index-latest-news__list-icon {
        margin-bottom: 10px;
        margin-right: 0;
    }
    .page-index-latest-news__faq-item summary {
        padding: 15px 20px;
        font-size: 1em;
    }
    .page-index-latest-news__faq-answer {
        padding: 0 20px 15px;
    }
}

@media (max-width: 480px) {
    .page-index-latest-news__hero-content {
        margin-top: -20px;
        padding: 20px 10px;
    }
    .page-index-latest-news__main-title {
        font-size: clamp(1.6em, 8vw, 2em);
    }
    .page-index-latest-news__section-title {
        font-size: clamp(1.4em, 7vw, 1.8em);
    }
    .page-index-latest-news__btn-primary,
    .page-index-latest-news__btn-secondary {
        padding: 10px 20px;
        font-size: 0.9em;
    }
}