/* style/resources.css */
.page-resources {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #333333; /* Default text color for light background */
    background-color: var(--secondary-color, #FFFFFF); /* Assuming shared.css defines --secondary-color as #FFFFFF */
}

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

.page-resources__section {
    padding: 60px 0;
    text-align: center;
}

.page-resources__section-title {
    font-size: 2.5em;
    color: #017439;
    margin-bottom: 20px;
    font-weight: bold;
}

.page-resources__section-description {
    font-size: 1.1em;
    color: #555555;
    margin-bottom: 40px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* Hero Section */
.page-resources__hero-section {
    position: relative;
    padding: 120px 0 60px; /* Adjust padding-top for fixed header */
    color: #ffffff;
    text-align: center;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.page-resources__dark-section {
    background-color: #017439;
    color: #ffffff;
}

.page-resources__dark-section .page-resources__section-title,
.page-resources__dark-section .page-resources__section-description {
    color: #ffffff;
}

.page-resources__hero-title {
    font-size: 3.5em;
    margin-bottom: 20px;
    font-weight: bold;
    color: #ffffff;
}

.page-resources__hero-description {
    font-size: 1.3em;
    margin-bottom: 40px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
    color: #f0f0f0;
}

.page-resources__hero-video-wrapper {
    position: relative;
    width: 100%;
    max-width: 1000px;
    margin: 0 auto 40px;
    padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
    height: 0;
    overflow: hidden;
    background-color: #000;
    border-radius: 10px;
}

.page-resources__hero-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 10px;
    cursor: pointer;
}

.page-resources__cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 40px;
}

.page-resources__cta-buttons--center {
    margin-top: 60px;
}

.page-resources__btn-primary,
.page-resources__btn-secondary {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 5px;
    font-size: 1.1em;
    font-weight: bold;
    text-decoration: none;
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
    box-sizing: border-box;
    white-space: normal;
    word-wrap: break-word;
}

.page-resources__btn-primary {
    background-color: #C30808; /* Register/Login color */
    color: #FFFF00; /* Register/Login font color */
    border: 2px solid #C30808;
}

.page-resources__btn-primary:hover {
    background-color: #e02020;
    border-color: #e02020;
}

.page-resources__btn-secondary {
    background-color: transparent;
    color: #ffffff;
    border: 2px solid #ffffff;
}

.page-resources__hero-section .page-resources__btn-secondary {
    color: #ffffff;
    border-color: #ffffff;
}

.page-resources__hero-section .page-resources__btn-secondary:hover {
    background-color: #ffffff;
    color: #017439;
}

.page-resources__btn-text {
    color: #017439;
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s ease;
}

.page-resources__btn-text:hover {
    color: #005f2e;
}

/* Game Guides Grid */
.page-resources__game-guides .page-resources__btn-primary {
    background-color: #017439;
    color: #ffffff;
    border-color: #017439;
}

.page-resources__game-guides .page-resources__btn-primary:hover {
    background-color: #005f2e;
    border-color: #005f2e;
}

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

.page-resources__card {
    background-color: #ffffff;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    text-align: left;
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.page-resources__card:hover {
    transform: translateY(-5px);
}

.page-resources__card-image {
    width: 100%;
    height: 250px; /* Fixed height for consistency */
    object-fit: cover;
    display: block;
}

.page-resources__card-title {
    font-size: 1.4em;
    color: #017439;
    margin: 20px 20px 10px;
    font-weight: bold;
}

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

.page-resources__card-title a:hover {
    color: #005f2e;
}

.page-resources__card-text {
    font-size: 1em;
    color: #555555;
    margin: 0 20px 20px;
    flex-grow: 1;
}

.page-resources__card .page-resources__btn-text {
    margin: 0 20px 20px;
    align-self: flex-start;
}

/* Security & Responsible Gaming */
.page-resources__security-responsible-gaming .page-resources__btn-secondary {
    background-color: transparent;
    color: #ffffff;
    border-color: #ffffff;
}

.page-resources__security-responsible-gaming .page-resources__btn-secondary:hover {
    background-color: #ffffff;
    color: #017439;
}

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

.page-resources__feature-item {
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 30px;
    text-align: center;
    transition: background-color 0.3s ease;
}

.page-resources__feature-item:hover {
    background-color: rgba(255, 255, 255, 0.2);
}

.page-resources__feature-image {
    width: 100%;
    max-width: 300px;
    height: auto;
    margin-bottom: 20px;
    border-radius: 8px;
}

.page-resources__feature-title {
    font-size: 1.5em;
    color: #ffffff;
    margin-bottom: 15px;
}

.page-resources__feature-title a {
    color: #ffffff;
    text-decoration: none;
}

.page-resources__feature-title a:hover {
    color: #f0f0f0;
}

.page-resources__feature-text {
    font-size: 1em;
    color: #f0f0f0;
    margin-bottom: 20px;
}

.page-resources__feature-item .page-resources__btn-text {
    color: #ffffff;
}

.page-resources__feature-item .page-resources__btn-text:hover {
    color: #e0e0e0;
}

/* Promotions */
.page-resources__promotions .page-resources__btn-primary {
    background-color: #017439;
    color: #ffffff;
    border-color: #017439;
}

.page-resources__promotions .page-resources__btn-primary:hover {
    background-color: #005f2e;
    border-color: #005f2e;
}

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

/* News & Updates */
.page-resources__news-updates .page-resources__btn-secondary {
    background-color: transparent;
    color: #ffffff;
    border-color: #ffffff;
}

.page-resources__news-updates .page-resources__btn-secondary:hover {
    background-color: #ffffff;
    color: #017439;
}

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

/* FAQ Section */
.page-resources__faq {
    background-color: #f8f8f8;
}

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

.page-resources__faq-item {
    background-color: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
    transition: box-shadow 0.3s ease;
}

.page-resources__faq-item:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.page-resources__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    font-size: 1.2em;
    font-weight: bold;
    color: #017439;
    cursor: pointer;
    background-color: #f9f9f9;
    border-bottom: 1px solid #e0e0e0;
}

.page-resources__faq-item.active .page-resources__faq-question {
    border-bottom: none;
}

.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(0deg); /*  becomes "-" */
}

