/* style/resources.css */

/* Variables and Base Styles */
:root {
    --primary-color: #017439;
    --secondary-color: #FFFFFF;
    --register-login-btn-bg: #C30808;
    --register-login-btn-text: #FFFF00;
    --text-on-dark: #FFFFFF;
    --text-on-light: #333333;
    --card-bg-dark-mode: rgba(255, 255, 255, 0.1); /* Semi-transparent white for cards on dark body */
    --border-color: rgba(255, 255, 255, 0.2);
    --hover-color: #02a04e; /* Slightly lighter green for hover */
}

/* Page-specific styling for .page-resources */
.page-resources {
    color: var(--text-on-dark); /* Default text color for the page, as body background is dark */
    background-color: transparent; /* Body background handled by shared.css */
    font-family: Arial, sans-serif;
    line-height: 1.6;
    padding-top: 0; /* Assuming shared.css handles body padding-top for header offset */
}

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

/* 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 60px; 
    color: var(--text-on-dark);
    overflow: hidden; /* Ensure video doesn't overflow */
    min-height: 600px;
    padding-top: var(--header-offset, 120px); /* Ensure space for fixed header */
}

.page-resources__hero-video-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: -1; /* Place behind content */
}

.page-resources__hero-video {
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    object-fit: cover;
    filter: brightness(0.4); /* Darken video for text readability */
}

.page-resources__video-overlay-link {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1; /* Make it clickable over the video */
    cursor: pointer;
}

.page-resources__hero-title {
    font-size: 3.5em;
    margin-bottom: 20px;
    color: var(--text-on-dark);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
    max-width: 900px;
    z-index: 1;
}

.page-resources__hero-description {
    font-size: 1.2em;
    margin-bottom: 40px;
    color: var(--text-on-dark);
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.7);
    max-width: 800px;
    z-index: 1;
}

.page-resources__cta-buttons {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    justify-content: center;
    z-index: 1;
}

/* General Section Styling */
.page-resources__section {
    padding: 80px 0;
    text-align: center;
}

.page-resources__section--dark {
    background-color: var(--primary-color);
    color: var(--text-on-dark);
}

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

.page-resources__section-description {
    font-size: 1.1em;
    max-width: 900px;
    margin: 0 auto 50px;
    color: inherit;
}

/* Resource Grid */
.page-resources__resource-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.page-resources__resource-card {
    background-color: var(--card-bg-dark-mode); /* Semi-transparent white on dark background */
    border-radius: 10px;
    padding: 30px;
    text-align: left;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    color: var(--text-on-dark);
    border: 1px solid var(--border-color);
}

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

.page-resources__card-image {
    width: 100%;
    height: 200px; /* Fixed height for consistency, min 200px */
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 20px;
}

.page-resources__card-title {
    font-size: 1.5em;
    margin-bottom: 15px;
    color: var(--text-on-dark);
}

.page-resources__card-text {
    font-size: 1em;
    margin-bottom: 20px;
    color: var(--text-on-dark);
}

.page-resources__card-link {
    display: inline-block;
    color: var(--register-login-btn-text); /* Yellow text for links */
    text-decoration: none;
    font-weight: bold;
    border-bottom: 2px solid var(--register-login-btn-text);
    padding-bottom: 5px;
    transition: color 0.3s ease, border-color 0.3s ease;
}

.page-resources__card-link:hover {
    color: var(--secondary-color);
    border-color: var(--secondary-color);
}

/* Benefits Grid */
.page-resources__benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.page-resources__benefit-item {
    background-color: var(--card-bg-dark-mode);
    border-radius: 10px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    color: var(--text-on-dark);
    border: 1px solid var(--border-color);
}

.page-resources__benefit-icon {
    width: 200px; /* Changed from 120px to meet min 200px requirement */
    height: 200px; /* Changed from 120px to meet min 200px requirement */
    object-fit: contain;
    margin-bottom: 20px;
    margin-left: auto; /* Center the larger icon */
    margin-right: auto;
}

.page-resources__benefit-title {
    font-size: 1.4em;
    margin-bottom: 10px;
    color: var(--text-on-dark);
}

.page-resources__benefit-text {
    font-size: 0.95em;
    color: var(--text-on-dark);
}

/* Steps Grid */
.page-resources__steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.page-resources__step-item {
    background-color: var(--card-bg-dark-mode);
    border-radius: 10px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    color: var(--text-on-dark);
    border: 1px solid var(--border-color);
}

.page-resources__step-image {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 20px;
}

.page-resources__step-title {
    font-size: 1.5em;
    margin-bottom: 15px;
    color: var(--text-on-dark);
}

.page-resources__step-text {
    font-size: 1em;
    color: var(--text-on-dark);
}

.page-resources__step-text a {
    color: var(--register-login-btn-text);
    text-decoration: underline;
}

.page-resources__step-text a:hover {
    color: var(--secondary-color);
}

.page-resources__cta-section {
    margin-top: 60px;
}

/* FAQ Section */
.page-resources__faq-list {
    margin-top: 50px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.page-resources__faq-item {
    background-color: var(--card-bg-dark-mode);
    border-radius: 10px;
    margin-bottom: 15px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    border: 1px solid var(--border-color);
}

.page-resources__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 30px;
    cursor: pointer;
    background-color: rgba(255, 255, 255, 0.05);
    transition: background-color 0.3s ease;
    color: var(--text-on-dark);
}

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

.page-resources__faq-title {
    font-size: 1.2em;
    margin: 0;
    color: var(--text-on-dark);
}

.page-resources__faq-toggle {
    font-size: 1.8em;
    font-weight: bold;
    color: var(--register-login-btn-text); /* Yellow for toggle icon */
    transition: transform 0.3s ease;
}

