:root {
    --primary-color: #0A2239; /* Deep Blue */
    --secondary-color: #FFD700; /* Gold */
    --accent-color: #DC143C; /* Crimson Red */
    --text-light: #ffffff;
    --text-dark: #333333;
    --background-light: #f4f7f6;
    --background-dark: #071a2b; /* Slightly darker than primary for contrast */
    --border-color: #e0e0e0;
    --card-bg: #ffffff;
    --shadow-light: rgba(0, 0, 0, 0.1);
}

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

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

/* Typography */
.page-resources h1,
.page-resources h2,
.page-resources h3 {
    color: var(--primary-color);
    margin-bottom: 20px;
    font-weight: bold;
    line-height: 1.3;
}

.page-resources h1 {
    font-size: 3.2em;
    text-align: center;
    color: var(--text-light); /* For hero section */
}

.page-resources h2 {
    font-size: 2.5em;
    text-align: center;
    margin-top: 40px;
    margin-bottom: 30px;
    position: relative;
    padding-bottom: 15px;
}

.page-resources h2::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background-color: var(--secondary-color);
    border-radius: 2px;
}

.page-resources h3 {
    font-size: 1.8em;
    color: var(--primary-color);
}

.page-resources p {
    margin-bottom: 15px;
    font-size: 1.1em;
}

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

.page-resources a:hover {
    color: var(--secondary-color);
    text-decoration: underline;
}

/* Buttons */
.page-resources .cta-button {
    display: inline-block;
    background-color: var(--accent-color);
    color: var(--text-light);
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1em;
    transition: background-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
    text-align: center;
    border: none;
    cursor: pointer;
}

.page-resources .cta-button:hover {
    background-color: #b31130; /* Darker crimson */
    transform: translateY(-3px);
    box-shadow: 0 8px 16px var(--shadow-light);
}

.page-resources .secondary-button {
    background-color: var(--primary-color);
    color: var(--text-light);
}

.page-resources .secondary-button:hover {
    background-color: #071a2b; /* Darker primary */
}

.page-resources .read-more-button {
    display: inline-block;
    padding: 10px 20px;
    background-color: var(--primary-color);
    color: var(--text-light);
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    font-size: 0.95em;
    transition: background-color 0.3s ease, transform 0.3s ease;
    margin-top: 10px;
}

.page-resources .read-more-button:hover {
    background-color: var(--secondary-color);
    color: var(--primary-color);
    transform: translateY(-2px);
}

