/* style/responsible-gaming.css */

/* Variables for consistency, though shared.css likely defines global ones */
:root {
    --phjoy-primary: #F2C14E;
    --phjoy-secondary: #FFD36B;
    --phjoy-background: #0A0A0A;
    --phjoy-card-bg: #111111;
    --phjoy-text-main: #FFF6D6;
    --phjoy-border: #3A2A12;
    --phjoy-glow: #FFD36B;
    --phjoy-btn-gradient: linear-gradient(180deg, #FFD86A 0%, #DDA11D 100%);
    --text-dark: #333333; /* For contrast on light backgrounds */
    --text-light: #ffffff; /* For contrast on dark backgrounds */
}

.page-responsible-gaming {
    font-family: Arial, sans-serif;
    color: var(--phjoy-text-main); /* Default text color for dark background */
    background-color: var(--phjoy-background); /* Overall page background */
    line-height: 1.6;
}

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

/* Hero Section */
.page-responsible-gaming__hero-section {
    position: relative;
    display: flex;
    flex-direction: column; /* Image above text */
    align-items: center;
    justify-content: center;
    text-align: center;
    padding-top: 10px; /* Small top padding, body handles header offset */
    padding-bottom: 60px;
    background-color: var(--phjoy-background); /* Ensure hero section background is dark */
}

.page-responsible-gaming__hero-image {
    width: 100%;
    max-width: 100%;
    height: auto;
    display: block;
    margin-bottom: 40px; /* Space between image and content */
    object-fit: cover;
    border-radius: 8px;
}

.page-responsible-gaming__hero-content {
    max-width: 900px;
    padding: 0 20px;
    color: var(--phjoy-text-main);
}

.page-responsible-gaming__main-title {
    font-size: clamp(2.2rem, 4vw, 3.5rem); /* Responsive H1 font size */
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 20px;
    color: var(--phjoy-text-main);
    text-shadow: 0 0 10px rgba(255, 211, 107, 0.4); /* Subtle glow for text */
}

.page-responsible-gaming__hero-description {
    font-size: clamp(1rem, 1.5vw, 1.2rem);
    margin-bottom: 30px;
    color: var(--phjoy-text-main);
}

.page-responsible-gaming__cta-buttons {
    display: flex;
    flex-wrap: wrap; /* Allow wrapping on small screens */
    gap: 15px;
    justify-content: center;
    margin-top: 30px;
}

.page-responsible-gaming__btn-primary,
.page-responsible-gaming__btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 28px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    white-space: normal; /* Allow text wrapping */
    word-wrap: break-word; /* Ensure text breaks within button */
    box-sizing: border-box;
    max-width: 100%; /* Ensure buttons don't overflow */
}

.page-responsible-gaming__btn-primary {
    background: var(--phjoy-btn-gradient);
    color: var(--text-light); /* White text on gradient button */
    border: 2px solid transparent;
}

.page-responsible-gaming__btn-primary:hover {
    opacity: 0.9;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 211, 107, 0.4);
}

.page-responsible-gaming__btn-secondary {
    background: transparent;
    color: var(--phjoy-primary);
    border: 2px solid var(--phjoy-primary);
}

.page-responsible-gaming__btn-secondary:hover {
    background: rgba(242, 193, 78, 0.1);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(242, 193, 78, 0.2);
}

/* General Section Styles */
.page-responsible-gaming__section {
    padding: 60px 0;
    background-color: var(--phjoy-background); /* Default section background */
}

.page-responsible-gaming__dark-section {
    background-color: var(--phjoy-background); /* Explicitly dark for contact section */
    color: var(--phjoy-text-main);
}

.page-responsible-gaming__section-title {
    font-size: clamp(1.8rem, 3.5vw, 2.8rem);
    font-weight: 700;
    text-align: center;
    margin-bottom: 40px;
    color: var(--phjoy-text-main);
    text-shadow: 0 0 8px rgba(255, 211, 107, 0.3);
}

.page-responsible-gaming__sub-title {
    font-size: clamp(1.4rem, 2.5vw, 2rem);
    font-weight: 600;
    margin-top: 40px;
    margin-bottom: 20px;
    color: var(--phjoy-primary);
}

.page-responsible-gaming__paragraph {
    font-size: 1.1rem;
    margin-bottom: 20px;
    color: var(--phjoy-text-main);
    line-height: 1.7;
}

.page-responsible-gaming__image {
    width: 100%;
    max-width: 100%;
    height: auto;
    display: block;
    margin: 40px auto;
    border-radius: 8px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
    object-fit: cover;
    min-width: 200px; /* Enforce min image size */
    min-height: 200px;
}

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

.page-responsible-gaming__tool-card {
    background-color: var(--phjoy-card-bg); /* Dark card background */
    border: 1px solid var(--phjoy-border);
    border-radius: 12px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    color: var(--phjoy-text-main); /* Light text on dark card */
}