.page-resources__faq-item.active .page-resources__faq-toggle {
    transform: rotate(45deg); /* Plus to X (minus) */
    color: var(--secondary-color);
}

.page-resources__faq-answer {
    max-height: 0;
    overflow: hidden;
    padding: 0 30px;
    transition: max-height 0.3s ease, padding 0.3s ease;
    text-align: left;
    color: var(--text-on-dark);
}

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

.page-resources__faq-answer p {
    margin: 0;
    color: var(--text-on-dark);
}

.page-resources__faq-answer a {
    color: var(--register-login-btn-text);
    text-decoration: underline;
}

.page-resources__faq-answer a:hover {
    color: var(--secondary-color);
}

/* Final CTA Section */
.page-resources__cta-final {
    background-color: var(--primary-color);
    padding: 80px 20px;
    text-align: center;
    color: var(--text-on-dark);
}

.page-resources__cta-final-title {
    font-size: 2.8em;
    margin-bottom: 20px;
    color: var(--text-on-dark);
}

.page-resources__cta-final-description {
    font-size: 1.2em;
    max-width: 800px;
    margin: 0 auto 40px;
    color: var(--text-on-dark);
}

/* Buttons */
.page-resources__btn-primary,
.page-resources__btn-secondary {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 5px;
    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;
    box-sizing: border-box;
    white-space: normal;
    word-wrap: break-word;
}

.page-resources__btn-primary {
    background-color: var(--register-login-btn-bg); /* #C30808 */
    color: var(--register-login-btn-text); /* #FFFF00 */
    border: 2px solid var(--register-login-btn-bg);
}

.page-resources__btn-primary:hover {
    background-color: #e00a0a; /* Slightly darker red */
    border-color: #e00a0a;
    color: var(--secondary-color); /* White on hover */
}

.page-resources__btn-secondary {
    background-color: transparent;
    color: var(--register-login-btn-text); /* #FFFF00 */
    border: 2px solid var(--register-login-btn-text);
}

.page-resources__btn-secondary:hover {
    background-color: var(--register-login-btn-text); /* Yellow background on hover */
    color: var(--register-login-btn-bg); /* Red text on hover */
}

.page-resources__btn-primary--large,
.page-resources__btn-secondary--large {
    padding: 18px 40px;
    font-size: 1.2em;
    min-width: 280px; /* Ensure button has a decent minimum width */
}

/* Images and Videos Responsive */
.page-resources img {
    max-width: 100%;
    height: auto;
    display: block;
    object-fit: cover; /* Default object-fit for images */
}

.page-resources video {
    max-width: 100%;
    width: 100%;
    height: auto;
    display: block;
}

/* Media Queries for Responsiveness */
@media (max-width: 1024px) {
    .page-resources__hero-title {
        font-size: 3em;
    }
    .page-resources__hero-description {
        font-size: 1.1em;
    }
    .page-resources__section-title {
        font-size: 2em;
    }
    .page-resources__cta-final-title {
        font-size: 2.2em;
    }
}

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

    /* Fixed header offset for mobile */
    .page-resources__hero-section {
      padding-top: var(--header-offset, 120px) !important;
    }

    .page-resources__hero-title {
        font-size: 2.2em;
    }
    .page-resources__hero-description {
        font-size: 1em;
    }
    .page-resources__cta-buttons {
        flex-direction: column;
        gap: 15px;
    }
    .page-resources__btn-primary,
    .page-resources__btn-secondary {
        max-width: 100% !important;
        width: 100% !important;
        padding: 12px 20px;
        font-size: 1em;
        margin: 0 auto; /* Center buttons if they become full width */
    }
    .page-resources__btn-primary--large,
    .page-resources__btn-secondary--large {
        min-width: unset; /* Remove min-width for mobile */
    }

    .page-resources__section {
        padding: 60px 0;
    }
    .page-resources__section-title {
        font-size: 1.8em;
    }
    .page-resources__section-description {
        font-size: 1em;
    }

    .page-resources__resource-grid,
    .page-resources__benefits-grid,
    .page-resources__steps-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .page-resources__card-image,
    .page-resources__step-image {
        height: 160px; /* Adjust height for mobile */
    }

    .page-resources__benefit-icon {
        width: 200px !important;
        height: 200px !important;
    }

    .page-resources__faq-question {
        padding: 15px 20px;
    }
    .page-resources__faq-title {
        font-size: 1.1em;
    }
    .page-resources__faq-answer {
        padding: 0 20px;
    }
    .page-resources__faq-item.active .page-resources__faq-answer {
        padding: 15px 20px;
    }

    .page-resources__cta-final-title {
        font-size: 1.8em;
    }
    .page-resources__cta-final-description {
        font-size: 1em;
    }

    /* Mobile image and video responsive force */
    .page-resources img {
      max-width: 100% !important;
      width: 100% !important;
      height: auto !important;
      display: block !important;
    }

    .page-resources video {
      max-width: 100% !important;
      width: 100% !important;
      height: auto !important;
      display: block !important;
    }

    .page-resources__section,
    .page-resources__resource-card,
    .page-resources__benefit-item,
    .page-resources__step-item,
    .page-resources__faq-item,
    .page-resources__cta-final,
    .page-resources__hero-video-wrapper {
      max-width: 100% !important;
      width: 100% !important;
      box-sizing: border-box !important;
      overflow: hidden !important;
    }

    /* Specific padding for sections that might not have it */
    .page-resources__section:not(.page-resources__hero-section) .page-resources__container {
        padding-left: 15px;
        padding-right: 15px;
    }
}