/* CSS Reset and Base Styles */
* {
    box-sizing: inherit;
    max-width: 100vw;
    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: 'Barlow', sans-serif;
    background-color: #2e2200; /* Theme Base BG */
    color: #fffacd; /* Theme Accent */
    line-height: 1.6;
}

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

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

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

/* Typography and Links */
a {
    color: #ffc87c; /* Theme Primary */
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: #fffacd; /* Theme Accent */
    text-decoration: underline;
}

h1, h2, h3, h4, h5, h6 {
    margin-bottom: 1rem;
    font-weight: 700;
    line-height: 1.3;
}

p {
    margin-bottom: 1rem;
}

/* Header */
.ct557c-header-l-r-r {
    background: rgba(46, 34, 0, 0.8); /* Darker BG with transparency */
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 15px 20px;
    border-bottom: 1px solid rgba(255, 200, 124, 0.2); /* Theme Primary border */
    position: sticky;
    top: 0;
    z-index: 1000;
}

.ct557c-logo {
    display: flex;
    align-items: center;
    font-weight: 700;
    font-size: 1.3em;
    color: #ffc87c; /* Theme Primary */
}

.ct557c-logo span {
    color: #fffacd; /* Theme Accent */
}

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

.ct557c-desktop-nav a {
    color: #fffacd; /* Theme Accent */
    font-weight: 700;
    padding: 8px 12px;
    border-radius: 8px;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.ct557c-desktop-nav a:hover {
    background-color: rgba(255, 200, 124, 0.2); /* Theme Primary hover */
    color: #ffc87c; /* Theme Primary */
    text-decoration: none;
}

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

.ct557c-age-flag {
    display: flex;
    align-items: center;
    background-color: rgba(255, 200, 124, 0.2);
    padding: 5px 10px;
    border-radius: 8px;
    font-size: 0.9em;
    font-weight: 700;
    color: #ffc87c; /* Theme Primary */
}

.ct557c-hamburger {
    background: none;
    border: none;
    font-size: 2em;
    color: #fffacd; /* Theme Accent */
    cursor: pointer;
    display: none; /* Hidden by default, shown on small screens */
}

/* Mobile Menu */
.ct557c-mobile-menu {
    display: none; /* Hidden by default */
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(46, 34, 0, 0.95); /* Darker BG with transparency */
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    z-index: 999;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.ct557c-mobile-menu ul {
    list-style: none;
    padding: 0;
    margin: 0;
    text-align: center;
}

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

.ct557c-mobile-menu a {
    font-size: 1.8em;
    font-weight: 700;
    color: #fffacd; /* Theme Accent */
    transition: color 0.3s ease;
}

.ct557c-mobile-menu a:hover {
    color: #ffc87c; /* Theme Primary */
}

.ct557c-close-menu {
    position: absolute;
    top: 20px;
    right: 20px;
    background: none;
    border: none;
    font-size: 2.5em;
    color: #fffacd; /* Theme Accent */
    cursor: pointer;
}

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

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

.ct557c-hero-text h1 {
    font-size: 3.5em;
    margin-bottom: 20px;
    color: #ffc87c; /* Theme Primary */
}

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

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

.ct557c-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 */
.ct557c-content-section {
    padding: 80px 20px;
    line-height: 1.8;
    font-size: 1.1rem;
    text-align: justify;
    background-color: rgba(255, 255, 170, 0.05); /* Faint accent tint */
    margin-bottom: 40px;
    border-radius: 24px;
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.3);
}

.ct557c-content-section h2 {
    text-align: center;
    color: #ffc87c; /* Theme Primary */
    font-size: 2.5em;
    margin-bottom: 40px;
}

.ct557c-content-section p, .ct557c-content-section ul, .ct557c-content-section ol {
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.ct557c-content-section ul, .ct557c-content-section ol {
    margin-left: 40px;
    margin-bottom: 20px;
}

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

/* Game Grid */
.ct557c-game-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
    max-width: 1200px;
    margin: 40px auto;
    padding: 0 20px;
}

.ct557c-game-card {
    position: relative;
    overflow: hidden;
    border-radius: 16px;
    aspect-ratio: 4/5;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    background-color: rgba(255, 255, 170, 0.1); /* Faint accent tint */
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
}

.ct557c-game-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
}

