/* style/resources.css */

/* Variables for consistency */
:root {
    --primary-color: #FFD700; /* Gold */
    --secondary-color: #1A202C; /* Dark Charcoal */
    --text-light: #F0F0F0;
    --text-dark: #333333;
    --background-dark: #222222;
    --background-light: #FFFFFF;
}

/* Base styles for the page content */
.page-resources {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: var(--text-dark); /* Default text color on light backgrounds */
    background-color: var(--background-light);
}

.page-resources h1,
.page-resources h2,
.page-resources h3 {
    color: var(--secondary-color); /* Darker headings for contrast */
    margin-bottom: 20px;
}

.page-resources h1 { font-size: 2.8em; text-align: center; }
.page-resources h2 { font-size: 2.2em; border-bottom: 2px solid var(--primary-color); padding-bottom: 10px; margin-top: 40px; }
.page-resources h3 { font-size: 1.8em; }

.page-resources p {
    margin-bottom: 15px;
}

.page-resources a {
    color: var(--primary-color); /* Gold links */
    text-decoration: none;
    transition: color 0.3s ease;
}

.page-resources a:hover {
    color: #E0B800; /* Slightly darker gold on hover */
    text-decoration: underline;
}

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

/* CTA Button Styles */
.page-resources .cta-button {
    display: inline-block;
    padding: 15px 30px;
    background-color: var(--primary-color);
    color: var(--secondary-color); /* Dark text on gold button for contrast */
    border-radius: 5px;
    font-size: 1.1em;
    font-weight: bold;
    text-align: center;
    text-decoration: none;
    transition: background-color 0.3s ease, transform 0.3s ease, color 0.3s ease;
    border: none;
    cursor: pointer;
    margin-top: 20px;
}

.page-resources .cta-button:hover {
    background-color: #E0B800; /* Darker gold on hover */
    color: var(--secondary-color);
    transform: translateY(-2px);
    text-decoration: none;
}

/* Hero Section */
.page-resources .hero-resources {
    background: var(--secondary-color); /* Dark background for hero */
    padding: 60px 0;
    text-align: center;
    color: var(--text-light); /* Light text on dark background */
}

