/* style/resources.css */
:root {
    --primary-color: #017439;
    --secondary-color: #FFFFFF;
    --register-color: #C30808;
    --login-color: #C30808;
    --background-color: #FFFFFF;
    --register-login-font-color: #FFFF00;
    --text-color-dark-bg: #FFFFFF;
    --text-color-light-bg: #333333;
}

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

.page-resources h1, .page-resources h2, .page-resources h3, .page-resources h4, .page-resources h5, .page-resources h6 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    line-height: 1.2;
}

.page-resources p {
    margin-bottom: 1rem;
    color: var(--text-color-light-bg);
}

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

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

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

/* Sections */
.page-resources__section-title {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 1.5rem;
    color: var(--primary-color);
}

.page-resources__section-description {
    font-size: 1.1rem;
    text-align: center;
    max-width: 800px;
    margin: 0 auto 3rem auto;
    color: var(--text-color-light-bg);
}

.page-resources__dark-section .page-resources__section-title,
.page-resources__dark-section .page-resources__section-description {
    color: var(--text-color-dark-bg);
}

/* Hero Section */
.page-resources__hero-section {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 600px;
    padding: 60px 20px;
    padding-top: var(--header-offset, 120px); /* Fixed header offset */
    text-align: center;
    overflow: hidden;
    background-color: var(--primary-color);
    color: var(--text-color-dark-bg);
}

.page-resources__hero-image-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.page-resources__hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.2;
}

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

.page-resources__hero-title {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    color: var(--text-color-dark-bg);
}

.page-resources__hero-description {
    font-size: 1.3rem;
    margin-bottom: 2rem;
    color: var(--text-color-dark-bg);
}

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

.page-resources__cta-buttons--center {
    justify-content: center;
    margin-top: 2rem;
}

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

.page-resources__btn-primary {
    background-color: var(--register-color);
    color: var(--register-login-font-color);
    border: 2px solid var(--register-color);
}

.page-resources__btn-primary:hover {
    background-color: darken(var(--register-color), 10%);
    border-color: darken(var(--register-color), 10%);
    transform: translateY(-2px);
}

.page-resources__btn-primary--large {
    padding: 18px 40px;
    font-size: 1.3rem;
}

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

.page-resources__btn-secondary:hover {
    background-color: var(--text-color-dark-bg);
    color: var(--primary-color);
    transform: translateY(-2px);
}

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

.page-resources__video-wrapper {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
    height: 0;
    overflow: hidden;
    max-width: 800px;
    margin: 0 auto;
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
}

.page-resources__video-link {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    cursor: pointer;
}

.page-resources__video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 12px;
}

/* Guides Section */
.page-resources__guides-section {
    padding: 80px 0;
    background-color: var(--background-color);
}

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

.page-resources__guide-card {
    text-align: left;
}

/* Cards */
.page-resources__card {
    background-color: var(--secondary-color);
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    padding: 25px;
    display: flex;
    flex-direction: column;
    height: 100%;
    color: var(--text-color-light-bg);
}

.page-resources__card-image {
    width: 100%;
    height: 250px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 1.5rem;
}

.page-resources__card-title {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

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

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

.page-resources__card-text {
    font-size: 0.95rem;
    color: var(--text-color-light-bg);
    flex-grow: 1;
    margin-bottom: 1.5rem;
}

/* News & Promotions Section */
.page-resources__news-promotions-section {
    padding: 80px 0;
    background-color: var(--primary-color);
    color: var(--text-color-dark-bg);
}

.page-resources__news-promotions-section .page-resources__section-title,
.page-resources__news-promotions-section .page-resources__section-description {
    color: var(--text-color-dark-bg);
}

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

.page-resources__news-card,
.page-resources__promo-card {
    text-align: left;
}

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

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

.page-resources__promo-card .page-resources__card-image {
    height: 200px;
}

/* Responsible Gambling Section */
.page-resources__responsible-gambling-section {
    padding: 80px 0;
    background-color: var(--background-color);
}

.page-resources__content-wrapper {
    display: flex;
    align-items: center;
    gap: 40px;
    flex-wrap: wrap;
    justify-content: center;
}

.page-resources__image-left {
    flex: 1;
    min-width: 300px;
    max-width: 500px;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
}

.page-resources__text-content {
    flex: 2;
    min-width: 300px;
    max-width: 600px;
    text-align: left;
}

.page-resources__text-content p {
    font-size: 1rem;
    margin-bottom: 1rem;
    color: var(--text-color-light-bg);
}

/* FAQ Section */
.page-resources__faq-section {
    padding: 80px 0;
    background-color: var(--primary-color);
    color: var(--text-color-dark-bg);
}

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

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

.page-resources__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    font-size: 1.15rem;
    font-weight: bold;
    cursor: pointer;
    color: var(--primary-color);
    transition: background-color 0.3s ease;
}

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

