/*! Elementor Course Add-on - Frontend Styles */
.eca-wrapper {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    position: relative;
    box-sizing: border-box;
    --eca-item-min-width: 160px;
    --eca-card-bg: #ffffff;
    --eca-card-bg-hover: #ffffff;
    --eca-text-color: inherit;
    --eca-text-hover: inherit;
    --eca-icon-color: #6366f1;
    --eca-icon-hover: #6366f1;
    --eca-border-color: #6366f1;
    --eca-hover-intensity: 1;
}
.eca-wrapper *, .eca-wrapper *::before, .eca-wrapper *::after {
    box-sizing: border-box;
}
.eca-items {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    position: relative;
    z-index: 1;
}
.eca-items.eca-layout-flex {
    display: flex;
    flex-wrap: wrap;
}
.eca-items.eca-layout-flex .eca-item {
    flex: 1 1 0;
    min-width: var(--eca-item-min-width);
}
.eca-items.eca-layout-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
}
.eca-items.eca-layout-scroll {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    scroll-snap-type: x mandatory;
}
.eca-items.eca-layout-scroll .eca-item {
    flex: 0 0 var(--eca-item-min-width);
    scroll-snap-align: start;
}
.eca-item {
    position: relative;
    transition: all 0.3s ease;
}
.eca-card {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 24px 20px;
    background: var(--eca-card-bg);
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    text-decoration: none;
    cursor: pointer;
    height: 100%;
    transition: all 0.3s ease;
    overflow: hidden;
}
.eca-card:hover {
    background: var(--eca-card-bg-hover);
    border-color: #d1d5db;
}
a.eca-card {
    color: inherit;
}
a.eca-card:hover {
    color: inherit;
}
.eca-icon-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    border-radius: 12px;
    background: #eef2ff;
    margin-bottom: 14px;
    flex-shrink: 0;
    transition: all 0.3s ease;
}
.eca-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    color: var(--eca-icon-color);
    fill: var(--eca-icon-color);
    line-height: 1;
}
.eca-icon svg {
    width: 28px;
    height: 28px;
    fill: var(--eca-icon-color);
}
.eca-icon img {
    width: 28px;
    height: 28px;
    object-fit: contain;
}
.eca-card:hover .eca-icon {
    color: var(--eca-icon-hover);
    fill: var(--eca-icon-hover);
}
.eca-card:hover .eca-icon svg {
    fill: var(--eca-icon-hover);
}
.eca-icon-fallback {
    color: #6366f1;
}
.eca-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    width: 100%;
}
.eca-category-name {
    font-size: 16px;
    font-weight: 600;
    color: var(--eca-text-color);
    margin: 0;
    line-height: 1.3;
    transition: color 0.3s ease;
}
.eca-card:hover .eca-category-name {
    color: var(--eca-text-hover);
}
.eca-description {
    font-size: 13px;
    color: #6b7280;
    margin: 4px 0 0;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.eca-count {
    font-size: 12px;
    color: #9ca3af;
    margin-top: 6px;
    font-weight: 500;
}
.eca-badge {
    position: absolute;
    z-index: 2;
    display: inline-block;
    padding: 3px 10px;
    font-size: 11px;
    font-weight: 700;
    color: #fff;
    border-radius: 20px;
    line-height: 1.4;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}
.eca-badge-top-right { top: 8px; right: 8px; }
.eca-badge-top-left { top: 8px; left: 8px; }
.eca-badge-bottom-right { bottom: 8px; right: 8px; }
.eca-badge-bottom-left { bottom: 8px; left: 8px; }

/* Swiper overrides */
.eca-wrapper .swiper {
    overflow: hidden;
    width: 100%;
}
.eca-wrapper .swiper-wrapper {
    display: flex;
    gap: 0;
}
.eca-wrapper .swiper-slide {
    height: auto;
}
.eca-wrapper .swiper-slide .eca-item {
    width: 100%;
}
.eca-wrapper .swiper-pagination {
    position: relative;
    margin-top: 16px;
    bottom: auto !important;
}
.eca-wrapper .swiper-pagination-bullet {
    background: #d1d5db;
    opacity: 1;
    transition: all 0.3s ease;
}
.eca-wrapper .swiper-pagination-bullet-active {
    background: #6366f1;
    width: 24px;
    border-radius: 4px;
}
.eca-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    color: #6b7280;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}
.eca-nav:hover {
    background: #f9fafb;
    color: #374151;
    box-shadow: 0 4px 12px rgba(0,0,0,0.12);
}
.eca-nav-prev { left: -18px; }
.eca-nav-next { right: -18px; }
.eca-nav.swiper-button-disabled {
    opacity: 0.35;
    pointer-events: none;
}

/* View All Button */
.eca-footer {
    margin-top: 20px;
    text-align: center;
}
.eca-view-all {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 24px;
    background: #6366f1;
    color: #fff;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 1px solid transparent;
}
.eca-view-all:hover {
    background: #4f46e5;
    color: #fff;
}
.eca-view-all svg {
    transition: transform 0.3s ease;
}
.eca-view-all:hover .eca-view-all-icon:last-child svg {
    transform: translateX(4px);
}
.eca-view-all-icon {
    display: flex;
    align-items: center;
    line-height: 0;
}

/* Glassmorphism */
.eca-glass {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

/* Neumorphism */
.eca-neumorphism {
    background: #eef0f4;
    border: none;
    box-shadow: 8px 8px 16px #d1d3d7, -8px -8px 16px #ffffff;
}
.eca-neumorphism .eca-card {
    background: #eef0f4;
    border: none;
    box-shadow: inset 3px 3px 6px #d1d3d7, inset -3px -3px 6px #ffffff;
}
.eca-neumorphism .eca-card:hover {
    box-shadow: inset 4px 4px 8px #d1d3d7, inset -4px -4px 8px #ffffff;
}

/* Dark Mode */
.eca-dark .eca-card {
    background: #1f2937;
    border-color: #374151;
}
.eca-dark .eca-category-name { color: #f9fafb; }
.eca-dark .eca-description { color: #9ca3af; }
.eca-dark .eca-count { color: #6b7280; }
.eca-dark .eca-icon-wrap { background: #374151; }
.eca-dark .eca-card:hover {
    background: #293548;
    border-color: #4b5563;
}

/* Sticky */
.eca-sticky {
    position: sticky;
    top: 24px;
    z-index: 100;
}

/* Equal Height */
.eca-equal-height .eca-item {
    display: flex;
}
.eca-equal-height .eca-card {
    flex: 1;
}

/* Hover Effects */
.eca-hover-lift .eca-card:hover {
    transform: translateY(-6px);
}
.eca-hover-scale .eca-card:hover {
    transform: scale(1.05);
}
.eca-hover-glow .eca-card:hover {
    box-shadow: 0 0 24px rgba(99, 102, 241, 0.25);
}
.eca-hover-pulse .eca-card:hover {
    animation: eca-pulse 0.6s ease-in-out;
}
@keyframes eca-pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.06); }
}
.eca-hover-float .eca-card {
    animation: eca-float 3s ease-in-out infinite;
}
@keyframes eca-float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-6px); }
}
.eca-hover-rotate .eca-card:hover {
    transform: rotate(2deg);
}
.eca-hover-tilt .eca-card:hover {
    transform: perspective(800px) rotateX(4deg) rotateY(4deg);
}

/* Animated Border */
.eca-border-animated .eca-card::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    padding: 2px;
    background: conic-gradient(var(--eca-border-color), transparent, var(--eca-border-color));
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0;
    transition: opacity 0.3s ease;
    animation: eca-border-spin 2s linear infinite;
}
@keyframes eca-border-spin {
    to { transform: rotate(360deg); }
}
.eca-border-animated .eca-card:hover::before {
    opacity: 1;
}

/* Gradient Border */
.eca-border-gradient .eca-card {
    border: 2px solid transparent;
    background-clip: padding-box;
    position: relative;
}
.eca-border-gradient .eca-card::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    padding: 2px;
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0;
    transition: opacity 0.3s ease;
}
.eca-border-gradient .eca-card:hover::before {
    opacity: 1;
}

