/* style/resources.css */
.page-resources {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #f0f0f0; /* Light text for dark body background */
    background-color: var(--primary-color); /* Inherited from shared.css */
}

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

/* Hero Section */
.page-resources__hero-section {
    position: relative;
    padding: 100px 20px;
    text-align: center;
    background-color: #0A192F; /* Primary dark color */
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 400px;
    box-sizing: border-box;
}

.page-resources__main-title {
    font-size: 3.2em;
    margin-bottom: 20px;
    color: #64FFDA; /* Auxiliary color for emphasis */
    line-height: 1.2;
}

.page-resources__description {
    font-size: 1.2em;
    margin-bottom: 40px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.page-resources__cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap; /* Allow wrapping for multiple buttons */
}

.page-resources__btn-primary,
.page-resources__btn-secondary,
.page-resources__btn-link {
    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;
    box-sizing: border-box;
    max-width: 100%; /* For mobile responsiveness */
    white-space: normal; /* Allow text wrapping */
    word-wrap: break-word; /* Allow text breaking */
    text-align: center;
}

.page-resources__btn-primary {
    background-color: #64FFDA; /* Auxiliary color */\    color: #0A192F; /* Dark text for light background */
    border: 2px solid #64FFDA;
}

.page-resources__btn-primary:hover {
    background-color: #0A192F; /* Primary dark color */
    color: #64FFDA; /* Auxiliary color */
    border-color: #64FFDA;
}

.page-resources__btn-secondary {
    background-color: transparent;
    color: #64FFDA; /* Auxiliary color */
    border: 2px solid #64FFDA;
}

.page-resources__btn-secondary:hover {
    background-color: #64FFDA; /* Auxiliary color */
    color: #0A192F; /* Dark text for light background */
}

.page-resources__btn-link {
    background-color: transparent;
    color: #64FFDA;
    border: none;
    padding: 8px 0;
    text-align: left;
    display: block;
    width: fit-content;
}

.page-resources__btn-link:hover {
    text-decoration: underline;
    color: #ffffff;
}

/* Section Titles */
.page-resources__section-title {
    font-size: 2.5em;
    margin-bottom: 30px;
    text-align: center;
    color: #64FFDA; /* Auxiliary color */
}

.page-resources__text-block {
    font-size: 1.1em;
    margin-bottom: 20px;
    color: #f0f0f0; /* Light text for dark sections */
}

/* Light background sections */
.page-resources__light-bg {
    background-color: #f8f9fa; /* Light background */
    color: #333333; /* Dark text for light background */
    padding: 60px 0;
}

.page-resources__light-bg .page-resources__section-title,
.page-resources__light-bg .page-resources__text-block,
.page-resources__light-bg .page-resources__card-title a,
.page-resources__light-bg .page-resources__card-text,
.page-resources__light-bg .page-resources__btn-link {
    color: #333333; /* Ensure dark text on light background */
}

.page-resources__light-bg .page-resources__btn-secondary {
    color: #0A192F; /* Primary dark color for button text */
    border-color: #0A192F;
}

.page-resources__light-bg .page-resources__btn-secondary:hover {
    background-color: #0A192F;
    color: #ffffff;
}

/* Dark background sections */
.page-resources__dark-section {
    background-color: #0A192F; /* Primary dark color */
    color: #f0f0f0; /* Light text */
    padding: 60px 0;
}

