/* style/responsible-gambling.css */
:root {
    --primary-color: #1A73E8;
    --secondary-color: #FFD700;
    --dark-bg-1: #0d0d0d; /* From shared.css */
    --light-text-color: #ffffff;
    --dark-text-color: #333333;
    --grey-bg: #f5f5f5;
}

.page-responsible-gambling {
    color: var(--light-text-color); /* Default light text for dark body background */
    background-color: var(--dark-bg-1);
}

.page-responsible-gambling__hero-section-placeholder {
    padding-top: 120px; /* Desktop: Adjust for fixed header */
    padding-bottom: 60px;
    text-align: center;
    background: linear-gradient(135deg, #1A73E8, #2E86DE);
    color: var(--light-text-color);
}

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

.page-responsible-gambling__main-title {
    font-size: 3.2em;
    font-weight: bold;
    margin-bottom: 20px;
    line-height: 1.2;
}

.page-responsible-gambling__main-title .highlight {
    color: var(--secondary-color);
}

.page-responsible-gambling__subtitle {
    font-size: 1.3em;
    opacity: 0.9;
    max-width: 800px;
    margin: 0 auto;
}

.page-responsible-gambling__introduction-section,
.page-responsible-gambling__tools-features-section,
.page-responsible-gambling__problem-gambling-section,
.page-responsible-gambling__tips-section,
.page-responsible-gambling__faq-section,
.page-responsible-gambling__conclusion-section {
    padding: 60px 0;
    background-color: var(--grey-bg);
    color: var(--dark-text-color);
}

.page-responsible-gambling__dark-section {
    background-color: #1a1a1a;
    color: var(--light-text-color);
    padding: 60px 0;
}

.page-responsible-gambling__section-title {
    font-size: 2.5em;
    font-weight: bold;
    text-align: center;
    margin-bottom: 40px;
    color: var(--dark-text-color);
}

.page-responsible-gambling__dark-section .page-responsible-gambling__section-title {
    color: var(--light-text-color);
}

.page-responsible-gambling__section-title .highlight {
    color: var(--primary-color);
}

.page-responsible-gambling__dark-section .page-responsible-gambling__section-title .highlight {
    color: var(--secondary-color);
}

.page-responsible-gambling__introduction-section .page-responsible-gambling__container {
    display: flex;
    align-items: center;
    gap: 40px;
}

.page-responsible-gambling__text-block {
    flex: 1;
    font-size: 1.1em;
    line-height: 1.7;
}

.page-responsible-gambling__text-block p {
    margin-bottom: 15px;
}

.page-responsible-gambling__text-block a {
    color: var(--primary-color);
    text-decoration: underline;
    font-weight: bold;
}

.page-responsible-gambling__dark-section .page-responsible-gambling__text-block a {
    color: var(--secondary-color);
}

.page-responsible-gambling__image-wrapper {
    flex: 1;
    text-align: center;
}

.page-responsible-gambling__image {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
    display: block;
}

.page-responsible-gambling__principles-section .page-responsible-gambling__list {
    list-style: none;
    padding: 0;
    margin: 0 auto 40px auto;
    max-width: 900px;
}

.page-responsible-gambling__list-item {
    background-color: rgba(255, 255, 255, 0.1);
    border-left: 5px solid var(--secondary-color);
    padding: 25px;
    margin-bottom: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-responsible-gambling__list-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2);
}

.page-responsible-gambling__list-item h3 {
    font-size: 1.5em;
    color: var(--light-text-color);
    margin-top: 0;
    margin-bottom: 10px;
}

.page-responsible-gambling__list-item p {
    font-size: 1.05em;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.85);
}

.page-responsible-gambling__list-item p a {
    color: var(--secondary-color);
    text-decoration: underline;
    font-weight: bold;
}

.page-responsible-gambling__cta-wrapper {
    text-align: center;
    margin-top: 40px;
}

