/* style/resources.css */
.page-resources {
    color: #ffffff; /* Body background is #0a0a0a (dark), so use light text */
    background-color: #0a0a0a; /* Ensure consistency with body background */
    font-family: Arial, sans-serif;
    line-height: 1.6;
}

/* Fixed header offset */
.page-resources__hero-section {
    padding-top: var(--header-offset, 120px); /* Ensures content starts below fixed header */
}

/* 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;
    background-color: #017439; /* Fallback if image fails */
}

.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;
    max-width: 900px;
    padding: 20px;
    color: #ffffff;
}

.page-resources__hero-title {
    font-size: 3.5em;
    margin-bottom: 20px;
    color: #FFFFFF;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    line-height: 1.2;
}

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

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

/* General Section Styling */
.page-resources__section-title {
    font-size: 2.5em;
    color: #FFFFFF; /* White titles on 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: #FFFFFF;
    border-radius: 2px;
}

.page-resources__sub-section-title {
    font-size: 2.5em;
    color: #017439; /* Brand color for titles in lighter sections */
    text-align: center;
    margin-bottom: 40px;
    position: relative;
    padding-bottom: 15px;
}

.page-resources__sub-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__sub-title {
    font-size: 1.8em;
    color: #017439;
    margin-top: 30px;
    margin-bottom: 20px;
}

.page-resources__intro-section .page-resources__sub-title,
.page-resources__strategy-section .page-resources__sub-title,
.page-resources__faq-section .page-resources__sub-title {
    color: #FFFFFF;
}

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

.page-resources__text-block a {
    color: #017439; /* Brand color for links */
    text-decoration: underline;
}

.page-resources__text-block a:hover {
    color: #1a9c5b; /* Slightly lighter green on hover */
}

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

.page-resources__intro-section,
.page-resources__strategy-section,
.page-resources__faq-section,
.page-resources__cta-section {
    background-color: #0a0a0a; /* Dark background from body */
    color: #f0f0f0; /* Light text */
}

.page-resources__guide-section,
.page-resources__platform-section {
    background-color: #1a1a1a; /* Slightly lighter dark background for contrast */
    color: #f0f0f0;
}

/* Grid Layout for content sections */
.page-resources__grid-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.page-resources__grid-container--reverse {
    grid-template-areas: "image content";
}

.page-resources__grid-container--reverse .page-resources__image-wrapper {
    grid-area: image;
}

.page-resources__grid-container--reverse .page-resources__strategy-content {
    grid-area: content;
}

.page-resources__image-wrapper {
    text-align: center;
}

.page-resources__image {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    object-fit: cover;
    min-width: 200px; /* Enforce min size for images */
    min-height: 200px;
}

/* List Styling */
.page-resources__list {
    list-style: none;
    padding-left: 0;
    margin-bottom: 20px;
}

.page-resources__list-item {
    position: relative;
    padding-left: 30px;
    margin-bottom: 15px;
    font-size: 1.1em;
    color: #f0f0f0;
}

.page-resources__list-item::before {
    content: '✅'; /* Green checkmark icon */
    position: absolute;
    left: 0;
    top: 0;
    color: #017439;
    font-size: 1.2em;
}

/* Buttons */
.page-resources__btn-primary,
.page-resources__btn-secondary {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s ease;
    font-size: 1.1em;
    text-align: center;
    box-sizing: border-box; /* Ensure padding doesn't affect total width */
    max-width: 100%; /* For responsiveness */
    white-space: normal; /* Allow text wrapping */
    word-wrap: break-word; /* For long button text */
}

.page-resources__btn-primary {
    background-color: #C30808; /* Custom color for register/login type buttons */
    color: #FFFF00; /* Custom font color for register/login type buttons */
    border: 2px solid #C30808;
}

.page-resources__btn-primary:hover {
    background-color: #e00b0b;
    border-color: #e00b0b;
    transform: translateY(-2px);
}

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

.page-resources__btn-secondary:hover {
    background-color: #017439;
    color: #ffffff;
    transform: translateY(-2px);
}

/* CTA Section */
.page-resources__cta-section {
    padding: 80px 20px;
    text-align: center;
}

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

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

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

.page-resources__faq-item {
    background-color: rgba(255, 255, 255, 0.05); /* Slightly visible card for FAQ */
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
    list-style: none; /* Remove default marker for details tag */
    -webkit-details-marker: none; /* For Webkit browsers */
}

.page-resources__faq-item summary {
    list-style: none; /* Remove default marker */
    -webkit-details-marker: none; /* For Webkit browsers */
}

.page-resources__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    font-size: 1.2em;
    font-weight: bold;
    color: #FFFFFF;
    cursor: pointer;
    background-color: #017439; /* Brand color for question background */
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

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

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

.page-resources__faq-toggle {
    font-size: 1.5em;
    line-height: 1;
    margin-left: 15px;
}

.page-resources__faq-answer {
    padding: 20px 25px;
    font-size: 1.1em;
    color: #f0f0f0;
    background-color: rgba(255, 255, 255, 0.02); /* Very subtle background for answer */
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.page-resources__faq-item[open] .page-resources__faq-toggle {
    content: '−'; /* Change to minus when open */
}

.page-resources__faq-image-wrapper {
    margin-top: 40px;
    display: flex;
    justify-content: center;
}

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

    .page-resources__section-title,
    .page-resources__sub-section-title {
        font-size: 2em;
    }

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

    .page-resources__grid-container--reverse {
        grid-template-areas: unset; /* Remove grid area definition for smaller screens */
    }

    .page-resources__grid-container--reverse .page-resources__image-wrapper {
        grid-area: unset;
    }

    .page-resources__grid-container--reverse .page-resources__strategy-content {
        grid-area: unset;
    }
}

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

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

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

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

    .page-resources__hero-cta-buttons {
        flex-direction: column;
        gap: 15px;
    }

    .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 !important;
        font-size: 1em !important;
    }

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

    .page-resources__sub-title {
        font-size: 1.5em;
    }

    .page-resources__text-block,
    .page-resources__list-item,
    .page-resources__faq-answer p {
        font-size: 1em;
    }

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

    /* Mobile image responsiveness */
    .page-resources img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
        min-width: 200px !important; /* Ensure min size */
        min-height: 200px !important;
    }
    
    .page-resources__section,
    .page-resources__card,
    .page-resources__container,
    .page-resources__grid-container,
    .page-resources__hero-section,
    .page-resources__intro-section,
    .page-resources__guide-section,
    .page-resources__strategy-section,
    .page-resources__platform-section,
    .page-resources__faq-section,
    .page-resources__cta-section {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        overflow: hidden !important; /* Prevent horizontal scroll */
    }

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