/* style/resources.css */

:root {
    --primary-color: #FFD700;
    --secondary-color: #8B0000;
    --text-light: #ffffff;
    --text-dark: #333333;
    --background-dark: #000000;
    --card-bg-dark-mode: rgba(255, 255, 255, 0.08);
    --border-color-dark-mode: rgba(255, 255, 255, 0.15);
}

.page-resources {
    color: var(--text-light); /* Body background is dark, so text is light */
    background-color: var(--background-dark);
    line-height: 1.6;
    font-family: 'Arial', sans-serif;
}

.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;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    text-align: center;
    padding-top: var(--header-offset, 120px); /* Ensure content is below fixed header */
    padding-bottom: 60px;
}

.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: 1;
}

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

.page-resources__hero-title {
    font-size: 3.5em;
    color: var(--primary-color);
    margin-bottom: 20px;
    line-height: 1.2;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
}

.page-resources__hero-description {
    font-size: 1.3em;
    color: var(--text-light);
    margin-bottom: 30px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

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

/* General Section Styling */
.page-resources__section {
    padding: 80px 0;
    background-color: var(--background-dark);
}

.page-resources__section:nth-of-type(even) {
    background-color: rgba(255, 255, 255, 0.03);
}

.page-resources__section-title {
    font-size: 2.5em;
    color: var(--primary-color);
    text-align: center;
    margin-bottom: 40px;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
}

.page-resources__text-block {
    font-size: 1.1em;
    color: var(--text-light);
    text-align: center;
    max-width: 900px;
    margin: 0 auto 50px auto;
}

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

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

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

.page-resources__feature-image {
    width: 100%;
    max-width: 400px;
    height: 300px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 20px;
    border: 1px solid var(--primary-color);
}

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

.page-resources__feature-text {
    font-size: 1em;
    color: var(--text-light);
}

/* Game Guide Cards */
.page-resources__game-guide-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.page-resources__game-card {
    background-color: var(--card-bg-dark-mode);
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid var(--border-color-dark-mode);
    display: flex;
    flex-direction: column;
}

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

.page-resources__game-image {
    width: 100%;
    max-width: 600px;
    height: 400px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 20px;
    border: 1px solid var(--secondary-color);
}

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

.page-resources__game-heading a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

.page-resources__game-heading a:hover {
    color: var(--secondary-color);
}

.page-resources__game-text {
    font-size: 1em;
    color: var(--text-light);
    margin-bottom: 20px;
    flex-grow: 1;
}

.page-resources__game-sub-list {
    list-style: none;
    padding-left: 0;
    margin-bottom: 20px;
}

.page-resources__game-sub-list li {
    font-size: 0.95em;
    color: var(--text-light);
    margin-bottom: 8px;
    position: relative;
    padding-left: 20px;
}

.page-resources__game-sub-list li::before {
    content: '•';
    color: var(--primary-color);
    position: absolute;
    left: 0;
    top: 0;
}

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

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

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

.page-resources__tip-image {
    width: 100%;
    max-width: 400px;
    height: 300px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 20px;
    border: 1px solid var(--primary-color);
}

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

.page-resources__tip-text {
    font-size: 1em;
    color: var(--text-light);
}

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

.page-resources__news-card {
    background-color: var(--card-bg-dark-mode);
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid var(--border-color-dark-mode);
    display: flex;
    flex-direction: column;
}

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

.page-resources__news-image {
    width: 100%;
    max-width: 600px;
    height: 400px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 20px;
    border: 1px solid var(--secondary-color);
}

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

.page-resources__news-heading a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

.page-resources__news-heading a:hover {
    color: var(--secondary-color);
}

.page-resources__news-text {
    font-size: 1em;
    color: var(--text-light);
    margin-bottom: 20px;
    flex-grow: 1;
}

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

.page-resources__video-wrapper {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
    height: 0;
    overflow: hidden;
    max-width: 100%;
    background: #000;
    border-radius: 10px;
    margin: 50px auto;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.5);
}

