/* style/resources-33win-latest-news.css */

/* Variables and Base Styles (scoped to the page) */
.page-resources-33win-latest-news {
    --primary-color: #FFD700; /* Gold */
    --secondary-color: #8B0000; /* Deep Red */
    --text-light: #f0f0f0;
    --text-dark: #333333;
    --background-dark: var(--dark-bg); /* Inherited from shared.css, assumed dark */
    --card-background: rgba(255, 255, 255, 0.08); /* Slightly transparent white on dark bg */
    --border-color: rgba(255, 255, 255, 0.15);
    
    font-family: 'Arial', sans-serif;
    color: var(--text-light); /* Default text color for the page content on dark background */
    line-height: 1.6;
}

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

/* Hero Section */
.page-resources-33win-latest-news__hero-section {
    position: relative;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
    padding-bottom: 60px;
    /* Fixed Header Spacing: Apply padding-top to the first main content section */
    padding-top: var(--header-offset, 120px); 
    background-color: var(--background-dark); /* Ensure consistent dark background */
}

.page-resources-33win-latest-news__hero-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
    opacity: 0.3; /* Make background image subtle */
    filter: brightness(0.6); /* Darken the image for text readability */
}

.page-resources-33win-latest-news__hero-container {
    position: relative;
    z-index: 1;
    max-width: 900px;
    padding: 40px 20px;
    background: rgba(0, 0, 0, 0.5); /* Semi-transparent dark overlay for text readability */
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
}

.page-resources-33win-latest-news__main-title {
    font-size: 3.2em;
    color: var(--primary-color);
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
    line-height: 1.2;
}

