/* style/resources.css */

/* --- Base Styles --- */
.page-resources {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: #333333; /* Default text color for light background */
    background-color: #f8f8f8; /* Slightly off-white for main content */
    padding-top: var(--header-offset, 120px); /* Ensures content is below fixed header */
}

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

.page-resources__section-title,
.page-resources__main-title {
    color: #A00000; /* Primary brand color for titles */
    text-align: center;
    margin-bottom: 20px;
    font-weight: bold;
}

.page-resources__main-title {
    font-size: 2.8em;
    margin-top: 40px;
    line-height: 1.2;
}

.page-resources__section-title {
    font-size: 2.2em;
    margin-top: 60px;
    line-height: 1.3;
}

.page-resources__hero-description,
.page-resources__section-description {
    text-align: center;
    font-size: 1.1em;
    margin-bottom: 30px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
    color: #555555;
}

/* --- Hero Section --- */
.page-resources__hero-section {
    background: linear-gradient(135deg, #A00000, #C00000); /* Gradient with primary color */
    color: #ffffff;
    padding: 80px 0;
    text-shadow: 0 1px 3px rgba(0,0,0,0.2);
    border-radius: 0 0 15px 15px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.page-resources__hero-section .page-resources__main-title {
    color: #FFD700; /* Gold for hero title */
    text-shadow: 0 2px 5px rgba(0,0,0,0.4);
}

.page-resources__hero-section .page-resources__hero-description {
    color: #f0f0f0;
}

.page-resources__cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 40px;
    flex-wrap: wrap; /* Allow buttons to wrap on smaller screens */
}

.page-resources__cta-button {
    display: inline-block;
    padding: 15px 35px;
    background: #FFD700; /* Gold for primary CTA */
    color: #A00000; /* Dark red text on gold */
    text-decoration: none;
    border-radius: 8px;
    font-size: 1.1em;
    font-weight: bold;
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
    border: none;
    cursor: pointer;
    white-space: nowrap; /* Prevent text wrapping for single line */
}

.page-resources__cta-button:hover {
    background: #e6c200; /* Darker gold on hover */
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(0,0,0,0.3);
}

.page-resources__cta-button--secondary {
    background: transparent;
    color: #FFD700; /* Gold text for secondary CTA */
    border: 2px solid #FFD700;
}

.page-resources__cta-button--secondary:hover {
    background: rgba(255, 215, 0, 0.1); /* Light gold background on hover */
    color: #ffffff;
    border-color: #ffffff;
}

/* --- General Section Styling --- */
.page-resources__section--alt-bg {
    background-color: #f0f0f0; /* Alternate light background for sections */
    padding: 60px 0;
}

.page-resources__guides-section,
.page-resources__news-section,
.page-resources__promotions-section,
.page-resources__contact-cta-section {
    padding: 60px 0;
}

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

.page-resources__guide-item,
.page-resources__news-item,
.page-resources__promo-item {
    background: #ffffff;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

.page-resources__guide-item:hover,
.page-resources__news-item:hover,
.page-resources__promo-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

.page-resources__guide-image,
.page-resources__news-image,
.page-resources__promo-image {
    width: 100%;
    height: 200px; /* Fixed height for consistency */
    object-fit: cover;
    display: block;
    border-bottom: 1px solid #eee;
    filter: none !important; /* Ensure no filter is used */
}

.page-resources__guide-item-title,
.page-resources__news-item-title,
.page-resources__promo-item-title {
    font-size: 1.4em;
    color: #A00000;
    padding: 15px 20px 10px;
    margin: 0;
    flex-grow: 1; /* Allows title to take available space */
}

.page-resources__guide-item-title a,
.page-resources__news-item-title a,
.page-resources__promo-item-title a {
    text-decoration: none;
    color: inherit;
    transition: color 0.3s ease;
}

.page-resources__guide-item-title a:hover,
.page-resources__news-item-title a:hover,
.page-resources__promo-item-title a:hover {
    color: #FFD700;
}

.page-resources__guide-item-excerpt,
.page-resources__news-item-excerpt,
.page-resources__promo-item-excerpt {
    font-size: 0.95em;
    color: #666666;
    padding: 0 20px 15px;
    margin: 0;
}

.page-resources__read-more {
    display: inline-block;
    padding: 10px 20px;
    margin: 0 20px 20px;
    background: #A00000;
    color: #ffffff;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    align-self: flex-start; /* Aligns to start of flex item */
    transition: background-color 0.3s ease;
}

.page-resources__read-more:hover {
    background: #C00000;
}

.page-resources__cta-promotions {
    text-align: center;
    margin-top: 50px;
}

.page-resources__cta-button--wide {
    padding: 15px 50px;
    font-size: 1.2em;
}

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

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

.page-resources__faq-item {
    margin-bottom: 15px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.page-resources__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 25px;
    background: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    cursor: pointer;
    user-select: none;
    transition: background-color 0.3s ease, border-color 0.3s ease;
    position: relative;
}

.page-resources__faq-question:hover {
    background: #f5f5f5;
    border-color: #d0d0d0;
}

.page-resources__faq-question h3 {
    margin: 0;
    padding: 0;
    flex: 1;
    font-size: 1.15em;
    font-weight: 600;
    line-height: 1.5;
    color: #333333;
    pointer-events: none; /* Prevents h3 from blocking click event */
}

.page-resources__faq-toggle {
    font-size: 28px;
    font-weight: bold;
    line-height: 1;
    color: #A00000; /* Primary color for toggle icon */
    transition: transform 0.3s ease, color 0.3s ease;
    flex-shrink: 0;
    margin-left: 15px;
    pointer-events: none; /* Prevents icon from blocking click event */
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
}

.page-resources__faq-item.active .page-resources__faq-toggle {
    color: #FFD700; /* Secondary color when active */
    transform: rotate(45deg); /* Rotate for 'x' effect, or keep '-' */
}

.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.3s ease;
    padding: 0 25px;
    opacity: 0;
    background: #fff5f5; /* Light background for answer */
    border-top: none;
    border-radius: 0 0 8px 8px;
    color: #555555;
}

.page-resources__faq-item.active .page-resources__faq-answer {
    max-height: 2000px !important; /* Sufficiently large for content */
    padding: 20px 25px !important;
    opacity: 1;
    border: 1px solid #e0e0e0;
    border-top: none;
}

.page-resources__faq-answer p {
    margin: 0;
    padding: 0;
    font-size: 1em;
    line-height: 1.7;
}

/* --- Contact CTA Section --- */
.page-resources__contact-cta-section {
    background: linear-gradient(135deg, #A00000, #C00000);
    color: #ffffff;
    padding: 80px 0;
    text-align: center;
    border-radius: 15px 15px 0 0;
    box-shadow: 0 -5px 15px rgba(0,0,0,0.1);
}

.page-resources__contact-cta-section .page-resources__section-title {
    color: #FFD700;
}

.page-resources__contact-cta-section .page-resources__section-description {
    color: #f0f0f0;
}

/* --- Responsive Design --- */
@media (max-width: 1024px) {
    .page-resources__main-title {
        font-size: 2.4em;
    }
    .page-resources__section-title {
        font-size: 1.8em;
    }
    .page-resources__hero-section {
        padding: 60px 0;
    }
    .page-resources__guides-section,
    .page-resources__news-section,
    .page-resources__promotions-section,
    .page-resources__faq-section,
    .page-resources__contact-cta-section {
        padding: 50px 0;
    }
    .page-resources__guide-list,
    .page-resources__news-list,
    .page-resources__promo-list {
        gap: 20px;
    }
    .page-resources__faq-list {
        max-width: 700px;
    }
}

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

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

    .page-resources__main-title {
        font-size: 2em;
        margin-top: 30px;
    }
    .page-resources__section-title {
        font-size: 1.6em;
        margin-top: 40px;
    }
    .page-resources__hero-description,
    .page-resources__section-description {
        font-size: 1em;
        margin-bottom: 20px;
    }

    .page-resources__cta-buttons {
        flex-direction: column; 
        gap: 15px;
        margin-top: 30px;
        padding: 0 15px;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        overflow: hidden !important;
    }

    .page-resources__cta-button,
    .page-resources__cta-button--wide {
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
        padding: 12px 25px !important;
        font-size: 1em !important;
        white-space: normal !important;
        word-wrap: break-word !important;
    }

    .page-resources__guide-list,
    .page-resources__news-list,
    .page-resources__promo-list {
        grid-template-columns: 1fr; 
        gap: 25px;
        margin-top: 30px;
    }

    .page-resources__guide-image,
    .page-resources__news-image,
    .page-resources__promo-image {
        height: 180px;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        display: block !important;
    }

    .page-resources__guide-item-title,
    .page-resources__news-item-title,
    .page-resources__promo-item-title {
        font-size: 1.2em;
        padding: 12px 15px 8px;
    }

    .page-resources__guide-item-excerpt,
    .page-resources__news-item-excerpt,
    .page-resources__promo-item-excerpt {
        font-size: 0.9em;
        padding: 0 15px 12px;
    }

    .page-resources__read-more {
        padding: 8px 15px;
        margin: 0 15px 15px;
    }

    .page-resources__faq-list {
        max-width: 100%;
        margin: 30px auto 0;
    }
    .page-resources__faq-question {
        padding: 15px 20px;
        flex-wrap: wrap; 
    }
    .page-resources__faq-question h3 {
        font-size: 1em;
        width: calc(100% - 40px);
    }
    .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;
    }
}

.page-resources img {
    max-width: 100%;
    height: auto;
    display: block;
    box-sizing: border-box;
}

.page-resources__guide-item,
.page-resources__news-item,
.page-resources__promo-item {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
}