/* style/resources.css */
/* Base styles for the resources page */
.page-resources {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #333333; /* Default text color for light background */
    background-color: #FFFFFF; /* Body background is light */
}

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

.page-resources__section-title {
    font-size: 2.5em;
    color: #017439; /* Brand color for titles */
    text-align: center;
    margin-bottom: 30px;
    font-weight: bold;
}

.page-resources__section-title--white {
    color: #FFFFFF;
}

.page-resources__text-block {
    font-size: 1.1em;
    text-align: center;
    margin-bottom: 20px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.page-resources__text-block--white {
    color: #f0f0f0;
}

/* Buttons */
.page-resources__btn-primary,
.page-resources__btn-secondary {
    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, border-color 0.3s ease;
    cursor: pointer;
    text-align: center;
    box-sizing: border-box; /* Crucial for responsive buttons */
}

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

.page-resources__btn-primary:hover {
    background-color: #005a2b; /* Darker shade on hover */
    border-color: #005a2b;
}

.page-resources__btn-secondary {
    background-color: #FFFFFF;
    color: #017439;
    border: 2px solid #017439;
}

.page-resources__btn-secondary:hover {
    background-color: #f0f0f0;
    color: #005a2b;
    border-color: #005a2b;
}

.page-resources__btn-large {
    padding: 15px 30px;
    font-size: 1.1em;
}

.page-resources__btn-download {
    display: block; /* Stack buttons on mobile */
    margin: 10px auto;
    max-width: 250px;
}

/* Hero Section */
.page-resources__hero-section {
    position: relative;
    padding: 100px 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
    padding-top: var(--header-offset, 120px); /* Fixed header spacing */
    background-color: #017439; /* Dark background for hero */
}

.page-resources__hero-content {
    position: relative;
    z-index: 2;
    color: #FFFFFF;
    max-width: 800px;
}

.page-resources__hero-title {
    font-size: 3.5em;
    margin-bottom: 20px;
    font-weight: bold;
    color: #FFFF00; /* Special color for H1 as per brand colors for login/register font */
}

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

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

.page-resources__hero-image-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 1;
}

.page-resources__hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.3; /* Subtle background image */
}

/* Introduction Section */
.page-resources__introduction-section {
    padding: 60px 0;
}

.page-resources__image-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 30px;
    margin-bottom: 30px;
    justify-items: center;
}

.page-resources__grid-image {
    width: 100%;
    max-width: 400px;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    display: block;
}

/* Video Section */
.page-resources__video-section {
    padding: 60px 0;
    background-color: #017439; /* Dark background */
}

.page-resources__video-wrapper {
    max-width: 1000px;
    margin: 30px auto;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0,0,0,0.3);
}

.page-resources__video {
    width: 100%;
    height: auto;
    display: block;
    cursor: pointer; /* Indicate clickability */
}

.page-resources__video-cta {
    text-align: center;
    margin-top: 30px;
}

/* Guides Section */
.page-resources__guides-section {
    padding: 60px 0;
}

.page-resources__card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.page-resources__card {
    background-color: #FFFFFF;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    overflow: hidden;
    text-align: center;
    padding-bottom: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    height: 100%; /* Ensure cards are same height */
}

.page-resources__card-image {
    width: 100%;
    height: 200px; /* Fixed height for consistency, min 200px */
    object-fit: cover;
    margin-bottom: 15px;
    display: block;
}

.page-resources__card-title {
    font-size: 1.4em;
    color: #017439;
    margin: 15px 15px 10px;
    font-weight: bold;
}

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

.page-resources__card-title a:hover {
    color: #005a2b;
}

.page-resources__card-description {
    font-size: 1em;
    color: #555555;
    margin: 0 15px 20px;
    flex-grow: 1; /* Push link to bottom */
}

.page-resources__card-link {
    display: inline-block;
    padding: 8px 15px;
    background-color: #f0f0f0;
    color: #017439;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s ease;
    margin-top: auto; /* Push to bottom */
}

.page-resources__card-link:hover {
    background-color: #e0e0e0;
}

/* Security Section */
.page-resources__security-section {
    padding: 60px 0;
    background-color: #017439; /* Dark background */
    text-align: center;
}

.page-resources__security-features {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 40px;
    margin-top: 40px;
    margin-bottom: 40px;
}

.page-resources__feature-item {
    flex-basis: 280px; /* Allow items to wrap */
    text-align: center;
    color: #FFFFFF;
}

.page-resources__feature-icon {
    width: 200px; /* Enforce minimum size as per global rule */
    height: 200px; /* Enforce minimum size as per global rule */
    object-fit: contain;
    margin-bottom: 15px;
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.page-resources__feature-title {
    font-size: 1.5em;
    font-weight: bold;
    margin-bottom: 10px;
    color: #FFFF00; /* Highlighted title */
}

.page-resources__feature-description {
    font-size: 1em;
    color: #f0f0f0;
}

/* Promotions Section */
.page-resources__promotions-section {
    padding: 60px 0;
}

.page-resources__promo-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.page-resources__promo-card {
    background-color: #FFFFFF;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    overflow: hidden;
    text-align: center;
    padding-bottom: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    height: 100%;
}

.page-resources__promo-image {
    width: 100%;
    height: 225px; /* Fixed height for consistency, min 200px */
    object-fit: cover;
    margin-bottom: 15px;
    display: block;
}

.page-resources__promo-title {
    font-size: 1.4em;
    color: #017439;
    margin: 15px 15px 10px;
    font-weight: bold;
}

.page-resources__promo-title a {
    text-decoration: none;
    color: #017439;
    transition: color 0.3s ease;
}

.page-resources__promo-title a:hover {
    color: #005a2b;
}

.page-resources__promo-description {
    font-size: 1em;
    color: #555555;
    margin: 0 15px 20px;
    flex-grow: 1;
}

/* Download Section */
.page-resources__download-section {
    padding: 60px 0;
    background-color: #017439; /* Dark background */
}

.page-resources__download-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 40px;
}