.page-resources-33win-latest-news__hero-description {
    font-size: 1.2em;
    color: var(--text-light);
    margin-bottom: 30px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

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

.page-resources-33win-latest-news__cta-button {
    display: inline-block;
    padding: 15px 35px;
    border-radius: 8px;
    font-size: 1.1em;
    font-weight: bold;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    border: none;
    cursor: pointer;
    white-space: normal; /* Allow text to wrap */
    word-wrap: break-word; /* Ensure long words break */
    max-width: 100%; /* Ensure button doesn't overflow */
    box-sizing: border-box; /* Include padding and border in the element's total width and height */
}

.page-resources-33win-latest-news__btn-primary {
    background: var(--primary-color); /* Gold */
    color: var(--text-dark); /* Dark text on gold for contrast */
}

.page-resources-33win-latest-news__btn-primary:hover {
    background: #e6c200; /* Darker gold */
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.page-resources-33win-latest-news__btn-secondary {
    background: var(--secondary-color); /* Deep Red */
    color: var(--text-light); /* Light text on deep red for contrast */
    border: 1px solid var(--primary-color);
}

.page-resources-33win-latest-news__btn-secondary:hover {
    background: #a00000; /* Lighter red */
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

/* General Section Styling */
.page-resources-33win-latest-news__section-title {
    font-size: 2.5em;
    color: var(--primary-color);
    text-align: center;
    margin-bottom: 20px;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
}

.page-resources-33win-latest-news__section-description {
    font-size: 1.1em;
    color: var(--text-light);
    text-align: center;
    max-width: 800px;
    margin: 0 auto 40px auto;
}

/* Featured News Section */
.page-resources-33win-latest-news__featured-news-section {
    padding: 80px 0;
    background-color: var(--background-dark);
}

.page-resources-33win-latest-news__featured-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(450px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.page-resources-33win-latest-news__featured-card {
    background: var(--card-background);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

.page-resources-33win-latest-news__featured-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.page-resources-33win-latest-news__featured-card-image {
    width: 100%;
    height: 250px;
    object-fit: cover;
    filter: brightness(0.8); /* Slightly darken image for consistency */
}

.page-resources-33win-latest-news__featured-card-content {
    padding: 25px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.page-resources-33win-latest-news__featured-card-title {
    font-size: 1.5em;
    margin-bottom: 15px;
    line-height: 1.3;
}

.page-resources-33win-latest-news__featured-card-link {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

.page-resources-33win-latest-news__featured-card-link:hover {
    color: #ffd700; /* Lighter primary color on hover */
    text-decoration: underline;
}

.page-resources-33win-latest-news__featured-card-excerpt {
    color: var(--text-light);
    margin-bottom: 15px;
}

.page-resources-33win-latest-news__featured-card-date {
    font-size: 0.9em;
    color: rgba(255, 255, 255, 0.7);
    margin-top: auto; /* Push date to the bottom */
}

/* News List Section */
.page-resources-33win-latest-news__news-list-section {
    padding: 80px 0;
    background-color: var(--background-dark);
}

.page-resources-33win-latest-news__news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.page-resources-33win-latest-news__news-card {
    background: var(--card-background);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

.page-resources-33win-latest-news__news-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.page-resources-33win-latest-news__news-card-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    filter: brightness(0.8);
}

.page-resources-33win-latest-news__news-card-content {
    padding: 20px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.page-resources-33win-latest-news__news-card-title {
    font-size: 1.2em;
    margin-bottom: 10px;
    line-height: 1.3;
}

.page-resources-33win-latest-news__news-card-link {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

.page-resources-33win-latest-news__news-card-link:hover {
    color: #ffd700; /* Lighter primary color on hover */
    text-decoration: underline;
}

.page-resources-33win-latest-news__news-card-excerpt {
    color: var(--text-light);
    font-size: 0.95em;
    margin-bottom: 10px;
}

.page-resources-33win-latest-news__news-card-date {
    font-size: 0.85em;
    color: rgba(255, 255, 255, 0.6);
    margin-top: auto;
}

/* Call to Action Section */
.page-resources-33win-latest-news__cta-section {
    padding: 80px 20px;
    text-align: center;
    background: linear-gradient(135deg, var(--secondary-color), #a00000); /* Dark Red Gradient */
    color: var(--text-light);
    box-shadow: inset 0 5px 20px rgba(0, 0, 0, 0.3);
}

.page-resources-33win-latest-news__cta-title {
    font-size: 2.8em;
    color: var(--primary-color);
    margin-bottom: 25px;
    text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.5);
}

.page-resources-33win-latest-news__cta-description {
    font-size: 1.2em;
    max-width: 900px;
    margin: 0 auto 40px auto;
    color: var(--text-light);
}

/* FAQ Section */
.page-resources-33win-latest-news__faq-section {
    padding: 80px 0;
    background-color: var(--background-dark);
}

.page-resources-33win-latest-news__faq-list {
    max-width: 900px;
    margin: 40px auto 0 auto;
}

.page-resources-33win-latest-news__faq-item {
    margin-bottom: 15px;
    border-radius: 5px;
    overflow: hidden;
    background-color: var(--card-background); /* Card background for FAQ item */
    border: 1px solid var(--border-color);
}

.page-resources-33win-latest-news__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 20px;
    background: var(--card-background);
    border-radius: 5px; /* Only top corners rounded by default */
    cursor: pointer;
    user-select: none;
    transition: background-color 0.3s ease, border-color 0.3s ease;
    position: relative;
    border-bottom: 1px solid var(--border-color); /* Separator */
}

.page-resources-33win-latest-news__faq-item.active .page-resources-33win-latest-news__faq-question {
    border-bottom: none; /* No bottom border when active */
    border-radius: 5px 5px 0 0; /* Keep top corners rounded */
}

.page-resources-33win-latest-news__faq-question:hover {
    background: rgba(255, 255, 255, 0.12); /* Lighter on hover */
    border-color: rgba(255, 255, 255, 0.2);
}

.page-resources-33win-latest-news__faq-question:active {
    background: rgba(255, 255, 255, 0.15);
}

.page-resources-33win-latest-news__faq-question h3 {
    margin: 0;
    padding: 0;
    flex: 1;
    font-size: 1.15em;
    font-weight: 600;
    line-height: 1.5;
    pointer-events: none;
    color: var(--text-light);
}

.page-resources-33win-latest-news__faq-toggle {
    font-size: 24px;
    font-weight: bold;
    line-height: 1;
    color: var(--primary-color);
    transition: transform 0.3s ease, color 0.3s ease;
    flex-shrink: 0;
    margin-left: 15px;
    pointer-events: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
}

.page-resources-33win-latest-news__faq-item.active .page-resources-33win-latest-news__faq-toggle {
    color: var(--primary-color); /* Keep primary color for active toggle */
    transform: rotate(45deg); /* Rotate for minus sign effect */
}

.page-resources-33win-latest-news__faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), padding 0.4s ease, opacity 0.4s ease;
    padding: 0 15px;
    opacity: 0;
    background-color: rgba(0, 0, 0, 0.3); /* Slightly darker background for answer */
    color: var(--text-light);
    border-radius: 0 0 5px 5px;
}

.page-resources-33win-latest-news__faq-item.active .page-resources-33win-latest-news__faq-answer {
    max-height: 2000px !important; /* Use !important and large value */
    padding: 20px 25px !important; /* Increased padding */
    opacity: 1;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .page-resources-33win-latest-news__main-title {
        font-size: 2.8em;
    }
    .page-resources-33win-latest-news__section-title {
        font-size: 2em;
    }
    .page-resources-33win-latest-news__cta-title {
        font-size: 2.2em;
    }
}

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

    .page-resources-33win-latest-news__container {
        padding: 15px;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        overflow-x: hidden !important;
    }

    /* Hero Section Mobile */
    .page-resources-33win-latest-news__hero-section {
        padding-top: var(--header-offset, 120px) !important;
        padding-bottom: 40px;
    }
    .page-resources-33win-latest-news__hero-container {
        padding: 25px 15px;
    }
    .page-resources-33win-latest-news__main-title {
        font-size: 2.2em;
        margin-bottom: 15px;
    }
    .page-resources-33win-latest-news__hero-description {
        font-size: 1em;
        margin-bottom: 25px;
    }
    .page-resources-33win-latest-news__cta-buttons {
        flex-direction: column;
        gap: 15px;
        width: 100%;
    }
    .page-resources-33win-latest-news__cta-button {
        width: 100% !important;
        max-width: 100% !important;
        padding: 12px 25px;
        font-size: 1em;
    }
    .page-resources-33win-latest-news__hero-image {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
    }

    /* Featured News Section Mobile */
    .page-resources-33win-latest-news__featured-news-section {
        padding: 40px 0;
    }
    .page-resources-33win-latest-news__featured-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    .page-resources-33win-latest-news__featured-card-image {
        height: 200px;
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
    }
    .page-resources-33win-latest-news__featured-card-content {
        padding: 15px;
    }
    .page-resources-33win-latest-news__featured-card-title {
        font-size: 1.3em;
    }

    /* News List Section Mobile */
    .page-resources-33win-latest-news__news-list-section {
        padding: 40px 0;
    }
    .page-resources-33win-latest-news__news-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    .page-resources-33win-latest-news__news-card-image {
        height: 180px;
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
    }
    .page-resources-33win-latest-news__news-card-content {
        padding: 15px;
    }
    .page-resources-33win-latest-news__news-card-title {
        font-size: 1.1em;
    }

    /* CTA Section Mobile */
    .page-resources-33win-latest-news__cta-section {
        padding: 40px 15px;
    }
    .page-resources-33win-latest-news__cta-title {
        font-size: 1.8em;
        margin-bottom: 15px;
    }
    .page-resources-33win-latest-news__cta-description {
        font-size: 1em;
        margin-bottom: 25px;
    }

    /* FAQ Section Mobile */
    .page-resources-33win-latest-news__faq-section {
        padding: 40px 0;
    }
    .page-resources-33win-latest-news__faq-list {
        margin-top: 20px;
    }
    .page-resources-33win-latest-news__faq-question {
        padding: 15px;
        flex-wrap: wrap;
    }
    .page-resources-33win-latest-news__faq-question h3 {
        font-size: 1em;
        margin-bottom: 0;
        width: calc(100% - 40px);
    }
    .page-resources-33win-latest-news__faq-toggle {
        margin-left: 10px;
        width: 24px;
        height: 24px;
        font-size: 20px;
    }
    .page-resources-33win-latest-news__faq-answer {
        padding: 0 15px;
    }
    .page-resources-33win-latest-news__faq-item.active .page-resources-33win-latest-news__faq-answer {
        padding: 15px !important;
    }
}

/* Ensure all images are responsive */
.page-resources-33win-latest-news img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Mobile image and container overflow fix */
@media (max-width: 768px) {
    .page-resources-33win-latest-news img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
    }
    
    .page-resources-33win-latest-news__hero-section,
    .page-resources-33win-latest-news__featured-news-section,
    .page-resources-33win-latest-news__news-list-section,
    .page-resources-33win-latest-news__cta-section,
    .page-resources-33win-latest-news__faq-section,
    .page-resources-33win-latest-news__container,
    .page-resources-33win-latest-news__featured-grid,
    .page-resources-33win-latest-news__news-grid,
    .page-resources-33win-latest-news__cta-buttons,
    .page-resources-33win-latest-news__faq-list {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        overflow: hidden !important; /* Prevent horizontal scroll */
        padding-left: 15px;
        padding-right: 15px;
    }
    
    /* Specific override for sections that already have padding */
    .page-resources-33win-latest-news__hero-section,
    .page-resources-33win-latest-news__cta-section {
        padding-left: 0 !important;
        padding-right: 0 !important;
    }
    .page-resources-33win-latest-news__hero-container {
        padding-left: 15px !important;
        padding-right: 15px !important;
    }
}