/* CSS Reset & Global Styles */
* {
    box-sizing: inherit;
    max-width: 100vw; /* Prevent horizontal overflow from any element */
    margin: 0;
    padding: 0;
}

html, body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    max-width: 100vw;
    overflow-x: hidden; /* Ensure no horizontal scrollbars */
    background-color: #1a1005; /* Gladiator Arena BG */
    color: #ecf0f1; /* Light text for contrast */
    font-family: 'Oxygen', sans-serif;
    line-height: 1.6;
}

main {
    flex: 1; /* Allows main content to grow and push footer down */
    width: 100%;
    max-width: 100vw;
    overflow-x: hidden;
}

/* Container for centering and padding */
.chuep0-container {
    width: 100%;
    max-width: 1200px; /* Adjusted for better readability */
    margin: 0 auto;
    padding: 0 20px; /* Consistent padding on the sides */
    box-sizing: border-box;
}

/* Global Image Styling */
img, canvas, iframe, video, svg {
    max-width: 100%;
    height: auto;
    display: block;
    object-fit: cover; /* Ensures images cover their containers without distortion */
    box-sizing: border-box;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    margin-bottom: 1rem;
    line-height: 1.3;
    color: #f39c12; /* Primary accent for headings */
}

h1 { font-size: 3rem; }
h2 { font-size: 2.5rem; }
h3 { font-size: 2rem; }
h4 { font-size: 1.5rem; }

p {
    margin-bottom: 1rem;
}

a {
    color: #f39c12; /* Primary accent for links */
    text-decoration: none;
    transition: color 0.3s ease, text-decoration 0.3s ease;
}

a:hover, a:focus {
    color: #e67e22; /* Darker accent on hover */
    text-decoration: underline;
}

/* Header Styles */
.chuep0-header-c-l-r {
    background: rgba(26, 16, 5, 0.8); /* Slightly transparent dark background */
    padding: 20px 0;
    backdrop-filter: blur(15px); /* Glassmorphism effect */
    -webkit-backdrop-filter: blur(15px);
    border-bottom: 1px solid rgba(211, 84, 0, 0.2); /* Subtle accent border */
    position: sticky;
    top: 0;
    z-index: 1000;
    width: 100vw;
    box-shadow: 0 5px 20px rgba(0,0,0,0.4);
}

.chuep0-desktop-nav ul {
    display: flex;
    gap: 30px;
    align-items: center;
    justify-content: center;
    list-style: none;
    padding: 0;
    margin: 0;
}

.chuep0-desktop-nav a {
    color: #ecf0f1;
    font-weight: 700;
    padding: 10px 15px;
    border-radius: 8px;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.chuep0-desktop-nav a:hover,
.chuep0-desktop-nav a:focus {
    background-color: rgba(211, 84, 0, 0.2); /* Accent on hover */
    color: #ffffff;
    text-decoration: none;
}

.chuep0-logo {
    display: flex;
    align-items: center;
    font-size: 1.5rem;
    font-weight: 700;
    color: #ffffff;
}

.chuep0-logo span {
    margin-left: 10px;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.5);
}

.chuep0-header-right {
    display: flex;
    align-items: center;
}

.chuep0-age-flag {
    background-color: rgba(0,0,0,0.3);
    padding: 8px 12px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    margin-right: 20px;
    font-weight: 700;
    color: #ffeb3b; /* Warning yellow for age */
    border: 1px solid rgba(255,235,59,0.3);
}

.chuep0-age-flag img {
    width: 20px;
    margin-right: 8px;
    border-radius: 3px;
}

.chuep0-hamburger {
    display: none; /* Hidden on desktop */
    background: none;
    border: none;
    font-size: 2rem;
    color: #ecf0f1;
    cursor: pointer;
}

/* Mobile Menu */
.chuep0-mobile-menu {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(26, 16, 5, 0.95); /* Darker, slightly transparent overlay */
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    z-index: 1100;
    padding: 40px 20px;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    overflow-y: auto; /* Allows scrolling if menu content is long */
}

.chuep0-mobile-menu ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 25px;
    width: 100%;
}

.chuep0-mobile-menu li {
    width: 100%;
    text-align: center;
}

