﻿*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}
:root {
    --blue: #264EFF;
    --blue-light: #4A6EFF;
    --blue-dark: #1A3DD9;
    --blue-bg: #EEF1FF;
    --orange: #F7A722;
    --orange-light: #FFB84A;
    --green: #1F2937;
    --purple: #8B5CF6;
    --ink: #0E1320;
    --ink-light: #ffffff;
    --muted: #6B7280;
    --hint: #9CA3AF;
    --bg: #F3F4FB;
    --bg-light: #FAFBFF;
    --surface: #FFFFFF;
    --line: #E5E7F0;
    --line-light: #F0F2F5;
    --radius-xl: 24px;
    --radius-lg: 18px;
    --radius-md: 12px;
    --radius-sm: 8px;
    --radius-pill: 999px;
    --shadow-xs: 0 1px 3px rgba(15,23,42,.05);
    --shadow-sm: 0 4px 12px rgba(15,23,42,.07);
    --shadow-md: 0 8px 24px rgba(15,23,42,.1);
    --shadow-lg: 0 20px 48px rgba(15,23,42,.13);
    --shadow-blue: 0 8px 32px rgba(38,78,255,.15);
    --transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    --wrap: 1240px;
}
html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
}
body {
    font-family: @(isRtl ? "'Cairo'" : "'Inter'"), system-ui, sans-serif;
    background: #F4F6FB;
    color: var(--ink);
    font-size: 15px;
    line-height: 1.6;
}
img {
    max-width: 100%;
    height: auto;
    display: block;
}
a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}
.sw-wrap {
    max-width: var(--wrap);
    margin: 0 auto;
    padding: 0 20px 80px;
}
/* BREADCRUMB */
.sw-breadcrumb-bar {
    background: var(--surface);
    border-bottom: 1px solid var(--line-light);
    padding: 10px 0;
}
.sw-breadcrumb {
    max-width: var(--wrap);
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: var(--muted);
    flex-wrap: wrap;
}
    .sw-breadcrumb a {
        color: var(--blue);
        font-weight: 600;
    }
        .sw-breadcrumb a:hover {
            text-decoration: underline;
        }
/* SCROLL PROGRESS */
.sw-progress {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: rgba(38,78,255,.1);
    z-index: 9999;
    pointer-events: none;
}
.sw-progress-bar {
    height: 100%;
    background: linear-gradient(90deg, var(--blue), var(--purple), var(--orange));
    width: 0%;
    transition: width .1s ease-out;
}
/* HERO */
.sw-hero {
    background: linear-gradient(135deg, #0B1120 0%, #0E1A3A 50%, #111827 100%);
    padding: 56px 20px 48px;
    position: relative;
    overflow: hidden;
    border-bottom: 1px solid rgba(255,255,255,.06);
}
    .sw-hero::before {
        content: '';
        position: absolute;
        inset: 0;
        background-image: linear-gradient(rgba(38,78,255,.06) 1px, transparent 1px), linear-gradient(90deg, rgba(38,78,255,.06) 1px, transparent 1px);
        background-size: 40px 40px;
        pointer-events: none;
    }
    .sw-hero::after {
        content: '';
        position: absolute;
        top: -80px;
        right: -80px;
        width: 320px;
        height: 320px;
        background: radial-gradient(circle, rgba(38,78,255,.18) 0%, transparent 70%);
        pointer-events: none;
    }
.sw-hero-glow2 {
    position: absolute;
    bottom: -60px;
    left: -60px;
    width: 260px;
    height: 260px;
    background: radial-gradient(circle, rgba(139,92,246,.12) 0%, transparent 70%);
    pointer-events: none;
}
.sw-hero-inner {
    max-width: var(--wrap);
    margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr);
    gap: 40px;
    align-items: center;
    position: relative;
    z-index: 1;
}
.sw-terminal {
    background: rgba(15,25,50,.85);
    border: 1px solid rgba(255,255,255,.1);
    border-radius: var(--radius-lg);
    overflow: hidden;
    backdrop-filter: blur(10px);
    box-shadow: 0 0 0 1px rgba(38,78,255,.2), 0 20px 60px rgba(0,0,0,.5);
}
.sw-terminal-bar {
    background: rgba(255,255,255,.04);
    border-bottom: 1px solid rgba(255,255,255,.08);
    padding: 10px 16px;
    display: flex;
    align-items: center;
    gap: 6px;
}
.sw-terminal-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}
    .sw-terminal-dot:nth-child(1) {
        background: #FF5F57;
    }
    .sw-terminal-dot:nth-child(2) {
        background: #FEBC2E;
    }
    .sw-terminal-dot:nth-child(3) {
        background: #28C840;
    }
