.page-resources {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #ffffff; /* Text color for dark body background */
    background-color: transparent; /* Body background is handled by shared.css */
}

/* Header offset for main content */
.page-resources__hero-section {
    padding-top: var(--header-offset, 120px); /* Ensures content is not hidden by fixed header */
}

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

.page-resources__hero-section {
    background-color: #26A9E0; /* Primary brand color for hero background */
    color: #ffffff;
    text-align: center;
    padding: 80px 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 450px;
}

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

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

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

.page-resources__btn-primary,
.page-resources__btn-secondary {
    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;
    text-align: center;
    max-width: 100%; /* Ensure button adapts to container width */
    box-sizing: border-box;
    white-space: normal; /* Allow text to wrap */
    word-wrap: break-word; /* Break long words */
}

.page-resources__btn-primary {
    background-color: #EA7C07; /* Login color */
    color: #ffffff;
    border: 2px solid #EA7C07;
}

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

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

.page-resources__btn-secondary:hover {
    background-color: #ffffff;
    color: #26A9E0;
}

.page-resources__section-title {
    font-size: 2.5em;
    color: #ffffff; /* Default for dark sections */
    text-align: center;
    margin-bottom: 20px;
    font-weight: bold;
    line-height: 1.3;
}

.page-resources__section-description {
    font-size: 1.1em;
    color: #f0f0f0; /* Default for dark sections */
    text-align: center;
    max-width: 900px;
    margin: 0 auto 40px auto;
    line-height: 1.6;
}

/* Video Section */
.page-resources__video-section {
    padding: 80px 20px;
    background-color: #1a1a2e; /* Dark background from body */
    color: #ffffff;
    text-align: center;
}

.page-resources__video-wrapper {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
    height: 0;
    overflow: hidden;
    max-width: 100%;
    background: #000;
    margin: 40px auto;
    border-radius: 12px;
}

.page-resources__video-link {
    display: block;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    cursor: pointer;
    z-index: 1; /* Ensure link is clickable over video */
}

.page-resources__video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
    max-width: 100%;
    height: auto; /* Ensure video is responsive */
    display: block;
}

.page-resources__video-caption {
    font-size: 0.95em;
    color: #cccccc;
    margin-top: 15px;
}

/* Content Area (Light Background) */
.page-resources__content-area {
    padding: 80px 20px;
    background-color: #ffffff; /* White background */
    color: #333333; /* Dark text for light background */
}

.page-resources__content-area .page-resources__section-title,
.page-resources__content-area .page-resources__section-description {
    color: #333333;
}
.page-resources__content-area .page-resources__section-description {
    color: #555555;
}

.page-resources__text-block {
    font-size: 1.1em;
    line-height: 1.7;
    margin-bottom: 30px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
    text-align: justify;
}

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

.page-resources__card {
    background-color: #f8f8f8;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%; /* Ensure cards have equal height */
}

.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: 250px; /* Fixed height for consistency */
    object-fit: cover;
    display: block;
    border-bottom: 1px solid #eee;
}

.page-resources__card-title {
    font-size: 1.5em;
    color: #26A9E0; /* Brand color for titles */
    margin: 20px 20px 10px 20px;
    font-weight: bold;
}

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

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

.page-resources__card-description {
    font-size: 0.95em;
    color: #555555;
    padding: 0 20px 15px 20px;
    flex-grow: 1; /* Allow description to take available space */
}

.page-resources__card-link {
    display: inline-block;
    background-color: #26A9E0;
    color: #ffffff;
    padding: 10px 20px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: bold;
    margin: 0 20px 20px 20px;
    transition: background-color 0.3s ease;
    align-self: flex-start; /* Align link to the start of the card */
}

.page-resources__card-link:hover {
    background-color: #1f8ec4;
}

/* How-to Section (Dark Background) */
.page-resources__how-to-section {
    padding: 80px 20px;
    background-color: #26A9E0; /* Primary brand color */
    color: #ffffff;
}

