:root {
    --primary-color: #006fe3;
    --dark-color: #1c2b33;
    --light-bg: #f7f9fc;
    --border-color: #e8edf5;
    --third-color: #001c37;
    --border: #e7edf5;
}

.blog-wrapper {
    padding: 60px 0;
}

/* LEFT SIDEBAR */
.blog-sidebar {
    position: sticky;
    top: 90px;
    height: calc(100vh - 110px);
    /* overflow-y: auto; */
    background: var(--third-color);
    border-radius: 15px;
    overflow: hidden;
    padding: 25px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.06);
    border: 1px solid var(--border-color);
}

.search-box input {
    height: 40px;
    border: 1px solid #dce4ef;
}

.recent-post-item {
    display: flex;
    gap: 14px;
    border-bottom: 1px dashed #dfe6ef;
    transition: 0.3s ease;
}

.recent-post-item:hover {
    transform: translateX(5px);
}

.recent-post-content h4 {
    line-height: 1.5;
}

/* BLOG CONTENT */
.blog-content {
    padding: 40px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.06);
    border: 1px solid var(--third-color);
}

.blog-banner img {
    width: 100%;
    /* height: 450px; */
    max-height: 320px;
    object-fit: cover;
}

.meta-badge {
    background: #eef4ff;
    color: var(--primary-color);
    padding: 10px 18px;
    border-radius: 50px;
}

.inner-section h2,
.inner-section h3,
.inner-section h4 {
    color: var(--dark-color);
    margin-top: 30px;
    margin-bottom: 18px;
    font-weight: 700;
}

.inner-section p {
    font-size: 1rem;
    line-height: 1.95;
    color: #000;
}

.inner-section ul {
    padding-left: 20px;
    margin-bottom: 20px;
}

.inner-section ul li {
    margin-bottom: 12px;
    color: #4d5a6d;
    line-height: 1.8;
}

/* RELATED BLOGS */

.section-heading {
    color: var(--primary-color);
}

.related-card {
    border: 1px solid #e7edf5;
    transition: 0.4s ease;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.04);
}

.related-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
}

.related-card img {
    max-height: 200px;
    object-fit: cover;
}

.related-card-body h5 {
    line-height: 1.6;
}

.blogSearchDesc {
    font-size: 0.85rem;
    line-height: 1.6;
}

.read-more-btn {
    color: var(--primary-color);
}

/* SOCIAL */
.social-wrapper {
    padding: 30px;
    background: var(--third-color);
    border-radius: 22px;
    border: 1px solid #e7edf5;
}

.social-links a {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    color: #fff;
    font-size: 1.2rem;
    transition: 0.3s ease;
    text-decoration: none;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.06);
}

/* Facebook */
.social-links a.facebook {
    background: #1877f2;
}

/* YouTube */
.social-links a.youtube {
    background: #ff0000;
}

/* LinkedIn */
.social-links a.linkedin {
    background: #0a66c2;
}

/* Instagram */
.social-links a.instagram {
    background: linear-gradient(45deg,
            #f09433,
            #e6683c,
            #dc2743,
            #cc2366,
            #bc1888);
}

.social-links a:hover {
    background: var(--primary-color);
    transform: translateY(-5px);
}

/* AUTHOR */
.author-box {
    margin-top: 40px;
    padding: 30px 18px;
    border-radius: 22px;
    border: 1px solid var(--third-color);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.04);
}

.author-logo {
    max-width: 150px;
}

.author-content h4 {
    color: #111;
}

.author-content p {
    line-height: 1.8;
}

/* Blog Page */
.blog-page {
    padding: 50px 0 80px;
}

.top-blog-header {
    background: var(--third-color);
    border-radius: 32px;
    padding: 45px;
    margin-bottom: 50px;
    border: 1px solid #edf2f7;
    box-shadow: 0 15px 45px rgba(0, 0, 0, 0.05);
}

.top-blog-header::before {
    content: "";
    position: absolute;
    width: 320px;
    height: 320px;
    background: rgba(10, 102, 194, 0.08);
    border-radius: 50%;
    top: -120px;
    right: -120px;
}

.mini-label {
    display: inline-block;
    padding: 8px 16px;
    border-radius: 40px;
    background: #eef4ff;
    color: var(--primary-color);
    font-size: 0.8rem;
}

.blog-header-content h2 {
    line-height: 1.3;
    max-width: 700px;
}

.blog-header-content p {
    line-height: 1.9;
    max-width: 720px;
}

.category-wrapper {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.category-btn {
    padding: 11px 20px;
    border-radius: 50px;
    background: #f3f7fd;
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 700;
    transition: 0.35s ease;
}

.category-btn:hover,
.category-btn.active {
    background: var(--primary-color);
    color: #fff;
}

.blog-header-card {
    background: linear-gradient(135deg,
            var(--third-color),
            var(--primary-color));
    border-radius: 28px;
    padding: 35px;
    height: 100%;
    position: relative;
}

.blog-header-card::before {
    content: "";
    position: absolute;
    width: 180px;
    height: 180px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    top: -60px;
    right: -60px;
}

.stat-box {
    flex: 1;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 22px;
    padding: 22px;
    backdrop-filter: blur(12px);
}

.stat-box p {
    color: #d7e7ff;
}

.custom-carousel-indicators {
    position: absolute;
    left: 50%;
    bottom: 25px;
    transform: translateX(-50%);
    z-index: 15;
    display: flex;
    align-items: center;
    gap: 12px;
}

.custom-carousel-indicators button {
    width: 12px;
    height: 12px;
    border: none;
    border-radius: 50px;
    background: #cbd5e1;
    transition: 0.35s ease;
    padding: 0;
}

.custom-carousel-indicators button.active {
    width: 38px;
    background: var(--primary-color);
}

.custom-carousel-indicators button:hover {
    background: var(--primary-color);
}

.hero-slider {
    border-radius: 30px;
    min-height: 520px;
}

.hero-slide img {
    height: 520px;
    /* object-fit: cover; */
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top,
            rgba(0, 0, 0, 0.85),
            rgba(0, 0, 0, 0.2));
}

