/* style/resources.css */
:root {
    --primary-color: #003366;
    --secondary-color: #FFCC00;
    --text-light: #ffffff;
    --text-dark: #333333;
    --dark-section-bg: #003366;
    --light-section-bg: #ffffff;
    --card-bg-dark-mode: rgba(255, 255, 255, 0.1);
    --card-bg-light-mode: #ffffff;
    --border-light: #e0e0e0;
}

.page-resources {
    color: var(--text-light);
    font-family: Arial, sans-serif;
    line-height: 1.6;
    padding-top: var(--header-offset, 120px);
}

.page-resources__section {
    padding: 60px 20px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.page-resources__section--dark {
    background-color: var(--dark-section-bg);
    color: var(--text-light);
}

.page-resources__section--dark .page-resources__heading,
.page-resources__section--dark .page-resources__description,
.page-resources__section--dark .page-resources__sub-heading,
.page-resources__section--dark .page-resources__card-title a,
.page-resources__section--dark .page-resources__card-text,
.page-resources__section--dark .page-resources__feature-title,
.page-resources__section--dark .page-resources__feature-text,
.page-resources__section--dark .page-resources__faq-question h3,
.page-resources__section--dark .page-resources__faq-answer p {
    color: var(--text-light);
}

.page-resources__section--dark .page-resources__card {
    background-color: var(--card-bg-dark-mode);
    color: var(--text-light);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.page-resources__section--dark .page-resources__card-link {
    color: var(--secondary-color);
}

.page-resources__section--dark .page-resources__btn-secondary {
    background: var(--text-light);
    color: var(--primary-color);
    border: 2px solid var(--text-light);
}

.page-resources__container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

.page-resources__heading {
    font-size: 2.8em;
    margin-bottom: 20px;
    color: var(--primary-color);
    font-weight: bold;
}

.page-resources__section--dark .page-resources__heading {
    color: var(--secondary-color);
}

.page-resources__description {
    font-size: 1.1em;
    margin-bottom: 40px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    color: var(--text-dark);
}

.page-resources__section--dark .page-resources__description {
    color: var(--text-light);
}

.page-resources__hero-section {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 600px;
    padding: 60px 20px;
    padding-top: 0;
    overflow: hidden;
    color: var(--text-light);
}

.page-resources__hero-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -1;
    filter: brightness(0.6);
}

.page-resources__hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
    text-align: center;
}

.page-resources__hero-title {
    font-size: 3.5em;
    margin-bottom: 15px;
    color: var(--text-light);
    line-height: 1.2;
}

.page-resources__hero-description {
    font-size: 1.3em;
    margin-bottom: 30px;
    color: var(--text-light);
}

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

.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;
    max-width: 100%;
    box-sizing: border-box;
    white-space: normal;
    word-wrap: break-word;
}

.page-resources__btn-primary {
    background-color: var(--secondary-color);
    color: var(--primary-color);
    border: 2px solid var(--secondary-color);
}

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

.page-resources__btn-secondary {
    background-color: transparent;
    color: var(--secondary-color);
    border: 2px solid var(--secondary-color);
}

.page-resources__btn-secondary:hover {
    background-color: var(--secondary-color);
    color: var(--primary-color);
}

.page-resources__content-wrapper {
    display: flex;
    align-items: center;
    gap: 40px;
    text-align: left;
    margin-top: 40px;
}

.page-resources__content-wrapper:nth-child(even) {
    flex-direction: row-reverse;
}

.page-resources__text-block {
    flex: 1;
    min-width: 0;
}

.page-resources__text-block p {
    margin-bottom: 20px;
    color: var(--text-light);
}

.page-resources__section--dark .page-resources__text-block p {
    color: var(--text-light);
}

.page-resources__section:not(.page-resources__section--dark) .page-resources__text-block p {
    color: var(--text-dark);
}

.page-resources__image {
    flex: 1;
    max-width: 50%;
    height: auto;
    border-radius: 8px;
    object-fit: cover;
}

.page-resources__image--centered {
    display: block;
    margin: 40px auto 0 auto;
    max-width: 800px;
}

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

.page-resources__card {
    background-color: var(--card-bg-light-mode);
    color: var(--text-dark);
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    text-align: left;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 250px;
}