.sw-terminal-title {
    margin-left: auto;
    font-size: 11px;
    color: rgba(255,255,255,.3);
    font-family: monospace;
}
.sw-terminal-body {
    padding: 20px;
    font-family: 'Courier New', monospace;
    font-size: 13px;
    line-height: 1.8;
}
.sw-code-line {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 4px;
}
.sw-code-num {
    color: rgba(255,255,255,.2);
    min-width: 20px;
    user-select: none;
    font-size: 11px;
    padding-top: 2px;
}
.sw-code-kw {
    color: #7C9EFF;
}
.sw-code-str {
    color: #86EFAC;
}
.sw-code-fn {
    color: #FCA5A5;
}
.sw-code-val {
    color: #FCD34D;
}
.sw-code-cm {
    color: rgba(255,255,255,.3);
    font-style: italic;
}
.sw-code-op {
    color: rgba(255,255,255,.6);
}
.sw-cursor {
    display: inline-block;
    width: 8px;
    height: 14px;
    background: var(--blue);
    margin-left: 2px;
    vertical-align: middle;
    animation: swBlink 1.2s step-end infinite;
}
@keyframes swBlink {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0;
    }
}
.sw-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(38,78,255,.15);
    border: 1px solid rgba(38,78,255,.3);
    color: #7C9EFF;
    font-size: 12px;
    font-weight: 700;
    padding: 6px 14px;
    border-radius: var(--radius-pill);
    margin-bottom: 20px;
    letter-spacing: .04em;
}
.sw-hero-title {
    font-size: clamp(28px, 4vw, 46px);
    font-weight: 900;
    line-height: 1.15;
    color: white;
    margin-bottom: 16px;
    letter-spacing: -0.03em;
}
.sw-hero-desc {
    font-size: 15px;
    line-height: 1.8;
    color: rgba(255,255,255,.65);
    max-width: 60ch;
    margin-bottom: 28px;
}
.sw-hero-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 28px;
}
.sw-hero-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(255,255,255,.06);
    border: 1px solid rgba(255,255,255,.1);
    color: rgba(255,255,255,.8);
    font-size: 12px;
    font-weight: 600;
    padding: 6px 12px;
    border-radius: var(--radius-pill);
    transition: var(--transition);
}
    .sw-hero-pill i {
        color: var(--green);
        font-size: 10px;
    }
.sw-hero-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}
.sw-hero-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-top: 36px;
    padding-top: 28px;
    border-top: 1px solid rgba(255,255,255,.08);
}
.sw-hero-stat {
    text-align: center;
}
    .sw-hero-stat strong {
        display: block;
        font-size: 26px;
        font-weight: 900;
        color: #7C9EFF;
        line-height: 1;
        margin-bottom: 4px;
    }
    .sw-hero-stat span {
        font-size: 11px;
        color: rgba(255,255,255,.45);
        font-weight: 600;
        text-transform: uppercase;
        letter-spacing: .06em;
    }
/* BUTTONS */
.sw-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    border-radius: var(--radius-pill);
    border: 1.5px solid transparent;
    padding: 11px 22px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
    white-space: nowrap;
    text-decoration: none;
    font-family: inherit;
}
.sw-btn-sm {
    padding: 8px 16px;
    font-size: 13px;
}
.sw-btn-primary {
    background: linear-gradient(135deg, var(--blue), var(--blue-light));
    color: #fff;
    box-shadow: 0 4px 14px rgba(38,78,255,.28);
}
    .sw-btn-primary:hover {
        transform: translateY(-2px);
        box-shadow: 0 8px 22px rgba(38,78,255,.4);
        color: #fff;
    }
.sw-btn-ghost {
    background: rgba(255,255,255,.08);
    color: rgba(255,255,255,.85);
    border-color: rgba(255,255,255,.15);
}
    .sw-btn-ghost:hover {
        background: rgba(255,255,255,.14);
        border-color: rgba(255,255,255,.3);
        color: #fff;
        transform: translateY(-1px);
    }