.page-resources__how-to-section .page-resources__section-title {
    color: #ffffff;
}
.page-resources__how-to-section .page-resources__section-description {
    color: #f0f0f0;
}

.page-resources__step-by-step {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 40px;
    margin-top: 50px;
}

.page-resources__step-item {
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    align-items: center;
}

.page-resources__step-image {
    width: 100%;
    max-width: 400px;
    height: auto;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 25px;
    min-height: 200px; /* Minimum size requirement */
}

.page-resources__step-title {
    font-size: 1.8em;
    color: #ffffff;
    margin-bottom: 15px;
    font-weight: bold;
}

.page-resources__step-text {
    font-size: 1.05em;
    color: #f0f0f0;
    margin-bottom: 30px;
    line-height: 1.7;
    text-align: justify;
}

/* Security Section (Light Background) */
.page-resources__security-section {
    padding: 80px 20px;
    background-color: #ffffff;
    color: #333333;
}

.page-resources__security-section .page-resources__section-title {
    color: #333333;
}
.page-resources__security-section .page-resources__section-description {
    color: #555555;
}

.page-resources__security-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.page-resources__feature-item {
    text-align: center;
    background-color: #f8f8f8;
    border-radius: 12px;
    padding: 30px 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column;
    align-items: center;
    height: 100%;
}

.page-resources__feature-icon {
    width: 100%; /* Make icon responsive */
    max-width: 200px; /* Max width to maintain design */
    height: auto;
    object-fit: contain;
    margin-bottom: 20px;
    min-width: 200px; /* Minimum size requirement */
    min-height: 200px; /* Minimum size requirement */
}

.page-resources__feature-title {
    font-size: 1.4em;
    color: #26A9E0;
    margin-bottom: 10px;
    font-weight: bold;
}

.page-resources__feature-text {
    font-size: 0.95em;
    color: #555555;
    line-height: 1.6;
    text-align: center;
}

/* Promotions Section (Dark Background) */
.page-resources__promotions-section {
    padding: 80px 20px;
    background-color: #1a1a2e; /* Dark background */
    color: #ffffff;
}

.page-resources__promotions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.page-resources__promo-card {
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
}

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

.page-resources__promo-image {
    width: 100%;
    height: 220px;
    object-fit: cover;
    display: block;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.page-resources__promo-title {
    font-size: 1.6em;
    color: #ffffff;
    margin: 20px 20px 10px 20px;
    font-weight: bold;
}

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

/* FAQ Section (Light Background) */
.page-resources__faq-section {
    padding: 80px 20px;
    background-color: #ffffff;
    color: #333333;
}

.page-resources__faq-section .page-resources__section-title {
    color: #333333;
}
.page-resources__faq-section .page-resources__section-description {
    color: #555555;
}

.page-resources__faq-list {
    max-width: 900px;
    margin: 50px auto 0 auto;
}

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

.page-resources__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    background-color: #26A9E0; /* Primary brand color for question background */
    color: #ffffff;
    cursor: pointer;
    font-size: 1.1em;
    font-weight: bold;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    transition: background-color 0.3s ease;
}

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

.page-resources__faq-question h3 {
    margin: 0;
    color: #ffffff;
    font-size: 1.1em;
    flex-grow: 1;
}

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

.page-resources__faq-item.active .page-resources__faq-toggle {
    transform: rotate(45deg);
}

.page-resources__faq-answer {
    max-height: 0;
    overflow: hidden;
    padding: 0 20px; /* Keep padding for horizontal consistency */
    transition: max-height 0.3s ease, padding 0.3s ease;
    background-color: #ffffff;
    color: #333333;
}

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

.page-resources__faq-answer p {
    margin: 0;
    font-size: 1em;
    line-height: 1.6;
    color: #555555;
}

