/* style/responsible-gambling.css */
.page-responsible-gambling {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #ffffff; /* Default text color for dark body background */
    background-color: transparent; /* Body background is handled by shared.css */
}

.page-responsible-gambling__hero-section {
    position: relative;
    padding: 60px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding-top: var(--header-offset, 120px);
    background-color: #017439; /* Brand color for hero section */
    color: #ffffff;
    overflow: hidden;
}

.page-responsible-gambling__hero-content {
    max-width: 900px;
    margin-bottom: 40px;
    z-index: 1;
}

.page-responsible-gambling__hero-title {
    font-size: 2.8em;
    margin-bottom: 20px;
    color: #ffffff;
    font-weight: bold;
}

.page-responsible-gambling__hero-description {
    font-size: 1.1em;
    margin-bottom: 30px;
    color: #f0f0f0;
}

.page-responsible-gambling__hero-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.page-responsible-gambling__hero-image-wrapper {
    width: 100%;
    max-width: 1200px;
    margin-top: 40px;
    overflow: hidden;
    border-radius: 10px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3);
}

.page-responsible-gambling__hero-image {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

.page-responsible-gambling__content-area {
    max-width: 1200px;
    margin: 0 auto;
    padding: 60px 20px;
    background-color: #ffffff; /* Light background for content sections */
    color: #333333; /* Dark text for light background */
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    margin-bottom: 40px;
}

.page-responsible-gambling__content-area:last-of-type {
    margin-bottom: 0;
}

.page-responsible-gambling__dark-section {
    background-color: #017439;
    color: #ffffff;
}

.page-responsible-gambling__section-title {
    font-size: 2.2em;
    color: #017439;
    text-align: center;
    margin-bottom: 40px;
    font-weight: bold;
}

.page-responsible-gambling__dark-section .page-responsible-gambling__section-title {
    color: #ffffff;
}

.page-responsible-gambling__text-block {
    font-size: 1.05em;
    margin-bottom: 25px;
    text-align: justify;
}

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

.page-responsible-gambling__card {
    background-color: #f9f9f9;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 30px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    color: #333333;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
}

.page-responsible-gambling__card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
}

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

.page-responsible-gambling__card-image {
    width: 100%;
    height: auto;
    max-height: 200px;
    object-fit: cover;
    border-radius: 6px;
    margin-bottom: 20px;
    display: block;
}

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

.page-responsible-gambling__card ul {
    list-style: disc inside;
    margin-top: 15px;
    padding-left: 20px;
}

.page-responsible-gambling__card li {
    margin-bottom: 8px;
    color: #555555;
}

.page-responsible-gambling__card li a {
    color: #017439;
    text-decoration: underline;
}

.page-responsible-gambling__checklist {
    list-style: none;
    padding-left: 0;
    margin-top: 30px;
}

.page-responsible-gambling__checklist li {
    background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="%23017439" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M22 11.08V12a10 10 0 1 1-5.93-9.14"></path><polyline points="22 4 12 14.01 9 11.01"></polyline></svg>') no-repeat left center;
    background-size: 20px;
    padding-left: 30px;
    margin-bottom: 15px;
    font-size: 1.05em;
    color: #333333;
}

