/* style/resources.css */

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

/* Hero Section */
.page-resources__hero-section {
    position: relative;
    width: 100%;
    height: 100vh; /* Full viewport height */
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
    padding-top: var(--header-offset, 120px); /* Space for fixed header */
    box-sizing: border-box;
}

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

.page-resources__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: 2;
}

.page-resources__hero-content {
    position: relative;
    z-index: 3;
    max-width: 900px;
    padding: 20px;
}

.page-resources__hero-title {
    font-size: 3.5em;
    margin-bottom: 20px;
    color: #FFFF00; /* Register/Login font color, for prominence */
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

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

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

/* General Buttons */
.page-resources__btn-primary,
.page-resources__btn-secondary,
.page-resources__btn-tertiary,
.page-resources a[class*="button"],
.page-resources a[class*="btn"] {
    display: inline-block;
    padding: 12px 25px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s ease, color 0.3s ease;
    cursor: pointer;
    text-align: center;
    box-sizing: border-box;
    max-width: 100%;
    white-space: normal;
    word-wrap: break-word;
}

.page-resources__btn-primary {
    background-color: #C30808; /* Register/Login color */
    color: #FFFF00; /* Register/Login font color */
    border: 2px solid #C30808;
}

.page-resources__btn-primary:hover {
    background-color: #a00606;
    border-color: #a00606;
}

.page-resources__btn-secondary {
    background-color: transparent;
    color: #FFFF00; /* Register/Login font color */
    border: 2px solid #FFFF00;
}

.page-resources__btn-secondary:hover {
    background-color: #FFFF00;
    color: #C30808;
}

.page-resources__btn-tertiary {
    background-color: #017439; /* Main brand color */
    color: #ffffff;
    border: 2px solid #017439;
}

.page-resources__btn-tertiary:hover {
    background-color: #005a2e;
    border-color: #005a2e;
}

.page-resources__btn-text-link {
    color: #017439; /* Main brand color for text links */
    text-decoration: underline;
    font-weight: bold;
}

.page-resources__btn-text-link:hover {
    color: #005a2e;
}


/* Content Area */
.page-resources__content-area {
    max-width: 1200px;
    margin: 0 auto;
    padding: 60px 20px;
    background-color: #000000; /* Ensure content background is dark for light text */
}

.page-resources__section-title {
    font-size: 2.5em;
    color: #017439; /* Main brand color for titles */
    margin-top: 40px;
    margin-bottom: 30px;
    text-align: center;
}

.page-resources__text-block {
    font-size: 1.1em;
    margin-bottom: 20px;
    color: #f0f0f0;
}

/* Grid for cards */
.page-resources__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 30px;
    margin-bottom: 50px;
}