.sw-btn-outline {
    background: var(--surface);
    color: var(--ink);
    border-color: var(--line);
    box-shadow: var(--shadow-xs);
}
    .sw-btn-outline:hover {
        border-color: var(--blue);
        color: var(--blue);
        transform: translateY(-1px);
    }
/* ════════════════════════════
       FILTER BAR + SEARCHABLE SELECT
    ════════════════════════════ */
.sw-filter-section {
    background: var(--surface);
    border-bottom: 1px solid var(--line);
    padding: 14px 0;
    position: sticky;
    top: 0;
    z-index: 200;
    box-shadow: var(--shadow-xs);
}
.sw-filter-inner {
    max-width: var(--wrap);
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}
.sw-filter-label-group {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    font-weight: 800;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: .06em;
    white-space: nowrap;
}
    .sw-filter-label-group i {
        color: var(--blue);
    }
.sw-filter-select-wrap {
    display: flex;
    flex-direction: column;
    gap: 3px;
}
.sw-filter-pill-label {
    font-size: 10px;
    font-weight: 800;
    color: var(--hint);
    text-transform: uppercase;
    letter-spacing: .08em;
    display: flex;
    align-items: center;
    gap: 4px;
}
    .sw-filter-pill-label i {
        color: var(--blue);
        font-size: 10px;
    }
.sw-filter-divider {
    width: 1px;
    height: 32px;
    background: var(--line);
    flex-shrink: 0;
}
.sw-filter-count {
    margin-left: auto;
    font-size: 13px;
    font-weight: 700;
    color: var(--muted);
    display: flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
}
[dir="rtl"] .sw-filter-count {
    margin-left: 0;
    margin-right: auto;
}
.sw-filter-count strong {
    font-size: 18px;
    color: var(--blue);
    font-weight: 900;
}
/* Searchable Select */
.sw-searchable-select {
    position: relative;
    min-width: 180px;
}
.sw-ss-trigger {
    height: 42px;
    border: 1.5px solid var(--line);
    border-radius: var(--radius-md);
    background: var(--bg-light);
    padding: 0 12px;
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    transition: var(--transition);
    font-size: 13px;
    font-weight: 600;
    color: var(--ink);
    user-select: none;
}
    .sw-ss-trigger:hover {
        border-color: var(--blue);
        background: #fff;
    }
.sw-searchable-select.open .sw-ss-trigger {
    border-color: var(--blue);
    background: #fff;
    box-shadow: 0 0 0 3px rgba(38,78,255,.1);
}
.sw-ss-icon {
    font-size: 13px;
    color: var(--blue);
    flex-shrink: 0;
}
.sw-ss-label {
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.sw-ss-chev {
    font-size: 10px;
    color: var(--hint);
    transition: transform .2s ease;
    flex-shrink: 0;
}
.sw-searchable-select.open .sw-ss-chev {
    transform: rotate(180deg);
}
.sw-ss-panel {
    display: none;
    position: fixed;
    min-width: 240px;
    background: var(--surface);
    border: 1.5px solid var(--line);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    z-index: 99999;
    overflow: hidden;
}
.sw-searchable-select.open .sw-ss-panel {
    display: block;
}
.sw-ss-search-wrap {
    padding: 10px 12px;
    border-bottom: 1px solid var(--line-light);
    display: flex;
    align-items: center;
    gap: 8px;
    background: var(--bg-light);
}
    .sw-ss-search-wrap i {
        color: var(--hint);
        font-size: 13px;
        flex-shrink: 0;
    }
.sw-ss-search {
    width: 100%;
    border: none;
    background: transparent;
    font-size: 13px;
    font-weight: 600;
    color: var(--ink);
    outline: none;
    font-family: inherit;
}
    .sw-ss-search::placeholder {
        color: var(--hint);
        font-weight: 400;
    }
.sw-ss-list {
    max-height: 220px;
    overflow-y: auto;
}
.sw-ss-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 14px;
    font-size: 13px;
    font-weight: 600;
    color: var(--ink);
    cursor: pointer;
    transition: var(--transition);
    border-bottom: 1px solid var(--line-light);
    gap: 8px;
}
    .sw-ss-item:last-child {
        border-bottom: none;
    }
    .sw-ss-item:hover {
        background: var(--blue-bg);
        color: var(--blue);
    }
    .sw-ss-item.active {
        color: var(--blue);
        background: var(--blue-bg);
    }
