/* style/resources.css */

/* Base styles for the page */
.page-resources {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #333333; /* Default dark text for light body background */
    background-color: #f8f8f8; /* Light background for the page content */
}

/* Hero Section */
.page-resources__hero-section {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 80px 20px 40px; /* Adjusted padding for desktop */
    color: #ffffff; /* White text for hero section */
    background-color: #8B0000; /* Dark red background for hero */
    overflow: hidden; /* Ensure image doesn't overflow */
    padding-top: var(--header-offset, 120px); /* Desktop header offset */
}

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

.page-resources__hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.3; /* Subtle overlay */
    filter: brightness(0.6); /* Darken image to ensure text contrast */
}

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

.page-resources__main-title {
    font-size: 3.2em;
    margin-bottom: 20px;
    color: #FFD700; /* Gold for main title */
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.page-resources__hero-description {
    font-size: 1.2em;
    margin-bottom: 30px;
    color: #f0f0f0;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

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

.page-resources__btn-primary,
.page-resources__btn-secondary {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s ease;
    cursor: pointer;
    white-space: nowrap; /* Prevent text wrap on desktop */
}

.page-resources__btn-primary {
    background-color: #FFD700; /* Gold button */
    color: #000000; /* Black text for contrast */
    border: 2px solid #FFD700;
}

.page-resources__btn-primary:hover {
    background-color: #e6c200;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.page-resources__btn-secondary {
    background-color: transparent;
    color: #FFD700; /* Gold text */
    border: 2px solid #FFD700;
}

.page-resources__btn-secondary:hover {
    background-color: #FFD700;
    color: #000000; /* Black text on hover */
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

/* General Content Sections */
.page-resources__container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.page-resources__intro-section,
.page-resources__types-section,
.page-resources__how-to-use-section,
.page-resources__faq-section {
    padding: 60px 0;
}

.page-resources__benefits-section {
    padding: 60px 0;
    background-color: #8B0000; /* Dark red background */
    color: #ffffff; /* White text */
}

.page-resources__section-title {
    font-size: 2.5em;
    color: #8B0000; /* Dark red for section titles on light background */
    text-align: center;
    margin-bottom: 40px;
    position: relative;
    padding-bottom: 10px;
}

.page-resources__section-title::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background-color: #FFD700; /* Gold underline */
    border-radius: 2px;
}

.page-resources__benefits-section .page-resources__section-title {
    color: #FFD700; /* Gold for section titles on dark background */
}

.page-resources__paragraph {
    font-size: 1.1em;
    margin-bottom: 20px;
    text-align: justify;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.page-resources__paragraph a {
    color: #FFD700; /* Gold links */
    text-decoration: underline;
}

.page-resources__paragraph a:hover {
    color: #e6c200;
}

.page-resources__highlight {
    color: #8B0000; /* Dark red highlight on light background */
    font-weight: bold;
}

.page-resources__dark-section .page-resources__highlight {
    color: #FFD700; /* Gold highlight on dark background */
}

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

.page-resources__card {
    background-color: #ffffff;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    color: #333333;
}

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

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

.page-resources__card-title {
    font-size: 1.5em;
    margin: 20px 20px 10px;
    color: #8B0000; /* Dark red title */
}

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

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

.page-resources__card-text {
    font-size: 1em;
    padding: 0 20px 20px;
    flex-grow: 1; /* Make text block fill available space */
}

/* Benefits List */
.page-resources__benefits-list {
    list-style: none;
    padding: 0;
    margin-top: 40px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.page-resources__list-item {
    background-color: rgba(255, 255, 255, 0.1); /* Semi-transparent white background on dark section */
    border-radius: 10px;
    padding: 25px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    color: #ffffff;
    text-align: left;
}

.page-resources__list-item .page-resources__list-title {
    font-size: 1.3em;
    margin-bottom: 10px;
    color: #FFD700; /* Gold title */
}

.page-resources__list-item .page-resources__list-description {
    font-size: 1em;
    line-height: 1.5;
    color: #f0f0f0;
}

.page-resources__list-item a {
    color: #FFD700;
    text-decoration: underline;
}

.page-resources__list-item a:hover {
    color: #e6c200;
}

/* How-To List (Ordered List) */
.page-resources__how-to-list {
    list-style: decimal;
    padding-left: 20px;
    margin-top: 40px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.page-resources__how-to-list .page-resources__list-item {
    background-color: #ffffff; /* White background for light section */
    color: #333333;
    margin-bottom: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    border: 1px solid #eee;
    text-align: left;
}

.page-resources__how-to-list .page-resources__list-item .page-resources__list-title {
    color: #8B0000; /* Dark red title */
}

.page-resources__how-to-list .page-resources__list-item .page-resources__list-description {
    color: #555555;
}

.page-resources__how-to-list .page-resources__list-item a {
    color: #8B0000;
}

.page-resources__cta-buttons--bottom {
    margin-top: 50px;
}

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

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

.page-resources__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    font-size: 1.2em;
    font-weight: bold;
    color: #333333;
    cursor: pointer;
    background-color: #fdfdfd;
    border-bottom: 1px solid #eee;
    transition: background-color 0.3s ease;
}

.page-resources__faq-question:hover {
    background-color: #f0f0f0;
    color: #8B0000; /* Dark red on hover */
}

.page-resources__faq-question h3 {
    margin: 0;
    color: inherit; /* Inherit color from parent */
}

.page-resources__faq-toggle {
    font-size: 1.5em;
    line-height: 1;
    color: #FFD700; /* Gold toggle icon */
    transition: transform 0.3s ease;
}

.page-resources__faq-item.active .page-resources__faq-toggle {
    transform: rotate(45deg); /* Rotate for minus sign effect */
}

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

.page-resources__faq-item.active .page-resources__faq-answer {
    max-height: 1000px !important; /* Sufficiently large to show content */
    padding: 15px 25px 25px;
}

.page-resources__faq-answer p {
    margin: 0;
    padding: 0;
    line-height: 1.6;
}

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

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

/* Responsive Design */
@media (max-width: 1024px) {
    .page-resources__main-title {
        font-size: 2.8em;
    }
    .page-resources__section-title {
        font-size: 2em;
    }
}

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

    .page-resources__hero-section {
        padding: 60px 15px 30px;
        padding-top: var(--header-offset, 120px) !important; /* Ensure mobile header offset */
    }

    .page-resources__hero-content {
        padding: 0 15px;
    }

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

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

    .page-resources__cta-buttons {
        flex-direction: column;
        gap: 15px;
        width: 100%;
        max-width: 300px; /* Constrain button group width */
        margin-left: auto;
        margin-right: auto;
    }

    .page-resources__btn-primary,
    .page-resources__btn-secondary {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
        padding: 12px 20px;
    }

    .page-resources__intro-section,
    .page-resources__types-section,
    .page-resources__benefits-section,
    .page-resources__how-to-use-section,
    .page-resources__faq-section {
        padding: 40px 0;
    }

    .page-resources__container {
        padding: 0 15px;
    }

    .page-resources__section-title {
        font-size: 1.8em;
        margin-bottom: 30px;
    }

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

    .page-resources__card-image {
        height: 180px;
    }

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

    .page-resources__how-to-list {
        padding-left: 15px;
    }

    .page-resources__how-to-list .page-resources__list-item {
        padding: 20px;
    }

    .page-resources__faq-question {
        font-size: 1.1em;
        padding: 15px 20px;
    }

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

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

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

    .page-resources__hero-image-wrapper,
    .page-resources__grid-container,
    .page-resources__card,
    .page-resources__benefits-list,
    .page-resources__how-to-list,
    .page-resources__faq-list,
    .page-resources__faq-item {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        overflow: hidden !important; /* Ensure no overflow */
    }
}

/* Ensure content area images are not too small */
.page-resources__container img,
.page-resources__grid-container img,
.page-resources__card-image {
    min-width: 200px;
    min-height: 200px;
}

/* Override for card images to allow smaller height if needed for design, but ensure min-width/height is met */
.page-resources__card-image {
    height: 200px;
}

/* No CSS filter on images */
.page-resources img {
    filter: none;
}