/* CSS Reset and Base Styles */
* {
    box-sizing: inherit;
    margin: 0;
    padding: 0;
}

html, body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    max-width: 100vw;
    overflow-x: hidden;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Montserrat', sans-serif;
    background-color: #041a06; /* Theme BG */
    color: #e6ffea; /* Theme Text */
}

main {
    flex: 1;
    width: 100%;
    max-width: 100vw;
    overflow-x: hidden;
}

*, *::before, *::after {
    box-sizing: inherit;
    max-width: 100vw;
}

img, canvas, iframe, video, svg {
    max-width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    box-sizing: border-box;
}

/* Container for Centering Content */
.cr4mzc-container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header Styles */
.cr4mzc-header-l-r-r {
    padding: 20px;
    background: rgba(0, 0, 0, 0.5); /* Glassmorphism */
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
    width: 100%;
}

.cr4mzc-logo {
    display: flex;
    align-items: center;
    font-size: 1.5rem;
    font-weight: 700;
    color: #fff;
    text-decoration: none;
}

.cr4mzc-logo span {
    letter-spacing: 0.5px;
}

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

.cr4mzc-desktop-nav a {
    color: #e6ffea;
    text-decoration: none;
    font-weight: 500;
    font-size: 1rem;
    transition: color 0.3s ease, transform 0.3s ease;
    position: relative;
    padding: 5px 0;
}

.cr4mzc-desktop-nav a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    display: block;
    margin-top: 5px;
    right: 0;
    background: #7dff6b; /* Theme Primary */
    transition: width 0.3s ease;
}

.cr4mzc-desktop-nav a:hover {
    color: #7dff6b; /* Theme Primary */
}

.cr4mzc-desktop-nav a:hover::after {
    width: 100%;
    left: 0;
}

.cr4mzc-header-right {
    display: flex;
    align-items: center;
    gap: 20px;
}

.cr4mzc-age-flag {
    display: flex;
    align-items: center;
    background-color: rgba(255, 255, 255, 0.1);
    padding: 5px 10px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 500;
}

.cr4mzc-hamburger {
    display: none; /* Hidden by default, shown on small screens */
    background: none;
    border: none;
    color: #e6ffea;
    font-size: 2rem;
    cursor: pointer;
}

/* Mobile Menu */
.cr4mzc-mobile-menu {
    display: none; /* Hidden by default */
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    z-index: 999;
    padding: 40px 20px;
    overflow-y: auto;
}

.cr4mzc-mobile-menu ul {
    list-style: none;
    padding: 0;
    margin: 0;
    margin-top: 40px;
}

.cr4mzc-mobile-menu li {
    margin-bottom: 20px;
}

.cr4mzc-mobile-menu a {
    color: #e6ffea;
    text-decoration: none;
    font-size: 1.4rem;
    font-weight: 600;
    display: block;
    padding: 10px 0;
}

.cr4mzc-mobile-menu a:hover {
    color: #7dff6b;
}

.cr4mzc-close-menu {
    position: absolute;
    top: 20px;
    right: 20px;
    background: none;
    border: none;
    color: #e6ffea;
    font-size: 2.5rem;
    cursor: pointer;
}

/* Footer Styles */
.cr4mzc-footer {
    padding: 40px 20px;
    background: rgba(0, 0, 0, 0.1);
    width: 100%;
    margin-top: auto; /* Pushes footer to bottom */
}

.cr4mzc-footer ul {
    display: flex;
    gap: 20px;
    list-style: none;
    padding: 0;
    margin-bottom: 20px;
    flex-wrap: wrap;
    justify-content: center;
}

.cr4mzc-footer a {
    color: #e6ffea;
    text-decoration: none;
    font-size: 0.95rem;
    transition: color 0.3s ease;
}

.cr4mzc-footer a:hover {
    color: #7dff6b;
    text-decoration: underline;
}

.cr4mzc-footer-contact p {
    margin: 5px 0;
    opacity: 0.9;
}

