.page-responsible-gambling {
    color: #ffffff; /* Text color for dark body background */
    background-color: #000000; /* Ensure body background is black */
}

.page-responsible-gambling__hero-section {
    position: relative;
    width: 100%;
    min-height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding-top: 0; /* Assumes shared.css handles body padding-top */
    padding-bottom: 60px;
    overflow: hidden;
}

.page-responsible-gambling__hero-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
    filter: brightness(0.5); /* Darken image for text readability */
}

.page-responsible-gambling__hero-container {
    position: relative;
    z-index: 2;
    max-width: 900px;
    margin: 0 auto;
    padding: 0 20px;
}

.page-responsible-gambling__hero-content {
    position: relative;
    z-index: 3;
    color: #ffffff;
}

.page-responsible-gambling__main-title {
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 20px;
    line-height: 1.2;
    color: #FF0000; /* Brand color for main title */
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
}

.page-responsible-gambling__hero-description {
    font-size: 18px;
    line-height: 1.6;
    color: #f0f0f0;
    max-width: 700px;
    margin: 0 auto;
}

.page-responsible-gambling__section {
    padding: 80px 0;
    background-color: #000000;
    color: #ffffff;
}

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

.page-responsible-gambling__section-title {
    font-size: 36px;
    font-weight: 700;
    text-align: center;
    margin-bottom: 40px;
    color: #FF0000; /* Brand color for section titles */
}

.page-responsible-gambling__introduction p,
.page-responsible-gambling__signs p,
.page-responsible-gambling__seeking-help p,
.page-responsible-gambling__underage-gambling p {
    font-size: 16px;
    line-height: 1.7;
    margin-bottom: 20px;
    color: #f0f0f0;
}

.page-responsible-gambling__list {
    list-style: none;
    padding: 0;
    margin-bottom: 20px;
}

.page-responsible-gambling__list-item {
    position: relative;
    padding-left: 30px;
    margin-bottom: 15px;
    font-size: 16px;
    line-height: 1.6;
    color: #f0f0f0;
}

.page-responsible-gambling__list-item::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: #FF0000; /* Brand color for list item markers */
    font-weight: bold;
}

.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: rgba(255, 255, 255, 0.1); /* Light transparent background on dark body */
    border-radius: 10px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

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

.page-responsible-gambling__card-title {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 15px;
    color: #FF0000; /* Brand color for card titles */
}

.page-responsible-gambling__card-image {
    max-width: 100%;
    height: auto;
    margin-bottom: 20px;
    border-radius: 8px;
}

.page-responsible-gambling__card p {
    font-size: 15px;
    line-height: 1.6;
    color: #f0f0f0;
}

.page-responsible-gambling__call-to-action {
    text-align: center;
    margin-top: 40px;
    font-size: 17px;
    line-height: 1.6;
    color: #f0f0f0;
}

.page-responsible-gambling__link {
    color: #FF0000; /* Brand color for links */
    text-decoration: underline;
    transition: color 0.3s ease;
}

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

.page-responsible-gambling__sub-title {
    font-size: 28px;
    font-weight: 600;
    margin-top: 40px;
    margin-bottom: 25px;
    color: #FF0000; /* Brand color for sub-titles */
    text-align: center;
}

.page-responsible-gambling__help-resources {
    margin-top: 30px;
}

.page-responsible-gambling__help-resources .page-responsible-gambling__list-item {
    padding-left: 0;
    margin-bottom: 10px;
}

.page-responsible-gambling__help-resources .page-responsible-gambling__list-item::before {
    content: none;
}

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

.page-responsible-gambling__btn-primary,
.page-responsible-gambling__btn-secondary {
    display: inline-block;
    padding: 14px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 16px;
    transition: all 0.3s ease;
    max-width: 100%;
    box-sizing: border-box;
    white-space: normal;
    word-wrap: break-word;
}

.page-responsible-gambling__btn-primary {
    background: #FF0000;
    color: #ffffff;
    border: 2px solid #FF0000;
}

.page-responsible-gambling__btn-primary:hover {
    background: #cc0000;
    border-color: #cc0000;
    transform: translateY(-2px);
}

.page-responsible-gambling__btn-secondary {
    background: #ffffff;
    color: #FF0000;
    border: 2px solid #FF0000;
}

.page-responsible-gambling__btn-secondary:hover {
    background: #f0f0f0;
    color: #cc0000;
    border-color: #cc0000;
    transform: translateY(-2px);
}

/* FAQ Section Styles */
.page-responsible-gambling__faq-section {
    background-color: #000000;
    padding: 80px 0;
    color: #ffffff;
}

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

.page-responsible-gambling__faq-item {
    margin-bottom: 15px;
    border-radius: 5px;
    overflow: hidden;
}

.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 15px;
    opacity: 0;
    background: rgba(255, 255, 255, 0.05); /* Slightly lighter background for answer */
    color: #f0f0f0;
}