/* Contact Section (Dark Background) */
.page-resources__contact-section {
    padding: 80px 20px;
    background-color: #1a1a2e; /* Dark background */
    color: #ffffff;
    text-align: center;
}

.page-resources__contact-section .page-resources__section-title {
    color: #ffffff;
}
.page-resources__contact-section .page-resources__section-description {
    color: #f0f0f0;
}

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

/* Responsive styles */
@media (max-width: 1024px) {
    .page-resources__hero-title {
        font-size: 2.8em;
    }
    .page-resources__section-title {
        font-size: 2em;
    }
    .page-resources__hero-description,
    .page-resources__section-description {
        font-size: 1em;
    }
}

@media (max-width: 768px) {
    .page-resources__hero-section {
        padding: 60px 15px;
        min-height: 350px;
    }
    .page-resources__hero-title {
        font-size: 2.2em;
    }
    .page-resources__hero-description {
        font-size: 0.95em;
        margin-bottom: 30px;
    }
    .page-resources__cta-buttons {
        flex-direction: column;
        gap: 15px;
    }
    .page-resources__btn-primary,
    .page-resources__btn-secondary,
    .page-resources a[class*="button"],
    .page-resources a[class*="btn"] {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
        padding-left: 15px; /* Add horizontal padding for buttons */
        padding-right: 15px;
    }

    .page-resources__video-section,
    .page-resources__content-area,
    .page-resources__how-to-section,
    .page-resources__security-section,
    .page-resources__promotions-section,
    .page-resources__faq-section,
    .page-resources__contact-section {
        padding: 40px 15px;
    }

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

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

    /* Images responsiveness */
    .page-resources img {
        max-width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    .page-resources__card-image {
        height: 200px; /* Adjust card image height for mobile */
    }
    .page-resources__step-image {
        min-height: 200px;
    }
    .page-resources__feature-icon {
        min-width: 200px;
        min-height: 200px;
        width: 200px;
        height: 200px;
    }

    /* Video responsiveness */
    .page-resources video,
    .page-resources__video {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    .page-resources__video-section,
    .page-resources__video-container,
    .page-resources__video-wrapper {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 0; /* Container padding handled by .page-resources__container */
        padding-right: 0;
        overflow: hidden !important;
    }
    .page-resources__video-section {
        padding-top: var(--header-offset, 120px) !important; /* Re-apply header offset for mobile */
    }
    
    /* Ensure all content containers are responsive */
    .page-resources__section,
    .page-resources__card,
    .page-resources__container,
    .page-resources__cta-buttons,
    .page-resources__contact-methods,
    .page-resources__faq-list,
    .page-resources__grid,
    .page-resources__step-by-step,
    .page-resources__security-features,
    .page-resources__promotions-grid {
      max-width: 100% !important;
      width: 100% !important;
      box-sizing: border-box !important;
      padding-left: 0; /* Use .page-resources__container for overall padding */
      padding-right: 0;
    }
    .page-resources__cta-buttons,
    .page-resources__contact-methods {
        flex-wrap: wrap !important;
        gap: 15px;
    }
}

/* Specific contrast adjustments */
.page-resources__dark-section .page-resources__section-title,
.page-resources__dark-section .page-resources__section-description,
.page-resources__dark-section .page-resources__step-title,
.page-resources__dark-section .page-resources__step-text,
.page-resources__dark-section .page-resources__promo-title,
.page-resources__dark-section .page-resources__promo-text {
    color: #ffffff; /* Ensure light text on dark backgrounds */
}

.page-resources__light-bg .page-resources__section-title,
.page-resources__light-bg .page-resources__section-description,
.page-resources__light-bg .page-resources__feature-title,
.page-resources__light-bg .page-resources__feature-text,
.page-resources__light-bg .page-resources__text-block,
.page-resources__light-bg .page-resources__card-description {
    color: #333333; /* Ensure dark text on light backgrounds */
}