/* style/resources.css */

/* Base styles for the page content */
.page-resources {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #ffffff; /* Dark body background #121212, so use light text */
    background-color: #121212; /* Ensure consistency with body background */
}

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

.page-resources__section-title {
    font-size: 2.5em;
    color: #FFD700; /* Gold for titles */
    text-align: center;
    margin-bottom: 40px;
    position: relative;
    padding-bottom: 10px;
}

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

.page-resources__sub-title {
    font-size: 1.8em;
    color: #FFD700;
    margin-top: 30px;
    margin-bottom: 15px;
}

.page-resources__text-block {
    font-size: 1.1em;
    margin-bottom: 20px;
    color: #f0f0f0; /* Slightly off-white for body text */
}

/* Buttons */
.page-resources__btn-primary,
.page-resources__btn-secondary,
.page-resources__btn-link {
    display: inline-block;
    padding: 12px 25px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
    text-align: center;
    box-sizing: border-box; /* Ensure padding doesn't affect total width */
    white-space: normal; /* Allow text wrapping */
    word-wrap: break-word; /* Break long words */
}

.page-resources__btn-primary {
    background-color: #CC0000; /* Main brand red */
    color: #ffffff;
    border: 2px solid #CC0000;
}

.page-resources__btn-primary:hover {
    background-color: #ff3333; /* Lighter red on hover */
    border-color: #ff3333;
}

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

.page-resources__btn-secondary:hover {
    background-color: #FFD700;
    color: #121212; /* Dark text on gold hover */
    border-color: #FFD700;
}

.page-resources__btn-link {
    background-color: transparent;
    color: #CC0000;
    border: none;
    padding: 0;
    text-decoration: underline;
    font-size: 1em;
}

.page-resources__btn-link:hover {
    color: #FFD700;
}

/* Hero Section */
.page-resources__hero-section {
    position: relative;
    width: 100%;
    height: 600px; /* Adjust as needed, but ensure it's large */
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
    padding-top: var(--header-offset, 120px); /* Fixed header offset */
    box-sizing: border-box;
}

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

.page-resources__hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6); /* Dark overlay for text readability */
    z-index: 2;
}

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

.page-resources__hero-title {
    font-size: 3.8em;
    color: #FFD700;
    margin-bottom: 20px;
    line-height: 1.2;
}

.page-resources__hero-description {
    font-size: 1.4em;
    color: #f0f0f0;
    margin-bottom: 40px;
}

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

/* Intro Section */
.page-resources__intro-section {
    padding: 80px 0;
    background-color: #1a1a1a; /* Slightly lighter dark background */
}

/* Guides Section & Promotions Section */
.page-resources__guides-section,
.page-resources__promotions-section {
    padding: 80px 0;
    background-color: #121212;
}

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

.page-resources__card {
    background-color: rgba(255, 255, 255, 0.08); /* Semi-transparent white card background */
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    color: #f0f0f0;
}

.page-resources__card:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.5);
}

