:root {
            --bg-body: #f1f4f8;
            --bg-nav: #ffffff;
            --text-main: #1e293b;
            --accent-blue: #2563eb;
            --border-color: #e2e8f0;
            --card-bg: #ffffff;
            --transition-speed: 0.3s;
            --text-color: #2563eb;
            --text-date: #bb0a0a;
            --sidebar-width: 280px;
        }

        [data-theme="dark"] {
            --bg-body: #14181f;
            --bg-nav: #181d25;
            --text-main: #ffffff;
            --accent-blue: #60a5fa;
            --border-color: #334155;
            --card-bg: #1e293b;
            --text-color: #ffffff;
            --text-date: #f5f5f5;
        }


        /* Hamburger Menu (ซ่อนในคอม) */
        .menu-btn {
            display: none;
            font-size: 1.5rem;
            cursor: pointer;
            color: #334155;
            background: none;
            border: none;
            padding: 5px;
        }
        .line{
            color: var(--text-main);
        }
        .sidebar-overlay {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: rgba(0,0,0,0.5);
            visibility: hidden;
            opacity: 0;
            transition: 0.4s ease;
            z-index: 2001;
        }

        .sidebar {
            position: fixed;
            top: 0;
            right: calc(-2 * var(--sidebar-width));
            width: var(--sidebar-width);
            height: 100%;
            background: var(--bg-body);
            box-shadow: -5px 0 15px rgba(0,0,0,0.1);
            transition: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
            z-index: 2002;
            padding: 20px;
            display: flex;
            flex-direction: column;
        }

        /* เมื่อ Sidebar เปิด */
        .sidebar.active {
            right: 0;
        }

        .sidebar-overlay.active {
            visibility: visible;
            opacity: 1;
            z-index: 2002;
        }

        .sidebar-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 30px;
            padding-bottom: 15px;
            border-bottom: 1px solid #f1f5f9;
        }

        .close-btn {
            font-size: 1.5rem;
            background: none;
            border: none;
            cursor: pointer;
            color: #64748b;
        }

        .sidebar-links {
            list-style: none;
            padding: 0;
            margin: 0;
        }

        .sidebar-links li {
            margin-bottom: 10px;
        }

        .sidebar-links a {
            display: block;
            padding: 12px 15px;
            text-decoration: none;
            color: var(--text-main);
            font-weight: 600;
            border-radius: 8px;
            transition: 0.3s;
        }

        .sidebar-links a:hover {
            background: var(--bg-nav);
            color: var(--primary-color);
            padding-left: 20px;
        }
        .flex .lang{
            margin: 5px;
            padding: 5px 5px;
            border-radius: 5px;
        }
        .flex .lang:hover{
            background-color: var(--accent-blue);
            color: #ffffff;
            cursor: pointer;
        }
        
        /* --- Responsive Logic --- */
        @media (max-width: 974px) {
            .nav-links a {
                display: none;
            }
            .menu-btn {
                display: block;
            }
            .nav-right{
                display: none;
            }
            .mobile-hidden{ display: none;}
            
            .display #newsDropdownParent button{
                display: none;
            }
            
        }
           