/* style/resources.css */

/* Base styles for the resources page */
.page-resources {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: #333333; /* Dark text on default light body background */
    background-color: #f8f8f8; /* Slightly off-white for sections */
}

.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 40px;
    background: linear-gradient(135deg, #FFD700, #8B0000); /* Gradient using brand colors */
    color: #ffffff; /* White text on dark gradient background */
    text-align: center;
    overflow: hidden;
    padding-top: calc(var(--header-offset, 120px) + 80px); /* Adjust for fixed header */
}

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

.page-resources__main-title {
    font-size: 3.2em;
    margin-bottom: 20px;
    font-weight: bold;
    color: #ffffff;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.page-resources__description {
    font-size: 1.2em;
    margin-bottom: 30px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    color: #f0f0f0;
}

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

.page-resources__cta-button {
    display: inline-block;
    padding: 15px 35px;
    font-size: 1.1em;
    font-weight: bold;
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    border: none;
    cursor: pointer;
}

.page-resources__btn-primary {
    background-color: #FFD700; /* Gold brand color */
    color: #8B0000; /* Red brand color for text, good contrast */
    border: 2px solid #FFD700;
}

.page-resources__btn-primary:hover {
    background-color: #e6c200;
    color: #6a0000;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.page-resources__btn-secondary {
    background-color: #8B0000; /* Red brand color */
    color: #ffffff; /* White text on red, good contrast */
    border: 2px solid #8B0000;
}

.page-resources__btn-secondary:hover {
    background-color: #6a0000;
    color: #f0f0f0;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.page-resources__hero-image-wrapper {
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80%;
    max-width: 1000px;
    z-index: 1;
    opacity: 0.2;
    pointer-events: none;
}

.page-resources__hero-image {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 8px;
    object-fit: cover;
}


/* General Section Styles */
.page-resources__content-section {
    padding: 60px 0;
    background-color: #ffffff; /* White background for content sections */
    border-bottom: 1px solid #eee;
}

.page-resources__content-section:last-of-type {
    border-bottom: none;
}

.page-resources__section-title {
    font-size: 2.5em;
    color: #8B0000; /* Red brand color for section titles */
    text-align: center;
    margin-bottom: 40px;
    font-weight: bold;
}

.page-resources__text-block {
    font-size: 1.1em;
    max-width: 900px;
    margin: 0 auto 40px;
    text-align: center;
    color: #555555;
}

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

.page-resources__feature-item {
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    padding: 30px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid #eee;
}

.page-resources__feature-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.page-resources__feature-icon {
    width: 100%;
    height: auto;
    max-width: 300px; /* Ensure images are not too small */
    min-width: 200px; /* Min image size requirement */
    min-height: 200px; /* Min image size requirement */
    object-fit: cover;
    margin-bottom: 20px;
    border-radius: 8px;
}

.page-resources__feature-title {
    font-size: 1.5em;
    color: #FFD700; /* Gold brand color */
    margin-bottom: 15px;
    font-weight: bold;
}

.page-resources__feature-description {
    font-size: 1em;
    color: #666666;
    margin-bottom: 20px;
}

.page-resources__feature-link {
    display: inline-block;
    color: #8B0000; /* Red brand color */
    text-decoration: none;
    font-weight: bold;
    position: relative;
    padding-bottom: 3px;
}

.page-resources__feature-link::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 2px;
    background-color: #8B0000;
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.page-resources__feature-link:hover::after {
    transform: scaleX(1);
}

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

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

.page-resources__faq-item {
    margin-bottom: 15px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px 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-item.active .page-resources__faq-question {
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
    background-color: #fff;
    border-color: #FFD700;
}

.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;
}

.page-resources__faq-toggle {
    font-size: 28px;
    font-weight: bold;
    line-height: 1;
    color: #FFD700; /* Gold brand color for toggle icon */
    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: 30px;
    height: 30px;
}

.page-resources__faq-item.active .page-resources__faq-toggle {
    color: #8B0000; /* Red brand color when active */
    transform: rotate(45deg); /* Rotate for 'x' effect */
}

.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;
    padding: 0 25px;
    opacity: 0;
    background: #fdfdfd;
    border: 1px solid #e0e0e0;
    border-top: none;
    border-radius: 0 0 8px 8px;
}

.page-resources__faq-item.active .page-resources__faq-answer {
    max-height: 2000px !important; /* Sufficiently large */
    padding: 20px 25px !important;
    opacity: 1;
    border-color: #FFD700;
}

.page-resources__faq-answer p {
    margin: 0;
    font-size: 1em;
    color: #555555;
}

.page-resources__text-link {
    color: #8B0000;
    text-decoration: underline;
    font-weight: bold;
}
.page-resources__text-link:hover {
    color: #FFD700;
    text-decoration: none;
}


/* Brand Section */
.page-resources__brand-section {
    padding: 60px 0;
    background-color: #8B0000; /* Red brand color for background */
    color: #ffffff; /* White text on red background */
    text-align: center;
}

