/* style/responsible-gaming.css */

/* Variables for consistent styling */
:root {
    --primary-color: #007bff; /* Deep Blue */
    --secondary-color: #ffc107; /* Gold/Bright Yellow */
    --text-dark: #333333;
    --text-light: #ffffff;
    --bg-light: #f8f9fa;
    --bg-dark: #001f3f; /* Darker shade of primary for contrast */
    --border-color: #e0e0e0;
    --shadow-light: rgba(0, 0, 0, 0.1);
    --shadow-medium: rgba(0, 0, 0, 0.2);
}

/* Base styles for the page content */
.page-responsible-gaming {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: #ffffff;
}

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

/* Hero Section */
.page-responsible-gaming .hero-section {
    position: relative;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
    padding: 80px 0; /* Adjust padding for content */
    min-height: 500px; /* Ensure sufficient height */
}

.page-responsible-gaming .hero-image-content {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
}

.page-responsible-gaming .hero-overlay {
    position: relative;
    z-index: 2;
    background-color: rgba(0, 0, 0, 0.6); /* Dark overlay for text readability */
    padding: 40px 20px;
    border-radius: 10px;
    max-width: 800px;
    color: var(--text-light);
}

.page-responsible-gaming .hero-section h1 {
    font-size: 3.2em;
    color: var(--text-light);
    margin-bottom: 20px;
    line-height: 1.2;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.page-responsible-gaming .hero-section p {
    font-size: 1.2em;
    color: var(--text-light);
    margin-bottom: 30px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.page-responsible-gaming .cta-button {
    display: inline-block;
    padding: 15px 40px;
    background: var(--secondary-color);
    color: var(--text-dark); /* Dark text for contrast on yellow */
    text-decoration: none;
    border-radius: 8px;
    font-size: 1.1em;
    font-weight: bold;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 10px var(--shadow-medium);
}

.page-responsible-gaming .cta-button:hover {
    background: #e6ad00; /* Darker yellow on hover */
    transform: translateY(-3px);
    box-shadow: 0 6px 15px var(--shadow-medium);
}

/* General Section Styling */
.page-responsible-gaming .content-section {
    padding: 60px 0;
}

.page-responsible-gaming .content-section:nth-of-type(even) {
    background-color: var(--bg-light); /* Light background for alternating sections */
}

.page-responsible-gaming h2 {
    font-size: 2.5em;
    color: var(--primary-color);
    text-align: center;
    margin-bottom: 40px;
    position: relative;
}

.page-responsible-gaming h2::after {
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    background: var(--secondary-color);
    margin: 15px auto 0;
    border-radius: 2px;
}

.page-responsible-gaming h3 {
    font-size: 1.8em;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.page-responsible-gaming p {
    font-size: 1.1em;
    margin-bottom: 20px;
    color: var(--text-dark);
}

/* Principles Grid */
.page-responsible-gaming .principles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 30px;
}

.page-responsible-gaming .principle-item {
    background: #ffffff;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px var(--shadow-light);
    text-align: center;
    border-top: 5px solid var(--primary-color);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-responsible-gaming .principle-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px var(--shadow-medium);
}

.page-responsible-gaming .principle-item h3 {
    color: var(--primary-color);
    font-size: 1.5em;
    margin-top: 15px;
}

.page-responsible-gaming .principle-item p {
    font-size: 1em;
    color: var(--text-dark);
}

/* Tools Grid */
.page-responsible-gaming .tools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 30px;
}

.page-responsible-gaming .tool-item {
    background: #ffffff;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px var(--shadow-light);
    text-align: center;
    border-bottom: 5px solid var(--secondary-color);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-responsible-gaming .tool-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px var(--shadow-medium);
}

.page-responsible-gaming .tool-icon {
    width: 100px;
    height: 100px;
    object-fit: contain;
    margin-bottom: 20px;
}

.page-responsible-gaming .tool-item h3 {
    font-size: 1.6em;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.page-responsible-gaming .tool-item p {
    font-size: 1em;
    color: var(--text-dark);
    margin-bottom: 20px;
}

.page-responsible-gaming .tool-link {
    display: inline-block;
    color: var(--primary-color);
    text-decoration: none;
    font-weight: bold;
    border-bottom: 2px solid transparent;
    transition: border-bottom 0.3s ease;
}

.page-responsible-gaming .tool-link:hover {
    border-bottom: 2px solid var(--primary-color);
}

/* Signs of Problem Gambling */
.page-responsible-gaming .signs-of-problem .signs-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 40px;
    align-items: center;
    margin-top: 30px;
}

.page-responsible-gaming .signs-image {
    width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 5px 15px var(--shadow-light);
}

.page-responsible-gaming .signs-list {
    list-style: none;
    padding: 0;
}

.page-responsible-gaming .signs-list li {
    background: #ffffff;
    padding: 15px 20px;
    margin-bottom: 15px;
    border-left: 5px solid var(--secondary-color);
    border-radius: 5px;
    box-shadow: 0 2px 8px var(--shadow-light);
    font-size: 1.1em;
    color: var(--text-dark);
}

/* Seeking Help */
.page-responsible-gaming .seeking-help .help-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 30px;
}