.chuep0-mobile-menu a {
    font-size: 1.8rem;
    font-weight: 700;
    color: #ffffff;
    padding: 15px 0;
    display: block;
    width: 100%;
    border-radius: 10px;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.chuep0-mobile-menu a:hover,
.chuep0-mobile-menu a:focus {
    background-color: rgba(211, 84, 0, 0.3);
    color: #ffffff;
    text-decoration: none;
}

.chuep0-close-menu {
    position: absolute;
    top: 30px;
    right: 30px;
    background: none;
    border: none;
    font-size: 2.5rem;
    color: #ecf0f1;
    cursor: pointer;
    z-index: 10;
}

/* Footer Styles */
.chuep0-footer {
    padding: 40px 20px;
    background: rgba(0, 0, 0, 0.2); /* Darker, subtle footer background */
    border-top: 1px solid rgba(211, 84, 0, 0.15); /* Accent border */
    margin-top: auto; /* Pushes footer to the bottom */
    width: 100%; /* Ensure it spans full width */
    color: rgba(236, 240, 241, 0.9); /* Slightly less bright text */
    font-size: 1rem;
}

.chuep0-footer ul {
    display: flex;
    gap: 20px;
    list-style: none;
    padding: 0;
    margin-bottom: 20px;
    flex-wrap: wrap; /* Allow wrapping on smaller screens */
    justify-content: center;
}

.chuep0-footer a {
    color: rgba(236, 240, 241, 0.9);
    font-weight: 500;
    transition: color 0.3s ease;
}

.chuep0-footer a:hover,
.chuep0-footer a:focus {
    color: #ffffff;
    text-decoration: underline;
}

.chuep0-footer-contact {
    margin-top: 10px;
    font-size: 0.95em;
    opacity: 0.9;
    text-align: center; /* Center contact info */
}

.chuep0-footer-contact p {
    margin: 5px 0;
}

.chuep0-footer-contact strong {
    color: #f39c12; /* Accent for labels */
}

.chuep0-footer > div > div:nth-of-type(2) { /* Targeting the main disclaimer/info div */
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 15px;
    margin-top: 15px;
    width: 100%;
    text-align: center; /* Center align this section's content */
}

.chuep0-footer h4 {
    margin: 0 0 5px 0;
    color: #ffeb3b; /* Warning yellow for important notices */
    font-size: 1.2em;
    text-transform: uppercase;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.4);
}

.chuep0-footer > div > div:nth-of-type(2) > div { /* The 100% Free alert box */
    background: rgba(255, 255, 255, 0.07); /* Subtle translucent background */
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 15px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    box-shadow: inset 0 0 15px rgba(0,0,0,0.2); /* Subtle inner shadow */
}

.chuep0-footer > div > div:nth-of-type(2) > div p {
    margin: 0;
    font-weight: bold;
    font-size: 1.25em;
    color: #ffffff; /* Brighter text for the main message */
}

.chuep0-footer p {
    margin-bottom: 10px;
    font-size: 0.95em;
    text-align: justify; /* Ensure text is justified */
    opacity: 0.9; /* Slightly reduced opacity for secondary text */
}

.chuep0-footer a[href="https://www.gambleaware.org"] {
    font-weight: bold;
    color: #ffffff;
    text-decoration: underline;
}

.chuep0-footer a[href="https://www.gambleaware.org"]:hover,
.chuep0-footer a[href="https://www.gambleaware.org"]:focus {
    color: #f39c12;
    text-decoration: none;
}

.chuep0-copyright {
    margin-top: 20px;
    font-size: 0.85em;
    opacity: 0.7;
}

/* Layout: Origami Hero Section */
.chuep0-hero {
    display: flex;
    flex-wrap: wrap; /* Allow wrapping on smaller screens */
    align-items: center;
    justify-content: space-between;
    padding: 140px 20px 100px 20px; /* Generous padding */
    gap: 60px; /* Space between text and image */
    max-width: 1400px; /* Wider than container for more impact */
    margin: 0 auto;
    min-height: 600px; /* Ensure it has some height even with less content */
}

.chuep0-hero-text {
    flex: 1; /* Takes up available space */
    min-width: 300px; /* Minimum width before wrapping */
    z-index: 2; /* Above image background */
}

.chuep0-hero-text h1 {
    font-size: 3.5rem;
    margin-bottom: 20px;
    color: #ffffff; /* White for strong contrast */
    text-shadow: 0 5px 20px rgba(0,0,0,0.5);
}

.chuep0-hero-text p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    color: rgba(236, 240, 241, 0.95);
    max-width: 600px; /* Prevent excessively long lines */
}

