html { scroll-behavior: smooth; }

@media only screen and (max-width:768px) {
    .blog-sec.desktop-view { display: none !important; }
    .blog-section-mobile.mobile-view { display: block !important; }

    .category-header {
        cursor: pointer;
        display: flex;
        justify-content: space-between;
        align-items: center;
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        border-bottom: 1px solid transparent;
        background-color: #1f5183;
        padding: 10px 20px;
        position: relative;
        z-index: 2;
    }
    .category-header:hover { background-color: #2a6bb0; }
    .category-header.active { background-color: #193a64 !important; }
    .category-header.active h3 { color: #ffffff !important; font-weight: 600; }

    .category-toggle-icon {
        display: flex;
        align-items: center;
        justify-content: center;
        color: #64748b;
        transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    }
    .category-header.active .category-toggle-icon { color: #ffffff; transform: rotate(180deg); }

    .category-content {
        display: none;
        background: #f8f9fa;
        overflow: hidden;
        transition: height 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    }
    .category-content.expanded { display: block; }

    .blog-mobile-card {
        background: white;
        border-radius: 8px;
        overflow: hidden;
        box-shadow: 0 2px 8px rgba(0,0,0,0.1);
        margin: 10px;
        height: auto;
    }
    .template15-wrap-main-img { height: 180px; overflow: hidden; }
    .template15-wrap-main-img img { width: 100%; height: 100%; object-fit: cover; }
    .template15-wrap-main-content { padding: 15px; }
    .template15-wrap-main-content span { color: #6b7280; font-size: 0.875rem; }
    .template15-wrap-main-content h4 { margin: 8px 0; font-size: 1.1rem; color: #1f2937; line-height: 1.4; }
    .template15-wrap-main-content p { color: #4b5563; font-size: 0.9rem; line-height: 1.5; margin-bottom: 10px; }
    .blog-readmore { color: #1f5183; font-weight: 600; }

    .skeleton-box { transition: opacity 0.3s ease; }
    .skeleton-box[data-skeleton] {
        background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
        background-size: 200% 100%;
        animation: loading 1.5s infinite;
    }
    .skeleton-box:not([data-skeleton]) { background: none !important; animation: none !important; }
    @keyframes loading {
        0% { background-position: 200% 0; }
        100% { background-position: -200% 0; }
    }

    .m-container {
        margin-bottom: 10px;
        margin-top: 10px;
        margin-left: 10px;
        border: 1px solid #e2e8f0;
        overflow: hidden;
        border-radius: 8px;
        background: white;
        transition: box-shadow 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    }
    .m-container.active-container { box-shadow: 0 4px 12px rgba(37,99,235,0.15); }
    .swiper-container { padding: 15px 0; }

    .navigation-container {
        padding: 25px 20px;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 20px;
    }
    .swiper-pagination { display: flex; align-items: center; justify-content: center; gap: 8px; }
    .swiper-pagination-bullet { width: 8px; height: 8px; background: #cbd5e1; opacity: 0.6; transition: all 0.3s ease; margin: 0 !important; }
    .swiper-pagination-bullet-active { background: #1f5183; opacity: 1; transform: scale(1.2); }
}

@media only screen and (min-width:769px) {
    .blog-section-mobile.mobile-view { display: none !important; }
    .blog-sec.desktop-view { display: block !important; }
}

.blog-sec .resc-card { transition: none; }
.blog-sec .resc-card:hover { transform: none; box-shadow: none; text-decoration: none; }

.blog-card-date { font-size: 12px; color: #94a3b8; margin-bottom: 4px; }
.blog-card-title {
    font-size: 13px;
    font-weight: 600;
    color: #1e293b;
    line-height: 1.4;
    margin: 0;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

/* ─── Sidebar & panel header (matches v2blogs / resources design) ─── */
.blog-sec .resc-left-sidebar .resc-sidebar-inner {
    background: #e3e5ea;
}
.blog-sec .resc-left-sidebar .resc-sidebar-title {
    background: transparent;
    color: #28a745;
    border-bottom: 8px solid #fff;
    font-size: 15px;
}
.blog-sec .resc-left-sidebar .resc-sidebar-title i {
    color: #28a745;
    opacity: 1;
}
.blog-sec .resc-left-sidebar .resc-cat-link {
    color: #333;
    background: transparent;
    border-left-color: transparent;
}
.blog-sec .resc-left-sidebar .resc-cat-link:hover {
    background: rgba(0,0,0,0.08);
    color: #15416e;
}
.blog-sec .resc-left-sidebar .resc-cat-link.active {
    background: #15416e;
    color: #fff;
    font-weight: 600;
    border-left-color: #15416e;
}
.blog-sec .resc-main-content .resc-panel-header {
    background: transparent;
}
.blog-sec .resc-main-content .resc-panel-title {
    color: #1f5183;
}
.blog-sec .resc-main-content .resc-panel-accent {
    background: #15416e;
}
