
        :root {
            /* Light Theme Variables */
            --bg-body: #fdfdfd;
            --bg-surface: #ffffff;
            --text-main: #111111;
            --text-muted: #6b6b6b;
            --border-color: #f0f0f0;
            --hover-bg: #f9f9f9;
            --brand-color: #000000;
        }

        /* Dark Theme Variables (applied when body has .dark-theme class) */
        body.dark-theme {
            --bg-body: #121212;
            --bg-surface: #1e1e1e;
            --text-main: #e0e0e0;
            --text-muted: #a0a0a0;
            --border-color: #333333;
            --hover-bg: #2a2a2a;
            --brand-color: #ffffff;
        }

        body {
            font-family: 'Inter', sans-serif;
            margin: 0;
            padding: 0;
            background-color: var(--bg-body);
            color: var(--text-main);
            overflow-x: hidden;
            transition: background-color 0.3s, color 0.3s;
        }

        /* ================= HEADER & TOP NAVBAR ================= */
        .top-navbar {
            background-color: var(--bg-surface);
            border-bottom: 1px solid var(--border-color);
            position: sticky;
            top: 0;
            z-index: 1040;
            padding: 10px 0;
            height: 64px;
            transition: background-color 0.3s, border-color 0.3s;
        }

        .navbar-left {
            display: flex;
            align-items: center;
            gap: 16px;
            width: 240px; 
            padding-left: 24px;
        }
        
        .mobile-menu-toggle {
            background: none;
            border: none;
            padding: 4px;
            color: var(--text-main);
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            border-radius: 4px;
            font-size: 1.25rem;
        }
        
        .mobile-menu-toggle:hover {
            background-color: var(--hover-bg);
        }

        .brand-logo {
            display: flex;
            align-items: center;
            color: var(--brand-color);
            text-decoration: none;
            font-weight: 700;
            font-size: 1.2rem;
            gap: 8px;
        }
        
        .brand-logo img {
            height: 28px;
            width: auto;
            object-fit: contain;
        }

        .navbar-center {
            flex: 1;
            display: flex;
            justify-content: flex-start;
            padding-left: 20px;
        }

        .search-wrapper {
            position: relative;
            width: 100%;
            max-width: 480px;
        }

        .search-input {
            background-color: var(--hover-bg);
            border: 1px solid transparent;
            border-radius: 20px;
            padding: 10px 16px 10px 40px;
            width: 100%;
            font-size: 0.95rem;
            color: var(--text-main);
            transition: all 0.2s ease;
        }
        
        .search-input:focus {
            outline: none;
            background-color: var(--bg-surface);
            border-color: var(--border-color);
            box-shadow: 0 0 0 3px rgba(0,0,0,0.03);
        }
        
        .search-icon {
            position: absolute;
            left: 14px;
            top: 50%;
            transform: translateY(-50%);
            color: var(--text-muted);
            font-size: 1rem;
            pointer-events: none;
        }

        .navbar-right {
            display: flex;
            align-items: center;
            gap: 16px;
            padding-right: 24px;
        }
        
        /* Language Selector styling matching previous file */
        .language-nav-item {
            display: flex;
            align-items: center;
            gap: 6px;
        }
        .custom-lang-select {
            background: transparent;
            border: none;
            color: var(--text-main);
            font-size: 0.9rem;
            outline: none;
            cursor: pointer;
        }

        .btn-write {
            display: flex;
            align-items: center;
            gap: 6px;
            padding: 8px 16px;
            border: 1px solid var(--border-color);
            border-radius: 20px;
            background: transparent;
            color: var(--text-main);
            font-weight: 500;
            font-size: 0.9rem;
            text-decoration: none;
            transition: background-color 0.2s;
        }
        
        .btn-write:hover {
            background-color: var(--hover-bg);
            color: var(--text-main);
        }

        .profile-btn {
            width: 36px;
            height: 36px;
            border-radius: 50%;
            background-color: var(--hover-bg);
            border: none;
            display: flex;
            align-items: center;
            justify-content: center;
            cursor: pointer;
            color: var(--text-muted);
            transition: background-color 0.2s;
        }

        /* ================= LEFT SIDEBAR ================= */
        .sidebar-overlay {
            position: fixed;
            top: 0;
            left: 0;
            width: 100vw;
            height: 100vh;
            background-color: rgba(0, 0, 0, 0.4);
            z-index: 1045;
            opacity: 0;
            visibility: hidden;
            transition: opacity 0.3s ease, visibility 0.3s;
        }

        .sidebar-overlay.active {
            opacity: 1;
            visibility: visible;
        }

        .sidebar-nav {
            position: fixed;
            top: 64px;
            left: -260px;
            width: 240px;
            height: calc(100vh - 64px);
            background-color: var(--bg-surface);
            z-index: 1050;
            transition: transform 0.3s ease;
            border-right: 1px solid var(--border-color);
            overflow-y: auto;
            display: flex;
            flex-direction: column;
            padding: 24px 0;
        }

        @media (min-width: 992px) {
            .sidebar-nav {
                left: 0;
                transform: translateX(0);
            }
            .sidebar-overlay {
                display: none !important;
            }
        }

        @media (max-width: 991.98px) {
            .sidebar-nav.active {
                transform: translateX(260px);
                box-shadow: 2px 0 12px rgba(0,0,0,0.05);
            }
        }

        .nav-item {
            display: flex;
            align-items: center;
            padding: 12px 24px;
            color: var(--text-main);
            text-decoration: none;
            font-size: 0.95rem;
            font-weight: 400;
            gap: 16px;
            transition: all 0.2s;
        }

        .nav-item:hover, .nav-item.active {
            background-color: var(--hover-bg);
            font-weight: 500;
        }

        .nav-item i {
            font-size: 1.1rem;
            width: 20px;
            text-align: center;
        }

        .nav-divider {
            height: 1px;
            background-color: var(--border-color);
            margin: 16px 24px;
        }

        /* ================= MAIN LAYOUT ================= */
        .main-container {
            display: flex;
            max-width: 1400px;
            margin: 0 auto;
            min-height: calc(100vh - 64px);
            padding-left: 240px; /* Space for fixed left sidebar */
        }

        @media (max-width: 991.98px) {
            .main-container {
                padding-left: 0;
            }
            .navbar-center {
                display: none;
            }
            .btn-write span {
                display: none;
            }
            .btn-write {
                padding: 8px;
                border-radius: 50%;
                width: 36px;
                height: 36px;
                justify-content: center;
            }
            .navbar-left {
                width: auto;
                padding-left: 16px;
            }
        }

        /* ================= MAIN CONTENT (index.php) ================= */
        .index-content-area {
            flex: 1;
            padding: 32px 40px;
            max-width: 850px;
        }

        .page-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding-bottom: 16px;
            margin-bottom: 24px;
            border-bottom: 1px solid var(--border-color);
        }

        .page-title {
            font-size: 1.25rem;
            font-weight: 600;
            margin: 0;
            position: relative;
        }

        .page-title::after {
            content: '';
            position: absolute;
            bottom: -17px;
            left: 0;
            width: 30px;
            height: 3px;
            background-color: var(--text-main);
            border-radius: 3px;
        }

        .btn-filter {
            background: transparent;
            border: none;
            color: var(--text-muted);
            font-size: 0.9rem;
            display: flex;
            align-items: center;
            gap: 6px;
        }

        /* Post Cards - Desktop View */
        .post-card {
            display: flex;
            gap: 24px;
            padding: 28px 0;
            border-bottom: 1px solid var(--border-color);
        }

        .post-card-content {
            flex-grow: 1;
            display: flex;
            flex-direction: column;
        }

        .post-meta {
            display: flex;
            align-items: center;
            gap: 8px;
            font-size: 0.85rem;
            color: var(--text-muted);
            margin-bottom: 12px;
        }

        .post-author-img {
            width: 24px;
            height: 24px;
            border-radius: 50%;
            object-fit: cover;
        }

        .post-title {
            font-size: 1.35rem;
            font-weight: 700;
            line-height: 1.3;
            color: var(--text-main);
            text-decoration: none;
            margin-bottom: 10px;
            display: block;
        }

        .post-title:hover {
            text-decoration: underline;
        }

        .post-excerpt {
            color: var(--text-muted);
            font-size: 0.95rem;
            line-height: 1.5;
            margin-bottom: 16px;
            display: -webkit-box;
            -webkit-line-clamp: 2;
            -webkit-box-orient: vertical;
            overflow: hidden;
        }

        .post-actions {
            display: flex;
            align-items: center;
            gap: 16px;
            font-size: 0.85rem;
            color: var(--text-muted);
            margin-top: auto;
        }

        .post-actions span {
            display: flex;
            align-items: center;
            gap: 6px;
            cursor: pointer;
        }

        .post-actions .action-right {
            margin-left: auto;
            display: flex;
            gap: 16px;
        }

        .post-image-wrapper {
            flex-shrink: 0;
            width: 280px;
            position: relative;
            border-radius: 12px;
            overflow: hidden;
            background-color: var(--border-color);
        }

        .post-image-wrapper::before {
            content: "";
            display: block;
            padding-top: 60%; 
        }

        .post-image {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            object-fit: cover;
            transition: transform 0.3s ease;
        }

        .post-card:hover .post-image {
            transform: scale(1.03);
        }

        .category-badge {
            position: absolute;
            top: 10px;
            right: 10px;
            background-color: rgba(17, 17, 17, 0.7);
            color: white;
            font-size: 0.75rem;
            font-weight: 500;
            padding: 4px 10px;
            border-radius: 6px;
            backdrop-filter: blur(4px);
        }

        /* ================= RIGHT SIDEBAR ================= */
        .right-sidebar {
            width: 300px;
            border-left: 1px solid var(--border-color);
            padding: 32px 24px;
            background-color: var(--bg-surface);
            display: none;
        }

        @media (min-width: 1200px) {
            .right-sidebar {
                display: block;
            }
        }

        .sidebar-heading {
            font-size: 0.8rem;
            text-transform: uppercase;
            font-weight: 700;
            letter-spacing: 1px;
            color: var(--text-main);
            margin-bottom: 24px;
            display: flex;
            align-items: center;
            gap: 8px;
        }

        .editor-choice-list {
            list-style: none;
            padding: 0;
            margin: 0;
        }

        .editor-choice-item {
            display: flex;
            gap: 16px;
            margin-bottom: 24px;
            align-items: flex-start;
        }

        .choice-number {
            font-size: 2rem;
            font-weight: 700;
            color: var(--border-color);
            line-height: 1;
        }

        .choice-image {
            width: 60px;
            height: 60px;
            border-radius: 8px;
            object-fit: cover;
            flex-shrink: 0;
        }

        .choice-content {
            flex-grow: 1;
        }

        .choice-title {
            font-size: 0.95rem;
            font-weight: 600;
            line-height: 1.4;
            color: var(--text-main);
            text-decoration: none;
            display: block;
            margin-bottom: 6px;
        }

        .choice-title:hover {
            text-decoration: underline;
        }

        /* ================= FOOTER ================= */
        .site-footer {
            background-color: var(--bg-surface);
            border-top: 1px solid var(--border-color);
            padding: 40px 0 20px;
            margin-top: auto;
            text-align: center;
        }

        .footer-socials {
            display: flex;
            justify-content: center;
            gap: 16px;
            margin-bottom: 20px;
        }

        .footer-socials a {
            color: var(--text-muted);
            font-size: 1.5rem;
            transition: color 0.2s;
        }

        .footer-socials a:hover {
            color: var(--text-main);
        }

        .footer-text {
            color: var(--text-muted);
            font-size: 0.9rem;
            margin-bottom: 5px;
        }
        
        .footer-link {
            color: var(--text-main);
            text-decoration: none;
            font-weight: 600;
        }

        /* ================= SINGLE POST PAGE ================= */
        .article-title {
            font-size: 2.5rem;
            font-weight: 800;
            line-height: 1.25;
            color: var(--text-main);
        }
        
        .article-subtitle {
            font-size: 1.25rem;
            color: var(--text-muted);
            line-height: 1.5;
            margin-bottom: 24px;
        }

        .article-meta-area {
            display: flex;
            align-items: center;
            justify-content: space-between;
            padding-bottom: 20px;
            margin-bottom: 30px;
            border-bottom: 1px solid var(--border-color);
        }

        .author-avatar-lg {
            width: 48px;
            height: 48px;
            border-radius: 50%;
            object-fit: cover;
        }

        .featured-image-container {
            border-radius: 16px;
            overflow: hidden;
            margin-bottom: 40px;
            background-color: var(--border-color);
        }

        .featured-image-container img {
            width: 100%;
            height: auto;
            display: block;
        }

        .article-content {
            font-size: 1.1rem;
            line-height: 1.8;
            color: var(--text-main);
        }

        .article-content h2, .article-content h3 {
            margin-top: 2rem;
            margin-bottom: 1rem;
            font-weight: 700;
            color: var(--text-main);
        }

        .article-content p {
            margin-bottom: 1.5rem;
        }

        .article-content blockquote {
            border-left: 4px solid var(--text-main);
            padding-left: 1.5rem;
            margin: 2rem 0;
            font-size: 1.25rem;
            font-style: italic;
            color: var(--text-muted);
        }

        .tag-pill {
            display: inline-block;
            padding: 6px 16px;
            background-color: transparent;
            border: 1px solid var(--border-color);
            border-radius: 20px;
            color: var(--text-main);
            text-decoration: none;
            font-size: 0.85rem;
            font-weight: 500;
            transition: all 0.2s;
        }

        .tag-pill:hover {
            background-color: var(--hover-bg);
            color: var(--text-main);
        }

        .author-box {
            background-color: var(--hover-bg);
            border: 1px solid var(--border-color);
            border-radius: 12px;
            padding: 30px;
            margin-top: 50px;
            display: flex;
            gap: 24px;
            align-items: center;
        }
        
        @media (max-width: 768px) {
            .article-title {
                font-size: 1.8rem;
            }
            .article-meta-area {
                flex-direction: column;
                align-items: flex-start;
                gap: 16px;
            }
            .author-box {
                flex-direction: column;
                text-align: center;
            }
        }
        
        /* ================= MOBILE LAYOUT FIX FOR POST CARDS & SIDEBAR ================= */
        @media (max-width: 991px) {
            /* 1. Fix the main layout so the sidebar doesn't squeeze the feed */
            .index-content-area {
                width: 100% !important;
                flex: 0 0 100% !important;
                max-width: 100% !important;
                padding: 20px !important;
            }
            
            /* Hide the right sidebar on mobile to keep the feed clean */
            .sidebar-widget, .right-sidebar {
                display: none !important; 
            }

            /* 2. Flips the post layout so the image is on top */
            .post-card {
                display: flex !important;
                flex-direction: column-reverse !important;
                gap: 15px;
                margin-bottom: 30px;
                padding-bottom: 25px;
                border-bottom: 1px solid var(--border-color);
                background: transparent !important;
                border-radius: 0 !important;
                box-shadow: none !important;
                width: 100% !important;
            }
            
            /* 3. Forces the image to take up the full width of the screen */
            .post-image-wrapper {
                width: 100% !important;
                max-width: 100% !important;
                margin: 0 !important;
                padding: 0 !important;
            }
            
            .post-image-wrapper::before {
                display: none; /* Disables the desktop aspect ratio trick */
            }
            
            .post-image-wrapper img.post-image {
                position: relative !important;
                width: 100% !important;
                height: auto !important;
                aspect-ratio: 16/9;
                border-radius: 12px;
                object-fit: cover;
            }
            
            /* 4. Adjusts the text container */
            .post-card-content {
                width: 100% !important;
                padding: 0 !important;
                display: flex;
                flex-direction: column;
            }
            
            /* Big, bold title just like the screenshot */
            .post-title {
                font-size: 1.35rem !important;
                font-weight: 700 !important;
                line-height: 1.3 !important;
                margin: 12px 0 8px 0 !important;
            }
            
            /* Excerpt styling */
            .post-excerpt {
                font-size: 0.95rem;
                line-height: 1.5;
                margin-bottom: 16px;
            }
            
            .post-meta {
                margin-bottom: 0 !important;
            }
        }
        
        
        
        
      
    /* Custom styling for category tabs - Fully Mobile Responsive */
    .category-tabs {
        display: flex;
        flex-wrap: nowrap; /* Forces horizontal scrolling on mobile */
        overflow-x: auto;
        -webkit-overflow-scrolling: touch; /* Smooth scrolling on iOS */
        border-bottom: 2px solid var(--border-color);
        margin-bottom: 30px;
        padding-bottom: 12px;
        gap: 12px; /* Consistent spacing between tabs */
        scrollbar-width: none; /* Hide scrollbar for Firefox */
    }
    
    .category-tabs::-webkit-scrollbar {
        display: none; /* Hide scrollbar for Chrome/Safari */
    }

    .category-tabs .nav-item {
        flex: 0 0 auto; /* Prevents tabs from shrinking/squishing on small screens */
    }

    .category-tabs .nav-link {
        display: inline-block;
        color: var(--text-muted);
        font-weight: 600;
        border: none;
        padding: 8px 20px;
        border-radius: 30px;
        transition: all 0.2s ease;
        text-decoration: none;
        white-space: nowrap;
        background-color: transparent;
        font-size: 0.95rem;
    }

    .category-tabs .nav-link:hover {
        color: var(--text-main);
        background-color: var(--hover-bg);
    }

    .category-tabs .nav-link.active {
        background-color: var(--text-main);
        color: var(--bg-surface);
        box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    }
    
    .category-badge-count {
        background: rgba(255,255,255,0.2);
        padding: 2px 6px;
        border-radius: 10px;
        font-size: 11px;
        margin-left: 6px;
    }
    
    .nav-link:not(.active) .category-badge-count {
        background: var(--border-color);
        color: var(--text-muted);
    }
    
    
    
    
    
    
    
    
    
    
    
 


    .language-nav-item {
        display: flex;
        align-items: center;
        padding: 12px 24px;
        color: var(--text-main);
        text-decoration: none;
        font-size: 0.95rem;
        font-weight: 400;
        gap: 16px;
        transition: all 0.2s;
        cursor: pointer;
    }
    .language-nav-item:hover {
        background-color: var(--hover-bg);
        font-weight: 500;
    }
    .language-nav-item i {
        font-size: 1.1rem;
        width: 20px;
        text-align: center;
        color: var(--text-main);
    }
    .custom-lang-select {
        background-color: transparent !important;
        color: var(--text-main) !important;
        border: none !important;
        padding: 0 !important;
        font-size: 0.95rem !important;
        font-family: 'Inter', sans-serif !important;
        font-weight: 400 !important;
        outline: none !important;
        cursor: pointer;
        width: 100%;
        appearance: none;
        -webkit-appearance: none;
        -moz-appearance: none;
        background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
        background-repeat: no-repeat;
        background-position: right center;
        background-size: 14px;
        padding-right: 20px !important;
    }
    .custom-lang-select option {
        background-color: var(--bg-surface) !important;
        color: var(--text-main) !important;
        padding: 10px;
    }
    
    /* TOTAL OBLITERATION OF GOOGLE TRANSLATE BANNER, IFRAME & PUSH */
    .goog-te-banner-frame, 
    .goog-te-balloon-frame, 
    iframe.goog-te-banner-frame,
    iframe.goog-te-menu-frame,
    #goog-gt-tt, 
    .goog-te-gadget span,
    body > .skiptranslate,
    .skiptranslate iframe {
        display: none !important;
        visibility: hidden !important;
        opacity: 0 !important;
        height: 0 !important;
        width: 0 !important;
        pointer-events: none !important;
        position: absolute !important;
        top: -9999px !important;
        left: -9999px !important;
    }
    
    html, body {
        top: 0px !important;
        position: static !important;
        margin-top: 0px !important;
        min-height: 100% !important;
    }
    
    #google_translate_element {
        display: none !important;
    }
    
    
    
    
    
 
    .tags-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        margin-bottom: 24px;
        padding-bottom: 16px;
        border-bottom: 1px solid var(--border-color);
    }

    .tags-container {
        display: flex;
        flex-wrap: wrap;
        gap: 12px 16px; /* Adjusted slightly for better mobile wrapping */
        margin-bottom: 40px;
        padding: 0;
        list-style: none;
    }

    .tag-item {
        display: inline-flex;
        align-items: center;
        gap: 10px;
        padding: 6px 16px;
        background-color: var(--bg-surface);
        border: 1px solid var(--border-color);
        border-radius: 30px;
        color: var(--text-main);
        text-decoration: none;
        font-size: 0.95rem;
        font-weight: 500;
        transition: all 0.2s ease;
        box-shadow: 0 2px 4px rgba(0,0,0,0.02);
        cursor: pointer;
    }

    .tag-item:hover, .tag-item.active {
        background-color: var(--text-main);
        color: var(--bg-surface);
        border-color: var(--text-main);
    }
    
    .tag-item .tag-count {
        background-color: var(--hover-bg);
        color: var(--text-muted);
        border-radius: 12px;
        padding: 2px 8px;
        font-size: 0.75rem;
        font-weight: 600;
    }

    .tag-item:hover .tag-count, .tag-item.active .tag-count {
        background-color: rgba(255,255,255,0.2);
        color: var(--bg-surface);
    }
    
    .current-tag-title {
        font-size: 1.5rem;
        font-weight: 700;
        margin-bottom: 25px;
        display: flex;
        align-items: center;
        gap: 10px;
        color: var(--text-main);
    }

    /* Mobile Responsiveness adjustments */
    @media (max-width: 768px) {
        .tags-header {
            flex-direction: column;
            align-items: flex-start;
            gap: 15px;
        }
        .tag-item {
            font-size: 0.85rem;
            padding: 5px 12px;
        }
    }

