/* style/resources.css */

/* --- General Page Styles --- */
.page-resources {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: #333333; /* Default text color for light backgrounds */
    background-color: #f8f8f8; /* Light background for the page */
}

.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: bold;
    color: #8B0000; /* Auxiliary color for titles */
    text-align: center;
    margin-bottom: 40px;
    position: relative;
    padding-bottom: 15px;
}

.page-resources__section-title::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background-color: #FFD700; /* Primary color for accent */
    border-radius: 2px;
}

.page-resources__text-block {
    font-size: 16px;
    margin-bottom: 20px;
    text-align: justify;
}

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

.page-resources__cta-buttons--center {
    justify-content: center;
}

.page-resources__cta-button {
    display: inline-block;
    padding: 15px 40px;
    border-radius: 8px;
    font-size: 18px;
    font-weight: bold;
    text-align: center;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    border: none;
    cursor: pointer;
    white-space: normal; /* Allow text wrapping */
    word-wrap: break-word; /* Allow text wrapping */
    max-width: 100%; /* Ensure button doesn't overflow on mobile */
    box-sizing: border-box;
}

.page-resources__cta-button--primary {
    background: #FFD700; /* Primary color */
    color: #333333; /* Dark text for contrast */
}

.page-resources__cta-button--primary:hover {
    background: #e6c200; /* Slightly darker gold */
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}

.page-resources__cta-button--secondary {
    background: #8B0000; /* Auxiliary color */
    color: #ffffff; /* White text for contrast */
}

.page-resources__cta-button--secondary:hover {
    background: #6a0000; /* Slightly darker red */
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}

/* --- Hero Section --- */
.page-resources__hero-section {
    position: relative;
    padding-top: var(--header-offset, 120px); /* Fixed header spacing */
    padding-bottom: 80px;
    text-align: center;
    background-color: #1a1a1a; /* Dark background for hero */
    color: #ffffff;
    overflow: hidden;
}

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

.page-resources__main-title {
    font-size: 52px;
    font-weight: bold;
    color: #FFD700; /* Primary color for main title */
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.page-resources__hero-description {
    font-size: 20px;
    max-width: 800px;
    margin: 0 auto 40px;
    color: #f0f0f0;
}

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

/* --- Introduction Section --- */
.page-resources__introduction-section {
    padding: 80px 0;
    background-color: #ffffff; /* Light background */
    color: #333333;
}

/* --- Guides Section --- */
.page-resources__guides-section {
    padding: 80px 0;
    background-color: #222222; /* Dark background */
    color: #f0f0f0;
}

.page-resources__guides-section .page-resources__section-title {
    color: #FFD700; /* Primary color for title on dark background */
}

.page-resources__guides-section .page-resources__section-title::after {
    background-color: #8B0000; /* Auxiliary color for accent */
}

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

.page-resources__guide-card {
    background-color: #333333; /* Darker card background */
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    color: #ffffff; /* White text for dark card */
}

.page-resources__guide-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
}

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

.page-resources__guide-card .page-resources__card-title {
    font-size: 22px;
    font-weight: bold;
    margin: 20px 20px 10px;
    color: #FFD700; /* Primary color for card titles */
}

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

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

.page-resources__guide-card .page-resources__card-description {
    font-size: 15px;
    margin: 0 20px 20px;
    flex-grow: 1;
}

.page-resources__guide-card .page-resources__card-button {
    display: block;
    width: calc(100% - 40px);
    margin: 0 20px 20px;
    padding: 12px 0;
    background-color: #8B0000; /* Auxiliary color for button */
    color: #ffffff;
    text-align: center;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    transition: background-color 0.3s ease;
}

.page-resources__guide-card .page-resources__card-button:hover {
    background-color: #6a0000;
}

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

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

.page-resources__faq-item {
    margin-bottom: 15px;
    border-radius: 5px;
    overflow: hidden;
}

.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 15px;
    opacity: 0;
}

.page-resources__faq-item.active .page-resources__faq-answer {
    max-height: 2000px !important; /* Ensure it expands fully */
    padding: 20px 15px !important;
    opacity: 1;
    background: #f0f0f0; /* Slightly darker background for answer */
    border-radius: 0 0 5px 5px;
    color: #333333;
}

.page-resources__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 20px;
    background: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 5px;
    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:active {
    background: #eeeeee;
}

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

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

.page-resources__faq-item.active .page-resources__faq-toggle {
    color: #8B0000; /* Auxiliary color when active */
    transform: rotate(180deg); /* Rotate for 'minus' effect */
}


/* --- Brand Section --- */
.page-resources__brand-section {
    padding: 80px 0;
    background-color: #1a1a1a; /* Dark background */
    color: #f0f0f0;
}

.page-resources__brand-section .page-resources__section-title {
    color: #FFD700; /* Primary color for title on dark background */
}

.page-resources__brand-section .page-resources__section-title::after {
    background-color: #8B0000; /* Auxiliary color for accent */
}

.page-resources__brand-content {
    max-width: 900px;
    margin: 40px auto 0;
    font-size: 16px;
    text-align: justify;
}

.page-resources__brand-content .page-resources__text-block {
    margin-bottom: 20px;
}

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

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

