/* style/responsible-gambling.css */

/* Base Styles */
.page-responsible-gambling {
    font-family: 'Arial', sans-serif;
    color: #333333; /* Dark text for light background */
    line-height: 1.6;
    background-color: var(--secondary-color); /* Matches body background */
}

.page-responsible-gambling__container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    box-sizing: border-box;
}

.page-responsible-gambling__section {
    padding: 60px 0;
}

.page-responsible-gambling__heading {
    font-size: 32px;
    color: #26A9E0; /* Brand primary color for headings */
    text-align: center;
    margin-bottom: 40px;
    font-weight: 700;
}

.page-responsible-gambling__sub-heading {
    font-size: 24px;
    color: #26A9E0;
    margin-top: 30px;
    margin-bottom: 20px;
    font-weight: 600;
}

.page-responsible-gambling__paragraph {
    font-size: 16px;
    margin-bottom: 20px;
    text-align: justify;
}

.page-responsible-gambling__highlight {
    font-weight: bold;
    color: #000000; /* Ensure strong contrast for highlights */
}

/* 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 spacing */
    background: linear-gradient(135deg, #26A9E0 0%, #FFFFFF 100%); /* Brand colors gradient */
    overflow: hidden; /* Prevent content overflow */
}

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

.page-responsible-gambling__hero-image {
    width: 100%;
    margin-bottom: 30px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.page-responsible-gambling__hero-image img {
    width: 100%;
    height: auto;
    max-width: 100%;
    display: block;
    object-fit: cover;
    border-radius: 12px;
}

.page-responsible-gambling__hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    width: 100%;
    background-color: rgba(255, 255, 255, 0.9); /* Semi-transparent white background for text */
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.page-responsible-gambling__hero-title {
    font-size: 42px;
    color: #26A9E0; /* Brand primary color */
    margin-bottom: 20px;
    font-weight: 800;
    line-height: 1.2;
}

.page-responsible-gambling__hero-description {
    font-size: 18px;
    color: #333333;
    margin-bottom: 30px;
    line-height: 1.7;
}

.page-responsible-gambling__cta-button {
    display: inline-block;
    padding: 15px 40px;
    background: #26A9E0; /* Primary brand color */
    color: #ffffff;
    text-decoration: none;
    border-radius: 50px;
    font-size: 18px;
    font-weight: bold;
    margin-top: 20px;
    transition: all 0.3s ease;
    box-shadow: 0 6px 15px rgba(38, 169, 224, 0.3);
}

.page-responsible-gambling__cta-button:hover {
    background: #1e87b7; /* Darker shade of primary */
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(38, 169, 224, 0.4);
}

/* Introduction Section */
.page-responsible-gambling__introduction {
    background-color: #f8f8f8;
}

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

.page-responsible-gambling__dark-bg .page-responsible-gambling__heading {
    color: #ffffff; /* White heading for dark background */
}

.page-responsible-gambling__dark-bg .page-responsible-gambling__paragraph {
    color: #f0f0f0;
}

.page-responsible-gambling__dark-bg .page-responsible-gambling__highlight {
    color: #ffffff;
}

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

.page-responsible-gambling__card {
    background: #ffffff; /* White background for cards */
    color: #333333; /* Dark text for white background */
    border-radius: 12px;
    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;
    align-items: center;
    justify-content: flex-start;
}

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

.page-responsible-gambling__card img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin-bottom: 20px;
    object-fit: cover;
    min-width: 200px; /* Enforce min-size for card images */
    min-height: 200px;
}

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

.page-responsible-gambling__card-text {
    font-size: 15px;
    margin-bottom: 20px;
    flex-grow: 1; /* Allow text to take available space */
    text-align: justify;
}

.page-responsible-gambling__btn-secondary {
    display: inline-block;
    padding: 12px 30px;
    background: #ffffff;
    color: #26A9E0; /* Primary brand color for text */
    border: 2px solid #26A9E0;
    text-decoration: none;
    border-radius: 50px;
    font-size: 16px;
    font-weight: bold;
    transition: all 0.3s ease;
    margin-top: 15px;
}

.page-responsible-gambling__btn-secondary:hover {
    background: #26A9E0;
    color: #ffffff;
    box-shadow: 0 4px 10px rgba(38, 169, 224, 0.2);
}

/* Minor Protection Section */
.page-responsible-gambling__minor-protection {
    background-color: #f0f7ff; /* Light blue background */
}

.page-responsible-gambling__list {
    list-style: disc inside;
    margin-left: 20px;
    margin-top: 20px;
    font-size: 16px;
}

.page-responsible-gambling__list-item {
    margin-bottom: 10px;
}

/* Support Section (Light Background) */
.page-responsible-gambling__light-bg {
    background-color: #ffffff; /* White background */
    color: #333333; /* Dark text */
}

.page-responsible-gambling__light-bg .page-responsible-gambling__heading {
    color: #26A9E0;
}

/* FAQ Section */
.page-responsible-gambling__faq {
    background-color: #f8f8f8;
    padding-bottom: 80px;
}