/* Image styling */
.page-resources__image {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 30px auto;
    border-radius: 10px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.page-resources__image--large {
    width: 1000px; /* Example width, actual display will be responsive */
    height: 750px; /* Example height */
}

.page-resources__image--mobile-app {
    width: 600px;
    height: 600px;
    max-width: 80%; /* Smaller on desktop, still responsive */
    margin-left: 50px;
}


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

.page-resources__card {
    background-color: #1A2E47; /* Slightly lighter dark for cards on dark background */
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
    height: 100%;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-resources__card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.page-resources__card--resource {
    padding-bottom: 20px; /* Space for button */
}

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

.page-resources__card-title {
    font-size: 1.5em;
    margin: 0 20px 10px;
    color: #64FFDA;
}

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

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

.page-resources__card-text {
    font-size: 1em;
    color: #c0c0c0;
    margin: 0 20px 20px;
    flex-grow: 1; /* Push button to bottom */
}

.page-resources__card .page-resources__btn-link {
    margin: 0 20px;
    align-self: flex-start;
}


/* FAQ Section */
.page-resources__faq-list {
    margin-top: 40px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.page-resources__faq-item {
    background-color: #ffffff; /* White background for FAQ items */
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
}

.page-resources__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    font-size: 1.2em;
    font-weight: bold;
    cursor: pointer;
    color: #0A192F; /* Dark text for question */
    background-color: #f0f0f0; /* Light background for question bar */
    border-bottom: 1px solid #e0e0e0;
    transition: background-color 0.3s ease;
}

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

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

.page-resources__faq-item.active .page-resources__faq-toggle {
    transform: rotate(45deg);
    color: #0A192F;
}

.page-resources__faq-answer {
    max-height: 0;
    overflow: hidden;
    padding: 0 20px; /* Initial padding, will expand */
    transition: max-height 0.3s ease-out, padding 0.3s ease-out;
    color: #333333; /* Dark text for answer content */
    background-color: #ffffff; /* White background for answer */
}

.page-resources__faq-item.active .page-resources__faq-answer {
    max-height: 1000px !important; /* Sufficiently large value */
    padding: 20px;
}

.page-resources__faq-answer p {
    margin: 0 0 10px 0;
    color: #333333;
}
.page-resources__faq-answer p:last-child {
    margin-bottom: 0;
}


/* App Download Section */
.page-resources__app-download-section {
    padding: 80px 0;
}

.page-resources__flex-center {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    text-align: left;
}

.page-resources__content-wrapper {
    max-width: 50%;
    padding-right: 30px;
}

.page-resources__app-buttons {
    margin-top: 30px;
    justify-content: flex-start;
}

/* Contact Section */
.page-resources__contact-info {
    font-size: 1.1em;
    margin-top: 30px;
    text-align: center;
    color: #f0f0f0;
}

.page-resources__contact-info p {
    margin-bottom: 10px;
}

.page-resources__contact-info strong {
    color: #64FFDA;
}

.page-resources__text-link {
    color: #64FFDA;
    text-decoration: none;
}

.page-resources__text-link:hover {
    text-decoration: underline;
}

/* Mobile Responsiveness */
@media (max-width: 992px) {
    .page-resources__main-title {
        font-size: 2.5em;
    }
    .page-resources__section-title {
        font-size: 2em;
    }
    .page-resources__description,
    .page-resources__text-block,
    .page-resources__card-text,
    .page-resources__faq-question,
    .page-resources__contact-info {
        font-size: 1em;
    }
    .page-resources__content-wrapper {
        max-width: 100%;
        padding-right: 0;
        text-align: center;
    }
    .page-resources__image--mobile-app {
        margin-top: 40px;
        margin-left: 0;
        max-width: 60%;
    }
    .page-resources__app-buttons {
        justify-content: center;
    }
}

@media (max-width: 768px) {
    .page-resources__hero-section {
        padding: 80px 15px;
        padding-top: var(--header-offset, 120px) !important; /* Ensure header offset on mobile */
    }
    .page-resources__main-title {
        font-size: 2em;
    }
    .page-resources__description {
        font-size: 1em;
    }
    .page-resources__cta-buttons {
        flex-direction: column;
        gap: 15px;
    }
    .page-resources__btn-primary,
    .page-resources__btn-secondary,
    .page-resources__btn-link {
        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;
    }

    /* General container padding for mobile */
    .page-resources__container,
    .page-resources__section,
    .page-resources__card,
    .page-resources__content-wrapper,
    .page-resources__flex-center,
    .page-resources__faq-item {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        overflow: hidden !important; /* Prevent horizontal scroll */
    }

    /* Images responsiveness for mobile */
    .page-resources img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }

    /* Card images specifically */
    .page-resources__card-image {
        height: 200px; /* Adjust height for mobile cards */
    }

    /* Video responsiveness (if any, not present in current HTML but good to include) */
    .page-resources video,
    .page-resources__video {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    .page-resources__video-section,
    .page-resources__video-container,
    .page-resources__video-wrapper {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        overflow: hidden !important;
    }

    /* FAQ specific mobile styles */
    .page-resources__faq-question {
        font-size: 1.1em;
        padding: 15px;
    }
    .page-resources__faq-answer {
        padding: 0 15px;
    }
    .page-resources__faq-item.active .page-resources__faq-answer {
        padding: 15px;
    }

    /* Content area image CSS size lower bound */
    .page-resources__overview-section img,
    .page-resources__security-section img,
    .page-resources__promotions-section img,
    .page-resources__app-download-section img {
        min-width: 200px;
        min-height: 200px;
    }
}

@media (max-width: 480px) {
    .page-resources__main-title {
        font-size: 1.8em;
    }
    .page-resources__section-title {
        font-size: 1.6em;
    }
    .page-resources__image--mobile-app {
        max-width: 80%;
    }
}