/* ===== การตั้งค่าพื้นฐานและตัวแปรสี ===== */
        :root {
            --bg-dark: #201937;
            --bg-light: #362b59;
            --primary-pink: #e83e8c;
            --text-light: #ffffff;
            --text-muted: #a9a3c2;
            --border-color: #4a3d75;
            --success-green: #4caf50;
            --tag-yellow: #f5c518;
            --link-color: #ff8f5a;
        }

        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }

        html {
            scroll-behavior: smooth;
        }

        body {
            font-family: 'Sarabun', 'Poppins', sans-serif;
            background-color: var(--bg-dark);
            color: var(--text-light);
            line-height: 1.7;
        }

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

        /* ===== ส่วนหัวเว็บ (Header) ===== */
        .main-header {
            background-color: rgba(32, 25, 55, 0.8);
            backdrop-filter: blur(10px);
            padding: 15px 0;
            border-bottom: 1px solid var(--border-color);
            position: sticky;
            top: 0;
            z-index: 100;
        }

        .main-header .container {
            display: flex;
            justify-content: space-between;
            align-items: center;
        }

        .logo {
            font-size: 1.5rem;
            font-weight: 700;
            color: var(--text-light);
            text-decoration: none;
            font-family: 'Poppins', sans-serif;
        }

        .main-nav ul {
            list-style: none;
            display: flex;
            gap: 30px;
        }

        .main-nav a {
            color: var(--text-muted);
            text-decoration: none;
            font-weight: 600;
            transition: color 0.3s ease;
        }

        .main-nav a:hover {
            color: var(--text-light);
        }

        .user-actions {
            display: flex;
            gap: 15px;
        }

        /* ===== ปุ่ม (Buttons) ===== */
        .btn {
            padding: 10px 20px;
            border-radius: 25px;
            text-decoration: none;
            font-weight: 600;
            transition: all 0.3s ease;
            border: none;
            cursor: pointer;
            font-family: 'Poppins', sans-serif;
        }

        .btn-primary {
            background-color: var(--primary-pink);
            color: var(--text-light);
        }

        .btn-primary:hover {
            box-shadow: 0 0 15px var(--primary-pink);
            transform: translateY(-2px);
        }

        .btn-secondary {
            background-color: transparent;
            color: var(--text-light);
            border: 2px solid var(--border-color);
        }

        .btn-secondary:hover {
            background-color: var(--border-color);
        }

        .btn-cta {
            background: linear-gradient(90deg, #ff4b8f, #ff8f5a);
            color: white;
            padding: 15px 35px;
            font-size: 1.1rem;
            border-radius: 30px;
            box-shadow: 0 5px 20px rgba(232, 62, 140, 0.4);
        }
        .btn-cta:hover {
            transform: translateY(-3px);
            box-shadow: 0 8px 25px rgba(232, 62, 140, 0.6);
        }

        /* ===== Hero Section ===== */
        .hero {
            position: relative;
            padding: 80px 20px;
            text-align: center;
            color: var(--text-light);
            background-image: url('https://images.unsplash.com/photo-1607513746981-133b2d3b76a3?w=1200&h=600&fit=crop&q=80');
            background-size: cover;
            background-position: center;
            border-bottom: 2px solid var(--primary-pink);
        }

        .hero::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background-color: rgba(32, 25, 55, 0.7);
            z-index: 1;
        }

        .hero-content {
            position: relative;
            z-index: 2;
            max-width: 800px;
            margin: 0 auto;
        }

        .hero h1 {
            font-family: 'Poppins', sans-serif;
            font-size: 3rem;
            margin-bottom: 15px;
            text-shadow: 2px 2px 8px rgba(0,0,0,0.5);
        }

        .hero p {
            font-size: 1.2rem;
            color: var(--text-muted);
            margin-bottom: 30px;
        }

        /* ===== สไตล์สำหรับบทความ (Article Content) ===== */
        .article-content {
            background-color: var(--bg-light);
            padding: 30px 40px;
            border-radius: 15px;
            margin: 30px 0;
            border: 1px solid var(--border-color);
        }

        .article-header h1 {
            font-family: 'Poppins', sans-serif;
            font-size: 2.5rem;
            color: var(--text-light);
            margin-bottom: 15px;
            line-height: 1.3;
        }

        .article-header .subtitle {
            font-size: 1.1rem;
            color: var(--text-muted);
            margin-bottom: 25px;
        }

        .article-content section {
            margin-bottom: 40px;
        }

        .article-content h2 {
            font-family: 'Poppins', sans-serif;
            font-size: 1.8rem;
            color: var(--primary-pink);
            margin-bottom: 15px;
            padding-bottom: 10px;
            border-bottom: 2px solid var(--border-color);
        }

        .article-content h3 {
            font-family: 'Poppins', sans-serif;
            font-size: 1.4rem;
            color: var(--text-light);
            margin-top: 20px;
            margin-bottom: 10px;
        }

        .article-content p {
            font-size: 1rem;
            color: var(--text-muted);
            margin-bottom: 15px;
        }

        .article-content ul, .article-content ol {
            margin-left: 25px;
            margin-bottom: 15px;
            color: var(--text-muted);
        }

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

        .article-content a {
            color: var(--link-color);
            text-decoration: none;
            transition: color 0.3s ease;
        }

        .article-content a:hover {
            color: var(--primary-pink);
            text-decoration: underline;
        }

        .article-content strong {
            color: var(--text-light);
            font-weight: 500;
        }

        /* ===== สารบัญ (Table of Contents) ===== */
        .table-of-contents {
            background-color: var(--bg-dark);
            border: 1px solid var(--border-color);
            padding: 20px;
            border-radius: 10px;
            margin-bottom: 40px;
        }
        .table-of-contents h2 {
            border-bottom: none;
            padding-bottom: 0;
            margin-bottom: 15px;
        }
        .table-of-contents ul {
            list-style: none;
            margin-left: 0;
        }
        .table-of-contents li a {
            display: block;
            padding: 8px 0;
            border-bottom: 1px solid var(--border-color);
            font-weight: 500;
        }
        .table-of-contents li:last-child a {
            border-bottom: none;
        }

        /* ===== Game Type Cards ===== */
        .game-type-cards {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
            gap: 20px;
            margin-top: 20px;
        }

        .card {
            background-color: var(--bg-dark);
            padding: 25px;
            border-radius: 10px;
            border: 1px solid var(--border-color);
            text-align: center;
            transition: transform 0.3s ease, box-shadow 0.3s ease;
        }

        .card:hover {
            transform: translateY(-5px);
            box-shadow: 0 8px 20px rgba(232, 62, 140, 0.15);
        }

        .card-icon {
            width: 48px;
            height: 48px;
            margin-bottom: 15px;
            color: var(--primary-pink);
        }

        .card h3 {
            margin-bottom: 10px;
            color: var(--text-light);
        }

        .card p {
            font-size: 0.9rem;
            color: var(--text-muted);
        }

        /* ===== แบนเนอร์ CTA (Call to Action Banner) ===== */
        .cta-banner {
            background: linear-gradient(90deg, rgba(232, 62, 140, 0.1), rgba(255, 143, 90, 0.1));
            border: 1px solid var(--primary-pink);
            border-radius: 10px;
            padding: 30px;
            text-align: center;
            margin: 40px 0;
        }
        .cta-banner h3 {
            font-size: 1.6rem;
            margin-bottom: 10px;
        }
        .cta-banner p {
            margin-bottom: 20px;
            color: var(--text-muted);
        }

        /* ===== Author Box ===== */
        .author-box {
            display: flex;
            align-items: center;
            gap: 20px;
            background-color: var(--bg-dark);
            padding: 20px;
            border-radius: 10px;
            margin-top: 40px;
            border: 1px solid var(--border-color);
        }

        .author-avatar {
            width: 80px;
            height: 80px;
            border-radius: 50%;
            object-fit: cover;
        }

        .author-info h4 {
            margin-bottom: 5px;
            color: var(--text-light);
        }

        .author-info p {
            font-size: 0.9rem;
            color: var(--text-muted);
            margin-bottom: 0;
        }

        /* ===== ส่วนท้ายเว็บ (Footer) ===== */
        footer {
            text-align: center;
            padding: 40px 20px;
            margin-top: 30px;
            background-color: var(--bg-light);
            border-top: 1px solid var(--border-color);
        }

        footer p {
            margin-bottom: 10px;
            color: var(--text-muted);
        }

        .social-links {
            margin: 15px 0;
        }

        .social-links a {
            color: var(--primary-pink);
            text-decoration: none;
            font-weight: 600;
            margin: 0 10px;
        }

        footer .copyright {
            margin-top: 20px;
            font-size: 0.9rem;
            color: #6c757d;
        }
        
        .mobile-toggle {
            display: none;
            cursor: pointer;
            font-size: 1.5rem;
        }

        /* ===== Responsive Design ===== */
        @media (max-width: 992px) {
            .main-nav, .user-actions {
                display: none;
            }
            .mobile-toggle {
                display: block;
            }
            .hero h1 {
                font-size: 2.5rem;
            }
            .article-header h1 {
                font-size: 2rem;
            }
            .article-content {
                padding: 20px;
            }
        }
        
        @media (max-width: 768px) {
            .hero h1 {
                font-size: 2rem;
            }
            .article-header h1 {
                font-size: 1.8rem;
            }
            .author-box {
                flex-direction: column;
                text-align: center;
            }
        }