.page-resources__card-image {
    width: 100%;
    height: 250px; /* Fixed height for consistency */
    object-fit: cover;
    display: block;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.page-resources__card-title {
    font-size: 1.4em;
    color: #FFD700;
    padding: 15px 20px 10px;
    margin: 0;
}

.page-resources__card-title a {
    color: inherit;
    text-decoration: none;
}

.page-resources__card-title a:hover {
    text-decoration: underline;
    color: #CC0000;
}

.page-resources__card-description {
    font-size: 0.95em;
    padding: 0 20px 15px;
    flex-grow: 1; /* Make description take available space */
}

.page-resources__card .page-resources__btn-link {
    padding: 10px 20px 20px;
    align-self: flex-start;
    margin-left: 20px;
    text-decoration: none;
}

/* Security Section */
.page-resources__dark-section {
    background-color: #CC0000; /* Brand red for a strong statement */
    color: #ffffff;
    padding: 80px 0;
}

.page-resources__dark-section .page-resources__section-title {
    color: #ffffff; /* White title on red background */
}

.page-resources__dark-section .page-resources__section-title::after {
    background-color: #FFD700; /* Gold underline on red background */
}

.page-resources__dark-section .page-resources__text-block {
    color: #f8f8f8;
}

.page-resources__security-content {
    display: flex;
    align-items: center;
    gap: 40px;
    margin-top: 40px;
}

.page-resources__security-image {
    width: 50%;
    height: auto;
    border-radius: 12px;
    object-fit: cover;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-resources__security-text {
    width: 50%;
}

.page-resources__security-text p {
    margin-bottom: 15px;
    font-size: 1.05em;
    color: #f8f8f8;
}

/* Video Section */
.page-resources__video-section {
    padding: 80px 0;
    background-color: #1a1a1a;
    text-align: center;
}

.page-resources__video-wrapper {
    position: relative;
    width: 100%;
    max-width: 1280px; /* Max width for video */
    margin: 40px auto;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
}

.page-resources__video {
    width: 100%;
    height: auto;
    display: block;
    cursor: pointer;
}

.page-resources__video-link {
    display: block; /* Make the whole video wrapper clickable */
}

.page-resources__video-cta {
    margin-top: 30px;
}

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

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

.page-resources__faq-item {
    background-color: rgba(255, 255, 255, 0.08); /* Semi-transparent white for FAQ items */
    border-radius: 10px;
    margin-bottom: 15px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.page-resources__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    cursor: pointer;
    background-color: rgba(255, 255, 255, 0.1);
    transition: background-color 0.3s ease;
}

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

.page-resources__faq-title {
    font-size: 1.2em;
    color: #FFD700;
    margin: 0;
}

.page-resources__faq-toggle {
    font-size: 1.8em;
    font-weight: bold;
    color: #CC0000;
    transition: transform 0.3s ease;
}

.page-resources__faq-item.active .page-resources__faq-toggle {
    transform: rotate(45deg); /* Rotate '+' to 'x' or use '−' */
    color: #FFD700;
}

.page-resources__faq-answer {
    max-height: 0;
    overflow: hidden;
    padding: 0 25px;
    transition: max-height 0.3s ease, padding 0.3s ease;
    color: #f0f0f0;
    font-size: 1em;
}

.page-resources__faq-item.active .page-resources__faq-answer {
    max-height: 1000px !important; /* Sufficiently large to show content */
    padding: 15px 25px 25px;
}

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

/* CTA Section */
.page-resources__cta-section {
    padding: 80px 0;
    background-color: #CC0000; /* Main brand red for CTA */
    text-align: center;
    color: #ffffff;
}

.page-resources__cta-section .page-resources__section-title {
    color: #ffffff;
}

.page-resources__cta-section .page-resources__section-title::after {
    background-color: #FFD700;
}

.page-resources__cta-section .page-resources__text-block {
    color: #f8f8f8;
    max-width: 800px;
    margin: 0 auto 40px;
}

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

/* Responsive Design */
@media (max-width: 1024px) {
    .page-resources__hero-title {
        font-size: 3em;
    }
    .page-resources__hero-description {
        font-size: 1.2em;
    }
    .page-resources__section-title {
        font-size: 2em;
    }
    .page-resources__security-content {
        flex-direction: column;
        text-align: center;
    }
    .page-resources__security-image,
    .page-resources__security-text {
        width: 100%;
    }
    .page-resources__security-image {
        margin-bottom: 30px;
    }
}

@media (max-width: 768px) {
    .page-resources {
        font-size: 16px;
        line-height: 1.6;
    }
    .page-resources__container {
        padding: 0 15px;
    }
    .page-resources__hero-section {
        height: 500px;
        padding-top: var(--header-offset, 120px) !important; /* Ensure mobile padding is set */
    }
    .page-resources__hero-title {
        font-size: 2.2em;
    }
    .page-resources__hero-description {
        font-size: 1em;
    }
    .page-resources__hero-buttons,
    .page-resources__cta-buttons {
        flex-direction: column;
        gap: 15px;
    }
    .page-resources__btn-primary,
    .page-resources__btn-secondary,
    .page-resources a[class*="button"],
    .page-resources a[class*="btn"] {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
        padding-left: 15px;
        padding-right: 15px;
    }

    /* Images responsive */
    .page-resources img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    .page-resources__card-image {
        height: 200px; /* Adjust height for smaller screens */
    }

    /* Video responsive */
    .page-resources video,
    .page-resources__video {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    .page-resources__video-section,
    .page-resources__video-container,
    .page-resources__video-wrapper {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        overflow: hidden !important;
    }
    .page-resources__video-section {
        padding-top: var(--header-offset, 120px) !important;
    }

    /* General container padding */
    .page-resources__section,
    .page-resources__card,
    .page-resources__container {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
    }
    .page-resources__guide-grid,
    .page-resources__promotion-grid {
        gap: 20px;
    }
    .page-resources__faq-question {
        padding: 15px 20px;
    }
    .page-resources__faq-answer {
        padding: 0 20px;
    }
    .page-resources__faq-item.active .page-resources__faq-answer {
        padding: 10px 20px 20px;
    }
}

@media (max-width: 480px) {
    .page-resources__hero-title {
        font-size: 1.8em;
    }
    .page-resources__hero-description {
        font-size: 0.9em;
    }
    .page-resources__section-title {
        font-size: 1.8em;
    }
}

/* Ensure no filter on images */
.page-resources img {
    filter: none;
}