.page-resources__card {
    background-color: rgba(255, 255, 255, 0.1); /* Slightly transparent white for cards */
    border-radius: 10px;
    padding: 25px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    color: #ffffff; /* Light text for card content */
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.page-resources__card-image {
    width: 100%;
    height: 200px; /* Fixed height for consistency */
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 20px;
}

.page-resources__card-title {
    font-size: 1.5em;
    color: #017439; /* Main brand color for card titles */
    margin-bottom: 15px;
}

.page-resources__card-title a {
    color: #017439;
    text-decoration: none;
}

.page-resources__card-title a:hover {
    text-decoration: underline;
    color: #005a2e;
}

.page-resources__card-description {
    font-size: 1em;
    margin-bottom: 20px;
    flex-grow: 1; /* Make description take available space */
}

/* News Section */
.page-resources__news-section {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
    margin-top: 30px;
    margin-bottom: 50px;
}

.page-resources__news-item {
    display: flex;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.page-resources__news-image {
    width: 35%;
    height: auto;
    object-fit: cover;
    display: block;
}

.page-resources__news-content {
    padding: 25px;
    width: 65%;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.page-resources__news-title {
    font-size: 1.4em;
    color: #017439;
    margin-bottom: 10px;
}

.page-resources__news-title a {
    color: #017439;
    text-decoration: none;
}

.page-resources__news-title a:hover {
    text-decoration: underline;
    color: #005a2e;
}

.page-resources__news-text {
    font-size: 0.95em;
    margin-bottom: 15px;
}

/* Video Section */
.page-resources__video-wrapper {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
    height: 0;
    overflow: hidden;
    max-width: 100%;
    background: #000;
    margin-top: 30px;
    margin-bottom: 50px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.page-resources__video-wrapper a {
    display: block;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    cursor: pointer;
}

.page-resources__video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* FAQ Section */
.page-resources__faq-list {
    margin-top: 30px;
    margin-bottom: 50px;
}

.page-resources__faq-item {
    background-color: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
    color: #ffffff;
}

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

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

.page-resources__faq-question:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

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

.page-resources__faq-toggle {
    font-size: 1.5em;
    margin-left: 15px;
    color: #FFFF00; /* Yellow for toggle icon */
}

.page-resources__faq-answer {
    padding: 15px 25px 20px;
    font-size: 1em;
    color: #f0f0f0;
}

.page-resources__faq-answer p {
    margin-bottom: 10px;
}

.page-resources__faq-answer a {
    color: #017439;
    text-decoration: underline;
}

.page-resources__faq-answer a:hover {
    color: #005a2e;
}

/* Contact List */
.page-resources__contact-list {
    list-style: none;
    padding: 0;
    margin-top: 20px;
    color: #f0f0f0;
}

.page-resources__contact-list li {
    margin-bottom: 10px;
    font-size: 1.1em;
}

.page-resources__contact-list li strong {
    color: #017439; /* Main brand color for strong text */
}

.page-resources__contact-list li a {
    color: #017439;
    text-decoration: underline;
}

.page-resources__contact-list li a:hover {
    color: #005a2e;
}

/* Responsive Styles */
@media (max-width: 1024px) {
    .page-resources__hero-title {
        font-size: 3em;
    }
    .page-resources__hero-description {
        font-size: 1.2em;
    }
    .page-resources__section-title {
        font-size: 2em;
    }
    .page-resources__news-item {
        flex-direction: column;
    }
    .page-resources__news-image,
    .page-resources__news-content {
        width: 100%;
    }
    .page-resources__news-image {
        height: 250px;
    }
}

@media (max-width: 768px) {
    .page-resources {
        font-size: 16px;
        line-height: 1.6;
    }
    .page-resources__hero-section {
        height: auto; /* Adjust height for mobile */
        min-height: 60vh;
        padding-top: var(--header-offset, 120px) !important; /* Mobile header offset */
    }
    .page-resources__hero-title {
        font-size: 2.2em;
    }
    .page-resources__hero-description {
        font-size: 1em;
    }
    .page-resources__hero-cta-buttons {
        flex-direction: column;
        gap: 15px;
        padding: 0 15px;
    }
    .page-resources__btn-primary,
    .page-resources__btn-secondary,
    .page-resources a[class*="button"],
    .page-resources 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-resources__content-area {
        padding: 40px 15px;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }
    .page-resources__section-title {
        font-size: 1.8em;
        margin-top: 30px;
        margin-bottom: 20px;
    }
    .page-resources__grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    .page-resources__card {
        padding: 20px;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        margin: 0 auto;
    }
    .page-resources__card-image {
        height: 180px;
    }
    .page-resources__news-item {
        flex-direction: column;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        margin: 0 auto;
    }
    .page-resources__news-image {
        width: 100%;
        height: 200px;
    }
    .page-resources__news-content {
        width: 100%;
        padding: 20px;
    }
    .page-resources__video-wrapper {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        margin-left: auto;
        margin-right: auto;
    }
    .page-resources video,
    .page-resources__video {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    .page-resources__faq-question {
        font-size: 1.1em;
        padding: 15px 20px;
    }
    .page-resources__faq-answer {
        padding: 10px 20px 15px;
    }

    /* Images within content areas */
    .page-resources img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    .page-resources__section,
    .page-resources__card,
    .page-resources__container,
    .page-resources__video-section,
    .page-resources__video-container,
    .page-resources__video-wrapper,
    .page-resources__cta-buttons,
    .page-resources__button-group,
    .page-resources__btn-container {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
    }
    .page-resources__hero-section {
        padding-left: 0 !important;
        padding-right: 0 !important;
    }
    .page-resources__hero-content {
        padding-left: 15px;
        padding-right: 15px;
    }
}