/* AFB Statistics RTL Styles - Auto Generated */
/* Last Updated: 2024-01-01 */

[dir="rtl"] .afb-stat-container {
    direction: rtl;
    text-align: right;
}

[dir="rtl"] .afb-stat-header {
    text-align: center;
}

[dir="rtl"] .afb-stat-header h1,
[dir="rtl"] .afb-stat-header p {
    text-align: center;
}

[dir="rtl"] .afb-stat-grid {
    direction: rtl;
}

[dir="rtl"] .afb-stat-card {
    text-align: center;
}

[dir="rtl"] .afb-stat-college-card {
    border-left: none;
    border-right: 4px solid var(--afb-secondary-color);
}

[dir="rtl"] .afb-stat-college-card:nth-child(1) { border-right-color: #e74c3c; }
[dir="rtl"] .afb-stat-college-card:nth-child(2) { border-right-color: #2ecc71; }
[dir="rtl"] .afb-stat-college-card:nth-child(3) { border-right-color: #3498db; }
[dir="rtl"] .afb-stat-college-card:nth-child(4) { border-right-color: #9b59b6; }
[dir="rtl"] .afb-stat-college-card:nth-child(5) { border-right-color: #f1c40f; }
[dir="rtl"] .afb-stat-college-card:nth-child(6) { border-right-color: #1abc9c; }
[dir="rtl"] .afb-stat-college-card:nth-child(7) { border-right-color: #d35400; }

[dir="rtl"] .afb-stat-table th,
[dir="rtl"] .afb-stat-table td {
    text-align: right;
}

[dir="rtl"] .afb-stat-colleges-ul li {
    border-right: none;
    border-left: 4px solid var(--afb-secondary-color);
}

[dir="rtl"] .afb-stat-colleges-ul li small {
    margin-right: 0;
    margin-left: auto;
}

[dir="rtl"] .afb-stat-note {
    border-right: none;
    border-left: 4px solid #4dabf7;
}

[dir="rtl"] .afb-stat-note i {
    margin-left: 0;
    margin-right: 8px;
}

[dir="rtl"] .afb-stat-college-id-container {
    flex-direction: row;
}

[dir="rtl"] .afb-stat-alt-id {
    margin-left: 8px;
    margin-right: 0;
}

[dir="rtl"] .afb-stat-input-id {
    margin-right: 0;
    margin-left: 5px;
}

[dir="rtl"] .afb-stat-department-id {
    margin-left: 0;
    margin-right: 10px;
}

[dir="rtl"] .afb-stat-department-card::before {
    right: auto;
    left: 15px;
}

[dir="rtl"] .afb-stat-department-footer {
    text-align: left;
}

[dir="rtl"] .afb-stat-summary-info {
    border-left: none;
    border-right: 5px solid #184FA3;
}

[dir="rtl"] .afb-stat-section-title {
    text-align: right;
}

[dir="rtl"] .afb-stat-section-title i {
    margin-right: 0;
    margin-left: 15px;
}

/* RTL Fixes for responsive */
@media (max-width: 768px) {
    [dir="rtl"] .afb-stat-college-id-container {
        align-items: flex-start;
    }
    
    [dir="rtl"] .afb-stat-colleges-ul li {
        flex-direction: row-reverse;
    }
}

/* Additional RTL fixes */
[dir="rtl"] .afb-stat-department-code-item {
    text-align: right;
}

[dir="rtl"] .afb-stat-major-card {
    text-align: center;
}

[dir="rtl"] .afb-stat-department-field {
    text-align: right;
}

[dir="rtl"] .afb-stat-department-label {
    text-align: right;
}

[dir="rtl"] .afb-stat-department-value {
    text-align: left;
}

[dir="rtl"] .afb-stat-department-stat-card {
    text-align: center;
}

/* Floating elements RTL */
[dir="rtl"] .afb-stat-college-card-small {
    text-align: center;
}

[dir="rtl"] .afb-stat-college-card-name {
    text-align: center;
}

[dir="rtl"] .afb-stat-college-card-shortcode {
    text-align: center;
}