/* Entrance Animations */
.eca-anim-fade .eca-item {
    opacity: 0;
    animation: eca-fadeIn 0.6s ease forwards;
}
.eca-anim-fade-up .eca-item {
    opacity: 0;
    transform: translateY(24px);
    animation: eca-fadeUp 0.6s ease forwards;
}
.eca-anim-fade-down .eca-item {
    opacity: 0;
    transform: translateY(-24px);
    animation: eca-fadeDown 0.6s ease forwards;
}
.eca-anim-slide-up .eca-item {
    opacity: 0;
    transform: translateY(40px);
    animation: eca-slideUp 0.6s ease forwards;
}
.eca-anim-zoom-in .eca-item {
    opacity: 0;
    transform: scale(0.8);
    animation: eca-zoomIn 0.6s ease forwards;
}
.eca-anim-bounce-in .eca-item {
    opacity: 0;
    animation: eca-bounceIn 0.6s ease forwards;
}
.eca-anim-flip .eca-item {
    opacity: 0;
    transform: perspective(600px) rotateX(-20deg);
    animation: eca-flip 0.6s ease forwards;
}
@keyframes eca-fadeIn { to { opacity: 1; } }
@keyframes eca-fadeUp { to { opacity: 1; transform: translateY(0); } }
@keyframes eca-fadeDown { to { opacity: 1; transform: translateY(0); } }
@keyframes eca-slideUp { to { opacity: 1; transform: translateY(0); } }
@keyframes eca-zoomIn { to { opacity: 1; transform: scale(1); } }
@keyframes eca-bounceIn {
    0% { opacity: 0; transform: scale(0.3); }
    50% { transform: scale(1.05); }
    70% { transform: scale(0.95); }
    100% { opacity: 1; transform: scale(1); }
}
@keyframes eca-flip { to { opacity: 1; transform: perspective(600px) rotateX(0); } }

/* Floating Animation */
.eca-float-anim .eca-card {
    animation: eca-floatRandom 3s ease-in-out infinite;
}
.eca-float-anim .eca-item:nth-child(2n) .eca-card { animation-delay: 0.5s; }
.eca-float-anim .eca-item:nth-child(3n) .eca-card { animation-delay: 1s; }
@keyframes eca-floatRandom {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}

/* Fallback */
.eca-fallback {
    padding: 40px 20px;
    text-align: center;
    color: #6b7280;
    font-size: 14px;
}

/* Accessibility */
.eca-card:focus-visible {
    outline: 2px solid #6366f1;
    outline-offset: 2px;
}

/* RTL */
.rtl .eca-nav-prev { left: auto; right: -18px; }
.rtl .eca-nav-prev svg { transform: rotate(180deg); }
.rtl .eca-nav-next { right: auto; left: -18px; }
.rtl .eca-nav-next svg { transform: rotate(180deg); }
.rtl .eca-badge-top-right { right: auto; left: 8px; }
.rtl .eca-badge-top-left { left: auto; right: 8px; }
.rtl .eca-badge-bottom-right { right: auto; left: 8px; }
.rtl .eca-badge-bottom-left { left: auto; right: 8px; }

/* Responsive */
@media (max-width: 1024px) {
    .eca-items.eca-layout-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}
@media (max-width: 767px) {
    .eca-items.eca-layout-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ===== Featured Free Courses Widget ===== */
.eca-ffc-wrapper {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    position: relative;
    box-sizing: border-box;
    --eca-ffc-card-bg: #ffffff;
    --eca-ffc-card-bg-hover: #ffffff;
}
.eca-ffc-wrapper *, .eca-ffc-wrapper *::before, .eca-ffc-wrapper *::after {
    box-sizing: border-box;
}
.eca-ffc-header {
    text-align: center;
    margin-bottom: 32px;
}
.eca-ffc-section-title {
    font-size: 28px;
    font-weight: 700;
    color: #111827;
    margin: 0 0 8px;
    line-height: 1.2;
}
.eca-ffc-section-subtitle {
    font-size: 16px;
    color: #6b7280;
    margin: 0;
    line-height: 1.5;
}
.eca-ffc-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    position: relative;
    z-index: 1;
}
.eca-ffc-item {
    position: relative;
    transition: all 0.3s ease;
}
.eca-ffc-card {
    position: relative;
    display: flex;
    flex-direction: column;
    background: var(--eca-ffc-card-bg);
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    overflow: hidden;
    text-decoration: none;
    cursor: pointer;
    height: 100%;
    transition: all 0.3s ease;
    color: inherit;
}
.eca-ffc-card:hover {
    background: var(--eca-ffc-card-bg-hover);
    border-color: #d1d5db;
}
.eca-ffc-equal-height .eca-ffc-card {
    height: 100%;
}
.eca-ffc-equal-height .eca-ffc-item {
    display: flex;
}