.chuep0-hero-image-container {
    flex: 1.2; /* Image gets slightly more space */
    max-width: 700px; /* Max width for the image */
    min-width: 300px; /* Minimum width */
    display: flex;
    justify-content: center;
    align-items: center; /* Center image vertically */
}

.chuep0-hero-image-container img {
    width: 100%;
    max-height: 550px; /* Constrain image height */
    object-fit: cover; /* Cover the area */
    border-radius: 16px; /* Rounded corners */
    box-shadow: 0 10px 30px rgba(0,0,0,0.3); /* Depth */
    border: 5px solid rgba(211, 84, 0, 0.3); /* Accent border */
}

/* Trust Signals */
.chuep0-trust-badge {
    display: inline-flex;
    align-items: center;
    background-color: rgba(255, 255, 255, 0.1);
    padding: 8px 15px;
    border-radius: 25px;
    font-size: 0.9em;
    font-weight: 600;
    color: #ffffff;
    margin-top: 20px;
    margin-right: 15px; /* Space between badges */
    border: 1px solid rgba(211, 84, 0, 0.3);
    transition: all 0.3s ease;
}

.chuep0-trust-badge svg {
    width: 20px;
    height: 20px;
    margin-right: 8px;
    fill: #f39c12; /* Accent color for icons */
}

.chuep0-trust-badge:hover {
    background-color: rgba(211, 84, 0, 0.3);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

/* Buttons */
.chuep0-btn {
    display: inline-block;
    background-color: #d35400; /* Primary accent */
    color: #ffffff;
    padding: 14px 30px;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: background-color 0.3s ease, transform 0.2s ease, box-shadow 0.3s ease;
    border: none;
    cursor: pointer;
    box-shadow: 0 5px 15px rgba(211, 84, 0, 0.4);
}

.chuep0-btn:hover,
.chuep0-btn:focus {
    background-color: #e67e22; /* Darker accent on hover */
    transform: translateY(-2px);
    box-shadow: 0 7px 20px rgba(211, 84, 0, 0.5);
    color: #ffffff;
    text-decoration: none;
}

.chuep0-btn.chuep0-btn-secondary {
    background-color: #7f8c8d; /* Accent color */
    box-shadow: 0 5px 15px rgba(127, 140, 141, 0.4);
}

.chuep0-btn.chuep0-btn-secondary:hover,
.chuep0-btn.chuep0-btn-secondary:focus {
    background-color: #95a5a6;
    box-shadow: 0 7px 20px rgba(127, 140, 141, 0.5);
}

/* Layout: Games Grid */
.chuep0-game-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); /* Responsive columns */
    gap: 24px; /* Space between cards */
    max-width: 1200px; /* Max width for the grid */
    margin: 40px auto; /* Centered with spacing */
    padding: 0 20px; /* Ensure padding on sides */
}

.chuep0-game-card {
    position: relative;
    overflow: hidden; /* Crucial for absolute positioning inside */
    border-radius: 16px; /* Rounded corners */
    background-color: rgba(255, 255, 255, 0.05); /* Subtle background */
    box-shadow: 0 8px 25px rgba(0,0,0,0.3); /* Depth effect */
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    aspect-ratio: 4/5; /* Maintain aspect ratio */
    display: flex;
    flex-direction: column;
    justify-content: flex-end; /* Push content to the bottom */
    border: 1px solid rgba(211, 84, 0, 0.1); /* Subtle accent border */
}

.chuep0-game-card:hover {
    transform: translateY(-8px); /* Lift effect */
    box-shadow: 0 15px 35px rgba(0,0,0,0.4); /* More pronounced shadow */
}

.chuep0-game-card img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%; /* Cover the entire card area */
    object-fit: cover; /* Ensure image covers the card without distortion */
    z-index: 1; /* Image is behind text content */
    border-radius: 16px; /* Ensure image also has rounded corners */
}

.chuep0-game-card-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0) 70%); /* Gradient overlay */
    padding: 20px;
    z-index: 2; /* Above the image */
    display: flex;
    flex-direction: column;
    justify-content: flex-end; /* Align text to the bottom */
    min-height: 100px; /* Minimum height for overlay */
    border-radius: 0 0 16px 16px; /* Rounded bottom corners */
}

.chuep0-game-card-title {
    font-size: 1.4rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 8px;
    text-shadow: 1px 1px 5px rgba(0,0,0,0.6);
}

.chuep0-game-card-description {
    font-size: 0.95rem;
    color: rgba(236, 240, 241, 0.9);
    opacity: 0.9;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.5);
}

