:root {
    --primary-color: #FFD700; /* Gold */
    --secondary-color: #8B0000; /* Dark Red */
    --text-light: #ffffff;
    --text-dark: #333333;
    --bg-dark: #000000;
    --bg-card-dark: rgba(255, 255, 255, 0.08); /* Slightly transparent white on black */
    --border-color: rgba(255, 255, 255, 0.15);
}

.page-resources {
    color: var(--text-light); /* Light text on dark body background */
    background-color: var(--bg-dark); 
    font-family: Arial, sans-serif;
    line-height: 1.6;
    padding-top: 10px; /* Desktop: Adjust for fixed header */
}

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

/* Hero Section */
.page-resources__hero-section {
    position: relative;
    width: 100%;
    height: 600px; 
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
    padding-top: 10px; /* Desktop: Adjust for fixed header */
}

.page-resources__hero-background-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
    filter: brightness(0.4); /* Darken background image for text readability */
}

.page-resources__hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0,0,0,0.6) 0%, rgba(0,0,0,0.8) 100%);
    z-index: 1;
}

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

.page-resources__main-title {
    font-size: 3.5em;
    margin-bottom: 20px;
    color: var(--text-light);
    line-height: 1.2;
    font-weight: bold;
}

.page-resources__highlight {
    color: var(--primary-color);
}

.page-resources__hero-description {
    font-size: 1.2em;
    margin-bottom: 30px;
    color: #e0e0e0;
}

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

.page-resources__cta-button {
    display: inline-block;
    padding: 15px 40px;
    border-radius: 8px;
    font-size: 1.1em;
    font-weight: bold;
    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;
    word-wrap: break-word;
    text-align: center;
    box-sizing: border-box; 
    max-width: 100%;
}

.page-resources__cta-button--primary {
    background: var(--primary-color);
    color: var(--bg-dark); 
}

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

.page-resources__cta-button--secondary {
    background: var(--secondary-color);
    color: var(--text-light); 
}

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

/* Intro Section */
.page-resources__intro-section {
    text-align: center;
    padding-top: 60px;
    padding-bottom: 60px;
}

.page-resources__intro-title {
    font-size: 2.5em;
    margin-bottom: 20px;
    color: var(--text-light);
}

.page-resources__intro-text {
    font-size: 1.1em;
    max-width: 800px;
    margin: 0 auto 40px auto;
    color: #ccc;
}

.page-resources__features {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    justify-content: center;
}