/* Image */
.eca-ffc-image-wrap {
    position: relative;
    overflow: hidden;
    flex-shrink: 0;
}
.eca-ffc-image {
    width: 100%;
    display: block;
    object-fit: cover;
    aspect-ratio: 16/9;
    transition: all 0.5s ease;
}
.eca-ffc-img-zoom .eca-ffc-card:hover .eca-ffc-image {
    transform: scale(1.08);
}
.eca-ffc-img-blur .eca-ffc-card:hover .eca-ffc-image {
    filter: blur(2px);
    transform: scale(1.05);
}
.eca-ffc-image-overlay {
    position: absolute;
    inset: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

/* Badge */
.eca-ffc-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    z-index: 2;
    display: inline-block;
    padding: 4px 12px;
    font-size: 11px;
    font-weight: 700;
    color: #fff;
    border-radius: 6px;
    line-height: 1.4;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

/* Wishlist */
.eca-ffc-wishlist {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    background: rgba(255,255,255,0.9);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    color: #ef4444;
    transition: all 0.3s ease;
    padding: 0;
    line-height: 0;
}
.eca-ffc-wishlist:hover {
    background: #fff;
    transform: scale(1.1);
    color: #dc2626;
}

/* Body */
.eca-ffc-body {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 18px;
    flex: 1;
}
.eca-ffc-category {
    font-size: 11px;
    font-weight: 600;
    color: #6366f1;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.eca-ffc-title {
    font-size: 16px;
    font-weight: 600;
    color: #1f2937;
    margin: 0;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.eca-ffc-card:hover .eca-ffc-title {
    color: #6366f1;
}
.eca-ffc-description {
    font-size: 13px;
    color: #6b7280;
    margin: 0;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.eca-ffc-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    margin: 4px 0;
}
.eca-ffc-instructor {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: #374151;
    font-weight: 500;
}
.eca-ffc-instructor-avatar {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    object-fit: cover;
}
.eca-ffc-platform {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 12px;
    color: #6b7280;
}
.eca-ffc-platform-logo {
    width: 16px;
    height: 16px;
    object-fit: contain;
}

/* Stats */
.eca-ffc-stats {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
    padding: 10px 0;
    border-top: 1px solid #f3f4f6;
    border-bottom: 1px solid #f3f4f6;
}
.eca-ffc-stat {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 12px;
    color: #9ca3af;
    font-weight: 500;
}
.eca-ffc-stat svg {
    flex-shrink: 0;
}
.eca-ffc-rating {
    display: inline-flex;
    align-items: center;
    gap: 2px;
}
.eca-ffc-rating svg {
    flex-shrink: 0;
}
.eca-ffc-rating-text {
    font-size: 12px;
    font-weight: 600;
    color: #f59e0b;
    margin-left: 2px;
}

/* Footer Row */
.eca-ffc-footer-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-top: auto;
}
.eca-ffc-difficulty {
    font-size: 11px;
    font-weight: 600;
    padding: 3px 10px;
    border-radius: 20px;
    text-transform: capitalize;
}
.eca-ffc-difficulty--beginner { background: #d1fae5; color: #065f46; }
.eca-ffc-difficulty--intermediate { background: #dbeafe; color: #1e40af; }
.eca-ffc-difficulty--advanced { background: #fce7f3; color: #9d174d; }
.eca-ffc-difficulty--all { background: #f3f4f6; color: #374151; }
.eca-ffc-price {
    font-size: 14px;
    font-weight: 700;
    color: #10b981;
}
.eca-ffc-price--free {
    color: #10b981;
}

/* Button */
.eca-ffc-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 10px 20px;
    background: #6366f1;
    color: #fff;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    margin-top: 4px;
    text-align: center;
}
.eca-ffc-card:hover .eca-ffc-btn {
    background: #4f46e5;
}
.eca-ffc-btn-glow .eca-ffc-btn:hover {
    box-shadow: 0 0 20px rgba(99, 102, 241, 0.4);
}

/* View All */
.eca-ffc-footer {
    text-align: center;
    margin-top: 32px;
}
.eca-ffc-view-all {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 28px;
    background: #6366f1;
    color: #fff;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
}
.eca-ffc-view-all:hover {
    background: #4f46e5;
    color: #fff;
    gap: 12px;
}
.eca-ffc-view-all svg {
    transition: transform 0.3s ease;
}
.eca-ffc-view-all:hover svg {
    transform: translateX(4px);
}

/* Swiper overrides */
.eca-ffc-wrapper .swiper {
    overflow: hidden;
    width: 100%;
}
.eca-ffc-wrapper .swiper-wrapper {
    display: flex;
    gap: 0;
}
.eca-ffc-wrapper .swiper-slide {
    height: auto;
}
.eca-ffc-wrapper .swiper-slide .eca-ffc-item {
    width: 100%;
}
.eca-ffc-wrapper .swiper-pagination {
    position: relative;
    margin-top: 20px;
    bottom: auto !important;
}
.eca-ffc-wrapper .swiper-pagination-bullet {
    background: #d1d5db;
    opacity: 1;
    transition: all 0.3s ease;
}
.eca-ffc-wrapper .swiper-pagination-bullet-active {
    background: #6366f1;
    width: 24px;
    border-radius: 4px;
}
.eca-ffc-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    color: #6b7280;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}
.eca-ffc-nav:hover {
    background: #f9fafb;
    color: #374151;
    box-shadow: 0 4px 12px rgba(0,0,0,0.12);
}
.eca-ffc-nav-prev { left: -18px; }
.eca-ffc-nav-next { right: -18px; }
.eca-ffc-nav.swiper-button-disabled {
    opacity: 0.35;
    pointer-events: none;
}

/* Dark Mode */
.eca-ffc-dark .eca-ffc-card {
    background: #1f2937;
    border-color: #374151;
}
.eca-ffc-dark .eca-ffc-section-title { color: #f9fafb; }
.eca-ffc-dark .eca-ffc-section-subtitle { color: #9ca3af; }
.eca-ffc-dark .eca-ffc-title { color: #f9fafb; }
.eca-ffc-dark .eca-ffc-description { color: #9ca3af; }
.eca-ffc-dark .eca-ffc-instructor { color: #d1d5db; }
.eca-ffc-dark .eca-ffc-platform { color: #9ca3af; }
.eca-ffc-dark .eca-ffc-stat { color: #6b7280; }
.eca-ffc-dark .eca-ffc-stats { border-color: #374151; }
.eca-ffc-dark .eca-ffc-card:hover {
    background: #293548;
    border-color: #4b5563;
}
.eca-ffc-dark .eca-ffc-wishlist { background: rgba(31,41,55,0.9); }

/* Glassmorphism */
.eca-ffc-glass .eca-ffc-card {
    background: rgba(255,255,255,0.15);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255,255,255,0.2);
}

/* Hover Effects */
.eca-ffc-hover-lift .eca-ffc-card:hover { transform: translateY(-6px); }
.eca-ffc-hover-scale .eca-ffc-card:hover { transform: scale(1.03); }
.eca-ffc-hover-glow .eca-ffc-card:hover { box-shadow: 0 0 24px rgba(99,102,241,0.2); }
.eca-ffc-hover-pulse .eca-ffc-card:hover { animation: eca-ffc-pulse 0.6s ease-in-out; }
@keyframes eca-ffc-pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.04); }
}
.eca-ffc-hover-float .eca-ffc-card { animation: eca-ffc-float 3s ease-in-out infinite; }
@keyframes eca-ffc-float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-6px); }
}
.eca-ffc-hover-rotate .eca-ffc-card:hover { transform: rotate(1.5deg); }

/* Animated Border */
.eca-ffc-border-animated .eca-ffc-card::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    padding: 2px;
    background: conic-gradient(#6366f1, transparent, #6366f1);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0;
    transition: opacity 0.3s ease;
    animation: eca-ffc-border-spin 2s linear infinite;
    pointer-events: none;
}
@keyframes eca-ffc-border-spin {
    to { transform: rotate(360deg); }
}
.eca-ffc-border-animated .eca-ffc-card:hover::before { opacity: 1; }

/* Gradient Border */
.eca-ffc-border-gradient .eca-ffc-card {
    border: 2px solid transparent;
    background-clip: padding-box;
    position: relative;
}
.eca-ffc-border-gradient .eca-ffc-card::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    padding: 2px;
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}
.eca-ffc-border-gradient .eca-ffc-card:hover::before { opacity: 1; }

/* Entrance Animations */
.eca-ffc-anim-fade .eca-ffc-item { opacity: 0; animation: eca-ffc-fadeIn 0.6s ease forwards; }
.eca-ffc-anim-fade-up .eca-ffc-item { opacity: 0; transform: translateY(24px); animation: eca-ffc-fadeUp 0.6s ease forwards; }
.eca-ffc-anim-fade-down .eca-ffc-item { opacity: 0; transform: translateY(-24px); animation: eca-ffc-fadeDown 0.6s ease forwards; }
.eca-ffc-anim-slide-up .eca-ffc-item { opacity: 0; transform: translateY(40px); animation: eca-ffc-slideUp 0.6s ease forwards; }
.eca-ffc-anim-zoom-in .eca-ffc-item { opacity: 0; transform: scale(0.8); animation: eca-ffc-zoomIn 0.6s ease forwards; }
.eca-ffc-anim-bounce-in .eca-ffc-item { animation: eca-ffc-bounceIn 0.6s ease forwards; }
.eca-ffc-anim-flip .eca-ffc-item { opacity: 0; transform: perspective(600px) rotateX(-20deg); animation: eca-ffc-flip 0.6s ease forwards; }
@keyframes eca-ffc-fadeIn { to { opacity: 1; } }
@keyframes eca-ffc-fadeUp { to { opacity: 1; transform: translateY(0); } }
@keyframes eca-ffc-fadeDown { to { opacity: 1; transform: translateY(0); } }
@keyframes eca-ffc-slideUp { to { opacity: 1; transform: translateY(0); } }
@keyframes eca-ffc-zoomIn { to { opacity: 1; transform: scale(1); } }
@keyframes eca-ffc-bounceIn {
    0% { opacity: 0; transform: scale(0.3); }
    50% { transform: scale(1.05); }
    70% { transform: scale(0.95); }
    100% { opacity: 1; transform: scale(1); }
}
@keyframes eca-ffc-flip { to { opacity: 1; transform: perspective(600px) rotateX(0); } }

/* Floating */
.eca-ffc-float-anim .eca-ffc-card { animation: eca-ffc-floatRandom 3s ease-in-out infinite; }
.eca-ffc-float-anim .eca-ffc-item:nth-child(2n) .eca-ffc-card { animation-delay: 0.5s; }
.eca-ffc-float-anim .eca-ffc-item:nth-child(3n) .eca-ffc-card { animation-delay: 1s; }
@keyframes eca-ffc-floatRandom {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}

/* Fallback */
.eca-ffc-fallback {
    padding: 40px 20px;
    text-align: center;
    color: #6b7280;
    font-size: 14px;
}

/* Accessibility */
.eca-ffc-card:focus-visible {
    outline: 2px solid #6366f1;
    outline-offset: 2px;
}

/* RTL */
.rtl .eca-ffc-nav-prev { left: auto; right: -18px; transform: translateY(-50%) rotate(180deg); }
.rtl .eca-ffc-nav-next { right: auto; left: -18px; transform: translateY(-50%) rotate(180deg); }
.rtl .eca-ffc-badge { left: auto; right: 12px; }
.rtl .eca-ffc-wishlist { right: auto; left: 12px; }

/* Responsive */
@media (max-width: 1024px) {
    .eca-ffc-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
@media (max-width: 767px) {
    .eca-ffc-grid {
        grid-template-columns: 1fr;
    }
    .eca-ffc-section-title { font-size: 22px; }
    .eca-ffc-header { margin-bottom: 20px; }
}

/* ===== Popular Articles Widget ===== */
.eca-pa-wrapper {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    position: relative;
    box-sizing: border-box;
}
.eca-pa-wrapper *, .eca-pa-wrapper *::before, .eca-pa-wrapper *::after { box-sizing: border-box; }
.eca-pa-header { text-align: center; margin-bottom: 28px; }
.eca-pa-section-title { font-size: 26px; font-weight: 700; color: #111827; margin: 0 0 6px; line-height: 1.2; }
.eca-pa-section-subtitle { font-size: 15px; color: #6b7280; margin: 0; line-height: 1.5; }
.eca-pa-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
    position: relative;
    z-index: 1;
}
.eca-pa-item {
    position: relative;
    transition: all 0.3s ease;
}
.eca-pa-card {
    display: flex;
    align-items: center;
    gap: 16px;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 16px;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
    color: inherit;
    overflow: hidden;
}
.eca-pa-card:hover { border-color: #d1d5db; }

/* Rank */
.eca-pa-rank {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    min-width: 32px;
    background: #eef2ff;
    color: #6366f1;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 700;
    line-height: 1;
    transition: all 0.3s ease;
}
.eca-pa-card:hover .eca-pa-rank { background: #6366f1; color: #fff; }

/* Image */
.eca-pa-image-wrap {
    flex-shrink: 0;
    overflow: hidden;
    border-radius: 8px;
}
.eca-pa-image {
    width: 80px;
    height: 80px;
    object-fit: cover;
    display: block;
    transition: all 0.5s ease;
}
.eca-pa-img-zoom .eca-pa-card:hover .eca-pa-image { transform: scale(1.08); }
.eca-pa-img-blur .eca-pa-card:hover .eca-pa-image { filter: blur(2px); transform: scale(1.05); }
.eca-pa-image-overlay {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

/* Content */
.eca-pa-content {
    display: flex;
    flex-direction: column;
    gap: 6px;
    flex: 1;
    min-width: 0;
}
.eca-pa-badge {
    display: inline-block;
    padding: 2px 10px;
    font-size: 10px;
    font-weight: 700;
    color: #fff;
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    align-self: flex-start;
    line-height: 1.5;
}
.eca-pa-title {
    font-size: 15px;
    font-weight: 600;
    color: #1f2937;
    margin: 0;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.eca-pa-card:hover .eca-pa-title { color: #6366f1; }
.eca-pa-excerpt {
    font-size: 13px;
    color: #6b7280;
    margin: 0;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.eca-pa-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 2px;
}
.eca-pa-meta-item {
    font-size: 12px;
    color: #9ca3af;
    font-weight: 500;
}
.eca-pa-actions {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: 2px;
}
.eca-pa-share, .eca-pa-bookmark {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    background: #fff;
    cursor: pointer;
    color: #6b7280;
    transition: all 0.3s ease;
    padding: 0;
    line-height: 0;
}
.eca-pa-share:hover, .eca-pa-bookmark:hover {
    background: #f9fafb;
    border-color: #d1d5db;
}
.eca-pa-bookmark { color: #6366f1; }

/* View All */
.eca-pa-footer { text-align: center; margin-top: 28px; }
.eca-pa-view-all {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 24px;
    background: #6366f1;
    color: #fff;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
}
.eca-pa-view-all:hover { background: #4f46e5; color: #fff; }

/* Swiper overrides */
.eca-pa-wrapper .swiper { overflow: hidden; width: 100%; }
.eca-pa-wrapper .swiper-wrapper { display: flex; gap: 0; }
.eca-pa-wrapper .swiper-slide { height: auto; }
.eca-pa-wrapper .swiper-slide .eca-pa-item { width: 100%; }
.eca-pa-wrapper .swiper-pagination { position: relative; margin-top: 20px; bottom: auto !important; }
.eca-pa-wrapper .swiper-pagination-bullet { background: #d1d5db; opacity: 1; transition: all 0.3s ease; }
.eca-pa-wrapper .swiper-pagination-bullet-active { background: #6366f1; width: 24px; border-radius: 4px; }
.eca-pa-nav {
    position: absolute; top: 50%; transform: translateY(-50%); z-index: 10;
    width: 36px; height: 36px; display: flex; align-items: center; justify-content: center;
    background: #fff; border: 1px solid #e5e7eb; border-radius: 50%; cursor: pointer;
    transition: all 0.3s ease; color: #6b7280; box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}
.eca-pa-nav:hover { background: #f9fafb; color: #374151; }
.eca-pa-nav-prev { left: -18px; }
.eca-pa-nav-next { right: -18px; }
.eca-pa-nav.swiper-button-disabled { opacity: 0.35; pointer-events: none; }

/* Dark Mode */
.eca-pa-dark .eca-pa-card { background: #1f2937; border-color: #374151; }
.eca-pa-dark .eca-pa-section-title { color: #f9fafb; }
.eca-pa-dark .eca-pa-section-subtitle { color: #9ca3af; }
.eca-pa-dark .eca-pa-title { color: #f9fafb; }
.eca-pa-dark .eca-pa-excerpt { color: #9ca3af; }
.eca-pa-dark .eca-pa-meta-item { color: #6b7280; }
.eca-pa-dark .eca-pa-rank { background: #374151; color: #6366f1; }
.eca-pa-dark .eca-pa-card:hover { background: #293548; border-color: #4b5563; }
.eca-pa-dark .eca-pa-card:hover .eca-pa-rank { background: #6366f1; color: #fff; }
.eca-pa-dark .eca-pa-share, .eca-pa-dark .eca-pa-bookmark { background: #374151; border-color: #4b5563; color: #9ca3af; }

/* Glassmorphism */
.eca-pa-glass .eca-pa-card { background: rgba(255,255,255,0.15); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); border: 1px solid rgba(255,255,255,0.2); }

/* Hover Effects */
.eca-pa-hover-lift .eca-pa-card:hover { transform: translateY(-3px); }
.eca-pa-hover-scale .eca-pa-card:hover { transform: scale(1.02); }
.eca-pa-hover-glow .eca-pa-card:hover { box-shadow: 0 0 20px rgba(99,102,241,0.15); }
.eca-pa-hover-pulse .eca-pa-card:hover { animation: eca-pa-pulse 0.5s ease-in-out; }
@keyframes eca-pa-pulse { 0%,100% { transform: scale(1); } 50% { transform: scale(1.03); } }
.eca-pa-hover-float .eca-pa-card { animation: eca-pa-float 3s ease-in-out infinite; }
@keyframes eca-pa-float { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-4px); } }
.eca-pa-hover-rotate .eca-pa-card:hover { transform: rotate(1.5deg); }

/* Rank Hover Animations */
.eca-pa-rank-bounce .eca-pa-card:hover .eca-pa-rank { animation: eca-pa-rankBounce 0.4s ease; }
@keyframes eca-pa-rankBounce { 0%,100% { transform: scale(1); } 50% { transform: scale(1.2); } }
.eca-pa-rank-pulse .eca-pa-card:hover .eca-pa-rank { animation: eca-pa-rankPulse 0.5s ease; }
@keyframes eca-pa-rankPulse { 0%,100% { transform: scale(1); } 50% { transform: scale(1.15); } }
.eca-pa-rank-rotate .eca-pa-card:hover .eca-pa-rank { animation: eca-pa-rankRotate 0.4s ease; }
@keyframes eca-pa-rankRotate { 0% { transform: rotate(0); } 100% { transform: rotate(360deg); } }

/* Animated Border */
.eca-pa-border-animated .eca-pa-card::before {
    content: ''; position: absolute; inset: 0; border-radius: inherit; padding: 2px;
    background: conic-gradient(#6366f1, transparent, #6366f1);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor; mask-composite: exclude;
    opacity: 0; transition: opacity 0.3s ease; animation: eca-pa-borderSpin 2s linear infinite;
    pointer-events: none;
}
@keyframes eca-pa-borderSpin { to { transform: rotate(360deg); } }
.eca-pa-border-animated .eca-pa-card:hover::before { opacity: 1; }

/* Gradient Border */
.eca-pa-border-gradient .eca-pa-card {
    border: 2px solid transparent; background-clip: padding-box; position: relative;
}
.eca-pa-border-gradient .eca-pa-card::before {
    content: ''; position: absolute; inset: 0; border-radius: inherit; padding: 2px;
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor; mask-composite: exclude;
    opacity: 0; transition: opacity 0.3s ease; pointer-events: none;
}
.eca-pa-border-gradient .eca-pa-card:hover::before { opacity: 1; }

/* Entrance Animations */
.eca-pa-anim-fade .eca-pa-item { opacity: 0; animation: eca-pa-fadeIn 0.6s ease forwards; }
.eca-pa-anim-fade-up .eca-pa-item { opacity: 0; transform: translateY(20px); animation: eca-pa-fadeUp 0.6s ease forwards; }
.eca-pa-anim-slide-up .eca-pa-item { opacity: 0; transform: translateY(30px); animation: eca-pa-slideUp 0.6s ease forwards; }
.eca-pa-anim-zoom-in .eca-pa-item { opacity: 0; transform: scale(0.85); animation: eca-pa-zoomIn 0.6s ease forwards; }
.eca-pa-anim-bounce-in .eca-pa-item { animation: eca-pa-bounceIn 0.6s ease forwards; }
.eca-pa-anim-flip .eca-pa-item { opacity: 0; transform: perspective(600px) rotateX(-15deg); animation: eca-pa-flip 0.6s ease forwards; }
@keyframes eca-pa-fadeIn { to { opacity: 1; } }
@keyframes eca-pa-fadeUp { to { opacity: 1; transform: translateY(0); } }
@keyframes eca-pa-slideUp { to { opacity: 1; transform: translateY(0); } }
@keyframes eca-pa-zoomIn { to { opacity: 1; transform: scale(1); } }
@keyframes eca-pa-bounceIn {
    0% { opacity: 0; transform: scale(0.3); } 50% { transform: scale(1.05); } 70% { transform: scale(0.95); } 100% { opacity: 1; transform: scale(1); }
}
@keyframes eca-pa-flip { to { opacity: 1; transform: perspective(600px) rotateX(0); } }

/* Floating */
.eca-pa-float-anim .eca-pa-card { animation: eca-pa-floatRand 3s ease-in-out infinite; }
.eca-pa-float-anim .eca-pa-item:nth-child(2n) .eca-pa-card { animation-delay: 0.5s; }
.eca-pa-float-anim .eca-pa-item:nth-child(3n) .eca-pa-card { animation-delay: 1s; }
@keyframes eca-pa-floatRand { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }

/* Fallback */
.eca-pa-fallback { padding: 40px 20px; text-align: center; color: #6b7280; font-size: 14px; }

/* Accessibility */
.eca-pa-card:focus-visible { outline: 2px solid #6366f1; outline-offset: 2px; }

/* RTL */
.rtl .eca-pa-nav-prev { left: auto; right: -18px; transform: translateY(-50%) rotate(180deg); }
.rtl .eca-pa-nav-next { right: auto; left: -18px; transform: translateY(-50%) rotate(180deg); }

/* Responsive */
@media (max-width: 1024px) {
    .eca-pa-list { display: flex; flex-direction: column; }
}
@media (max-width: 767px) {
    .eca-pa-section-title { font-size: 20px; }
    .eca-pa-card { padding: 12px; gap: 12px; }
    .eca-pa-image { width: 60px; height: 60px; }
    .eca-pa-title { font-size: 14px; }
}

/* ===== Learning Resources Archive Widget ===== */
.eca-lr-wrapper {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    position: relative;
    box-sizing: border-box;
    background: #F8FAFC;
    --eca-lr-primary: #6C4CF1;
    --eca-lr-primary-hover: #5A3DE0;
    --eca-lr-primary-light: #EDE9FE;
    --eca-lr-sidebar-width: 260px;
}
.eca-lr-wrapper *, .eca-lr-wrapper *::before, .eca-lr-wrapper *::after { box-sizing: border-box; }

.eca-lr-container {
    max-width: 1320px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 0 48px;
}
.eca-lr-container::after { content: ''; display: table; clear: both; }

/* Breadcrumb */
.eca-lr-breadcrumb {
    grid-column: 1;
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
    font-size: 14px;
    color: #6b7280;
    flex-wrap: wrap;
}
.eca-lr-breadcrumb a {
    color: var(--eca-lr-primary);
    text-decoration: none;
    font-weight: 500;
}
.eca-lr-breadcrumb a:hover { color: var(--eca-lr-primary-hover); text-decoration: underline; }
.eca-lr-breadcrumb-sep { color: #d1d5db; font-weight: 600; }

/* Header */
.eca-lr-header {
    grid-column: 1;
    margin-bottom: 32px;
}
.eca-lr-page-title {
    font-size: 32px;
    font-weight: 700;
    color: #111827;
    margin: 0 0 8px;
    line-height: 1.2;
    letter-spacing: -0.5px;
}
.eca-lr-page-description {
    font-size: 16px;
    font-weight: 400;
    color: #6b7280;
    margin: 0;
    line-height: 1.6;
}

/* Toolbar */
.eca-lr-toolbar {
    grid-column: 2;
    grid-row: 1 / 3;
    align-self: start;
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 32px;
    flex-wrap: wrap;
}
.eca-lr-filter-select,
.eca-lr-sort-select,
.eca-lr-search-input {
    height: 48px;
    padding: 0 40px 0 16px;
    font-size: 14px;
    font-family: inherit;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    background: #fff;
    color: #374151;
    outline: none;
    cursor: pointer;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    -webkit-appearance: none;
    appearance: none;
}
.eca-lr-filter-select:focus,
.eca-lr-sort-select:focus,
.eca-lr-search-input:focus {
    border-color: var(--eca-lr-primary);
    box-shadow: 0 0 0 3px rgba(108,76,241,0.1);
}
.eca-lr-filter-select,
.eca-lr-sort-select {
    background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%236b7280' viewBox='0 0 16 16'%3E%3Cpath d='M8 11L3 6h10z'/%3E%3C/svg%3E") no-repeat right 14px center;
    min-width: 150px;
}
.eca-lr-filter-select { min-width: 140px; }
.eca-lr-search-wrap {
    position: relative;
    display: flex;
    width: 100%;
}
.eca-lr-search-input {
    width: 100%;
    padding-right: 44px;
    cursor: text;
}
.eca-lr-search-btn {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    padding: 8px;
    cursor: pointer;
    color: #9ca3af;
    display: flex;
    line-height: 0;
    transition: color 0.2s ease;
}
.eca-lr-search-btn:hover { color: var(--eca-lr-primary); }
.eca-lr-filter-toggle {
    display: none;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    background: #fff;
    cursor: pointer;
    color: #374151;
    transition: all 0.2s ease;
}
.eca-lr-filter-toggle:hover {
    border-color: var(--eca-lr-primary);
    color: var(--eca-lr-primary);
}

/* Body - Sidebar + Content */
.eca-lr-body {
    grid-column: 1 / -1;
    display: flex;
    gap: 32px;
    align-items: flex-start;
}

/* Sidebar */
.eca-lr-sidebar {
    width: var(--eca-lr-sidebar-width);
    min-width: var(--eca-lr-sidebar-width);
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    padding: 24px;
}
.eca-lr-sidebar-sticky .eca-lr-sidebar {
    position: sticky;
    top: 24px;
}
.eca-lr-sidebar-title {
    font-size: 16px;
    font-weight: 700;
    color: #111827;
    margin: 0 0 16px;
}
.eca-lr-category-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.eca-lr-category-link {
    display: flex;
    align-items: center;
    gap: 12px;
    height: 48px;
    padding: 0 14px;
    font-size: 14px;
    font-weight: 500;
    color: #374151;
    text-decoration: none;
    border-radius: 12px;
    transition: all 0.2s ease;
    cursor: pointer;
    background: none;
    border: none;
    width: 100%;
    text-align: left;
}
.eca-lr-category-link:hover { background: var(--eca-lr-primary-light); }
.eca-lr-category-link.active { background: var(--eca-lr-primary); color: #fff; font-weight: 600; }
.eca-lr-cat-icon {
    display: flex;
    align-items: center;
    color: #9ca3af;
    flex-shrink: 0;
}
.eca-lr-category-link.active .eca-lr-cat-icon { color: #fff; }
.eca-lr-cat-name { flex: 1; text-align: center; }
.eca-lr-category-count {
    font-size: 12px;
    font-weight: 600;
    color: #6b7280;
    background: #f3f4f6;
    padding: 2px 8px;
    border-radius: 6px;
    min-width: 24px;
    text-align: center;
}
.eca-lr-category-link.active .eca-lr-category-count {
    background: rgba(255,255,255,0.2);
    color: #fff;
}
.eca-lr-clear-filters {
    display: none;
    width: 100%;
    margin-top: 12px;
    padding: 10px;
    font-size: 13px;
    font-weight: 600;
    color: var(--eca-lr-primary);
    background: var(--eca-lr-primary-light);
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.2s ease;
}
.eca-lr-clear-filters:hover { background: #C4B5FD; }

/* Sidebar Filter Sections */
.eca-lr-sidebar-section {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #e5e7eb;
}
.eca-lr-sidebar-section:first-child {
    margin-top: 0;
    padding-top: 0;
    border-top: none;
}
.eca-lr-sidebar-subtitle {
    font-size: 13px;
    font-weight: 600;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin: 0 0 10px;
}
.eca-lr-sidebar-filter {
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.eca-lr-sidebar-filter-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    height: 40px;
    padding: 0 12px;
    font-size: 13px;
    font-weight: 500;
    color: #374151;
    background: none;
    border: 1px solid transparent;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: left;
    width: 100%;
    font-family: inherit;
}
.eca-lr-sidebar-filter-btn:hover {
    background: var(--eca-lr-primary-light);
    border-color: #C4B5FD;
}
.eca-lr-sidebar-filter-btn.active {
    background: var(--eca-lr-primary-light);
    border-color: var(--eca-lr-primary);
    color: var(--eca-lr-primary);
    font-weight: 600;
}

/* Main Content */
.eca-lr-main {
    flex: 1;
    min-width: 0;
}

/* Grid */
.eca-lr-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

/* Card */
.eca-lr-card-wrap {
    position: relative;
    transition: all 0.3s ease;
}
.eca-lr-card {
    position: relative;
    display: flex;
    flex-direction: column;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    overflow: hidden;
    text-decoration: none;
    cursor: pointer;
    height: 100%;
    transition: all 0.3s ease;
    color: inherit;
    box-shadow: 0 1px 3px rgba(0,0,0,0.06);
}
.eca-lr-card:hover {
    border-color: var(--eca-lr-primary);
    box-shadow: 0 8px 24px rgba(108,76,241,0.1);
    transform: translateY(-4px);
}
.eca-lr-equal-height .eca-lr-card { height: 100%; }
.eca-lr-equal-height .eca-lr-card-wrap { display: flex; }

/* Image */
.eca-lr-card-image-wrap {
    position: relative;
    overflow: hidden;
    flex-shrink: 0;
    /*height: 100%;*/
    background: #f3f4f6;
}
.eca-lr-card-image {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    transition: transform 0.5s ease;
}
.eca-lr-card:hover .eca-lr-card-image { transform: scale(1.08); }
.eca-lr-img-zoom .eca-lr-card:hover .eca-lr-card-image { transform: scale(1.12); }
.eca-lr-card-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    z-index: 2;
    display: inline-block;
    padding: 4px 12px;
    font-size: 11px;
    font-weight: 700;
    color: #fff;
    border-radius: 6px;
    line-height: 1.4;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    background: var(--eca-lr-primary);
}

/* Body */
.eca-lr-card-body {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 16px;
    flex: 1;
}
.eca-lr-card-title {
    font-size: 22px;
    font-weight: 600;
    color: #111827;
    margin: 0;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.eca-lr-card:hover .eca-lr-card-title { color: var(--eca-lr-primary); }
.eca-lr-card-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: auto;
    padding-top: 10px;
    border-top: 1px solid #f3f4f6;
}
.eca-lr-card-meta-item {
    font-size: 13px;
    font-weight: 500;
    color: #9ca3af;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}
.eca-lr-card-desc {
    font-size: 13px;
    font-weight: 400;
    color: #6b7280;
    margin: 0;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.eca-lr-card-views,
.eca-lr-card-reading {
    font-size: 13px;
    font-weight: 500;
    color: #9ca3af;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}
.eca-lr-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: auto;
    padding-top: 10px;
    border-top: 1px solid #f3f4f6;
}
.eca-lr-card-author {
    font-size: 13px;
    font-weight: 500;
    color: #6b7280;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}
.eca-lr-card-author svg {
    width: 14px;
    height: 14px;
    color: #9ca3af;
}
.eca-lr-card-download {
    color: var(--eca-lr-primary);
    display: inline-flex;
    align-items: center;
}
.eca-lr-card-favorite {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 3;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    background: rgba(255,255,255,0.9);
    border: none;
    border-radius: 8px;
    cursor: pointer;
    color: #9ca3af;
    transition: all 0.2s ease;
    line-height: 0;
    backdrop-filter: blur(4px);
}
.eca-lr-card-favorite:hover {
    color: #ef4444;
    background: #fff;
    transform: scale(1.1);
}
.eca-lr-card-favorite.active {
    color: #ef4444;
}

/* Load More */
.eca-lr-load-more-wrap {
    text-align: center;
    margin-top: 32px;
}
.eca-lr-load-more {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 32px;
    font-size: 14px;
    font-weight: 600;
    font-family: inherit;
    color: #fff;
    background: var(--eca-lr-primary);
    border: none;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
    line-height: 1;
}
.eca-lr-load-more:hover {
    background: var(--eca-lr-primary-hover);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(108,76,241,0.3);
}
.eca-lr-load-more:disabled {
    opacity: 0.5;
    cursor: default;
    transform: none;
    box-shadow: none;
}

/* Bottom Bar */
.eca-lr-bottom-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-top: 32px;
    padding-top: 20px;
    border-top: 1px solid #e5e7eb;
}
.eca-lr-results-count {
    font-size: 14px;
    font-weight: 500;
    color: #6b7280;
}

/* Pagination */
.eca-lr-pagination {
    display: flex;
    align-items: center;
    gap: 4px;
}
.eca-lr-page {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    height: 36px;
    padding: 0 10px;
    font-size: 14px;
    font-weight: 500;
    color: #374151;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
    line-height: 1;
}
.eca-lr-page:hover { border-color: var(--eca-lr-primary); color: var(--eca-lr-primary); }
.eca-lr-page.current { background: var(--eca-lr-primary); border-color: var(--eca-lr-primary); color: #fff; }
.eca-lr-page-prev,
.eca-lr-page-next {
    font-size: 16px;
    font-weight: 600;
    padding: 0 12px;
}
.eca-lr-page-dots {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 28px;
    height: 36px;
    font-size: 14px;
    color: #9ca3af;
}

/* Per Page */
.eca-lr-per-page-select {
    height: 36px;
    padding: 0 30px 0 10px;
    font-size: 13px;
    font-family: inherit;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='10' fill='%236b7280' viewBox='0 0 16 16'%3E%3Cpath d='M8 11L3 6h10z'/%3E%3C/svg%3E") no-repeat right 10px center;
    color: #374151;
    outline: none;
    cursor: pointer;
    -webkit-appearance: none;
    appearance: none;
}

/* No results */
.eca-lr-no-results {
    padding: 40px 20px;
    text-align: center;
    color: #6b7280;
    font-size: 14px;
    grid-column: 1 / -1;
}

/* Loading state */
.eca-lr-loading {
    position: relative;
    min-height: 120px;
}
.eca-lr-loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 32px;
    height: 32px;
    margin: -16px 0 0 -16px;
    border: 3px solid #e5e7eb;
    border-top-color: var(--eca-lr-primary);
    border-radius: 50%;
    animation: eca-lr-spin 0.6s linear infinite;
}
@keyframes eca-lr-spin { to { transform: rotate(360deg); } }

/* Offcanvas Drawer (tablet/mobile) */
.eca-lr-drawer-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.5);
    z-index: 9990;
    opacity: 0;
    transition: opacity 0.3s ease;
}
.eca-lr-drawer-overlay.active { display: block; opacity: 1; }
.eca-lr-drawer {
    position: fixed;
    top: 0;
    left: -100%;
    width: 320px;
    max-width: 85vw;
    height: 100%;
    background: #fff;
    z-index: 9991;
    overflow-y: auto;
    transition: left 0.3s ease;
    box-shadow: 4px 0 20px rgba(0,0,0,0.1);
    display: flex;
    flex-direction: column;
}
.eca-lr-drawer.active { left: 0; }
.eca-lr-drawer-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px;
    border-bottom: 1px solid #e5e7eb;
}
.eca-lr-drawer-header h3 {
    font-size: 16px;
    font-weight: 700;
    color: #111827;
    margin: 0;
}
.eca-lr-drawer-close {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border: none;
    background: #f3f4f6;
    cursor: pointer;
    color: #6b7280;
    border-radius: 8px;
    font-size: 18px;
    transition: all 0.2s ease;
}
.eca-lr-drawer-close:hover { background: #e5e7eb; color: #111827; }
.eca-lr-drawer-body {
    padding: 20px;
    flex: 1;
}
.eca-lr-drawer-body .eca-lr-sidebar-section:last-child {
    margin-bottom: 0;
}
.eca-lr-drawer-footer {
    padding: 16px 20px;
    border-top: 1px solid #e5e7eb;
    display: flex;
    gap: 8px;
}
.eca-lr-drawer-apply,
.eca-lr-drawer-reset {
    flex: 1;
    padding: 10px;
    font-size: 13px;
    font-weight: 600;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
}
.eca-lr-drawer-apply { background: var(--eca-lr-primary); color: #fff; }
.eca-lr-drawer-apply:hover { background: var(--eca-lr-primary-hover); }
.eca-lr-drawer-reset { background: #f3f4f6; color: #374151; }
.eca-lr-drawer-reset:hover { background: #e5e7eb; }

/* Accessibility */
.eca-lr-card:focus-visible { outline: 2px solid var(--eca-lr-primary); outline-offset: 2px; }

/* Fallback */
.eca-lr-fallback {
    padding: 60px 20px;
    text-align: center;
    color: #6b7280;
    font-size: 15px;
}

/* Dark Mode */
.eca-lr-dark.eca-lr-wrapper { background: #0f172a; }
.eca-lr-dark .eca-lr-page-title { color: #f1f5f9; }
.eca-lr-dark .eca-lr-page-description { color: #94a3b8; }
.eca-lr-dark .eca-lr-card { background: #1e293b; border-color: #334155; }
.eca-lr-dark .eca-lr-card-title { color: #f1f5f9; }
.eca-lr-dark .eca-lr-card:hover .eca-lr-card-title { color: #A78BFA; }
.eca-lr-dark .eca-lr-card-meta-item { color: #64748b; }
.eca-lr-dark .eca-lr-card-meta { border-color: #334155; }
.eca-lr-dark .eca-lr-card:hover { background: #1e293b; border-color: #A78BFA; box-shadow: 0 8px 24px rgba(0,0,0,0.3); }
.eca-lr-dark .eca-lr-sidebar { background: #1e293b; border-color: #334155; }
.eca-lr-dark .eca-lr-sidebar-title { color: #f1f5f9; }
.eca-lr-dark .eca-lr-category-link { color: #cbd5e1; }
.eca-lr-dark .eca-lr-category-link:hover { background: rgba(167,139,250,0.1); }
.eca-lr-dark .eca-lr-category-link.active { background: var(--eca-lr-primary); color: #fff; }
.eca-lr-dark .eca-lr-category-count { background: #334155; color: #94a3b8; }
.eca-lr-dark .eca-lr-category-link.active .eca-lr-category-count { background: rgba(255,255,255,0.2); color: #fff; }
.eca-lr-dark .eca-lr-clear-filters { background: rgba(108,76,241,0.15); color: #A78BFA; }
.eca-lr-dark .eca-lr-clear-filters:hover { background: rgba(108,76,241,0.25); }
.eca-lr-dark .eca-lr-filter-select,
.eca-lr-dark .eca-lr-sort-select,
.eca-lr-dark .eca-lr-search-input { background-color: #1e293b; border-color: #334155; color: #f1f5f9; }
.eca-lr-dark .eca-lr-filter-toggle { background: #1e293b; border-color: #334155; color: #94a3b8; }
.eca-lr-dark .eca-lr-filter-toggle:hover { border-color: #A78BFA; color: #A78BFA; }
.eca-lr-dark .eca-lr-page { background: #1e293b; border-color: #334155; color: #cbd5e1; }
.eca-lr-dark .eca-lr-page:hover { border-color: #A78BFA; color: #A78BFA; }
.eca-lr-dark .eca-lr-page.current { background: var(--eca-lr-primary); border-color: var(--eca-lr-primary); color: #fff; }
.eca-lr-dark .eca-lr-bottom-bar { border-color: #334155; }
.eca-lr-dark .eca-lr-results-count { color: #94a3b8; }
.eca-lr-dark .eca-lr-card-image-wrap { background: #334155; }
.eca-lr-dark .eca-lr-breadcrumb { color: #94a3b8; }
.eca-lr-dark .eca-lr-breadcrumb a { color: #A78BFA; }
.eca-lr-dark .eca-lr-card-desc { color: #94a3b8; }
.eca-lr-dark .eca-lr-card-views,
.eca-lr-dark .eca-lr-card-reading { color: #64748b; }
.eca-lr-dark .eca-lr-card-author { color: #94a3b8; }
.eca-lr-dark .eca-lr-card-author svg { color: #64748b; }
.eca-lr-dark .eca-lr-card-footer { border-color: #334155; }
.eca-lr-dark .eca-lr-card-favorite { background: rgba(30,41,59,0.9); color: #64748b; }
.eca-lr-dark .eca-lr-card-favorite:hover { background: #1e293b; color: #f87171; }
.eca-lr-dark .eca-lr-sidebar-section { border-color: #334155; }
.eca-lr-dark .eca-lr-sidebar-subtitle { color: #94a3b8; }
.eca-lr-dark .eca-lr-sidebar-filter-btn { color: #cbd5e1; }
.eca-lr-dark .eca-lr-sidebar-filter-btn:hover { background: rgba(167,139,250,0.1); border-color: rgba(167,139,250,0.2); }
.eca-lr-dark .eca-lr-sidebar-filter-btn.active { background: rgba(108,76,241,0.15); border-color: #A78BFA; color: #A78BFA; }
.eca-lr-dark .eca-lr-load-more { background: var(--eca-lr-primary); }
.eca-lr-dark .eca-lr-load-more:hover { background: var(--eca-lr-primary-hover); }
.eca-lr-dark .eca-lr-drawer { background: #1e293b; }
.eca-lr-dark .eca-lr-drawer-header { border-color: #334155; }
.eca-lr-dark .eca-lr-drawer-header h3 { color: #f1f5f9; }
.eca-lr-dark .eca-lr-drawer-close { background: #334155; color: #94a3b8; }
.eca-lr-dark .eca-lr-drawer-body .eca-lr-sidebar-subtitle { color: #94a3b8; }
.eca-lr-dark .eca-lr-drawer-reset { background: #334155; color: #cbd5e1; }
.eca-lr-dark .eca-lr-drawer-footer { border-color: #334155; }

/* Glassmorphism */
.eca-lr-glass .eca-lr-card { background: rgba(255,255,255,0.12); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border: 1px solid rgba(255,255,255,0.15); }

/* Hover Effects */
.eca-lr-hover-lift .eca-lr-card:hover { transform: translateY(-6px); }
.eca-lr-hover-scale .eca-lr-card:hover { transform: scale(1.03); }
.eca-lr-hover-glow .eca-lr-card:hover { box-shadow: 0 0 24px rgba(108,76,241,0.15); }
.eca-lr-hover-pulse .eca-lr-card:hover { animation: eca-lr-pulse 0.5s ease-in-out; }
@keyframes eca-lr-pulse { 0%,100% { transform: scale(1); } 50% { transform: scale(1.04); } }
.eca-lr-hover-rotate .eca-lr-card:hover { transform: rotate(1.5deg); }

/* Responsive */
@media (max-width: 1024px) {
    .eca-lr-container { padding: 32px 24px; grid-template-columns: 1fr; gap: 0; }
    .eca-lr-breadcrumb { grid-column: 1; }
    .eca-lr-header { grid-column: 1; }
    .eca-lr-toolbar { grid-column: 1; grid-row: auto; margin-bottom: 24px; }
    .eca-lr-grid { grid-template-columns: repeat(2, 1fr); }
    .eca-lr-sidebar { display: none; }
    .eca-lr-filter-toggle { display: flex; }
    .eca-lr-body { gap: 0; }
    .eca-lr-page-title { font-size: 28px; }
}
@media (max-width: 767px) {
    .eca-lr-container { padding: 24px 16px; }
    .eca-lr-grid { grid-template-columns: 1fr; }
    .eca-lr-filter-toggle { display: flex; }
    .eca-lr-sidebar { display: none; }
    .eca-lr-toolbar { gap: 8px; }
    .eca-lr-filter-select,
    .eca-lr-sort-select { min-width: auto; flex: 1; }
    .eca-lr-search-wrap { max-width: 100%; flex: none; width: 100%; }
    .eca-lr-page-title { font-size: 24px; }
    .eca-lr-page-description { font-size: 14px; }
    .eca-lr-bottom-bar { flex-direction: column; gap: 12px; }
    .eca-lr-drawer { width: 100%; left: -100%; }
    .eca-lr-drawer.active { left: 0; }
}

/* RTL */
.rtl .eca-lr-search-btn { right: auto; left: 10px; }
.rtl .eca-lr-search-input { padding-right: 16px; padding-left: 44px; }
.rtl .eca-lr-filter-select,
.rtl .eca-lr-sort-select { padding: 0 16px 0 40px; background-position: left 14px center; }
.rtl .eca-lr-card-badge { left: auto; right: 12px; }
.rtl .eca-lr-card-favorite { right: auto; left: 12px; }
.rtl .eca-lr-card-download { margin-left: 0; margin-right: auto; }
.rtl .eca-lr-drawer { left: auto; right: -100%; }
.rtl .eca-lr-drawer.active { left: auto; right: 0; }
.rtl .eca-lr-cat-name { text-align: center; }

/* Exact Design Overrides */
.eca-lr-card-badge {
    position: absolute !important;
    top: 12px !important;
    left: 12px !important;
    z-index: 2 !important;
    display: inline-block !important;
    padding: 4px 12px !important;
    font-size: 11px !important;
    font-weight: 700 !important;
    color: #fff !important;
    background: var(--eca-lr-primary, #6366f1) !important;
    border-radius: 6px !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
    line-height: 1.4 !important;
}
.eca-lr-card-image-wrap {
    position: relative !important;
    width: 100% !important;
    border-radius: 12px 12px 0 0 !important;
    overflow: hidden !important;
}
.eca-lr-card {
    padding: 0 !important;
    border-radius: 12px !important;
    overflow: hidden !important;
}
.eca-lr-card-body {
    padding: 20px !important;
    align-items: flex-start !important;
    text-align: left !important;
}
.eca-lr-card-title {
    font-size: 16px !important;
    font-weight: 700 !important;
    margin-bottom: 6px !important;
    text-align: left !important;
}
.eca-lr-card-desc {
    font-size: 13px !important;
    color: #6b7280 !important;
    line-height: 1.5 !important;
    margin: 0 0 12px !important;
    display: -webkit-box !important;
    -webkit-line-clamp: 2 !important;
    -webkit-box-orient: vertical !important;
    overflow: hidden !important;
}
.eca-lr-card-meta {
    width: 100% !important;
    display: flex !important;
    align-items: center !important;
    gap: 12px !important;
    flex-wrap: wrap !important;
    border-top: 1px solid #f3f4f6 !important;
    padding-top: 12px !important;
    margin-top: auto !important;
}
.eca-lr-card-readmore {
    margin-left: auto !important;
    color: var(--eca-lr-primary, #6366f1) !important;
    font-weight: 600 !important;
    font-size: 13px !important;
    cursor: pointer !important;
    white-space: nowrap !important;
}
.eca-lr-card:hover .eca-lr-card-readmore {
    text-decoration: underline !important;
}
.eca-lr-card-reading {
    display: inline-flex !important;
    align-items: center !important;
    gap: 4px !important;
}
.eca-lr-category-link {
    border-radius: 12px !important;
}
.eca-lr-cat-name {
    text-align: left !important;
    font-weight: 500 !important;
}
.eca-lr-category-link.active {
    background: #eef2ff !important;
    color: var(--eca-lr-primary, #6366f1) !important;
}
.eca-lr-category-link.active .eca-lr-cat-icon {
    color: var(--eca-lr-primary, #6366f1) !important;
}
.eca-lr-category-link.active .eca-lr-category-count {
    background: #e0e7ff !important;
    color: var(--eca-lr-primary, #6366f1) !important;
}
.eca-lr-category-count {
    border-radius: 20px !important;
    padding: 2px 8px !important;
    background: #f3f4f6 !important;
}
.eca-lr-meta-icon {
    color: var(--eca-lr-primary, #6366f1) !important;
    margin-right: 2px !important;
}
.eca-lr-card-type, .eca-lr-card-date {
    display: inline-flex !important;
    align-items: center !important;
}
.eca-lr-clear-filters {
    display: block !important;
    border: 1px solid var(--eca-lr-primary, #6366f1) !important;
    color: var(--eca-lr-primary, #6366f1) !important;
    border-radius: 12px !important;
    padding: 10px !important;
    width: 100% !important;
    text-align: center !important;
    margin-top: 16px !important;
    background: transparent !important;
    font-weight: 600 !important;
    cursor: pointer !important;
}
.eca-lr-clear-filters:hover {
    background: var(--eca-lr-primary-light, #eef2ff) !important;
}

/* Layout & Header Overrides */
.eca-lr-top-section {
    display: flex !important;
    justify-content: space-between !important;
    align-items: flex-end !important;
    margin-bottom: 24px !important;
    flex-wrap: wrap !important;
    gap: 20px !important;
}
.eca-lr-top-left {
    display: flex !important;
    flex-direction: column !important;
    gap: 8px !important;
    flex: 1 !important;
    min-width: 250px !important;
}
.eca-lr-header {
    margin-bottom: 0 !important;
}
.eca-lr-toolbar {
    display: flex !important;
    align-items: center !important;
    gap: 12px !important;
    margin-bottom: 0 !important;
}
.eca-lr-filter-select, .eca-lr-sort-select {
    border-radius: 8px !important;
    padding: 8px 32px 8px 12px !important;
    border: 1px solid #e5e7eb !important;
    background-color: #fff !important;
    color: #374151 !important;
    font-size: 14px !important;
    height: auto !important;
}
.eca-lr-search-wrap {
    position: relative !important;
    display: flex !important;
    align-items: center !important;
    max-width: 250px !important;
}
.eca-lr-search-input {
    border-radius: 8px !important;
    border: 1px solid #e5e7eb !important;
    padding: 8px 36px 8px 12px !important;
    font-size: 14px !important;
    width: 100% !important;
    height: auto !important;
}
.eca-lr-search-btn {
    position: absolute !important;
    right: 10px !important;
    background: transparent !important;
    border: none !important;
    color: #9ca3af !important;
    padding: 0 !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
}
.eca-lr-category-list {
    gap: 8px !important;
}
.eca-lr-category-link {
    height: 40px !important;
}

/* Desktop: hide the filter toggle button */
@media (min-width: 1025px) {
    .eca-lr-filter-toggle { display: none !important; }
}

/* Drawer Widget Styling */
.eca-lr-drawer-widget {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 16px 0;
    border-bottom: 1px solid #f3f4f6;
}
.eca-lr-drawer-widget:last-child {
    border-bottom: none;
}
.eca-lr-drawer-widget label {
    font-size: 13px;
    font-weight: 600;
    color: #374151;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.eca-lr-drawer-widget select {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    font-size: 14px;
    color: #374151;
    background: #fff;
    font-family: inherit;
}
.eca-lr-drawer-widget .eca-lr-category-list {
    margin-top: 4px;
}

/* Tablet Responsive (768px - 1024px) */
@media (max-width: 1024px) {
    .eca-lr-sidebar { display: none !important; }
    .eca-lr-top-section {
        flex-direction: column !important;
        align-items: stretch !important;
    }
    .eca-lr-toolbar {
        width: 100% !important;
    }
    .eca-lr-toolbar .eca-lr-filter-select,
    .eca-lr-toolbar .eca-lr-sort-select {
        display: none !important;
    }
    .eca-lr-filter-toggle {
        display: flex !important;
        align-items: center !important;
        gap: 6px !important;
        padding: 8px 16px !important;
        border: 1px solid #e5e7eb !important;
        border-radius: 8px !important;
        background: #fff !important;
        color: #374151 !important;
        font-size: 14px !important;
        font-weight: 500 !important;
        cursor: pointer !important;
        white-space: nowrap !important;
        height: 38px !important;
        flex-shrink: 0 !important;
    }
    .eca-lr-search-wrap {
        flex: 1 !important;
        max-width: none !important;
    }
    .eca-lr-grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}

/* Mobile Responsive (below 768px) */
@media (max-width: 767px) {
    .eca-lr-grid {
        grid-template-columns: 1fr !important;
    }
    .eca-lr-toolbar {
        gap: 8px !important;
    }
    .eca-lr-bottom-bar {
        flex-direction: column !important;
        gap: 12px !important;
    }
    .eca-lr-drawer {
        width: 100% !important;
    }
    .eca-lr-page-title {
        font-size: 24px !important;
    }
}

