/* style/resources.css */

:root {
    --primary-color: #017439;
    --secondary-color: #FFFFFF;
    --dark-text-color: #333333;
    --light-text-color: #ffffff;
    --accent-red: #C30808;
    --accent-yellow: #FFFF00;
    --card-bg-light: #ffffff;
    --card-bg-dark: rgba(255, 255, 255, 0.1);
    --border-color: #e0e0e0;
}

.page-resources {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: var(--light-text-color); /* Default for dark body background */
    background-color: var(--dark-bg); /* Inherited from shared.css */
}

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

/* Hero Section */
.page-resources__hero-section {
    position: relative;
    width: 100%;
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
    padding-top: var(--header-offset, 120px); /* Ensure content is below fixed header */
}

.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);
    z-index: 2;
}

.page-resources__hero-content {
    position: relative;
    z-index: 3;
    color: var(--light-text-color);
    max-width: 900px;
}

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

.page-resources__hero-description {
    font-size: 1.2em;
    margin-bottom: 30px;
    color: var(--light-text-color);
}

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

/* Video Section */
.page-resources__intro-video-section {
    padding: 80px 0;
    background-color: var(--dark-bg);
    text-align: center;
    color: var(--light-text-color);
}

.page-resources__video-wrapper {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
    height: 0;
    overflow: hidden;
    max-width: 100%;
    background: #000;
    margin: 40px auto 0;
    border-radius: 8px;
}

.page-resources__intro-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
    display: block;
    cursor: pointer;
}

/* General Sections */
.page-resources__section-title {
    font-size: 2.5em;
    margin-bottom: 20px;
    text-align: center;
    line-height: 1.3;
}

