/* style/resources.css */

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

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

/* Hero Section */
.page-resources__hero-section {
    position: relative;
    padding: 80px 0 40px; /* Adjust padding as needed, header offset handled by inline style */
    text-align: center;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background-color: #017439; /* Use brand primary color for hero background */
    color: #ffffff;
    /* padding-top: var(--header-offset, 120px); is set inline for this specific section */
}

.page-resources__hero-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -1;
    opacity: 0.2; /* Make background image subtle */
}

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

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

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

/* General Sections */
.page-resources__section-title {
    font-size: 2.2em;
    color: #017439; /* Brand color for titles on light backgrounds */
    text-align: center;
    margin-bottom: 40px;
    position: relative;
}

.page-resources__section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background-color: #017439;
    margin: 15px auto 0;
    border-radius: 2px;
}

.page-resources__dark-bg .page-resources__section-title {
    color: #ffffff;
}

.page-resources__dark-bg .page-resources__section-title::after {
    background-color: #ffffff;
}

.page-resources__paragraph {
    font-size: 1.1em;
    margin-bottom: 20px;
    color: #333333; /* Default text color for light sections */
}

.page-resources__dark-bg .page-resources__paragraph {
    color: #f0f0f0; /* Light text for dark sections */
}

.page-resources__paragraph a {
    color: #017439;
    text-decoration: underline;
}

.page-resources__dark-bg .page-resources__paragraph a {
    color: #FFFF00; /* Yellow for links on dark background, consistent with login/register text */
    text-decoration: underline;
}


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

.page-resources__introduction-section .page-resources__section-title {
    color: #017439;
}

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

.page-resources__content-image {
    display: block;
    margin: 30px auto;
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* Detailed Guides Section */
.page-resources__detailed-guides {
    padding: 60px 0;
    background-color: #017439; /* Dark background */
    color: #ffffff;
}

.page-resources__detailed-guides .page-resources__section-title {
    color: #ffffff;
}

.page-resources__detailed-guides .page-resources__paragraph {
    color: #f0f0f0;
    text-align: center;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

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

.page-resources__grid-item {
    background-color: rgba(255, 255, 255, 0.1); /* Semi-transparent white card */
    border-radius: 8px;
    padding: 25px;
    text-align: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
    align-items: center;
    color: #ffffff;
    transition: transform 0.3s ease;
}

.page-resources__grid-item:hover {
    transform: translateY(-5px);
}

.page-resources__grid-image {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin-bottom: 20px;
    display: block;
}

.page-resources__grid-title {
    font-size: 1.5em;
    margin-bottom: 15px;
    color: #FFFF00; /* Yellow for titles on dark cards */
}

.page-resources__grid-title a {
    color: #FFFF00;
    text-decoration: none;
    transition: color 0.3s ease;
}

.page-resources__grid-title a:hover {
    color: #ffffff;
}

.page-resources__grid-description {
    font-size: 0.95em;
    color: #f0f0f0;
}

.page-resources__grid-description a {
    color: #FFFF00;
    text-decoration: underline;
}

/* Platform Advantages Section */
.page-resources__platform-advantages {
    padding: 60px 0;
    background-color: #ffffff;
    color: #333333;
}

.page-resources__advantages-list {
    list-style: none;
    padding: 0;
    margin-top: 30px;
}

.page-resources__advantages-list li {
    font-size: 1.1em;
    margin-bottom: 15px;
    position: relative;
    padding-left: 30px;
    color: #333333;
}

.page-resources__advantages-list li::before {
    content: '✅';
    position: absolute;
    left: 0;
    color: #017439;
}

.page-resources__advantages-list li strong {
    color: #017439;
}

.page-resources__advantages-list li a {
    color: #017439;
    text-decoration: underline;
}


/* Video Section */
.page-resources__video-section {
    padding: 60px 0;
    background-color: #017439; /* Dark background */
    color: #ffffff;
    text-align: center;
}

.page-resources__video-section .page-resources__section-title {
    color: #ffffff;
}

.page-resources__video-section .page-resources__paragraph {
    color: #f0f0f0;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.page-resources__video-section .page-resources__paragraph a {
    color: #FFFF00;
    text-decoration: underline;
}

.page-resources__video-wrapper {
    position: relative;
    width: 100%;
    max-width: 800px; /* Max width for video */
    margin: 30px auto;
    background-color: #000; /* Black background for video */
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
}

.page-resources__video-link {
    display: block;
    cursor: pointer;
}

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

.page-resources__cta-group {
    display: flex;
    gap: 20px;
    justify-content: center;
    margin-top: 30px;
    flex-wrap: wrap;
}

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

.page-resources__faq-section .page-resources__section-title {
    color: #017439;
}

.page-resources__faq-section .page-resources__paragraph {
    color: #333333;
    text-align: center;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.page-resources__faq-section .page-resources__paragraph a {
    color: #017439;
    text-decoration: underline;
}

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

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

.page-resources__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 25px;
    cursor: pointer;
    font-weight: bold;
    font-size: 1.1em;
    color: #017439; /* Brand color for question */
    background-color: #eaf8ed; /* Light green background for question */
    border-bottom: 1px solid #e0e0e0;
    user-select: none;
    list-style: none; /* For details/summary */
}

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

.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); /* Rotate + to become X or - */
}
/* For JS fallback, if using div */
.page-resources__faq-item.active .page-resources__faq-toggle {
    transform: rotate(45deg);
}

