/* RESET + SETUP */
html, body {
    margin: 0;
    padding: 0;
    max-width: 100%;
    overflow-x: hidden;
    font-family: 'Inter', sans-serif;
    background: #f7f7f7;
}

/* Top bar khi đăng nhập */
.top-bar {
    width: 100%;
    background: rgba(255,255,255,0.16);
    color: #fff;
    padding: 10px 25px;
    font-size: 15px;
    text-align: right;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 100;
    backdrop-filter: blur(4px);
}
.top-bar a {
    color: #fff;
    text-decoration: none;
    font-weight: 600;
    margin-left: 12px;
}
.top-bar a:hover { opacity: 0.75; }

/* HERO */
.hero {
    background: linear-gradient(135deg,#5b2be1,#7b3fff);
    color: white;
    text-align: center;
    padding: 40px 20px 50px;
    margin-bottom: 20px;
}
.hero h1 {
    font-size: 46px;
    margin-bottom: 12px;
    font-weight: 700;
}
.hero p {
    font-size: 18px;
    max-width: 750px;
    margin: 0 auto;
    opacity: 0.95;
}

/* HERO buttons */
.btn-group { margin-top: 25px; }
.btn {
    padding: 13px 24px;
    border-radius: 8px;
    color: white;
    text-decoration: none;
    font-size: 17px;
    font-weight: 600;
    margin: 6px;
    display: inline-block;
    transition: 0.2s;
}
.btn-login { background: #00c2ff; }
.btn-login:hover { background: #0098cc; }
.btn-register { background: #ffc400; color: black; }
.btn-register:hover { background: #e0b000; }

/* HERO NAV */
.hero-nav {
    margin-top: 35px;
    display: flex;
    justify-content: center;
    gap: 25px;
    flex-wrap: wrap;
}
.hero-nav a {
    padding: 10px 22px;
    border-radius: 25px;
    color: white;
    border: 2px solid rgba(255,255,255,0.25);
    font-weight: 500;
    text-decoration: none;
    transition: .25s;
}
.hero-nav a:hover {
    background: rgba(255,255,255,0.24);
    border-color: rgba(255,255,255,0.4);
}

/* TITLE */
.section-title {
    text-align: center;
    font-size: 30px;
    font-weight: 700;
    margin: 25px 0 30px;
    color: #5b2be1;
}

/* 3 BOX GAME NGANG */
.main-games-horizontal {
    max-width: 1100px;
    margin: auto;
    padding: 0 20px 30px;
}

.horizontal-3-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 26px;
}

.h-item {
    display: flex;
    align-items: center;
    background: white;
    padding: 22px;
    border-radius: 16px;
    text-decoration: none;
    color: #222;
    box-shadow: 0 4px 14px rgba(0,0,0,0.08);
    transition: 0.25s;
}
.h-item:hover {
    transform: translateY(-6px);
    box-shadow: 0 10px 26px rgba(0,0,0,0.12);
}

.h-img {
    width: 75px;
    min-width: 75px;
    margin-right: 18px;
}
.h-text h3 {
    margin: 0 0 6px;
    font-size: 20px;
    font-weight: 700;
}
.h-text p {
    margin: 0;
    font-size: 15px;
    opacity: 0.85;
    line-height: 1.45;
}

/* MÀU VIỀN */
.border-blue  { border-left: 8px solid #3b82f6; }
.border-red   { border-left: 8px solid #ef4444; }
.border-green { border-left: 8px solid #10b981; }

/* FEATURES */
.features {
    padding: 20px 20px 40px;
    max-width: 1100px;
    margin: auto;
    text-align: center;
}
.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit,minmax(260px,1fr));
    gap: 30px;
}
.feature-item {
    background: white;
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.08);
    transition: .25s;
}
.feature-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.12);
}
.feature-item img {
    width: 65px;
    margin-bottom: 12px;
}

/* CONTACT GRID */
.contact-section {
    padding: 50px 20px;
    max-width: 1100px;
    margin: auto;
}
.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit,minmax(280px,1fr));
    gap: 30px;
}
.contact-item {
    background: #fff;
    padding: 24px;
    border-radius: 12px;
    box-shadow: 0 4px 14px rgba(0,0,0,0.08);
}

/* CTA */
.cta {
    text-align: center;
    padding: 60px 20px;
    background: #fff4cc;
    margin-top: 40px;
}
.cta-btn {
    background: #ffc400;
    color: #d60000;
    font-weight: 700;
    padding: 15px 28px;
    border-radius: 8px;
    text-decoration: none;
    font-size: 18px;
    display: inline-block;
    transition: .25s;
}
.cta-btn:hover {
    background: #e0b000;
}

/* FOOTER */
footer {
    text-align: center;
    padding: 22px;
    background: #222;
    color: #ccc;
    margin-top: 20px;
    font-size: 14px;
}

/* RESPONSIVE */
@media(max-width: 900px) {
    .horizontal-3-grid {
        grid-template-columns: repeat(2,1fr);
    }
}
@media(max-width: 650px) {
    .horizontal-3-grid {
        grid-template-columns: 1fr;
    }
    .h-item {
        padding: 18px;
    }
    .h-img {
        width: 62px;
        min-width: 62px;
        margin-right: 14px;
    }
}
