/* style/news.css */

/* Base styles for the news page */
.page-news {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #ffffff; /* Light text for dark body background */
    background-color: transparent; /* Body background is handled by shared.css (#000) */
    padding-top: 0; /* Assuming shared.css handles body padding-top */
}

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

/* Hero Section */
.page-news__hero-section {
    position: relative;
    width: 100%;
    height: 600px; /* Adjust as needed */
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
    padding-top: var(--header-offset, 120px); /* Ensure space for fixed header */
}

.page-news__hero-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -2;
}

.page-news__hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7); /* Dark overlay for text readability */
    z-index: -1;
}

.page-news__hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
    padding: 20px;
}

.page-news__hero-title {
    font-size: 3em;
    color: #ffffff;
    margin-bottom: 20px;
    line-height: 1.2;
}

.page-news__hero-description {
    font-size: 1.2em;
    color: #f0f0f0;
    margin-bottom: 30px;
}

.page-news__hero-button {
    display: inline-block;
    background-color: #C30808; /* Registration/Login color */
    color: #FFFF00; /* Registration/Login font color */
    padding: 15px 30px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s ease;
    border: none;
    cursor: pointer;
}

.page-news__hero-button:hover {
    background-color: #a00606;
}

/* Section General Styles */
.page-news__section {
    padding: 60px 0;
    background-color: rgba(255, 255, 255, 0.05); /* Slightly lighter background for sections */
    margin-bottom: 30px;
    border-radius: 8px;
}

.page-news__section:nth-child(even) {
    background-color: rgba(255, 255, 255, 0.02);
}

.page-news__section-title {
    font-size: 2.5em;
    color: #017439; /* Brand primary color for titles */
    text-align: center;
    margin-bottom: 20px;
}

.page-news__section-intro {
    font-size: 1.1em;
    color: #f0f0f0;
    text-align: center;
    max-width: 900px;
    margin: 0 auto 40px auto;
}

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

.page-news__card {
    background-color: rgba(255, 255, 255, 0.1); /* Card background, ensuring contrast */
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    color: #ffffff; /* Light text for card content */
    display: flex;
    flex-direction: column;
}

.page-news__card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px 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: 25px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

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

.page-news__card-title a {
    color: #017439; /* Primary color for card titles, ensuring contrast */
    text-decoration: none;
    transition: color 0.3s ease;
}

.page-news__card-title a:hover {
    color: #1a9e52; /* Slightly lighter green on hover */
}

.page-news__card-text {
    font-size: 1em;
    color: #e0e0e0;
    margin-bottom: 20px;
}

.page-news__card-button {
    display: inline-block;
    background-color: #C30808; /* Action button color */
    color: #FFFF00; /* Action button text color */
    padding: 10px 20px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s ease;
    border: none;
    cursor: pointer;
    text-align: center;
    align-self: flex-start; /* Align to start of flex item */
}

.page-news__card-button:hover {
    background-color: #a00606;
}

/* FAQ Section */
.page-news__faq {
    background-color: rgba(255, 255, 255, 0.05);
    padding: 60px 0;
}

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

.page-news__faq-item {
    background-color: rgba(255, 255, 255, 0.1); /* FAQ item background */
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
    color: #ffffff;
}

.page-news__faq-item summary {
    list-style: none; /* Hide default marker */
    cursor: pointer;
    padding: 20px 25px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 1.2em;
    font-weight: bold;
    color: #017439; /* Primary color for FAQ questions */
    background-color: rgba(255, 255, 255, 0.05);
    transition: background-color 0.3s ease;
}

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

.page-news__faq-item summary:hover {
    background-color: rgba(255, 255, 255, 0.1); 
}

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

.page-news__faq-toggle {
    font-size: 1.5em;
    margin-left: 15px;
    transition: transform 0.3s ease;
}

.page-news__faq-item[open] .page-news__faq-toggle {
    transform: rotate(45deg); /* Change to X or similar */
}

.page-news__faq-answer {
    padding: 0 25px 20px 25px;
    font-size: 1em;
    color: #e0e0e0;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .page-news__hero-section {
        height: 400px;
        padding-top: var(--header-offset, 120px) !important; /* Ensure space for fixed header on mobile */
    }

    .page-news__hero-title {
        font-size: 2em;
    }

    .page-news__hero-description {
        font-size: 1em;
    }

    .page-news__section-title {
        font-size: 1.8em;
    }

    .page-news__section-intro {
        font-size: 0.9em;
        margin-bottom: 25px;
    }

    .page-news__card-grid {
        grid-template-columns: 1fr;
    }

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

    .page-news__card-title {
        font-size: 1.3em;
    }

    .page-news__card-text {
        font-size: 0.9em;
    }

    /* Images 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 {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        overflow-x: hidden !important; /* Prevent horizontal scroll */
    }

    /* Buttons responsiveness */
    .page-news__hero-button,
    .page-news__card-button,
    .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;
      overflow-x: hidden !important; /* Prevent horizontal scroll */
    }

    /* FAQ responsiveness */
    .page-news__faq-item summary {
        font-size: 1em;
        padding: 15px 20px;
    }

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