/* style/resources-betting-guide.css */

:root {
    --primary-color: #017439;
    --secondary-color: #FFFFFF;
    --text-on-dark: #FFFFFF;
    --text-on-light: #333333;
    --button-register-bg: #C30808;
    --button-login-bg: #C30808;
    --button-text-color: #FFFF00;
    --background-light: #FFFFFF;
}

.page-resources-betting-guide {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-on-light); /* Default for content section */
    background-color: var(--background-light); /* Default for content section */
}

.page-resources-betting-guide__hero-section {
    position: relative;
    width: 100%;
    padding: 100px 20px 60px; /* Adjusted padding-top for header offset */
    background-color: var(--primary-color); /* Dark background */
    color: var(--text-on-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    text-align: center;
    overflow: hidden;
    padding-top: var(--header-offset, 120px);
}

.page-resources-betting-guide__hero-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -1;
    opacity: 0.3; /* Overlay for text readability */
}

.page-resources-betting-guide__container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
    position: relative;
    z-index: 1;
}

.page-resources-betting-guide__main-title {
    font-size: 3.5em;
    margin-bottom: 20px;
    color: var(--text-on-dark);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.page-resources-betting-guide__intro-description {
    font-size: 1.2em;
    margin-bottom: 40px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

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

.page-resources-betting-guide__btn-primary,
.page-resources-betting-guide__btn-secondary,
.page-resources-betting-guide__btn-inline {
    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;
    white-space: normal; /* Allow text wrapping */
    word-wrap: break-word; /* Allow long words to break */
    text-align: center;
    box-sizing: border-box;
}

.page-resources-betting-guide__btn-primary {
    background-color: var(--button-register-bg);
    color: var(--button-text-color);
    border: 2px solid var(--button-register-bg);
}

.page-resources-betting-guide__btn-primary:hover {
    background-color: #a30707;
    border-color: #a30707;
}

.page-resources-betting-guide__btn-secondary {
    background-color: var(--secondary-color);
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.page-resources-betting-guide__btn-secondary:hover {
    background-color: var(--primary-color);
    color: var(--secondary-color);
}

.page-resources-betting-guide__btn-inline {
    background-color: var(--primary-color);
    color: var(--text-on-dark);
    border: 1px solid var(--primary-color);
    padding: 8px 15px;
    font-size: 0.9em;
    margin-left: 10px;
}

.page-resources-betting-guide__btn-inline:hover {
    background-color: #005a2d;
    border-color: #005a2d;
}

.page-resources-betting-guide__content-section {
    background-color: var(--background-light);
    color: var(--text-on-light);
    padding: 60px 0;
}

.page-resources-betting-guide__section-title {
    font-size: 2.5em;
    color: var(--primary-color);
    text-align: center;
    margin-bottom: 40px;
    margin-top: 60px;
}

.page-resources-betting-guide__content-section p {
    font-size: 1.1em;
    margin-bottom: 20px;
    text-align: justify;
}

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

.page-resources-betting-guide__card {
    background-color: var(--secondary-color);
    border: 1px solid #e0e0e0;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    color: var(--text-on-light);
    display: flex;
    flex-direction: column;
}

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

.page-resources-betting-guide__card-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
}

.page-resources-betting-guide__card-title {
    font-size: 1.5em;
    color: var(--primary-color);
    margin: 20px 20px 10px;
}

.page-resources-betting-guide__card-title a {
    color: var(--primary-color);
    text-decoration: none;
}

.page-resources-betting-guide__card-title a:hover {
    text-decoration: underline;
}

.page-resources-betting-guide__card p {
    font-size: 1em;
    padding: 0 20px 20px;
    margin-bottom: 0;
}

.page-resources-betting-guide__list,
.page-resources-betting-guide__numbered-list {
    list-style-type: disc;
    margin-left: 20px;
    margin-bottom: 20px;
    padding-left: 0;
}

.page-resources-betting-guide__numbered-list {
    list-style-type: decimal;
}

.page-resources-betting-guide__list li,
.page-resources-betting-guide__numbered-list li {
    margin-bottom: 10px;
    font-size: 1.1em;
    color: var(--text-on-light);
    text-align: justify;
}

.page-resources-betting-guide__list li strong,
.page-resources-betting-guide__numbered-list li strong {
    color: var(--primary-color);
}

.page-resources-betting-guide__content-image {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 30px auto;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.page-resources-betting-guide__faq-container {
    margin-top: 40px;
    border: 1px solid #e0e0e0;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.page-resources-betting-guide__faq-item {
    border-bottom: 1px solid #e0e0e0;
}

.page-resources-betting-guide__faq-item:last-child {
    border-bottom: none;
}

.page-resources-betting-guide__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    background-color: #f9f9f9;
    cursor: pointer;
    font-size: 1.2em;
    font-weight: bold;
    color: var(--primary-color);
    transition: background-color 0.3s ease;
}

.page-resources-betting-guide__faq-question:hover {
    background-color: #f0f0f0;
}

.page-resources-betting-guide__faq-question h3 {
    margin: 0;
    color: var(--primary-color);
    font-size: 1em; /* Ensure h3 inside is not too large */
}

.page-resources-betting-guide__faq-toggle {
    font-size: 1.5em;
    line-height: 1;
    transition: transform 0.3s ease;
}

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

.page-resources-betting-guide__faq-answer {
    max-height: 0;
    overflow: hidden;
    padding: 0 20px;
    background-color: var(--secondary-color);
    transition: max-height 0.3s ease-out, padding 0.3s ease-out;
}

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

.page-resources-betting-guide__faq-answer p {
    margin-top: 0;
    margin-bottom: 0;
    color: var(--text-on-light);
}

.page-resources-betting-guide__cta-buttons--bottom {
    margin-top: 60px;
    margin-bottom: 20px;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .page-resources-betting-guide__main-title {
        font-size: 2.8em;
    }

    .page-resources-betting-guide__section-title {
        font-size: 2em;
    }
}

@media (max-width: 768px) {
    .page-resources-betting-guide__hero-section {
        padding: 80px 15px 40px;
        padding-top: var(--header-offset, 120px) !important; /* Ensure mobile offset */
    }

    .page-resources-betting-guide__main-title {
        font-size: 2.2em;
    }

    .page-resources-betting-guide__intro-description {
        font-size: 1em;
    }

    .page-resources-betting-guide__cta-buttons {
        flex-direction: column;
        gap: 15px;
    }

    .page-resources-betting-guide__btn-primary,
    .page-resources-betting-guide__btn-secondary,
    .page-resources-betting-guide__btn-inline {
        max-width: 100% !important;
        width: 100% !important;
        padding: 12px 20px;
        font-size: 1em;
    }

    .page-resources-betting-guide__btn-inline {
        margin-left: 0;
        margin-top: 10px;
    }

    .page-resources-betting-guide__grid {
        grid-template-columns: 1fr;
    }

    .page-resources-betting-guide__section-title {
        font-size: 1.8em;
    }

    .page-resources-betting-guide__content-section p,
    .page-resources-betting-guide__list li,
    .page-resources-betting-guide__numbered-list li {
        font-size: 1em;
    }

    /* Mobile image responsiveness */
    .page-resources-betting-guide img {
        max-width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    
    .page-resources-betting-guide__hero-section,
    .page-resources-betting-guide__content-section,
    .page-resources-betting-guide__container,
    .page-resources-betting-guide__grid,
    .page-resources-betting-guide__card,
    .page-resources-betting-guide__faq-container,
    .page-resources-betting-guide__cta-buttons {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        overflow-x: hidden;
    }
    .page-resources-betting-guide__hero-section {
        padding-left: 0;
        padding-right: 0;
    }
    .page-resources-betting-guide__hero-section .page-resources-betting-guide__container {
        padding-left: 15px;
        padding-right: 15px;
    }
    
    /* Ensure all content within the main area does not cause overflow */
    .page-resources-betting-guide {
        overflow-x: hidden;
    }
}

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

    .page-resources-betting-guide__section-title {
        font-size: 1.5em;
    }

    .page-resources-betting-guide__faq-question {
        font-size: 1em;
        padding: 15px;
    }

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