.page-responsible-gambling__faq-list {
    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.08);
}

.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.3s ease;
    padding: 0 25px;
    opacity: 0;
    background: #fdfdfd;
}

.page-responsible-gambling__faq-item.active .page-responsible-gambling__faq-answer {
    max-height: 2000px !important; /* Sufficiently large */
    padding: 20px 25px !important;
    opacity: 1;
    background: #fdfdfd;
    border-top: 1px solid #e0e0e0;
}

.page-responsible-gambling__faq-answer p {
    margin: 0;
    padding: 0;
    font-size: 15px;
    color: #555555;
    text-align: justify;
}

.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:active {
    background: #eeeeee;
}

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

.page-responsible-gambling__faq-toggle {
    font-size: 28px;
    font-weight: bold;
    line-height: 1;
    color: #26A9E0; /* Brand primary color for toggle */
    transition: transform 0.3s ease, color 0.3s ease;
    flex-shrink: 0;
    margin-left: 15px;
    pointer-events: none; /* Prevent icon from blocking click */
    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: #1e87b7; /* Darker shade when active */
    transform: rotate(45deg); /* Rotate for 'x' effect */
}

/* Conclusion Section */
.page-responsible-gambling__conclusion {
    background-color: #f0f7ff;
    text-align: center;
}

.page-responsible-gambling__cta-bottom {
    margin-top: 40px;
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap; /* Allow wrapping on smaller screens */
}

.page-responsible-gambling__btn-primary {
    display: inline-block;
    padding: 15px 40px;
    background: #26A9E0; /* Primary brand color */
    color: #ffffff;
    text-decoration: none;
    border-radius: 50px;
    font-size: 18px;
    font-weight: bold;
    transition: all 0.3s ease;
    box-shadow: 0 6px 15px rgba(38, 169, 224, 0.3);
    border: 2px solid transparent;
}

.page-responsible-gambling__btn-primary:hover {
    background: #1e87b7;
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(38, 169, 224, 0.4);
}

.page-responsible-gambling__link {
    color: #26A9E0;
    text-decoration: underline;
    font-weight: 600;
    transition: color 0.3s ease;
}

.page-responsible-gambling__link:hover {
    color: #1e87b7;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .page-responsible-gambling__hero-title {
        font-size: 36px;
    }
    .page-responsible-gambling__hero-description {
        font-size: 16px;
    }
    .page-responsible-gambling__heading {
        font-size: 28px;
    }
    .page-responsible-gambling__sub-heading {
        font-size: 22px;
    }
    .page-responsible-gambling__card img {
        width: 100%; /* Ensure images are responsive within cards */
        min-width: 200px;
        min-height: 200px;
    }
}

@media (max-width: 768px) {
    /* Mobile Fixed Header Spacing */
    .page-responsible-gambling__hero-section {
        padding-top: var(--header-offset, 120px) !important;
        padding-bottom: 40px;
        padding-left: 15px;
        padding-right: 15px;
    }

    .page-responsible-gambling__hero-image img {
        border-radius: 8px;
    }

    .page-responsible-gambling__hero-title {
        font-size: 28px;
        margin-bottom: 15px;
    }
    .page-responsible-gambling__hero-description {
        font-size: 15px;
        margin-bottom: 20px;
    }
    .page-responsible-gambling__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;
        font-size: 16px;
    }

    .page-responsible-gambling__section {
        padding: 40px 0;
    }
    .page-responsible-gambling__heading {
        font-size: 24px;
        margin-bottom: 30px;
    }
    .page-responsible-gambling__sub-heading {
        font-size: 20px;
    }
    .page-responsible-gambling__paragraph {
        font-size: 15px;
    }

    .page-responsible-gambling__container {
        padding: 0 15px;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

    /* Images responsiveness */
    .page-responsible-gambling img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        box-sizing: border-box !important;
    }
    
    .page-responsible-gambling__hero-image,
    .page-responsible-gambling__card {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

    /* Card specific adjustments */
    .page-responsible-gambling__grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    .page-responsible-gambling__card {
        padding: 20px;
    }
    .page-responsible-gambling__card-title {
        font-size: 20px;
    }
    .page-responsible-gambling__card-text {
        font-size: 14px;
    }

    /* FAQ specific adjustments */
    .page-responsible-gambling__faq-question {
        padding: 15px 20px;
    }
    .page-responsible-gambling__faq-question h3 {
        font-size: 16px;
    }
    .page-responsible-gambling__faq-toggle {
        font-size: 24px;
        width: 28px;
        height: 28px;
    }
    .page-responsible-gambling__faq-answer {
        padding: 0 20px;
    }
    .page-responsible-gambling__faq-item.active .page-responsible-gambling__faq-answer {
        padding: 15px 20px !important;
    }

    /* Bottom CTA */
    .page-responsible-gambling__cta-bottom {
        flex-direction: column;
        gap: 15px;
    }
    .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;
    }
}