* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #2563eb;
    --secondary-color: #1e40af;
    --accent-color: #3b82f6;
    --text-dark: #1f2937;
    --text-light: #6b7280;
    --bg-light: #f9fafb;
    --white: #ffffff;
    --border-color: #e5e7eb;
    --success-color: #10b981;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
}

body {
    font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--white);
    overflow-x: hidden;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.section-padding {
    padding: 80px 0;
}

header {
    background: var(--white);
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid var(--border-color);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.logo {
    font-size: 26px;
    font-weight: 700;
    color: var(--primary-color);
    letter-spacing: -0.5px;
}

.logo span {
    color: var(--text-dark);
}

nav ul {
    display: flex;
    gap: 35px;
    align-items: center;
}

nav a {
    color: var(--text-dark);
    font-weight: 500;
    font-size: 15px;
    position: relative;
    padding: 5px 0;
}

nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: width 0.3s ease;
}

nav a:hover::after {
    width: 100%;
}

nav a:hover {
    color: var(--primary-color);
}

.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 24px;
    color: var(--text-dark);
    cursor: pointer;
    padding: 5px;
}

.hero-section {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: var(--white);
    padding: 100px 0 80px;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1440 320"><path fill="rgba(255,255,255,0.1)" d="M0,96L48,112C96,128,192,160,288,160C384,160,480,128,576,122.7C672,117,768,139,864,138.7C960,139,1056,117,1152,101.3C1248,85,1344,75,1392,69.3L1440,64L1440,320L1392,320C1344,320,1248,320,1152,320C1056,320,960,320,864,320C768,320,672,320,576,320C480,320,384,320,288,320C192,320,96,320,48,320L0,320Z"></path></svg>') no-repeat bottom;
    background-size: cover;
    opacity: 0.3;
}

.hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.hero-content h1 {
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 20px;
    line-height: 1.2;
}

.hero-content p {
    font-size: 19px;
    margin-bottom: 35px;
    opacity: 0.95;
    line-height: 1.7;
}

.cta-button {
    display: inline-block;
    background: var(--white);
    color: var(--primary-color);
    padding: 14px 40px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 16px;
    box-shadow: var(--shadow-lg);
    transition: var(--transition);
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 25px -5px rgba(0, 0, 0, 0.2);
}

.section-title {
    text-align: center;
    margin-bottom: 50px;
}

.section-title h2 {
    font-size: 36px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 12px;
}

.section-title p {
    font-size: 17px;
    color: var(--text-light);
    max-width: 600px;
    margin: 0 auto;
}

.game-categories {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    justify-content: center;
}

.game-card {
    background: var(--white);
    border-radius: 16px;
    padding: 35px 25px;
    flex: 1;
    min-width: 280px;
    max-width: 350px;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    border: 1px solid var(--border-color);
    text-align: center;
}

.game-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-color);
}