.cr4mzc-footer h4 {
    margin: 0 0 5px 0;
    color: #ffeb3b; /* Theme Secondary Accent */
    font-size: 1.1em;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.cr4mzc-footer p {
    margin: 8px 0;
    font-size: 1rem;
    line-height: 1.7;
}

.cr4mzc-footer p strong {
    font-weight: 700;
}

.cr4mzc-footer a[href="https://www.gambleaware.org"] {
    color: #ff6b35; /* Theme Accent */
    text-decoration: underline;
}

.cr4mzc-footer a[href="https://www.gambleaware.org"]:hover {
    color: #ffeb3b; /* Theme Secondary Accent */
}

.cr4mzc-footer .cr4mzc-copyright {
    margin-top: 20px;
    text-align: center;
    font-size: 0.85em;
    opacity: 0.75;
}

/* Button Styles */
.cr4mzc-btn {
    display: inline-block;
    padding: 14px 32px;
    border-radius: 50px;
    font-weight: 700;
    letter-spacing: 0.75px;
    text-transform: uppercase;
    font-size: 0.9rem;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: none;
    cursor: pointer;
    background: linear-gradient(45deg, #ff6b35, #ffd700); /* Theme Accent to Secondary */
    color: #041a06; /* Theme BG */
    box-shadow: 0 8px 20px rgba(255, 107, 53, 0.4); /* Accent color shadow */
}

.cr4mzc-btn:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 12px 30px rgba(255, 107, 53, 0.6);
}

/* Hero Layout: ASYMMETRIC-SPLIT */
.cr4mzc-hero {
    display: grid;
    grid-template-columns: minmax(300px, 1.2fr) minmax(300px, 0.8fr);
    align-items: center;
    padding: 140px 5%;
    gap: 60px;
    max-width: 1400px;
    margin: 0 auto;
    min-height: 600px; /* Ensure it has some height */
}

.cr4mzc-hero-content {
    padding-right: 40px;
    z-index: 2; /* Ensure text is above background elements */
}

.cr4mzc-hero-content h1 {
    font-size: 3.5rem;
    line-height: 1.2;
    margin-bottom: 25px;
    letter-spacing: 1px;
    text-shadow: 0 4px 15px rgba(0,0,0,0.3);
}

.cr4mzc-hero-content p {
    font-size: 1.2rem;
    line-height: 1.8;
    margin-bottom: 35px;
    max-width: 550px;
}

.cr4mzc-hero-image-wrapper {
    position: relative;
    display: flex;
    justify-content: flex-end; /* Pushes image to the right */
    align-items: center;
    z-index: 1; /* Below text for overlap effect */
}

.cr4mzc-hero-image {
    width: 100%;
    height: 600px; /* Fixed height for consistency */
    object-fit: cover;
    border-radius: 40px 0 40px 0; /* Asymmetric rounding */
    box-shadow: 20px 20px 0px rgba(0, 0, 0, 0.15); /* Subtle shadow */
    border: 5px solid rgba(125, 255, 107, 0.2); /* Theme Primary border */
}

/* Trust Badges for Hero */
.cr4mzc-trust-badge {
    position: absolute;
    bottom: 30px; /* Position relative to the image wrapper */
    left: -20px; /* Overlap slightly */
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    padding: 8px 15px;
    border-radius: 30px;
    font-size: 0.8rem;
    font-weight: 600;
    color: #e6ffea;
    display: flex;
    align-items: center;
    gap: 5px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    z-index: 3; /* Above image */
    white-space: nowrap;
}

.cr4mzc-trust-badge::before {
    content: '✅'; /* Placeholder icon, can be replaced with SVG/icon font */
    display: inline-block;
    margin-right: 4px;
}


/* Games Grid: ELEVATED-FLOATING-CARDS */
.cr4mzc-game-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 50px 30px; /* Increased gap for premium feel */
    max-width: 1200px;
    margin: 80px auto;
    padding: 0 20px;
}

.cr4mzc-game-card {
    background: rgba(255, 255, 255, 0.05); /* Subtle translucent background */
    border-radius: 20px;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.06);
    overflow: hidden; /* Ensures content doesn't spill */
    cursor: pointer;
    position: relative; /* For potential overlays */
    display: flex;
    flex-direction: column;
}

.cr4mzc-game-card-image-container {
    width: calc(100% - 40px); /* Slightly inset from card edge */
    height: 220px; /* Fixed height for images */
    object-fit: cover;
    border-radius: 16px;
    margin: -30px 20px 20px 20px; /* Creates floating effect */
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2); /* Stronger shadow for floating effect */
    position: relative;
    z-index: 1;
    background-color: #ffffff; /* Placeholder if image fails to load */
}