.hero-content {
    position: absolute;
    bottom: 40px;
    left: 40px;
    right: 40px;
}

.hero-category {
    background: rgba(255, 255, 255, 0.2);
    padding: 7px 15px;
    border-radius: 30px;
    font-size: 0.8rem;
    backdrop-filter: blur(10px);
}

.hero-content h2 {
    line-height: 1.4;
}

.hero-content p {
    line-height: 1.8;
    margin-bottom: 20px;
    color: #e4e4e4;
}

.hero-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 22px;
    border-radius: 50px;
    background: #fff;
    color: #111;
    transition: 0.3s ease;
}

.hero-btn:hover {
    background: var(--primary-color);
    color: #fff;
}

.section-title {
    font-size: 2.3rem;
    color: var(--dark-color);
    margin-bottom: 30px;
}

.blog-card {
    border-radius: 24px;
    border: 1px solid var(--border);
    transition: 0.4s ease;
    box-shadow: 0 8px 8px rgba(0, 0, 0, 0.04);
}

.blog-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
}

.blog-card img {
    height: 240px;
    object-fit: cover;
    transition: 0.5s ease;
}

.blog-card:hover img {
    transform: scale(1.08);
}

.blog-card-body {
    padding: 25px;
}

.blog-badge {
    background: #eef4ff;
    color: var(--primary-color);
    display: inline-block;
    padding: 6px 14px;
    border-radius: 30px;
    font-size: 0.75rem;
}

.blog-card-body h4 {
    font-size: 1.2rem;
    line-height: 1.6;
    color: #111;
    margin-bottom: 12px;
}

.blog-card-body p {
    color: #6b7280;
    line-height: 1.8;
}

.blog-read-btn {
    color: var(--primary-color);
}

.category-page {
    padding: 60px 0 80px;
}

/* =========================
        FEATURED BLOG
    ========================== */

.featured-blog {
    border-radius: 32px;
    min-height: 540px;
}

.featured-blog img {
    height: 540px;
    object-fit: cover;
}

.featured-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top,
            rgba(0, 0, 0, 0.88),
            rgba(0, 0, 0, 0.2));
}

.featured-content {
    left: 40px;
    right: 40px;
    bottom: 40px;
    z-index: 2;
}

.featured-badge {
    padding: 8px 18px;
    border-radius: 40px;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(12px);
    font-size: 0.8rem;
}

.featured-content h2 {
    font-size: 2.6rem;
    line-height: 1.4;
}

.featured-content p {
    color: #ddd;
    line-height: 1.9;
    max-width: 850px;
    margin-bottom: 25px;
}

.featured-btn {
    background: #fff;
    color: #111;
    padding: 14px 24px;
    border-radius: 50px;
    transition: 0.35s ease;
}

.featured-btn:hover {
    background: var(--primary-color);
    color: #fff;
}

/* =========================
        PAGINATION
    ========================== */

.categoryBlogSlider {
    padding-bottom: 10px;
}

/* .categoryBlogSlider .swiper-slide {
    height: auto;
    display: flex;
} */

.slider-btn {
    width: 52px;
    height: 52px;
    border: none;
    border-radius: 50%;
    background: #fff;
    color: #111;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    transition: 0.35s ease;
}

.slider-btn:hover {
    background: var(--primary-color);
    color: #fff;
}

.slider-btn-disabled {
    opacity: 0.4;
    pointer-events: none;
}

/* .swiper {
    width: 100%;
}

.swiper-wrapper {
    align-items: stretch;
}

.categoryBlogSlider .swiper-wrapper {
    align-items: stretch;
} */

@media (max-width: 991px) {
    .blog-sidebar {
        position: relative;
        top: 0;
        height: auto;
        margin-bottom: 30px;
    }

    .blog-content {
        padding: 25px;
    }

    .blog-banner img {
        max-height: 250px;
    }

    .section-title {
        font-size: 1.8rem;
    }

    .hero-content {
        left: 20px;
        right: 20px;
        bottom: 20px;
    }

    .hero-content h2 {
        font-size: 1.3rem;
    }

    .hero-slide img {
        height: 400px;
    }

    .featured-content h2 {
        font-size: 2rem;
    }

    .top-blog-header {
        padding: 30px;
    }

    .blog-header-card {
        margin-top: 10px;
        padding: 30px 20px;
    }
}

@media (max-width: 767px) {
    .featured-blog {
        min-height: 420px;
    }

    .featured-blog img {
        height: 420px;
    }

    .featured-content {
        left: 20px;
        right: 20px;
        bottom: 20px;
    }

    .featured-content h1 {
        font-size: 1.4rem;
    }

    .top-blog-header {
        padding: 25px;
    }

    .category-wrapper {
        padding-bottom: 8px;
    }

    .category-wrapper::-webkit-scrollbar {
        display: none;
    }

    .blog-mini-stats {
        flex-direction: column;
    }

    .category-btn {
        font-size: 14px;
        padding: 11px 16px;
    }

    .blog-page {
        padding-top: 20px;
    }

    .blog-wrapper {
        padding: 30px 0;
    }
}