
:root {
    --primary-orange: #f74d40;
    --primary-orange-dark: #e63e31;
    --primary-orange-light: #ffefe5;
    --primary-blue: #2563eb;
    --primary-blue-dark: #1d4ed8;
    --bg-white: #ffffff;
    --text-dark: #111827;
    --text-gray: #4b5563;
    --text-light: #6b7280;
    --border-light: #e5e7eb;
    --shadow-sm: 0 1px 2px 0 rgba(0,0,0,0.05);
    --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.1), 0 2px 4px -1px rgba(0,0,0,0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.1), 0 4px 6px -2px rgba(0,0,0,0.05);
    --transition: all 0.25s ease;
}

.blog-page {
    width: 100%;
    max-width: 1600px;
    margin: auto;
}

.main-blog-container {
    width: 100%;
    max-width: 1500px;
    margin: auto;
}

.category-bar .container-fluid {
    max-width: 1400px;
    margin: auto;
}
/*  * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }*/

/* body {
            background: var(--bg-white);
            font-family: "Inter", sans-serif;
            color: var(--text-dark);
            overflow-x: hidden;
        }*/


/* BANNER */
.blog-banner {
    background: #fff;
    min-height: 220px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    border-bottom: 1px solid var(--border-light);
}

.banner-content {
    padding: 2rem 1rem;
}

.banner-tag {
    display: inline-block;
    background: var(--primary-orange-light);
    border: 1px solid rgba(249,115,22,0.3);
    color: var(--primary-orange-dark);
    font-size: 12px;
    font-weight: 600;
    padding: 0.3rem 1.2rem;
    border-radius: 40px;
    margin-bottom: 1rem;
    margin-top: 40px
}

.banner-content h1 {
    font-size: 40px;
    font-weight: 800;
    color: var(--text-dark);
    margin-bottom: 0.6rem;
}

.banner-content p {
    color: var(--text-gray);
    font-size: 13px;
    max-width: 580px;
    margin: 0 auto;
    text-align: center;
}

/* CATEGORY BAR */
.category-bar {
    background: #233952;
    position: sticky;
    top: 0;
    z-index: 10;
    padding: 0.75rem 0;
    box-shadow: var(--shadow-sm);
}

.category-inner {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    justify-content: center;
    padding: 0 1rem;
}

.cat-btn {
    background: transparent;
    border: 1px solid rgba(255,255,255,0.25);
    color: #b7bfca;
    font-family: "Inter", sans-serif;
    font-weight: 500;
    font-size: 24px;
    padding: 0.38rem 1.1rem;
    border-radius: 40px;
    transition: var(--transition);
    cursor: pointer;
}

    .cat-btn:hover {
        border-color: var(--primary-orange);
        color: var(--primary-orange);
        background: var(--primary-orange-light);
    }

    .cat-btn.active {
        background: var(--primary-orange);
        border-color: var(--primary-orange);
        color: #fff;
        font-weight: 600;
    }

    .cat-btn.disabled {
        opacity: 0.45;
        cursor: not-allowed;
        pointer-events: none;
    }

/* MAIN LAYOUT FIXES */
.main-blog-container {
    max-width: 1200px;
    margin: auto;
    padding: 2rem 1.5rem;
}

.scrollable-row {
    display: flex;
    gap: 2rem;
    align-items: flex-start;
}

.left-scrollable {
    flex: 1;
    min-width: 0; /* prevents overflow */
}

.right-scrollable {
    width: 300px;
    flex-shrink: 0;
}

/* BLOG GRID - IMPROVED SPACING */
.blog-left-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr); /* Only 2 cards */
    gap: 2rem;
}

/* BLOG CARD */
.blog-card {
    background: var(--bg-white);
    border-radius: 20px;
    border: 1px solid var(--border-light);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: inherit;
    height: 100%;
    width: 100%;
}

    .blog-card:hover {
        transform: translateY(-5px);
        box-shadow: var(--shadow-lg);
        border-color: var(--primary-orange-light);
        text-decoration: none;
        color: inherit;
    }

/* IMAGE — fixed height with aspect ratio */
.blog-img-wrap {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #f0f4f8;
    overflow: hidden;
    flex-shrink: 0;
}

    .blog-img-wrap img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        transition: transform 0.4s ease;
        display: block;
    }

.blog-card:hover .blog-img-wrap img {
    transform: scale(1.04);
}

.img-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #c9d1d9;
    font-size: 44.8px;
    background: #f0f4f8;
}

/* MULTI-CATEGORY BADGE AREA */
.badge-area {
    position: absolute;
    top: 12px;
    left: 12px;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    max-width: calc(100% - 24px);
    z-index: 2;
}

.blog-category-badge {
    background: rgba(255,255,255,0.96);
    backdrop-filter: blur(4px);
    border-radius: 40px;
    padding: 0.2rem 0.8rem;
    font-size: 10px;
    font-weight: 700;
    color: var(--primary-orange);
    border: 1px solid rgba(247,77,64,0.3);
    box-shadow: var(--shadow-sm);
    text-transform: uppercase;
    letter-spacing: 0.3px;
    white-space: nowrap;
}

