/* style/resources.css */

/* --- General Styles --- */
.page-resources {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: #f0f0f0; /* Light text for dark body background */
    background-color: transparent; /* Use transparent to inherit shared body background */
}

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

.page-resources__section-title {
    font-size: 36px;
    font-weight: 700;
    color: #FFD700; /* Gold for main titles */
    text-align: center;
    margin-bottom: 20px;
    padding-top: 40px;
}

.page-resources__section-description {
    font-size: 18px;
    color: #e0e0e0;
    text-align: center;
    margin-bottom: 40px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* --- Hero Section --- */
.page-resources__hero-section {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 500px;
    padding: 80px 0;
    background: linear-gradient(135deg, #8B0000, #FFD700);
    overflow: hidden;
    color: #ffffff;
    text-align: center;
    box-sizing: border-box;
}

.page-resources__hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    padding: 20px;
}

.page-resources__hero-title {
    font-size: 48px;
    font-weight: 800;
    margin-bottom: 20px;
    line-height: 1.2;
    color: #ffffff;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.page-resources__hero-description {
    font-size: 20px;
    margin-bottom: 30px;
    line-height: 1.5;
    color: #f0f0f0;
}

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

.page-resources__btn-primary,
.page-resources__btn-secondary,
.page-resources__btn-link {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 8px;
    font-size: 18px;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    text-align: center;
    max-width: 100%;
    box-sizing: border-box;
    white-space: normal;
    word-wrap: break-word;
}

.page-resources__btn-primary {
    background: #FFD700;
    color: #8B0000;
    border: 2px solid #FFD700;
    box-shadow: 0 4px 15px rgba(255, 215, 0, 0.4);
}

.page-resources__btn-primary:hover {
    background: #e6c200;
    border-color: #e6c200;
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(255, 215, 0, 0.6);
}

.page-resources__btn-secondary {
    background: transparent;
    color: #FFD700;
    border: 2px solid #FFD700;
    box-shadow: 0 4px 15px rgba(255, 215, 0, 0.2);
}

.page-resources__btn-secondary:hover {
    background: #FFD700;
    color: #8B0000;
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(255, 215, 0, 0.4);
}

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

.page-resources__hero-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.3;
    display: block;
}

/* --- Overview Section --- */
.page-resources__overview-section {
    padding: 80px 0;
    background-color: var(--dark-bg-1);
    color: #f0f0f0;
}

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

.page-resources__resource-card {
    background-color: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 215, 0, 0.3);
    border-radius: 12px;
    padding: 25px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
}

.page-resources__resource-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 30px rgba(255, 215, 0, 0.2);
}

.page-resources__resource-card-image {
    width: 100%;
    height: 200px;
    overflow: hidden;
    border-radius: 8px;
    margin-bottom: 20px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}

.page-resources__resource-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.page-resources__resource-card-title {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 15px;
    color: #FFD700;
}

.page-resources__resource-card-title a {
    color: #FFD700;
    text-decoration: none;
    transition: color 0.3s ease;
}

.page-resources__resource-card-title a:hover {
    color: #ffffff;
}

.page-resources__resource-card-text {
    font-size: 16px;
    color: #cccccc;
    margin-bottom: 20px;
    flex-grow: 1;
}

.page-resources__btn-link {
    background: #8B0000;
    color: #ffffff;
    border: 2px solid #8B0000;
    padding: 10px 20px;
    border-radius: 5px;
    font-size: 16px;
    font-weight: 600;
}

.page-resources__btn-link:hover {
    background: #a30000;
    border-color: #a30000;
    color: #ffffff;
}

/* --- FAQ Section --- */
.page-resources__faq-section {
    padding: 80px 0;
    background-color: var(--dark-bg-2);
    color: #f0f0f0;
}

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

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

.page-resources__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 25px;
    background: rgba(255, 255, 255, 0.05);
    border-bottom: 1px solid rgba(255, 215, 0, 0.1);
    cursor: pointer;
    user-select: none;
    transition: background-color 0.3s ease, border-color 0.3s ease;
    position: relative;
}

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

.page-resources__faq-question h3 {
    margin: 0;
    padding: 0;
    flex: 1;
    font-size: 18px;
    font-weight: 600;
    line-height: 1.5;
    color: #FFD700;
    pointer-events: none;
}

