/* style/resources.css */
:root {
    --primary-color: #FFD700; /* Gold */
    --secondary-color: #8B0000; /* Dark Red */
    --text-dark: #333333;
    --text-light: #ffffff;
    --background-light: #f8f8f8;
    --background-dark: #222222;
}

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

.page-resources__section-title {
    font-size: 2.5em;
    color: var(--secondary-color);
    text-align: center;
    margin-bottom: 20px;
    font-weight: bold;
}

.page-resources__section-subtitle {
    font-size: 1.2em;
    color: var(--text-dark);
    text-align: center;
    margin-bottom: 40px;
}

.page-resources__text-link {
    color: var(--secondary-color);
    text-decoration: none;
    font-weight: bold;
}

.page-resources__text-link:hover {
    text-decoration: underline;
}

/* Buttons */
.page-resources__btn-primary,
.page-resources__btn-secondary,
.page-resources__btn-tertiary {
    display: inline-block;
    padding: 12px 25px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s ease;
    text-align: center;
    cursor: pointer;
    box-sizing: border-box;
}

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

.page-resources__btn-primary:hover {
    background-color: #e6c200; /* Slightly darker gold */
    border-color: #e6c200;
}

.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-light);
}

.page-resources__btn-tertiary {
    background-color: var(--secondary-color);
    color: var(--text-light);
    border: 2px solid var(--secondary-color);
    padding: 8px 15px;
    font-size: 0.9em;
}

.page-resources__btn-tertiary:hover {
    background-color: #a01010;
    border-color: #a01010;
}

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

.page-resources__hero-video {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    transform: translateX(-50%) translateY(-50%);
    z-index: 0;
    object-fit: cover;
}

.page-resources__hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    z-index: 1;
}

.page-resources__hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: var(--text-light);
    max-width: 900px;
    padding: 20px;
}

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

.page-resources__hero-description {
    font-size: 1.3em;
    margin-bottom: 30px;
}

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

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

.page-resources__intro-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}

.page-resources__intro-text p {
    margin-bottom: 15px;
    font-size: 1.1em;
    color: var(--text-dark);
}

.page-resources__intro-image-wrapper {
    text-align: center;
}

.page-resources__intro-image {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* Guides Section */
.page-resources__guides-section {
    padding: 60px 0;
    background-color: #f0f0f0;
}

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

.page-resources__guide-card {
    background-color: var(--text-light);
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    text-align: center;
    padding-bottom: 20px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.page-resources__card-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    margin-bottom: 15px;
}

.page-resources__card-title {
    font-size: 1.4em;
    color: var(--secondary-color);
    margin-bottom: 10px;
    padding: 0 15px;
}

.page-resources__card-title a {
    color: inherit;
    text-decoration: none;
}

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

.page-resources__card-description {
    font-size: 1em;
    color: var(--text-dark);
    padding: 0 15px 20px;
    flex-grow: 1;
}

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

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

.page-resources__strategy-item {
    background-color: var(--text-light);
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    padding: 20px;
    text-align: center;
}

.page-resources__strategy-image {
    max-width: 100%;
    height: 180px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 15px;
}

.page-resources__strategy-title {
    font-size: 1.3em;
    color: var(--secondary-color);
    margin-bottom: 10px;
}

.page-resources__strategy-title a {
    color: inherit;
    text-decoration: none;
}

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

.page-resources__strategy-description {
    font-size: 0.95em;
    color: var(--text-dark);
}

/* News Section */
.page-resources__news-section {
    padding: 60px 0;
    background-color: var(--secondary-color); /* Dark Red background */
    color: var(--text-light);
}

.page-resources__news-section .page-resources__section-title,
.page-resources__news-section .page-resources__section-subtitle {
    color: var(--primary-color); /* Gold text on dark red background */
}

.page-resources__news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
}

.page-resources__news-card {
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    overflow: hidden;
    text-align: center;
    padding-bottom: 20px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    color: var(--text-light);
}

.page-resources__news-card .page-resources__card-image {
    height: 250px;
}

.page-resources__news-card .page-resources__card-title {
    color: var(--primary-color);
}

.page-resources__news-card .page-resources__card-description {
    color: var(--text-light);
}

/* Responsible Gaming Section */
.page-resources__responsible-gaming-section {
    padding: 60px 0;
    background-color: var(--background-light);
}

