
        :root {
            --bg-body: #ffffff;
            --bg-card: #ffffff;
            --bg-header: rgba(255, 255, 255, 0.95);
            --text-main: #0f172a;
            --text-muted: #64748b;
            --border-color: #ff4a00;
            --accent-color: #dc2626;
            --shadow: 0 4px 20px -2px rgba(0, 0, 0, 0.05);
            --radius: 12px;
            --sidebar-width: 280px;
        }

        [data-theme="dark"] {
            --bg-body: #0b0f19;
            --bg-card: #111827;
            --bg-header: rgba(17, 24, 39, 0.95);
            --text-main: #f3f4f6;
            --text-muted: #9ca3af;
            --border-color: #1f2937;
            --accent-color: #ff4a00;
            --shadow: 0 4px 20px -2px rgba(0, 0, 0, 0.3);
        }

        * {
            box-sizing: border-box;
            margin: 0;
            padding: 0;
            transition: background-color 0.25s ease, color 0.25s ease, border-color 0.25s ease;
        }

        body {
            font-family: 'Plus Jakarta Sans', sans-serif;
            background-color: var(--bg-body);
            color: var(--text-main);
            line-height: 1.5;
            padding-bottom: 60px;
        }

        h1, h2, h3, h4 {
            font-family: 'Outfit', sans-serif;
            letter-spacing: -0.01em;
        }

        a { color: inherit; text-decoration: none; }

        /* Navigation Header */
    header {
            position: sticky;
            top: 0;
            z-index: 100;
            background: var(--bg-header);
            backdrop-filter: blur(12px);
            -webkit-backdrop-filter: blur(12px);
            border-bottom: 1px solid var(--border-color);
            padding: 0.5rem 1rem;
            display: grid;
            grid-template-columns: 1fr auto 1fr;
            align-items: center;
        }

        .header-icon-btn {
            background: transparent;
            border: none;
            color: var(--text-main);
            font-size: 1.1rem;
            cursor: pointer;
            width: 36px;
            height: 36px;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            transition: background 0.2s;
        }

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

        .brand-logo {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            justify-self: center;
            line-height: 0;
        }

        .brand-logo-img {
            height: 32px;
            width: auto;
            max-width: 160px;
            object-fit: contain;
            display: block;
            transition: transform 0.2s ease;
        }

        .brand-logo:hover .brand-logo-img {
            transform: scale(1.02);
        }

        .sidebar-logo-img {
            height: 30px;
            width: auto;
            max-width: 140px;
            object-fit: contain;
            display: block;
        } 

        .header-right-actions {
            justify-self: end;
            display: flex;
            align-items: center;
            gap: 4px;
        }

        .search-drawer {
            display: none;
            position: sticky;
            top: 52px;
            z-index: 99;
            background: var(--bg-card);
            border-bottom: 1px solid var(--border-color);
            padding: 0.75rem 1rem;
            box-shadow: var(--shadow);
            animation: slideDown 0.25s ease-out forwards;
        }


        /* Off-Canvas Navigation Sidebar */
        .sidebar-overlay {
            position: fixed; inset: 0;
            background: rgba(0, 0, 0, 0.5);
            backdrop-filter: blur(4px);
            z-index: 200;
            opacity: 0; visibility: hidden;
            transition: opacity 0.3s, visibility 0.3s;
        }

        .sidebar-overlay.active { opacity: 1; visibility: visible; }

        .sidebar {
            position: fixed; top: 0; left: -280px;
            width: var(--sidebar-width); height: 100%;
            background: var(--bg-card);
            z-index: 201;
            box-shadow: 4px 0 25px rgba(0, 0, 0, 0.15);
            display: flex; flex-direction: column;
            transition: left 0.3s ease;
        }

        .sidebar.active { left: 0 !important; }

        .sidebar-header {
            padding: 1.25rem 1.5rem;
            border-bottom: 1px solid var(--border-color);
            display: flex; align-items: center; justify-content: space-between;
        }

        .sidebar-close-btn {
            background: none; border: none;
            color: var(--text-muted); font-size: 1.25rem;
            cursor: pointer;
        }

        .sidebar-nav-list { list-style: none; padding: 1.5rem 0; overflow-y: auto; }
        .sidebar-nav-item a {
            display: flex; align-items: center; gap: 10px;
            padding: 12px 1.5rem;
            font-weight: 600; color: var(--text-main);
        }

        .sidebar-footer {
            margin-top: auto; padding: 1.5rem;
            border-top: 1px solid var(--border-color);
            display: flex; flex-direction: column; gap: 1.25rem;
        }

        .theme-switch-wrapper {
            display: flex; align-items: center; justify-content: space-between;
            background: var(--bg-body); padding: 8px 14px;
            border-radius: 8px; border: 1px solid var(--border-color);
        }

        .theme-btn {
            background: var(--bg-card); border: 1px solid var(--border-color);
            color: var(--text-main); width: 36px; height: 36px;
            border-radius: 50%; cursor: pointer;
            display: flex; align-items: center; justify-content: center;
        }

        /* Main Layout */
        main {
            max-width: 800px;
            margin: 1rem auto;
            padding: 0 1rem;
        }

        .category-header {
            margin-bottom: 1.25rem;
            border-bottom: 1px solid var(--border-color);
            padding-bottom: 0.75rem;
        }

        .category-title {
            font-size: 1.75rem;
            font-weight: 800;
            color: var(--text-main);
            display: flex;
            align-items: center;
            gap: 8px;
            text-transform: capitalize;
        }

        .category-title::before {
            content: '';
            width: 5px;
            height: 24px;
            background-color: var(--accent-color);
            border-radius: 3px;
        }

        .category-meta-count {
            font-size: 0.85rem;
            color: var(--text-muted);
            margin-top: 4px;
        }

        /* Meta Line Header */
        .meta-line {
            font-size: 0.825rem;
            color: var(--text-muted);
            display: flex;
            align-items: center;
            gap: 4px;
            flex-wrap: wrap;
            margin-bottom: 4px;
        }

        .meta-line .cat-name {
            color: var(--accent-color);
            font-weight: 700;
            text-transform: uppercase;
        }

        /* SECTION 1: Featured Hero Card */
        .featured-hero-card {
            background-color: var(--bg-card);
            border-radius: var(--radius);
            overflow: hidden;
            margin-bottom: 1.5rem;
            cursor: pointer;
            display: flex;
            flex-direction: column;
        }

        .hero-img-frame {
            width: 100%;
            height: 250px;
            position: relative;
            overflow: hidden;
            border-radius: 8px;
            background: var(--border-color);
        }

        .hero-img-frame img {
            width: 100%;
            height: 100%;
            object-fit: cover;
        }

        .hero-content {
            padding: 0.75rem 0 0;
            display: flex;
            flex-direction: column;
            gap: 0.3rem;
        }

        .hero-title {
            font-size: 1.45rem;
            font-weight: 800;
            line-height: 1.25;
            color: var(--accent-color);
        }

        /* SECTION 2: 2-Grid Column Row */
        .posts-two-grid {
            display: grid;
            grid-template-columns: repeat(2, 1fr);
            gap: 1rem;
            margin-bottom: 1.5rem;
        }

        .grid-card {
            background-color: var(--bg-card);
            display: flex;
            flex-direction: column;
            cursor: pointer;
        }

        .grid-img-frame {
            width: 100%;
            height: 125px;
            border-radius: 8px;
            overflow: hidden;
            background: var(--border-color);
        }

        .grid-img-frame img {
            width: 100%;
            height: 100%;
            object-fit: cover;
        }

        .grid-card-body {
            padding: 0.5rem 0 0;
            display: flex;
            flex-direction: column;
            gap: 0.25rem;
        }

        .grid-card-title {
            font-size: 0.95rem;
            font-weight: 800;
            line-height: 1.3;
            color: var(--text-main);
            display: -webkit-box;
            -webkit-line-clamp: 3;
            -webkit-box-orient: vertical;
            overflow: hidden;
        }

        /* SECTION 3: Bottom Mini Small Card List */
        .mini-post-list {
            list-style: none;
            padding: 0;
            margin: 1rem 0 2rem;
            display: flex;
            flex-direction: column;
            gap: 14px;
        }

        .mini-post-item {
            background-color: var(--bg-card);
            border-bottom: 1px solid var(--border-color);
            padding-bottom: 12px;
            display: flex;
            align-items: center;
            gap: 12px;
            cursor: pointer;
        }

        .mini-img-frame {
            width: 85px;
            height: 68px;
            border-radius: 6px;
            overflow: hidden;
            flex-shrink: 0;
            background: var(--border-color);
        }

        .mini-img-frame img {
            width: 100%;
            height: 100%;
            object-fit: cover;
        }

        .mini-content {
            display: flex;
            flex-direction: column;
            gap: 2px;
            flex-grow: 1;
        }

        .mini-title {
            font-size: 0.92rem;
            font-weight: 700;
            line-height: 1.35;
            color: var(--text-main);
        }

        /* Pagination Controls Bar */
        .pagination-bar {
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 8px;
            margin-top: 2rem;
            padding-top: 1.5rem;
            border-top: 1px solid var(--border-color);
        }

        .page-btn {
            background: var(--bg-card);
            border: 1px solid var(--border-color);
            color: var(--text-main);
            min-width: 38px;
            height: 38px;
            padding: 0 10px;
            border-radius: 8px;
            font-size: 0.85rem;
            font-weight: 600;
            cursor: pointer;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            transition: all 0.2s ease;
        }

        .page-btn:hover:not(:disabled) {
            border-color: var(--accent-color);
            color: var(--accent-color);
        }

        .page-btn.active {
            background: var(--accent-color);
            color: #ffffff;
            border-color: var(--accent-color);
        }

        .page-btn:disabled {
            opacity: 0.4;
            cursor: not-allowed;
        }

        .empty-state {
            text-align: center;
            padding: 4rem 1rem;
            color: var(--text-muted);
        }

        .empty-state i {
            font-size: 3rem;
            margin-bottom: 1rem;
            opacity: 0.4;
        }
      footer {
            background: var(--bg-card);
            border-top: 1px solid var(--border-color);
            padding: 1.75rem 1rem;
            text-align: center;
            color: var(--text-muted);
            font-size: 0.825rem;
            margin-top: 2rem;
        }

        .footer-logo-container {
            display: flex;
            justify-content: center;
            align-items: center;
            margin-bottom: 1rem;
        }

        .footer-logo-img {
            height: 34px;
            width: auto;
            max-width: 180px;
            object-fit: contain;
            display: block;
        }

        .footer-links {
            display: flex;
            justify-content: center;
            gap: 14px;
            margin-bottom: 0.85rem;
            flex-wrap: wrap;
        }

        .skeleton {
            background: linear-gradient(90deg, var(--border-color) 25%, var(--bg-body) 50%, var(--border-color) 75%);
            background-size: 200% 100%;
            animation: loading 1.4s infinite;
            border-radius: 4px;
        }

        @keyframes loading {
            0% { background-position: 200% 0; }
            100% { background-position: -200% 0; }
        }

        .fade-in { animation: fadeIn 0.3s ease-in-out forwards; }   

        @media (max-width: 480px) {
            .hero-img-frame { height: 210px; }
            .hero-title { font-size: 1.25rem; }
            .grid-img-frame { height: 105px; }
            .grid-card-title { font-size: 0.88rem; }
        }
    