.page-resources__faq-answer {
    padding: 0 25px 20px;
    font-size: 1em;
    color: #555555;
    background-color: #ffffff;
}

.page-resources__faq-answer p {
    margin: 15px 0 0;
    color: #555555;
}

.page-resources__faq-answer a {
    color: #017439;
    text-decoration: underline;
}

/* Conclusion Section */
.page-resources__conclusion-section {
    padding: 60px 0;
    background-color: #017439; /* Dark background */
    color: #ffffff;
    text-align: center;
}

.page-resources__conclusion-section .page-resources__section-title {
    color: #ffffff;
}

.page-resources__conclusion-section .page-resources__paragraph {
    color: #f0f0f0;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.page-resources__conclusion-section .page-resources__paragraph a {
    color: #FFFF00;
    text-decoration: underline;
}

/* Call to Action Section */
.page-resources__call-to-action {
    padding: 60px 0;
    background-color: #ffffff;
    color: #333333;
    text-align: center;
}

.page-resources__call-to-action .page-resources__section-title {
    color: #017439;
}

.page-resources__call-to-action .page-resources__paragraph {
    color: #333333;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.page-resources__call-to-action .page-resources__paragraph a {
    color: #017439;
    text-decoration: underline;
}

.page-resources__cta-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    margin-top: 30px;
    flex-wrap: wrap;
}

/* Buttons */
.page-resources__cta-button {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 50px;
    font-size: 1.1em;
    font-weight: bold;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    text-align: center;
    max-width: 100%; /* Ensure buttons adapt to 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: #C30808; /* Login/Register color */
    color: #FFFF00; /* Login/Register font color */
    border: 2px solid #C30808;
}

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

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

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

/* Mobile Responsive Styles */
@media (max-width: 768px) {
    .page-resources__container {
        padding: 15px; /* Smaller padding on mobile */
    }

    .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,
    .page-resources__advantages-list li,
    .page-resources__grid-description,
    .page-resources__faq-answer p {
        font-size: 0.95em;
    }

    .page-resources__grid {
        grid-template-columns: 1fr; /* Single column layout for grid */
    }

    .page-resources__cta-group,
    .page-resources__hero-cta-group,
    .page-resources__cta-buttons {
        flex-direction: column; /* Stack buttons vertically */
        gap: 15px;
    }

    .page-resources__cta-button {
        width: 100% !important;
        max-width: 100% !important;
        padding: 12px 20px;
        font-size: 1em;
    }
    
    /* Mobile image and video specific overrides */
    .page-resources img {
      max-width: 100% !important;
      width: 100% !important;
      height: auto !important;
      display: block !important;
    }
    
    .page-resources video,
    .page-resources__video {
      max-width: 100% !important;
      width: 100% !important;
      height: auto !important;
      display: block !important;
    }
    
    .page-resources__section,
    .page-resources__card,
    .page-resources__container,
    .page-resources__video-section,
    .page-resources__video-container,
    .page-resources__video-wrapper,
    .page-resources__cta-buttons,
    .page-resources__button-group,
    .page-resources__btn-container {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        overflow: hidden !important; /* Prevent content overflow */
    }
    
    .page-resources__video-section {
        padding-top: var(--header-offset, 120px) !important; /* Ensure header offset is applied on mobile */
    }
}