/* CSS Reset */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    max-width: 100vw;
}

/* Global Styles */
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: 'Barlow', sans-serif;
    background-color: #002a1a; /* Emerald City BG */
    color: #ffffff;
    line-height: 1.6;
}

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

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

a {
    text-decoration: none;
    color: #f1c40f; /* Emerald City Accent */
    transition: color 0.3s ease;
}

a:hover {
    color: #ffffff;
}

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

/* Header */
.csgrhr-header-l-c-r {
    background: rgba(0, 42, 26, 0.7); /* Darker Emerald City BG with transparency */
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid rgba(0, 194, 126, 0.3); /* Emerald City Primary border */
}

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

.csgrhr-logo span {
    color: #00c27e; /* Emerald City Primary */
}

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

.csgrhr-desktop-nav ul li a {
    font-weight: 700;
    font-size: 1.1em;
    color: #ffffff;
    padding: 8px 12px;
    border-radius: 6px;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.csgrhr-desktop-nav ul li a:hover {
    background-color: rgba(0, 194, 126, 0.2); /* Emerald City Primary hover */
    color: #ffffff;
}

.csgrhr-header-right {
    display: flex;
    align-items: center;
    gap: 15px;
}

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

.csgrhr-hamburger {
    display: none; /* Hidden by default on desktop */
    background: none;
    border: none;
    color: #ffffff;
    font-size: 2em;
    cursor: pointer;
}

/* Mobile Menu */
.csgrhr-mobile-menu {
    display: none; /* Hidden by default */
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 42, 26, 0.95); /* Dark Emerald City */
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    z-index: 1001;
    padding: 40px 20px;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    overflow-y: auto;
}

.csgrhr-mobile-menu ul {
    list-style: none;
    padding: 0;
    margin: 20px 0 0 0;
    width: 100%;
    text-align: center;
}

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

.csgrhr-mobile-menu ul li a {
    font-size: 1.5em;
    font-weight: 700;
    color: #ffffff;
    display: block;
    padding: 10px 0;
    border-radius: 8px;
    transition: background-color 0.3s ease;
}

.csgrhr-mobile-menu ul li a:hover {
    background-color: rgba(0, 194, 126, 0.2);
}

.csgrhr-close-menu {
    position: absolute;
    top: 20px;
    right: 20px;
    background: none;
    border: none;
    color: #ffffff;
    font-size: 2em;
    cursor: pointer;
}

/* Hero Section */
.csgrhr-hero {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    padding: 80px 20px 80px 20px;
    gap: 60px;
    max-width: 1400px;
    margin: 0 auto;
}

.csgrhr-hero-text {
    flex: 1;
    min-width: 300px;
    text-align: left;
}

.csgrhr-hero-text h1 {
    font-size: 3.5em;
    margin-bottom: 20px;
    line-height: 1.2;
    color: #00c27e; /* Emerald City Primary */
    text-shadow: 0 4px 15px rgba(0, 194, 126, 0.4);
}

.csgrhr-hero-text p {
    font-size: 1.3em;
    margin-bottom: 30px;
    opacity: 0.9;
}

.csgrhr-hero-image {
    flex: 1.2;
    max-width: 700px;
    min-width: 300px;
    display: flex;
    justify-content: center;
}

.csgrhr-hero-image img {
    width: 100%;
    max-height: 550px;
    object-fit: cover;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

/* Content Section Styling */
.csgrhr-content-section {
    padding: 80px 20px;
    line-height: 1.8;
    font-size: 1.1rem;
}

.csgrhr-content-section h2 {
    font-size: 2.5em;
    margin-bottom: 30px;
    text-align: center;
    color: #00c27e; /* Emerald City Primary */
}

.csgrhr-content-section p {
    margin-bottom: 20px;
    max-width: 800px; /* Limit paragraph width for readability */
    margin-left: auto;
    margin-right: auto;
}

.csgrhr-content-section ul {
    list-style: disc;
    margin-left: 40px;
    margin-bottom: 20px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

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

/* Game Grid */
.csgrhr-game-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    justify-content: center;
    gap: 30px;
    margin: 40px auto;
    max-width: 1200px;
    padding: 0 20px;
}

.csgrhr-game-card {
    background: rgba(255, 255, 255, 0.08);
    padding: 20px;
    border-radius: 16px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    overflow: hidden; /* Ensures content stays within rounded corners */
}

.csgrhr-game-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.3);
}

.csgrhr-game-card img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    border-radius: 8px 8px 0 0;
    margin-bottom: 15px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.csgrhr-game-card h3 {
    font-size: 1.4em;
    margin-bottom: 10px;
    color: #00c27e; /* Emerald City Primary */
    text-align: center;
}

.csgrhr-game-card p {
    font-size: 0.95em;
    opacity: 0.85;
    text-align: center;
    flex-grow: 1; /* Allows description to take available space */
}

