/* style/resources.css */

:root {
    --primary-color: #017439;
    --secondary-color: #FFFFFF;
    --register-login-bg: #C30808;
    --register-login-text: #FFFF00;
    --text-dark: #333333;
    --text-light: #ffffff;
    --background-light: #FFFFFF;
    --border-light: #e0e0e0;
}

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

.page-resources__hero-section {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 80px 20px;
    text-align: center;
    color: var(--text-light);
    overflow: hidden;
    padding-top: var(--header-offset, 120px); /* Ensure spacing below header */
}

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

.page-resources__hero-content {
    position: relative;
    z-index: 1;
    max-width: 900px;
    margin: 0 auto;
    background: rgba(0, 0, 0, 0.5); /* Overlay for readability */
    padding: 30px;
    border-radius: 10px;
}

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

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

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

.page-resources__btn-primary,
.page-resources__btn-secondary {
    display: inline-block;
    padding: 12px 25px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s ease, color 0.3s ease;
    box-sizing: border-box;
    white-space: normal;
    word-wrap: break-word;
    max-width: 100%;
}

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

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

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

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

.page-resources__section {
    padding: 60px 20px;
}

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

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

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

.page-resources__section-title {
    font-size: 2.2em;
    text-align: center;
    margin-bottom: 20px;
    color: inherit;
}

.page-resources__section-intro {
    font-size: 1.1em;
    text-align: center;
    max-width: 800px;
    margin: 0 auto 40px;
    color: inherit;
}

.page-resources__advantages-grid,
.page-resources__guides-grid,
.page-resources__promotions-grid,
.page-resources__news-grid,
.page-resources__responsible-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.page-resources__advantage-item,
.page-resources__guide-item,
.page-resources__promotion-card,
.page-resources__news-card,
.page-resources__responsible-item {
    background-color: var(--secondary-color);
    color: var(--text-dark);
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.page-resources__dark-bg .page-resources__advantage-item,
.page-resources__dark-bg .page-resources__guide-item,
.page-resources__dark-bg .page-resources__promotion-card,
.page-resources__dark-bg .page-resources__news-card,
.page-resources__dark-bg .page-resources__responsible-item {
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--text-light);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-resources__advantage-item:hover,
.page-resources__guide-item:hover,
.page-resources__promotion-card:hover,
.page-resources__news-card:hover,
.page-resources__responsible-item:hover {
    transform: translateY(-5px);
}

.page-resources__advantage-title,
.page-resources__guide-title,
.page-resources__card-title,
.page-resources__responsible-title {
    font-size: 1.4em;
    margin-bottom: 15px;
    color: inherit;
}

.page-resources__advantage-text,
.page-resources__guide-text,
.page-resources__card-text,
.page-resources__responsible-text {
    font-size: 1em;
    margin-bottom: 20px;
    flex-grow: 1;
    color: inherit;
}

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

.page-resources__dark-bg .page-resources__text-link {
    color: var(--secondary-color);
}

.page-resources__text-link:hover {
    text-decoration: underline;
}

.page-resources__section-image {
    display: block;
    max-width: 100%;
    height: auto;
    margin: 40px auto;
    border-radius: 8px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

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

.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(--text-light);
}

.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(0, 0, 0, 0.2);
    color: var(--text-light);
    list-style: none;
}

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

.page-resources__faq-qtext {
    flex-grow: 1;
}

.page-resources__faq-toggle {
    font-size: 1.5em;
    line-height: 1;
    margin-left: 15px;
}

.page-resources__faq-answer {
    padding: 0 25px 20px;
    font-size: 1.1em;
    color: var(--text-light);
}

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

.page-resources__final-cta {
    text-align: center;
}

/* Responsive styles */
@media (max-width: 1024px) {
    .page-resources__hero-title {
        font-size: 2.5em;
    }
    .page-resources__section-title {
        font-size: 2em;
    }
}

@media (max-width: 768px) {
    .page-resources__hero-section {
        padding: 60px 15px;
        padding-top: var(--header-offset, 120px) !important;
    }
    .page-resources__hero-title {
        font-size: 2em;
    }
    .page-resources__hero-description {
        font-size: 1em;
    }
    .page-resources__section {
        padding: 40px 15px;
    }
    .page-resources__section-title {
        font-size: 1.8em;
    }
    .page-resources__section-intro {
        font-size: 0.95em;
    }
    .page-resources__advantages-grid,
    .page-resources__guides-grid,
    .page-resources__promotions-grid,
    .page-resources__news-grid,
    .page-resources__responsible-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    .page-resources__advantage-item,
    .page-resources__guide-item,
    .page-resources__promotion-card,
    .page-resources__news-card,
    .page-resources__responsible-item {
        padding: 25px;
    }
    .page-resources__btn-primary,
    .page-resources__btn-secondary {
        width: 100% !important;
        max-width: 100% !important;
        padding: 10px 20px;
        font-size: 0.9em;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
    }
    .page-resources__hero-cta-buttons,
    .page-resources__cta-buttons--center {
        flex-direction: column;
        gap: 10px;
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
        padding: 0 15px;
        overflow: hidden !important;
    }
    .page-resources img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
        box-sizing: border-box !important;
    }
    .page-resources__container,
    .page-resources__hero-content,
    .page-resources__faq-list {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
    }
    .page-resources__faq-question {
        font-size: 1.1em;
        padding: 15px 20px;
    }
    .page-resources__faq-answer {
        font-size: 1em;
        padding: 0 20px 15px;
    }
}

@media (max-width: 480px) {
    .page-resources__hero-title {
        font-size: 1.8em;
    }
    .page-resources__section-title {
        font-size: 1.6em;
    }
    .page-resources__hero-section {
        padding: 40px 10px;
        padding-top: var(--header-offset, 120px) !important;
    }
    .page-resources__section {
        padding: 30px 10px;
    }
    .page-resources__hero-content {
        padding: 20px;
    }
    .page-resources__container {
        padding: 0 10px;
    }
    .page-resources__btn-primary,
    .page-resources__btn-secondary {
        font-size: 0.85em;
        padding: 10px 15px;
    }
}