.ad-promo-card {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    cursor: pointer;
    background: #fff;
}

@media (min-width: 1400px) {
    .container, .container-lg, .container-md, .container-sm, .container-xl, .container-xxl {
        max-width: 1390px !important;
    }
}

.ad-promo-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.15);
}
.ad-promo-image-wrapper {
    position: relative;
    width: 100%;
    padding-top: 20%;
    overflow: hidden;
}
.ad-promo-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}
.ad-promo-card:hover .ad-promo-image {
    transform: scale(1.05);
}
.ad-promo-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0.4) 50%, rgba(0,0,0,0) 100%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 30px;
    opacity: 1;
    transition: opacity 0.3s ease;
}
.ad-promo-content {
    position: relative;
    z-index: 2;
    transform: translateY(10px);
    transition: transform 0.4s ease;
}
.ad-promo-card:hover .ad-promo-content {
    transform: translateY(0);
}
.ad-promo-tag {
    display: inline-block;
    background-color: #fd5056;
    color: #fff;
    padding: 4px 12px;
    border-radius: 50px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 15px;
}
.ad-promo-title {
    color: #fff;
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 10px;
    line-height: 1.3;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}
.ad-promo-cta {
    display: inline-flex;
    align-items: center;
    color: #fff;
    font-weight: 600;
    font-size: 16px;
    opacity: 0.9;
    transition: all 0.3s ease;
    margin-top: 5px;
}
.ad-promo-cta i {
    margin-left: 8px;
    transition: transform 0.3s ease;
}
.ad-promo-card:hover .ad-promo-cta {
    opacity: 1;
    color: #fd5056;
}
.ad-promo-card:hover .ad-promo-cta i {
    transform: translateX(5px);
}

/* ─── Sticky Sidebar ─── */
.sticky-sidebar {
    position: -webkit-sticky;
    position: sticky;
    top: 100px;
    z-index: 10;
}

/* ─── Search Box ─── */
.search-box-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
    border: 1px solid rgba(0, 0, 0, 0.05);
    overflow: hidden;
    transition: all 0.3s ease;
}
.search-box-wrapper:focus-within {
    border-color: #fd5056;
    box-shadow: 0 4px 20px rgba(253, 80, 86, 0.08);
}
.search-input {
    border: none !important;
    padding: 14px 50px 14px 20px !important;
    height: auto !important;
    font-size: 15px;
    font-weight: 500;
    color: #2c3e50;
    background: transparent !important;
    outline: none !important;
    box-shadow: none !important;
    width: 100%;
}
.search-input::placeholder {
    color: #a0aec0;
}
.search-btn {
    position: absolute;
    right: 5px;
    background: #fd5056;
    color: #ffffff;
    border: none;
    width: 42px;
    height: 42px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
}
.search-btn:hover {
    background: #e03d43;
    transform: scale(1.05);
}

/* ─── Sidebar Categories ─── */
.sidebar-category-list {
    background: #ffffff;
    border-radius: 16px;
    padding: 20px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
    border: 1px solid rgba(0, 0, 0, 0.05);
}
.sidebar-category-item {
    cursor: pointer;
    position: relative;
    transition: all 0.3s ease;
}
.sidebar-category-item .category-link-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 4px;
    color: #2c3e50;
    font-weight: 600;
    font-size: 15px;
    transition: all 0.3s ease;
}
.sidebar-category-item .category-count {
    font-size: 11px;
    background: rgba(0, 0, 0, 0.04);
    color: #7f8c8d;
    padding: 2px 8px;
    border-radius: 20px;
    font-weight: 600;
    transition: all 0.3s ease;
}
.category-separator {
    height: 1px;
    background-color: #dee2e6;
    width: 100%;
    transition: all 0.3s ease;
}

/* Active / Hover State */
.sidebar-category-item:hover .category-link-content,
.sidebar-category-item.active .category-link-content {
    color: #fd5056;
    transform: translateX(4px);
}
.sidebar-category-item:hover .category-count,
.sidebar-category-item.active .category-count {
    background: rgba(253, 80, 86, 0.08);
    color: #fd5056;
}
.sidebar-category-item:hover .category-separator,
.sidebar-category-item.active .category-separator {
    background-color: #ced4da;
}

/* ─── Blog Grid Wrapper & Loading Overlay ─── */
.blog-grid-wrapper {
    position: relative;
    min-height: 200px;
}
.blog-grid-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(255, 255, 255, 0.6); /* Low opacity backdrop */
    backdrop-filter: blur(3px);
    -webkit-backdrop-filter: blur(3px);
    z-index: 9999; /* Higher than headers/footers */
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    pointer-events: none;
}
.blog-grid-overlay.active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}
.blog-grid-spinner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}
.blog-grid-spinner .spinner-border {
    width: 2.5rem;
    height: 2.5rem;
    border-width: 3px;
}
.blog-grid-overlay-text {
    font-size: 14px;
    font-weight: 600;
    color: #475569;
    letter-spacing: 0.02em;
}

