/* style/resources.css */
:root {
    --primary-color: #017439;
    --secondary-color: #FFFFFF;
    --dark-background: #1a1a1a;
    --light-text: #ffffff;
    --dark-text: #333333;
    --register-login-button-bg: #C30808;
    --register-login-button-text: #FFFF00;
}

.page-resources {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: var(--light-text); /* Default text color for dark body background */
    background-color: var(--dark-background);
}

.page-resources__hero-section {
    position: relative;
    width: 100%;
    height: 100vh; /* Full viewport height */
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding-top: var(--header-offset, 120px); /* Ensure content is not hidden by header */
}

.page-resources__hero-video-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    background-color: #000;
}

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

.page-resources__hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
}

.page-resources__hero-content {
    max-width: 900px;
    padding: 20px;
    color: var(--light-text);
    z-index: 3;
}

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

.page-resources__hero-description {
    font-size: 1.3em;
    margin-bottom: 30px;
    opacity: 0.9;
}

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

.page-resources__btn-primary,
.page-resources__btn-secondary {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
    white-space: normal; /* Allow text wrapping */
    word-wrap: break-word; /* Allow text breaking */
    max-width: 100%;
    box-sizing: border-box;
}

.page-resources__btn-primary {
    background-color: var(--register-login-button-bg);
    color: var(--register-login-button-text);
    border: 2px solid var(--register-login-button-bg);
}

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

.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__container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
    box-sizing: border-box;
}

.page-resources__section-title {
    font-size: 2.5em;
    color: var(--secondary-color);
    text-align: center;
    margin-bottom: 20px;
    padding-top: 20px;
}

.page-resources__section-description {
    font-size: 1.1em;
    color: var(--light-text);
    text-align: center;
    margin-bottom: 40px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.page-resources__light-bg {
    background-color: var(--secondary-color);
    color: var(--dark-text);
}

.page-resources__light-bg .page-resources__section-title,
.page-resources__light-bg .page-resources__section-description,
.page-resources__light-bg .page-resources__card-title,
.page-resources__light-bg .page-resources__text-block h3 {
    color: var(--dark-text);
}

.page-resources__dark-bg {
    background-color: var(--primary-color);
    color: var(--light-text);
}

.page-resources__introduction-section,
.page-resources__rules-section,
.page-resources__strategy-section,
.page-resources__advantages-section,
.page-resources__faq-section,
.page-resources__cta-section {
    padding: 80px 0;
}

.page-resources__grid-two-columns {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}

.page-resources__grid-two-columns--reversed {
    grid-template-areas: "image text";
}

.page-resources__grid-two-columns--reversed .page-resources__image-wrapper {
    grid-area: image;
}

.page-resources__grid-two-columns--reversed .page-resources__text-block {
    grid-area: text;
}

.page-resources__image-wrapper {
    text-align: center;
}

.page-resources__image {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    display: block;
    margin: 0 auto;
}

.page-resources__text-block p {
    margin-bottom: 15px;
    font-size: 1.05em;
}

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

.page-resources__rule-card,
.page-resources__advantage-card {
    background-color: rgba(255, 255, 255, 0.1);
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
    color: var(--light-text);
}

.page-resources__light-bg .page-resources__rule-card,
.page-resources__light-bg .page-resources__advantage-card {
    background-color: var(--dark-background);
    color: var(--light-text);
}

.page-resources__rule-card:hover,
.page-resources__advantage-card:hover {
    transform: translateY(-5px);
}

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

.page-resources__light-bg .page-resources__card-title {
    color: var(--secondary-color);
}

.page-resources__advantage-icon {
    width: 250px; /* Large image, not icon */
    height: 167px; /* Maintain aspect ratio for 600x400 */
    margin-bottom: 20px;
    border-radius: 5px;
}

.page-resources__strategy-list {
    list-style: none;
    padding: 0;
}

.page-resources__strategy-list li {
    margin-bottom: 30px;
}

.page-resources__strategy-list h3 {
    font-size: 1.3em;
    color: var(--dark-text);
    margin-bottom: 10px;
}

.page-resources__strategy-list p {
    color: var(--dark-text);
}

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

.page-resources__faq-item {
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
    color: var(--light-text);
}

.page-resources__light-bg .page-resources__faq-item {
    background-color: var(--dark-background);
    color: var(--light-text);
}

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

.page-resources__light-bg .page-resources__faq-question {
    background-color: rgba(0, 0, 0, 0.2);
}

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

.page-resources__light-bg .page-resources__faq-question:hover {
    background-color: rgba(0, 0, 0, 0.3);
}

.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); /* Change + to X or - */
}

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

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

.page-resources__faq-answer p {
    margin-bottom: 0;
    font-size: 1.05em;
}

.page-resources__cta-section {
    text-align: center;
    padding: 100px 0;
    background-color: var(--primary-color);
}

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

/* Responsive adjustments */
@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__section-description {
        font-size: 1em;
    }
    .page-resources__advantage-icon {
        width: 200px;
        height: auto;
    }
}

@media (max-width: 768px) {
    .page-resources__hero-section {
        height: auto;
        min-height: 600px;
        padding-top: var(--header-offset, 120px) !important;
    }
    .page-resources__hero-title {
        font-size: 2.2em;
    }
    .page-resources__hero-description {
        font-size: 1em;
    }
    .page-resources__hero-buttons {
        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;
        padding: 12px 20px;
        font-size: 1em;
        white-space: normal !important;
        word-wrap: break-word !important;
    }

    .page-resources__container {
        padding: 20px 15px;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

    .page-resources__grid-two-columns {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    .page-resources__grid-two-columns--reversed {
        grid-template-areas: unset;
    }
    .page-resources__image-wrapper {
        order: -1; /* Image first on mobile for reversed grid */
    }

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

    /* Ensure all images are responsive */
    .page-resources img {
        max-width: 100% !important;
        height: auto !important;
        display: block !important;
        box-sizing: border-box !important;
    }
    /* Ensure video is responsive */
    .page-resources video,
    .page-resources__hero-video {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
        box-sizing: border-box !important;
    }
    /* Ensure video container is responsive */
    .page-resources__hero-video-wrapper {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        overflow: hidden !important;
    }
    .page-resources__section,
    .page-resources__card,
    .page-resources__container,
    .page-resources__cta-buttons {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        overflow: hidden !important;
    }
    .page-resources__cta-buttons {
      flex-direction: column;
    }
}

@media (max-width: 480px) {
    .page-resources__hero-title {
        font-size: 1.8em;
    }
    .page-resources__hero-description {
        font-size: 0.9em;
    }
    .page-resources__section-title {
        font-size: 1.8em;
    }
    .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;
    }
}