/* Content Section Styling */
.chuep0-content-section {
    padding: 80px 20px; /* Vertical and horizontal padding */
    line-height: 1.8;
    font-size: 1.1rem;
    max-width: 1000px; /* Limit width for readability */
    margin: 0 auto; /* Center the section */
    text-align: left; /* Default text alignment */
}

.chuep0-content-section h2,
.chuep0-content-section h3 {
    text-align: center; /* Center headings within content */
    color: #ffffff;
}

/* Responsive Adjustments */
@media (max-width: 992px) {
    .chuep0-desktop-nav {
        display: none; /* Hide desktop nav on smaller screens */
    }

    .chuep0-hamburger {
        display: block; /* Show hamburger menu */
    }

    .chuep0-hero {
        flex-direction: column; /* Stack text and image */
        padding: 120px 20px 80px 20px;
        text-align: center; /* Center align text */
    }

    .chuep0-hero-text {
        order: 2; /* Text below image on mobile */
        flex-basis: 100%; /* Take full width */
        max-width: 600px; /* Limit width */
        margin-top: 30px;
    }

    .chuep0-hero-image-container {
        order: 1; /* Image above text on mobile */
        flex-basis: 100%;
        max-width: 500px; /* Adjust max width */
        margin-bottom: 0; /* Remove extra margin */
    }
    .chuep0-hero-image-container img {
        max-height: 400px; /* Reduce max height on mobile */
    }

    .chuep0-logo {
        margin: 0 auto; /* Center logo when nav is hidden */
        flex-grow: 1; /* Allow logo to take space */
    }

    .chuep0-header-right {
        flex-grow: 0; /* Don't grow header right elements */
    }

    .chuep0-container {
        padding: 0 15px; /* Slightly less padding on mobile */
    }

    .chuep0-game-grid {
        grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); /* Adjust min width for smaller screens */
        gap: 16px; /* Reduce gap */
        padding: 0 15px; /* Adjust padding */
    }

    .chuep0-footer ul {
        flex-direction: column; /* Stack footer links vertically */
        gap: 10px;
    }

    .chuep0-footer p, .chuep0-footer h4 {
        text-align: center; /* Center align footer text */
    }
}

@media (max-width: 768px) {
    h1 { font-size: 2.8rem; }
    h2 { font-size: 2.2rem; }
    h3 { font-size: 1.8rem; }

    .chuep0-hero {
        padding: 100px 15px 60px 15px;
        gap: 30px;
    }

    .chuep0-hero-text {
        margin-top: 20px;
    }

    .chuep0-hero-text h1 {
        font-size: 3rem;
    }

    .chuep0-hero-text p {
        font-size: 1.1rem;
    }

    .chuep0-hero-image-container img {
        max-height: 350px;
    }

    .chuep0-game-card-overlay {
        padding: 15px;
    }

    .chuep0-game-card-title {
        font-size: 1.2rem;
    }
}

@media (max-width: 480px) {
    .chuep0-age-flag {
        font-size: 0.8em;
        padding: 6px 10px;
    }

    .chuep0-hamburger {
        font-size: 1.8rem;
    }

    .chuep0-mobile-menu a {
        font-size: 1.5rem;
    }

    .chuep0-close-menu {
        font-size: 2rem;
        top: 20px;
        right: 20px;
    }

    .chuep0-hero {
        padding: 80px 15px 40px 15px;
    }

    .chuep0-hero-text h1 {
        font-size: 2.5rem;
    }

    .chuep0-hero-text p {
        font-size: 1rem;
    }

    .chuep0-hero-image-container img {
        max-height: 280px;
    }

    .chuep0-btn {
        padding: 12px 25px;
        font-size: 1rem;
    }

    .chuep0-game-grid {
        grid-template-columns: 1fr; /* Single column on very small screens */
        gap: 16px;
    }

    .chuep0-footer {
        padding: 30px 15px;
    }

    .chuep0-footer ul {
        gap: 8px;
    }
    .chuep0-footer h4 {
        font-size: 1.1em;
    }
    .chuep0-footer > div > div:nth-of-type(2) > div {
        padding: 10px;
    }
    .chuep0-footer > div > div:nth-of-type(2) > div p {
        font-size: 1.1em;
    }
    .chuep0-footer p {
        font-size: 0.9em;
    }
    .chuep0-copyright {
        font-size: 0.8em;
    }
}