/* ─── Responsive: Ad Promo ─── */
@media (max-width: 768px) {
    .ad-promo-image-wrapper {
        padding-top: 60%;
    }
    .ad-promo-title {
        font-size: 20px;
    }
    .ad-promo-overlay {
        padding: 20px;
    }
}

/* ─── Responsive: Tablet (768px–991px) ─── */
@media (min-width: 768px) and (max-width: 991px) {
    .sticky-sidebar {
        position: relative;
        top: 0;
    }
    .sidebar-category-list {
        display: flex;
        flex-wrap: wrap;
        gap: 8px;
        padding: 14px;
    }
    .sidebar-category-item {
        flex: 0 0 auto;
    }
    .sidebar-category-item .category-link-content {
        padding: 8px 14px;
        font-size: 13px;
        gap: 8px;
        background: #f8fafc;
        border-radius: 8px;
        border: 1px solid #e2e8f0;
    }
    .sidebar-category-item.active .category-link-content {
        background: rgba(253, 80, 86, 0.06);
        border-color: rgba(253, 80, 86, 0.2);
    }
    .category-separator {
        display: none;
    }
    .sidebar-category-item:hover .category-link-content,
    .sidebar-category-item.active .category-link-content {
        transform: none;
    }
    .blog-card-image-wrapper {
        height: 180px;
    }
    .blog-card-content {
        padding: 14px 16px 14px;
    }
    .blog-card-title {
        font-size: 16px;
    }
    .blog-card-excerpt {
        font-size: 12px;
        min-height: 38px;
        max-height: 38px;
    }
    .blog-card-readmore {
        padding: 8px 16px;
        font-size: 11px;
    }
}

/* ─── Responsive: Mobile (≤767px) ─── */
@media (max-width: 767px) {
    .sticky-sidebar {
        position: relative;
        top: 0;
    }
    .sidebar-category-list {
        display: flex;
        flex-wrap: nowrap;
        overflow-x: auto;
        gap: 8px;
        padding: 12px;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        -ms-overflow-style: none;
    }
    .sidebar-category-list::-webkit-scrollbar {
        display: none;
    }
    .sidebar-category-item {
        flex: 0 0 auto;
    }
    .sidebar-category-item .category-link-content {
        padding: 8px 14px;
        font-size: 13px;
        gap: 8px;
        white-space: nowrap;
        background: #f8fafc;
        border-radius: 50px;
        border: 1px solid #e2e8f0;
    }
    .sidebar-category-item.active .category-link-content {
        background: rgba(253, 80, 86, 0.06);
        border-color: rgba(253, 80, 86, 0.2);
    }
    .category-separator {
        display: none;
    }
    .sidebar-category-item:hover .category-link-content,
    .sidebar-category-item.active .category-link-content {
        transform: none;
    }
    .blog-card-image-wrapper {
        height: 200px;
    }
    .blog-card-title {
        font-size: 16px;
    }
    .blog-card-readmore {
        padding: 8px 16px;
        font-size: 11px;
    }
    .blog-pagination {
        gap: 4px;
        margin-top: 28px;
    }
    .blog-page-btn {
        padding: 8px 12px;
        font-size: 12px;
    }
    .blog-page-num {
        width: 36px;
        height: 36px;
        font-size: 13px;
    }
}

/* ─── Responsive: Small phones (≤400px) ─── */
@media (max-width: 400px) {
    .blog-card-content {
        padding: 14px 14px 12px;
    }
    .blog-card-title {
        font-size: 15px;
    }
    .blog-card-meta {
        font-size: 11px;
    }
    .blog-page-btn span {
        display: none;
    }
}

.premium-blog-card {
    background: #ffffff;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
    border: 1px solid #e8ecf1;
    transition: all 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    height: 100%;
    display: flex;
    flex-direction: column;
    position: relative;
    text-decoration: none !important;
    color: inherit;
    cursor: pointer;
}
.premium-blog-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.1), 0 4px 12px rgba(253, 80, 86, 0.06);
    border-color: rgba(253, 80, 86, 0.2);
}
.premium-blog-card:hover .blog-card-image {
    transform: scale(1.08);
}
.premium-blog-card:hover .blog-card-image-overlay {
    opacity: 0.15;
}
.premium-blog-card:hover .blog-card-title {
    color: #fd5056;
}
.premium-blog-card:hover .blog-card-readmore {
    background: #e8454b;
    border-color: #e8454b;
    box-shadow: 0 6px 16px rgba(253, 80, 86, 0.35);
}
.premium-blog-card:hover .blog-card-readmore i {
    transform: translateX(3px);
}