.page-resources__brand-section .page-resources__section-title {
    color: #FFD700; /* Gold brand color for title */
    margin-bottom: 20px;
}

.page-resources__brand-section .page-resources__description {
    color: #f0f0f0;
    margin-bottom: 50px;
}

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

.page-resources__brand-item {
    background-color: rgba(255, 255, 255, 0.1); /* Semi-transparent white background */
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: transform 0.3s ease, background-color 0.3s ease;
}

.page-resources__brand-item:hover {
    transform: translateY(-5px);
    background-color: rgba(255, 255, 255, 0.15);
}

.page-resources__brand-image {
    width: 100%;
    height: auto;
    max-width: 400px; /* Max width for brand images */
    min-width: 200px; /* Min image size requirement */
    min-height: 200px; /* Min image size requirement */
    object-fit: cover;
    margin-bottom: 20px;
    border-radius: 8px;
}

.page-resources__brand-item-title {
    font-size: 1.6em;
    color: #FFD700; /* Gold brand color */
    margin-bottom: 15px;
    font-weight: bold;
}

.page-resources__brand-item-text {
    font-size: 1em;
    color: #f0f0f0;
}

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

/* Blog Section */
.page-resources__blog-section {
    padding: 60px 0;
    background-color: #ffffff;
}

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

.page-resources__blog-item {
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid #eee;
}

.page-resources__blog-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.page-resources__blog-item-image {
    width: 100%;
    height: 225px; /* Fixed height for consistency */
    object-fit: cover;
    display: block;
}

.page-resources__blog-item-content {
    padding: 25px;
}

.page-resources__blog-item-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

.page-resources__blog-item-link:hover .page-resources__blog-item-title {
    color: #8B0000; /* Red brand color on hover */
}

.page-resources__blog-item-title {
    font-size: 1.3em;
    font-weight: bold;
    color: #333333;
    margin-bottom: 10px;
    line-height: 1.4;
}

.page-resources__blog-item-excerpt {
    font-size: 0.95em;
    color: #666666;
    margin-bottom: 15px;
}

.page-resources__blog-item-date {
    font-size: 0.85em;
    color: #999999;
    display: block;
}

/* Global Image and Video Restrictions */
.page-resources img {
    max-width: 100%;
    height: auto;
    display: block;
    /* Ensure no filter is applied */
    filter: none !important;
}

.page-resources video {
    max-width: 100%;
    height: auto;
    display: block;
    /* Ensure no filter is applied */
    filter: none !important;
}

/* Mobile Responsive Styles */
@media (max-width: 1024px) {
    .page-resources__main-title {
        font-size: 2.8em;
    }
    .page-resources__section-title {
        font-size: 2em;
    }
}

@media (max-width: 768px) {
    .page-resources__hero-section {
        padding: 60px 0 30px;
        padding-top: calc(var(--header-offset, 120px) + 60px) !important; /* Important for mobile fixed header */
    }

    .page-resources__main-title {
        font-size: 2.2em;
        line-height: 1.3;
    }

    .page-resources__description {
        font-size: 1em;
        padding: 0 15px;
    }

    .page-resources__cta-buttons {
        flex-direction: column;
        gap: 15px;
        padding: 0 15px;
    }

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

    .page-resources__content-section {
        padding: 40px 0;
    }

    .page-resources__section-title {
        font-size: 1.8em;
        margin-bottom: 30px;
        padding: 0 15px;
    }

    .page-resources__text-block {
        font-size: 0.95em;
        padding: 0 15px;
    }

    .page-resources__feature-grid,
    .page-resources__brand-content,
    .page-resources__blog-list {
        grid-template-columns: 1fr;
        gap: 20px;
        padding: 0 15px;
    }

    .page-resources__feature-item,
    .page-resources__brand-item,
    .page-resources__blog-item {
        padding: 20px;
    }

    .page-resources__feature-icon,
    .page-resources__brand-image,
    .page-resources__blog-item-image {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        min-width: 200px !important; /* Maintain minimum size */
        min-height: 150px !important; /* Adjust minimum height for mobile */
    }

    .page-resources__faq-question {
        padding: 15px 20px;
    }

    .page-resources__faq-question h3 {
        font-size: 1em;
    }

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

    .page-resources__faq-answer {
        padding: 0 20px;
    }
    
    .page-resources__faq-item.active .page-resources__faq-answer {
        padding: 15px 20px !important;
    }
    
    /* Ensure all content containers are constrained */
    .page-resources__container {
        padding-left: 15px;
        padding-right: 15px;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        overflow-x: hidden !important; /* Prevent horizontal scroll */
    }

    /* General responsive image and video rules for all elements within page-resources */
    .page-resources img,
    .page-resources video {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
        box-sizing: border-box !important;
    }
    
    .page-resources__blog-item-image {
        height: 180px; /* Slightly smaller fixed height for mobile blog images */
    }
}