.page-resources__blog-item {
    background-color: #ffffff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

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

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

.page-resources__blog-item-title {
    font-size: 20px;
    font-weight: bold;
    margin: 20px 20px 10px;
}

.page-resources__blog-item-title a {
    color: #8B0000; /* Auxiliary color for blog titles */
    text-decoration: none;
    transition: color 0.3s ease;
}

.page-resources__blog-item-title a:hover {
    color: #FFD700; /* Primary color on hover */
}

.page-resources__blog-item-excerpt {
    font-size: 15px;
    margin: 0 20px 15px;
    flex-grow: 1;
}

.page-resources__blog-item-date {
    font-size: 13px;
    color: #666666;
    margin: 0 20px 20px;
    display: block;
}

.page-resources__blog-item .page-resources__card-button {
    display: block;
    width: calc(100% - 40px);
    margin: 0 20px 20px;
    padding: 12px 0;
    background-color: #FFD700; /* Primary color for button */
    color: #333333;
    text-align: center;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    transition: background-color 0.3s ease;
}

.page-resources__blog-item .page-resources__card-button:hover {
    background-color: #e6c200;
}

/* --- Contact CTA Section --- */
.page-resources__contact-cta {
    padding: 60px 0;
    background-color: #8B0000; /* Auxiliary color background */
    color: #ffffff;
    text-align: center;
}

.page-resources__contact-cta .page-resources__section-title {
    color: #FFD700; /* Primary color for title on red background */
    margin-bottom: 20px;
}

.page-resources__contact-cta .page-resources__section-title::after {
    background-color: #FFD700; /* Primary color for accent */
}

.page-resources__contact-content {
    max-width: 800px;
    margin: 0 auto;
}

.page-resources__contact-content .page-resources__text-block {
    font-size: 18px;
    margin-bottom: 30px;
    color: #f0f0f0;
}

.page-resources__contact-cta .page-resources__cta-button {
    background: #FFD700; /* Primary color for button */
    color: #333333;
}

.page-resources__contact-cta .page-resources__cta-button:hover {
    background: #e6c200;
}

/* --- Responsive Design --- */
@media (max-width: 1024px) {
    .page-resources__main-title {
        font-size: 42px;
    }
    .page-resources__section-title {
        font-size: 30px;
    }
    .page-resources__hero-description {
        font-size: 18px;
    }
    .page-resources__guide-card .page-resources__card-title,
    .page-resources__blog-item-title {
        font-size: 18px;
    }
    .page-resources__guide-card .page-resources__card-description,
    .page-resources__blog-item-excerpt {
        font-size: 14px;
    }
}

@media (max-width: 768px) {
    .page-resources {
        font-size: 16px;
        line-height: 1.6;
    }

    .page-resources__container {
        padding: 0 15px;
    }

    .page-resources__hero-section {
        padding-top: var(--header-offset, 120px) !important;
        padding-bottom: 60px;
        padding-left: 15px;
        padding-right: 15px;
        width: 100% !important;
        box-sizing: border-box !important;
        overflow: hidden !important;
    }

    .page-resources__main-title {
        font-size: 36px;
        margin-bottom: 15px;
    }

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

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

    .page-resources__cta-buttons {
        flex-direction: column;
        gap: 15px;
        margin-top: 30px;
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
        padding: 0 15px; /* Add padding to container of buttons */
    }

    .page-resources__cta-button {
        width: 100% !important;
        max-width: 100% !important;
        padding: 12px 20px !important;
        font-size: 16px !important;
        box-sizing: border-box !important;
    }

    /* Sections padding for mobile */
    .page-resources__introduction-section,
    .page-resources__guides-section,
    .page-resources__faq-section,
    .page-resources__brand-section,
    .page-resources__blog-section,
    .page-resources__contact-cta {
        padding: 50px 0;
    }
    
    .page-resources__guide-grid,
    .page-resources__blog-list {
        grid-template-columns: 1fr;
        gap: 20px;
        margin-top: 30px;
    }

    .page-resources__guide-image,
    .page-resources__blog-image {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important; /* Allow height to adjust */
        min-height: 200px; /* Ensure minimum size */
        object-fit: cover;
    }

    /* FAQ Mobile adjustments */
    .page-resources__faq-question {
        padding: 15px;
        flex-wrap: wrap;
    }
    
    .page-resources__faq-question h3 {
        font-size: 15px;
        margin-bottom: 0;
        width: calc(100% - 40px);
    }
    
    .page-resources__faq-toggle {
        margin-left: 10px;
        width: 24px;
        height: 24px;
        font-size: 20px;
    }
    
    .page-resources__faq-answer {
        padding: 0 15px;
    }
    
    .page-resources__faq-item.active .page-resources__faq-answer {
        padding: 15px !important;
    }

    /* Ensure all images inside page-resources are responsive */
    .page-resources img {
        max-width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    /* Ensure all containers with images/content are responsive */
    .page-resources__section,
    .page-resources__card,
    .page-resources__container,
    .page-resources__guide-card,
    .page-resources__blog-item,
    .page-resources__faq-list,
    .page-resources__brand-content,
    .page-resources__contact-content {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        overflow: hidden !important; /* Prevent horizontal scroll */
    }
    .page-resources__brand-content,
    .page-resources__contact-content,
    .page-resources__faq-list {
        padding-left: 15px;
        padding-right: 15px;
    }
}

/* Color contrast enforcement for specific sections/elements */
.page-resources__light-bg {
    background-color: #ffffff;
    color: #333333;
}
.page-resources__dark-bg {
    background-color: #222222; /* Darker background for better contrast with gold */
    color: #f0f0f0;
}
.page-resources__dark-bg .page-resources__section-title {
    color: #FFD700;
}
.page-resources__dark-bg .page-resources__text-block {
    color: #f0f0f0;
}
.page-resources__dark-bg .page-resources__card-title a {
    color: #FFD700;
}
.page-resources__dark-bg .page-resources__card-title a:hover {
    color: #ffffff;
}