:root {
    --page-resources-primary-color: #26A9E0;
    --page-resources-primary-color-darker: #1e8ac7; /* Darker shade of #26A9E0 */
    --page-resources-secondary-color: #FFFFFF;
    --page-resources-text-dark: #333333;
    --page-resources-text-light: #FFFFFF;
    --page-resources-bg-light: #FFFFFF;
    --page-resources-bg-dark: #26A9E0; /* Using brand color for dark background sections */
    --page-resources-button-login: #EA7C07;
}

.page-resources {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: var(--page-resources-text-dark); /* Default text color for light background */
    background-color: var(--page-resources-bg-light); /* Body background is light */
    overflow-x: hidden; /* Prevent horizontal scroll */
}

/* Hero Section */
.page-resources__hero-section {
    position: relative;
    width: 100%;
    height: 600px; /* Adjusted height for desktop */
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding-top: var(--header-offset, 120px); /* Fixed header spacing */
    overflow: hidden;
}

.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);
    z-index: 2;
}

.page-resources__hero-content {
    position: relative;
    z-index: 3;
    max-width: 900px;
    padding: 20px;
    color: var(--page-resources-text-light);
}

.page-resources__hero-title {
    font-size: 3.5em;
    margin-bottom: 20px;
    color: var(--page-resources-text-light);
    line-height: 1.2;
}

.page-resources__hero-description {
    font-size: 1.2em;
    margin-bottom: 30px;
    color: var(--page-resources-text-light);
}

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

/* General Section Styles */
.page-resources__intro-section,
.page-resources__guide-section,
.page-resources__finance-section,
.page-resources__tips-section,
.page-resources__security-section,
.page-resources__faq-section,
.page-resources__contact-section {
    padding: 80px 20px;
}

.page-resources__light-bg {
    background-color: var(--page-resources-bg-light);
    color: var(--page-resources-text-dark);
}

.page-resources__dark-bg {
    background-color: var(--page-resources-bg-dark);
    color: var(--page-resources-text-light);
}

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

.page-resources__container--grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.page-resources__container--reverse-grid {
    grid-template-areas: "image content"; /* Default desktop layout */
}

.page-resources__container--reverse-grid .page-resources__finance-image-wrapper,
.page-resources__container--reverse-grid .page-resources__security-image-wrapper {
    grid-area: image;
}

.page-resources__container--reverse-grid .page-resources__finance-content,
.page-resources__container--reverse-grid .page-resources__security-content {
    grid-area: content;
}


.page-resources__section-title {
    font-size: 2.5em;
    margin-bottom: 20px;
    text-align: center;
    color: var(--page-resources-text-dark);
}

.page-resources__section-title--light {
    color: var(--page-resources-text-light);
}

.page-resources__section-description {
    font-size: 1.1em;
    text-align: center;
    max-width: 800px;
    margin: 0 auto 40px auto;
}

.page-resources__section-description--light {
    color: var(--page-resources-text-light);
}

.page-resources__subsection-title {
    font-size: 1.8em;
    margin-top: 30px;
    margin-bottom: 15px;
    color: var(--page-resources-text-dark);
}

.page-resources__subsection-title--light {
    color: var(--page-resources-text-light);
}

.page-resources__text-block {
    margin-bottom: 15px;
    font-size: 1.05em;
}

.page-resources__text-block--light {
    color: var(--page-resources-text-light);
}

.page-resources__text-block a {
    color: var(--page-resources-primary-color); /* Link color on light background */
    text-decoration: underline;
}

.page-resources__text-block a:hover {
    color: var(--page-resources-primary-color-darker);
}

/* List Styles */
.page-resources__list {
    list-style: disc;
    margin-left: 20px;
    margin-bottom: 20px;
}

.page-resources__list--light {
    color: var(--page-resources-text-light);
}

.page-resources__list-item {
    margin-bottom: 10px;
}

/* Button Styles */
.page-resources__btn-primary,
.page-resources__btn-secondary {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
    text-align: center;
    white-space: normal; /* Allow text to wrap */
    word-wrap: break-word; /* Break long words */
    box-sizing: border-box; /* Include padding in width calculation */
    max-width: 100%; /* Ensure button doesn't exceed container */
}

.page-resources__btn-primary {
    background-color: var(--page-resources-primary-color);
    color: var(--page-resources-secondary-color);
    border: 2px solid var(--page-resources-primary-color);
}

.page-resources__btn-primary:hover {
    background-color: var(--page-resources-primary-color-darker);
    border-color: var(--page-resources-primary-color-darker);
}

.page-resources__btn-secondary {
    background-color: transparent;
    color: var(--page-resources-primary-color);
    border: 2px solid var(--page-resources-primary-color);
}

.page-resources__btn-secondary:hover {
    background-color: var(--page-resources-primary-color);
    color: var(--page-resources-secondary-color);
}

.page-resources__btn-secondary--light { /* For buttons on dark backgrounds */
    color: var(--page-resources-secondary-color);
    border-color: var(--page-resources-secondary-color);
}

.page-resources__btn-secondary--light:hover {
    background-color: var(--page-resources-secondary-color);
    color: var(--page-resources-primary-color);
}