.ct557c-game-card img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
    border-radius: 16px;
}

.ct557c-game-card-overlay {
    position: relative;
    z-index: 2;
    padding: 20px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
    border-radius: 0 0 16px 16px;
    text-align: center;
}

.ct557c-game-card-overlay h3 {
    font-size: 1.4em;
    color: #ffc87c; /* Theme Primary */
    margin-bottom: 8px;
}

.ct557c-game-card-overlay p {
    font-size: 0.95em;
    opacity: 0.9;
    margin-bottom: 0;
}

/* Buttons */
.ct557c-btn {
    display: inline-block;
    padding: 12px 25px;
    background-color: #ffc87c; /* Theme Primary */
    color: #2e2200; /* Theme Base BG text */
    font-weight: 700;
    font-size: 1.1em;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    text-align: center;
    transition: background-color 0.3s ease, transform 0.3s ease;
    box-shadow: 0 5px 15px rgba(255, 200, 124, 0.4);
}

.ct557c-btn:hover {
    background-color: #fffacd; /* Theme Accent */
    color: #2e2200;
    transform: translateY(-3px);
}

/* Footer */
.ct557c-footer {
    padding: 50px 20px;
    background: linear-gradient(to top, rgba(0,0,0,0.3), transparent);
    margin-top: auto; /* Push footer to bottom */
    color: rgba(255, 255, 255, 0.8);
}

.ct557c-footer ul {
    display: flex;
    gap: 25px;
    list-style: none;
    padding: 0;
    margin-bottom: 30px;
    flex-wrap: wrap;
    justify-content: center;
    border-bottom: 1px solid rgba(150, 150, 150, 0.2);
    padding-bottom: 20px;
}

.ct557c-footer a {
    color: rgba(255, 255, 255, 0.9);
    font-weight: 500;
}

.ct557c-footer a:hover {
    color: #ffc87c; /* Theme Primary */
    text-decoration: underline;
}

.ct557c-footer-contact {
    margin-top: 10px;
    font-size: 0.9em;
    opacity: 0.9;
    text-align: left;
    color: #fffacd; /* Theme Accent */
}

.ct557c-footer-contact p {
    margin-bottom: 5px;
}

.ct557c-footer-contact strong {
    color: #ffc87c; /* Theme Primary */
}


.ct557c-footer h3 {
    margin-bottom: 20px;
    opacity: 0.8;
    color: #ffc87c; /* Theme Primary */
    font-size: 1.8em;
}

.ct557c-copyright {
    margin-top: 15px;
    text-align: center;
    font-size: 0.9em;
    opacity: 0.8;
}

.ct557c-copyright a {
    color: rgba(255, 255, 255, 0.8);
}

.ct557c-copyright a:hover {
    color: #ffc87c;
}

/* Trust Indicators */
.ct557c-trust-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9em;
    font-weight: 700;
    color: #fffacd;
    background-color: rgba(255, 200, 124, 0.2);
    padding: 5px 12px;
    border-radius: 6px;
    margin: 5px;
}

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

    .ct557c-hamburger {
        display: block;
    }

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

    .ct557c-hero-text {
        order: 2;
    }

    .ct557c-hero-image {
        order: 1;
        max-width: 500px;
        margin-bottom: 30px;
    }

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

    .ct557c-game-grid {
        grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    }

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

    .ct557c-footer-contact {
        text-align: center;
    }
}

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

    .ct557c-age-flag {
        font-size: 0.8em;
        padding: 4px 8px;
    }

    .ct557c-hero-text h1 {
        font-size: 2.2em;
    }

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

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

    .ct557c-game-card-overlay h3 {
        font-size: 1.2em;
    }

    .ct557c-btn {
        padding: 10px 20px;
        font-size: 1em;
    }
    
    .ct557c-content-section {
        padding: 60px 15px;
        font-size: 1rem;
    }
    .ct557c-content-section h2 {
        font-size: 2em;
    }
}