/* style/responsible-gambling-tools.css */

/* --- Base Styles --- */
.page-responsible-gambling-tools {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #333333; /* Dark text for light body background */
    background-color: #f8f9fa; /* Light background for the page content */
}

.page-responsible-gambling-tools__container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.page-responsible-gambling-tools__section {
    padding: 60px 0;
    text-align: center;
}

.page-responsible-gambling-tools__section:nth-of-type(even) {
    background-color: #ffffff;
}

.page-responsible-gambling-tools__heading {
    font-size: 36px;
    color: #26A9E0; /* Primary color for headings */
    margin-bottom: 30px;
    font-weight: bold;
}

.page-responsible-gambling-tools p {
    margin-bottom: 15px;
    font-size: 17px;
    line-height: 1.7;
}

.page-responsible-gambling-tools__list {
    list-style: none;
    padding: 0;
    margin: 30px auto;
    max-width: 800px;
    text-align: left;
}

.page-responsible-gambling-tools__list li {
    background-color: #ffffff;
    border-left: 4px solid #26A9E0;
    padding: 15px 20px;
    margin-bottom: 10px;
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
    font-size: 16px;
}

/* --- Buttons --- */
.page-responsible-gambling-tools__cta-button,
.page-responsible-gambling-tools__btn-primary,
.page-responsible-gambling-tools__btn-secondary {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    font-size: 18px;
    transition: all 0.3s ease;
    cursor: pointer;
    text-align: center;
    max-width: 100%;
    box-sizing: border-box;
    white-space: normal;
    word-wrap: break-word;
}

.page-responsible-gambling-tools__cta-button,
.page-responsible-gambling-tools__btn-primary {
    background-color: #26A9E0; /* Primary color */
    color: #ffffff;
    border: 2px solid #26A9E0;
}

.page-responsible-gambling-tools__cta-button:hover,
.page-responsible-gambling-tools__btn-primary:hover {
    background-color: #1e87c0;
    border-color: #1e87c0;
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.page-responsible-gambling-tools__btn-secondary {
    background-color: #ffffff;
    color: #26A9E0;
    border: 2px solid #26A9E0;
}

.page-responsible-gambling-tools__btn-secondary:hover {
    background-color: #f0f8ff;
    color: #1e87c0;
    border-color: #1e87c0;
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

/* --- Image Styles --- */
.page-responsible-gambling-tools img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 30px auto;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    object-fit: cover;
}

/* --- Hero Section --- */
.page-responsible-gambling-tools__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); /* Ensure header offset */
    background: linear-gradient(135deg, #e0f2f7, #ffffff);
}

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

.page-responsible-gambling-tools__hero-image {
    width: 100%;
    margin-bottom: 30px;
}

.page-responsible-gambling-tools__hero-image img {
    width: 100%;
    height: auto;
    max-width: 100%;
    display: block;
    border-radius: 12px;
    object-fit: cover;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

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

.page-responsible-gambling-tools__hero-content h1 {
    font-size: 48px;
    color: #26A9E0;
    margin-bottom: 20px;
    line-height: 1.2;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.1);
}

.page-responsible-gambling-tools__intro-description {
    font-size: 20px;
    color: #555555;
    max-width: 800px;
    margin: 0 auto 40px auto;
}