.sw-ss-count {
    background: var(--line-light);
    color: var(--muted);
    font-size: 11px;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: var(--radius-pill);
    flex-shrink: 0;
}
.sw-ss-item:hover .sw-ss-count, .sw-ss-item.active .sw-ss-count {
    background: var(--blue);
    color: #fff;
}
.sw-ss-item.hidden {
    display: none;
}
/* GRID */
.sw-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    margin: 28px 0 40px;
}
/* CARD */
.sw-card {
    background: var(--surface);
    border-radius: var(--radius-lg);
    border: 1.5px solid var(--line-light);
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
    transition: var(--transition);
    box-shadow: var(--shadow-sm);
    opacity: 0;
    transform: translateY(14px);
}
    .sw-card.visible {
        opacity: 1;
        transform: translateY(0);
        transition: opacity .45s ease-out, transform .45s ease-out, box-shadow .25s ease, border-color .25s ease;
    }
    .sw-card:hover {
        border-color: rgba(38,78,255,.22);
        box-shadow: var(--shadow-lg), var(--shadow-blue);
        transform: translateY(-5px);
    }
.sw-card-stripe {
    height: 4px;
    background: linear-gradient(90deg, var(--blue), var(--purple));
    transition: var(--transition);
}
.sw-card:hover .sw-card-stripe {
    background: linear-gradient(90deg, var(--blue), var(--purple), var(--orange));
}
.sw-card-head {
    padding: 18px 18px 12px;
    display: flex;
    align-items: flex-start;
    gap: 12px;
}
.sw-card-logo {
    width: 52px;
    height: 52px;
    border-radius: var(--radius-md);
    background: linear-gradient(135deg, var(--blue-bg), #dce4ff);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 17px;
    font-weight: 900;
    color: var(--blue);
    flex-shrink: 0;
    overflow: hidden;
    border: 1.5px solid rgba(38,78,255,.12);
    font-family: monospace;
    position: relative;
}
    .sw-card-logo img {
        width: 100%;
        height: 100%;
        object-fit: contain;
        padding: 6px;
    }
    .sw-card-logo::after {
        content: '';
        position: absolute;
        bottom: -2px;
        right: -2px;
        width: 13px;
        height: 13px;
        border-radius: 50%;
        background: var(--green);
        border: 2px solid var(--surface);
    }
.sw-card-head-info {
    flex: 1;
    min-width: 0;
}
.sw-card-cat {
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .09em;
    color: var(--blue);
    background: var(--blue-bg);
    padding: 3px 9px;
    border-radius: var(--radius-pill);
    display: inline-block;
    margin-bottom: 5px;
}
.sw-card-name {
    font-size: 16px;
    font-weight: 800;
    color: var(--ink);
    line-height: 1.25;
    letter-spacing: -0.01em;
}
    .sw-card-name a {
        color: inherit;
    }
        .sw-card-name a:hover {
            color: var(--blue);
        }
.sw-card-rating {
    display: flex;
    align-items: center;
    gap: 5px;
    margin-top: 4px;
}
.sw-card-stars {
    font-size: 11px;
    color: var(--orange);
}
.sw-card-rating-num {
    font-size: 12px;
    font-weight: 700;
    color: var(--muted);
}
.sw-card-divider {
    height: 1px;
    background: var(--line-light);
    margin: 0 18px;
}
.sw-card-body {
    padding: 12px 18px 16px;
    flex: 1;
    display: flex;
    flex-direction: column;
}
.sw-card-desc {
    font-size: 13px;
    line-height: 1.7;
    color: var(--muted);
    margin-bottom: 12px;
    flex: 1;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
/* ✅ FIX 3: Tags محسّنة */
.sw-card-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    margin-bottom: 14px;
}
.sw-card-tag {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 9px;
    background: var(--bg-light);
    border: 1px solid var(--line-light);
    border-radius: var(--radius-sm);
    font-size: 11px;
    font-weight: 600;
    color: var(--ink-light);
    text-decoration: none;
    transition: var(--transition);
}
    .sw-card-tag i {
        font-size: 9px;
        color: var(--blue);
    }
    .sw-card-tag:hover {
        border-color: var(--blue);
        color: var(--blue);
        background: var(--blue-bg);
    }
.sw-card-tag-more {
    background: var(--blue-bg);
    color: var(--blue);
    border-color: rgba(38,78,255,.2);
    cursor: default;
}
.sw-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding-top: 12px;
    border-top: 1px solid var(--line-light);
}
.sw-card-arrow {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: var(--blue-bg);
    border: 1.5px solid rgba(38,78,255,.15);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: var(--transition);
}
    .sw-card-arrow i {
        font-size: 12px;
        color: var(--blue);
        transition: var(--transition);
    }
