/* style/resources-betting-guide.css */
:root {
    --primary-color: #FFD700; /* Gold */
    --secondary-color: #8B0000; /* Deep Red */
    --text-light: #ffffff;
    --text-dark: #333333;
    --bg-dark: #121212;
    --bg-light: #f9f9f9;
    --card-bg-dark: rgba(255, 255, 255, 0.1);
    --card-bg-light: #ffffff;
    --border-color: #e0e0e0;
}

.page-resources-betting-guide {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: var(--text-light); /* Default text color for dark body background */
    background-color: var(--bg-dark); /* Inherits from body, but explicitly set for context */
}

.page-resources-betting-guide__container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Fixed Navbar Spacing */
.page-resources-betting-guide__hero-section {
    padding-top: 120px; /* Desktop: Adjust based on fixed header height */
}

.page-resources-betting-guide__section-title {
    font-size: 36px;
    font-weight: bold;
    text-align: center;
    margin-bottom: 50px;
    color: var(--primary-color);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.page-resources-betting-guide__text-block {
    font-size: 18px;
    line-height: 1.8;
    margin-bottom: 30px;
    text-align: justify;
}

/* Hero Section */
.page-resources-betting-guide__hero-section {
    background: linear-gradient(135deg, var(--secondary-color) 0%, #330000 100%);
    padding-bottom: 80px;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 450px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.page-resources-betting-guide__hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('[GALLERY:hero:23win1,betting,guide,background]') no-repeat center center/cover;
    opacity: 0.2;
    z-index: 0;
}

.page-resources-betting-guide__hero-section > .page-resources-betting-guide__container {
    position: relative;
    z-index: 1;
}

.page-resources-betting-guide__main-title {
    font-size: 48px;
    color: var(--primary-color);
    margin-bottom: 20px;
    text-shadow: 3px 3px 6px rgba(0, 0, 0, 0.5);
    line-height: 1.2;
}

.page-resources-betting-guide__hero-description {
    font-size: 20px;
    color: var(--text-light);
    max-width: 800px;
    margin: 0 auto 40px auto;
    opacity: 0.9;
}

.page-resources-betting-guide__cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.page-resources-betting-guide__cta-button {
    display: inline-block;
    padding: 15px 40px;
    background: var(--primary-color);
    color: var(--text-dark);
    text-decoration: none;
    border-radius: 8px;
    font-size: 18px;
    font-weight: bold;
    text-align: center;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    border: none;
    cursor: pointer;
    white-space: nowrap;
}

.page-resources-betting-guide__cta-button:hover {
    background: #e6c200;
    transform: translateY(-3px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.3);
}

.page-resources-betting-guide__cta-button--secondary {
    background: var(--secondary-color);
    color: var(--text-light);
}

.page-resources-betting-guide__cta-button--secondary:hover {
    background: #6b0000;
}

/* Content Section */
.page-resources-betting-guide__content-section {
    padding: 80px 0;
    background-color: var(--bg-light); /* Light background for content */
    color: var(--text-dark); /* Dark text for light background */
}

.page-resources-betting-guide__content-section .page-resources-betting-guide__section-title {
    color: var(--secondary-color);
    text-shadow: none;
}

.page-resources-betting-guide__content-section .page-resources-betting-guide__text-block {
    color: var(--text-dark);
}

.page-resources-betting-guide__step-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.page-resources-betting-guide__card {
    background: var(--card-bg-light);
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    padding: 30px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
}

.page-resources-betting-guide__card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.page-resources-betting-guide__card-image {
    max-width: 100%;
    height: 250px; /* Fixed height for consistency */
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 25px;
    border: 1px solid var(--border-color);
}

.page-resources-betting-guide__card-title {
    font-size: 22px;
    color: var(--secondary-color);
    margin-bottom: 15px;
    font-weight: bold;
}

.page-resources-betting-guide__card-description {
    font-size: 16px;
    color: var(--text-dark);
    margin-bottom: 25px;
    flex-grow: 1;
}

.page-resources-betting-guide__card-button {
    display: inline-block;
    padding: 12px 25px;
    background: var(--primary-color);
    color: var(--text-dark);
    text-decoration: none;
    border-radius: 5px;
    font-size: 16px;
    font-weight: bold;
    transition: background-color 0.3s ease;
    white-space: nowrap;
}

.page-resources-betting-guide__card-button:hover {
    background: #e6c200;
}

/* FAQ Section */
.page-resources-betting-guide__faq-section {
    padding: 80px 0;
    background-color: var(--bg-dark); /* Dark background for FAQ */
    color: var(--text-light); /* Light text for dark background */
}

.page-resources-betting-guide__faq-section .page-resources-betting-guide__section-title {
    color: var(--primary-color);
}

.page-resources-betting-guide__faq-list {
    max-width: 900px;
    margin: 0 auto;
}

.page-resources-betting-guide__faq-item {
    margin-bottom: 15px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.page-resources-betting-guide__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 25px;
    background: rgba(255, 255, 255, 0.08); /* Slightly lighter dark background */
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 8px;
    cursor: pointer;
    user-select: none;
    transition: background-color 0.3s ease, border-color 0.3s ease;
    position: relative;
}

.page-resources-betting-guide__faq-question:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.25);
}