.page-resources__responsible-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}

.page-resources__responsible-text p {
    margin-bottom: 15px;
    font-size: 1.1em;
    color: var(--text-dark);
}

.page-resources__responsible-image-wrapper {
    text-align: center;
}

.page-resources__responsible-image {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* FAQ Section */
.page-resources__faq-section {
    padding: 60px 0;
    background-color: #f0f0f0;
}

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

.page-resources__faq-item {
    background-color: var(--text-light);
    border-radius: 8px;
    margin-bottom: 15px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    overflow: hidden;
}

.page-resources__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 25px;
    font-size: 1.2em;
    font-weight: bold;
    color: var(--secondary-color);
    cursor: pointer;
    border-bottom: 1px solid #eee;
}

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

.page-resources__faq-question h3 {
    margin: 0;
    font-size: 1em;
    color: inherit;
}

.page-resources__faq-toggle {
    font-size: 1.5em;
    line-height: 1;
    transition: transform 0.3s ease;
}

.page-resources__faq-item.active .page-resources__faq-toggle {
    transform: rotate(45deg); /* Plus sign rotates to form an X or minus */
}

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

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

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

.page-resources__cta-bottom {
    text-align: center;
    padding: 40px 20px;
    background-color: var(--primary-color);
    color: var(--text-light);
    border-radius: 10px;
    margin-top: 40px;
}

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

/* Responsive Design */
@media (max-width: 1024px) {
    .page-resources__hero-title {
        font-size: 3em;
    }
    .page-resources__hero-description {
        font-size: 1.1em;
    }
    .page-resources__intro-grid,
    .page-resources__responsible-content {
        grid-template-columns: 1fr;
    }
    .page-resources__intro-image-wrapper,
    .page-resources__responsible-image-wrapper {
        order: -1; /* Image above text on smaller screens */
        margin-bottom: 30px;
    }
    .page-resources__section-title {
        font-size: 2em;
    }
    .page-resources__section-subtitle {
        font-size: 1em;
    }
}

@media (max-width: 768px) {
    .page-resources__hero-section {
        height: 60vh;
        padding-top: var(--header-offset, 120px) !important; /* Ensure content is below fixed header on mobile */
    }
    .page-resources__hero-title {
        font-size: 2.2em;
    }
    .page-resources__hero-description {
        font-size: 1em;
    }
    .page-resources__hero-cta-buttons {
        flex-direction: column;
        gap: 15px;
    }
    .page-resources__btn-primary,
    .page-resources__btn-secondary {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
        padding-left: 15px;
        padding-right: 15px;
    }
    
    .page-resources__container,
    .page-resources__section,
    .page-resources__card,
    .page-resources__intro-image-wrapper,
    .page-resources__responsible-image-wrapper,
    .page-resources__cta-bottom,
    .page-resources__faq-list {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        overflow: hidden !important; /* Prevent horizontal scroll */
    }
    
    .page-resources img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }

    .page-resources__hero-video {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
    }
    
    .page-resources__card-image,
    .page-resources__strategy-image {
        height: auto !important; /* Allow images to scale proportionally */
    }

    .page-resources__faq-question {
        padding: 15px 20px;
        font-size: 1.1em;
    }
    .page-resources__faq-answer {
        padding: 0 20px;
    }
    .page-resources__faq-item.active .page-resources__faq-answer {
        padding: 15px 20px;
    }

    .page-resources__section-title {
        font-size: 1.8em;
    }
    .page-resources__section-subtitle {
        font-size: 0.9em;
    }
    .page-resources__intro-text p,
    .page-resources__responsible-text p {
        font-size: 1em;
    }
    .page-resources__card-title {
        font-size: 1.2em;
    }
    .page-resources__strategy-title {
        font-size: 1.1em;
    }
}

@media (max-width: 480px) {
    .page-resources__hero-section {
        height: 50vh;
    }
    .page-resources__hero-title {
        font-size: 1.8em;
    }
    .page-resources__hero-description {
        font-size: 0.9em;
    }
    .page-resources__hero-cta-buttons {
        flex-direction: column;
        gap: 10px;
    }
    .page-resources__btn-primary,
    .page-resources__btn-secondary {
        padding: 10px 20px;
    }
    .page-resources__section-title {
        font-size: 1.5em;
    }
    .page-resources__section-subtitle {
        font-size: 0.85em;
    }
}