.page-resources__section--dark .page-resources__card {
    background-color: var(--card-bg-dark-mode);
    color: var(--text-light);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-resources__card-title {
    font-size: 1.6em;
    margin-bottom: 15px;
    color: var(--primary-color);
}

.page-resources__section--dark .page-resources__card-title {
    color: var(--secondary-color);
}

.page-resources__card-title a {
    text-decoration: none;
    color: inherit;
    transition: color 0.3s ease;
}

.page-resources__card-title a:hover {
    color: var(--secondary-color);
}

.page-resources__section--dark .page-resources__card-title a:hover {
    color: var(--text-light);
}

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

.page-resources__card-link {
    display: inline-block;
    color: var(--primary-color);
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s ease;
}

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

.page-resources__section--dark .page-resources__card-link {
    color: var(--secondary-color);
}

.page-resources__section--dark .page-resources__card-link:hover {
    color: var(--text-light);
}

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

.page-resources__feature-card {
    background-color: var(--card-bg-dark-mode);
    color: var(--text-light);
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    text-align: left;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 250px;
}

.page-resources__feature-title {
    font-size: 1.6em;
    margin-bottom: 15px;
    color: var(--secondary-color);
}

.page-resources__feature-text {
    font-size: 1em;
    margin-bottom: 20px;
    flex-grow: 1;
}

.page-resources__video-section {
    background-color: var(--dark-section-bg);
    color: var(--text-light);
    padding: 80px 20px;
    padding-top: var(--header-offset, 120px);
}

.page-resources__video-wrapper {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    max-width: 100%;
    background: #000;
    margin: 0 auto;
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
}

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

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

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

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

.page-resources__section--dark .page-resources__faq-item {
    background-color: var(--card-bg-dark-mode);
    color: var(--text-light);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.page-resources__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    cursor: pointer;
    font-size: 1.2em;
    font-weight: bold;
    color: var(--primary-color);
    transition: background-color 0.3s ease;
}

.page-resources__section--dark .page-resources__faq-question {
    color: var(--secondary-color);
}

.page-resources__faq-question:hover {
    background-color: rgba(0, 51, 102, 0.05);
}

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

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

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

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

.page-resources__section--dark .page-resources__faq-answer {
    color: var(--text-light);
}

.page-resources__faq-item.active .page-resources__faq-answer {
    max-height: 1000px !important;
    padding: 15px 20px;
}

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

.page-resources__cta-section {
    background-color: var(--dark-section-bg);
    color: var(--text-light);
    padding: 80px 20px;
    position: relative;
    overflow: hidden;
}

.page-resources__cta-section .page-resources__heading {
    color: var(--secondary-color);
}

.page-resources__cta-section .page-resources__description {
    color: var(--text-light);
}

.page-resources__cta-section .page-resources__image {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
    filter: brightness(0.4);
}

.page-resources__cta-section .page-resources__container {
    position: relative;
    z-index: 1;
}

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

@media (max-width: 1024px) {
    .page-resources__hero-title {
        font-size: 3em;
    }
    .page-resources__heading {
        font-size: 2.2em;
    }
    .page-resources__image {
        max-width: 45%;
    }
    .page-resources__content-wrapper {
        flex-direction: column;
    }
    .page-resources__content-wrapper:nth-child(even) {
        flex-direction: column;
    }
    .page-resources__image {
        max-width: 100%;
        margin-top: 30px;
    }
}

@media (max-width: 768px) {
    .page-resources {
        font-size: 16px;
        line-height: 1.6;
        padding-top: var(--header-offset, 120px) !important;
    }

    .page-resources__hero-section {
        height: 500px;
        padding: 40px 15px;
    }

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

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

    .page-resources__hero-cta-group {
        flex-direction: column;
        gap: 15px;
    }

    .page-resources__btn-primary,
    .page-resources__btn-secondary {
        width: 100% !important;
        max-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-group {
        flex-direction: column;
    }

    .page-resources__section {
        padding: 40px 15px;
    }

    .page-resources__heading {
        font-size: 1.8em;
    }

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

    .page-resources__content-wrapper {
        flex-direction: column;
        gap: 20px;
    }
    .page-resources__content-wrapper:nth-child(even) {
        flex-direction: column;
    }

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

    .page-resources__image--centered {
        max-width: 100% !important;
        width: 100% !important;
    }

    .page-resources__card-grid,
    .page-resources__feature-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .page-resources__card,
    .page-resources__feature-card {
        padding: 20px;
        min-height: unset;
    }

    .page-resources__card-title,
    .page-resources__feature-title {
        font-size: 1.4em;
    }

    .page-resources__video-section {
        padding: 40px 15px;
        padding-top: var(--header-offset, 120px) !important;
    }

    .page-resources__video-wrapper {
        margin: 0;
        border-radius: 8px;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        overflow: hidden !important;
    }

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

    .page-resources__faq-list {
        margin-top: 20px;
    }

    .page-resources__faq-question {
        font-size: 1.1em;
        padding: 15px;
    }

    .page-resources__faq-answer {
        padding: 0 15px;
    }

    .page-resources__faq-item.active .page-resources__faq-answer {
        padding: 15px;
    }
    
    .page-resources__cta-section .page-resources__cta-group {
        flex-direction: column;
    }
    
    .page-resources__section,
    .page-resources__card,
    .page-resources__container,
    .page-resources__content-wrapper,
    .page-resources__text-block,
    .page-resources__image-block,
    .page-resources__video-wrapper,
    .page-resources__faq-item,
    .page-resources__cta-section .page-resources__cta-group {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
    }
    .page-resources__section {
        padding-left: 15px !important;
        padding-right: 15px !important;
    }
}

@media (max-width: 480px) {
    .page-resources__hero-title {
        font-size: 1.8em;
    }
    .page-resources__hero-description {
        font-size: 1em;
    }
    .page-resources__heading {
        font-size: 1.6em;
    }
    .page-resources__card-title,
    .page-resources__feature-title {
        font-size: 1.2em;
    }
    .page-resources__faq-question {
        font-size: 1em;
    }
}