/* style/resources.css */

/* Base styles for the page content */
.page-resources {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #333333; /* Default text color for light backgrounds */
    background-color: #FFFFFF; /* Assuming shared.css sets body background to light */
}

/* Hero Section */
.page-resources__hero-section {
    background-color: #017439; /* Dark background */
    color: #FFFFFF; /* Light text */
    padding-top: var(--header-offset, 120px); /* Ensures content is not hidden by fixed header */
    padding-bottom: 80px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.page-resources__hero-content {
    max-width: 900px;
    text-align: center;
    z-index: 1;
    padding: 0 20px;
}

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

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

.page-resources__hero-image-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 0;
}

.page-resources__hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.2; /* Subtle background image */
    filter: none; /* No filter for image color change */
}

/* CTA Buttons */
.page-resources__cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 30px;
    flex-wrap: wrap; /* Allow wrapping 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;
    cursor: pointer;
    max-width: 100%; /* Ensure responsiveness */
    box-sizing: border-box; /* Include padding and border in element's total width and height */
    white-space: normal; /* Allow text wrapping */
    word-wrap: break-word; /* Break long words */
}

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

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

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

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

/* Container for consistent spacing */
.page-resources__container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* Sections styling */
.page-resources__section {
    padding: 60px 0;
    text-align: center;
}

.page-resources__section-title {
    font-size: 2.5em;
    margin-bottom: 30px;
    color: #017439; /* Brand color for titles */
    font-weight: bold;
}

.page-resources__paragraph {
    font-size: 1.1em;
    margin-bottom: 20px;
    color: #333333;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

/* Overview Section */
.page-resources__overview-section {
    background-color: #FFFFFF;
    color: #333333;
}

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

.page-resources__grid-item {
    background-color: #f9f9f9;
    padding: 25px;
    border-radius: 10px;
    text-align: left;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.page-resources__grid-image {
    width: 100%;
    height: 250px; /* Fixed height for consistency */
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 20px;
    filter: none; /* No filter for image color change */
}

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

/* Guide Section */
.page-resources__guide-section {
    background-color: #017439;
    color: #FFFFFF;
}

.page-resources__guide-section .page-resources__section-title,
.page-resources__guide-section .page-resources__paragraph {
    color: #FFFFFF;
}

.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: 10px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

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

.page-resources__video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    filter: none; /* No filter for image color change */
}

.page-resources__list {
    list-style: none;
    padding: 0;
    margin: 40px auto 0 auto;
    max-width: 900px;
    text-align: left;
}

.page-resources__list-item {
    background-color: rgba(255, 255, 255, 0.1);
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 15px;
}

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

.page-resources__list-item .page-resources__paragraph {
    font-size: 1em;
    color: #f0f0f0;
    margin-bottom: 0;
}

/* Analysis Section */
.page-resources__analysis-section {
    background-color: #FFFFFF;
    color: #333333;
}

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

.page-resources__feature-item {
    background-color: #f9f9f9;
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

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

/* Knowledge Section */
.page-resources__knowledge-section {
    background-color: #017439;
    color: #FFFFFF;
}

.page-resources__knowledge-section .page-resources__section-title,
.page-resources__knowledge-section .page-resources__paragraph {
    color: #FFFFFF;
}

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

.page-resources__card {
    background-color: rgba(255, 255, 255, 0.1); /* Semi-transparent white for dark background */
    padding: 25px;
    border-radius: 10px;
    text-align: left;
    color: #FFFFFF;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

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

.page-resources__card .page-resources__paragraph {
    color: #f0f0f0;
    margin-bottom: 0;
}

/* FAQ Section */
.page-resources__faq-section {
    background-color: #FFFFFF;
    color: #333333;
}

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

.page-resources__faq-item {
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
}

.page-resources__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 25px;
    background-color: #f9f9f9;
    cursor: pointer;
    font-size: 1.2em;
    color: #017439;
    font-weight: bold;
    transition: background-color 0.3s ease;
}

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

.page-resources__faq-question h3 {
    margin: 0;
    font-size: 1.2em;
    color: #017439;
    font-weight: bold;
}

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

.page-resources__faq-answer {
    max-height: 0;
    overflow: hidden;
    padding: 0 25px;
    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: 15px 25px;
}

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

.page-resources__faq-answer p {
    margin-bottom: 0;
    font-size: 1em;
    color: #333333;
}


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

@media (max-width: 768px) {
    /* Mobile specific padding for content containers */
    .page-resources__container,
    .page-resources__hero-content,
    .page-resources__cta-buttons,
    .page-resources__image-text-grid,
    .page-resources__list,
    .page-resources__feature-grid,
    .page-resources__card-grid,
    .page-resources__faq-list {
        padding-left: 15px !important;
        padding-right: 15px !important;
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
    }

    /* Images responsiveness */
    .page-resources img {
        max-width: 100% !important;
        width: 100% !important; /* Ensure images take full width of their container */
        height: auto !important;
        display: block !important;
    }

    /* 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 {
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
        overflow: hidden !important;
    }
    
    .page-resources__guide-section {
        padding-top: var(--header-offset, 120px) !important; /* Ensure video section has header offset on mobile */
    }

    /* Button responsiveness */
    .page-resources__cta-buttons {
        flex-direction: column; /* Stack buttons vertically on mobile */
        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: 12px 20px !important;
        font-size: 1em !important;
    }

    .page-resources__hero-title {
        font-size: 2em;
    }

    .page-resources__hero-description {
        font-size: 1em;
    }

    .page-resources__section-title {
        font-size: 1.8em;
    }

    .page-resources__paragraph {
        font-size: 1em;
    }

    .page-resources__grid-title,
    .page-resources__list-title,
    .page-resources__feature-title,
    .page-resources__card-title {
        font-size: 1.3em;
    }

    .page-resources__faq-question h3 {
        font-size: 1em;
    }

    .page-resources__section {
        padding: 40px 0;
    }
    
    .page-resources__grid-image {
        height: 200px; /* Adjust height for mobile */
    }
}

@media (max-width: 480px) {
    .page-resources__hero-title {
        font-size: 1.8em;
    }
    .page-resources__section-title {
        font-size: 1.6em;
    }
}