/* style/resources-safe-sports-betting.css */

:root {
    --primary-color: #FFD700;
    --secondary-color: #000080;
    --text-light: #ffffff;
    --text-dark: #333333;
    --bg-light: #f0f0f0;
    --bg-dark-card: rgba(255, 255, 255, 0.1);
    --border-light: #e0e0e0;
}

.page-resources-safe-sports-betting {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-light); /* Default text color for dark body background */
    background-color: transparent; /* Body background is handled by shared.css var(--dark-bg) */
}

.page-resources-safe-sports-betting__hero-section {
    position: relative;
    width: 100%;
    height: 600px; /* Adjust height as needed */
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
    padding-top: var(--header-offset, 120px);
}

.page-resources-safe-sports-betting__hero-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -2;
}

.page-resources-safe-sports-betting__hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 128, 0.7); /* Deep blue with transparency */
    z-index: -1;
}

.page-resources-safe-sports-betting__hero-content {
    position: relative;
    z-index: 1;
    color: var(--text-light);
    max-width: 900px;
    padding: 0 20px;
}

.page-resources-safe-sports-betting__hero-title {
    font-size: 3.5em;
    margin-bottom: 20px;
    color: var(--primary-color); /* Gold title for impact */
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.page-resources-safe-sports-betting__hero-description {
    font-size: 1.2em;
    margin-bottom: 30px;
}

.page-resources-safe-sports-betting__hero-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.page-resources-safe-sports-betting__btn-primary,
.page-resources-safe-sports-betting__btn-secondary {
    display: inline-block;
    padding: 12px 25px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1em;
    transition: all 0.3s ease;
    white-space: normal;
    word-wrap: break-word;
    text-align: center;
    box-sizing: border-box;
}

.page-resources-safe-sports-betting__btn-primary {
    background-color: var(--primary-color);
    color: var(--secondary-color); /* Dark blue text on gold for contrast */
    border: 2px solid var(--primary-color);
}

.page-resources-safe-sports-betting__btn-primary:hover {
    background-color: darken(var(--primary-color), 10%);
    color: var(--text-light);
}

.page-resources-safe-sports-betting__btn-secondary {
    background-color: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.page-resources-safe-sports-betting__btn-secondary:hover {
    background-color: var(--primary-color);
    color: var(--secondary-color);
}

.page-resources-safe-sports-betting__content-area {
    max-width: 1200px;
    margin: 0 auto;
    padding: 60px 20px;
    color: var(--text-light); /* Ensures text is light on dark background */
}

.page-resources-safe-sports-betting__section-title {
    font-size: 2.5em;
    margin-bottom: 40px;
    text-align: center;
    color: var(--primary-color);
}

.page-resources-safe-sports-betting__subsection-title {
    font-size: 1.8em;
    margin-top: 50px;
    margin-bottom: 25px;
    color: var(--text-light);
}

.page-resources-safe-sports-betting__text-block {
    font-size: 1.1em;
    margin-bottom: 30px;
    line-height: 1.8;
}

.page-resources-safe-sports-betting__card {
    background: var(--bg-dark-card); /* Semi-transparent white on dark bg */
    border-radius: 12px;
    padding: 30px;
    margin-bottom: 40px;
    display: flex;
    gap: 30px;
    align-items: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    color: var(--text-light);
}

.page-resources-safe-sports-betting__card-image {
    flex-shrink: 0;
    width: 400px;
    height: 300px;
    object-fit: cover;
    border-radius: 8px;
}

.page-resources-safe-sports-betting__card-content {
    flex: 1;
}

.page-resources-safe-sports-betting__card-title {
    font-size: 1.5em;
    margin-bottom: 15px;
    color: var(--primary-color);
}

.page-resources-safe-sports-betting__card-text {
    line-height: 1.7;
    font-size: 1.05em;
}

.page-resources-safe-sports-betting__list {
    list-style: none;
    padding: 0;
    margin: 0 0 40px 0;
}

.page-resources-safe-sports-betting__list-item {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    padding: 25px;
    margin-bottom: 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.page-resources-safe-sports-betting__list-title {
    font-size: 1.4em;
    margin-bottom: 10px;
    color: var(--primary-color);
}

.page-resources-safe-sports-betting__list-description {
    line-height: 1.7;
    font-size: 1em;
}

.page-resources-safe-sports-betting__cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 50px;
    flex-wrap: wrap;
}

/* FAQ Section */
.page-resources-safe-sports-betting__faq-section {
    background-color: var(--bg-light); /* Light background for FAQ */
    padding: 60px 20px;
    color: var(--text-dark); /* Dark text on light background */
}

.page-resources-safe-sports-betting__faq-section .page-resources-safe-sports-betting__section-title {
    color: var(--secondary-color); /* Deep blue title on light background */
}

.page-resources-safe-sports-betting__faq-container {
    max-width: 900px;
    margin: 0 auto;
}

.page-resources-safe-sports-betting__faq-item {
    background: #ffffff;
    border-radius: 10px;
    margin-bottom: 15px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.page-resources-safe-sports-betting__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 25px;
    cursor: pointer;
    font-weight: bold;
    font-size: 1.1em;
    color: var(--secondary-color);
    border-bottom: 1px solid var(--border-light);
    transition: background-color 0.3s ease;
}

.page-resources-safe-sports-betting__faq-question:hover {
    background-color: #f9f9f9;
}

.page-resources-safe-sports-betting__faq-toggle {
    font-size: 1.5em;
    line-height: 1;
    transition: transform 0.3s ease;
    min-width: 20px;
    text-align: center;
}

.page-resources-safe-sports-betting__faq-item.active .page-resources-safe-sports-betting__faq-toggle {
    transform: rotate(0deg); /* No rotation for +/- text */
}

.page-resources-safe-sports-betting__faq-answer {
    max-height: 0;
    overflow: hidden;
    padding: 0 25px;
    transition: max-height 0.3s ease, padding 0.3s ease;
    color: var(--text-dark);
}

.page-resources-safe-sports-betting__faq-item.active .page-resources-safe-sports-betting__faq-answer {
    max-height: 1000px !important; /* Sufficiently large to show content */
    padding: 15px 25px !important;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .page-resources-safe-sports-betting__hero-title {
        font-size: 3em;
    }
    .page-resources-safe-sports-betting__card {
        flex-direction: column;
        text-align: center;
    }
    .page-resources-safe-sports-betting__card-image {
        width: 100%;
        height: auto;
        max-width: 600px;
    }
}

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

    /* Ensure content area respects header offset */
    .page-resources-safe-sports-betting__hero-section {
        padding-top: var(--header-offset, 120px) !important;
        height: 500px;
    }

    .page-resources-safe-sports-betting__hero-title {
        font-size: 2.2em;
    }

    .page-resources-safe-sports-betting__hero-description {
        font-size: 1em;
    }

    .page-resources-safe-sports-betting__hero-buttons {
        flex-direction: column;
        gap: 15px;
    }

    .page-resources-safe-sports-betting__btn-primary,
    .page-resources-safe-sports-betting__btn-secondary {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding: 10px 20px;
        font-size: 1em;
    }

    .page-resources-safe-sports-betting__content-area,
    .page-resources-safe-sports-betting__faq-section {
        padding: 40px 15px;
    }

    .page-resources-safe-sports-betting__section-title {
        font-size: 2em;
        margin-bottom: 30px;
    }

    .page-resources-safe-sports-betting__subsection-title {
        font-size: 1.5em;
        margin-top: 40px;
        margin-bottom: 20px;
    }

    .page-resources-safe-sports-betting__card {
        padding: 20px;
        gap: 20px;
    }

    .page-resources-safe-sports-betting__card-image {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        min-width: 200px; /* Ensure min size */
        min-height: 200px; /* Ensure min size */
    }

    .page-resources-safe-sports-betting__card-title {
        font-size: 1.3em;
    }

    .page-resources-safe-sports-betting__list-item {
        padding: 20px;
    }

    .page-resources-safe-sports-betting__list-title {
        font-size: 1.2em;
    }

    .page-resources-safe-sports-betting img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
        min-width: 200px; /* Global min image size */
        min-height: 200px; /* Global min image size */
    }
    
    .page-resources-safe-sports-betting__section,
    .page-resources-safe-sports-betting__card,
    .page-resources-safe-sports-betting__container,
    .page-resources-safe-sports-betting__hero-section,
    .page-resources-safe-sports-betting__cta-buttons,
    .page-resources-safe-sports-betting__faq-container {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        overflow-x: hidden;
    }
    .page-resources-safe-sports-betting__faq-question,
    .page-resources-safe-sports-betting__faq-answer {
        padding-left: 15px;
        padding-right: 15px;
    }
}

@media (max-width: 480px) {
    .page-resources-safe-sports-betting__hero-title {
        font-size: 1.8em;
    }
    .page-resources-safe-sports-betting__section-title {
        font-size: 1.8em;
    }
}