/* style/responsible-gambling.css */
:root {
    --primary-color: #007bff;
    --secondary-color: #ffc107;
    --text-color-dark-bg: #ffffff;
    --text-color-light-bg: #333333;
    --background-dark: #0a0a0a; /* Body background from shared.css */
    --card-background-light: #ffffff;
    --border-color-light: #e0e0e0;
    --hover-bg-light: #f5f5f5;
}

.page-responsible-gambling {
    font-family: 'Arial', sans-serif;
    color: var(--text-color-dark-bg); /* Default text color for dark body background */
    background-color: var(--background-dark);
}

.page-responsible-gambling__hero-section {
    position: relative;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 60px 20px;
    padding-top: 120px; /* Adjusted for fixed header */
    background: linear-gradient(135deg, var(--primary-color), #0056b3); /* Darker gradient for contrast */
    color: var(--text-color-dark-bg);
}

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

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

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

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

.page-responsible-gambling__main-title {
    font-size: 42px;
    font-weight: bold;
    margin-bottom: 20px;
    line-height: 1.2;
    color: var(--text-color-dark-bg);
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.page-responsible-gambling__hero-description {
    font-size: 18px;
    line-height: 1.6;
    max-width: 800px;
    margin: 0 auto 30px auto;
    color: var(--text-color-dark-bg);
}

.page-responsible-gambling__cta-button {
    display: inline-block;
    padding: 15px 40px;
    background: var(--secondary-color);
    color: var(--text-color-light-bg);
    text-decoration: none;
    border-radius: 5px;
    font-size: 18px;
    font-weight: bold;
    margin-top: 30px;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.page-responsible-gambling__cta-button:hover {
    background: #e0a800;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.3);
}

.page-responsible-gambling__cta-button--secondary {
    background: var(--primary-color);
    color: var(--text-color-dark-bg);
}

.page-responsible-gambling__cta-button--secondary:hover {
    background: #0056b3;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.3);
}

.page-responsible-gambling__section {
    padding: 60px 20px;
    background-color: var(--background-dark);
    color: var(--text-color-dark-bg);
}

.page-responsible-gambling__section:nth-of-type(odd) {
    background-color: #1a1a1a; /* Slightly lighter dark background for alternating sections */
}

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

.page-responsible-gambling__section-title {
    font-size: 36px;
    font-weight: bold;
    color: var(--text-color-dark-bg);
    text-align: center;
    margin-bottom: 40px;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.page-responsible-gambling__text-block {
    font-size: 17px;
    line-height: 1.7;
    margin-bottom: 25px;
    color: var(--text-color-dark-bg);
}

.page-responsible-gambling__text-block strong {
    color: var(--secondary-color);
}

.page-responsible-gambling__introduction img,
.page-responsible-gambling__resource-card img {
    max-width: 100%;
    height: auto;
    display: block;
    border-radius: 8px;
    margin: 30px auto;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

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

.page-responsible-gambling__card {
    background: rgba(255, 255, 255, 0.08); /* Light transparent background for cards on dark body */
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-color-dark-bg);
}

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

.page-responsible-gambling__card img {
    max-width: 150px; /* Larger images for cards */
    height: auto;
    margin: 0 auto 20px auto;
    display: block;
    border-radius: 5px;
}

.page-responsible-gambling__card-title {
    font-size: 24px;
    font-weight: bold;
    color: var(--secondary-color);
    margin-bottom: 15px;
}

.page-responsible-gambling__card-description {
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-color-dark-bg);
}

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

.page-responsible-gambling__list-item {
    background: rgba(255, 255, 255, 0.05);
    border-left: 5px solid var(--primary-color);
    padding: 15px 20px;
    margin-bottom: 10px;
    border-radius: 5px;
    font-size: 17px;
    line-height: 1.6;
    color: var(--text-color-dark-bg);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

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

.page-responsible-gambling__resource-card {
    background: rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-color-dark-bg);
}

.page-responsible-gambling__resource-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.page-responsible-gambling__resource-card img {
    max-width: 200px; /* Ensure images are not small icons */
    height: auto;
    margin: 0 auto 20px auto;
    display: block;
    border-radius: 8px;
}

.page-responsible-gambling__resource-title {
    font-size: 26px;
    font-weight: bold;
    color: var(--secondary-color);
    margin-bottom: 15px;
}

.page-responsible-gambling__resource-description {
    font-size: 16px;
    line-height: 1.6;
    margin-bottom: 20px;
    color: var(--text-color-dark-bg);
}

.page-responsible-gambling__resource-link {
    display: inline-block;
    padding: 10px 25px;
    background: var(--primary-color);
    color: var(--text-color-dark-bg);
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    transition: background-color 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.page-responsible-gambling__resource-link:hover {
    background: #0056b3;
    text-decoration: underline;
}

/* FAQ Section */
.page-responsible-gambling__faq {
    padding: 60px 20px;
    background-color: #1a1a1a; /* Slightly different dark background */
}

.page-responsible-gambling__faq-list {
    margin-top: 40px;
}

.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;
    padding: 0 15px;
    opacity: 0;
}

.page-responsible-gambling__faq-item.active .page-responsible-gambling__faq-answer {
    max-height: 2000px !important;
    padding: 20px 15px !important;
    opacity: 1;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 0 0 5px 5px;
    color: var(--text-color-dark-bg);
}

.page-responsible-gambling__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 20px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 5px;
    cursor: pointer;
    user-select: none;
    transition: background-color 0.3s ease, border-color 0.3s ease;
    position: relative;
    color: var(--text-color-dark-bg);
}

.page-responsible-gambling__faq-question:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.2);
}

