/* style/resources.css */
.page-resources {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #ffffff; /* Body background is dark (#121212), so use light text */
    background-color: #121212; /* Ensure consistency with shared body background */
}

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

.page-resources__hero-section {
    position: relative;
    padding: 80px 0;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background-color: #017439; /* Brand primary color */
    color: #ffffff;
    padding-top: var(--header-offset, 120px); /* Fixed header offset */
}

.page-resources__hero-content {
    max-width: 800px;
    margin: 0 auto;
    z-index: 1;
}

.page-resources__hero-title {
    font-size: 2.8em;
    margin-bottom: 20px;
    font-weight: bold;
    color: #FFFF00; /* Custom font color for titles */
}

.page-resources__hero-description {
    font-size: 1.1em;
    margin-bottom: 30px;
    color: #f0f0f0;
}

.page-resources__hero-actions {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

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

.page-resources__hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}

.page-resources__section-title {
    font-size: 2.2em;
    text-align: center;
    margin-bottom: 40px;
    font-weight: bold;
    color: #FFFF00; /* Custom font color for titles */
}

.page-resources__paragraph {
    font-size: 1.05em;
    margin-bottom: 20px;
    line-height: 1.7;
}

/* Intro Section */
.page-resources__intro-section {
    padding: 60px 0;
    background-color: #1a1a1a; /* Slightly lighter dark background for contrast */
    color: #ffffff;
}

/* Video Section */
.page-resources__video-container {
    margin-top: 40px;
    margin-bottom: 20px;
    text-align: center;
    max-width: 100%;
    width: 100%;
    box-sizing: border-box;
    overflow: hidden;
}

.page-resources__video-wrapper {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
    height: 0;
    overflow: hidden;
    max-width: 100%;
    width: 100%;
    box-sizing: border-box;
}

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

.page-resources__video-caption {
    margin-top: 15px;
    font-style: italic;
    color: #cccccc;
    font-size: 0.95em;
}

/* Key Elements Section */
.page-resources__key-elements-section {
    padding: 60px 0;
    background-color: #017439;
    color: #ffffff;
}

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

.page-resources__card {
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 30px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    color: #ffffff;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.page-resources__card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.page-resources__card-title {
    font-size: 1.5em;
    margin-bottom: 15px;
    font-weight: bold;
    color: #FFFF00; /* Custom font color for card titles */
}

.page-resources__card-text {
    font-size: 0.95em;
    color: #e0e0e0;
    flex-grow: 1;
    margin-bottom: 20px;
}

.page-resources__card-link {
    display: inline-block;
    margin-top: 15px;
    color: #FFFF00; /* Custom font color for links */
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s ease;
}

.page-resources__card-link:hover {
    color: #ffffff;
    text-decoration: underline;
}

/* Techniques Section */
.page-resources__techniques-section {
    padding: 60px 0;
    background-color: #1a1a1a;
    color: #ffffff;
}

.page-resources__content-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
    align-items: start;
    margin-top: 40px;
}

@media (min-width: 768px) {
    .page-resources__content-grid {
        grid-template-columns: 2fr 1fr;
    }
}

.page-resources__text-block {
    color: #f0f0f0;
}

.page-resources__sub-title {
    font-size: 1.8em;
    margin-top: 30px;
    margin-bottom: 15px;
    font-weight: bold;
    color: #FFFF00; /* Custom font color for sub-titles */
}

.page-resources__content-image {
    width: 100%;
    height: auto;
    border-radius: 8px;
    display: block;
    object-fit: cover;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.page-resources__image-caption {
    margin-top: 10px;
    font-style: italic;
    color: #cccccc;
    text-align: center;
    font-size: 0.9em;
}

.page-resources__cta-block {
    text-align: center;
    margin-top: 50px;
}

/* Risk Management Section */
.page-resources__risk-management-section {
    padding: 60px 0;
    background-color: #017439;
    color: #ffffff;
}

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

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

.page-resources__faq-item {
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.page-resources__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    font-size: 1.1em;
    font-weight: bold;
    cursor: pointer;
    color: #FFFF00; /* Custom font color for FAQ questions */
    background-color: rgba(255, 255, 255, 0.05);
    transition: background-color 0.3s ease;
}

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

.page-resources__faq-toggle {
    font-size: 1.5em;
    line-height: 1;
    transition: transform 0.3s ease;
}

.page-resources__faq-item.active .page-resources__faq-toggle {
    transform: rotate(45deg);
}

.page-resources__faq-answer {
    max-height: 0;
    overflow: hidden;
    padding: 0 25px;
    transition: max-height 0.3s ease, padding 0.3s ease;
    color: #e0e0e0;
}

.page-resources__faq-item.active .page-resources__faq-answer {
    max-height: 1000px !important; /* Sufficient height for content */
    padding: 15px 25px 25px;
}

.page-resources__faq-answer p {
    margin-bottom: 0;
}

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

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

/* Buttons */
.page-resources__btn-primary,
.page-resources__btn-secondary {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
    font-size: 1.05em;
    text-align: center;
    box-sizing: border-box;
}

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

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

.page-resources__btn-secondary {
    background-color: transparent;
    color: #FFFF00; /* Custom Register/Login font color */
    border: 2px solid #FFFF00;
}

.page-resources__btn-secondary:hover {
    background-color: #FFFF00;
    color: #C30808; /* Custom Register/Login color */
}

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

/* Media Queries for Responsiveness */
@media (max-width: 1024px) {
    .page-resources__hero-title {
        font-size: 2.4em;
    }
    .page-resources__section-title {
        font-size: 1.8em;
    }
}

@media (max-width: 768px) {
    .page-resources {
        font-size: 16px;
        line-height: 1.6;
    }
    .page-resources__hero-section {
        padding: 60px 0;
        padding-top: var(--header-offset, 120px) !important; /* Ensure mobile header offset */
    }
    .page-resources__hero-title {
        font-size: 2em;
    }
    .page-resources__hero-description {
        font-size: 1em;
    }
    .page-resources__hero-actions {
        flex-direction: column;
        align-items: center;
    }
    .page-resources__btn-primary,
    .page-resources__btn-secondary {
        width: 100%;
        max-width: 300px; /* Constrain max width for single buttons */
        padding: 12px 20px;
        font-size: 1em;
    }

    .page-resources__section-title {
        font-size: 1.6em;
    }
    .page-resources__cards-grid {
        grid-template-columns: 1fr;
    }
    .page-resources__content-grid {
        grid-template-columns: 1fr;
    }
    .page-resources__sub-title {
        font-size: 1.5em;
    }
    .page-resources__faq-question {
        font-size: 1em;
        padding: 15px 20px;
    }
    .page-resources__faq-answer {
        padding: 0 20px;
    }
    .page-resources__faq-item.active .page-resources__faq-answer {
        padding: 10px 20px 20px;
    }

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

    /* Mobile video responsiveness */
    .page-resources video,
    .page-resources__video {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }

    .page-resources__video-container,
    .page-resources__video-wrapper {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        overflow: hidden !important;
        padding-left: 15px;
        padding-right: 15px;
    }

    /* Mobile 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;
      padding-right: 15px;
    }
    
    .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;
      flex-wrap: wrap !important;
      gap: 10px;
    }
    
    .page-resources__cta-actions {
      display: flex;
      flex-direction: column; 
      align-items: center;
    }

    .page-resources__card,
    .page-resources__section,
    .page-resources__container {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
    }
}