:root {
    --primary: #4f46e5;
    --dark-bg: #0f172a;
    --card-bg: #1e293b;
    --text-light: #f8fafc;
    --accent: #10b981;
}

body {
    background-color: #0b0e14; 
    color: var(--text-light);
    font-family: 'Segoe UI', sans-serif;
    margin: 0;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 60px 20px;
}

.glass-nav {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(15, 23, 42, 0.8);
    backdrop-filter: blur(10px);
    z-index: 1000;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.nav-menu li a {
    font-weight: 600;
    text-transform: uppercase;
    font-size: 14px;
}

.btn-login-nav {
    background: var(--primary);
    padding: 8px 20px;
    border-radius: 5px;
    color: white !important;
}

.portal-hero {
    height: 600px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: url('hinhanh/background.jpg') no-repeat center center/cover;
    margin-top: 0; 
}

.hero-overlay {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(to bottom, rgba(11, 14, 20, 0.3), #0b0e14);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    padding: 20px;
}

.sub-title {
    font-size: 18px;
    letter-spacing: 4px;
    color: #94a3b8;
    margin-bottom: 10px;
    text-transform: uppercase;
}

.main-title {
    font-size: 60px;
    font-weight: 800;
    margin: 0 0 20px 0;
    line-height: 1.1;
}

.main-title .highlight {
    color: transparent;
    background: linear-gradient(45deg, #4f46e5, #f43f5e);
    -webkit-background-clip: text;
    background-clip: text;
}

.hero-desc {
    font-size: 18px;
    color: #cbd5e1;
    margin-bottom: 40px;
}

.btn-explore {
    display: inline-block;
    padding: 15px 40px;
    background: white;
    color: black;
    font-weight: bold;
    text-decoration: none;
    border-radius: 50px;
    transition: 0.3s;
}

.btn-explore:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(255,255,255,0.2);
}

.section-header {
    text-align: center;
    margin-bottom: 50px;
}

.section-header h2 {
    font-size: 30px;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.divider {
    height: 4px;
    width: 60px;
    background: var(--accent);
    margin: 10px auto;
    border-radius: 2px;
}

.game-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
}

.game-card {
    background: var(--card-bg);
    border-radius: 12px;
    overflow: hidden;
    text-decoration: none;
    color: white;
    transition: 0.4s;
    border: 1px solid rgba(255,255,255,0.05);
    display: flex;
    flex-direction: column;
}

.card-image {
    height: 200px;
    position: relative;
    overflow: hidden;
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: 0.5s;
}

.game-card:hover .card-image img {
    transform: scale(1.1);
}

.card-overlay {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: 0.3s;
}

.game-card:hover .card-overlay {
    opacity: 1;
}

.play-btn {
    padding: 10px 20px;
    background: var(--accent);
    border-radius: 20px;
    font-weight: bold;
    font-size: 14px;
}

.card-info {
    padding: 20px;
    text-align: center;
}

.card-info h3 {
    margin: 0;
    font-size: 18px;
    margin-bottom: 5px;
}

.card-info p {
    margin: 0;
    color: #94a3b8;
    font-size: 14px;
}

.game-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.4);
    border-color: var(--primary);
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr); 
    gap: 25px; 
    width: 100%;
    margin-top: 20px;
}

@media (max-width: 768px) {
    .news-grid {
        grid-template-columns: 1fr; 
    }
}

.news-item {
    background: var(--card-bg);
    border-radius: 8px;
    overflow: hidden;
}

.news-item img {
    width: 100%;
    height: 200px;
    object-fit: contain !important; 
    object-position: center;
    background-color: #1e293b;
    border-radius: 8px 8px 0 0;
}
.news-content {
    padding: 15px;
}

.news-content h4 {
    margin: 0 0 10px 0;
    color: white;
}

.news-content p {
    font-size: 13px;
    color: #94a3b8;
    margin: 0;
}

@media (max-width: 768px) {
    .main-title { font-size: 36px; }
    .news-grid { grid-template-columns: 1fr; }
    .portal-hero { height: 400px; }
}

.news-link {
    text-decoration: none; 
    color: inherit;        
    display: block;       
    height: 100%;
}

.news-link:hover h4 {
    color: #4f46e5;       
    transition: 0.3s;
}


.news-item {
    display: flex;
    flex-direction: column;
    height: 100%; 
}

.news-link {
    display: flex;
    flex-direction: column;
    height: 100%;
    text-decoration: none;
    color: inherit;
}

.news-item img {
    width: 100%;          
    height: 200px;        
    object-fit: cover;    
    object-position: center top; 
    border-radius: 8px 8px 0 0; 
}

.news-content {
    flex: 1;             
    padding: 15px;
    background: #1e293b;  
    border-radius: 0 0 8px 8px; 
}