/* style/resources.css */

/* Base styles and variables */
:root {
    --primary-color: #017439;
    --secondary-color: #FFFFFF;
    --button-register-color: #C30808;
    --button-login-color: #C30808;
    --button-font-color: #FFFF00;
    --text-dark: #333333;
    --text-light: #ffffff;
    --border-light: #e0e0e0;
    --bg-light: #ffffff;
}

.page-resources {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-light); /* Default text color for dark body background */
    background-color: transparent; /* Body background is handled by shared.css */
}

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

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

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

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

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

.page-resources__hero-description {
    font-size: 1.2em;
    margin-bottom: 30px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    color: var(--secondary-color);
}

.page-resources__section {
    padding: 60px 20px;
    background-color: transparent; /* Default, overridden by specific sections */
}

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

.page-resources__section-title {
    font-size: 2.5em;
    color: var(--primary-color);
    text-align: center;
    margin-bottom: 40px;
    position: relative;
    padding-bottom: 15px;
}

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

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

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

.page-resources__list {
    list-style: disc inside;
    margin-bottom: 20px;
    padding-left: 20px;
    color: var(--text-dark);
}

.page-resources__list-item {
    margin-bottom: 10px;
    color: var(--text-dark);
}

.page-resources__grid-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
    margin-bottom: 40px;
}

.page-resources__grid-layout--reversed {
    grid-template-columns: 1fr 1fr;
}

.page-resources__image-wrapper {
    text-align: center;
}

.page-resources__image {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.page-resources__content-block {
    padding: 20px 0;
}

/* Buttons */
.page-resources__btn-primary,
.page-resources__btn-secondary {
    display: inline-block;
    padding: 12px 25px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1em;
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
    margin-top: 20px;
    margin-right: 15px;
    box-sizing: border-box;
    white-space: normal;
    word-wrap: break-word;
}

.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: darken(var(--primary-color), 10%);
    border-color: darken(var(--primary-color), 10%);
}

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

/* Specific section styles */
.page-resources__download-guide {
    background-color: var(--bg-light);
    color: var(--text-dark);
}

.page-resources__betting-guide {
    background-color: var(--primary-color);
    color: var(--text-light);
}

.page-resources__betting-guide .page-resources__section-title,
.page-resources__betting-guide .page-resources__subtitle {
    color: var(--secondary-color);
}

.page-resources__betting-guide .page-resources__section-title::after {
    background-color: var(--secondary-color);
}

.page-resources__betting-guide .page-resources__paragraph,
.page-resources__betting-guide .page-resources__list-item {
    color: var(--text-light);
}

.page-resources__promotions-news {
    background-color: var(--bg-light);
    color: var(--text-dark);
}

.page-resources__faq-section {
    background-color: #f8f8f8;
    color: var(--text-dark);
}

.page-resources__faq-list {
    margin-top: 30px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

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

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

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

.page-resources__faq-title {
    margin: 0;
    color: var(--primary-color);
}

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

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

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

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

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

.page-resources__contact-support {
    background-color: var(--bg-light);
    color: var(--text-dark);
}

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

.page-resources__contact-image {
    max-width: 400px;
    height: auto;
    border-radius: 8px;
}

.page-resources__contact-text {
    max-width: 500px;
    text-align: left;
}

.page-resources__contact-text .page-resources__section-title {
    text-align: left;
    color: var(--primary-color);
}

.page-resources__contact-text .page-resources__section-title::after {
    left: 0;
    transform: translateX(0);
}

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

@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__section-title {
        font-size: 2em;
        margin-bottom: 30px;
    }

    .page-resources__subtitle {
        font-size: 1.5em;
    }

    .page-resources__grid-layout,
    .page-resources__grid-layout--reversed {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .page-resources__grid-layout--reversed .page-resources__image-wrapper {
        order: -1; /* Image first on mobile */
    }

    .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;
        margin-right: 0;
        margin-bottom: 10px;
    }

    .page-resources__hero-button {
        margin-bottom: 0;
    }

    .page-resources__container,
    .page-resources__section,
    .page-resources__download-guide,
    .page-resources__betting-guide,
    .page-resources__promotions-news,
    .page-resources__faq-section,
    .page-resources__contact-support,
    .page-resources__flex-center {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        overflow: hidden !important;
    }

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

    .page-resources__contact-text {
        text-align: center;
    }

    .page-resources__contact-text .page-resources__section-title {
        text-align: center;
    }

    .page-resources__contact-text .page-resources__section-title::after {
        left: 50%;
        transform: translateX(-50%);
    }

    .page-resources__faq-question {
        font-size: 1em;
    }
}

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

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

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

    .page-resources__subtitle {
        font-size: 1.3em;
    }
}