/* style/resources.css */

/* Base styles for the page content */
.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 handled by shared.css */
}

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

.page-resources__section {
    padding: 60px 0;
    text-align: center;
}

.page-resources__dark-section {
    background-color: #017439; /* Brand primary color */
    color: #ffffff;
}

.page-resources__section-title {
    font-size: 2.5em;
    margin-bottom: 20px;
    color: #ffffff; /* Default for dark sections, will be overridden for light sections */
}

.page-resources__section-description {
    font-size: 1.1em;
    margin-bottom: 40px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    color: #f0f0f0;
}

.page-resources__sub-title {
    font-size: 1.8em;
    margin-bottom: 20px;
    color: #ffffff;
}

/* 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;
    max-width: 100%; /* Ensure buttons adapt to container width */
    white-space: normal; /* Allow text wrapping */
    word-wrap: break-word; /* Allow text breaking */
}

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

.page-resources__btn-primary:hover {
    background-color: #a00606;
    border-color: #a00606;
}

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

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

/* Hero Section */
.page-resources__hero-section {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 600px;
    color: #ffffff;
    overflow: hidden;
    padding-top: var(--header-offset, 120px); /* Fixed header spacing */
}

.page-resources__hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 800px;
    padding: 20px;
    background: rgba(0, 0, 0, 0.4); /* Slightly darker overlay for text readability */
    border-radius: 10px;
}

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

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

.page-resources__hero-cta {
    display: flex;
    justify-content: center;
    flex-wrap: wrap; /* Allow buttons to wrap on smaller screens */
}

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

/* Grid Cards Section (e.g., Guides) */
.page-resources__section--guides {
    background-color: #1c1c1c; /* Dark background */
    color: #ffffff;
}

.page-resources__section--guides .page-resources__section-title {
    color: #ffffff;
}

.page-resources__section--guides .page-resources__section-description {
    color: #f0f0f0;
}

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

.page-resources__card {
    background-color: rgba(255, 255, 255, 0.1); /* Light transparent background for cards on dark section */
    border-radius: 10px;
    padding: 25px;
    text-align: left;
    display: flex;
    flex-direction: column;
    height: 100%;
    color: #ffffff;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease;
}

.page-resources__card:hover {
    transform: translateY(-5px);
}

.page-resources__card-image {
    width: 100%;
    height: 200px; /* Fixed height for consistency */
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 20px;
    display: block; /* Ensure it behaves as a block element */
    min-width: 200px; /* Min image size */
    min-height: 200px; /* Min image size */
}

.page-resources__card-title {
    font-size: 1.4em;
    margin-bottom: 15px;
    color: #FFFF00; /* Custom font color for titles */
    flex-grow: 1; /* Allow title to take available space */
}

.page-resources__card-title a {
    color: #FFFF00; /* Link color for card titles */
    text-decoration: none;
    transition: color 0.3s ease;
}

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

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

.page-resources__card-link {
    display: inline-block;
    color: #C30808; /* Custom color for links */
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s ease;
    margin-top: auto; /* Push link to the bottom */
}

.page-resources__card-link:hover {
    color: #FFFF00; /* Custom hover color */
}

/* Security and Payments sections */
.page-resources__content-wrapper {
    display: flex;
    align-items: center;
    gap: 50px;
    text-align: left;
    margin-top: 40px;
}

.page-resources__content-wrapper--reverse {
    flex-direction: row-reverse;
}

.page-resources__security-image,
.page-resources__payment-image {
    flex: 1;
    max-width: 50%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    min-width: 200px; /* Min image size */
    min-height: 200px; /* Min image size */
}

.page-resources__security-details,
.page-resources__payment-details {
    flex: 1;
    max-width: 50%;
}

.page-resources__feature-list {
    list-style: none;
    padding: 0;
    margin-bottom: 30px;
}

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

.page-resources__feature-list li::before {
    content: '✅';
    position: absolute;
    left: 0;
    color: #FFFF00; /* Custom checkmark color */
    font-size: 1.2em;
}

.page-resources__section--payments {
    background-color: #1c1c1c; /* Dark background */
    color: #ffffff;
}

.page-resources__section--payments .page-resources__section-title,
.page-resources__section--payments .page-resources__sub-title {
    color: #ffffff;
}

.page-resources__section--payments .page-resources__section-description {
    color: #f0f0f0;
}


/* FAQ Section */
.page-resources__section--faq {
    background-color: #1c1c1c; /* Dark background */
    color: #ffffff;
}

.page-resources__section--faq .page-resources__section-title {
    color: #ffffff;
}