.game-card-icon {
    font-size: 48px;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.game-card h3 {
    font-size: 22px;
    font-weight: 600;
    margin-bottom: 15px;
    color: var(--text-dark);
}

.game-card p {
    color: var(--text-light);
    font-size: 15px;
    line-height: 1.6;
    margin-bottom: 20px;
}

.card-link {
    color: var(--primary-color);
    font-weight: 600;
    font-size: 15px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.card-link:hover {
    gap: 12px;
}

.features-section {
    background: var(--bg-light);
}

.features-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 25px;
}

.feature-item {
    flex: 1;
    min-width: 250px;
    background: var(--white);
    padding: 30px;
    border-radius: 12px;
    box-shadow: var(--shadow-sm);
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

.feature-icon {
    font-size: 32px;
    color: var(--primary-color);
    flex-shrink: 0;
}

.feature-content h3 {
    font-size: 19px;
    font-weight: 600;
    margin-bottom: 10px;
    color: var(--text-dark);
}

.feature-content p {
    color: var(--text-light);
    font-size: 14px;
    line-height: 1.6;
}

.about-section {
    background: var(--white);
}

.about-content {
    max-width: 900px;
    margin: 0 auto;
}

.about-content h2 {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 25px;
    color: var(--text-dark);
}

.about-content p {
    font-size: 16px;
    color: var(--text-light);
    line-height: 1.8;
    margin-bottom: 20px;
}

.about-content h3 {
    font-size: 24px;
    font-weight: 600;
    margin: 35px 0 18px;
    color: var(--text-dark);
}

.image-placeholder {
    background: linear-gradient(135deg, #e0e7ff 0%, #ddd6fe 100%);
    border-radius: 12px;
    height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-light);
    font-size: 18px;
    margin: 30px 0;
    border: 2px dashed var(--border-color);
}

footer {
    background: #1f2937;
    color: #d1d5db;
    padding: 60px 0 30px;
}

.footer-content {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-column {
    flex: 1;
    min-width: 220px;
}

.footer-column h4 {
    color: var(--white);
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 20px;
}

.footer-column p {
    font-size: 14px;
    line-height: 1.7;
    margin-bottom: 15px;
}

.footer-column ul {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-column a {
    color: #d1d5db;
    font-size: 14px;
    transition: var(--transition);
}

.footer-column a:hover {
    color: var(--white);
    padding-left: 5px;
}

.social-links {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.social-links a {
    width: 40px;
    height: 40px;
    background: #374151;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    transition: var(--transition);
}

.social-links a:hover {
    background: var(--primary-color);
    transform: translateY(-3px);
}

.footer-bottom {
    border-top: 1px solid #374151;
    padding-top: 25px;
    text-align: center;
    font-size: 14px;
}

.page-header {
    background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%);
    color: var(--white);
    padding: 60px 0;
    text-align: center;
}

.page-header h1 {
    font-size: 42px;
    font-weight: 700;
    margin-bottom: 15px;
}

.page-header p {
    font-size: 18px;
    opacity: 0.9;
}

.content-section {
    padding: 60px 0;
}

.content-wrapper {
    max-width: 900px;
    margin: 0 auto;
}

.content-wrapper h2 {
    font-size: 28px;
    font-weight: 700;
    margin: 40px 0 20px;
    color: var(--text-dark);
}

.content-wrapper h3 {
    font-size: 22px;
    font-weight: 600;
    margin: 30px 0 15px;
    color: var(--text-dark);
}

.content-wrapper p {
    font-size: 16px;
    line-height: 1.8;
    color: var(--text-light);
    margin-bottom: 18px;
}

.content-wrapper ul {
    margin: 20px 0;
    padding-left: 0;
}

.content-wrapper ul li {
    padding: 10px 0 10px 30px;
    position: relative;
    font-size: 15px;
    color: var(--text-light);
}

.content-wrapper ul li::before {
    content: '\f00c';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    left: 0;
    color: var(--success-color);
}

.contact-section {
    background: var(--bg-light);
}

.contact-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
}

.contact-info {
    flex: 1;
    min-width: 300px;
}

.contact-item {
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
    align-items: flex-start;
}

.contact-icon {
    width: 50px;
    height: 50px;
    background: var(--primary-color);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    flex-shrink: 0;
}

.contact-details h3 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--text-dark);
}

.contact-details p {
    color: var(--text-light);
    font-size: 15px;
    line-height: 1.6;
}

.contact-form {
    flex: 1;
    min-width: 300px;
    background: var(--white);
    padding: 40px;
    border-radius: 12px;
    box-shadow: var(--shadow-md);
}

.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--text-dark);
    font-size: 15px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-size: 15px;
    font-family: inherit;
    transition: var(--transition);
    background: var(--bg-light);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    background: var(--white);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.submit-button {
    background: var(--primary-color);
    color: var(--white);
    padding: 14px 35px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    width: 100%;
}

.submit-button:hover {
    background: var(--secondary-color);
    transform: translateY(-2px);
}