.page-responsible-gambling__faq-item.active .page-responsible-gambling__faq-answer {
    max-height: 2000px !important; /* Ensure enough height for content */
    padding: 20px 15px !important;
    opacity: 1;
    border-radius: 0 0 5px 5px;
}

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

.page-responsible-gambling__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 20px;
    background: rgba(255, 255, 255, 0.1); /* Slightly lighter background for question */
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 5px;
    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: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.3);
}

.page-responsible-gambling__faq-question:active {
    background: rgba(255, 255, 255, 0.2);
}

.page-responsible-gambling__faq-question h3 {
    margin: 0;
    padding: 0;
    flex: 1;
    font-size: 16px;
    font-weight: 600;
    line-height: 1.5;
    pointer-events: none;
    color: #ffffff;
}

.page-responsible-gambling__faq-toggle {
    font-size: 24px;
    font-weight: bold;
    line-height: 1;
    color: #FF0000; /* Brand color for toggle icon */
    transition: transform 0.3s ease, color 0.3s ease;
    flex-shrink: 0;
    margin-left: 15px;
    pointer-events: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
}

.page-responsible-gambling__faq-item.active .page-responsible-gambling__faq-toggle {
    color: #ffffff;
    transform: rotate(45deg);
}

/* General Image Responsive Styles */
.page-responsible-gambling img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* General Container Responsive Styles */
.page-responsible-gambling__section,
.page-responsible-gambling__container {
    box-sizing: border-box;
}

/* Media Queries for Responsive Design */
@media (max-width: 1024px) {
    .page-responsible-gambling__main-title {
        font-size: 40px;
    }

    .page-responsible-gambling__hero-description {
        font-size: 17px;
    }

    .page-responsible-gambling__section-title {
        font-size: 32px;
    }

    .page-responsible-gambling__sub-title {
        font-size: 24px;
    }

    .page-responsible-gambling__card-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 25px;
    }
}

@media (max-width: 768px) {
    .page-responsible-gambling__hero-section {
        min-height: 400px;
        padding-bottom: 40px;
    }
    
    .page-responsible-gambling__hero-image {
        height: 100%;
    }

    .page-responsible-gambling__hero-container {
        padding: 0 15px;
    }

    .page-responsible-gambling__main-title {
        font-size: 32px !important;
        margin-bottom: 15px;
    }

    .page-responsible-gambling__hero-description {
        font-size: 15px !important;
        line-height: 1.5;
    }

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

    .page-responsible-gambling__container {
        padding: 0 15px;
    }

    .page-responsible-gambling__section-title {
        font-size: 26px !important;
        margin-bottom: 30px;
    }

    .page-responsible-gambling__introduction p,
    .page-responsible-gambling__signs p,
    .page-responsible-gambling__seeking-help p,
    .page-responsible-gambling__underage-gambling p,
    .page-responsible-gambling__list-item,
    .page-responsible-gambling__card p {
        font-size: 14px !important;
        line-height: 1.6;
    }

    .page-responsible-gambling__sub-title {
        font-size: 22px !important;
        margin-top: 30px;
        margin-bottom: 20px;
    }

    .page-responsible-gambling__list-item {
        padding-left: 25px;
    }

    .page-responsible-gambling__list-item::before {
        font-size: 14px;
    }

    .page-responsible-gambling__card-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .page-responsible-gambling__card {
        padding: 25px;
    }

    .page-responsible-gambling__card-title {
        font-size: 20px !important;
    }

    .page-responsible-gambling__call-to-action {
        font-size: 15px !important;
        margin-top: 30px;
    }

    .page-responsible-gambling__contact-buttons {
        flex-direction: column;
        gap: 15px;
        margin-top: 30px;
    }

    .page-responsible-gambling__btn-primary,
    .page-responsible-gambling__btn-secondary {
        padding: 12px 20px !important;
        font-size: 15px !important;
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
    }

    .page-responsible-gambling__faq-section {
        padding: 50px 0;
    }

    .page-responsible-gambling__faq-list {
        padding: 0 15px;
    }

    .page-responsible-gambling__faq-question {
        padding: 15px;
    }

    .page-responsible-gambling__faq-question h3 {
        font-size: 15px !important;
    }

    .page-responsible-gambling__faq-toggle {
        font-size: 20px !important;
        width: 24px !important;
        height: 24px !important;
    }

    .page-responsible-gambling__faq-item.active .page-responsible-gambling__faq-answer {
        padding: 15px !important;
    }

    .page-responsible-gambling__faq-answer p {
        font-size: 14px !important;
    }

    /* Generic image and container responsive styles */
    .page-responsible-gambling img {
        max-width: 100% !important;
        height: auto !important;
        width: 100% !important;
    }
    .page-responsible-gambling__section,
    .page-responsible-gambling__container,
    .page-responsible-gambling__card {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }
}