/* --- Tools Grid Section --- */
.page-responsible-gambling-tools__tools .page-responsible-gambling-tools__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.page-responsible-gambling-tools__card {
    background-color: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    padding: 30px;
    text-align: left;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

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

.page-responsible-gambling-tools__card-title {
    font-size: 24px;
    color: #26A9E0;
    margin-top: 0;
    margin-bottom: 15px;
    font-weight: bold;
}

.page-responsible-gambling-tools__card p {
    font-size: 16px;
    color: #555555;
    flex-grow: 1; /* Ensures text takes available space */
}

.page-responsible-gambling-tools__card img {
    width: 100%;
    height: 200px; /* Fixed height for consistency in cards */
    object-fit: cover;
    border-radius: 8px;
    margin-top: 20px;
    margin-bottom: 0;
    box-shadow: none; /* Remove shadow for card internal images */
}

/* --- External Support Grid --- */
.page-responsible-gambling-tools__external-support .page-responsible-gambling-tools__support-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.page-responsible-gambling-tools__support-item {
    background-color: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    padding: 30px;
    text-align: left;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

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

.page-responsible-gambling-tools__support-title {
    font-size: 22px;
    color: #26A9E0;
    margin-top: 0;
    margin-bottom: 15px;
    font-weight: bold;
}

.page-responsible-gambling-tools__support-item p {
    font-size: 16px;
    color: #555555;
    flex-grow: 1;
}

.page-responsible-gambling-tools__support-item .page-responsible-gambling-tools__btn-secondary {
    margin-top: 20px;
    align-self: center; /* Center the button in the card */
}

/* --- FAQ Section --- */
.page-responsible-gambling-tools__faq-list {
    max-width: 900px;
    margin: 40px auto 0 auto;
    text-align: left;
}

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

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

.page-responsible-gambling-tools__faq-item.active .page-responsible-gambling-tools__faq-question {
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
    border-color: #26A9E0;
    background-color: #e0f2f7;
}

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

.page-responsible-gambling-tools__faq-question:active {
    background: #eeeeee;
}

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

.page-responsible-gambling-tools__faq-toggle {
    font-size: 28px;
    font-weight: bold;
    line-height: 1;
    color: #666;
    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-tools__faq-item.active .page-responsible-gambling-tools__faq-toggle {
    color: #26A9E0;
    transform: rotate(45deg); /* Rotate for 'x' effect, or just change text to '-' */
}

.page-responsible-gambling-tools__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: 1px solid #e0e0e0;
    border-top: none;
    border-bottom-left-radius: 10px;
    border-bottom-right-radius: 10px;
}

.page-responsible-gambling-tools__faq-item.active .page-responsible-gambling-tools__faq-answer {
    max-height: 2000px !important; /* Sufficiently large for content */
    padding: 20px 25px !important;
    opacity: 1;
    border-color: #26A9E0;
}

.page-responsible-gambling-tools__faq-answer p {
    font-size: 16px;
    color: #555555;
    margin-bottom: 0;
}

/* --- Responsive Design --- */
@media (max-width: 1024px) {
    .page-responsible-gambling-tools__hero-content h1 {
        font-size: 40px;
    }
    .page-responsible-gambling-tools__intro-description {
        font-size: 18px;
    }
    .page-responsible-gambling-tools__heading {
        font-size: 30px;
    }
    .page-responsible-gambling-tools__card-title {
        font-size: 22px;
    }
    .page-responsible-gambling-tools__faq-question h3 {
        font-size: 17px;
    }
}

@media (max-width: 768px) {
    /* --- General Mobile Adjustments --- */
    .page-responsible-gambling-tools__section {
        padding: 40px 0;
    }
    .page-responsible-gambling-tools__container {
        padding: 0 15px;
    }
    .page-responsible-gambling-tools__heading {
        font-size: 28px;
        margin-bottom: 20px;
    }
    .page-responsible-gambling-tools p {
        font-size: 16px;
    }
    .page-responsible-gambling-tools__list li {
        padding: 12px 15px;
        font-size: 15px;
    }

    /* --- Header Offset for Mobile --- */
    .page-responsible-gambling-tools__hero-section {
        padding-top: var(--header-offset, 120px) !important;
        padding-bottom: 40px;
        padding-left: 15px;
        padding-right: 15px;
    }
    
    .page-responsible-gambling-tools__hero-content h1 {
        font-size: 32px;
    }
    .page-responsible-gambling-tools__intro-description {
        font-size: 16px;
        margin-bottom: 30px;
    }
    .page-responsible-gambling-tools__cta-button {
        padding: 12px 25px;
        font-size: 16px;
    }

    /* --- Image Mobile Adaptations --- */
    .page-responsible-gambling-tools img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        margin: 20px auto;
        border-radius: 8px;
    }
    
    .page-responsible-gambling-tools__card img {
         /* Adjust height for mobile cards */
    }

    /* --- Grid Layouts --- */
    .page-responsible-gambling-tools__tools .page-responsible-gambling-tools__grid,
    .page-responsible-gambling-tools__external-support .page-responsible-gambling-tools__support-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .page-responsible-gambling-tools__card,
    .page-responsible-gambling-tools__support-item {
        padding: 25px;
        text-align: center;
        align-items: center;
    }
    
    .page-responsible-gambling-tools__card p,
    .page-responsible-gambling-tools__support-item p {
        text-align: center;
    }

    /* --- Button Mobile Adaptations --- */
    .page-responsible-gambling-tools__cta-button,
    .page-responsible-gambling-tools__btn-primary,
    .page-responsible-gambling-tools__btn-secondary,
    .page-responsible-gambling-tools a[class*="button"],
    .page-responsible-gambling-tools a[class*="btn"] {
        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-tools__cta-buttons,
    .page-responsible-gambling-tools__button-group,
    .page-responsible-gambling-tools__btn-container {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        flex-wrap: wrap !important;
        gap: 10px;
    }
    
    /* Ensure containers for images and buttons also adapt */
    .page-responsible-gambling-tools__section,
    .page-responsible-gambling-tools__card,
    .page-responsible-gambling-tools__container {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        /* Padding handled by specific sections/components */
    }

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

@media (max-width: 480px) {
    .page-responsible-gambling-tools__hero-content h1 {
        font-size: 28px;
    }
    .page-responsible-gambling-tools__heading {
        font-size: 24px;
    }
    .page-responsible-gambling-tools__cta-button {
        width: 100%;
    }
}