/* style/responsible-gambling.css */

/* Base Styles */
.page-responsible-gambling {
    font-family: 'Arial', sans-serif;
    color: #333333; /* Default text color for light body background */
    line-height: 1.6;
    background-color: #ffffff; /* Explicitly set for clarity, aligns with default */
}

.page-responsible-gambling__section-title {
    font-size: 2.2em;
    color: #26A9E0; /* Brand primary color for titles */
    text-align: center;
    margin-bottom: 40px;
    font-weight: bold;
    line-height: 1.3;
}

.page-responsible-gambling__content-area {
    max-width: 1200px;
    margin: 0 auto;
    padding: 60px 20px;
}

/* Hero Section */
.page-responsible-gambling__hero-section {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 60px 20px;
    padding-top: var(--header-offset, 120px); /* Fixed header offset */
    background: linear-gradient(135deg, #e0f2f7, #ffffff); /* Light gradient background */
}

.page-responsible-gambling__hero-container {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 30px;
}

.page-responsible-gambling__hero-image {
    width: 100%;
    margin-bottom: 20px;
}

.page-responsible-gambling__hero-image img {
    width: 100%;
    height: auto;
    max-width: 100%;
    display: block;
    border-radius: 12px;
    object-fit: cover;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.page-responsible-gambling__hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    width: 100%;
}

.page-responsible-gambling__hero-content h1 {
    font-size: 3.5em;
    color: #26A9E0;
    margin-bottom: 20px;
    line-height: 1.2;
}

.page-responsible-gambling__hero-description {
    font-size: 1.3em;
    color: #555555;
    margin-bottom: 30px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.page-responsible-gambling__cta-button {
    display: inline-block;
    padding: 18px 45px;
    background: #26A9E0; /* Primary brand color */
    color: #ffffff;
    text-decoration: none;
    border-radius: 8px;
    font-size: 1.2em;
    font-weight: bold;
    margin-top: 20px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(38, 169, 224, 0.4);
    max-width: 100%; /* Ensure responsiveness */
    box-sizing: border-box;
    white-space: normal;
    word-wrap: break-word;
}

.page-responsible-gambling__cta-button:hover {
    background: #1e87c0; /* Slightly darker primary color */
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(38, 169, 224, 0.6);
}

.page-responsible-gambling__cta-center {
    text-align: center;
    margin-top: 40px;
}

/* Introduction Section */
.page-responsible-gambling__introduction p {
    font-size: 1.1em;
    margin-bottom: 1em;
    text-align: justify;
}

/* Signs Section */
.page-responsible-gambling__signs-section {
    background-color: #f8f8f8;
    border-top: 1px solid #eeeeee;
    border-bottom: 1px solid #eeeeee;
}

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

.page-responsible-gambling__card {
    background: #ffffff;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    padding: 30px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    color: #333333; /* Ensure contrast on white background */
}

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

.page-responsible-gambling__card-title {
    font-size: 1.5em;
    color: #26A9E0;
    margin-bottom: 15px;
    font-weight: bold;
}

.page-responsible-gambling__card p {
    font-size: 1em;
    color: #555555;
}

/* Tools Section (Dark Background) */
.page-responsible-gambling__dark-section {
    background-color: #26A9E0; /* Primary brand color as background */
    color: #ffffff; /* White text for contrast */
}

.page-responsible-gambling__dark-section .page-responsible-gambling__section-title {
    color: #ffffff; /* White title on dark background */
}

.page-responsible-gambling__dark-section p {
    color: #e0f2f7; /* Lighter text for paragraphs */
}

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

.page-responsible-gambling__tool-item {
    background: rgba(255, 255, 255, 0.15); /* Semi-transparent white card on primary background */
    border-radius: 10px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.page-responsible-gambling__tool-item img {
    width: 100%;
    max-width: 200px; /* Limit image size within card */
    height: auto;
    margin-bottom: 20px;
    border-radius: 8px;
    object-fit: cover;
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.page-responsible-gambling__tool-title {
    font-size: 1.6em;
    color: #ffffff;
    margin-bottom: 15px;
    font-weight: bold;
}

.page-responsible-gambling__btn-secondary {
    background: #ffffff;
    color: #26A9E0; /* Brand color for text */
    border: 2px solid #26A9E0;
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s ease;
    display: inline-block;
    max-width: 100%; /* Ensure responsiveness */
    box-sizing: border-box;
    white-space: normal;
    word-wrap: break-word;
}

.page-responsible-gambling__btn-secondary:hover {
    background: #f0f0f0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* Underage Protection Section */
.page-responsible-gambling__underage-protection img {
    width: 100%;
    max-width: 800px;
    height: auto;
    display: block;
    margin: 40px auto 20px auto;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
}

/* Help Section */
.page-responsible-gambling__help-resources {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.page-responsible-gambling__resource-item {
    background: #ffffff;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    padding: 30px;
    text-align: center;
    color: #333333;
}

.page-responsible-gambling__resource-item h3 {
    font-size: 1.6em;
    color: #26A9E0;
    margin-bottom: 15px;
    font-weight: bold;
}

.page-responsible-gambling__btn-primary {
    background: #26A9E0;
    color: #ffffff;
    border: 2px solid transparent;
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s ease;
    display: inline-block;
    margin-top: 20px;
    max-width: 100%; /* Ensure responsiveness */
    box-sizing: border-box;
    white-space: normal;
    word-wrap: break-word;
}

.page-responsible-gambling__btn-primary:hover {
    background: #1e87c0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

/* FAQ Section */
.page-responsible-gambling__faq-section {
    background-color: #f8f8f8;
    border-top: 1px solid #eeeeee;
    padding-bottom: 60px;
}

.page-responsible-gambling__faq-container {
    max-width: 900px;
    margin: 40px auto 0 auto;
}

.page-responsible-gambling__faq-item {
    margin-bottom: 15px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.page-responsible-gambling__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 25px;
    background: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    cursor: pointer;
    user-select: none;
    transition: background-color 0.3s ease, border-color 0.3s ease;
    position: relative;
}

.page-responsible-gambling__faq-question:hover {
    background: #f5f5f5;
    border-color: #d0d0d0;
}

.page-responsible-gambling__faq-question h3 {
    margin: 0;
    padding: 0;
    flex: 1;
    font-size: 1.15em;
    font-weight: 600;
    line-height: 1.5;
    color: #333333;
    pointer-events: none; /* Prevent h3 from blocking click event */
}

.page-responsible-gambling__faq-toggle {
    font-size: 28px;
    font-weight: bold;
    line-height: 1;
    color: #26A9E0;
    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: 32px;
    height: 32px;
}

.page-responsible-gambling__faq-item.active .page-responsible-gambling__faq-toggle {
    color: #1e87c0;
    transform: rotate(45deg); /* Rotate for 'x' effect, or just change text to '-' */
}

.page-responsible-gambling__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: #fdfdfd;
    border-top: 1px solid #eee;
    color: #555555;
}

.page-responsible-gambling__faq-item.active .page-responsible-gambling__faq-answer {
    max-height: 2000px !important; /* Sufficiently large to contain any content */
    padding: 20px 25px !important;
    opacity: 1;
    border-radius: 0 0 8px 8px;
}

.page-responsible-gambling__faq-answer p {
    margin: 0;
    font-size: 1em;
    line-height: 1.6;
}

/* Conclusion Section */
.page-responsible-gambling__conclusion {
    text-align: center;
    padding-top: 60px;
}

.page-responsible-gambling__conclusion p {
    font-size: 1.1em;
    max-width: 800px;
    margin: 0 auto 30px auto;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .page-responsible-gambling__hero-content h1 {
        font-size: 2.8em;
    }
    .page-responsible-gambling__hero-description {
        font-size: 1.15em;
    }
    .page-responsible-gambling__section-title {
        font-size: 1.8em;
    }
}

@media (max-width: 768px) {
    .page-responsible-gambling__hero-section {
        padding-top: var(--header-offset, 120px) !important; /* Mobile header offset */
        padding-bottom: 40px;
    }
    .page-responsible-gambling__hero-content h1 {
        font-size: 2.2em;
    }
    .page-responsible-gambling__hero-description {
        font-size: 1em;
    }
    .page-responsible-gambling__cta-button {
        padding: 15px 30px;
        font-size: 1.1em;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
        margin-left: auto;
        margin-right: auto;
    }
    .page-responsible-gambling__content-area {
        padding: 40px 15px;
    }
    .page-responsible-gambling__section-title {
        font-size: 1.6em;
        margin-bottom: 30px;
    }
    .page-responsible-gambling__card-grid,
    .page-responsible-gambling__tools-grid,
    .page-responsible-gambling__help-resources {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    .page-responsible-gambling__card,
    .page-responsible-gambling__tool-item,
    .page-responsible-gambling__resource-item {
        padding: 25px;
    }
    .page-responsible-gambling__card-title,
    .page-responsible-gambling__tool-title,
    .page-responsible-gambling__resource-item h3 {
        font-size: 1.3em;
    }
    .page-responsible-gambling__faq-question {
        padding: 15px 20px;
    }
    .page-responsible-gambling__faq-question h3 {
        font-size: 1em;
    }
    .page-responsible-gambling__faq-toggle {
        font-size: 24px;
        width: 28px;
        height: 28px;
    }
    .page-responsible-gambling__faq-item.active .page-responsible-gambling__faq-answer {
        padding: 15px 20px !important;
    }

    /* Image responsiveness */
    .page-responsible-gambling img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        box-sizing: border-box !important;
    }
    .page-responsible-gambling__section,
    .page-responsible-gambling__card,
    .page-responsible-gambling__container,
    .page-responsible-gambling__hero-container,
    .page-responsible-gambling__card-grid,
    .page-responsible-gambling__tools-grid,
    .page-responsible-gambling__help-resources,
    .page-responsible-gambling__faq-container {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
    }

    /* Ensure buttons within containers are responsive */
    .page-responsible-gambling__cta-center .page-responsible-gambling__cta-button,
    .page-responsible-gambling__btn-primary,
    .page-responsible-gambling__btn-secondary {
        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-responsible-gambling__help-resources .page-responsible-gambling__resource-item .page-responsible-gambling__btn-primary {
      margin-left: auto;
      margin-right: auto;
    }
}