.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: 18px;
    font-weight: 600;
    line-height: 1.5;
    pointer-events: none;
    color: var(--text-color-dark-bg);
}

.page-responsible-gambling__faq-toggle {
    font-size: 24px;
    font-weight: bold;
    line-height: 1;
    color: var(--secondary-color);
    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: var(--primary-color);
    transform: rotate(45deg); /* Rotate for 'x' effect */
}

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

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

@media (max-width: 768px) {
    .page-responsible-gambling__hero-section {
        padding-top: 100px !important; /* Mobile: Adjusted for fixed header */
        padding-bottom: 40px;
    }

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

    .page-responsible-gambling__hero-description {
        font-size: 16px;
        margin-bottom: 20px;
    }

    .page-responsible-gambling__cta-button {
        padding: 12px 30px;
        font-size: 16px;
    }

    .page-responsible-gambling__section {
        padding: 40px 15px;
    }

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

    .page-responsible-gambling__text-block {
        font-size: 15px;
        line-height: 1.6;
    }

    .page-responsible-gambling__card-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 img {
        max-width: 120px;
    }

    .page-responsible-gambling__list-item {
        font-size: 15px;
        padding: 12px 15px;
    }

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

    .page-responsible-gambling__resource-card {
        padding: 20px;
    }

    .page-responsible-gambling__resource-title {
        font-size: 22px;
    }

    .page-responsible-gambling__resource-link {
        padding: 8px 20px;
        font-size: 14px;
    }

    .page-responsible-gambling__faq-question {
        padding: 15px;
        flex-wrap: wrap;
    }
    
    .page-responsible-gambling__faq-question h3 {
        font-size: 16px;
        margin-bottom: 0;
        width: calc(100% - 40px);
    }
    
    .page-responsible-gambling__faq-toggle {
        margin-left: 10px;
        width: 24px;
        height: 24px;
        font-size: 20px;
    }
    
    .page-responsible-gambling__faq-answer {
        padding: 0 15px;
    }
    
    .page-responsible-gambling__faq-item.active .page-responsible-gambling__faq-answer {
        padding: 15px !important;
    }

    /* Ensure all images and containers adapt to mobile */
    .page-responsible-gambling img {
      max-width: 100% !important;
      width: 100% !important;
      height: auto !important;
    }
    
    .page-responsible-gambling__section,
    .page-responsible-gambling__card,
    .page-responsible-gambling__container,
    .page-responsible-gambling__hero-container {
      max-width: 100% !important;
      width: 100% !important;
      box-sizing: border-box !important;
      padding-left: 15px;
      padding-right: 15px;
    }
}

@media (max-width: 480px) {
    .page-responsible-gambling__main-title {
        font-size: 24px;
    }
    .page-responsible-gambling__section-title {
        font-size: 22px;
    }
    .page-responsible-gambling__hero-image img {
        border-radius: 4px;
    }
    .page-responsible-gambling__card-title {
        font-size: 18px;
    }
    .page-responsible-gambling__card-description {
        font-size: 14px;
    }
    .page-responsible-gambling__list-item {
        font-size: 14px;
    }
    .page-responsible-gambling__resource-title {
        font-size: 20px;
    }
    .page-responsible-gambling__faq-question h3 {
        font-size: 14px;
    }
    .page-responsible-gambling__faq-toggle {
        font-size: 18px;
        width: 20px;
        height: 20px;
    }
}