.csgrhr-game-card .csgrhr-btn {
    margin-top: 20px;
    width: 100%;
    text-align: center;
    padding: 12px 20px;
    font-weight: 700;
}

/* Buttons */
.csgrhr-btn {
    display: inline-block;
    background-color: #00c27e; /* Emerald City Primary */
    color: #ffffff;
    padding: 12px 25px;
    border-radius: 8px;
    font-size: 1.1em;
    font-weight: 700;
    border: none;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease, box-shadow 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 5px 15px rgba(0, 194, 126, 0.3);
}

.csgrhr-btn:hover {
    background-color: #00e092; /* Lighter Emerald City */
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 194, 126, 0.4);
}

.csgrhr-btn:active {
    transform: translateY(0);
    box-shadow: 0 5px 15px rgba(0, 194, 126, 0.3);
}

/* Footer */
.csgrhr-footer {
    background: rgba(0, 0, 0, 0.1);
    padding: 40px 20px;
    margin-top: auto; /* Pushes footer to the bottom */
    text-align: center;
    font-size: 0.9em;
    opacity: 0.9;
}

.csgrhr-footer .csgrhr-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 1000px;
    margin: 0 auto;
}

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

.csgrhr-footer ul li a {
    color: #ffffff;
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

.csgrhr-footer ul li a:hover {
    opacity: 1;
}

.csgrhr-footer-contact {
    margin-top: 20px;
    font-size: 0.85em;
    text-align: center;
    opacity: 0.85;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.csgrhr-footer-contact span {
    color: #ffffff;
}

.csgrhr-footer > div > div:first-of-type { /* Warning Box */
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 15px;
    margin-top: 15px;
    width: 100%;
}

.csgrhr-footer .warning-box {
    background: rgba(255, 255, 255, 0.05);
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 15px;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.csgrhr-footer .warning-box h4 {
    margin: 0 0 5px 0;
    color: #f1c40f; /* Emerald City Accent */
    font-size: 1.1em;
    text-transform: uppercase;
}

.csgrhr-footer .warning-box p {
    margin: 0;
    font-weight: bold;
    font-size: 1.2em;
    color: #ffffff;
}

.csgrhr-footer p {
    margin-bottom: 10px;
    font-size: 0.9em;
    text-align: justify;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    color: #cccccc; /* Lighter text for body copy in footer */
}

.csgrhr-footer p strong {
    color: #ffffff;
}

.csgrhr-footer a {
    opacity: 0.9;
}

.csgrhr-footer a:hover {
    opacity: 1;
    color: #00c27e; /* Emerald City Primary hover for links */
}

.csgrhr-copyright {
    margin-top: 15px;
    text-align: center;
    color: #ffffff;
    opacity: 0.7;
    font-size: 0.85em;
}

.csgrhr-copyright a {
    color: #ffffff;
    text-decoration: underline;
    opacity: 0.8;
}

.csgrhr-copyright a:hover {
    opacity: 1;
    color: #00c27e;
}

/* Trust Indicators */
.csgrhr-trust-icon {
    display: inline-block;
    margin-right: 8px;
    vertical-align: middle;
    font-size: 1.2em; /* Example for text-based icons */
    color: #f1c40f; /* Emerald City Accent */
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .csgrhr-desktop-nav {
        display: none;
    }

    .csgrhr-hamburger {
        display: block;
    }

    .csgrhr-hero {
        flex-direction: column;
        text-align: center;
        padding: 100px 20px 60px 20px;
        gap: 30px;
    }

    .csgrhr-hero-text {
        order: 2; /* Text below image on mobile */
    }

    .csgrhr-hero-image {
        order: 1; /* Image above text on mobile */
        max-width: 100%;
    }

    .csgrhr-hero-text h1 {
        font-size: 2.8em;
    }

    .csgrhr-hero-text p {
        font-size: 1.1em;
    }

    .csgrhr-game-grid {
        grid-template-columns: 1fr; /* Single column on mobile */
        padding: 0 15px;
    }

    .csgrhr-footer ul {
        flex-direction: column;
        gap: 10px;
    }
}

@media (max-width: 480px) {
    .csgrhr-logo {
        font-size: 1.2em;
    }

    .csgrhr-age-flag {
        font-size: 0.8em;
    }

    .csgrhr-hero-text h1 {
        font-size: 2.5em;
    }

    .csgrhr-content-section {
        padding: 60px 15px;
        font-size: 1em;
    }

    .csgrhr-content-section h2 {
        font-size: 2em;
    }

    .csgrhr-game-card {
        padding: 15px;
    }

    .csgrhr-game-card img {
        height: 180px;
    }

    .csgrhr-btn {
        font-size: 1em;
        padding: 10px 20px;
    }

    .csgrhr-footer {
        padding: 30px 15px;
        font-size: 0.8em;
    }
}