.page-responsible-gambling__btn-primary,
.page-responsible-gambling__btn-secondary {
    display: inline-block;
    padding: 15px 35px;
    border-radius: 8px;
    font-size: 1.1em;
    font-weight: bold;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.page-responsible-gambling__btn-primary {
    background-color: var(--primary-color);
    color: var(--light-text-color);
    box-shadow: 0 5px 15px rgba(26, 115, 232, 0.4);
}

.page-responsible-gambling__btn-primary:hover {
    background-color: #2E86DE;
    box-shadow: 0 8px 20px rgba(26, 115, 232, 0.6);
    transform: translateY(-3px);
}

.page-responsible-gambling__btn-secondary {
    background-color: var(--secondary-color);
    color: var(--dark-text-color);
    box-shadow: 0 5px 15px rgba(255, 215, 0, 0.4);
}

.page-responsible-gambling__btn-secondary:hover {
    background-color: #FFC107;
    box-shadow: 0 8px 20px rgba(255, 215, 0, 0.6);
    transform: translateY(-3px);
}

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

.page-responsible-gambling__feature-card,
.page-responsible-gambling__tip-card {
    background-color: #ffffff;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    padding: 30px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    color: var(--dark-text-color);
}

.page-responsible-gambling__feature-card:hover,
.page-responsible-gambling__tip-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.page-responsible-gambling__feature-icon,
.page-responsible-gambling__tip-icon {
    width: 120px;
    height: 120px;
    margin-bottom: 20px;
    display: block;
    margin-left: auto;
    margin-right: auto;
    border-radius: 50%;
    object-fit: cover;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.page-responsible-gambling__feature-card h3,
.page-responsible-gambling__tip-card h3 {
    font-size: 1.4em;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.page-responsible-gambling__feature-card p,
.page-responsible-gambling__tip-card p {
    font-size: 1em;
    line-height: 1.6;
    color: var(--dark-text-color);
}

.page-responsible-gambling__problem-gambling-section .page-responsible-gambling__content-wrapper,
.page-responsible-gambling__seeking-help-section .page-responsible-gambling__content-wrapper {
    display: flex;
    align-items: flex-start;
    gap: 40px;
}

.page-responsible-gambling__problem-gambling-section .page-responsible-gambling__image-wrapper--left {
    flex: 1;
    order: 1;
}

.page-responsible-gambling__problem-gambling-section .page-responsible-gambling__text-block--right {
    flex: 2;
    order: 2;
}

.page-responsible-gambling__seeking-help-section .page-responsible-gambling__text-block--left {
    flex: 2;
    order: 1;
}

.page-responsible-gambling__seeking-help-section .page-responsible-gambling__image-wrapper--right {
    flex: 1;
    order: 2;
}

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

.page-responsible-gambling__checklist li {
    position: relative;
    padding-left: 30px;
    margin-bottom: 10px;
    font-size: 1.05em;
    line-height: 1.6;
    color: var(--dark-text-color);
}

.page-responsible-gambling__checklist li::before {
    content: '✅';
    position: absolute;
    left: 0;
    top: 0;
}

.page-responsible-gambling__dark-section .page-responsible-gambling__checklist li {
    color: var(--light-text-color);
}

/* FAQ Section */
.page-responsible-gambling__faq-section {
    background-color: var(--grey-bg);
    color: var(--dark-text-color);
}

.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;
}

.page-responsible-gambling__faq-item.active .page-responsible-gambling__faq-answer {
    max-height: 2000px !important;
    padding: 20px 15px !important;
    opacity: 1;
    background: #f9f9f9;
    border-radius: 0 0 5px 5px;
}

.page-responsible-gambling__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 20px;
    background: #fff;
    border: 1px solid #e0e0e0;
    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: #f5f5f5;
    border-color: #d0d0d0;
}

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

.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: var(--dark-text-color);
}

.page-responsible-gambling__faq-question h3 a {
    color: var(--primary-color);
    text-decoration: none;
}

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

.page-responsible-gambling__faq-toggle {
    font-size: 24px;
    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;
    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: #333;
    transform: rotate(45deg); /* Change + to X */
}