.page-responsible-gambling__tips-image {
    width: 100%;
    height: auto;
    display: block;
    margin-top: 40px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.page-responsible-gambling__faq-container {
    margin-top: 40px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.page-responsible-gambling__faq-item {
    border-bottom: 1px solid #eee;
    background-color: #fcfcfc;
}

.page-responsible-gambling__faq-item:last-child {
    border-bottom: none;
}

.page-responsible-gambling__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 30px;
    cursor: pointer;
    background-color: #ffffff;
    transition: background-color 0.3s ease;
}

.page-responsible-gambling__faq-question:hover {
    background-color: #f0f0f0;
}

.page-responsible-gambling__faq-question h3 {
    font-size: 1.2em;
    color: #017439;
    margin: 0;
    font-weight: bold;
}

.page-responsible-gambling__faq-toggle {
    font-size: 1.8em;
    color: #017439;
    font-weight: bold;
    transition: transform 0.3s ease;
    line-height: 1;
}

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

.page-responsible-gambling__faq-answer {
    max-height: 0;
    overflow: hidden;
    padding: 0 30px;
    transition: max-height 0.3s ease, padding 0.3s ease;
    background-color: #fcfcfc;
    color: #555555;
}

.page-responsible-gambling__faq-item.active .page-responsible-gambling__faq-answer {
    max-height: 1000px !important; /* Sufficiently large value */
    padding: 20px 30px;
}

.page-responsible-gambling__faq-answer p {
    margin-bottom: 0;
    padding-top: 5px;
}

.page-responsible-gambling__call-to-action {
    text-align: center;
    padding: 80px 20px;
    background-color: #017439; /* Brand color */
    color: #ffffff;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.page-responsible-gambling__call-to-action .page-responsible-gambling__section-title {
    color: #ffffff;
}

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

.page-responsible-gambling__btn-primary,
.page-responsible-gambling__btn-secondary {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
    white-space: normal;
    word-wrap: break-word;
    box-sizing: border-box;
    max-width: 100%;
}

.page-responsible-gambling__btn-primary {
    background-color: #C30808; /* Custom red for register/login */
    color: #FFFF00; /* Custom yellow for font */
    border: 2px solid #C30808;
}

.page-responsible-gambling__btn-primary:hover {
    background-color: #a30606;
    border-color: #a30606;
}

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

.page-responsible-gambling__btn-secondary:hover {
    background-color: #f0f0f0;
    color: #005f2e;
    border-color: #005f2e;
}

/* Responsive Styles */
@media (max-width: 992px) {
    .page-responsible-gambling__hero-title {
        font-size: 2.2em;
    }

    .page-responsible-gambling__section-title {
        font-size: 1.8em;
    }

    .page-responsible-gambling__principles-grid,
    .page-responsible-gambling__tools-grid,
    .page-responsible-gambling__support-grid,
    .page-responsible-gambling__tips-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .page-responsible-gambling {
        font-size: 16px;
        line-height: 1.6;
    }

    .page-responsible-gambling__hero-section {
        padding: 40px 15px;
        padding-top: var(--header-offset, 120px) !important;
    }

    .page-responsible-gambling__hero-title {
        font-size: 1.8em;
    }

    .page-responsible-gambling__hero-description {
        font-size: 1em;
    }

    .page-responsible-gambling__hero-buttons,
    .page-responsible-gambling__cta-buttons {
        flex-direction: column;
        gap: 15px;
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
    }

    .page-responsible-gambling__btn-primary,
    .page-responsible-gambling__btn-secondary,
    .page-responsible-gambling a[class*="button"],
    .page-responsible-gambling a[class*="btn"] {
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        text-align: center;
    }

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

    .page-responsible-gambling__section-title {
        font-size: 1.5em;
    }

    .page-responsible-gambling__text-block {
        font-size: 0.95em;
    }

    .page-responsible-gambling__card {
        padding: 20px;
        box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    }

    .page-responsible-gambling__card-title {
        font-size: 1.3em;
    }

    .page-responsible-gambling__checklist li {
        font-size: 0.95em;
    }

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

    .page-responsible-gambling__faq-question h3 {
        font-size: 1.1em;
    }

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

    .page-responsible-gambling img {
        max-width: 100% !important;
        height: auto !important;
        display: block !important;
    }

    .page-responsible-gambling__hero-image-wrapper,
    .page-responsible-gambling__tips-image,
    .page-responsible-gambling__card-image,
    .page-responsible-gambling__faq-container {
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
        overflow: hidden !important;
    }

    .page-responsible-gambling__call-to-action {
        padding: 60px 15px;
    }
}