/* style/resources.css */

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

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

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

/* Hero Section */
.page-resources__hero-section {
    position: relative;
    padding: 80px 0;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
    padding-top: var(--header-offset, 120px);
    background: var(--primary-color);
    color: var(--text-light);
}

.page-resources__hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(1, 116, 57, 0.7), rgba(1, 116, 57, 0.9));
    z-index: 1;
}

.page-resources__hero-section .page-resources__container {
    position: relative;
    z-index: 2;
}

.page-resources__hero-title {
    font-size: 3.2em;
    margin-bottom: 20px;
    color: var(--text-light);
    font-weight: bold;
}

.page-resources__hero-description {
    font-size: 1.2em;
    margin-bottom: 40px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

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

.page-resources__btn-primary,
.page-resources__btn-secondary,
.page-resources__btn-link {
    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;
    word-wrap: break-word;
    box-sizing: border-box;
    max-width: 100%;
}

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

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

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

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

.page-resources__btn-link {
    background-color: transparent;
    color: var(--primary-color);
    border: 1px solid var(--primary-color);
    padding: 10px 20px;
    font-size: 0.9em;
}

.page-resources__btn-link:hover {
    background-color: var(--primary-color);
    color: var(--text-light);
}

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

.page-resources__hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.5);
    display: block;
}

/* Content Sections */
.page-resources__content-section {
    padding: 60px 0;
}

.page-resources__section-title {
    font-size: 2.5em;
    color: var(--primary-color);
    text-align: center;
    margin-bottom: 40px;
    font-weight: bold;
}

.page-resources__text-block {
    font-size: 1.1em;
    margin-bottom: 20px;
    color: var(--text-dark);
}

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

.page-resources__dark-bg .page-resources__section-title {
    color: var(--text-light);
}

.page-resources__dark-bg .page-resources__text-block {
    color: var(--text-light);
}

.page-resources__dark-bg .page-resources__list-title {
    color: var(--text-light);
}

.page-resources__dark-bg .page-resources__btn-primary {
    background-color: var(--register-login-btn-bg);
    border-color: var(--register-login-btn-bg);
    color: var(--register-login-btn-text);
}

.page-resources__dark-bg .page-resources__btn-primary:hover {
    background-color: #a30606;
    border-color: #a30606;
}

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

.page-resources__medium-bg {
    background-color: var(--bg-medium);
    color: var(--text-dark);
}

/* Card Grid */
.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(--bg-light);
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    text-align: center;
    padding-bottom: 20px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    border: 1px solid var(--border-color);
}

.page-resources__card-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    margin-bottom: 20px;
    display: block;
}

.page-resources__card-title {
    font-size: 1.5em;
    color: var(--primary-color);
    margin: 0 20px 15px;
    min-height: 60px; /* Ensure consistent height */
    display: flex;
    align-items: center;
    justify-content: center;
}

.page-resources__card-title a {
    text-decoration: none;
    color: inherit;
}

.page-resources__card-title a:hover {
    text-decoration: underline;
}

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

/* List Styles */
.page-resources__list {
    list-style: none;
    padding: 0;
    margin-top: 40px;
}

.page-resources__list-item {
    background-color: var(--bg-medium);
    border-radius: 8px;
    padding: 25px;
    margin-bottom: 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    color: var(--text-dark);
}

.page-resources__dark-bg .page-resources__list-item {
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--text-light);
}