.page-resources__section--faq .page-resources__section-description {
    color: #f0f0f0;
}

.page-resources__faq-list {
    max-width: 800px;
    margin: 40px auto 0;
    text-align: left;
}

.page-resources__faq-item {
    background-color: rgba(255, 255, 255, 0.1); /* Light transparent background for FAQ items */
    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: 18px 25px;
    cursor: pointer;
    background-color: rgba(255, 255, 255, 0.05); /* Slightly lighter for question area */
    transition: background-color 0.3s ease;
}

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

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

.page-resources__faq-toggle {
    font-size: 1.8em;
    font-weight: bold;
    color: #FFFF00; /* Custom toggle color */
    transition: transform 0.3s ease;
}

.page-resources__faq-item.active .page-resources__faq-toggle {
    transform: rotate(45deg); /* Rotate for 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 */
    padding: 15px 25px 25px;
}

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

.page-resources__cta-bottom {
    margin-top: 50px;
    text-align: center;
}

.page-resources__cta-bottom p {
    font-size: 1.1em;
    margin-bottom: 20px;
    color: #f0f0f0;
}

/* CTA Banner Section */
.page-resources__section--cta {
    padding: 80px 0;
}

.page-resources__cta-banner {
    background-color: rgba(0, 0, 0, 0.5); /* Semi-transparent dark background */
    border-radius: 15px;
    padding: 50px 30px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.4);
}

.page-resources__cta-title {
    font-size: 2.8em;
    margin-bottom: 20px;
    color: #ffffff;
}

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

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

/* Responsive Design */
@media (max-width: 1024px) {
    .page-resources__hero-title {
        font-size: 3em;
    }
    .page-resources__hero-description {
        font-size: 1.1em;
    }
    .page-resources__section-title {
        font-size: 2em;
    }
    .page-resources__sub-title {
        font-size: 1.6em;
    }
    .page-resources__content-wrapper {
        flex-direction: column;
        text-align: center;
    }
    .page-resources__content-wrapper--reverse {
        flex-direction: column;
    }
    .page-resources__security-image,
    .page-resources__payment-image {
        max-width: 80%;
        margin-bottom: 30px;
    }
    .page-resources__security-details,
    .page-resources__payment-details {
        max-width: 100%;
    }
    .page-resources__feature-list {
        text-align: left;
    }
}

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

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

    .page-resources__hero-title {
        font-size: 2.2em;
    }
    .page-resources__hero-description {
        font-size: 1em;
    }
    .page-resources__section {
        padding: 40px 0;
    }
    .page-resources__section-title {
        font-size: 1.8em;
    }
    .page-resources__sub-title {
        font-size: 1.4em;
    }
    .page-resources__grid-cards {
        grid-template-columns: 1fr;
    }
    .page-resources__card {
        padding: 20px;
    }
    .page-resources__card-image {
        height: 180px;
    }
    .page-resources__faq-question {
        padding: 15px 20px;
    }
    .page-resources__faq-answer {
        padding: 0 20px;
    }
    .page-resources__faq-item.active .page-resources__faq-answer {
        padding: 15px 20px 20px;
    }
    .page-resources__cta-title {
        font-size: 2em;
    }
    .page-resources__cta-description {
        font-size: 1em;
    }
    .page-resources__cta-buttons {
        flex-direction: column;
        gap: 10px;
    }
    .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-left: 15px;
        padding-right: 15px;
    }
    .page-resources__cta-buttons {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        flex-wrap: wrap !important;
        gap: 10px;
    }

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

    /* All containers with images */
    .page-resources__section,
    .page-resources__card,
    .page-resources__container,
    .page-resources__content-wrapper,
    .page-resources__cta-banner {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        overflow: hidden !important; /* Prevent horizontal scroll */
    }
    /* Specific overrides for sections to ensure padding is applied correctly */
    .page-resources__section--guides,
    .page-resources__section--security,
    .page-resources__section--payments,
    .page-resources__section--faq,
    .page-resources__section--cta {
        padding-left: 0 !important;
        padding-right: 0 !important;
    }
}

@media (max-width: 480px) {
    .page-resources__hero-title {
        font-size: 1.8em;
    }
    .page-resources__hero-description {
        font-size: 0.9em;
    }
    .page-resources__section-title {
        font-size: 1.5em;
    }
    .page-resources__sub-title {
        font-size: 1.2em;
    }
    .page-resources__card-title {
        font-size: 1.2em;
    }
    .page-resources__faq-heading {
        font-size: 1em;
    }
    .page-resources__cta-title {
        font-size: 1.6em;
    }
}