/* KS Exchanges & Brokers widget — loaded once per page, only where the shortcode is used. */
.ks-widget-container {
    font-family: inherit;
    box-sizing: border-box;
    margin: 25px 0 35px 0;
    width: 100%;
    direction: rtl;
    text-align: right;
}
.ks-widget-container * {
    box-sizing: border-box;
}
/* تب‌ها */
.ks-tabs-nav {
    display: flex;
    gap: 8px;
    padding: 4px;
    background-color: #f1f4f9;
    border-radius: 12px;
    margin-bottom: 20px;
    border: 1px solid #e2e8f0;
}
.ks-tab-btn {
    flex: 1;
    min-width: 0;
    font-family: inherit;
    line-height: 1.6;
    padding: 10px 16px;
    border: none;
    background: transparent;
    border-radius: 9px;
    font-size: 15px;
    font-weight: 700;
    color: #64748b;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: center;
}
.ks-tab-btn:focus-visible,
.ks-section-title-link:focus-visible,
.ks-card-info:focus-visible,
.ks-cta-btn:focus-visible {
    outline: 2px solid #1e40af;
    outline-offset: 2px;
}
.ks-tab-btn:hover {
    color: #1e293b;
}
.ks-tab-btn.ks-active {
    background: #ffffff;
    color: #1e40af;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.06);
}
/* سربرگ بخش‌ها */
.ks-section-header {
    margin: 18px 0 12px 0;
    display: flex;
    align-items: center;
}
.ks-section-title-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 17px;
    font-weight: 800;
    color: #3b82f6;
    text-decoration: none;
    transition: all 0.2s ease;
}
.ks-section-title-link:hover {
    color: #1d4ed8;
    text-decoration: none;
}
.ks-section-title-link:hover .ks-arrow-icon {
    transform: translateX(-4px);
}
.ks-arrow-icon {
    transition: transform 0.2s ease;
}
/* لیست کارت‌ها */
.ks-card-list {
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.ks-exchange-card {
    display: flex;
    align-items: stretch;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    overflow: hidden;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.ks-exchange-card:hover {
    border-color: #cbd5e1;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
}
.ks-badge-col {
    width: 68px;
    min-width: 68px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fafbfc;
    border-left: 1px solid #f1f5f9;
}
.ks-badge-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
}
.ks-badge-svg {
    width: 32px;
    height: 32px;
}
.ks-badge-number {
    font-size: 18px;
    font-weight: 700;
    color: #94a3b8;
}
.ks-card-content {
    flex: 1;
    padding: 10px 14px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
}
.ks-card-info {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none !important;
    color: inherit !important;
    flex: 1;
    min-width: 240px;
}
.ks-card-info:hover {
    text-decoration: none !important;
}
.ks-logo {
    width: 44px;
    height: 44px;
    object-fit: contain;
    border-radius: 8px;
    flex-shrink: 0;
}
.ks-logo-placeholder {
    width: 44px;
    height: 44px;
    background: #e2e8f0;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    color: #64748b;
    flex-shrink: 0;
}
.ks-text-container {
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.ks-title-row {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}
.ks-fa-name {
    font-size: 15px;
    font-weight: 700;
    color: #0f172a;
}
.ks-en-name {
    font-size: 11px;
    color: #64748b;
    font-weight: 500;
}
.ks-check-wrap {
    display: inline-flex;
    align-items: center;
}
.ks-meta-row {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    color: #64748b;
    flex-wrap: wrap;
}
.ks-custom-badge {
    color: #2563eb;
    font-weight: 600;
}
.ks-dot {
    font-size: 8px;
    color: #94a3b8;
}
.ks-comments, .ks-rating {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}
.ks-meta-icon {
    stroke: #64748b;
}
.ks-star-icon {
    vertical-align: middle;
}
/* دکمه اکشن CTA */
.ks-cta-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    background-color: #3b82f6;
    color: #ffffff !important;
    font-size: 13px;
    font-weight: 700;
    padding: 8px 18px;
    border-radius: 10px;
    text-decoration: none !important;
    transition: all 0.2s ease;
    white-space: nowrap;
    border: 1px solid #3b82f6;
}
.ks-cta-btn:hover {
    background-color: #2563eb;
    border-color: #2563eb;
    color: #ffffff !important;
    box-shadow: 0 4px 10px rgba(37, 99, 235, 0.25);
}
.ks-cta-btn svg {
    stroke: #ffffff;
}
.ks-tab-content {
    display: none;
}
.ks-tab-content.ks-active {
    display: block;
}
/* ریسپانسیو موبایل */
@media (max-width: 640px) {
    .ks-tab-btn {
        padding: 9px 4px;
        font-size: 12px;
        white-space: nowrap;
    }
    .ks-card-content {
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
    }
    .ks-cta-btn {
        width: 100%;
        padding: 10px;
    }
    .ks-badge-col {
        width: 52px;
        min-width: 52px;
    }
}
.ks-section-header-gap {
    margin-top: 25px;
}