.page-responsible-gambling__faq-answer p {
    color: var(--dark-text-color);
    line-height: 1.6;
    font-size: 1em;
}

.page-responsible-gambling__faq-answer p a {
    color: var(--primary-color);
    text-decoration: underline;
    font-weight: bold;
}

/* Conclusion section */
.page-responsible-gambling__conclusion-section {
    text-align: center;
}

.page-responsible-gambling__conclusion-section .page-responsible-gambling__text-block {
    max-width: 800px;
    margin: 0 auto 30px auto;
}

/* Responsive Design */
@media (max-width: 992px) {
    .page-responsible-gambling__hero-section-placeholder {
        padding-top: 100px; /* Tablet adjust */
        padding-bottom: 40px;
    }
    .page-responsible-gambling__main-title {
        font-size: 2.5em;
    }
    .page-responsible-gambling__subtitle {
        font-size: 1.1em;
    }
    .page-responsible-gambling__section-title {
        font-size: 2em;
    }
    .page-responsible-gambling__introduction-section .page-responsible-gambling__container,
    .page-responsible-gambling__problem-gambling-section .page-responsible-gambling__content-wrapper,
    .page-responsible-gambling__seeking-help-section .page-responsible-gambling__content-wrapper {
        flex-direction: column;
        text-align: center;
    }
    .page-responsible-gambling__image-wrapper,
    .page-responsible-gambling__text-block {
        flex: none;
        width: 100%;
    }
    .page-responsible-gambling__image-wrapper--left,
    .page-responsible-gambling__image-wrapper--right {
        order: unset;
    }
    .page-responsible-gambling__text-block--right,
    .page-responsible-gambling__text-block--left {
        order: unset;
    }
    .page-responsible-gambling__image {
        margin: 20px auto;
    }
    .page-responsible-gambling__features-grid,
    .page-responsible-gambling__tips-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    }
}

@media (max-width: 768px) {
    .page-responsible-gambling__hero-section-placeholder {
        padding-top: 100px !important; /* Mobile adjust for fixed header */
        padding-bottom: 30px;
    }
    .page-responsible-gambling__main-title {
        font-size: 2em;
    }
    .page-responsible-gambling__subtitle {
        font-size: 1em;
    }
    .page-responsible-gambling__section-title {
        font-size: 1.8em;
    }
    .page-responsible-gambling__introduction-section,
    .page-responsible-gambling__tools-features-section,
    .page-responsible-gambling__problem-gambling-section,
    .page-responsible-gambling__tips-section,
    .page-responsible-gambling__faq-section,
    .page-responsible-gambling__conclusion-section,
    .page-responsible-gambling__dark-section {
        padding: 40px 0;
    }
    .page-responsible-gambling__container {
        padding: 0 15px;
    }
    .page-responsible-gambling__text-block,
    .page-responsible-gambling__list-item p,
    .page-responsible-gambling__checklist li,
    .page-responsible-gambling__feature-card p,
    .page-responsible-gambling__tip-card p {
        font-size: 0.95em;
    }
    .page-responsible-gambling__list-item h3,
    .page-responsible-gambling__feature-card h3,
    .page-responsible-gambling__tip-card h3 {
        font-size: 1.2em;
    }
    .page-responsible-gambling__btn-primary,
    .page-responsible-gambling__btn-secondary {
        padding: 12px 25px;
        font-size: 1em;
    }
    .page-responsible-gambling__image {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
    }
    .page-responsible-gambling__image-wrapper,
    .page-responsible-gambling__text-block,
    .page-responsible-gambling__content-wrapper,
    .page-responsible-gambling__features-grid,
    .page-responsible-gambling__tips-grid,
    .page-responsible-gambling__faq-section {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }
    .page-responsible-gambling__faq-question {
        padding: 15px;
        flex-wrap: wrap;
    }
    .page-responsible-gambling__faq-question h3 {
        font-size: 15px;
        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;
    }
}