/* ─── Card Image ─── */
.blog-card-image-wrapper {
    position: relative;
    width: 100%;
    height: 200px;
    overflow: hidden;
    flex-shrink: 0;
}
.blog-card-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.blog-card-image-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 40%, rgba(15, 23, 42, 0.6) 100%);
    opacity: 0;
    transition: opacity 0.35s ease;
    pointer-events: none;
}
.blog-card-category-badge {
    position: absolute;
    top: 14px;
    left: 14px;
    background: rgba(253, 80, 86, 0.92);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    color: #ffffff;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    padding: 4px 10px;
    border-radius: 6px;
    letter-spacing: 0.8px;
    z-index: 2;
}

/* ─── Card Content ─── */
.blog-card-content {
    padding: 18px 20px 16px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}
.blog-card-meta {
    display: flex;
    align-items: center;
    gap: 0;
    font-size: 12px;
    color: #94a3b8;
    margin-bottom: 10px;
    font-weight: 500;
}
.blog-card-meta .meta-date {
    display: inline-flex;
    align-items: center;
    gap: 5px;
}
.blog-card-meta .meta-date i {
    font-size: 13px;
    color: #cbd5e1;
}
.blog-card-meta .meta-dot {
    width: 3px;
    height: 3px;
    border-radius: 50%;
    background: #cbd5e1;
    margin: 0 10px;
    flex-shrink: 0;
}
.blog-card-meta .meta-author {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* ─── Card Title ─── */
.blog-card-title {
    font-size: 18px;
    font-weight: 700;
    line-height: 1.4;
    margin: 0 0 10px;
    color: #1e293b;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: color 0.3s ease;
    letter-spacing: -0.02em;
}

/* ─── Card Excerpt ─── */
.blog-card-excerpt {
    font-size: 13px;
    color: #64748b;
    line-height: 1.6;
    margin: 0 0 auto;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 42px;
    max-height: 42px;
}

/* ─── Card Footer ─── */
.blog-card-footer {
    margin-top: auto;
    padding-top: 20px;
}
.blog-card-readmore {
    color: #ffffff;
    font-size: 12px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    text-decoration: none;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    background: #fd5056;
    border: 1.5px solid #fd5056;
    padding: 10px 22px;
    border-radius: 50px;
}
.blog-card-readmore i {
    font-size: 16px;
    transition: transform 0.3s ease;
}

/* ─── Empty State ─── */
.blog-empty-state {
    text-align: center;
    padding: 60px 20px;
}
.blog-empty-state i {
    font-size: 48px;
    color: #cbd5e1;
    margin-bottom: 16px;
    display: block;
}
.blog-empty-state h4 {
    color: #475569;
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 6px;
}
.blog-empty-state p {
    color: #94a3b8;
    font-size: 14px;
    margin: 0;
}

.blog-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin-top: 40px;
    padding: 20px 0 10px;
    flex-wrap: wrap;
}
.blog-page-btn {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 9px 18px;
    font-size: 13px;
    font-weight: 600;
    color: #475569;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.25s ease;
    white-space: nowrap;
}
.blog-page-btn i {
    font-size: 18px;
    line-height: 1;
}
.blog-page-btn:hover:not(.disabled) {
    background: #fd5056;
    color: #ffffff;
    border-color: #fd5056;
    box-shadow: 0 4px 12px rgba(253, 80, 86, 0.25);
}
.blog-page-btn.disabled {
    color: #cbd5e1;
    background: #f8fafc;
    border-color: #f1f5f9;
    cursor: not-allowed;
    pointer-events: none;
}
.blog-page-numbers {
    display: flex;
    align-items: center;
    gap: 4px;
}
.blog-page-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    font-size: 14px;
    font-weight: 600;
    color: #475569;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.25s ease;
}
.blog-page-num:hover:not(.active) {
    background: #f1f5f9;
    border-color: #cbd5e1;
    color: #1e293b;
}
.blog-page-num.active {
    background: #fd5056;
    color: #ffffff;
    border-color: #fd5056;
    box-shadow: 0 4px 12px rgba(253, 80, 86, 0.3);
}
.blog-page-dots {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 40px;
    font-size: 16px;
    color: #94a3b8;
    letter-spacing: 2px;
    user-select: none;
}