.page-resources .hero-container {
    max-width: 1000px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.page-resources .hero-image {
    width: 100%;
    max-width: 800px; /* Adjust max-width for image */
    height: auto;
    border-radius: 10px;
    margin-bottom: 30px;
    object-fit: cover;
}

.page-resources .hero-content h1 {
    color: var(--primary-color); /* Gold heading */
    font-size: 3.2em;
    margin-bottom: 20px;
    line-height: 1.2;
}

.page-resources .hero-content p {
    font-size: 1.1em;
    color: var(--text-light);
    margin-bottom: 30px;
}

/* Section Game Guides */
.page-resources .section-game-guides {
    padding: 60px 0;
    background-color: #f9f9f9;
}

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

.page-resources .guide-card {
    background-color: var(--background-light);
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

.page-resources .guide-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.page-resources .guide-card .card-image {
    width: 100%;
    height: 200px; /* Fixed height for consistency */
    object-fit: cover;
    display: block;
    /* NO CSS FILTER PROPERTIES */
}

.page-resources .guide-card h3 {
    padding: 15px;
    margin-top: 0;
    margin-bottom: 10px;
    font-size: 1.5em;
    color: var(--secondary-color);
}

.page-resources .guide-card h3 a {
    color: var(--secondary-color); /* Card title links are dark */
    text-decoration: none;
}

.page-resources .guide-card h3 a:hover {
    color: var(--primary-color); /* Gold on hover */
    text-decoration: underline;
}

.page-resources .guide-card p {
    padding: 0 15px;
    flex-grow: 1; /* Allows paragraph to take available space */
}

.page-resources .guide-card .read-more {
    display: block;
    padding: 15px;
    text-align: right;
    font-weight: bold;
    color: var(--primary-color);
}

.page-resources .guide-card .read-more:hover {
    text-decoration: underline;
}

/* Section Policies */
.page-resources .section-policies {
    padding: 60px 0;
    background-color: var(--background-dark); /* Dark background for policies */
    color: var(--text-light);
}

.page-resources .section-policies h2 {
    color: var(--primary-color);
    border-color: var(--text-light);
}

.page-resources .section-policies p {
    color: var(--text-light);
}

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

.page-resources .policy-item {
    background-color: #333333; /* Slightly lighter dark for card background */
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    padding: 25px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-resources .policy-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.page-resources .policy-item .policy-icon {
    max-width: 250px; /* Ensure images are not small icons */
    min-width: 200px;
    height: auto;
    min-height: 150px; /* Ensure a minimum height */
    object-fit: contain;
    margin: 0 auto 20px auto; /* Center image */
    display: block;
    /* NO CSS FILTER PROPERTIES */
}

.page-resources .policy-item h3 {
    color: var(--primary-color);
    margin-bottom: 15px;
    font-size: 1.6em;
}

.page-resources .policy-item h3 a {
    color: var(--primary-color);
}

.page-resources .policy-item h3 a:hover {
    color: #E0B800;
}

.page-resources .policy-item p {
    color: var(--text-light);
}

.page-resources .policy-item .read-more {
    color: var(--primary-color);
    font-weight: bold;
    margin-top: 15px;
    display: inline-block;
}

/* Section Transactions */
.page-resources .section-transactions {
    padding: 60px 0;
    background-color: #f9f9f9;
}

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

.page-resources .transaction-guide-item {
    background-color: var(--background-light);
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    padding: 25px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-resources .transaction-guide-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.page-resources .transaction-guide-item .transaction-icon {
    max-width: 280px; /* Ensure images are not small icons */
    min-width: 200px;
    height: auto;
    min-height: 150px; /* Ensure a minimum height */
    object-fit: contain;
    margin: 0 auto 20px auto; /* Center image */
    display: block;
    /* NO CSS FILTER PROPERTIES */
}

.page-resources .transaction-guide-item h3 {
    color: var(--secondary-color);
    margin-bottom: 15px;
    font-size: 1.6em;
}

.page-resources .transaction-guide-item h3 a {
    color: var(--secondary-color);
}

.page-resources .transaction-guide-item h3 a:hover {
    color: var(--primary-color);
}

/* Section FAQ */
.page-resources .section-faq {
    padding: 60px 0;
    background-color: var(--background-dark);
    color: var(--text-light);
}

.page-resources .section-faq h2 {
    color: var(--primary-color);
    border-color: var(--text-light);
}

.page-resources .section-faq p {
    color: var(--text-light);
}

.page-resources .faq-list {
    margin-top: 40px;
}

.page-resources .faq-item {
    margin-bottom: 15px;
    border: 1px solid #444; /* Darker border for dark background */
    border-radius: 8px;
    background-color: #333; /* Slightly lighter dark for FAQ item */
    color: var(--text-light);
}

.page-resources .faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 25px;
    background: #444; /* Darker background for question header */
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.page-resources .faq-question:hover {
    background: #555;
}

.page-resources .faq-question h3 {
    margin: 0;
    font-size: 1.3em;
    color: var(--primary-color); /* Gold question title */
}

.page-resources .faq-toggle {
    font-size: 24px;
    font-weight: bold;
    color: var(--primary-color); /* Gold toggle icon */
    transition: transform 0.3s ease;
    line-height: 1; /* Ensure consistent height */
}

.page-resources .faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
    padding: 0 25px; /* Initial padding matches question */
    background: #333; /* Background for answer */
    border-radius: 0 0 8px 8px;
}

.page-resources .faq-item.active .faq-answer {
    max-height: 500px; /* Sufficient height for content */
    padding: 25px;
}

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

.page-resources .faq-answer p,
.page-resources .faq-answer ol,
.page-resources .faq-answer ul {
    color: var(--text-light);
    margin-bottom: 10px;
}

.page-resources .faq-answer ol li,
.page-resources .faq-answer ul li {
    margin-bottom: 5px;
}

.page-resources .faq-answer a {
    color: var(--primary-color);
}

/* Section Contact */
.page-resources .section-contact {
    padding: 60px 0;
    background-color: #f9f9f9;
    text-align: center;
}

.page-resources .section-contact h2 {
    color: var(--secondary-color);
    border-color: var(--primary-color);
}

/* Responsive Design */
@media (max-width: 992px) {
    .page-resources h1 { font-size: 2.4em; }
    .page-resources h2 { font-size: 1.8em; }
    .page-resources h3 { font-size: 1.4em; }

    .page-resources .hero-content h1 {
        font-size: 2.8em;
    }

    .page-resources .guide-cards,
    .page-resources .policy-items,
    .page-resources .transaction-guides {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: 20px;
    }
}

@media (max-width: 768px) {
    .page-resources h1 { font-size: 2em; }
    .page-resources h2 { font-size: 1.6em; }
    .page-resources h3 { font-size: 1.2em; }

    .page-resources .hero-content h1 {
        font-size: 2.2em;
    }
    .page-resources .hero-content p {
        font-size: 1em;
    }
    .page-resources .cta-button {
        padding: 12px 25px;
        font-size: 1em;
    }
    .page-resources .hero-resources {
        padding: 40px 0;
    }

    .page-resources .guide-card .card-image {
        height: 180px;
    }

    .page-resources .policy-item .policy-icon,
    .page-resources .transaction-guide-item .transaction-icon {
        max-width: 180px; /* Adjust for smaller screens but keep > 200px equivalent */
        min-width: 150px;
        min-height: 100px;
    }

    .page-resources .faq-question {
        padding: 15px 20px;
        flex-direction: column;
        align-items: flex-start;
    }
    .page-resources .faq-question h3 {
        margin-bottom: 10px;
        font-size: 1.1em;
    }
    .page-resources .faq-toggle {
        align-self: flex-end;
        margin-top: -30px; /* Adjust to position correctly */
    }
    .page-resources .faq-answer {
        padding: 0 20px;
    }
    .page-resources .faq-item.active .faq-answer {
        padding: 20px;
    }
}

@media (max-width: 480px) {
    .page-resources .container {
        padding: 15px;
    }
    .page-resources h1 { font-size: 1.8em; }
    .page-resources h2 { font-size: 1.4em; }
    .page-resources h3 { font-size: 1.1em; }

    .page-resources .hero-content h1 {
        font-size: 1.8em;
    }
    .page-resources .hero-image {
        max-width: 100%;
    }

    .page-resources .guide-cards,
    .page-resources .policy-items,
    .page-resources .transaction-guides {
        grid-template-columns: 1fr;
    }
}