.page-resources__list-title {
    font-size: 1.8em;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.page-resources__dark-bg .page-resources__list-title {
    color: var(--text-light);
}

.page-resources__list-item p {
    font-size: 1.1em;
    line-height: 1.7;
}

.page-resources__list-item a {
    color: var(--primary-color);
    text-decoration: none;
}

.page-resources__list-item a:hover {
    text-decoration: underline;
}

/* Image Wrapper for content images */
.page-resources__image-wrapper {
    text-align: center;
    margin-top: 40px;
}

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

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

.page-resources__promo-card {
    background-color: var(--bg-light);
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    text-align: center;
    padding-bottom: 20px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    border: 1px solid var(--border-color);
}

.page-resources__promo-image {
    width: 100%;
    height: 180px;
    object-fit: cover;
    margin-bottom: 20px;
    display: block;
}

.page-resources__promo-title {
    font-size: 1.4em;
    color: var(--primary-color);
    margin: 0 20px 10px;
    min-height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.page-resources__promo-title a {
    text-decoration: none;
    color: inherit;
}

.page-resources__promo-title a:hover {
    text-decoration: underline;
}

.page-resources__promo-text {
    font-size: 0.95em;
    color: var(--text-dark);
    padding: 0 20px;
    margin-bottom: 20px;
    flex-grow: 1;
}

/* App Download Section */
.page-resources__app-download {
    display: flex;
    align-items: center;
    gap: 40px;
    margin-top: 40px;
    background-color: var(--bg-medium);
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    flex-wrap: wrap;
    justify-content: center;
}

.page-resources__app-image {
    width: 250px;
    height: 250px;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    display: block;
}

.page-resources__app-info {
    flex: 1;
    min-width: 300px;
    text-align: left;
}

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

.page-resources__app-description {
    font-size: 1.1em;
    color: var(--text-dark);
    margin-bottom: 25px;
}

/* FAQ Section */
.page-resources__faq-section {
    padding: 60px 0;
}

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

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

.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;
    color: var(--text-light);
    background-color: rgba(255, 255, 255, 0.05);
    transition: background-color 0.3s ease;
    list-style: none; /* For details/summary */
}

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

.page-resources__faq-question:hover {
    background-color: rgba(255, 255, 255, 0.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.05em;
    line-height: 1.7;
    color: var(--text-light);
}

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

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

.page-resources__cta-section .page-resources__section-title {
    margin-bottom: 20px;
}

.page-resources__cta-section .page-resources__text-block {
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 40px;
}

/* Responsive Styles */
@media (max-width: 1024px) {
    .page-resources__hero-title {
        font-size: 2.8em;
    }
    .page-resources__section-title {
        font-size: 2em;
    }
    .page-resources__app-download {
        flex-direction: column;
        text-align: center;
    }
    .page-resources__app-info {
        text-align: center;
    }
}

@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;
    }
    .page-resources__hero-title {
        font-size: 2.2em;
    }
    .page-resources__hero-description {
        font-size: 1em;
    }
    .page-resources__section-title {
        font-size: 1.8em;
    }
    .page-resources__text-block {
        font-size: 1em;
    }
    .page-resources__card-grid, .page-resources__promo-grid {
        grid-template-columns: 1fr;
    }
    .page-resources__list-item {
        padding: 20px;
    }
    .page-resources__list-title {
        font-size: 1.5em;
    }
    .page-resources__app-download {
        padding: 20px;
    }
    .page-resources__app-title {
        font-size: 1.8em;
    }
    .page-resources__app-description {
        font-size: 1em;
    }
    .page-resources__faq-question {
        font-size: 1.1em;
        padding: 15px 20px;
    }
    .page-resources__faq-answer {
        font-size: 1em;
        padding: 0 20px 15px;
    }

    /* Mobile image responsiveness */
    .page-resources img {
        max-width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    
    .page-resources__container,
    .page-resources__section,
    .page-resources__card,
    .page-resources__promo-card,
    .page-resources__app-download,
    .page-resources__faq-item {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        overflow: hidden !important;
    }

    /* Mobile button responsiveness */
    .page-resources__cta-buttons {
        flex-direction: column;
        gap: 15px;
    }
    .page-resources__btn-primary,
    .page-resources__btn-secondary,
    .page-resources__btn-link {
        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;
    }
}

@media (max-width: 480px) {
    .page-resources__hero-title {
        font-size: 1.8em;
    }
    .page-resources__section-title {
        font-size: 1.5em;
    }
    .page-resources__card-title {
        font-size: 1.3em;
    }
    .page-resources__app-title {
        font-size: 1.5em;
    }
    .page-resources__faq-question {
        font-size: 1em;
    }
}