.page-resources__faq-answer {
    max-height: 0;
    overflow: hidden;
    padding: 0 25px;
    transition: max-height 0.3s ease, padding 0.3s ease;
    text-align: left;
    color: #555555;
}

.page-resources__faq-item.active .page-resources__faq-answer {
    max-height: 1000px !important; /* Sufficiently large to show content */
    padding: 20px 25px;
}

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

.page-resources__faq-answer a {
    color: #017439;
    text-decoration: none;
    font-weight: bold;
}

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

/* Responsive Design */
@media (max-width: 1024px) {
    .page-resources__hero-title {
        font-size: 3em;
    }
    .page-resources__section-title {
        font-size: 2em;
    }
    .page-resources__card-image {
        height: 200px;
    }
    .page-resources__feature-image {
        max-width: 250px;
    }
}

@media (max-width: 768px) {
    .page-resources {
        font-size: 16px;
        line-height: 1.6;
    }
    .page-resources__hero-section {
        padding: var(--header-offset, 120px) 0 40px; /* Mobile-specific padding-top */
    }
    .page-resources__hero-title {
        font-size: 2.2em;
    }
    .page-resources__hero-description {
        font-size: 1.1em;
    }
    .page-resources__section {
        padding: 40px 0;
    }
    .page-resources__section-title {
        font-size: 1.8em;
    }
    .page-resources__section-description {
        font-size: 1em;
    }

    .page-resources__cta-buttons {
        flex-direction: column;
        gap: 15px;
        padding: 0 15px;
    }
    .page-resources__btn-primary,
    .page-resources__btn-secondary {
        width: 100% !important;
        max-width: 100% !important;
        padding: 12px 20px;
        font-size: 1em;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
    }
    .page-resources__cta-buttons--center {
        padding: 0 15px;
    }

    .page-resources__hero-video-wrapper {
        margin: 0 15px 30px;
        width: auto;
    }
    .page-resources__hero-video {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }

    .page-resources__guide-grid,
    .page-resources__feature-grid,
    .page-resources__promotion-grid,
    .page-resources__news-grid {
        grid-template-columns: 1fr;
        gap: 20px;
        margin-top: 30px;
        padding: 0 15px;
    }
    .page-resources__card,
    .page-resources__feature-item {
        margin: 0 auto;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box !important;
        padding: 0 !important; /* Resetting padding for card */
        box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    }
    .page-resources__card-image {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    .page-resources__feature-image {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
        margin: 0 auto 20px;
    }
    .page-resources__card-title, .page-resources__card-text, .page-resources__card .page-resources__btn-text {
        margin-left: 15px;
        margin-right: 15px;
    }
    .page-resources__feature-item {
        padding: 20px;
    }

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

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