/* style/resources.css */

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

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

.page-resources__section-title {
    font-size: 2.5em;
    color: #26A9E0; /* Brand color for titles */
    text-align: center;
    margin-bottom: 40px;
    font-weight: bold;
}

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

.page-resources__image {
    display: block;
    margin: 40px auto;
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-resources__cta-button {
    display: inline-block;
    padding: 15px 30px;
    font-size: 1.1em;
    font-weight: bold;
    text-align: center;
    text-decoration: none;
    border-radius: 5px;
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
    cursor: pointer;
    box-sizing: border-box;
    white-space: normal;
    word-wrap: break-word;
}

.page-resources__cta-button--primary {
    background-color: #26A9E0; /* Primary brand color */
    color: #ffffff;
    border: 2px solid #26A9E0;
}

.page-resources__cta-button--primary:hover {
    background-color: #1a7fb8;
    border-color: #1a7fb8;
}

.page-resources__cta-button--secondary {
    background-color: #ffffff;
    color: #26A9E0;
    border: 2px solid #26A9E0;
}

.page-resources__cta-button--secondary:hover {
    background-color: #f0f0f0;
    color: #26A9E0;
}

/* --- Section Specific Styles --- */

/* Hero Section */
.page-resources__hero-section {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 600px;
    background-color: #1a1a1a; /* Dark background for hero */
    color: #ffffff;
    overflow: hidden;
    padding-top: var(--header-offset, 120px); /* Apply offset to first content section */
}

.page-resources__hero-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
    opacity: 0.6; /* Slightly dim image for text readability */
}

.page-resources__hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 900px;
    padding: 60px 20px;
}

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

.page-resources__hero-description {
    font-size: 1.4em;
    margin-bottom: 40px;
    color: #f0f0f0;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.7);
}

.page-resources__hero-section .page-resources__cta-button {
    font-size: 1.2em;
    padding: 18px 40px;
}

/* Introduction Section */
.page-resources__introduction-section {
    padding: 80px 0;
    background-color: #ffffff; /* Light background for this section */
    color: #333333;
}

.page-resources__introduction-section .page-resources__section-title {
    color: #000000;
}
.page-resources__introduction-section .page-resources__paragraph {
    color: #333333;
}

/* Beginner Guide Section */
.page-resources__beginner-guide {
    padding: 80px 0;
    background-color: #26A9E0; /* Brand primary color background */
    color: #ffffff;
}

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

.page-resources__guide-content {
    display: flex;
    gap: 40px;
    align-items: flex-start;
    margin-top: 40px;
}

.page-resources__guide-text {
    flex: 2;
}

.page-resources__image--guide {
    flex: 1;
    min-width: 400px; /* Ensure image is not too small on desktop */
    margin: 0;
    align-self: center;
}

.page-resources__guide-subtitle {
    font-size: 1.8em;
    color: #ffffff;
    margin-top: 30px;
    margin-bottom: 15px;
    font-weight: bold;
}

.page-resources__beginner-guide .page-resources__cta-button {
    margin-top: 40px;
    display: block;
    width: fit-content;
    margin-left: auto;
    margin-right: auto;
}

/* Strategy Tips Section */
.page-resources__strategy-tips {
    padding: 80px 0;
    background-color: #ffffff; /* Light background */
    color: #333333;
}

.page-resources__strategy-tips .page-resources__section-title {
    color: #000000;
}
.page-resources__strategy-tips .page-resources__paragraph {
    color: #333333;
}

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

.page-resources__tip-card {
    background-color: #f9f9f9;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    border: 1px solid #e0e0e0;
}

.page-resources__tip-subtitle {
    font-size: 1.5em;
    color: #26A9E0;
    margin-bottom: 15px;
    font-weight: bold;
}

/* Security Fairness Section */
.page-resources__security-fairness {
    padding: 80px 0;
    background-color: #1a1a1a; /* Dark background */
    color: #ffffff;
}

.page-resources__security-fairness .page-resources__section-title {
    color: #ffffff;
}
.page-resources__security-fairness .page-resources__paragraph {
    color: #f0f0f0;
}

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

