/* style/resources.css */
/* Base styles for the resources page */
.page-resources {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #ffffff; /* Light text for dark body background */
    background-color: var(--secondary-color, #000000); /* Ensure dark background */
}

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

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

.page-resources__hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7); /* 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.2em;
    color: #FFD700; /* Gold for title */
    margin-bottom: 20px;
    line-height: 1.2;
}

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

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

/* General Section Styling */
.page-resources__section {
    padding: 60px 20px;
    background-color: var(--secondary-color, #000000); /* Dark background */
    color: #ffffff; /* Light text */
    box-sizing: border-box;
}

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

.page-resources__section-title {
    font-size: 2.5em;
    color: #FFD700;
    text-align: center;
    margin-bottom: 40px;
}

.page-resources__section-text {
    font-size: 1.1em;
    margin-bottom: 20px;
    text-align: justify;
}

/* Guide Section */
.page-resources__guide-grid,
.page-resources__promotion-grid,
.page-resources__security-features,
.page-resources__support-channels {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.page-resources__guide-card,
.page-resources__promotion-card,
.page-resources__feature-item,
.page-resources__channel-item {
    background-color: #1a1a1a; /* Slightly lighter dark background for cards */
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    text-align: center;
    padding-bottom: 20px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.page-resources__guide-image,
.page-resources__promotion-image,
.page-resources__feature-icon,
.page-resources__channel-icon {
    width: 100%;
    height: 250px; /* Fixed height for consistency */
    object-fit: cover;
    margin-bottom: 20px;
    border-top-left-radius: 10px;
    border-top-right-radius: 10px;
    filter: none !important;
}

.page-resources__feature-icon,
.page-resources__channel-icon {
    height: 200px; /* Slightly smaller for icons/features */
}

.page-resources__card-title,
.page-resources__feature-title,
.page-resources__channel-title {
    font-size: 1.5em;
    color: #FFD700;
    margin-bottom: 15px;
    padding: 0 15px;
}

.page-resources__card-title a,
.page-resources__feature-title a,
.page-resources__channel-title a {
    color: #FFD700;
    text-decoration: none;
}

.page-resources__card-title a:hover,
.page-resources__feature-title a:hover,
.page-resources__channel-title a:hover {
    text-decoration: underline;
}

.page-resources__card-text,
.page-resources__feature-description,
.page-resources__channel-description {
    font-size: 1em;
    color: #cccccc;
    padding: 0 15px;
    margin-bottom: 20px;
    flex-grow: 1; /* Allow text to grow */
}

.page-resources__btn-link {
    display: inline-block;
    color: #FFD700;
    text-decoration: none;
    font-weight: bold;
    border: 1px solid #FFD700;
    padding: 8px 15px;
    border-radius: 5px;
    transition: all 0.3s ease;
    margin-top: auto; /* Push to bottom */
}

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

/* Buttons */
.page-resources__btn-primary,
.page-resources__btn-secondary {
    display: inline-block;
    padding: 12px 25px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s ease;
    cursor: pointer;
    font-size: 1.1em;
    box-sizing: border-box; /* Crucial for responsive buttons */
    white-space: normal; /* Allow text wrapping */
    word-wrap: break-word; /* Allow text breaking */
}

.page-resources__btn-primary {
    background-color: #FFD700;
    color: #000000;
    border: 2px solid #FFD700;
}

.page-resources__btn-primary:hover {
    background-color: #e6c200;
    border-color: #e6c200;
}

.page-resources__btn-secondary {
    background-color: transparent;
    color: #FFD700;
    border: 2px solid #FFD700;
}

.page-resources__btn-secondary:hover {
    background-color: #FFD700;
    color: #000000;
}

.page-resources__btn-center {
    display: block;
    margin: 40px auto 0 auto;
    max-width: fit-content;
}

/* FAQ Section */
.page-resources__faq-section {
    background-color: #0d0d0d; /* Slightly different dark background */
}

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

.page-resources__faq-item {
    background-color: #1a1a1a;
    border-radius: 8px;
    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;
    cursor: pointer;
    background-color: #222222;
    border-bottom: 1px solid #333333;
}

.page-resources__faq-question:hover {
    background-color: #2a2a2a;
}

.page-resources__faq-title {
    font-size: 1.2em;
    color: #FFD700;
    margin: 0;
    flex-grow: 1;
    text-align: left;
}

.page-resources__faq-toggle {
    font-size: 1.5em;
    color: #FFD700;
    margin-left: 15px;
    transition: transform 0.3s ease;
}

.page-resources__faq-item.active .page-resources__faq-toggle {
    transform: rotate(45deg); /* Change to X or rotate for active state */
}

.page-resources__faq-answer {
    max-height: 0;
    overflow: hidden;
    padding: 0 20px; /* Initial padding 0 */
    transition: max-height 0.3s ease, padding 0.3s ease;
    color: #cccccc;
    text-align: justify;
}

.page-resources__faq-item.active .page-resources__faq-answer {
    max-height: 1000px !important; /* Sufficiently large value */
    padding: 20px !important; /* Padding for active state */
}

.page-resources__faq-answer p {
    margin: 0;
    padding-bottom: 10px; /* Space between paragraphs in answer */
}

/* CTA Section */
.page-resources__cta-section {
    padding: 80px 20px;
    text-align: center;
    background-color: #FFD700; /* Gold background for CTA */
    color: #000000; /* Black text for gold background */
}

.page-resources__cta-title {
    font-size: 2.8em;
    margin-bottom: 20px;
    color: #000000;
}

.page-resources__cta-description {
    font-size: 1.2em;
    margin-bottom: 40px;
    color: #333333;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

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

.page-resources__cta-section .page-resources__btn-primary {
    background-color: #000000;
    color: #FFD700;
    border-color: #000000;
}

.page-resources__cta-section .page-resources__btn-primary:hover {
    background-color: #333333;
    border-color: #333333;
}

.page-resources__cta-section .page-resources__btn-secondary {
    background-color: transparent;
    color: #000000;
    border-color: #000000;
}

.page-resources__cta-section .page-resources__btn-secondary:hover {
    background-color: #000000;
    color: #FFD700;
}

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

@media (max-width: 768px) {
    .page-resources__hero-section {
        min-height: 400px;
        padding-top: var(--header-offset, 120px) !important; /* Ensure header offset on mobile */
    }
    .page-resources__hero-title {
        font-size: 2em;
    }
    .page-resources__hero-description {
        font-size: 1em;
    }
    .page-resources__hero-buttons {
        flex-direction: column;
        gap: 15px;
    }
    .page-resources__btn-primary,
    .page-resources__btn-secondary,
    .page-resources a[class*="button"],
    .page-resources a[class*="btn"] {
        width: 100% !important;
        max-width: 100% !important;
        padding: 10px 15px !important;
        font-size: 1em !important;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
        margin-left: 0 !important; /* Remove any potential auto margins from desktop */
        margin-right: 0 !important;
    }
    .page-resources__section {
        padding: 40px 15px;
    }
    .page-resources__section-title {
        font-size: 1.8em;
        margin-bottom: 30px;
    }
    .page-resources__section-text {
        font-size: 0.95em;
    }
    .page-resources__guide-grid,
    .page-resources__promotion-grid,
    .page-resources__security-features,
    .page-resources__support-channels {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    /* Mobile image and video responsiveness */
    .page-resources img,
    .page-resources video {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
        filter: none !important; /* Ensure no filter on mobile */
    }
    .page-resources__section,
    .page-resources__card,
    .page-resources__container,
    .page-resources__hero-content,
    .page-resources__cta-content,
    .page-resources__video-section,
    .page-resources__video-container,
    .page-resources__video-wrapper,
    .page-resources__cta-buttons,
    .page-resources__button-group,
    .page-resources__btn-container {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        overflow-x: hidden !important; /* Prevent horizontal scroll */
    }
    .page-resources__cta-buttons {
        flex-direction: column;
        gap: 15px;
    }

    /* FAQ specific mobile adjustments */
    .page-resources__faq-question {
        padding: 15px;
    }
    .page-resources__faq-title {
        font-size: 1.1em;
    }
    .page-resources__faq-answer {
        padding: 0 15px;
    }
    .page-resources__faq-item.active .page-resources__faq-answer {
        padding: 15px !important;
    }
}

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

/* Ensure images maintain original color, no filter */
.page-resources img {
    filter: none !important;
}