/* Image wrappers for consistent sizing */
.page-resources__guide-image-wrapper,
.page-resources__finance-image-wrapper,
.page-resources__tips-image-wrapper,
.page-resources__security-image-wrapper,
.page-resources__contact-image-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%; /* Ensure wrapper takes full grid column width */
    max-width: 100%;
    overflow: hidden;
    box-sizing: border-box;
}

.page-resources__guide-image,
.page-resources__finance-image,
.page-resources__tips-image,
.page-resources__security-image,
.page-resources__contact-image {
    max-width: 100%;
    height: auto;
    display: block;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    min-width: 200px; /* Enforce minimum size */
    min-height: 200px; /* Enforce minimum size */
}

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

.page-resources__faq-item {
    background-color: var(--page-resources-bg-light);
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    color: var(--page-resources-text-dark);
}

.page-resources__faq-item details { /* Ensure details element background is correct */
    background-color: var(--page-resources-bg-light);
}

.page-resources__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    background-color: var(--page-resources-bg-light);
    cursor: pointer;
    font-weight: bold;
    font-size: 1.1em;
    color: var(--page-resources-text-dark);
    list-style: none; /* For details/summary */
}

.page-resources__faq-item summary::-webkit-details-marker {
    display: none;
}

.page-resources__faq-toggle {
    font-size: 1.5em;
    line-height: 1;
    margin-left: 15px;
    color: var(--page-resources-primary-color);
}

.page-resources__faq-answer {
    padding: 0 25px 20px;
    font-size: 1em;
    color: var(--page-resources-text-dark);
    max-height: 0; /* Default hidden state for JS fallback */
    overflow: hidden;
    transition: max-height 0.3s ease-out, padding 0.3s ease-out;
}

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

.page-resources__faq-item[open] .page-resources__faq-answer { /* For native details behavior */
    max-height: none; /* Let browser handle height */
    padding-top: 10px;
}

.page-resources__faq-answer p {
    margin-bottom: 10px;
}

.page-resources__faq-cta {
    text-align: center;
    margin-top: 40px;
}

/* Contact Section */
.page-resources__contact-list {
    list-style: none;
    padding: 0;
    margin-top: 20px;
}

.page-resources__contact-item {
    margin-bottom: 15px;
    font-size: 1.1em;
}

.page-resources__contact-item strong {
    color: var(--page-resources-primary-color);
}

.page-resources__contact-item a {
    color: var(--page-resources-primary-color);
    text-decoration: none;
}

.page-resources__contact-item a:hover {
    text-decoration: underline;
}


/* Responsive Design */
@media (max-width: 1024px) {
    .page-resources__hero-title {
        font-size: 3em;
    }
    .page-resources__section-title {
        font-size: 2em;
    }
    .page-resources__subsection-title {
        font-size: 1.5em;
    }
    .page-resources__container--grid {
        gap: 40px;
    }
}

@media (max-width: 768px) {
    .page-resources__hero-section {
        height: 450px; /* Adjust height for mobile */
        padding-top: var(--header-offset, 120px) !important; /* Ensure header offset on mobile */
    }
    .page-resources__hero-title {
        font-size: 2.2em;
    }
    .page-resources__hero-description {
        font-size: 1em;
    }
    .page-resources__hero-cta {
        flex-direction: column;
        gap: 15px;
    }
    .page-resources__btn-primary,
    .page-resources__btn-secondary {
        width: 100% !important;
        max-width: 100% !important;
        padding: 12px 20px;
        font-size: 1em;
        box-sizing: border-box !important;
    }

    .page-resources__intro-section,
    .page-resources__guide-section,
    .page-resources__finance-section,
    .page-resources__tips-section,
    .page-resources__security-section,
    .page-resources__faq-section,
    .page-resources__contact-section {
        padding: 40px 15px;
    }

    .page-resources__container {
        padding: 0; /* Remove horizontal padding from container, add to sections below */
    }

    .page-resources__container--grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .page-resources__container--reverse-grid {
        grid-template-areas: unset; /* Reset grid area for mobile */
    }

    .page-resources__guide-content,
    .page-resources__finance-content,
    .page-resources__tips-content,
    .page-resources__security-content,
    .page-resources__contact-content {
        order: 2; /* Content after image on mobile by default */
        padding: 0 15px; /* Add padding to content */
    }

    .page-resources__guide-image-wrapper,
    .page-resources__finance-image-wrapper,
    .page-resources__tips-image-wrapper,
    .page-resources__security-image-wrapper,
    .page-resources__contact-image-wrapper {
        order: 1; /* Image first on mobile */
        padding: 0 15px;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        overflow: hidden !important;
    }

    .page-resources__guide-image,
    .page-resources__finance-image,
    .page-resources__tips-image,
    .page-resources__security-image,
    .page-resources__contact-image {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        box-sizing: border-box !important;
        min-width: 200px !important; /* Ensure min size on mobile */
        min-height: 200px !important; /* Ensure min size on mobile */
    }

    .page-resources__section-title {
        font-size: 1.8em;
    }
    .page-resources__subsection-title {
        font-size: 1.3em;
    }
    .page-resources__text-block,
    .page-resources__list-item,
    .page-resources__faq-question,
    .page-resources__faq-answer p,
    .page-resources__contact-item {
        font-size: 0.95em;
    }
    .page-resources__faq-item {
        margin: 0 15px 15px 15px; /* Add horizontal padding to FAQ items */
    }
    .page-resources__faq-list {
        margin-left: 0;
        margin-right: 0;
    }
}