.sw-card:hover .sw-card-arrow {
    background: var(--blue);
    border-color: var(--blue);
}
    .sw-card:hover .sw-card-arrow i {
        color: #fff;
    }
/* SECTION */
.sw-section {
    margin-top: 48px;
}
.sw-section-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    margin-bottom: 20px;
    gap: 16px;
    flex-wrap: wrap;
}
    .sw-section-head h2 {
        font-size: clamp(20px, 3vw, 26px);
        font-weight: 900;
        color: var(--ink);
        letter-spacing: -0.02em;
        display: flex;
        align-items: center;
        gap: 10px;
        margin: 0;
    }
        .sw-section-head h2 i {
            color: var(--blue);
        }
    .sw-section-head p {
        font-size: 14px;
        color: var(--muted);
        margin-top: 6px;
    }
/* ✅ FIX 4: CATEGORIES */
.sw-cat-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
    gap: 14px;
}
.sw-cat-card {
    background: var(--surface);
    border: 1.5px solid var(--line-light);
    border-radius: var(--radius-lg);
    padding: 20px;
    text-decoration: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}
    .sw-cat-card::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        height: 3px;
        background: linear-gradient(90deg, var(--blue), var(--purple));
        opacity: 0;
        transition: var(--transition);
    }
    .sw-cat-card:hover {
        border-color: rgba(38,78,255,.2);
        box-shadow: var(--shadow-md), var(--shadow-blue);
        transform: translateY(-3px);
    }
        .sw-cat-card:hover::before {
            opacity: 1;
        }
.sw-cat-icon {
    width: 44px;
    height: 44px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 18px;
    flex-shrink: 0;
}
.sw-cat-name {
    font-size: 14px;
    font-weight: 800;
    color: var(--ink);
    line-height: 1.3;
}
.sw-cat-count {
    font-size: 12px;
    color: var(--blue);
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 4px;
}
    .sw-cat-count i {
        font-size: 10px;
    }
.sw-cat-arrow {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--blue-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: auto;
    transition: var(--transition);
}
    .sw-cat-arrow i {
        font-size: 11px;
        color: var(--blue);
    }
.sw-cat-card:hover .sw-cat-arrow {
    background: var(--blue);
}
    .sw-cat-card:hover .sw-cat-arrow i {
        color: #fff;
    }
/* ✅ FIX 4: BLOGS */
.sw-blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 18px;
}
.sw-blog-card {
    background: var(--surface);
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1.5px solid var(--line-light);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}
    .sw-blog-card:hover {
        border-color: rgba(38,78,255,.2);
        box-shadow: var(--shadow-md);
        transform: translateY(-3px);
    }
.sw-blog-thumb {
    height: 170px;
    background: linear-gradient(135deg, var(--blue-bg), #dce4ff);
    overflow: hidden;
    position: relative;
}
    .sw-blog-thumb img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        transition: transform .5s ease;
    }
.sw-blog-card:hover .sw-blog-thumb img {
    transform: scale(1.05);
}
.sw-blog-thumb-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}
    .sw-blog-thumb-placeholder i {
        font-size: 36px;
        color: var(--blue);
        opacity: .3;
    }
.sw-blog-overlay {
    position: absolute;
    inset: 0;
    background: rgba(15,19,32,.5);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition);
}
.sw-blog-card:hover .sw-blog-overlay {
    opacity: 1;
}
.sw-blog-read-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #fff;
    color: var(--blue);
    font-size: 13px;
    font-weight: 700;
    padding: 8px 16px;
    border-radius: var(--radius-pill);
}
.sw-blog-body {
    padding: 16px 18px;
    flex: 1;
    display: flex;
    flex-direction: column;
}
.sw-blog-date {
    font-size: 11px;
    color: var(--hint);
    font-weight: 600;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 5px;
}
    .sw-blog-date i {
        color: var(--blue);
    }