.map-container {
    margin-top: 50px;
    border-radius: 12px;
    overflow: hidden;
    height: 400px;
    background: var(--bg-light);
    border: 2px dashed var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-light);
    font-size: 18px;
}

.faq-section {
    background: var(--white);
}

.faq-item {
    background: var(--bg-light);
    border-radius: 12px;
    padding: 25px;
    margin-bottom: 20px;
    border: 1px solid var(--border-color);
}

.faq-item h3 {
    font-size: 19px;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.faq-item h3 i {
    color: var(--primary-color);
    font-size: 16px;
}

.faq-item p {
    color: var(--text-light);
    font-size: 15px;
    line-height: 1.7;
}

.blog-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
}

.blog-card {
    flex: 1;
    min-width: 300px;
    background: var(--white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    border: 1px solid var(--border-color);
}

.blog-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.blog-image {
    height: 220px;
    background: linear-gradient(135deg, #e0e7ff 0%, #ddd6fe 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-light);
    border-bottom: 1px solid var(--border-color);
}

.blog-content {
    padding: 25px;
}

.blog-meta {
    display: flex;
    gap: 15px;
    font-size: 13px;
    color: var(--text-light);
    margin-bottom: 15px;
}

.blog-content h3 {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 12px;
    color: var(--text-dark);
}

.blog-content p {
    color: var(--text-light);
    font-size: 15px;
    line-height: 1.6;
    margin-bottom: 18px;
}

.read-more {
    color: var(--primary-color);
    font-weight: 600;
    font-size: 14px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.error-page {
    min-height: 70vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 40px 20px;
}

.error-content h1 {
    font-size: 120px;
    font-weight: 700;
    color: var(--primary-color);
    line-height: 1;
    margin-bottom: 20px;
}

.error-content h2 {
    font-size: 32px;
    font-weight: 600;
    margin-bottom: 15px;
    color: var(--text-dark);
}

.error-content p {
    font-size: 18px;
    color: var(--text-light);
    margin-bottom: 30px;
}

@media (max-width: 768px) {
    nav {
        position: fixed;
        top: 70px;
        left: -100%;
        width: 100%;
        background: var(--white);
        box-shadow: var(--shadow-lg);
        transition: left 0.3s ease;
        padding: 20px 0;
        border-top: 1px solid var(--border-color);
    }

    nav.active {
        left: 0;
    }

    nav ul {
        flex-direction: column;
        gap: 0;
    }

    nav ul li {
        width: 100%;
        text-align: center;
        border-bottom: 1px solid var(--border-color);
    }

    nav a {
        display: block;
        padding: 15px 20px;
    }

    .mobile-menu-toggle {
        display: block;
    }

    .hero-content h1 {
        font-size: 32px;
    }

    .hero-content p {
        font-size: 16px;
    }

    .section-title h2 {
        font-size: 28px;
    }

    .game-card {
        min-width: 100%;
    }

    .footer-content {
        flex-direction: column;
        gap: 30px;
    }

    .page-header h1 {
        font-size: 32px;
    }

    .error-content h1 {
        font-size: 80px;
    }
}

@media (max-width: 480px) {
    .hero-content h1 {
        font-size: 26px;
    }

    .section-padding {
        padding: 50px 0;
    }

    .contact-form {
        padding: 25px;
    }
}

.breadcrumb {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: 15px;
    font-size: 14px;
}

.breadcrumb a {
    color: var(--white);
    text-decoration: none;
    transition: var(--transition);
}

.breadcrumb a:hover {
    opacity: 0.8;
}

.breadcrumb i {
    font-size: 11px;
}

.breadcrumb span {
    font-weight: 600;
}

.article-detail {
    background: var(--bg-light);
}

.article-content {
    max-width: 850px;
    margin: 0 auto;
    background: var(--white);
    padding: 40px;
    border-radius: 12px;
    box-shadow: var(--shadow-md);
}

.article-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 2px solid var(--border-color);
    font-size: 14px;
    color: var(--text-light);
}

.article-meta span {
    display: flex;
    align-items: center;
    gap: 7px;
}

.article-meta i {
    color: var(--primary-color);
}

.article-body {
    line-height: 1.8;
    color: var(--text-dark);
}

.article-body .lead {
    font-size: 19px;
    font-weight: 500;
    line-height: 1.6;
    margin-bottom: 30px;
    padding: 20px;
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.08), rgba(59, 130, 246, 0.08));
    border-left: 4px solid var(--primary-color);
    border-radius: 6px;
}

