/* style/betting-glossary.css */

/* Base styles for the page content, assuming a dark body background from shared.css */
.page-betting-glossary {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #ffffff; /* Light text for assumed dark body background */
    background-color: transparent; /* Inherit from body or shared.css */
}

/* Hero Section */
.page-betting-glossary__hero-section {
    position: relative;
    width: 100%;
    padding: 100px 20px 60px; /* Adjust padding-top to account for fixed header */
    padding-top: var(--header-offset, 120px); /* Ensure header offset is applied */
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden; /* Important for image containment */
    min-height: 600px;
    box-sizing: border-box;
}

.page-betting-glossary__dark-bg {
    background-color: #017439; /* Brand primary color for dark sections */
    color: #ffffff;
}

.page-betting-glossary__light-bg {
    background-color: #ffffff; /* White background for light sections */
    color: #333333; /* Dark text for light background */
}

.page-betting-glossary__hero-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -1;
    opacity: 0.3; /* Slightly dim the background image */
}

.page-betting-glossary__hero-content {
    position: relative;
    z-index: 1;
    max-width: 900px;
    padding: 20px;
    background-color: rgba(0, 0, 0, 0.5); /* Semi-transparent overlay for text readability */
    border-radius: 8px;
}

.page-betting-glossary__hero-title {
    font-size: 2.8em;
    margin-bottom: 20px;
    color: #FFFF00; /* Register/Login font color for emphasis */
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
}

.page-betting-glossary__hero-description {
    font-size: 1.2em;
    margin-bottom: 30px;
    color: #f0f0f0;
}

.page-betting-glossary__hero-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap; /* Allow buttons to wrap on smaller screens */
}

/* General Section Styles */
.page-betting-glossary__section {
    padding: 60px 20px;
    box-sizing: border-box;
    width: 100%; /* Ensure full width */
}

.page-betting-glossary__container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px; /* Add horizontal padding for content */
    box-sizing: border-box;
}

.page-betting-glossary__section-title {
    font-size: 2.2em;
    color: inherit; /* Inherit color from parent section */
    text-align: center;
    margin-bottom: 40px;
    position: relative;
    padding-bottom: 15px;
}

.page-betting-glossary__section-title::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background-color: #FFFF00; /* Accent color */
    border-radius: 2px;
}

.page-betting-glossary__text-block {
    font-size: 1.1em;
    margin-bottom: 25px;
    text-align: justify;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.page-betting-glossary__keyword {
    font-weight: bold;
    color: #FFFF00; /* Highlight keywords */
}

.page-betting-glossary__content-image {
    display: block;
    max-width: 100%;
    height: auto;
    margin: 40px auto;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    min-width: 200px; /* Enforce minimum size */
    min-height: 200px; /* Enforce minimum size */
}

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

.page-betting-glossary__glossary-item {
    background-color: rgba(255, 255, 255, 0.1); /* Semi-transparent white for dark sections */
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, background-color 0.3s ease;
    color: #ffffff; /* Default text color for dark items */
}

.page-betting-glossary__light-bg .page-betting-glossary__glossary-item {
    background-color: #f9f9f9; /* Light background for items in light sections */
    color: #333333; /* Dark text for light items */
    border: 1px solid #e0e0e0;
}

.page-betting-glossary__glossary-item:hover {
    transform: translateY(-5px);
    background-color: rgba(255, 255, 255, 0.15);
}

.page-betting-glossary__light-bg .page-betting-glossary__glossary-item:hover {
    background-color: #eef;
}

.page-betting-glossary__item-title {
    font-size: 1.5em;
    color: #FFFF00; /* Accent color for titles */
    margin-bottom: 15px;
}

.page-betting-glossary__light-bg .page-betting-glossary__item-title {
    color: #017439; /* Brand primary for titles in light sections */
}

.page-betting-glossary__item-description {
    font-size: 1em;
    color: inherit; /* Inherit color from parent item */
}

/* Buttons */
.page-betting-glossary__btn-primary,
.page-betting-glossary__btn-secondary,
.page-betting-glossary__btn-link {
    display: inline-block;
    padding: 12px 25px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
    cursor: pointer;
    box-sizing: border-box; /* Crucial for responsive buttons */
    white-space: normal; /* Allow text wrap */
    word-wrap: break-word; /* Allow text wrap */
    text-align: center;
}

.page-betting-glossary__btn-primary {
    background-color: #C30808; /* Register/Login color */
    color: #FFFF00; /* Register/Login font color */
    border: 2px solid #C30808;
}

.page-betting-glossary__btn-primary:hover {
    background-color: #a30707;
    border-color: #a30707;
    color: #ffffff;
}

.page-betting-glossary__btn-secondary {
    background-color: transparent;
    color: #FFFF00; /* Register/Login font color */
    border: 2px solid #FFFF00;
}

.page-betting-glossary__btn-secondary:hover {
    background-color: #FFFF00;
    color: #017439; /* Dark text for light background */
    border-color: #FFFF00;
}

.page-betting-glossary__btn-link {
    background-color: transparent;
    color: #FFFF00;
    border: 1px solid #FFFF00;
    padding: 8px 15px;
    font-size: 0.9em;
    margin-top: 15px;
}

.page-betting-glossary__btn-link:hover {
    background-color: #FFFF00;
    color: #017439;
}

/* CTA Section */
.page-betting-glossary__cta-section {
    padding: 80px 20px;
    text-align: center;
}

.page-betting-glossary__cta-container {
    max-width: 900px;
}

.page-betting-glossary__cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 40px;
    flex-wrap: wrap;
}

