 .blog-page {
            background: var(--bg-light, #F8FAFC);
        }

        .blog-hero {
            background: linear-gradient(135deg, rgba(15, 32, 39, 0.85), rgba(32, 58, 67, 0.8), rgba(44, 83, 100, 0.7)),
                url('https://images.unsplash.com/photo-1504328345606-18bbc8c9d7d1?auto=format&fit=crop&w=1600&q=50');
            background-size: cover;
            background-position: center;
            background-attachment: fixed;
            padding: 160px 0 80px;
            text-align: center;
            color: #fff;
        }

        .blog-hero h1 {
            font-family: 'Oswald', sans-serif;
            font-size: 3rem;
            margin-bottom: 15px;
            color: white;
        }

        .blog-hero .breadcrumb {
            color: #94A3B8;
            font-size: 0.95rem;
        }

        .blog-hero .breadcrumb span {
            color: var(--primary);
            font-weight: 700;
        }

        .blog-layout {
            display: grid;
            grid-template-columns: 2fr 1fr;
            gap: 40px;
            padding: 60px 0;
        }

        @media (max-width: 768px) {
            /* Add extra top spacing on mobile so hero doesn't sit too close to fixed header */
            .blog-hero {
                padding-top: 160px;
                padding-bottom: 60px;
            }
        }

        .post-grid {
            display: grid;
            gap: 30px;
        }

        .post-card {
            background: white;
            border-radius: 8px;
            overflow: hidden;
            border: 1px solid #E2E8F0;
            box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
            display: flex;
            flex-direction: row;
            transition: 0.3s;
        }

        .post-card:hover {
            transform: translateY(-5px);
            border-color: var(--primary);
        }

        .post-thumb {
            width: 100%;
            position: relative;
            overflow: hidden;
        }

        .post-thumb img {
            width: 100%;
            height: auto;
            object-fit: cover;
            transition: transform .5s ease;
            display: block;
        }

        .post-card:hover .post-thumb img {
            transform: scale(1.08);
        }

        .post-content {
            padding: 25px;
            width: 60%;
            display: flex;
            flex-direction: column;
            justify-content: center;
        }

        .post-meta {
            font-size: 0.85rem;
            color: #64748B;
            margin-bottom: 10px;
        }

        .post-meta i {
            color: var(--primary);
            margin-right: 6px;
        }

        .post-title {
            font-family: 'Oswald', sans-serif;
            font-size: 1.4rem;
            margin-bottom: 12px;
            color: var(--secondary);
            line-height: 1.3;
        }

        .post-title a {
            color: inherit;
        }

        .post-title a:hover {
            color: var(--primary);
        }

        .post-excerpt {
            font-size: 0.95rem;
            color: #64748B;
            margin-bottom: 18px;
            display: -webkit-box;
            -webkit-line-clamp: 3;
            -webkit-box-orient: vertical;
            overflow: hidden;
        }

        .read-more {
            font-weight: 600;
            color: #ff6600;
            font-size: 0.9rem;
            display: inline-flex;
            align-items: center;
            gap: 6px;
        }

        .read-more:hover {
            gap: 10px;
        }

        .pagination {
            display: flex;
            justify-content: center;
            gap: 10px;
            margin-top: 40px;
        }

        .page-num {
            width: 40px;
            height: 40px;
            display: flex;
            align-items: center;
            justify-content: center;
            background: white;
            border: 1px solid #E2E8F0;
            border-radius: 4px;
            color: var(--secondary);
            font-weight: 600;
            cursor: pointer;
        }

        .page-num.active,
        .page-num:hover {
            background: var(--primary);
            color: white;
            border-color: var(--primary);
        }

        .sidebar-widget {
            background: white;
            padding: 25px;
            border-radius: 8px;
            border: 1px solid #E2E8F0;
            margin-bottom: 30px;
        }

        .widget-title {
            font-family: 'Oswald', sans-serif;
            font-size: 1.1rem;
            color: var(--secondary);
            border-bottom: 2px solid var(--bg-light);
            padding-bottom: 12px;
            margin-bottom: 20px;
            position: relative;
        }

        .widget-title::after {
            content: '';
            position: absolute;
            bottom: -2px;
            left: 0;
            width: 50px;
            height: 2px;
            background: var(--primary);
        }

        .cat-list li {
            border-bottom: 1px dashed #E2E8F0;
        }

        .cat-list li:last-child {
            border-bottom: none;
        }

        .cat-list a {
            display: flex;
            justify-content: space-between;
            padding: 12px 0;
            font-size: 0.95rem;
            color: var(--text-main);
        }

        .cat-list a:hover {
            color: var(--primary);
            padding-left: 5px;
        }

        .cat-list a.active {
            color: var(--primary);
            font-weight: 700;
        }

        .cat-count {
            background: #F1F5F9;
            padding: 2px 8px;
            border-radius: 999px;
            font-size: 0.8rem;
            color: #64748B;
        }

        .recent-post-item {
            /* Compact layout for recent posts (only affects the sidebar "Bài Viết Mới") */
            display: flex;
            gap: 10px;
            margin-bottom: 12px;
            align-items: center;
        }
            /* Inline category dropdown for blog controls */
            .cat-dropdown-inline { position: relative; }
            .cat-options-inline { position: absolute; left: 0; top: calc(100% + 8px); background: white; border: 1px solid #E2E8F0; border-radius: 8px; box-shadow: 0 10px 30px rgba(2,6,23,0.08); z-index: 60; min-width: 220px; }
            .cat-option-inline { display: block; padding: 10px 14px; color: var(--text-main); text-decoration: none; border-bottom: 1px dashed #F1F5F9; }
            .cat-option-inline:hover { background: #F8FAFF; color: var(--primary); }

        .rp-thumb,
        .recent-post-item img {
            /* keep recent-post thumbnails compact by default */
            width: 40px;
            height: 40px;
            object-fit: cover;
            border-radius: 4px;
            flex-shrink: 0;
        }

        /* keep default sidebar recent-post thumbnail size for mobile; desktop overrides below */
        .rp-info h4 {
            font-size: 0.88rem;
            margin-bottom: 3px;
            line-height: 1.25;
            overflow: hidden;
            display: -webkit-box;
            -webkit-line-clamp: 2;
            -webkit-box-orient: vertical;
        }

        .rp-date {
            font-size: 0.75rem;
            color: #9AA7B6;
        }

        /* Custom dropdown */
        .cat-dropdown {
            position: relative;
            width: 100%;
            user-select: none;
            display: none;
        }

        .cat-toggle {
            width: 100%;
            display: flex;
            align-items: center;
            justify-content: space-between;
            padding: 10px 14px;
            border-radius: 6px;
            background: white;
            border: 1px solid #E2E8F0;
            cursor: pointer;
            font-size: 0.95rem;
            color: var(--text-main);
            transition: box-shadow .18s ease, border-color .18s ease;
        }

        .cat-toggle:focus,
        .cat-dropdown.open .cat-toggle {
            outline: none;
            box-shadow: 0 6px 18px rgba(2,6,23,0.08);
            border-color: rgba(59,130,246,0.9);
        }

        .cat-toggle .arrow {
            width: 18px;
            height: 18px;
            display: inline-block;
            transition: transform .18s ease;
            transform: rotate(0deg);
            color: var(--primary);
        }

        .cat-dropdown.open .cat-toggle .arrow {
            transform: rotate(180deg);
        }

        .cat-options {
            position: absolute;
            left: 0;
            right: 0;
            top: calc(100% + 8px);
            max-height: 260px;
            overflow: auto;
            background: white;
            border: 1px solid #E2E8F0;
            border-radius: 8px;
            box-shadow: 0 10px 30px rgba(2,6,23,0.08);
            z-index: 30;
            padding: 8px;
            opacity: 0;
            transform-origin: top center;
            transform: translateY(-6px) scale(.98);
            transition: opacity .18s ease, transform .18s ease;
            display: none;
        }

        .cat-dropdown.open .cat-options {
            display: block;
            opacity: 1;
            transform: translateY(0) scale(1);
        }

        .cat-option {
            padding: 9px 12px;
            border-radius: 6px;
            cursor: pointer;
            display: flex;
            justify-content: space-between;
            align-items: center;
            color: var(--text-main);
            font-size: 0.95rem;
        }

        .cat-option:hover,
        .cat-option[aria-selected="true"] {
            background: #F8FAFF;
            color: var(--primary);
        }

        .cat-option .count {
            font-size: 0.85rem;
            color: #64748B;
            background: transparent;
        }

        /* Desktop: show list, hide custom dropdown. Mobile: reverse. */
        .cat-list { display: block; list-style: none; margin: 0; padding: 0; }
        .cat-list li { padding: 8px 0; }
        @media (max-width: 768px) {
            .cat-list { display: none; }
            .cat-dropdown { display: block; }
        }

        @media (max-width: 992px) {
            .blog-layout {
                grid-template-columns: 1fr;
            }

            .post-card {
                flex-direction: column;
            }

            .post-thumb {
                width: 100%;
                height: 220px;
            }

            .post-content {
                width: 100%;
            }
        }

        @media (max-width: 768px) {
            /* Mobile: make recent-post thumbnails slightly larger for readability */
            .rp-thumb,
            .recent-post-item img {
                width: 70px !important;
                height: 70px !important;
                max-width: 70px !important;
                max-height: 70px !important;
            }

            .blog-hero {
                padding: 90px 0 50px;
            }

            .blog-hero h1 {
                font-size: 2.3rem;
            }

            .blog-layout {
                gap: 25px;
                padding: 40px 0;
                display: flex;
                flex-direction: column;
            }

            .sidebar {
                order: -1;
            }

            .post-card {
                box-shadow: 0 10px 25px -14px rgba(15, 23, 42, 0.7);
            }

            .post-content {
                padding: 20px;
            }

            .sidebar {
                display: flex;
                flex-direction: column;
                gap: 20px;
            }

            .sidebar-widget {
                margin-bottom: 0;
            }
        }

        @media (max-width: 576px) {
            .blog-hero {
                padding: 70px 0 35px;
            }

            .blog-hero h1 {
                font-size: 1.85rem;
            }

            .blog-hero .breadcrumb {
                font-size: 0.85rem;
                display: flex;
                flex-direction: column;
                gap: 4px;
            }

            .blog-page .container {
                padding-left: 1rem;
                padding-right: 1rem;
            }

            .post-thumb {
                height: 190px;
            }

            .post-content {
                padding: 18px 16px 22px;
            }

            .post-title {
                font-size: 1.2rem;
            }

            .post-meta {
                flex-direction: column;
                gap: 6px;
                display: flex;
            }

            .pagination {
                gap: 8px;
            }

            .sidebar-widget {
                padding: 20px;
            }
        }

        /* Desktop-only overrides: apply when viewport is wide (desktop) */
    @media (min-width: 992px) {
        .post-card {
            align-items: stretch;
        }

        .post-thumb {
            flex: 0 0 34%;
            max-width: 360px;
            display: flex;
            align-items: stretch;
        }

        .post-thumb img {
            width: 100% !important;
            height: 100% !important;
            object-fit: cover !important;
            object-position: center center;
        }

        .post-content {
            justify-content: flex-start;
        }

        /* smaller recent-post thumbnails only on desktop */
        .sidebar .sidebar-widget .recent-post-item img,
        .sidebar .sidebar-widget .rp-thumb,
        .recent-post-item img.rp-thumb {
            width: 70px !important;
            height: 70px !important;
            max-width: 70px !important;
            max-height: 70px !important;
        }
    }