/* style/resources.css */
.page-resources {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #ffffff; /* Body background is dark #0a0a0a, so text is light */
    background-color: transparent; /* inherited from body */
}

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

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

.page-resources__hero-section::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5); /* Dark overlay for text readability */
    z-index: -1;
}

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

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

.page-resources__hero-description {
    font-size: 1.2em;
    margin-bottom: 30px;
    max-width: 800px;
    color: #f0f0f0;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
}

/* CTA Button - Primary */
.page-resources__cta-button {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 8px;
    font-size: 1.1em;
    font-weight: bold;
    text-decoration: none;
    transition: background-color 0.3s ease, transform 0.3s ease;
    cursor: pointer;
    text-align: center;
    max-width: 100%;
    box-sizing: border-box;
    white-space: normal;
    word-wrap: break-word;
}

.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: #e02020;
    transform: translateY(-2px);
}

.page-resources__btn-secondary {
    background-color: #017439; /* Brand primary color */
    color: #ffffff;
    border: 2px solid #017439;
}

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


/* General Section Styling */
.page-resources__introduction-section,
.page-resources__guide-section,
.page-resources__strategy-section,
.page-resources__video-section {
    padding: 80px 0;
}

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

.page-resources__light-bg {
    background-color: #f8f8f8; /* Light background for contrast */
    color: #333333;
}

.page-resources__section-title {
    font-size: 2.5em;
    margin-bottom: 40px;
    text-align: center;
    color: inherit; /* Inherit from section, ensuring contrast */
}

.page-resources__section-title strong {
    color: #C30808; /* Highlight keywords */
}

.page-resources__subsection-title {
    font-size: 1.8em;
    margin-top: 30px;
    margin-bottom: 15px;
    color: inherit; /* Inherit from section */
}

.page-resources__paragraph {
    font-size: 1.1em;
    margin-bottom: 20px;
    color: inherit; /* Inherit from section */
}

.page-resources__keyword {
    font-weight: bold;
    color: inherit; /* Inherit from parent, ensuring contrast */
}

.page-resources__content-grid {
    display: flex;
    gap: 40px;
    align-items: center;
    margin-bottom: 40px;
}

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

.page-resources__content-grid .page-resources__text-block {
    flex: 1;
}

.page-resources__content-grid .page-resources__image {
    flex: 1;
    border-radius: 12px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
    display: block; /* Ensure it's a block element */
    max-width: 100%; /* Important for responsiveness */
    height: auto; /* Maintain aspect ratio */
    min-width: 200px;
    min-height: 200px;
}

/* Security List */
.page-resources__security-list {
    list-style: none;
    padding: 0;
    margin: 0 auto;
    max-width: 800px;
    color: #ffffff;
}

.page-resources__security-list .page-resources__list-item {
    background-color: rgba(255, 255, 255, 0.1);
    border-left: 5px solid #C30808;
    padding: 15px 20px;
    margin-bottom: 15px;
    border-radius: 8px;
    font-size: 1.1em;
}

.page-resources__security-list .page-resources__list-item strong {
    color: #FFFF00;
}

/* FAQ Section */
.page-resources__faq-section {
    padding: 80px 0;
    background-color: #0a0a0a; /* Body background */
    color: #ffffff;
}

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

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

.page-resources__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    font-size: 1.2em;
    font-weight: bold;
    cursor: pointer;
    background-color: rgba(255, 255, 255, 0.15);
    transition: background-color 0.3s ease;
    color: #ffffff;
}

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

.page-resources__faq-question h3 {
    margin: 0;
    color: inherit;
}

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

.page-resources__faq-item.active .page-resources__faq-toggle {
    transform: rotate(45deg); /* Change + to X or - */
}

.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 */
    padding: 15px 25px;
}

.page-resources__faq-answer p {
    margin-top: 0;
    margin-bottom: 15px;
    color: inherit;
}

/* Video Section */
.page-resources__video-section {
    text-align: center;
    padding: 80px 0;
}

.page-resources__video-wrapper {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
    height: 0;
    overflow: hidden;
    max-width: 900px;
    margin: 40px auto;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    background-color: #000; /* Fallback for video area */
}

.page-resources__video-link {
    display: block;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    cursor: pointer;
}

.page-resources__video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 12px;
}

.page-resources__video-caption {
    font-style: italic;
    margin-top: 20px;
    color: #f0f0f0;
}

.page-resources__button-group {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 40px;
    flex-wrap: wrap; /* Allow wrapping on small screens */
}


/* 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__content-grid {
        flex-direction: column;
    }
    .page-resources__content-grid--reverse {
        flex-direction: column; /* Consistent stacking */
    }
    .page-resources__content-grid .page-resources__image {
        margin-top: 20px; /* Add space when stacked */
    }
}

@media (max-width: 768px) {
    .page-resources__hero-section {
        padding: 80px 15px;
        padding-top: var(--header-offset, 120px) !important; /* Mobile header offset */
    }
    .page-resources__hero-title {
        font-size: 2.2em;
    }
    .page-resources__hero-description {
        font-size: 1em;
    }

    .page-resources__introduction-section,
    .page-resources__guide-section,
    .page-resources__strategy-section,
    .page-resources__video-section,
    .page-resources__faq-section {
        padding: 40px 0;
    }
    .page-resources__container {
        padding: 0 15px;
    }
    .page-resources__section-title {
        font-size: 1.8em;
        margin-bottom: 30px;
    }
    .page-resources__subsection-title {
        font-size: 1.3em;
    }
    .page-resources__paragraph,
    .page-resources__list-item,
    .page-resources__faq-question {
        font-size: 1em;
    }

    /* Images responsiveness */
    .page-resources img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    .page-resources__section,
    .page-resources__card,
    .page-resources__container {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
    }

    /* 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: 15px;
        padding-right: 15px;
        overflow: hidden !important;
    }

    /* Button responsiveness */
    .page-resources__cta-button,
    .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 some padding for text inside button */
        padding-right: 15px;
    }
    .page-resources__button-group {
        flex-direction: column; /* Stack buttons vertically */
        gap: 15px;
    }
}