/* style/resources.css */

/* Base Styles */
.page-resources {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: #ffffff; /* Default text color for dark body background */
    background-color: #0a0a0a; /* Ensure consistency with body background */
}

/* Sections */
.page-resources__section {
    padding: 60px 20px;
    text-align: center;
}

.page-resources__dark-bg {
    background-color: #0A1931;
    color: #ffffff;
}

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

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

/* Hero Section */
.page-resources__hero-section {
    position: relative;
    padding-top: var(--header-offset, 120px); /* Account for fixed header */
    padding-bottom: 80px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    min-height: 500px;
    overflow: hidden;
}

.page-resources__hero-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
    opacity: 0.3; /* Subtle background */
}

.page-resources__hero-section .page-resources__container {
    position: relative;
    z-index: 1;
    max-width: 900px;
}

.page-resources__hero-title {
    font-size: 3.2em;
    margin-bottom: 20px;
    color: #FFD700;
    line-height: 1.2;
}

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

/* Titles and Text Blocks */
.page-resources__section-title {
    font-size: 2.5em;
    margin-bottom: 30px;
    color: #FFD700;
}

.page-resources__light-bg .page-resources__section-title {
    color: #0A1931;
}

.page-resources__text-block {
    font-size: 1.1em;
    margin-bottom: 20px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.page-resources__light-bg .page-resources__text-block {
    color: #333333;
}

/* Buttons */
.page-resources__btn-primary,
.page-resources__btn-secondary {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
    margin: 10px;
    white-space: normal; /* Allow text wrapping */
    word-wrap: break-word; /* Ensure long words break */
    box-sizing: border-box; /* Include padding and border in element's total width and height */
}

.page-resources__btn-primary {
    background-color: #FFD700;
    color: #0A1931;
    border: 2px solid #FFD700;
}

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

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

.page-resources__btn-secondary:hover {
    background-color: #FFD700;
    color: #0A1931;
}

/* Card Grid */
.page-resources__card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.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;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.page-resources__card-image {
    width: 100%;
    height: 250px;
    object-fit: cover;
}

.page-resources__card-title {
    font-size: 1.5em;
    margin: 20px 20px 10px;
    color: #0A1931;
}

.page-resources__card-title a {
    color: #0A1931;
    text-decoration: none;
    transition: color 0.3s ease;
}

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

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

.page-resources__card .page-resources__btn-secondary {
    margin: 0 20px 20px;
    align-self: flex-start;
    padding: 10px 20px;
    font-size: 0.9em;
}

/* Trend Card (for Latest Betting Trends) */
.page-resources__trend-card {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 30px;
    margin-top: 40px;
    background-color: #f8f8f8;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    overflow: hidden;
    text-align: left;
    padding: 30px;
}

.page-resources__trend-image {
    width: 50%;
    height: auto;
    object-fit: cover;
    border-radius: 8px;
}

.page-resources__trend-content {
    width: 50%;
}

.page-resources__trend-content .page-resources__card-title {
    margin-top: 0;
    color: #0A1931;
}

.page-resources__trend-content .page-resources__text-block {
    color: #555555;
    margin-bottom: 20px;
    max-width: none;
}

.page-resources__trend-content .page-resources__btn-secondary {
    margin: 0;
}

/* Video Section */
.page-resources__video-section {
    margin-top: 40px;
    background-color: rgba(0, 0, 0, 0.2);
    padding: 30px;
    border-radius: 10px;
}

.page-resources__video-title {
    font-size: 1.8em;
    color: #FFD700;
    margin-bottom: 20px;
}

.page-resources__video-wrapper {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
    height: 0;
    overflow: hidden;
    max-width: 100%;
    background: #000;
    border-radius: 8px;
}

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

.page-resources__video {
    width: 100%;
    height: auto;
    display: block;
}

.page-resources__video-caption {
    margin-top: 20px;
    font-size: 0.95em;
    color: #cccccc;
}

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

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

.page-resources__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    font-size: 1.2em;
    font-weight: bold;
    color: #ffffff;
    cursor: pointer;
    background-color: #0A1931;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    transition: background-color 0.3s ease;
}

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

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

.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;
    background-color: rgba(255, 255, 255, 0.05);
    color: #f0f0f0;
}

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

.page-resources__faq-answer p {
    margin-bottom: 0;
    color: #f0f0f0; /* Ensure text color is light for dark background */
}


/* CTA Section */
.page-resources__cta-section {
    padding: 80px 20px;
    background-color: #f0f0f0; /* Light background for contrast */
    color: #333333;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.page-resources__cta-section .page-resources__section-title {
    color: #0A1931;
}

.page-resources__cta-section .page-resources__text-block {
    color: #555555;
    margin-bottom: 30px;
}

.page-resources__cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 20px;
    width: 100%;
    max-width: 600px;
}

.page-resources__cta-image {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 400px; /* Example size */
    height: auto;
    object-fit: contain;
    opacity: 0.1;
    z-index: 0;
}

/* Responsive Styles */
@media (max-width: 1024px) {
    .page-resources__hero-title {
        font-size: 2.8em;
    }
    .page-resources__hero-description {
        font-size: 1.1em;
    }
    .page-resources__section-title {
        font-size: 2em;
    }
    .page-resources__trend-card {
        flex-direction: column;
        padding: 20px;
    }
    .page-resources__trend-image,
    .page-resources__trend-content {
        width: 100%;
    }
    .page-resources__cta-image {
        width: 300px;
    }
}

@media (max-width: 768px) {
    .page-resources {
        font-size: 16px;
        line-height: 1.6;
    }

    .page-resources__hero-section {
        min-height: 400px;
        padding-top: var(--header-offset, 120px) !important;
    }
    .page-resources__hero-title {
        font-size: 2.2em;
    }
    .page-resources__hero-description {
        font-size: 1em;
    }
    .page-resources__section {
        padding: 40px 15px;
    }
    .page-resources__section-title {
        font-size: 1.8em;
    }
    .page-resources__text-block {
        font-size: 0.95em;
    }

    .page-resources__card-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    .page-resources__card-image {
        height: 200px;
    }
    .page-resources__card-title {
        font-size: 1.3em;
    }
    .page-resources__card-description {
        font-size: 0.9em;
    }

    .page-resources__trend-card {
        padding: 15px;
    }

    /* Images responsiveness */
    .page-resources img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    .page-resources__section,
    .page-resources__card,
    .page-resources__container,
    .page-resources__video-section,
    .page-resources__video-wrapper,
    .page-resources__cta-section,
    .page-resources__trend-card {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        overflow: hidden !important;
    }

    /* Videos responsiveness */
    .page-resources video,
    .page-resources__video {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    .page-resources__video-section {
        padding-top: var(--header-offset, 120px) !important;
    }

    /* Buttons responsiveness */
    .page-resources__btn-primary,
    .page-resources__btn-secondary,
    .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;
        margin: 10px 0 !important; /* Adjust margin for vertical stack */
        padding: 12px 15px; /* Adjust padding */
    }
    .page-resources__cta-buttons {
        flex-direction: column;
        gap: 10px;
        max-width: 100% !important;
        width: 100% !important;
        padding-left: 15px;
        padding-right: 15px;
    }
    .page-resources__cta-image {
        display: none; /* Hide on mobile to save space */
    }
}

@media (max-width: 480px) {
    .page-resources__hero-title {
        font-size: 1.8em;
    }
    .page-resources__section-title {
        font-size: 1.5em;
    }
    .page-resources__faq-question {
        font-size: 1.1em;
        padding: 15px;
    }
    .page-resources__faq-answer {
        padding: 15px;
    }
}