.page-resources__faq-toggle {
    font-size: 28px;
    font-weight: bold;
    line-height: 1;
    color: #FFD700;
    transition: transform 0.3s ease, color 0.3s ease;
    flex-shrink: 0;
    margin-left: 15px;
    pointer-events: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
}

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

.page-resources__faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), padding 0.4s ease, opacity 0.4s ease;
    padding: 0 25px;
    opacity: 0;
    color: #cccccc;
}

.page-resources__faq-item.active .page-resources__faq-answer {
    max-height: 2000px !important;
    padding: 20px 25px !important;
    opacity: 1;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 0 0 8px 8px;
}

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

.page-resources__faq-answer a {
    color: #FFD700;
    text-decoration: underline;
}

.page-resources__faq-answer a:hover {
    color: #ffffff;
}

/* --- Quick Links Section --- */
.page-resources__quick-links-section {
    padding: 80px 0;
    background-color: var(--dark-bg-1);
    color: #f0f0f0;
}

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

.page-resources__quick-link-card {
    display: block;
    background-color: rgba(255, 215, 0, 0.1);
    border: 1px solid #FFD700;
    border-radius: 12px;
    padding: 25px;
    text-align: center;
    text-decoration: none;
    color: #ffffff;
    transition: transform 0.3s ease, box-shadow 0.3s ease, background-color 0.3s ease;
}

.page-resources__quick-link-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 30px rgba(255, 215, 0, 0.3);
    background-color: rgba(255, 215, 0, 0.2);
}

.page-resources__quick-link-title {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 10px;
    color: #FFD700;
}

.page-resources__quick-link-card p {
    font-size: 16px;
    color: #cccccc;
    margin: 0;
}


/* --- Responsive Design --- */
@media (max-width: 1024px) {
    .page-resources__hero-title {
        font-size: 40px;
    }

    .page-resources__hero-description {
        font-size: 18px;
    }

    .page-resources__section-title {
        font-size: 30px;
    }

    .page-resources__section-description {
        font-size: 16px;
    }

    .page-resources__resource-card-title {
        font-size: 22px;
    }
}

@media (max-width: 768px) {
    /* General Mobile Adjustments */
    .page-resources__container {
        padding: 0 15px;
    }

    .page-resources__hero-section {
        min-height: 400px;
        padding-top: var(--header-offset, 120px) !important;
        padding-bottom: 60px;
    }

    .page-resources__hero-title {
        font-size: 32px;
    }

    .page-resources__hero-description {
        font-size: 16px;
    }

    .page-resources__hero-cta {
        flex-direction: column;
        gap: 15px;
        padding: 0 15px;
        max-width: 100%;
        width: 100%;
        box-sizing: border-box;
    }

    .page-resources__btn-primary,
    .page-resources__btn-secondary {
        padding: 12px 20px;
        font-size: 16px;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
    }

    .page-resources__overview-section,
    .page-resources__faq-section,
    .page-resources__quick-links-section {
        padding: 60px 0;
    }

    .page-resources__section-title {
        font-size: 26px;
        padding-top: 20px;
    }

    .page-resources__section-description {
        font-size: 15px;
        margin-bottom: 30px;
    }

    .page-resources__resource-cards {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .page-resources__resource-card-image {
        height: 180px;
    }

    .page-resources__resource-card-title {
        font-size: 20px;
    }

    .page-resources__resource-card-text {
        font-size: 15px;
    }

    /* FAQ Mobile */
    .page-resources__faq-question {
        padding: 15px 20px;
    }

    .page-resources__faq-question h3 {
        font-size: 16px;
    }

    .page-resources__faq-toggle {
        font-size: 24px;
        width: 28px;
        height: 28px;
    }

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

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

    /* Quick Links Mobile */
    .page-resources__links-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .page-resources__quick-link-card {
        padding: 20px;
    }

    .page-resources__quick-link-title {
        font-size: 20px;
    }

    /* Image responsive force */
    .page-resources img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
    }

    .page-resources__hero-section,
    .page-resources__overview-section,
    .page-resources__faq-section,
    .page-resources__quick-links-section,
    .page-resources__resource-card,
    .page-resources__quick-link-card {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }
}