.page-responsible-gaming .help-item {
    background: #ffffff;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px var(--shadow-light);
    text-align: center;
    border: 1px solid var(--border-color);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-responsible-gaming .help-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px var(--shadow-medium);
}

.page-responsible-gaming .help-icon {
    width: 100px;
    height: 100px;
    object-fit: contain;
    margin-bottom: 20px;
}

.page-responsible-gaming .help-item h3 {
    font-size: 1.6em;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.page-responsible-gaming .help-item p {
    font-size: 1em;
    color: var(--text-dark);
    margin-bottom: 20px;
}

.page-responsible-gaming .help-link {
    display: block;
    color: var(--primary-color);
    text-decoration: none;
    font-weight: bold;
    margin-top: 10px;
    transition: color 0.3s ease;
}

.page-responsible-gaming .help-link:hover {
    color: var(--secondary-color);
}

/* Minor Protection */
.page-responsible-gaming .minor-protection .protection-details {
    display: grid;
    grid-template-columns: 1.2fr 1.8fr;
    gap: 40px;
    align-items: center;
    margin-top: 30px;
}

.page-responsible-gaming .protection-image {
    width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 5px 15px var(--shadow-light);
}

.page-responsible-gaming .protection-text h3 {
    color: var(--primary-color);
    margin-bottom: 15px;
}

.page-responsible-gaming .protection-text ul {
    list-style: disc;
    padding-left: 25px;
    color: var(--text-dark);
}

.page-responsible-gaming .protection-text ul li {
    margin-bottom: 10px;
    font-size: 1em;
}

/* FAQ Section */
.page-responsible-gaming .faq {
    background-color: var(--bg-light);
}

.page-responsible-gaming .faq-list {
    margin-top: 30px;
}

.page-responsible-gaming .faq-item {
    margin-bottom: 15px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    background: #ffffff;
    box-shadow: 0 2px 8px var(--shadow-light);
    overflow: hidden; /* Important for max-height transition */
}

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

.page-responsible-gaming .faq-question:hover {
    background: #f5f5f5;
}

.page-responsible-gaming .faq-question h3 {
    margin: 0;
    font-size: 1.25em;
    color: var(--primary-color);
}

.page-responsible-gaming .faq-toggle {
    font-size: 1.8em;
    font-weight: bold;
    color: var(--secondary-color);
    transition: transform 0.3s ease;
}

.page-responsible-gaming .faq-item.active .faq-toggle {
    transform: rotate(45deg);
    color: var(--primary-color);
}

.page-responsible-gaming .faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease-out, padding 0.4s ease-out;
    padding: 0 25px;
    background: #fdfdfd;
    color: var(--text-dark);
}

