/*
 * Universities RTL CSS - RTL-specific styles for university functionality
 * Extracted from modset-rtl.css for better organization and maintainability
 */

/* ========== UNIVERSITIES PAGE STYLES - RTL ========== */
/* ========== RTL SPECIFIC OVERRIDES ========== */
html[dir="rtl"] .university-card:hover .view-profile-btn {
    transform: translateX(-5px);
}

html[dir="rtl"] .contact-item:hover {
    transform: translateX(-5px);
}

html[dir="rtl"] .university-logo-section {
    direction: rtl;
}

html[dir="rtl"] .university-nav {
    direction: rtl;
}

html[dir="rtl"] .university-header {
    direction: rtl;
}

html[dir="rtl"] .university-footer {
    direction: rtl;
}

html[dir="rtl"] .social-links {
    direction: ltr; /* Keep social icons in LTR order */
}

html[dir="rtl"] .university-stats {
    justify-content: flex-start;
}

html[dir="rtl"] .category-stats {
    direction: rtl;
}

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

html[dir="rtl"] .banner-description {
    direction: rtl;
    text-align: center;
}

html[dir="rtl"] .university-description {
    direction: rtl;
    text-align: right;
}

html[dir="rtl"] .about-content {
    direction: rtl;
    text-align: right;
}

html[dir="rtl"] .university-description {
    text-align: right;
}

html[dir="rtl"] .post-content {
    direction: rtl;
    text-align: right;
}

html[dir="rtl"] .video-info {
    direction: rtl;
    text-align: right;
}

html[dir="rtl"] .contact-list {
    direction: rtl;
}

html[dir="rtl"] .contact-item {
    direction: rtl;
    text-align: right;
}

html[dir="rtl"] .university-phone {
    direction: rtl;
    justify-content: flex-start;
}

html[dir="rtl"] .university-contact {
    direction: rtl;
    justify-content: flex-start;
}

html[dir="rtl"] .view-profile-btn {
    direction: rtl;
}

html[dir="rtl"] .post-meta {
    direction: rtl;
    justify-content: flex-start;
}

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

/* ========== RTL TEXT ALIGNMENT ========== */
html[dir="rtl"] .university-name {
    text-align: right;
}

html[dir="rtl"] .university-title {
    text-align: right;
}

html[dir="rtl"] .post-title {
    text-align: right;
}

html[dir="rtl"] .post-excerpt {
    text-align: right;
}

html[dir="rtl"] .video-info h4 {
    text-align: right;
}

html[dir="rtl"] .video-info p {
    text-align: right;
}

html[dir="rtl"] .contact-card h3 {
    text-align: right;
}

html[dir="rtl"] .banner-title {
    text-align: center;
}

html[dir="rtl"] .empty-state-wrapper {
    direction: rtl;
}

html[dir="rtl"] .empty-state-wrapper h4 {
    text-align: center;
}

html[dir="rtl"] .empty-state-wrapper p {
    text-align: center;
}

html[dir="rtl"] .no-content-wrapper {
    direction: rtl;
}

/* ========== RTL RESPONSIVE ADJUSTMENTS ========== */
@media (max-width: 768px) {
    html[dir="rtl"] .university-card:hover .view-profile-btn {
        transform: none;
    }
    
    html[dir="rtl"] .contact-item:hover {
        transform: none;
    }
    
    html[dir="rtl"] .university-header {
        text-align: center;
    }
    
    html[dir="rtl"] .university-basic-info {
        text-align: center;
    }
    
    html[dir="rtl"] .university-logo-section {
        text-align: center;
    }
}

/* ========== RTL NAVIGATION ========== */
html[dir="rtl"] .university-nav {
    overflow-x: auto;
    scrollbar-width: thin;
}

html[dir="rtl"] .nav-item {
    white-space: nowrap;
}

/* ========== RTL GRID LAYOUTS ========== */
html[dir="rtl"] .universities-grid {
    direction: rtl;
}

html[dir="rtl"] .photos-grid {
    direction: rtl;
}

html[dir="rtl"] .videos-grid {
    direction: rtl;
}

html[dir="rtl"] .posts-grid {
    direction: rtl;
}

/* ========== RTL HOVER EFFECTS ========== */
html[dir="rtl"] .social-link:hover {
    transform: translateY(-2px);
}

html[dir="rtl"] .photo-item:hover .photo-img {
    transform: scale(1.05);
}

html[dir="rtl"] .post-item:hover {
    transform: translateY(-5px);
}

html[dir="rtl"] .university-card:hover {
    transform: translateY(-8px);
}

/* ========== RTL FORM ELEMENTS ========== */
html[dir="rtl"] .category-badge {
    direction: rtl;
}

/* ========== RTL FLEXBOX ADJUSTMENTS ========== */
html[dir="rtl"] .university-header {
    flex-direction: row;
}

html[dir="rtl"] .university-footer {
    flex-direction: row;
    justify-content: space-between;
}

html[dir="rtl"] .university-logo-section {
    align-items: center;
}

html[dir="rtl"] .university-stats {
    flex-direction: row;
}

@media (max-width: 768px) {
    html[dir="rtl"] .university-header {
        flex-direction: column;
    }
    
    html[dir="rtl"] .university-footer {
        flex-direction: column;
    }
    
    html[dir="rtl"] .university-logo-section {
        flex-direction: column;
    }
    
    html[dir="rtl"] .university-stats {
        flex-direction: row;
        justify-content: center;
    }
}

/* ========== RTL SPACING ADJUSTMENTS ========== */
html[dir="rtl"] .university-basic-info {
    margin-right: 0;
    margin-left: auto;
}

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

html[dir="rtl"] .photo-overlay {
    text-align: right;
    direction: rtl;
}

html[dir="rtl"] .video-wrapper {
    direction: ltr; /* Keep video embed direction as LTR */
}

/* ========== RTL MODAL ADJUSTMENTS ========== */
html[dir="rtl"] .modal-header {
    direction: rtl;
}

html[dir="rtl"] .modal-body {
    direction: rtl;
}

html[dir="rtl"] .modal-title {
    text-align: right;
}

/* ========== RTL ARROW ICONS ========== */
html[dir="rtl"] .view-profile-btn i.fa-arrow-right::before {
    content: "\f060"; /* arrow-left */
}

html[dir="rtl"] .view-profile-btn i.fa-arrow-left::before {
    content: "\f061"; /* arrow-right */
}