.page-resources__section-description {
    font-size: 1.1em;
    text-align: center;
    margin-bottom: 40px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.page-resources__subsection-title {
    font-size: 1.8em;
    margin-top: 40px;
    margin-bottom: 15px;
    line-height: 1.4;
}

.page-resources__text-block {
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.page-resources__text-block p {
    margin-bottom: 1em;
}

/* Background colors & text colors */
.page-resources__dark-bg {
    background-color: var(--primary-color);
    color: var(--light-text-color);
}

.page-resources__light-bg {
    background-color: var(--secondary-color);
    color: var(--dark-text-color);
}

/* Introduction Section */
.page-resources__introduction {
    padding: 80px 0;
}

/* Guide Overview */
.page-resources__guide-overview {
    padding: 80px 0;
}

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

.page-resources__card {
    background-color: var(--card-bg-dark);
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    text-align: center;
    transition: transform 0.3s ease, background-color 0.3s ease;
    color: var(--light-text-color);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.page-resources__card:hover {
    transform: translateY(-10px);
    background-color: rgba(255, 255, 255, 0.15);
}

.page-resources__card-title {
    font-size: 1.5em;
    margin-bottom: 15px;
    color: var(--light-text-color);
}

.page-resources__card-title a {
    color: var(--light-text-color);
    text-decoration: none;
}

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

.page-resources__card p {
    font-size: 1em;
    margin-bottom: 20px;
}

.page-resources__btn-link {
    display: inline-block;
    background-color: var(--accent-red);
    color: var(--accent-yellow);
    padding: 10px 25px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.page-resources__btn-link:hover {
    background-color: #a00606;
    color: var(--light-text-color);
}

/* Content Sections (Beginner Guide, Strategy Tips, Account Security, Promotions, News) */
.page-resources__beginner-guide,
.page-resources__strategy-tips,
.page-resources__account-security,
.page-resources__promotions,
.page-resources__news {
    padding: 80px 0;
}

.page-resources__numbered-list,
.page-resources__bullet-list {
    list-style-position: inside;
    margin-left: 20px;
    margin-bottom: 20px;
}

.page-resources__numbered-list li,
.page-resources__bullet-list li {
    margin-bottom: 10px;
}

.page-resources__content-image {
    display: block;
    margin: 40px auto;
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

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

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

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

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

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

.page-resources__faq-question h3 {
    margin: 0;
    font-size: 1.2em;
    color: var(--light-text-color);
}

.page-resources__faq-toggle {
    font-size: 1.5em;
    font-weight: bold;
    color: var(--accent-yellow);
    transition: transform 0.3s ease;
}

.page-resources__faq-item.active .page-resources__faq-toggle {
    transform: rotate(45deg);
}

.page-resources__faq-answer {
    max-height: 0;
    overflow: hidden;
    padding: 0 30px;
    transition: max-height 0.3s ease, padding 0.3s ease;
    color: var(--light-text-color);
}

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

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

.page-resources__faq-answer a {
    color: var(--accent-yellow);
    text-decoration: underline;
}

.page-resources__faq-image {
    margin-top: 60px;
}

/* Contact CTA Section */
.page-resources__contact-cta {
    padding: 80px 0;
}

/* CTA Section */
.page-resources__cta-section {
    position: relative;
    padding: 100px 0;
    text-align: center;
    overflow: hidden;
    color: var(--light-text-color);
    background-color: var(--primary-color);
}

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

.page-resources__cta-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    margin: 0 auto;
}

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

.page-resources__cta-description {
    font-size: 1.2em;
    margin-bottom: 40px;
    color: var(--light-text-color);
}

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

/* Buttons */
.page-resources__btn-primary,
.page-resources__btn-secondary {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1em;
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
    white-space: normal;
    word-wrap: break-word;
    box-sizing: border-box;
}

.page-resources__btn-primary {
    background-color: var(--accent-red);
    color: var(--accent-yellow);
    border: 2px solid var(--accent-red);
}

.page-resources__btn-primary:hover {
    background-color: #a00606;
    border-color: #a00606;
    color: var(--light-text-color);
}

.page-resources__btn-secondary {
    background-color: transparent;
    color: var(--accent-yellow);
    border: 2px solid var(--accent-yellow);
}

.page-resources__btn-secondary:hover {
    background-color: var(--accent-yellow);
    color: var(--primary-color);
}

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

@media (max-width: 768px) {
    .page-resources {
        font-size: 16px;
        line-height: 1.6;
    }
    .page-resources__hero-section {
        min-height: 400px;
        padding-top: var(--header-offset, 120px) !important;
    }
    .page-resources__hero-title {
        font-size: 2.2em;
    }
    .page-resources__hero-description {
        font-size: 1em;
    }
    .page-resources__hero-cta-buttons,
    .page-resources__cta-buttons {
        flex-direction: column;
        gap: 15px;
    }
    .page-resources__btn-primary,
    .page-resources__btn-secondary {
        max-width: 100% !important;
        width: 100% !important;
        padding: 12px 20px;
        font-size: 1em;
    }
    .page-resources__container {
        padding: 0 15px;
    }
    .page-resources__section-title {
        font-size: 1.8em;
    }
    .page-resources__subsection-title {
        font-size: 1.5em;
    }
    .page-resources__intro-video-section,
    .page-resources__introduction,
    .page-resources__guide-overview,
    .page-resources__beginner-guide,
    .page-resources__strategy-tips,
    .page-resources__account-security,
    .page-resources__promotions,
    .page-resources__news,
    .page-resources__faq-section,
    .page-resources__contact-cta,
    .page-resources__cta-section {
        padding: 50px 0;
    }

    .page-resources img {
        max-width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    .page-resources__video-wrapper {
        margin: 20px auto 0;
    }
    .page-resources video,
    .page-resources__intro-video {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    .page-resources__intro-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__card {
        padding: 20px;
    }
    .page-resources__card-title {
        font-size: 1.3em;
    }
    .page-resources__faq-question {
        padding: 15px 20px;
    }
    .page-resources__faq-question h3 {
        font-size: 1.1em;
    }
    .page-resources__faq-answer {
        padding: 0 20px;
    }
    .page-resources__faq-item.active .page-resources__faq-answer {
        padding: 10px 20px;
    }

    .page-resources__cta-title {
        font-size: 2em;
    }
    .page-resources__cta-description {
        font-size: 1em;
    }
}

@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.5em;
    }
    .page-resources__cta-title {
        font-size: 1.8em;
    }
    .page-resources__faq-question h3 {
        font-size: 1em;
    }
}