.article-body h2 {
    font-size: 30px;
    font-weight: 700;
    color: var(--text-dark);
    margin-top: 45px;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 3px solid var(--primary-color);
}

.article-body h3 {
    font-size: 24px;
    font-weight: 600;
    color: var(--text-dark);
    margin-top: 35px;
    margin-bottom: 18px;
}

.article-body h4 {
    font-size: 20px;
    font-weight: 600;
    color: var(--text-dark);
    margin-top: 28px;
    margin-bottom: 14px;
}

.article-body p {
    margin-bottom: 18px;
    font-size: 16px;
    line-height: 1.8;
}

.article-body ul,
.article-body ol {
    margin: 20px 0;
    padding-left: 25px;
}

.article-body ul li,
.article-body ol li {
    margin-bottom: 10px;
    font-size: 16px;
    line-height: 1.7;
}

.article-body ul li {
    list-style-type: none;
    position: relative;
    padding-left: 22px;
}

.article-body ul li::before {
    content: "●";
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-weight: 700;
}

.article-body strong {
    font-weight: 600;
    color: var(--text-dark);
}

.article-body .image-placeholder {
    background: linear-gradient(135deg, var(--bg-light), #e3f2fd);
    border: 2px dashed var(--border-color);
    border-radius: 10px;
    padding: 70px 25px;
    text-align: center;
    margin: 35px 0;
    color: var(--text-light);
    font-size: 15px;
    font-weight: 500;
}

.article-body .image-placeholder i {
    font-size: 45px;
    color: var(--primary-color);
    margin-bottom: 12px;
    display: block;
}

.article-tags {
    margin-top: 45px;
    padding-top: 25px;
    border-top: 2px solid var(--border-color);
}

.article-tags strong {
    display: block;
    margin-bottom: 12px;
    font-size: 15px;
    color: var(--text-dark);
}

.article-tags a {
    display: inline-block;
    padding: 7px 16px;
    margin: 4px 6px 4px 0;
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.1), rgba(59, 130, 246, 0.1));
    color: var(--primary-color);
    text-decoration: none;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    transition: var(--transition);
}

.article-tags a:hover {
    background: var(--primary-color);
    color: var(--white);
    transform: translateY(-2px);
}

.article-navigation {
    margin-top: 45px;
    padding-top: 25px;
    border-top: 2px solid var(--border-color);
    text-align: center;
}

.btn-back {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 28px;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    color: var(--white);
    text-decoration: none;
    border-radius: 25px;
    font-weight: 600;
    font-size: 15px;
    transition: var(--transition);
    box-shadow: var(--shadow-sm);
}

.btn-back:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

@media (max-width: 768px) {
    .article-content {
        padding: 25px 18px;
        border-radius: 0;
    }

    .article-meta {
        gap: 12px;
        font-size: 13px;
    }

    .article-body .lead {
        font-size: 17px;
        padding: 18px;
    }

    .article-body h2 {
        font-size: 24px;
        margin-top: 32px;
    }

    .article-body h3 {
        font-size: 20px;
        margin-top: 28px;
    }

    .article-body h4 {
        font-size: 18px;
    }

    .article-body p,
    .article-body ul li,
    .article-body ol li {
        font-size: 15px;
    }

    .article-body .image-placeholder {
        padding: 50px 18px;
    }

    .article-body .image-placeholder i {
        font-size: 38px;
    }
}