.sw-blog-title {
    font-size: 15px;
    font-weight: 800;
    color: var(--ink);
    line-height: 1.35;
    margin-bottom: 12px;
    flex: 1;
}
.sw-blog-link {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 13px;
    font-weight: 700;
    color: var(--blue);
    transition: var(--transition);
}
    .sw-blog-link:hover {
        gap: 8px;
    }
    .sw-blog-link i {
        font-size: 11px;
    }
/* FAQ */
.sw-faq-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.sw-faq-item {
    background: var(--surface);
    border: 1.5px solid var(--line-light);
    border-radius: var(--radius-md);
    overflow: hidden;
    transition: var(--transition);
}
    .sw-faq-item:hover {
        border-color: rgba(38,78,255,.15);
    }
    .sw-faq-item.active {
        border-color: rgba(38,78,255,.28);
        box-shadow: var(--shadow-blue);
    }
.sw-faq-q {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 16px 20px;
    background: transparent;
    border: none;
    font-family: inherit;
    font-size: 15px;
    font-weight: 700;
    color: var(--ink);
    cursor: pointer;
    transition: var(--transition);
    text-align: @(isRtl ? "right" : "left");
}
    .sw-faq-q:hover {
        color: var(--blue);
    }
.sw-faq-item.active .sw-faq-q {
    color: var(--blue);
}
.sw-faq-icon {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--bg-light);
    border: 1.5px solid var(--line);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: var(--transition);
}
    .sw-faq-icon i {
        font-size: 12px;
        transition: transform .2s ease;
    }
.sw-faq-item.active .sw-faq-icon {
    background: var(--blue);
    border-color: var(--blue);
}
    .sw-faq-item.active .sw-faq-icon i {
        color: #fff;
        transform: rotate(45deg);
    }
.sw-faq-a {
    display: none;
    padding: 14px 20px 18px;
    font-size: 14px;
    line-height: 1.8;
    color: var(--muted);
    border-top: 1px solid var(--line-light);
}
.sw-faq-item.active .sw-faq-a {
    display: block;
}
/* ARTICLE */
.sw-article {
    background: var(--surface);
    border-radius: var(--radius-xl);
    padding: 32px 36px;
    border: 1px solid var(--line-light);
    box-shadow: var(--shadow-sm);
    font-size: 14px;
    color: var(--muted);
    line-height: 1.9;
}
/* EMPTY */
.sw-empty {
    text-align: center;
    padding: 72px 20px;
    background: var(--surface);
    border-radius: var(--radius-xl);
    border: 1.5px solid var(--line-light);
}
    .sw-empty i {
        font-size: 48px;
        color: var(--hint);
        display: block;
        margin-bottom: 16px;
    }
    .sw-empty h3 {
        font-size: 18px;
        font-weight: 800;
        color: var(--ink);
        margin-bottom: 8px;
    }
    .sw-empty p {
        color: var(--muted);
        font-size: 14px;
    }
/* PAGING */
.sw-paging {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin: 36px 0;
    flex-wrap: wrap;
}
.sw-page-btn {
    padding: 9px 16px;
    border-radius: var(--radius-md);
    border: 1.5px solid var(--line);
    background: var(--surface);
    font-size: 14px;
    font-weight: 700;
    color: var(--ink);
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
}
    .sw-page-btn:hover {
        border-color: var(--blue);
        color: var(--blue);
        transform: translateY(-1px);
    }
    .sw-page-btn.active {
        background: linear-gradient(135deg, var(--blue), var(--blue-light));
        color: #fff;
        border-color: var(--blue);
        box-shadow: 0 4px 12px rgba(38,78,255,.28);
    }
/* RESPONSIVE */
@media (max-width: 1024px) {
    .sw-hero-inner {
        grid-template-columns: 1fr;
    }
    .sw-terminal {
        display: none;
    }
}
@media (max-width: 768px) {
    .sw-hero {
        padding: 40px 16px 36px;
    }
    .sw-grid {
        grid-template-columns: 1fr;
    }
    .sw-cat-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .sw-article {
        padding: 22px 18px;
    }
    .sw-filter-inner {
        gap: 8px;
    }
}
@media (max-width: 480px) {
    .sw-hero-stats {
        grid-template-columns: repeat(3, 1fr);
    }
    .sw-cat-grid {
        grid-template-columns: 1fr 1fr;
    }
}