.page-betting-glossary__cta-button {
    min-width: 200px; /* Ensure buttons are not too small */
}

/* FAQ Section */
.page-betting-glossary__faq-section {
    padding-bottom: 80px;
}

.page-betting-glossary__faq-list {
    max-width: 800px;
    margin: 40px auto 0;
}

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

.page-betting-glossary__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    cursor: pointer;
    background-color: #017439; /* Brand primary for question background */
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    transition: background-color 0.3s ease;
}

.page-betting-glossary__faq-question:hover {
    background-color: #005a2e;
}

.page-betting-glossary__faq-title {
    font-size: 1.2em;
    margin: 0;
    color: #ffffff;
}

.page-betting-glossary__faq-toggle {
    font-size: 1.5em;
    font-weight: bold;
    color: #FFFF00;
    transition: transform 0.3s ease;
}

.page-betting-glossary__faq-item.active .page-betting-glossary__faq-toggle {
    transform: rotate(45deg); /* Change + to X-like or - */
    content: '−'; /* Change to minus sign */
}

.page-betting-glossary__faq-answer {
    max-height: 0;
    overflow: hidden;
    padding: 0 25px; /* Initial padding 0 */
    transition: max-height 0.3s ease, padding 0.3s ease;
    background-color: rgba(0, 0, 0, 0.3); /* Slightly darker background for answer */
    color: #f0f0f0;
}

/* Active state for FAQ answer */
.page-betting-glossary__faq-item.active .page-betting-glossary__faq-answer {
    max-height: 1000px !important; /* Sufficiently large to show content */
    padding: 20px 25px; /* Padding when open */
}

/* Responsive Styles */
@media (max-width: 1024px) {
    .page-betting-glossary__hero-title {
        font-size: 2.4em;
    }
    .page-betting-glossary__section-title {
        font-size: 2em;
    }
}

@media (max-width: 768px) {
    /* Fixed header spacing for mobile */
    .page-betting-glossary__hero-section {
        padding-top: var(--header-offset, 120px) !important;
    }
    .page-betting-glossary__hero-title {
        font-size: 2em;
    }
    .page-betting-glossary__hero-description {
        font-size: 1em;
    }
    .page-betting-glossary__hero-buttons {
        flex-direction: column;
        gap: 15px;
    }
    .page-betting-glossary__btn-primary,
    .page-betting-glossary__btn-secondary,
    .page-betting-glossary__btn-link,
    .page-betting-glossary__cta-button {
        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-betting-glossary__cta-buttons {
        flex-direction: column;
        gap: 15px;
    }

    .page-betting-glossary__section-title {
        font-size: 1.8em;
    }
    .page-betting-glossary__text-block {
        font-size: 0.95em;
    }

    /* Images responsiveness */
    .page-betting-glossary img {
        max-width: 100% !important;
        height: auto !important;
        display: block !important;
    }
}