:root {
            --navy-dark: #0F172A;
            --navy-light: #1E293B;
            --gold-primary: #F59E0B;
            --gold-hover: #D97706;
            --text-dark: #334155;
            --text-gray: #64748B;
            --body-bg: #F8FAFC;
            --card-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.05), 0 4px 6px -2px rgba(0, 0, 0, 0.025);
            --radius: 16px;
            --spacing-xs: 8px;
            --spacing-sm: 12px;
            --spacing-md: 20px;
            --spacing-lg: 30px;
            --spacing-xl: 40px;
        }

        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
            font-family: 'Vazirmatn', sans-serif;
        }

        html {
            overflow-x: hidden;
            width: 100%;
        }

        body {
            background-color: var(--body-bg);
            color: var(--text-dark);
            line-height: 1.7;
            overflow-x: hidden;
            width: 100%;
        }

        a {
            text-decoration: none;
            color: inherit;
            transition: all 0.3s ease;
        }

        .container {
            width: 100%;
            max-width: 1280px;
            margin: 0 auto;
            padding: 0 var(--spacing-md);
        }

        /* ========== HEADER ========== */
        .site-header {
            background-color: var(--navy-dark);
            padding: var(--spacing-md) 0 100px;
            color: white;
            position: relative;
            box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
            width: 100%;
        }

        .header-content {
            display: flex;
            justify-content: space-between;
            align-items: center;
            gap: var(--spacing-md);
            flex-wrap: wrap;
            position: relative;
        }

        .brand-logo {
            display: flex;
            align-items: center;
            gap: var(--spacing-sm);
            font-size: 1.5rem;
            font-weight: 800;
            color: white;
            z-index: 1001;
        }

        .brand-logo i {
            color: var(--gold-primary);
            font-size: 1.8rem;
        }

        .brand-subtitle {
            font-size: 0.85rem;
            font-weight: 300;
            opacity: 0.8;
            margin-top: 5px;
            display: block;
        }

        .hero-title {
            text-align: center;
            margin-top: var(--spacing-lg);
        }

        .hero-title h1 {
            font-size: 1.75rem;
            font-weight: 700;
            margin-bottom: 10px;
        }

        .hero-title p {
            font-weight: 300;
            opacity: 0.9;
            font-size: 0.95rem;
        }

        /* ========== HAMBURGER BUTTON ========== */
        .hamburger {
            display: none;
            flex-direction: column;
            gap: 5px;
            background: transparent;
            border: none;
            cursor: pointer;
            padding: 8px;
            z-index: 1001;
            transition: all 0.3s ease;
        }

        .hamburger span {
            width: 28px;
            height: 3px;
            background: white;
            border-radius: 3px;
            transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
            transform-origin: center;
        }

        .hamburger:hover span {
            background: var(--gold-primary);
        }

        .hamburger.active span:nth-child(1) {
            transform: translateY(8px) rotate(45deg);
        }

        .hamburger.active span:nth-child(2) {
            opacity: 0;
            transform: scaleX(0);
        }

        .hamburger.active span:nth-child(3) {
            transform: translateY(-8px) rotate(-45deg);
        }

        /* ========== NAVIGATION MENU ========== */
        .nav-menu {
            display: flex;
            gap: var(--spacing-md);
            font-size: 0.95rem;
        }

        .nav-overlay {
            display: none;
        }

        .nav-header {
            display: none;
        }

        .nav-close {
            display: none;
        }

        .nav-content {
            display: flex;
            gap: var(--spacing-md);
        }

        .nav-link {
            position: relative;
            padding: 8px 16px;
            border-radius: 8px;
            transition: all 0.3s ease;
            display: flex;
            align-items: center;
            gap: 8px;
            color: rgba(255, 255, 255, 0.9);
            font-weight: 500;
        }

        .nav-link i {
            font-size: 1rem;
            color: var(--gold-primary);
        }

        .nav-link:hover {
            background: rgba(255, 255, 255, 0.1);
            color: white;
        }

        .nav-link.active {
            background: var(--gold-primary);
            color: white;
        }

        .nav-link.active i {
            color: white;
        }

        /* ========== SEARCH ========== */
        .search-wrapper {
            margin-top: -60px;
            position: relative;
            z-index: 10;
            margin-bottom: 50px;
            width: 100%;
        }

        .search-box {
            background: white;
            max-width: 700px;
            margin: 0 auto;
            border-radius: 50px;
            padding: 8px;
            display: flex;
            align-items: center;
            box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.15);
            border: 1px solid rgba(0, 0, 0, 0.05);
            gap: var(--spacing-xs);
        }

        .search-input {
            flex: 1;
            border: none;
            padding: 12px var(--spacing-md);
            font-size: 0.95rem;
            border-radius: 50px;
            outline: none;
            color: var(--text-dark);
            background: transparent;
            min-width: 0;
        }

        .search-btn {
            background: var(--gold-primary);
            color: white;
            border: none;
            padding: 12px 32px;
            border-radius: 50px;
            font-weight: bold;
            font-size: 0.95rem;
            cursor: pointer;
            transition: all 0.3s;
            box-shadow: 0 4px 6px rgba(245, 158, 11, 0.3);
            white-space: nowrap;
            flex-shrink: 0;
        }

        .search-btn:hover {
            background: var(--gold-hover);
            transform: translateY(-2px);
            box-shadow: 0 6px 10px rgba(245, 158, 11, 0.4);
        }

        /* ========== MAIN GRID ========== */
        .main-grid {
            display: grid;
            grid-template-columns: 1fr;
            gap: var(--spacing-xl);
            margin-bottom: 80px;
            width: 100%;
        }

        /* ========== POSTS LIST ========== */
        .posts-list {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr));
            gap: var(--spacing-lg);
            width: 100%;
        }

        .post-card {
            background: white;
            border-radius: var(--radius);
            overflow: hidden;
            box-shadow: var(--card-shadow);
            transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
            display: flex;
            flex-direction: column;
            border: 1px solid rgba(226, 232, 240, 0.8);
            height: 100%;
            width: 100%;
            min-width: 0;
        }

        .post-card:hover {
            transform: translateY(-8px);
            box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
            border-color: rgba(245, 158, 11, 0.3);
        }

        .card-img-container {
            position: relative;
            padding-top: 56.25%;
            overflow: hidden;
            width: 100%;
        }

        .card-img {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            object-fit: cover;
            transition: transform 0.6s;
        }

        .post-card:hover .card-img {
            transform: scale(1.08);
        }

        .card-category {
            position: absolute;
            top: 15px;
            right: 15px;
            background: rgba(15, 23, 42, 0.85);
            color: #fff;
            padding: 6px 14px;
            border-radius: 30px;
            font-size: 0.75rem;
            font-weight: 700;
            backdrop-filter: blur(4px);
            white-space: nowrap;
        }

        .card-body {
            padding: var(--spacing-lg);
            flex: 1;
            display: flex;
            flex-direction: column;
            width: 100%;
            min-width: 0;
        }

        .card-meta {
            display: flex;
            gap: var(--spacing-sm);
            font-size: 0.8rem;
            color: #94a3b8;
            margin-bottom: var(--spacing-sm);
            flex-wrap: wrap;
        }

        .card-meta i {
            color: var(--gold-primary);
        }

        .card-title {
            font-size: 1.1rem;
            font-weight: 800;
            margin-bottom: var(--spacing-sm);
            line-height: 1.6;
            color: var(--navy-dark);
            display: -webkit-box;
            -webkit-line-clamp: 2;
            -webkit-box-orient: vertical;
            overflow: hidden;
            text-overflow: ellipsis;
            word-wrap: break-word;
            word-break: break-word;
        }

        .post-card:hover .card-title {
            color: var(--gold-hover);
        }

        .card-excerpt {
            font-size: 0.95rem;
            color: var(--text-gray);
            margin-bottom: 15px;
            flex: 1;
            display: -webkit-box;
            -webkit-line-clamp: 3;
            -webkit-box-orient: vertical;
            overflow: hidden;
            line-height: 1.65;
            word-wrap: break-word;
            word-break: break-word;
        }

        .card-footer {
            border-top: 1px solid #f1f5f9;
            padding-top: 15px;
            display: flex;
            justify-content: space-between;
            align-items: center;
        }

        .read-more-btn {
            font-size: 0.9rem;
            font-weight: 700;
            color: var(--navy-dark);
            display: flex;
            align-items: center;
            gap: 5px;
        }

        .read-more-btn i {
            color: var(--gold-primary);
            transition: transform 0.2s;
        }

        .post-card:hover .read-more-btn i {
            transform: translateX(-5px);
        }

        /* ========== SIDEBAR ========== */
        .sidebar {
            display: grid;
            gap: var(--spacing-lg);
            width: 100%;
        }

        .sidebar-widget {
            background: white;
            padding: var(--spacing-lg);
            border-radius: var(--radius);
            box-shadow: var(--card-shadow);
            border: 1px solid rgba(226, 232, 240, 0.6);
            width: 100%;
            min-width: 0;
        }

        .widget-header {
            display: flex;
            align-items: center;
            justify-content: space-between;
            margin-bottom: var(--spacing-md);
            padding-bottom: 15px;
            border-bottom: 2px solid #f1f5f9;
        }

        .widget-header h3 {
            font-size: 1.15rem;
            font-weight: 800;
            color: var(--navy-dark);
            position: relative;
        }

        .widget-header h3::after {
            content: '';
            position: absolute;
            bottom: -17px;
            right: 0;
            width: 40px;
            height: 3px;
            background: var(--gold-primary);
            border-radius: 2px;
        }

        .side-post-item {
            display: flex;
            align-items: flex-start;
            gap: var(--spacing-sm);
            margin-bottom: var(--spacing-md);
            padding-bottom: var(--spacing-md);
            border-bottom: 1px solid #f1f5f9;
            width: 100%;
        }

        .side-post-item:last-child {
            margin-bottom: 0;
            padding-bottom: 0;
            border-bottom: none;
        }

        .side-post-img {
            width: 80px;
            height: 80px;
            border-radius: 12px;
            object-fit: cover;
            flex-shrink: 0;
            box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
        }

        .side-post-info {
            flex: 1;
            min-width: 0;
        }

        .side-post-title {
            font-size: 0.9rem;
            font-weight: 700;
            line-height: 1.5;
            margin-bottom: var(--spacing-xs);
            color: var(--navy-dark);
            display: -webkit-box;
            -webkit-line-clamp: 2;
            -webkit-box-orient: vertical;
            overflow: hidden;
            text-overflow: ellipsis;
            word-wrap: break-word;
        }

        .side-post-title:hover {
            color: var(--gold-primary);
        }

        .side-post-date {
            font-size: 0.75rem;
            color: #94a3b8;
            display: flex;
            align-items: center;
            gap: 5px;
        }

        .cat-row {
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 12px;
            border-bottom: 1px dashed #e2e8f0;
            color: var(--text-dark);
            font-weight: 500;
            border-radius: 8px;
            font-size: 0.9rem;
            transition: all 0.2s;
            width: 100%;
        }

        .cat-row:last-child {
            border-bottom: none;
        }

        .cat-row:hover {
            background-color: #f8fafc;
            color: var(--gold-primary);
            padding-right: 16px;
        }

        .cat-badge {
            background: #f1f5f9;
            color: var(--text-gray);
            padding: 4px 10px;
            border-radius: 20px;
            font-size: 0.75rem;
            white-space: nowrap;
            font-weight: 600;
        }

        .cat-row:hover .cat-badge {
            background: var(--gold-primary);
            color: white;
        }

        /* ========== PAGINATION ========== */
        .pagination {
            margin-top: var(--spacing-xl);
            display: flex;
            justify-content: center;
            gap: 8px;
            flex-wrap: wrap;
        }

        .page-link {
            width: 42px;
            height: 42px;
            display: flex;
            align-items: center;
            justify-content: center;
            background: white;
            color: var(--text-dark);
            border-radius: 12px;
            font-weight: 700;
            font-size: 0.95rem;
            box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
            transition: all 0.2s;
        }

        .page-link.active,
        .page-link:hover {
            background: var(--gold-primary);
            color: white;
            transform: translateY(-2px);
            box-shadow: 0 5px 15px rgba(245, 158, 11, 0.3);
        }

        /* ========== FILTER STATUS ========== */
        .filter-status {
            background: #fff;
            padding: 16px var(--spacing-md);
            border-radius: 50px;
            margin-bottom: var(--spacing-lg);
            display: flex;
            justify-content: space-between;
            align-items: center;
            border: 1px solid #e2e8f0;
            box-shadow: 0 4px 6px rgba(0, 0, 0, 0.02);
            color: var(--navy-dark);
            gap: var(--spacing-md);
            font-size: 0.95rem;
            width: 100%;
            flex-wrap: wrap;
        }

        /* ========================================
   RESPONSIVE - MOBILE MENU
   ======================================== */

        @media (max-width: 991px) {
            .hamburger {
                display: flex;
            }

            .nav-menu {
                position: fixed;
                top: 0;
                right: -100%;
                width: 320px;
                height: 100vh;
                z-index: 1000;
                transition: right 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
            }

            .nav-menu.active {
                right: 0;
            }

            .nav-overlay {
                display: block;
                position: fixed;
                top: 0;
                left: 0;
                width: 100%;
                height: 100%;
                background: rgba(15, 23, 42, 0.8);
                backdrop-filter: blur(4px);
                opacity: 0;
                visibility: hidden;
                transition: all 0.3s ease;
                z-index: 999;
            }

            .nav-menu.active .nav-overlay {
                opacity: 1;
                visibility: visible;
            }

            .nav-content {
                position: relative;
                z-index: 1000;
                background: white;
                height: 100%;
                width: 100%;
                flex-direction: column;
                gap: 0;
                padding: 20px;
                overflow-y: auto;
                box-shadow: -10px 0 30px rgba(0, 0, 0, 0.2);
            }

            .nav-header {
                display: flex;
                justify-content: space-between;
                align-items: center;
                padding-bottom: 20px;
                border-bottom: 2px solid #f1f5f9;
                margin-bottom: 20px;
            }

            .nav-title {
                font-size: 1.2rem;
                font-weight: 800;
                color: var(--navy-dark);
            }

            .nav-close {
                display: flex;
                align-items: center;
                justify-content: center;
                width: 40px;
                height: 40px;
                border-radius: 50%;
                background: #f1f5f9;
                border: none;
                cursor: pointer;
                transition: all 0.3s ease;
            }

            .nav-close:hover {
                background: var(--gold-primary);
                color: white;
                transform: rotate(90deg);
            }

            .nav-close i {
                font-size: 1.2rem;
                color: var(--navy-dark);
            }

            .nav-close:hover i {
                color: white;
            }

            .nav-link {
                width: 100%;
                padding: 16px 20px;
                border-radius: 12px;
                margin-bottom: 8px;
                color: var(--navy-dark);
                background: #f8fafc;
                border: 1px solid #e2e8f0;
                font-size: 1rem;
                font-weight: 600;
            }

            .nav-link:hover {
                background: #f1f5f9;
                border-color: var(--gold-primary);
                transform: translateX(-5px);
            }

            .nav-link.active {
                background: var(--gold-primary);
                color: white;
                border-color: var(--gold-primary);
            }

            .nav-link i {
                font-size: 1.2rem;
                width: 30px;
            }

            .nav-link.active i {
                color: white;
            }

            body.menu-open {
                overflow: hidden;
            }
        }

        /* ========================================
   RESPONSIVE BREAKPOINTS
   ======================================== */

        /* Small Mobile: 320px - 479px */
        @media (max-width: 479px) {
            .container {
                padding: 0 15px;
            }

            .brand-logo {
                font-size: 1.2rem;
            }

            .brand-logo i {
                font-size: 1.4rem;
            }

            .brand-subtitle {
                font-size: 0.75rem;
            }

            .hero-title h1 {
                font-size: 1.3rem;
            }

            .hero-title p {
                font-size: 0.85rem;
            }

            .search-wrapper {
                margin-top: -50px;
                margin-bottom: var(--spacing-lg);
            }

            .search-box {
                padding: 6px;
                flex-direction: column;
                border-radius: 20px;
            }

            .search-input {
                width: 100%;
                padding: 10px 15px;
                font-size: 0.9rem;
            }

            .search-btn {
                width: 100%;
                padding: 10px;
                font-size: 0.9rem;
                border-radius: 20px;
            }

            .posts-list {
                grid-template-columns: 1fr;
                gap: var(--spacing-md);
            }

            .card-category {
                top: 10px;
                right: 10px;
                font-size: 0.7rem;
                padding: 5px 10px;
            }

            .card-body {
                padding: 16px;
            }

            .card-title {
                font-size: 1rem;
            }

            .card-excerpt {
                font-size: 0.85rem;
            }

            .sidebar-widget {
                padding: var(--spacing-md);
            }

            .side-post-img {
                width: 70px;
                height: 70px;
            }

            .side-post-title {
                font-size: 0.85rem;
            }

            .filter-status {
                flex-direction: column;
                align-items: flex-start;
                border-radius: 16px;
                padding: 15px;
                font-size: 0.85rem;
            }

            .page-link {
                width: 38px;
                height: 38px;
                font-size: 0.85rem;
            }

            .nav-menu {
                width: 280px;
            }
        }

        /* Mobile: 480px - 767px */
        @media (min-width: 480px) and (max-width: 767px) {
            .site-header {
                padding-bottom: 90px;
            }

            .posts-list {
                grid-template-columns: 1fr;
            }
        }

        /* Tablet: 768px - 991px */
        @media (min-width: 768px) and (max-width: 991px) {
            .posts-list {
                grid-template-columns: repeat(2, 1fr);
                gap: var(--spacing-md);
            }

            .main-grid {
                grid-template-columns: 1fr;
            }
        }

        /* Desktop: 992px+ */
        @media (min-width: 992px) {
            .posts-list {
                grid-template-columns: repeat(2, 1fr);
            }

            .main-grid {
                grid-template-columns: 1fr 340px;
            }
        }

        /* Large Desktop: 1280px+ */
        @media (min-width: 1280px) {
            .posts-list {
                grid-template-columns: repeat(3, 1fr);
            }

            .main-grid {
                grid-template-columns: 1fr 360px;
            }
        }

        /* Wide Desktop: 1440px+ */
        @media (min-width: 1440px) {
            .container {
                max-width: 1400px;
            }
        }

        /* Ultra Wide: 1920px+ */
        @media (min-width: 1920px) {
            .container {
                max-width: 1600px;
            }
        }

        /* Landscape Mode Mobile */
        @media (max-height: 500px) and (orientation: landscape) {
            .site-header {
                padding: 15px 0 70px;
            }

            .hero-title {
                margin-top: 15px;
            }

            .search-wrapper {
                margin-top: -45px;
                margin-bottom: var(--spacing-lg);
            }
        }

        /* Print Styles */
        @media print {

            .site-header,
            .search-wrapper,
            .sidebar,
            .pagination,
            .filter-status,
            .hamburger {
                display: none;
            }

            .post-card {
                box-shadow: none;
                border: 1px solid #ddd;
                page-break-inside: avoid;
            }
        }