.page-resources__video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
    cursor: pointer;
    display: block; /* Ensure it behaves like a block element */
}

.page-resources__video-caption {
    font-size: 1em;
    color: var(--text-light);
    margin-top: 20px;
}

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

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

.page-resources__faq-item {
    background-color: var(--card-bg-dark-mode);
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
    border: 1px solid var(--border-color-dark-mode);
    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;
    font-size: 1.2em;
    color: var(--primary-color);
    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(--primary-color);
}

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

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

.page-resources__faq-answer p {
    margin: 0;
    padding-bottom: 20px;
}

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

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

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

.page-resources__faq-answer a:hover {
    color: var(--secondary-color);
}

/* Final CTA Section */
.page-resources__cta-final {
    padding: 100px 0;
    text-align: center;
    background-color: var(--secondary-color); /* Use secondary color for strong CTA */
    color: var(--text-light);
}

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

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

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

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

.page-resources__btn-primary {
    background-color: var(--primary-color);
    color: var(--text-dark); /* Dark text on gold button for contrast */
    border: 2px solid var(--primary-color);
}

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

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

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

.page-resources__btn-tertiary {
    background-color: var(--secondary-color);
    color: var(--text-light);
    border: 2px solid var(--secondary-color);
    font-size: 0.9em;
    padding: 10px 20px;
    margin-top: auto; /* Push to bottom of card */
}

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

.page-resources__btn-large {
    padding: 18px 35px;
    font-size: 1.2em;
}

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

    .page-resources__hero-description {
        font-size: 1.1em;
    }

    .page-resources__section-title {
        font-size: 2em;
    }

    .page-resources__text-block {
        font-size: 1em;
    }
}

@media (max-width: 768px) {
    .page-resources__container {
        padding: 0 15px !important;
    }

    .page-resources__hero-section {
        min-height: 500px;
        padding-top: var(--header-offset, 120px) !important;
    }

    .page-resources__hero-title {
        font-size: 2em;
    }

    .page-resources__hero-description {
        font-size: 0.95em;
    }

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

    .page-resources__btn-primary,
    .page-resources__btn-secondary,
    .page-resources__btn-tertiary {
        max-width: 100% !important;
        width: 100% !important;
        padding-left: 15px !important;
        padding-right: 15px !important;
    }

    .page-resources__btn-large {
        padding: 15px 25px;
        font-size: 1.1em;
    }

    .page-resources__section {
        padding: 60px 0;
    }

    .page-resources__section-title {
        font-size: 1.8em;
    }

    .page-resources__text-block {
        font-size: 0.9em;
        margin-bottom: 30px;
    }

    .page-resources__feature-card, 
    .page-resources__game-card, 
    .page-resources__tip-card, 
    .page-resources__news-card {
        padding: 20px;
    }

    /* Images responsive */
    .page-resources img {
        max-width: 100% !important;
        height: auto !important;
        display: block !important;
    }

    /* Video responsive */
    .page-resources video,
    .page-resources__video {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    .page-resources__video-wrapper {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 0px !important; /* Adjusted for container padding */
        padding-right: 0px !important; /* Adjusted for container padding */
        overflow: hidden !important;
    }

    .page-resources__faq-question {
        font-size: 1.1em;
        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: 15px 20px 20px 20px;
    }
    
    .page-resources__cta-final .page-resources__section-title {
        font-size: 2em;
    }

    .page-resources__cta-final .page-resources__text-block {
        font-size: 1em;
    }
}

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

    .page-resources__section-title {
        font-size: 1.6em;
    }

    .page-resources__hero-cta-buttons {
        gap: 10px;
    }
    
    .page-resources__btn-primary,
    .page-resources__btn-secondary,
    .page-resources__btn-tertiary {
        font-size: 1em;
        padding: 12px 20px;
    }
}