.page-resources__feature-item {
    background-color: rgba(255, 255, 255, 0.1);
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

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

/* Video Section */
.page-resources__video-section {
    padding: 80px 0;
    background-color: #f0f0f0; /* Light background for contrast */
    color: #333333;
    position: relative; /* For video CTA overlay */
}

.page-resources__video-section .page-resources__section-title {
    color: #000000;
}
.page-resources__video-section .page-resources__paragraph {
    color: #333333;
}

.page-resources__video-wrapper {
    position: relative;
    width: 100%;
    max-width: 1000px; /* Max width for the video player */
    margin: 40px auto;
    background-color: #000;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.page-resources__video {
    display: block;
    width: 100%;
    height: auto;
}

.page-resources__video-cta-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(0, 0, 0, 0.5);
    opacity: 0;
    transition: opacity 0.3s ease;
    text-decoration: none;
    cursor: pointer;
}

.page-resources__video-cta-overlay:hover {
    opacity: 1;
}

.page-resources__video-cta-text {
    color: #ffffff;
    font-size: 2em;
    font-weight: bold;
    padding: 20px 40px;
    background-color: #26A9E0;
    border-radius: 5px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.page-resources__cta-button--video-bottom {
    display: block;
    width: fit-content;
    margin: 40px auto 0;
}

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

.page-resources__faq-section .page-resources__section-title {
    color: #000000;
}
.page-resources__faq-section .page-resources__paragraph {
    color: #333333;
}

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

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

.page-resources__faq-item summary {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    font-size: 1.2em;
    font-weight: bold;
    color: #26A9E0;
    cursor: pointer;
    background-color: #eaf7fd; /* Lighter shade of brand color */
    border-bottom: 1px solid #d0eaf5;
    transition: background-color 0.3s ease;
    list-style: none; /* Remove default marker */
}

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

.page-resources__faq-item summary:hover {
    background-color: #d0eaf5;
}

.page-resources__faq-qtext {
    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[open] .page-resources__faq-toggle {
    transform: rotate(45deg); /* Change + to X or - */
}

.page-resources__faq-answer {
    padding: 20px 25px;
    background-color: #ffffff;
    color: #333333;
    border-top: 1px solid #e0e0e0;
    font-size: 1.1em;
}

/* Final CTA Section */
.page-resources__cta-final {
    padding: 80px 0;
    background-color: #26A9E0; /* Brand primary color */
    color: #ffffff;
    text-align: center;
}

.page-resources__cta-final .page-resources__section-title {
    color: #ffffff;
    margin-bottom: 20px;
}

.page-resources__cta-final .page-resources__paragraph {
    max-width: 800px;
    margin: 0 auto 40px;
    font-size: 1.2em;
}

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

/* --- Responsive Design --- */
@media (max-width: 1024px) {
    .page-resources__hero-title {
        font-size: 3em;
    }
    .page-resources__hero-description {
        font-size: 1.2em;
    }
    .page-resources__section-title {
        font-size: 2em;
    }
    .page-resources__guide-content {
        flex-direction: column;
        align-items: center;
    }
    .page-resources__image--guide {
        min-width: unset;
        width: 100%;
    }
}

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

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

    .page-resources__hero-title {
        font-size: 2.2em;
    }
    .page-resources__hero-description {
        font-size: 1em;
    }
    .page-resources__section-title {
        font-size: 1.8em;
        margin-bottom: 30px;
    }
    .page-resources__guide-subtitle,
    .page-resources__tip-subtitle,
    .page-resources__feature-title {
        font-size: 1.3em;
    }
    .page-resources__paragraph {
        font-size: 1em;
    }

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

    /* Image/Content containers responsiveness */
    .page-resources__introduction-section,
    .page-resources__beginner-guide,
    .page-resources__strategy-tips,
    .page-resources__security-fairness,
    .page-resources__video-section,
    .page-resources__faq-section,
    .page-resources__cta-final {
      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-wrapper {
      max-width: 100% !important;
      width: 100% !important;
      box-sizing: border-box !important;
      overflow: hidden !important;
    }

    /* Button responsiveness */
    .page-resources__cta-button,
    .page-resources__cta-button--primary,
    .page-resources__cta-button--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;
        padding-right: 15px; /* Add padding for text inside button */
    }

    .page-resources__cta-buttons {
        flex-direction: column; /* Stack buttons vertically */
        gap: 15px;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
    }

    .page-resources__video-cta-text {
        font-size: 1.5em;
        padding: 15px 30px;
    }

    .page-resources__faq-item summary {
        font-size: 1em;
        padding: 15px 20px;
    }
    .page-resources__faq-answer {
        font-size: 0.95em;
        padding: 15px 20px;
    }
}