.badge-more {
    background: var(--primary-orange);
    color: #fff;
    border-color: var(--primary-orange);
}

.blog-content {
    padding: 1.2rem 1.3rem 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.blog-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
    font-size: 10px;
    color: var(--text-light);
    margin-bottom: 0.6rem;
}

.blog-date {
    display: flex;
    gap: 2px;
    color: var(--primary-orange);
    font-weight: 600;
}

.blog-content h3 {
    font-size: 32px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 0.75rem;
    line-height: 1.4;
    transition: color 0.2s;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.blog-card:hover .blog-content h3 {
    color: var(--primary-orange);
}

.blog-content p {
    color: var(--text-gray);
    font-size: 13px;
    line-height: 1.55;
    margin-bottom: 1rem;
    flex: 1;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.read-btn {
    align-self: flex-start;
    background: transparent;
    border: 1.5px solid var(--primary-blue);
    color: var(--primary-blue);
    font-weight: 600;
    font-size: 13px;
    padding: 0.45rem 1.2rem;
    border-radius: 40px;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    margin-top: auto;
    text-decoration: none;
}

    .read-btn:hover {
        background: var(--primary-blue);
        color: #fff;
        text-decoration: none;
    }

/* PAGINATION */
.pagination-wrapper {
    margin-top: 2.5rem;
    padding: 1rem 0;
    display: flex;
    justify-content: center;
    border-top: 1px solid var(--border-light);
}

/* SIDEBAR */
.sidebar-card {
    background: var(--bg-white);
    border-radius: 20px;
    border: 1px solid var(--border-light);
    box-shadow: var(--shadow-sm);
    padding: 1.4rem;
    margin-bottom: 1.8rem;
    transition: var(--transition);
}

    .sidebar-card:hover {
        box-shadow: var(--shadow-md);
        border-color: var(--primary-orange-light);
    }

.sidebar-title {
    font-size: 17px;
    font-weight: 700;
    color: var(--text-dark);
    border-left: 4px solid var(--primary-orange);
    padding-left: 0.75rem;
    margin-bottom: 1.2rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.search-input-Blog {
    width: 100%;
    padding: 0.7rem 1rem;
    border-radius: 60px;
    border: 1px solid var(--border-light);
    font-family: inherit;
    font-size: 13.6px;
    transition: all 0.2s;
}

    .search-input-Blog:focus {
        border-color: var(--primary-orange);
        outline: none;
        box-shadow: 0 0 0 3px rgba(247,77,64,0.12);
    }

.recent-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.recent-item {
    display: flex;
    gap: 12px;
    margin-bottom: 1rem;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 14px;
    transition: all 0.2s;
    border: 1px solid transparent;
    text-decoration: none;
    color: inherit;
}

    .recent-item:hover {
        background: var(--primary-orange-light);
        border-color: #fed7aa;
        transform: translateX(3px);
        text-decoration: none;
        color: inherit;
    }

.recent-thumb {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    overflow: hidden;
    background: #f3f4f6;
    flex-shrink: 0;
    border: 1px solid var(--border-light);
}

    .recent-thumb img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        display: block;
    }

.recent-info {
    flex: 1;
    min-width: 0;
}

.recent-post-title {
    font-weight: 600;
    font-size: 13px;
    color: var(--text-dark);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.4;
}

.recent-item:hover .recent-post-title {
    color: var(--primary-orange);
}

.recent-date {
    font-size: 10px;
    color: var(--text-light);
    margin-top: 4px;
}

.cat-list-side {
    list-style: none;
    padding: 0;
    margin: 0;
}

.cat-item-side {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.55rem 0.65rem;
    border-radius: 40px;
    margin-bottom: 0.35rem;
    cursor: pointer;
    transition: 0.2s;
    font-size: 13px;
    color: var(--text-gray);
}

    .cat-item-side:hover, .cat-item-side.active-cat {
        background: var(--primary-orange-light);
        color: var(--primary-orange);
        font-weight: 500;
    }

.cat-count-side {
    background: #f3f4f6;
    padding: 0.1rem 0.6rem;
    border-radius: 40px;
    font-size: 11.2px;
    font-weight: 600;
    color: var(--text-light);
}

.no-results {
    text-align: center;
    background: #fff;
    padding: 3rem;
    border-radius: 24px;
    color: var(--text-light);
    border: 1px solid var(--border-light);
    grid-column: 1 / -1;
}

/* RESPONSIVE */
@media (max-width: 1100px) {
    .blog-left-grid {
        gap: 1.5rem;
        grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    }
}

@media (max-width: 992px) {
    .scrollable-row {
        flex-direction: column;
        gap: 1.5rem;
    }

    .right-scrollable {
        width: 100%;
        max-width: 100%;
    }

    .blog-left-grid {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    }
}

@media (max-width: 768px) {
    .main-blog-container {
        padding: 1rem;
    }

    .category-inner {
        justify-content: flex-start;
        overflow-x: auto;
        flex-wrap: nowrap;
        padding-bottom: 4px;
    }

    .cat-btn {
        white-space: nowrap;
    }

    .blog-left-grid {
        gap: 1rem;
    }
}