.page-resources-betting-guide__faq-question h3 {
    margin: 0;
    padding: 0;
    flex: 1;
    font-size: 18px;
    font-weight: 600;
    line-height: 1.5;
    color: var(--text-light);
    pointer-events: none; /* Prevent h3 from blocking click event */
}

.page-resources-betting-guide__faq-toggle {
    font-size: 28px;
    font-weight: bold;
    line-height: 1;
    color: var(--primary-color);
    transition: transform 0.3s ease, color 0.3s ease;
    flex-shrink: 0;
    margin-left: 15px;
    pointer-events: none; /* Prevent icon from blocking click event */
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
}

.page-resources-betting-guide__faq-item.active .page-resources-betting-guide__faq-toggle {
    color: var(--text-light);
    transform: rotate(45deg); /* Rotate for 'x' or '-' effect */
}

.page-resources-betting-guide__faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), padding 0.4s ease, opacity 0.4s ease;
    padding: 0 25px;
    opacity: 0;
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-light);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.page-resources-betting-guide__faq-item.active .page-resources-betting-guide__faq-answer {
    max-height: 1000px !important; /* Ensure enough height for content */
    padding: 20px 25px !important;
    opacity: 1;
    border-radius: 0 0 8px 8px;
}

.page-resources-betting-guide__faq-answer p {
    margin: 0;
    font-size: 16px;
    line-height: 1.7;
    color: var(--text-light);
}

/* Brand Section */
.page-resources-betting-guide__brand-section {
    padding: 80px 0;
    background-color: var(--bg-light); /* Light background */
    color: var(--text-dark); /* Dark text */
}

.page-resources-betting-guide__brand-section .page-resources-betting-guide__section-title {
    color: var(--secondary-color);
}

