/* style/resources.css */

/* Base styles for the page content */
.page-resources {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #ffffff; /* Light text on dark body background */
    background-color: #000000; /* Body background color from shared.css */
}

/* Fixed header offset to prevent content being covered */
.page-resources__hero-section {
    padding-top: var(--header-offset, 120px);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    min-height: 600px;
    color: #ffffff;
}

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

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

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

.page-resources__hero-description {
    font-size: 1.2em;
    margin-bottom: 40px;
    max-width: 800px;
    color: #f0f0f0;
}

.page-resources__section-title {
    font-size: 2.5em;
    margin-bottom: 30px;
    text-align: center;
    color: #26A9E0;
}

.page-resources__subsection-title {
    font-size: 1.8em;
    margin-top: 30px;
    margin-bottom: 15px;
    color: #26A9E0;
}

.page-resources__paragraph {
    margin-bottom: 20px;
    color: #f0f0f0;
}

.page-resources__list-item {
    margin-bottom: 10px;
    color: #f0f0f0;
}

/* Buttons */
.page-resources__cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 30px;
    flex-wrap: wrap;
}

.page-resources__btn-primary,
.page-resources__btn-secondary,
.page-resources__btn-link {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
    text-align: center;
    box-sizing: border-box;
}

.page-resources__btn-primary {
    background-color: #26A9E0;
    color: #ffffff;
    border: 2px solid #26A9E0;
}

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

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

.page-resources__btn-secondary:hover {
    background-color: #26A9E0;
    color: #ffffff;
}

.page-resources__btn-link {
    background-color: transparent;
    color: #26A9E0;
    border: none;
    padding: 0;
    text-decoration: underline;
}

.page-resources__btn-link:hover {
    color: #1a7fb2;
}

.page-resources__btn-large {
    padding: 18px 40px;
    font-size: 1.1em;
}

/* Section specific styles */
.page-resources__content-area,
.page-resources__app-download-guide,
.page-resources__sports-betting-tips,
.page-resources__casino-tactics,
.page-resources__promotions,
.page-resources__faq-section,
.page-resources__cta-section {
    padding: 60px 0;
}

.page-resources__dark-section {
    background-color: #0d0d0d;
    color: #f0f0f0;
}

.page-resources__light-bg {
    background-color: #ffffff;
    color: #333333;
}

.page-resources__light-bg .page-resources__section-title,
.page-resources__light-bg .page-resources__subsection-title {
    color: #26A9E0;
}

.page-resources__light-bg .page-resources__paragraph,
.page-resources__light-bg .page-resources__list-item {
    color: #333333;
}

/* Image styles */
.page-resources__image-wrapper {
    text-align: center;
    margin-bottom: 20px;
}

.page-resources__image {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 0 auto;
    border-radius: 8px;
}

.page-resources__image--full-width {
    width: 100%;
    max-width: 1000px;
    margin-top: 30px;
}

/* Grid Layouts */
.page-resources__grid-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}

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

.page-resources__grid-layout--three-cols {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

/* Card styles */
.page-resources__card {
    background-color: rgba(255, 255, 255, 0.1);
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
    height: 100%;
    color: #f0f0f0;
}

.page-resources__dark-section .page-resources__card {
    background-color: rgba(255, 255, 255, 0.1);
    color: #f0f0f0;
}

.page-resources__light-bg .page-resources__card {
    background-color: #f5f5f5;
    color: #333333;
    border: 1px solid #e0e0e0;
}

.page-resources__card-title {
    font-size: 1.5em;
    margin-bottom: 15px;
    color: #26A9E0;
}

.page-resources__card-text {
    margin-bottom: 20px;
    flex-grow: 1;
}

/* FAQ Section */
.page-resources__faq-list {
    margin-top: 30px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.page-resources__faq-item {
    background-color: rgba(255, 255, 255, 0.08);
    margin-bottom: 15px;
    border-radius: 8px;
    overflow: hidden;
}

.page-resources__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 25px;
    cursor: pointer;
    font-size: 1.2em;
    font-weight: bold;
    color: #ffffff;
    transition: background-color 0.3s ease;
}

.page-resources__faq-question:hover {
    background-color: rgba(255, 255, 255, 0.15);
}

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

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

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

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

/* Center content utility */
.page-resources__center-content {
    text-align: center;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .page-resources__hero-title {
        font-size: 2.8em;
    }
    .page-resources__section-title {
        font-size: 2em;
    }
    .page-resources__subsection-title {
        font-size: 1.5em;
    }
    .page-resources__hero-description {
        font-size: 1.1em;
    }
}

@media (max-width: 768px) {
    .page-resources__hero-section {
        min-height: 400px;
        padding: 40px 20px;
        padding-top: var(--header-offset, 120px) !important; /* Ensure mobile offset */
    }
    .page-resources__hero-title {
        font-size: 2em;
    }
    .page-resources__hero-description {
        font-size: 1em;
    }
    .page-resources__cta-buttons {
        flex-direction: column;
        gap: 15px;
    }
    .page-resources__btn-primary,
    .page-resources__btn-secondary,
    .page-resources__btn-large,
    .page-resources a[class*="button"],
    .page-resources a[class*="btn"] {
        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__section-title {
        font-size: 1.8em;
    }
    .page-resources__subsection-title {
        font-size: 1.3em;
    }
    .page-resources__paragraph,
    .page-resources__list-item,
    .page-resources__card-text,
    .page-resources__faq-answer p {
        font-size: 0.95em;
    }

    /* Image responsive */
    .page-resources img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
    }
    .page-resources__image-wrapper {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        overflow: hidden !important;
    }

    /* Video responsive */
    .page-resources video,
    .page-resources__video {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    .page-resources__video-section,
    .page-resources__video-container,
    .page-resources__video-wrapper {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        overflow: hidden !important;
    }
    .page-resources__video-section {
        padding-top: var(--header-offset, 120px) !important;
    }


    .page-resources__grid-layout {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    .page-resources__grid-layout--reverse {
        grid-template-columns: 1fr;
    }
    .page-resources__grid-layout--three-cols {
        grid-template-columns: 1fr;
    }

    .page-resources__content-area,
    .page-resources__app-download-guide,
    .page-resources__sports-betting-tips,
    .page-resources__casino-tactics,
    .page-resources__promotions,
    .page-resources__faq-section,
    .page-resources__cta-section {
        padding: 40px 0;
    }

    .page-resources__container {
        padding: 0 15px;
    }
}