.page-resources__faq-toggle {
    font-size: 1.5rem;
    line-height: 1;
    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 25px;
    transition: max-height 0.3s ease, padding 0.3s ease;
    color: var(--text-color-light-bg);
}

.page-resources__faq-item.active .page-resources__faq-answer {
    max-height: 1000px !important; /* Ensure it expands sufficiently */
    padding: 15px 25px 25px 25px;
}

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

/* Final CTA Section */
.page-resources__cta-section {
    padding: 80px 0;
    background-color: var(--primary-color);
    text-align: center;
    color: var(--text-color-dark-bg);
}

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

.page-resources__cta-content .page-resources__section-title,
.page-resources__cta-content .page-resources__section-description {
    color: var(--text-color-dark-bg);
}

/* Responsive Design */
@media (max-width: 1024px) {
    .page-resources__hero-title {
        font-size: 3rem;
    }
    .page-resources__section-title {
        font-size: 2rem;
    }
    .page-resources__guides-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    }
}

@media (max-width: 768px) {
    .page-resources__hero-section {
        padding: 40px 15px;
        padding-top: var(--header-offset, 120px) !important; /* Mobile header offset */
    }
    .page-resources__hero-title {
        font-size: 2.2rem;
    }
    .page-resources__hero-description {
        font-size: 1.1rem;
    }
    .page-resources__cta-buttons {
        flex-direction: column;
        gap: 10px;
    }
    .page-resources__btn-primary,
    .page-resources__btn-secondary {
        max-width: 100% !important;
        width: 100% !important;
        padding: 12px 20px;
        font-size: 1rem;
        white-space: normal !important;
        word-wrap: break-word !important;
    }
    .page-resources__btn-primary--large {
        padding: 15px 30px;
        font-size: 1.1rem;
    }
    .page-resources__section-title {
        font-size: 1.8rem;
    }
    .page-resources__section-description {
        font-size: 1rem;
        margin-bottom: 2rem;
    }
    .page-resources__video-section,
    .page-resources__guides-section,
    .page-resources__news-promotions-section,
    .page-resources__responsible-gambling-section,
    .page-resources__faq-section,
    .page-resources__cta-section {
        padding: 40px 0;
    }
    .page-resources__container {
        padding: 0 15px;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }
    .page-resources__video-wrapper {
        padding-bottom: 65%; /* Adjust aspect ratio for mobile if needed */
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        overflow: hidden !important;
    }
    .page-resources__video {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    .page-resources img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    .page-resources__image-left {
        max-width: 100% !important;
        width: 100% !important;
        min-width: unset;
    }
    .page-resources__content-wrapper {
        flex-direction: column;
        gap: 20px;
    }
    .page-resources__text-content {
        text-align: center;
        min-width: unset;
    }
    .page-resources__faq-question {
        font-size: 1rem;
        padding: 15px 20px;
    }
    .page-resources__faq-answer {
        padding: 0 20px;
    }
    .page-resources__faq-item.active .page-resources__faq-answer {
        padding: 10px 20px 20px 20px;
    }
    .page-resources__card-image {
        height: 200px;
    }
    .page-resources__card-title {
        font-size: 1.3rem;
    }
    .page-resources__card-text {
        font-size: 0.9rem;
    }
    .page-resources__guides-grid {
        gap: 20px;
    }
    .page-resources__news-promotions-section .page-resources__cta-buttons,
    .page-resources__faq-section .page-resources__cta-buttons {
        flex-direction: column;
        gap: 10px;
        padding: 0 15px;
    }
    .page-resources__news-promotions-section .page-resources__cta-buttons .page-resources__btn-primary,
    .page-resources__faq-section .page-resources__cta-buttons .page-resources__btn-secondary {
        max-width: 100% !important;
        width: 100% !important;
    }
}

@media (max-width: 480px) {
    .page-resources__hero-title {
        font-size: 1.8rem;
    }
    .page-resources__hero-description {
        font-size: 1rem;
    }
    .page-resources__section-title {
        font-size: 1.5rem;
    }
    .page-resources__faq-question {
        font-size: 0.95rem;
    }
    .page-resources__faq-toggle {
        font-size: 1.2rem;
    }
}