/* style/resources.css */

/* Base styles for the resources 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 */
}

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

.page-resources__section-title {
    font-size: 2.5em;
    color: #FFFFFF; /* White for dark sections */
    text-align: center;
    margin-bottom: 40px;
    position: relative;
    padding-bottom: 15px;
}

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

.page-resources__paragraph {
    font-size: 1.1em;
    margin-bottom: 20px;
    text-align: justify;
    color: #f0f0f0; /* Slightly off-white for paragraphs */
}

/* Hero Section */
.page-resources__hero-section {
    position: relative;
    width: 100%;
    height: 600px; /* Adjust height as needed */
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
    padding-top: var(--header-offset, 120px); /* Fixed header spacing */
    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.6); /* Dark overlay for text readability */
    z-index: 2;
}

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

.page-resources__hero-title {
    font-size: 3.5em;
    margin-bottom: 20px;
    line-height: 1.2;
    color: #FFFFFF;
}

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

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

/* General Button Styles */
.page-resources__btn-primary,
.page-resources__btn-secondary,
.page-resources__card-button {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1em;
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
    cursor: pointer;
    box-sizing: border-box;
    text-align: center;
}

.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: #e02a2a;
    border-color: #e02a2a;
    color: #ffffff;
}

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

.page-resources__btn-secondary:hover {
    background-color: #FFFFFF;
    color: #017439;
}

/* Section specific styling */
.page-resources__introduction-section,
.page-resources__strategy-section,
.page-resources__faq-section {
    padding: 80px 0;
    background-color: #1a1a2e; /* Body background color for consistency */
    color: #ffffff;
}

.page-resources__introduction-section .page-resources__section-title,
.page-resources__strategy-section .page-resources__section-title,
.page-resources__faq-section .page-resources__section-title {
    color: #FFFFFF;
}

.page-resources__guide-section,
.page-resources__promotions-section,
.page-resources__contact-section {
    padding: 80px 0;
    background-color: #0d0d1e; /* Slightly different dark background */
    color: #ffffff;
}

.page-resources__guide-section .page-resources__section-title,
.page-resources__promotions-section .page-resources__section-title,
.page-resources__contact-section .page-resources__section-title {
    color: #FFFFFF;
}

/* Card Grid Styles */
.page-resources__guide-grid,
.page-resources__promotion-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.page-resources__guide-card,
.page-resources__promotion-card {
    background-color: rgba(255, 255, 255, 0.08); /* Semi-transparent white for cards on dark background */
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    color: #ffffff; /* Ensure text is white on card background */
}

.page-resources__guide-card:hover,
.page-resources__promotion-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

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

.page-resources__card-title {
    font-size: 1.5em;
    margin: 20px 20px 10px;
    color: #017439; /* Brand color for titles */
    line-height: 1.3;
}

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

.page-resources__card-title a:hover {
    color: #00a04a; /* Lighter green on hover */
}

.page-resources__card-text {
    font-size: 1em;
    padding: 0 20px 20px;
    flex-grow: 1;
    color: #f0f0f0;
}

.page-resources__card-button {
    margin: 0 20px 20px;
    padding: 12px 25px;
    background-color: #017439;
    color: #ffffff;
    border: 2px solid #017439;
    border-radius: 8px;
    align-self: flex-start;
}

.page-resources__card-button:hover {
    background-color: #00a04a;
    border-color: #00a04a;
}


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

.page-resources__list-item {
    background-color: rgba(255, 255, 255, 0.08);
    border-left: 5px solid #017439;
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-resources__list-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.page-resources__list-title {
    font-size: 1.3em;
    color: #FFFFFF;
    margin-bottom: 10px;
}

.page-resources__list-text {
    font-size: 1em;
    color: #f0f0f0;
    margin-bottom: 15px;
}

.page-resources__link {
    color: #017439;
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s ease;
}

.page-resources__link:hover {
    color: #00a04a;
    text-decoration: underline;
}

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

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

.page-resources__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    cursor: pointer;
    background-color: rgba(255, 255, 255, 0.15); /* Slightly darker for question header */
    transition: background-color 0.3s ease;
}

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

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

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

.page-resources__faq-item.active .page-resources__faq-toggle {
    transform: rotate(45deg); /* Plus to X / Minus sign */
}

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

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

.page-resources__faq-answer .page-resources__paragraph {
    margin-bottom: 0; /* Remove extra margin for paragraphs within FAQ answers */
}


/* Contact Section */
.page-resources__contact-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    margin-top: 40px;
}

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

@media (max-width: 768px) {
    .page-resources__hero-section {
        height: 500px;
        padding-top: var(--header-offset, 120px) !important; /* Mobile fixed header spacing */
    }
    .page-resources__hero-title {
        font-size: 2.5em;
    }
    .page-resources__hero-description {
        font-size: 1.1em;
    }
    .page-resources__hero-buttons,
    .page-resources__contact-buttons {
        flex-direction: column;
        gap: 15px;
    }
    .page-resources__btn-primary,
    .page-resources__btn-secondary,
    .page-resources__card-button {
        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;
    }

    /* Ensure containers for buttons are also responsive */
    .page-resources__hero-buttons,
    .page-resources__contact-buttons {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        overflow: hidden !important;
    }

    .page-resources__guide-grid,
    .page-resources__promotion-grid,
    .page-resources__strategy-list {
        grid-template-columns: 1fr;
    }

    .page-resources__section-title {
        font-size: 1.8em;
    }

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

    /* Mobile image responsiveness */
    .page-resources img {
        max-width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    .page-resources__guide-card,
    .page-resources__promotion-card {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

    /* Content area images specifically */
    .page-resources__introduction-section img,
    .page-resources__guide-section img,
    .page-resources__strategy-section img,
    .page-resources__promotions-section img,
    .page-resources__faq-section img,
    .page-resources__contact-section img {
        min-width: 200px;
        min-height: 200px;
    }

    /* FAQ padding adjustment for mobile */
    .page-resources__faq-item {
        padding-left: 0;
        padding-right: 0;
    }
    .page-resources__faq-question,
    .page-resources__faq-answer {
        padding-left: 15px;
        padding-right: 15px;
    }
    .page-resources__faq-item.active .page-resources__faq-answer {
        padding: 15px 15px 25px;
    }
}

@media (max-width: 480px) {
    .page-resources__hero-section {
        height: 400px;
    }
    .page-resources__hero-title {
        font-size: 2em;
    }
    .page-resources__hero-description {
        font-size: 1em;
    }
    .page-resources__btn-primary,
    .page-resources__btn-secondary,
    .page-resources__card-button {
        padding: 12px 20px;
        font-size: 1em;
    }
    .page-resources__section-title {
        font-size: 1.5em;
    }
}