/* Hero Banner Section */
.page-resources .hero-banner {
    background: linear-gradient(135deg, var(--primary-color) 0%, #1a3a5a 100%);
    color: var(--text-light);
    padding: 80px 20px;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 40px;
    text-align: left;
    min-height: 450px;
}

.page-resources .hero-content {
    flex: 1;
    max-width: 600px;
}

.page-resources .hero-title {
    font-size: 3.5em;
    margin-bottom: 20px;
    color: var(--secondary-color);
    text-align: left;
}

.page-resources .hero-description {
    font-size: 1.2em;
    line-height: 1.8;
    margin-bottom: 30px;
    color: rgba(255, 255, 255, 0.9);
}

.page-resources .hero-banner .cta-button {
    background-color: var(--secondary-color);
    color: var(--primary-color);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.page-resources .hero-banner .cta-button:hover {
    background-color: #e6c200; /* Slightly darker gold */
    transform: translateY(-4px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.4);
}

.page-resources .hero-image-wrapper {
    flex: 1;
    max-width: 500px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.page-resources .hero-image {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

/* Introduction Section */
.page-resources .introduction-section {
    padding: 60px 0;
    background-color: var(--background-light);
}

.page-resources .introduction-section .section-description {
    max-width: 900px;
    margin: 0 auto 20px auto;
    text-align: center;
    font-size: 1.15em;
    color: var(--text-dark);
}

/* Guides Section */
.page-resources .guides-section {
    padding: 60px 0;
    background-color: #eef2f5; /* Lighter background for contrast */
}

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

.page-resources .guide-card {
    background-color: var(--card-bg);
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    text-align: center;
    padding-bottom: 20px;
}

.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;
    object-fit: cover;
    margin-bottom: 15px;
}

.page-resources .guide-card .card-title {
    font-size: 1.4em;
    margin: 0 15px 10px 15px;
    color: var(--primary-color);
}

.page-resources .guide-card .card-title a {
    color: var(--primary-color);
    text-decoration: none;
}

.page-resources .guide-card .card-title a:hover {
    color: var(--secondary-color);
    text-decoration: underline;
}

.page-resources .guide-card .card-text {
    font-size: 0.95em;
    color: #555;
    padding: 0 15px;
    flex-grow: 1; /* Ensures text takes available space */
}

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

.page-resources .game-strategies-section .section-title,
.page-resources .game-strategies-section .section-description {
    color: var(--text-light);
}

.page-resources .game-strategies-section h2::after {
    background-color: var(--secondary-color);
}

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

.page-resources .strategy-item {
    background-color: #1a3a5a; /* Darker shade of primary */
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    text-align: center;
    padding-bottom: 20px;
}

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

.page-resources .strategy-item .strategy-image {
    width: 100%;
    height: 220px;
    object-fit: cover;
    margin-bottom: 15px;
}

.page-resources .strategy-item .strategy-title {
    font-size: 1.5em;
    margin: 0 15px 10px 15px;
    color: var(--secondary-color);
}

.page-resources .strategy-item .strategy-title a {
    color: var(--secondary-color);
    text-decoration: none;
}

.page-resources .strategy-item .strategy-title a:hover {
    color: var(--text-light);
    text-decoration: underline;
}

.page-resources .strategy-item .strategy-text {
    font-size: 1em;
    color: rgba(255, 255, 255, 0.8);
    padding: 0 15px;
    flex-grow: 1;
}

.page-resources .strategy-item .read-more-button {
    background-color: var(--secondary-color);
    color: var(--primary-color);
}

.page-resources .strategy-item .read-more-button:hover {
    background-color: var(--accent-color);
    color: var(--text-light);
}

/* Responsible Gambling Section */
.page-resources .responsible-gambling-section {
    padding: 60px 0;
    background-color: var(--background-light);
}

.page-resources .responsibility-list {
    list-style: none;
    padding: 0;
    max-width: 800px;
    margin: 30px auto;
    text-align: center;
}

.page-resources .responsibility-list li {
    background-color: var(--card-bg);
    margin-bottom: 15px;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    font-size: 1.1em;
    color: var(--text-dark);
}

.page-resources .responsibility-list li strong {
    color: var(--primary-color);
}

.page-resources .responsible-gambling-section .cta-button {
    margin-top: 20px;
    display: block;
    width: fit-content;
    margin-left: auto;
    margin-right: auto;
}

/* FAQ Section */
.page-resources .faq-section {
    padding: 60px 0;
    background-color: #eef2f5;
}

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

.faq-item {
    margin-bottom: 15px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 25px;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 8px; /* Apply to top corners initially */
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.faq-item.active .faq-question {
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
}

.faq-question:hover {
    background: #f5f5f5;
}

.faq-question h3 {
    margin: 0;
    font-size: 1.25em;
    color: var(--primary-color);
}

.faq-toggle {
    font-size: 2em;
    font-weight: bold;
    color: var(--primary-color);
    transition: transform 0.3s ease;
    line-height: 1; /* To center the +/- */
}

.faq-item.active .faq-toggle {
    transform: rotate(45deg);
    color: var(--accent-color);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease-out, padding 0.4s ease-out;
    padding: 0 25px; /* Initial padding for collapsed state */
    background: #fcfcfc;
    border: 1px solid var(--border-color);
    border-top: none;
    border-bottom-left-radius: 8px;
    border-bottom-right-radius: 8px;
}

.faq-item.active .faq-answer {
    max-height: 500px; /* Sufficient height for content */
    padding: 20px 25px;
    border-top: 1px solid var(--border-color);
}

.faq-answer p {
    margin-bottom: 0;
    font-size: 1.05em;
    color: #444;
}

/* Latest Articles Section */
.page-resources .latest-articles-section {
    padding: 60px 0 80px 0;
    background-color: var(--background-light);
}

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

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

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

.page-resources .article-card .article-image {
    width: 100%;
    height: 220px;
    object-fit: cover;
    margin-bottom: 15px;
}

.page-resources .article-card .article-title {
    font-size: 1.4em;
    margin: 0 20px 10px 20px;
    color: var(--primary-color);
}

.page-resources .article-card .article-title a {
    color: var(--primary-color);
    text-decoration: none;
}

.page-resources .article-card .article-title a:hover {
    color: var(--secondary-color);
    text-decoration: underline;
}

.page-resources .article-card .article-excerpt {
    font-size: 0.95em;
    color: #555;
    padding: 0 20px;
    flex-grow: 1;
    margin-bottom: 20px;
}

.page-resources .article-card .read-more-button {
    margin: 0 20px 20px 20px;
    align-self: flex-start;
}

.page-resources .view-all-articles {
    text-align: center;
    margin-top: 50px;
}


/* Responsive Design */
@media (max-width: 992px) {
    .page-resources .hero-banner {
        flex-direction: column;
        text-align: center;
        padding: 60px 20px;
    }

    .page-resources .hero-title {
        font-size: 2.8em;
        text-align: center;
    }

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

    .page-resources .hero-image-wrapper {
        margin-top: 40px;
    }

    .page-resources h1 {
        font-size: 2.5em;
    }

    .page-resources h2 {
        font-size: 2em;
    }

    .page-resources h3 {
        font-size: 1.6em;
    }

    .page-resources .guide-cards,
    .page-resources .strategy-grid,
    .page-resources .article-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 25px;
    }
}

@media (max-width: 768px) {
    .page-resources .hero-banner {
        padding: 40px 15px;
        gap: 20px;
    }

    .page-resources .hero-title {
        font-size: 2.2em;
    }

    .page-resources .hero-description {
        font-size: 1em;
    }

    .page-resources .cta-button {
        padding: 12px 25px;
        font-size: 1em;
    }

    .page-resources .section-title {
        font-size: 1.8em;
        margin-top: 30px;
        margin-bottom: 20px;
    }

    .page-resources .section-description {
        font-size: 1em;
    }

    .page-resources .guide-card,
    .page-resources .strategy-item,
    .page-resources .article-card {
        padding-bottom: 15px;
    }

    .page-resources .guide-card .card-image,
    .page-resources .strategy-item .strategy-image,
    .page-resources .article-card .article-image {
        height: 180px;
        margin-bottom: 10px;
    }

    .page-resources .guide-card .card-title,
    .page-resources .strategy-item .strategy-title,
    .page-resources .article-card .article-title {
        font-size: 1.2em;
        margin: 0 10px 8px 10px;
    }

    .page-resources .guide-card .card-text,
    .page-resources .strategy-item .strategy-text,
    .page-resources .article-card .article-excerpt {
        font-size: 0.9em;
        padding: 0 10px;
    }

    .page-resources .read-more-button {
        padding: 8px 15px;
        font-size: 0.9em;
        margin-top: 8px;
    }

    .faq-question {
        padding: 15px 20px;
    }

    .faq-question h3 {
        font-size: 1.1em;
    }

    .faq-toggle {
        font-size: 1.8em;
    }

    .faq-answer {
        padding: 15px 20px;
    }

    .faq-answer p {
        font-size: 0.95em;
    }
}

@media (max-width: 480px) {
    .page-resources h1 {
        font-size: 2em;
    }
    .page-resources h2 {
        font-size: 1.6em;
    }
    .page-resources h3 {
        font-size: 1.3em;
    }
    .page-resources .hero-title {
        font-size: 1.8em;
    }
    .page-resources .hero-description {
        font-size: 0.95em;
    }
    .page-resources .cta-button {
        width: 100%;
        max-width: 280px;
    }
    .page-resources .guide-cards,
    .page-resources .strategy-grid,
    .page-resources .article-grid {
        grid-template-columns: 1fr;
    }
}