.page-resources__download-content {
    flex: 1;
    min-width: 300px;
    color: #FFFFFF;
    text-align: left;
}

.page-resources__download-content .page-resources__section-title {
    text-align: left;
}

.page-resources__download-content .page-resources__text-block {
    text-align: left;
    margin-left: 0;
    margin-right: 0;
}

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

.page-resources__download-buttons .page-resources__btn-download {
    flex-grow: 1;
    max-width: 200px; /* Limit individual button width */
    margin: 0; /* Override margin auto */
}

.page-resources__download-image-wrapper {
    flex: 1;
    min-width: 250px;
    text-align: center;
}

.page-resources__download-image {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.3);
    display: block;
    margin: 0 auto;
}

/* FAQ Section */
.page-resources__faq-section {
    padding: 60px 0;
}

.page-resources__faq-list {
    max-width: 900px;
    margin: 40px auto 0;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    overflow: hidden;
    background-color: #FFFFFF;
}

.page-resources__faq-item {
    border-bottom: 1px solid #e0e0e0;
}

.page-resources__faq-item:last-child {
    border-bottom: none;
}

.page-resources__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    cursor: pointer;
    background-color: #f9f9f9;
    transition: background-color 0.3s ease;
}

.page-resources__faq-question:hover {
    background-color: #f0f0f0;
}

.page-resources__faq-title {
    font-size: 1.2em;
    color: #017439;
    margin: 0;
    font-weight: bold;
}

.page-resources__faq-toggle {
    font-size: 1.5em;
    font-weight: bold;
    color: #017439;
    transition: transform 0.3s ease;
    line-height: 1;
}

.page-resources__faq-item.active .page-resources__faq-toggle {
    transform: rotate(0deg); /* No rotation for minus sign */
}

.page-resources__faq-answer {
    max-height: 0;
    overflow: hidden;
    padding: 0 20px;
    transition: max-height 0.3s ease, padding 0.3s ease;
    background-color: #FFFFFF;
}

.page-resources__faq-item.active .page-resources__faq-answer {
    max-height: 1000px !important; /* Ensure it expands fully */
    padding: 15px 20px;
}

.page-resources__faq-answer p {
    margin-top: 0;
    margin-bottom: 0;
    color: #555555;
}

/* Call to Action Section */
.page-resources__cta-section {
    padding: 80px 0;
    background-color: #017439; /* Dark background */
    text-align: center;
}

.page-resources__cta-container {
    max-width: 900px;
}

.page-resources__cta-buttons {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-top: 40px;
}

/* Responsive Styles */
@media (max-width: 1024px) {
    .page-resources__hero-title {
        font-size: 3em;
    }
    .page-resources__section-title {
        font-size: 2em;
    }
    .page-resources__download-container {
        flex-direction: column;
        text-align: center;
    }
    .page-resources__download-content {
        text-align: center;
    }
    .page-resources__download-content .page-resources__section-title {
        text-align: center;
    }
    .page-resources__download-content .page-resources__text-block {
        text-align: center;
    }
    .page-resources__download-buttons {
        justify-content: center;
    }
}

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

    .page-resources__container {
        padding-left: 15px;
        padding-right: 15px;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

    /* Fixed header offset for mobile, ensure it's here if body doesn't handle it */
    .page-resources__hero-section {
        padding-top: var(--header-offset, 120px) !important;
    }

    .page-resources__hero-title {
        font-size: 2.5em;
    }

    .page-resources__hero-description {
        font-size: 1.1em;
    }

    .page-resources__hero-buttons {
        flex-direction: column;
        gap: 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__cta-buttons,
    .page-resources__download-buttons {
        flex-direction: column;
        gap: 15px;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
    }
    .page-resources__download-buttons .page-resources__btn-download {
        max-width: 100%;
    }


    .page-resources__grid-image,
    .page-resources__card-image,
    .page-resources__promo-image,
    .page-resources__feature-icon,
    .page-resources__download-image,
    .page-resources img {
        max-width: 100% !important;
        height: auto !important;
        display: block !important;
    }

    .page-resources__video-section,
    .page-resources__video-container,
    .page-resources__video-wrapper,
    .page-resources__image-grid,
    .page-resources__card-grid,
    .page-resources__security-features,
    .page-resources__promo-cards,
    .page-resources__download-container,
    .page-resources__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;
    }

    .page-resources__video {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }

    .page-resources__card {
        padding: 15px;
    }

    .page-resources__feature-item {
        flex-basis: 100%;
    }

    .page-resources__faq-question {
        padding: 12px 15px;
    }

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

    .page-resources__faq-item.active .page-resources__faq-answer {
        padding: 12px 15px;
    }

    .page-resources__faq-title {
        font-size: 1.1em;
    }
}

@media (max-width: 480px) {
    .page-resources__hero-title {
        font-size: 2em;
    }
    .page-resources__section-title {
        font-size: 1.8em;
    }
}