.cr4mzc-game-card-image-container img {
    width: 100%;
    height: 100%;
    border-radius: 16px; /* Match container */
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.cr4mzc-game-card-content {
    padding: 0 20px 30px 20px;
    flex-grow: 1; /* Allows content to take available space */
    display: flex;
    flex-direction: column;
    justify-content: flex-end; /* Push content to the bottom if needed */
}

.cr4mzc-game-card-title {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 10px;
    color: #7dff6b; /* Theme Primary */
    text-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

.cr4mzc-game-card-description {
    font-size: 0.95rem;
    line-height: 1.7;
    color: rgba(230, 255, 234, 0.8); /* Slightly muted text */
    margin-bottom: 15px;
    flex-grow: 1; /* Pushes button to bottom */
}

.cr4mzc-game-card:hover {
    transform: translateY(-10px) scale(1.03); /* Elevate and scale */
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.1); /* Stronger shadow on hover */
}

.cr4mzc-game-card:hover .cr4mzc-game-card-image-container img {
    transform: scale(1.05); /* Slight zoom on image */
}

/* Content Section Styling */
.cr4mzc-content-section {
    padding: 80px 20px;
    line-height: 1.9;
    font-size: 1.1rem;
    max-width: 900px; /* Limit width for readability */
    margin: 0 auto;
    text-align: justify; /* Align text for a cleaner look */
}

.cr4mzc-content-section h2 {
    font-size: 2.8rem;
    text-align: center;
    margin-bottom: 40px;
    letter-spacing: 0.5px;
    text-shadow: 0 2px 10px rgba(0,0,0,0.2);
}

.cr4mzc-content-section h3 {
    font-size: 1.8rem;
    margin-top: 40px;
    margin-bottom: 15px;
    color: #7dff6b; /* Theme Primary */
}

.cr4mzc-content-section p {
    margin-bottom: 20px;
}

.cr4mzc-content-section ul,
.cr4mzc-content-section ol {
    margin-bottom: 20px;
    padding-left: 30px;
}

.cr4mzc-content-section li {
    margin-bottom: 10px;
}

/* Responsive Adjustments */
@media (max-width: 992px) {
    .cr4mzc-desktop-nav ul {
        gap: 15px;
    }

    .cr4mzc-hero {
        grid-template-columns: 1fr; /* Stack content and image on smaller screens */
        padding: 100px 20px;
        text-align: center;
        min-height: auto;
    }

    .cr4mzc-hero-content {
        padding-right: 0;
        margin-bottom: 40px;
    }

    .cr4mzc-hero-content h1 {
        font-size: 2.8rem;
    }

    .cr4mzc-hero-content p {
        font-size: 1.1rem;
        max-width: none;
    }

    .cr4mzc-hero-image-wrapper {
        justify-content: center; /* Center image */
    }

    .cr4mzc-hero-image {
        height: 450px;
        border-radius: 30px; /* Adjust rounding for centered layout */
        box-shadow: 15px 15px 0px rgba(0, 0, 0, 0.1);
    }

    .cr4mzc-trust-badge {
        position: static; /* Place below the image */
        margin-top: 15px;
        left: auto;
        transform: none;
        box-shadow: none;
        background: rgba(255, 255, 255, 0.15);
        padding: 6px 12px;
    }

    .cr4mzc-game-grid {
        margin: 60px auto;
        gap: 40px 20px;
    }

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

    .cr4mzc-game-card-description {
        font-size: 0.9rem;
    }

    .cr4mzc-content-section {
        padding: 60px 20px;
        font-size: 1.05rem;
    }

    .cr4mzc-content-section h2 {
        font-size: 2.4rem;
        margin-bottom: 30px;
    }
}

@media (max-width: 768px) {
    .cr4mzc-header-right .cr4mzc-age-flag {
        display: none; /* Hide flag on very small screens */
    }

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

    .cr4mzc-desktop-nav {
        display: none; /* Hide desktop nav on small screens */
    }

    .cr4mzc-hero {
        padding: 80px 20px;
    }

    .cr4mzc-hero-content h1 {
        font-size: 2.5rem;
    }

    .cr4mzc-hero-image {
        height: 350px;
    }

    .cr4mzc-game-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); /* Slightly smaller cards */
        gap: 30px 15px;
        margin: 50px auto;
    }

    .cr4mzc-game-card-image-container {
        height: 180px;
    }

    .cr4mzc-content-section {
        font-size: 1rem;
    }

    .cr4mzc-content-section h2 {
        font-size: 2rem;
    }

    .cr4mzc-content-section h3 {
        font-size: 1.5rem;
    }

    .cr4mzc-footer ul {
        flex-direction: column;
        align-items: center;
        gap: 10px;
    }
}

@media (max-width: 576px) {
    .cr4mzc-header-l-r-r {
        padding: 15px;
    }

    .cr4mzc-logo {
        font-size: 1.3rem;
    }

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

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

    .cr4mzc-hero-content h1 {
        font-size: 2rem;
        margin-bottom: 15px;
    }

    .cr4mzc-hero-content p {
        font-size: 1rem;
        margin-bottom: 25px;
    }

    .cr4mzc-btn {
        padding: 10px 20px;
        font-size: 0.8rem;
    }

    .cr4mzc-hero-image {
        height: 300px;
        border-radius: 25px;
        box-shadow: 10px 10px 0px rgba(0, 0, 0, 0.1);
    }

    .cr4mzc-game-grid {
        grid-template-columns: 1fr; /* Single column on very small screens */
        gap: 30px;
        margin: 40px auto;
    }

    .cr4mzc-game-card {
        width: 100%;
    }

    .cr4mzc-game-card-image-container {
        height: 200px; /* More space for image in single column */
        margin: -25px 15px 15px 15px;
    }

    .cr4mzc-game-card-content {
        padding: 0 15px 20px 15px;
    }

    .cr4mzc-game-card-title {
        font-size: 1.1rem;
    }

    .cr4mzc-content-section {
        padding: 40px 15px;
        line-height: 1.7;
    }

    .cr4mzc-content-section h2 {
        font-size: 1.8rem;
        margin-bottom: 20px;
    }

    .cr4mzc-content-section h3 {
        font-size: 1.4rem;
        margin-top: 30px;
    }

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

    .cr4mzc-footer p, .cr4mzc-footer a {
        font-size: 0.9rem;
    }
}