html { scroll-behavior: smooth; }

@media only screen and (max-width:768px) {

    .desktop-view .wpb_wrapper.rsp {
        display: none !important;
    }

    .resources-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;
    }

    .resources-mobile-card {
        background: white;
        border-radius: 8px;
        overflow: hidden;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
        margin: 10px;
        height: auto;
    }

    .card_img {
        position: relative;
        overflow: hidden;
    }

    .cn-hover-img {
        height: 280px;
        overflow: hidden;
    }

    .cn-hover-img img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

    .cn-content {
        padding: 15px;
    }

    .cn-content p {
        color: #4b5563;
        font-size: 0.9rem;
        line-height: 1.5;
        margin: 0;
    }

    .bottom_strip {
        display: flex;
        justify-content: space-between;
        padding: 10px 15px;
        background: #f8f9fa;
        border-top: 1px solid #e5e7eb;
    }

    .text_bottom_strip {
        font-size: 0.8rem;
        color: #6b7280;
        font-weight: 500;
    }

    .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);
    }

    .count-nav-box {
        position: absolute;
        right: 20px;
        top: 93%;
        transform: translateY(-50%);
        padding: 4px 8px;
        border-radius: 4px;
        font-size: 0.8rem;
        color: #1f5183;
        font-weight: 500;
    }
}

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

    .desktop-view .wpb_wrapper.rsp {
        display: block !important;
    }
}

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

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