/* style/responsible-gambling.css */

/* Base styles for the page content */
.page-responsible-gambling {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #ffffff; /* Default text color for dark body background */
    background-color: #0d0d0d; /* Inherited from shared, but for safety */
}

/* Fixed Header Offset - Apply if shared.css doesn't set body padding-top */
.page-responsible-gambling__hero-section {
    padding-top: var(--header-offset, 120px); /* Ensures content is not hidden by fixed header */
}


/* Hero Section */
.page-responsible-gambling__hero-section {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 80px 20px;
    background-color: #1A2B4C; /* Main brand color for hero */
    color: #ffffff;
    overflow: hidden; /* For image positioning */
}

.page-responsible-gambling__hero-image-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    opacity: 0.3; /* Subtle background image */
    overflow: hidden;
}

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

.page-responsible-gambling__hero-content {
    position: relative;
    z-index: 1;
    max-width: 900px;
    margin: 0 auto;
}

.page-responsible-gambling__hero-title {
    font-size: 2.8em;
    margin-bottom: 20px;
    color: #FFD700; /* Accent color for title */
}

.page-responsible-gambling__hero-description {
    font-size: 1.2em;
    margin-bottom: 30px;
}

/* General Section Styling */
.page-responsible-gambling__section {
    padding: 60px 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.page-responsible-gambling__content-area {
    max-width: 1000px;
    margin: 0 auto;
    background-color: #0d0d0d; /* Ensure content area matches body background */
    color: #ffffff; /* Light text for dark background */
}

.page-responsible-gambling__dark-bg {
    background-color: #1A2B4C;
    color: #ffffff;
}

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

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

.page-responsible-gambling__paragraph {
    font-size: 1.1em;
    margin-bottom: 20px;
    color: #f0f0f0;
}

.page-responsible-gambling__paragraph a {
    color: #FFD700;
    text-decoration: none;
}

.page-responsible-gambling__paragraph a:hover {
    text-decoration: underline;
}

.page-responsible-gambling__list {
    list-style: disc;
    margin-left: 20px;
    margin-bottom: 20px;
    color: #f0f0f0;
}

.page-responsible-gambling__list-item {
    margin-bottom: 10px;
    font-size: 1.1em;
}

.page-responsible-gambling__list--light .page-responsible-gambling__list-item {
    color: #ffffff;
}

/* Feature Cards Section */
.page-responsible-gambling__features-section {
    background-color: #1A2B4C; /* Main brand color */
}

.page-responsible-gambling__features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.page-responsible-gambling__feature-card {
    background-color: rgba(255, 255, 255, 0.08); /* Slightly transparent white for cards */
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, background-color 0.3s ease;
    color: #ffffff;
}

.page-responsible-gambling__feature-card:hover {
    transform: translateY(-10px);
    background-color: rgba(255, 255, 255, 0.15);
}

.page-responsible-gambling__feature-icon {
    width: 100%; /* Ensure images are large and responsive */
    height: auto;
    max-height: 200px; /* Limit height for uniform appearance */
    object-fit: contain;
    margin-bottom: 20px;
    border-radius: 5px;
}

.page-responsible-gambling__feature-title {
    font-size: 1.6em;
    color: #FFD700;
    margin-bottom: 15px;
}

.page-responsible-gambling__feature-description a {
    color: #FFD700;
    text-decoration: none;
}
.page-responsible-gambling__feature-description a:hover {
    text-decoration: underline;
}


/* Support Section */
.page-responsible-gambling__support-section {
    background-color: #1A2B4C;
}

.page-responsible-gambling__support-content {
    max-width: 1000px;
    margin: 0 auto;
    text-align: center;
}

.page-responsible-gambling__support-links {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px;
    margin-top: 30px;
}

.page-responsible-gambling__support-image {
    width: 100%;
    max-width: 600px;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

/* Underage Protection Section */
.page-responsible-gambling__underage-protection {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px;
    margin-top: 30px;
    max-width: 1000px;
    margin-left: auto;
    margin-right: auto;
}

.page-responsible-gambling__underage-image {
    width: 100%;
    max-width: 600px;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

/* Call to Action Section */
.page-responsible-gambling__cta-section {
    text-align: center;
    padding: 80px 20px;
    background-color: #1A2B4C;
    color: #ffffff;
}

.page-responsible-gambling__cta-title {
    font-size: 2.5em;
    color: #FFD700;
    margin-bottom: 20px;
}

.page-responsible-gambling__cta-description {
    font-size: 1.1em;
    margin-bottom: 40px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.page-responsible-gambling__cta-description a {
    color: #FFD700;
    text-decoration: none;
}

.page-responsible-gambling__cta-description a:hover {
    text-decoration: underline;
}

.page-responsible-gambling__cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap; /* Allow buttons to wrap on smaller screens */
    width: 100%; /* Ensure container takes full width */
    max-width: 800px;
    margin: 0 auto;
    box-sizing: border-box; /* Include padding in width */
}

/* Buttons */
.page-responsible-gambling__btn-primary,
.page-responsible-gambling__btn-secondary {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1em;
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
    box-sizing: border-box; /* Crucial for responsive buttons */
    max-width: 100%; /* Ensure button doesn't exceed container */
    white-space: normal; /* Allow text to wrap */
    word-wrap: break-word; /* Break long words */
    text-align: center; /* Center text if it wraps */
}

.page-responsible-gambling__btn-primary {
    background-color: #FFD700; /* Gold accent color */
    color: #1A2B4C; /* Dark blue text for contrast */
    border: 2px solid #FFD700;
}

.page-responsible-gambling__btn-primary:hover {
    background-color: #e6c200;
    border-color: #e6c200;
    color: #1A2B4C;
}

.page-responsible-gambling__btn-secondary {
    background-color: transparent;
    color: #FFD700; /* Gold text */
    border: 2px solid #FFD700;
}

.page-responsible-gambling__btn-secondary:hover {
    background-color: #FFD700;
    color: #1A2B4C;
}

/* FAQ Section */
.page-responsible-gambling__faq-section {
    background-color: #0d0d0d;
    color: #f0f0f0;
}

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

.page-responsible-gambling__faq-item {
    margin-bottom: 15px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    overflow: hidden;
}

.page-responsible-gambling__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    background-color: rgba(255, 255, 255, 0.05);
    cursor: pointer;
    font-size: 1.2em;
    font-weight: bold;
    color: #ffffff;
    transition: background-color 0.3s ease;
}

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

.page-responsible-gambling__faq-question h3 {
    margin: 0;
    color: #ffffff;
}

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

.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 20px; /* Initial padding, adjust on active */
    background-color: rgba(255, 255, 255, 0.03);
    transition: max-height 0.3s ease-out, padding 0.3s ease-out;
    color: #f0f0f0;
}

/* Crucial for FAQ expand */
.page-responsible-gambling__faq-item.active .page-responsible-gambling__faq-answer {
    max-height: 1000px !important; /* Sufficiently large to contain content */
    padding: 20px !important; /* Apply padding when active */
}

.page-responsible-gambling__faq-answer p {
    margin: 0;
    padding-bottom: 10px; /* Adjust as needed for spacing within answer */
}

.page-responsible-gambling__faq-answer a {
    color: #FFD700;
    text-decoration: none;
}

.page-responsible-gambling__faq-answer a:hover {
    text-decoration: underline;
}

/* Image specific styles */
.page-responsible-gambling img {
    max-width: 100%;
    height: auto;
    display: block; /* Prevent extra space below images */
    border-radius: 8px; /* Consistent rounded corners */
}

/* Responsive adjustments */
@media (max-width: 1024px) {
    .page-responsible-gambling__hero-title {
        font-size: 2.5em;
    }
    .page-responsible-gambling__section-title {
        font-size: 2em;
    }
    .page-responsible-gambling__features-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }
}

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

    /* Fixed Header Offset for mobile, if shared.css doesn't apply it to body */
    .page-responsible-gambling__hero-section {
        padding-top: var(--header-offset, 120px) !important; /* Ensure content is not hidden by fixed header */
    }

    .page-responsible-gambling__hero-title {
        font-size: 2em;
    }
    .page-responsible-gambling__hero-description {
        font-size: 1em;
    }
    .page-responsible-gambling__section-title {
        font-size: 1.8em;
    }

    /* Mobile Image Responsive Adaption */
    .page-responsible-gambling img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    
    .page-responsible-gambling__section,
    .page-responsible-gambling__card,
    .page-responsible-gambling__container,
    .page-responsible-gambling__hero-section,
    .page-responsible-gambling__features-section,
    .page-responsible-gambling__support-section,
    .page-responsible-gambling__underage-protection,
    .page-responsible-gambling__cta-section,
    .page-responsible-gambling__faq-section,
    .page-responsible-gambling__faq-container {
      max-width: 100% !important;
      width: 100% !important;
      box-sizing: border-box !important;
      padding-left: 15px;
      padding-right: 15px;
      overflow-x: hidden !important; /* Prevent horizontal scroll */
    }

    /* Mobile Button Responsive Adaption */
    .page-responsible-gambling__btn-primary,
    .page-responsible-gambling__btn-secondary,
    .page-responsible-gambling a[class*="button"],
    .page-responsible-gambling 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__cta-buttons {
        flex-direction: column !important; /* Stack buttons vertically */
        gap: 15px !important; /* Spacing between stacked buttons */
        padding-left: 0;
        padding-right: 0;
    }

    .page-responsible-gambling__features-grid {
        grid-template-columns: 1fr;
    }

    .page-responsible-gambling__support-links {
        flex-direction: column;
    }

    .page-responsible-gambling__underage-protection {
        flex-direction: column;
    }
}

@media (max-width: 480px) {
    .page-responsible-gambling__hero-title {
        font-size: 1.8em;
    }
    .page-responsible-gambling__section-title {
        font-size: 1.6em;
    }
    .page-responsible-gambling__cta-title {
        font-size: 1.8em;
    }
    .page-responsible-gambling__faq-question {
        font-size: 1.1em;
    }
    .page-responsible-gambling__btn-primary,
    .page-responsible-gambling__btn-secondary {
        padding: 12px 20px;
        font-size: 1em;
    }
}