.page-responsible-gaming .faq-item.active .faq-answer {
    max-height: 500px; /* Sufficient height to show content */
    padding: 20px 25px;
    border-top: 1px solid var(--border-color);
}

.page-responsible-gaming .faq-answer p {
    margin-bottom: 0;
    font-size: 1em;
}

/* Conclusion Section */
.page-responsible-gaming .conclusion {
    text-align: center;
    padding-bottom: 80px;
}

.page-responsible-gaming .conclusion p {
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    font-size: 1.15em;
}

.page-responsible-gaming .call-to-action {
    margin-top: 40px;
    display: flex;
    justify-content: center;
    gap: 20px;
}

.page-responsible-gaming .secondary-cta {
    background: var(--secondary-color);
    color: var(--text-dark);
}

.page-responsible-gaming .secondary-cta:hover {
    background: #e6ad00;
}

.page-responsible-gaming .primary-cta {
    background: var(--primary-color);
    color: var(--text-light);
}

.page-responsible-gaming .primary-cta:hover {
    background: #006fe6;
}


/* Responsive Design */
@media (max-width: 992px) {
    .page-responsible-gaming .hero-section h1 {
        font-size: 2.5em;
    }

    .page-responsible-gaming h2 {
        font-size: 2em;
    }

    .page-responsible-gaming h3 {
        font-size: 1.5em;
    }

    .page-responsible-gaming .signs-of-problem .signs-grid,
    .page-responsible-gaming .minor-protection .protection-details {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .page-responsible-gaming .signs-image,
    .page-responsible-gaming .protection-image {
        max-width: 80%;
        margin: 0 auto 30px;
    }

    .page-responsible-gaming .signs-list,
    .page-responsible-gaming .protection-text ul {
        text-align: left;
    }
}

@media (max-width: 768px) {
    .page-responsible-gaming .hero-section {
        padding: 60px 0;
        min-height: 400px;
    }

    .page-responsible-gaming .hero-overlay {
        padding: 30px 15px;
    }

    .page-responsible-gaming .hero-section h1 {
        font-size: 2em;
    }

    .page-responsible-gaming .hero-section p {
        font-size: 1em;
    }

    .page-responsible-gaming .cta-button {
        padding: 12px 30px;
        font-size: 1em;
    }

    .page-responsible-gaming .content-section {
        padding: 40px 0;
    }

    .page-responsible-gaming h2 {
        font-size: 1.8em;
        margin-bottom: 30px;
    }

    .page-responsible-gaming h3 {
        font-size: 1.3em;
    }

    .page-responsible-gaming p {
        font-size: 0.95em;
    }

    .page-responsible-gaming .principles-grid,
    .page-responsible-gaming .tools-grid,
    .page-responsible-gaming .seeking-help .help-options {
        grid-template-columns: 1fr;
    }

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

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

    .page-responsible-gaming .faq-toggle {
        font-size: 1.5em;
    }

    .page-responsible-gaming .faq-answer {
        padding: 0 20px;
    }

    .page-responsible-gaming .faq-item.active .faq-answer {
        padding: 15px 20px;
    }

    .page-responsible-gaming .call-to-action {
        flex-direction: column;
        gap: 15px;
    }

    .page-responsible-gaming .cta-button {
        width: 100%;
        max-width: 300px;
    }
}

@media (max-width: 480px) {
    .page-responsible-gaming .container {
        padding: 0 15px;
    }

    .page-responsible-gaming .hero-section h1 {
        font-size: 1.6em;
    }

    .page-responsible-gaming h2 {
        font-size: 1.5em;
    }

    .page-responsible-gaming h3 {
        font-size: 1.2em;
    }

    .page-responsible-gaming .principle-item,
    .page-responsible-gaming .tool-item,
    .page-responsible-gaming .help-item {
        padding: 20px;
    }

    .page-responsible-gaming .tool-icon,
    .page-responsible-gaming .help-icon {
        width: 80px;
        height: 80px;
    }
}