.page-resources-betting-guide__brand-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.page-resources-betting-guide__brand-item {
    background: var(--card-bg-light);
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    padding: 30px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.page-resources-betting-guide__brand-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.page-resources-betting-guide__brand-image {
    max-width: 100%;
    height: 200px; /* Consistent height for brand images */
    object-fit: cover;
    border-radius: 8px;
    margin: 0 auto 25px auto;
    display: block;
    border: 1px solid var(--border-color);
}

.page-resources-betting-guide__brand-item-title {
    font-size: 24px;
    color: var(--primary-color);
    margin-bottom: 15px;
    font-weight: bold;
}

/* Blog Section */
.page-resources-betting-guide__blog-section {
    padding: 80px 0;
    background-color: var(--bg-dark); /* Dark background */
    color: var(--text-light); /* Light text */
}

.page-resources-betting-guide__blog-section .page-resources-betting-guide__section-title {
    color: var(--primary-color);
}

.page-resources-betting-guide__blog-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.page-resources-betting-guide__blog-item {
    background: var(--card-bg-dark);
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.page-resources-betting-guide__blog-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.page-resources-betting-guide__blog-link {
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.page-resources-betting-guide__blog-item-image {
    width: 100%;
    height: 220px;
    object-fit: cover;
    border-radius: 10px 10px 0 0;
    margin-bottom: 0;
}

.page-resources-betting-guide__blog-item-title {
    font-size: 20px;
    font-weight: bold;
    color: var(--primary-color);
    padding: 20px 20px 10px 20px;
    margin: 0;
}

.page-resources-betting-guide__blog-item-excerpt {
    font-size: 15px;
    color: var(--text-light);
    padding: 0 20px 15px 20px;
    flex-grow: 1;
    opacity: 0.8;
}

.page-resources-betting-guide__blog-item-date {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.6);
    padding: 0 20px 20px 20px;
    display: block;
    text-align: right;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .page-resources-betting-guide__main-title {
        font-size: 42px;
    }
    .page-resources-betting-guide__section-title {
        font-size: 32px;
    }
    .page-resources-betting-guide__hero-description {
        font-size: 18px;
    }
    .page-resources-betting-guide__text-block {
        font-size: 17px;
    }
    .page-resources-betting-guide__faq-question h3 {
        font-size: 17px;
    }
    .page-resources-betting-guide__brand-item-title {
        font-size: 22px;
    }
    .page-resources-betting-guide__blog-item-title {
        font-size: 18px;
    }
}

@media (max-width: 768px) {
    .page-resources-betting-guide__hero-section {
        padding-top: 100px; /* Mobile: Adjust based on fixed header height */
        padding-bottom: 60px;
        min-height: 350px;
    }
    .page-resources-betting-guide__main-title {
        font-size: 36px;
    }
    .page-resources-betting-guide__section-title {
        font-size: 28px;
        margin-bottom: 40px;
    }
    .page-resources-betting-guide__hero-description {
        font-size: 16px;
        margin-bottom: 30px;
    }
    .page-resources-betting-guide__cta-buttons {
        flex-direction: column;
        gap: 15px;
        padding: 0 15px;
    }
    .page-resources-betting-guide__cta-button {
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
        padding: 12px 20px;
        font-size: 16px;
        white-space: normal !important;
        word-wrap: break-word !important;
    }

    .page-resources-betting-guide__content-section,
    .page-resources-betting-guide__faq-section,
    .page-resources-betting-guide__brand-section,
    .page-resources-betting-guide__blog-section {
        padding: 60px 0;
    }

    .page-resources-betting-guide__container {
        padding: 0 15px;
    }

    .page-resources-betting-guide__step-cards,
    .page-resources-betting-guide__brand-content,
    .page-resources-betting-guide__blog-list {
        grid-template-columns: 1fr;
        gap: 25px;
    }

    .page-resources-betting-guide__card,
    .page-resources-betting-guide__brand-item,
    .page-resources-betting-guide__blog-item {
        padding: 25px;
    }

    .page-resources-betting-guide__card-image,
    .page-resources-betting-guide__brand-image,
    .page-resources-betting-guide__blog-item-image {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
        object-fit: contain; /* Ensure image fits within container */
    }

    .page-resources-betting-guide__faq-question {
        padding: 15px 20px;
    }

    .page-resources-betting-guide__faq-question h3 {
        font-size: 16px;
    }

    .page-resources-betting-guide__faq-toggle {
        font-size: 24px;
        width: 25px;
        height: 25px;
    }

    .page-resources-betting-guide__faq-answer {
        padding: 0 20px;
    }

    .page-resources-betting-guide__faq-item.active .page-resources-betting-guide__faq-answer {
        padding: 15px 20px !important;
    }

    .page-resources-betting-guide__card-button {
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
    }

    .page-resources-betting-guide__text-block {
        font-size: 16px;
    }

    .page-resources-betting-guide__blog-item-excerpt {
        font-size: 14px;
    }
    .page-resources-betting-guide__blog-item-date {
        font-size: 12px;
    }
}

@media (max-width: 480px) {
    .page-resources-betting-guide__main-title {
        font-size: 30px;
    }
    .page-resources-betting-guide__section-title {
        font-size: 24px;
    }
    .page-resources-betting-guide__hero-description {
        font-size: 15px;
    }
    .page-resources-betting-guide__cta-button {
        font-size: 15px;
        padding: 10px 15px;
    }
    .page-resources-betting-guide__card-image {
        height: 180px;
    }
    .page-resources-betting-guide__brand-image {
        height: 150px;
    }
    .page-resources-betting-guide__blog-item-image {
        height: 180px;
    }
    .page-resources-betting-guide__faq-question h3 {
        font-size: 15px;
    }
    .page-resources-betting-guide__faq-toggle {
        font-size: 22px;
    }
    .page-resources-betting-guide__faq-answer p {
        font-size: 14px;
    }
    .page-resources-betting-guide__brand-item-title {
        font-size: 20px;
    }
    .page-resources-betting-guide__blog-item-title {
        font-size: 17px;
    }
}