.page-resources__feature-item {
    background: var(--bg-card-dark);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 30px;
    flex: 1 1 calc(33% - 40px); 
    max-width: calc(33% - 40px);
    box-sizing: border-box;
    text-align: left;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.page-resources__feature-icon {
    width: 80px; 
    height: auto;
    margin-bottom: 20px;
    border-radius: 5px;
    display: block;
    max-width: 100%; 
    height: auto;
}

.page-resources__feature-heading {
    font-size: 1.5em;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.page-resources__feature-description {
    color: #ccc;
}

/* FAQ Section */
.page-resources__faq-section {
    padding-top: 60px;
    padding-bottom: 60px;
    background-color: var(--bg-dark); 
}

.page-resources__faq-main-title {
    text-align: center;
    font-size: 2.5em;
    margin-bottom: 40px;
    color: var(--text-light);
}

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

.page-resources__faq-item {
    margin-bottom: 15px;
    border-radius: 5px;
    overflow: hidden;
    background: var(--bg-card-dark);
    border: 1px solid var(--border-color);
}

.page-resources__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 20px;
    background: var(--bg-card-dark);
    border-bottom: 1px solid var(--border-color);
    cursor: pointer;
    user-select: none;
    transition: background-color 0.3s ease, border-color 0.3s ease;
    position: relative;
    color: var(--text-light);
}

.page-resources__faq-question:hover {
    background: rgba(255, 255, 255, 0.15);
}

.page-resources__faq-question h3 {
    margin: 0;
    padding: 0;
    flex: 1;
    font-size: 1.1em;
    font-weight: 600;
    line-height: 1.5;
    pointer-events: none; 
    color: var(--primary-color); 
}

.page-resources__faq-toggle {
    font-size: 24px;
    font-weight: bold;
    line-height: 1;
    color: var(--primary-color);
    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: 28px;
    height: 28px;
}

.page-resources__faq-item.active .page-resources__faq-toggle {
    color: var(--text-light);
    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 20px;
    opacity: 0;
    color: #ccc;
}

.page-resources__faq-item.active .page-resources__faq-answer {
    max-height: 2000px !important; 
    padding: 20px !important;
    opacity: 1;
    background: rgba(255, 255, 255, 0.05); 
    border-radius: 0 0 5px 5px;
    border-top: 1px solid var(--border-color);
}

/* Brand Section */
.page-resources__brand-section {
    padding-top: 60px;
    padding-bottom: 60px;
    text-align: center;
    background-color: var(--bg-dark);
}

.page-resources__brand-title {
    font-size: 2.5em;
    margin-bottom: 40px;
    color: var(--text-light);
}

.page-resources__brand-content {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    justify-content: center;
}

.page-resources__brand-item {
    background: var(--bg-card-dark);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 30px;
    flex: 1 1 calc(33% - 40px);
    max-width: calc(33% - 40px);
    box-sizing: border-box;
    text-align: left;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.page-resources__brand-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 20px;
    display: block;
    max-width: 100%; 
    height: auto;
}

.page-resources__brand-heading {
    font-size: 1.5em;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.page-resources__brand-description {
    color: #ccc;
}

/* Blog Section */
.page-resources__blog-section {
    padding-top: 60px;
    padding-bottom: 60px;
    background-color: var(--bg-dark);
}

.page-resources__blog-main-title {
    text-align: center;
    font-size: 2.5em;
    margin-bottom: 40px;
    color: var(--text-light);
}

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

.page-resources__blog-item {
    background: var(--bg-card-dark);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    overflow: hidden;
    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.3);
}

.page-resources__blog-link {
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.page-resources__blog-item-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
    max-width: 100%; 
    height: auto;
}

.page-resources__blog-item-content {
    padding: 20px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.page-resources__blog-item-title {
    font-size: 1.4em;
    color: var(--primary-color);
    margin-bottom: 10px;
    line-height: 1.3;
    flex-grow: 1; 
}

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

.page-resources__blog-item-date {
    font-size: 0.85em;
    color: #888;
    align-self: flex-end; 
}

.page-resources__view-all-button-container {
    text-align: center;
    margin-top: 40px;
}


/* Responsive Design */
@media (max-width: 1024px) {
    .page-resources__main-title {
        font-size: 3em;
    }
    .page-resources__intro-title,
    .page-resources__faq-main-title,
    .page-resources__brand-title,
    .page-resources__blog-main-title {
        font-size: 2em;
    }
    .page-resources__feature-item,
    .page-resources__brand-item {
        flex: 1 1 calc(50% - 30px); 
        max-width: calc(50% - 30px);
    }
}

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

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

    .page-resources__hero-section {
        height: 400px; 
        padding-top: 10px !important; 
    }

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

    .page-resources__hero-description {
        font-size: 1em;
        margin-bottom: 20px;
    }

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

    .page-resources__cta-button {
        width: 100% !important;
        max-width: 100% !important;
        padding: 12px 20px;
        font-size: 1em;
    }

    .page-resources__intro-title,
    .page-resources__faq-main-title,
    .page-resources__brand-title,
    .page-resources__blog-main-title {
        font-size: 1.8em;
        margin-bottom: 30px;
    }

    .page-resources__feature-item,
    .page-resources__brand-item {
        flex: 1 1 100%; 
        max-width: 100%;
        padding: 20px;
    }

    .page-resources__feature-icon {
        width: 60px;
        margin-bottom: 15px;
    }

    .page-resources__feature-heading,
    .page-resources__brand-heading {
        font-size: 1.3em;
    }

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

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

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

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

    .page-resources__brand-image {
        height: 150px;
    }

    .page-resources__blog-list {
        grid-template-columns: 1fr; 
    }

    .page-resources__blog-item-image {
        height: 180px;
    }

    .page-resources__blog-item-title {
        font-size: 1.2em;
    }

    /* Ensure all images are responsive */
    .page-resources img {
        max-width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    /* Ensure all image/button/section containers are responsive */
    .page-resources__hero-section,
    .page-resources__feature-item,
    .page-resources__brand-item,
    .page-resources__blog-item,
    .page-resources__hero-content,
    .page-resources__cta-buttons,
    .page-resources__intro-section,
    .page-resources__faq-section,
    .page-resources__brand-section,
    .page-resources__blog-section,
    .page-resources__faq-list,
    .page-resources__blog-list {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        overflow: hidden !important;
        padding-left: 0px;
        padding-right: 0px;
    }
}
@media (max-width: 480px) {
    .page-resources__main-title {
        font-size: 1.8em;
    }
    .page-resources__intro-title,
    .page-resources__faq-main-title,
    .page-resources__brand-title,
    .page-resources__blog-main-title {
        font-size: 1.6em;
    }
}