/* ========== HERO SECTION ========== */
.hero-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    background: var(--primary-color);
    color: var(--white);
}

.hero-bg-animation {
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    opacity: 0.6;
    overflow: hidden;
}

/* Modern SVG Animation Styles */
.hero-svg-animation {
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    right: 0;
}

.floating-shape {
    opacity: 0.8;
    filter: blur(0.5px);
}

/* RTL Hero Layout Enhancements */
.hero-content {
    text-align: right !important;
}

.hero-buttons {
    justify-content: flex-end !important;
    direction: rtl;
}

.app-download-section {
    text-align: right !important;
}

.hero-text {
    text-align: right !important;
}

/* Modern Hero Background */
.hero-bg-modern {
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(225deg, #4b1e1e 0%, #5c2626 25%, #4b1e1e 50%, #3a1a1a 75%, #4b1e1e 100%);
    z-index: 1;
}

.hero-bg-modern::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 70% 20%, rgba(227, 152, 35, 0.1) 0%, transparent 50%),
                radial-gradient(circle at 30% 80%, rgba(227, 152, 35, 0.08) 0%, transparent 50%);
    z-index: 2;
}

.hero-bg-modern .hero-svg-animation {
    z-index: 3;
}

.hero-content {
    position: relative;
    z-index: 3;
    width: 100%;
}

.hero-text {
    text-align: right;
    margin-bottom: 3rem;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: var(--font-weight-heavy);
    margin-bottom: 1.5rem;
    line-height: 1.2;
    background: linear-gradient(225deg, var(--white), rgba(255, 255, 255, 0.8));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: fadeInUp 1s ease-out;
}

.hero-subtitle {
    font-size: 1.4rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 2rem;
    line-height: 1.6;
    animation: fadeInUp 1s ease-out 0.2s both;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
    flex-wrap: wrap;
    animation: fadeInUp 1s ease-out 0.4s both;
}

.hero-btn {
    padding: 15px 30px;
    border-radius: var(--radius-large);
    font-size: 1.1rem;
    font-weight: var(--font-weight-medium);
    text-decoration: none;
    transition: all var(--transition-normal);
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-width: 200px;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.hero-btn::before {
    content: '';
    position: absolute;
    top: 0;
    right: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(270deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: right 0.6s ease;
}

.hero-btn:hover::before {
    right: 100%;
}

.hero-btn-primary {
    background: var(--secondary-color);
    color: var(--white);
    border: 2px solid var(--secondary-color);
}

.hero-btn-primary:hover {
    background: transparent;
    color: var(--secondary-color);
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(227, 152, 35, 0.3);
}

.hero-btn-outline {
    background: transparent;
    color: var(--white);
    border: 2px solid rgba(255, 255, 255, 0.5);
}

.hero-btn-outline:hover {
    background: var(--white);
    color: var(--primary-color);
    border-color: var(--white);
    transform: translateY(-3px);
}

.hero-image {
    text-align: center;
    animation: fadeInUp 1s ease-out 0.6s both;
}

.hero-image img {
    max-width: 100%;
    height: auto;
    border-radius: var(--radius-large);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    transition: transform var(--transition-slow);
}

.hero-image:hover img {
    transform: scale(1.05) rotate(-2deg);
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-title {
    font-size: 2.5rem;
    font-weight: var(--font-weight-heavy);
    color: var(--primary-color);
    margin-bottom: 1rem;
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    right: 50%;
    transform: translateX(50%);
    width: 60px;
    height: 4px;
    background: var(--secondary-color);
    border-radius: 2px;
}

.section-description {
    font-size: 1.2rem;
    color: var(--text-light);
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.category-card {
    background: var(--white);
    border-radius: var(--radius-large);
    padding: 30px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(75, 30, 30, 0.08);
    transition: all var(--transition-normal);
    position: relative;
    overflow: hidden;
    border: 2px solid transparent;
}

.category-card::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    height: 4px;
    background: var(--secondary-color);
    transform: scaleX(0);
    transition: transform var(--transition-normal);
}

.category-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 50px rgba(75, 30, 30, 0.15);
    border-color: var(--secondary-color);
}

.category-card:hover::before {
    transform: scaleX(1);
}

.category-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    background: linear-gradient(225deg, var(--primary-color), var(--primary-light));
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 2rem;
    transition: all var(--transition-normal);
}

.category-card:hover .category-icon {
    background: var(--secondary-gradient);
    transform: scale(1.1) rotate(-10deg);
}

.category-title {
    font-size: 1.3rem;
    font-weight: var(--font-weight-bold);
    color: var(--primary-color);
    margin-bottom: 10px;
}

.category-count {
    color: var(--text-light);
    font-size: 0.9rem;
    margin-bottom: 20px;
}

.category-link {
    color: var(--secondary-color);
    text-decoration: none;
    font-weight: var(--font-weight-medium);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all var(--transition-normal);
}

.category-link:hover {
    color: var(--primary-color);
    transform: translateX(-5px);
}

/* ====== Full-bleed sections with boxed content ====== */
html, body {
    overflow-x: hidden;
}

.categories-section,
.faq-section,
.opinions-section,
.partners-section,
.statistics-section {
    width: 100vw;
    position: relative;
    right: 50%;
    left: 50%;
    margin-right: -50vw;
    margin-left: -50vw;
}

.categories-section { 
    background-color: #ffdddd !important;
    padding: 60px 0 !important; 
}

/* Boxed content container inside full-bleed sections */
.categories-section > .container,
.faq-section > .container,
.opinions-section > .container,
.partners-section > .container,
.statistics-section > .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
    position: relative;
    z-index: 1;
}

/* Category cards (moved from inline) */
.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin: 0;
    padding: 0;
}

.category-card-link {
    text-decoration: none;
    color: inherit;
    display: block;
    transition: transform 0.3s ease;
}

.category-card-link:hover {
    text-decoration: none;
    color: inherit;
    transform: translateY(-5px);
}

.category-card {
    background: var(--white);
    border-radius: var(--radius-large);
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    height: 250px;
    margin: 0;
    padding: 0;
    width: 100%;
    cursor: pointer;
    display: flex;
    flex-direction: column;
}

.category-card-link:hover .category-card {
    box-shadow: 0 8px 25px rgba(0,0,0,0.2);
    transform: translateY(-8px);
}

.category-image-container {
    position: relative;
    height: 200px;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f8f9fa;
    flex-shrink: 0;
    margin: 0;
    padding: 0;
}

.category-image {
    width: 100%;
    height: 100%;
    padding: 0;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.category-card-link:hover .category-image {
    transform: scale(1.05);
}

.category-no-image {
    width: 100%;
    height: 200px;
    background: linear-gradient(225deg, #667eea, #764ba2);
    border-radius: 0;
}

.category-icon {
    position: absolute;
    top: 10px;
    left: 10px;
    width: 35px;
    height: 35px;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #667eea;
    font-size: 16px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

.category-info {
    padding: 20px;
    text-align: center;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.category-title {
    color: #333;
    margin: 0 0 10px 0;
    font-size: 16px;
    font-weight: 600;
    line-height: 1.4;
}

.category-count {
    color: #666;
    margin: 0;
    font-size: 14px;
}

@media (max-width: 768px) {
    .category-card { 
        height: 220px; 
    }
    
    .category-image-container {
        height: 100px;
    }
    
    .category-image,
    .category-no-image {
        width: 100%;
        height: 100px;
    }
    
    .category-icon {
        width: 30px;
        height: 30px;
        font-size: 14px;
        top: 8px;
        left: 8px;
    }
    
    .category-info {
        padding: 15px;
    }
    
    .category-title { 
        font-size: 15px; 
    }
    
    .category-count {
        font-size: 13px;
    }
}

.university-section {
    padding: 80px 0;
    background: var(--white);
    position: relative;
}

.university-card {
    background: linear-gradient(225deg, var(--primary-color), var(--primary-light));
    border-radius: var(--radius-large);
    padding: 50px;
    color: var(--white);
    position: relative;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(75, 30, 30, 0.2);
}

.university-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
    animation: universityPulse 4s ease-in-out infinite;
}

.university-content {
    position: relative;
    z-index: 2;
}

.university-logo {
    width: 120px;
    height: 120px;
    border-radius: var(--radius-medium);
    margin-bottom: 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.university-title {
    font-size: 2rem;
    font-weight: var(--font-weight-heavy);
    margin-bottom: 15px;
}

.university-description {
    font-size: 1.1rem;
    line-height: 1.6;
    opacity: 0.9;
    margin-bottom: 30px;
}

.university-btn {
    background: var(--secondary-color);
    color: var(--white);
    padding: 12px 30px;
    border-radius: var(--radius-medium);
    text-decoration: none;
    font-weight: var(--font-weight-medium);
    transition: all var(--transition-normal);
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.university-btn:hover {
    background: var(--white);
    color: var(--primary-color);
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(227, 152, 35, 0.3);
}

/* ========== FAQ SECTION ========== */
.faq-section {
    padding: 80px 0;
    background: var(--site-bg);
}

.faq-container {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    background: var(--white);
    border-radius: var(--radius-medium);
    margin-bottom: 20px;
    box-shadow: 0 5px 15px rgba(75, 30, 30, 0.08);
    overflow: hidden;
    transition: all var(--transition-normal);
}

.faq-item.active {
    box-shadow: 0 10px 30px rgba(75, 30, 30, 0.15);
}

.faq-question {
    background: none;
    border: none;
    width: 100%;
    padding: 25px 30px;
    text-align: right;
    font-size: 1.1rem;
    font-weight: var(--font-weight-medium);
    color: var(--primary-color);
    cursor: pointer;
    transition: all var(--transition-normal);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.faq-question:hover {
    background: var(--hover-bg);
}

.faq-question::after {
    content: '+';
    font-size: 1.5rem;
    font-weight: var(--font-weight-bold);
    transition: transform var(--transition-normal);
}

.faq-item.active .faq-question::after {
    transform: rotate(45deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height var(--transition-normal);
}

.faq-answer-content {
    padding: 0 30px 25px;
    color: var(--text-dark);
    line-height: 1.6;
}

.faq-item.active .faq-answer {
    max-height: 500px;
}

/* ========== STUDENT OPINIONS SECTION ========== */
.opinions-section {
    padding: 80px 0;
    background: var(--site-bg);
}

.opinions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.opinion-card {
    background: var(--white);
    border-radius: var(--radius-large);
    padding: 30px;
    box-shadow: 0 10px 30px rgba(75, 30, 30, 0.08);
    transition: all var(--transition-normal);
    position: relative;
    border: 2px solid transparent;
}

.opinion-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 50px rgba(75, 30, 30, 0.15);
    border-color: var(--secondary-color);
}

.opinion-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
    direction: rtl;
}

.opinion-avatar {
    width: 60px;
    height: 60px;
    border-radius: var(--radius-full);
    object-fit: cover;
    border: 3px solid var(--secondary-color);
}

.opinion-info h4 {
    font-size: 1.1rem;
    font-weight: var(--font-weight-bold);
    color: var(--primary-color);
    margin: 0 0 5px 0;
}

.opinion-stars {
    display: flex;
    gap: 2px;
    direction: ltr;
}

.star {
    color: #ffc107;
    font-size: 1rem;
}

.star.empty {
    color: #e9ecef;
}

.opinion-text {
    color: var(--text-dark);
    line-height: 1.6;
    font-style: italic;
    position: relative;
}

.opinion-text::before {
    content: '"';
    font-size: 3rem;
    color: var(--secondary-color);
    position: absolute;
    top: -10px;
    right: -10px;
    opacity: 0.3;
}

/* ========== PARTNERS SECTION ========== */
.partners-section {
    padding: 80px 0;
    background: var(--site-bg);
}

.partners-slider {
    position: relative;
    overflow: hidden;
    margin-top: 50px;
}

.partners-track {
    display: flex;
    gap: 40px;
    animation: partnersSlideRTL 20s linear infinite;
    width: fit-content;
}

.partner-item {
    background: var(--white);
    border-radius: var(--radius-medium);
    padding: 30px;
    text-align: center;
    box-shadow: 0 5px 20px rgba(75, 30, 30, 0.08);
    transition: all var(--transition-normal);
    min-width: 250px;
    flex-shrink: 0;
}

.partner-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(75, 30, 30, 0.15);
}

.partner-logo {
    width: 120px;
    height: 80px;
    object-fit: contain;
    margin-bottom: 20px;
    transition: all var(--transition-normal);
    filter: grayscale(100%);
}

.partner-item:hover .partner-logo {
    filter: grayscale(0%);
    transform: scale(1.1);
}

.partner-name {
    font-size: 1.1rem;
    font-weight: var(--font-weight-bold);
    color: var(--primary-color);
    margin-bottom: 10px;
}

.partner-description {
    color: var(--text-light);
    font-size: 0.9rem;
    line-height: 1.5;
}

/* ========== ANIMATIONS ========== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes universityPulse {
    0%, 100% {
        transform: scale(1) rotate(0deg);
        opacity: 0.1;
    }
    50% {
        transform: scale(1.1) rotate(-180deg);
        opacity: 0.2;
    }
}

@keyframes partnersSlideRTL {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(50%);
    }
}

/* Pause animation on hover */
.partners-track:hover {
    animation-play-state: paused;
}

/* ========== RESPONSIVE DESIGN ========== */
/* ========== STATISTICS SECTION ========== */
.statistics-section {
    padding: 80px 0;
    background: linear-gradient(135deg, #4b1e1e 0%, #6b2c2c 25%, #4b1e1e 50%, #3a1a1a 75%, #4b1e1e 100%);
    color: #ffffff;
    position: relative;
    overflow: hidden;
}

.statistics-section::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 70% 20%, rgba(227, 152, 35, 0.1) 0%, transparent 50%),
                radial-gradient(circle at 30% 80%, rgba(227, 152, 35, 0.08) 0%, transparent 50%);
    z-index: 1;
}

.statistics-content {
    position: relative;
    z-index: 2;
}

.statistics-section .container {
    position: relative;
    z-index: 2;
}

.statistics-section .section-title {
    color: #ffffff;
    direction: rtl;
    text-align: center;
}

.statistics-section .section-title::after {
    background: #e39823;
}

.statistics-section .section-description {
    color: rgba(255, 255, 255, 0.9);
    direction: rtl;
    text-align: center;
}

.stats-grid {
    display: grid !important;
    grid-template-columns: repeat(5, 1fr) !important;
    gap: 20px;
    margin-top: 50px;
    width: 100% !important;
    max-width: none !important;
    overflow: visible !important;
}

.stat-card {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 40px 30px;
    text-align: center;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
    /* Flex properties for single row layout */
    flex: 1 1 auto !important;
    min-width: 0 !important;
    width: auto !important;
    margin: 0 !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
    align-items: center !important;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    right: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(227, 152, 35, 0.2), transparent);
    transition: right 0.6s ease;
}

.stat-card:hover::before {
    right: 100%;
}

.stat-card:hover {
    transform: translateY(-10px);
    background: rgba(255, 255, 255, 0.15);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.stat-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #e39823, #f4a942);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 25px;
    color: #ffffff;
    font-size: 2rem;
    transition: all 0.4s ease;
    position: relative;
}

.stat-card:hover .stat-icon {
    transform: rotate(-10deg) scale(1.1);
}

.stat-icon::after {
    content: '';
    position: absolute;
    top: 50%;
    right: 50%;
    transform: translate(50%, -50%);
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(255,255,255,0.2), transparent);
    border-radius: 50%;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.stat-card:hover .stat-icon::after {
    opacity: 1;
}

.stat-number {
    font-size: 3.5rem;
    font-weight: 900;
    color: #ffffff !important;
    margin-bottom: 15px;
    line-height: 1;
    font-family: 'Arial', sans-serif;
    text-shadow: 0 2px 10px rgba(0,0,0,0.3) !important;
}

.stat-label {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.9) !important;
    font-weight: 600;
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.stat-description {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7) !important;
    line-height: 1.4;
}

/* Animation classes for counter */
@keyframes statCardSlideIn {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.stat-card.animate-in {
    animation: statCardSlideIn 0.6s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.stat-card.animate-in:nth-child(1) {
    animation-delay: 0s;
}

.stat-card.animate-in:nth-child(2) {
    animation-delay: 0.1s;
}

.stat-card.animate-in:nth-child(3) {
    animation-delay: 0.2s;
}

.stat-card.animate-in:nth-child(4) {
    animation-delay: 0.3s;
}

.stat-card.animate-in:nth-child(5) {
    animation-delay: 0.4s;
}

/* Statistics Call-to-Action Button - RTL */

.stat-icon::after {
    content: '';
    position: absolute;
    top: 50%;
    right: 50%;
    transform: translate(50%, -50%);
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(255,255,255,0.2), transparent);
    border-radius: 50%;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.stat-card:hover .stat-icon::after {
    opacity: 1;
}

.stat-number {
    font-size: 3rem;
    font-weight: var(--font-weight-bold);
    color: var(--primary-color);
    margin-bottom: 10px;
    line-height: 1;
    transition: all 0.3s ease;
    font-family: 'Cairo', sans-serif;
}

.stat-card:hover .stat-number {
    color: var(--secondary-color);
    transform: scale(1.05);
}

.stat-label {
    font-size: 1rem;
    color: #6c757d;
    font-weight: var(--font-weight-medium);
    margin-bottom: 8px;
    transition: color 0.3s ease;
}

.stat-card:hover .stat-label {
    color: var(--primary-color);
}

.stat-description {
    font-size: 0.875rem;
    color: #8e9aaf;
    line-height: 1.4;
    margin-top: 5px;
}

/* RTL Specific Adjustments */
.statistics-section .section-header {
    text-align: center;
}

.statistics-section .section-title {
    direction: rtl;
    text-align: center;
}

.statistics-section .section-description {
    direction: rtl;
    text-align: center;
}

/* Animation classes for counter */
@keyframes countUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.stat-card.animate-in {
    animation: countUp 0.6s ease-out forwards;
}

.stat-card.animate-in:nth-child(2) {
    animation-delay: 0.1s;
}

.stat-card.animate-in:nth-child(3) {
    animation-delay: 0.2s;
}

.stat-card.animate-in:nth-child(4) {
    animation-delay: 0.3s;
}

.stat-card.animate-in:nth-child(5) {
    animation-delay: 0.4s;
}

/* Desktop layout (keep 5 columns only on large screens) */
@media (min-width: 992px) {
    [dir="rtl"] .statistics-section .stats-grid,
    .statistics-section[dir="rtl"] .stats-grid,
    body[dir="rtl"] .statistics-section .stats-grid,
    html[dir="rtl"] .statistics-section .stats-grid {
        display: grid !important;
        grid-template-columns: repeat(5, 1fr) !important;
        gap: 20px !important;
        margin-top: 50px !important;
    }
    [dir="rtl"] .statistics-section .stat-card,
    .statistics-section[dir="rtl"] .stat-card,
    body[dir="rtl"] .statistics-section .stat-card,
    html[dir="rtl"] .statistics-section .stat-card {
        flex: none !important;
        margin: 0 !important;
    }
}

/* Statistics Call-to-Action Button - RTL */
.statistics-cta {
    text-align: center;
    margin-top: 60px;
    direction: rtl;
}

.stats-cta-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: var(--white);
    padding: 18px 40px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: var(--font-weight-semibold);
    font-size: 1.1rem;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 8px 30px rgba(227, 152, 35, 0.3);
    position: relative;
    overflow: hidden;
    border: none;
    cursor: pointer;
    direction: rtl;
    text-align: center;
}

.stats-cta-button::before {
    content: '';
    position: absolute;
    top: 0;
    right: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: right 0.6s ease;
}

.stats-cta-button:hover::before {
    right: 100%;
}

.stats-cta-button:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 15px 40px rgba(227, 152, 35, 0.4);
    color: var(--white);
    text-decoration: none;
}

.stats-cta-button:active {
    transform: translateY(-1px) scale(1.02);
}

/* Gradient background variants for different cards */
.stat-card:nth-child(1) .stat-icon {
    background: linear-gradient(135deg, #4b1e1e, #e39823);
}

.stat-card:nth-child(2) .stat-icon {
    background: linear-gradient(135deg, #e39823, #4b1e1e);
}

.stat-card:nth-child(3) .stat-icon {
    background: linear-gradient(135deg, #4b1e1e, #e39823);
}

.stat-card:nth-child(4) .stat-icon {
    background: linear-gradient(135deg, #e39823, #4b1e1e);
}

.stat-card:nth-child(5) .stat-icon {
    background: linear-gradient(135deg, #4b1e1e, #e39823);
}

/* Statistics Section Mobile Responsive - FORCE SINGLE ROW AT ALL SIZES */
@media (max-width: 1199.98px) {
    [dir="rtl"] .statistics-section .stats-grid,
    .statistics-section[dir="rtl"] .stats-grid,
    body[dir="rtl"] .statistics-section .stats-grid {
        display: flex !important;
        flex-direction: row !important;
        flex-wrap: nowrap !important;
        justify-content: space-between !important;
        grid-template-columns: 1fr 1fr 1fr 1fr 1fr !important;
        gap: 15px !important;
    }
    
    [dir="rtl"] .statistics-section .stat-card,
    .statistics-section[dir="rtl"] .stat-card,
    body[dir="rtl"] .statistics-section .stat-card {
        flex: 1 1 20% !important;
        padding: 35px 15px !important;
        min-width: 0 !important;
        width: auto !important;
        margin: 0 !important;
    }
}
    
    .stat-icon {
        width: 60px;
        height: 60px;
        font-size: 24px;
        margin-bottom: 20px;
    }
    
    .stat-number {
        font-size: 2.5rem;
    }

@media (max-width: 991.98px) {
    .statistics-section {
        padding: 60px 0;
    }
    
    [dir="rtl"] .statistics-section .stats-grid,
    .statistics-section[dir="rtl"] .stats-grid,
    body[dir="rtl"] .statistics-section .stats-grid {
        display: flex !important;
        flex-direction: row !important;
        flex-wrap: nowrap !important;
        justify-content: space-between !important;
        grid-template-columns: 1fr 1fr 1fr 1fr 1fr !important;
        gap: 15px !important;
        margin-top: 40px;
    }
    
    [dir="rtl"] .statistics-section .stat-card,
    .statistics-section[dir="rtl"] .stat-card,
    body[dir="rtl"] .statistics-section .stat-card {
        flex: 1 1 20% !important;
        padding: 30px 15px;
        min-width: 0 !important;
        width: auto !important;
        margin: 0 !important;
    }
}
    
    .stat-icon {
        width: 55px;
        height: 55px;
        font-size: 22px;
        margin-bottom: 15px;
    }
    
    .stat-number {
        font-size: 2.2rem;
    }
    
    .stat-label {
        font-size: 0.9rem;
    }

@media (max-width: 767.98px) {
    .statistics-section {
        padding: 50px 0;
    }
    
    /* Tablet: 2 cards per row layout */
    [dir="rtl"] .statistics-section .stats-grid,
    .statistics-section[dir="rtl"] .stats-grid,
    body[dir="rtl"] .statistics-section .stats-grid {
        display: grid !important;
        grid-template-columns: 1fr 1fr !important;
        grid-template-rows: auto !important;
        gap: 20px !important;
        margin-top: 30px;
        justify-items: center;
    }
    
    [dir="rtl"] .statistics-section .stat-card,
    .statistics-section[dir="rtl"] .stat-card,
    body[dir="rtl"] .statistics-section .stat-card {
        flex: none !important;
        padding: 30px 20px;
        min-width: auto !important;
        width: 100% !important;
        max-width: 250px !important;
        margin: 0 !important;
    }
    
    .stat-icon {
        width: 50px;
        height: 50px;
        font-size: 20px;
        margin-bottom: 12px;
    }
    
    .stat-number {
        font-size: 1.8rem;
    }
    
    .stat-label {
        font-size: 0.85rem;
        margin-bottom: 5px;
    }
    
    .stat-description {
        font-size: 0.8rem;
    }
}
    
    .stat-icon {
        width: 50px;
        height: 50px;
        font-size: 20px;
        margin-bottom: 12px;
    }
    
    .stat-number {
        font-size: 1.8rem;
    }
    
    .stat-label {
        font-size: 0.85rem;
        margin-bottom: 5px;
    }
    
    .stat-description {
        font-size: 0.8rem;
    }

@media (max-width: 575.98px) {
    .statistics-section {
        padding: 40px 0;
    }
    
    /* Mobile: 2 cards per row layout */
    [dir="rtl"] .statistics-section .stats-grid,
    .statistics-section[dir="rtl"] .stats-grid,
    body[dir="rtl"] .statistics-section .stats-grid {
        display: grid !important;
        grid-template-columns: repeat(2, 1fr) !important;
        grid-auto-rows: auto;
        gap: 15px !important;
        margin-top: 25px;
        justify-items: stretch;
        align-items: stretch;
    }

    [dir="rtl"] .statistics-section .stat-card,
    .statistics-section[dir="rtl"] .stat-card,
    body[dir="rtl"] .statistics-section .stat-card {
        flex: none !important;
        width: 100% !important;
        max-width: none !important;
        margin: 0 !important;
        padding: 25px 15px;
        min-width: 0 !important;
        box-sizing: border-box;
    }
    
    [dir="rtl"] .statistics-section .stat-number,
    .statistics-section[dir="rtl"] .stat-number,
    body[dir="rtl"] .statistics-section .stat-number {
        font-size: 2.5rem !important;
    }
    
    [dir="rtl"] .statistics-section .stat-icon,
    .statistics-section[dir="rtl"] .stat-icon,
    body[dir="rtl"] .statistics-section .stat-icon {
        width: 60px !important;
        height: 60px !important;
        font-size: 24px !important;
    }
    
    .stat-icon {
        width: 45px;
        height: 45px;
        font-size: 18px;
        margin-bottom: 10px;
    }
    
    .stat-number {
        font-size: 1.6rem;
    }
    
    .stat-label {
        font-size: 0.8rem;
    }
    
    .stat-description {
        font-size: 0.75rem;
    }
    
    .statistics-cta {
        margin-top: 40px;
    }
    
    .stats-cta-button {
        padding: 15px 30px;
        font-size: 1rem;
    }
}
    
    .stat-icon {
        width: 45px;
        height: 45px;
        font-size: 18px;
        margin-bottom: 10px;
    }
    
    .stat-number {
        font-size: 1.6rem;
    }
    
    .stat-label {
        font-size: 0.8rem;
    }
    
    .stat-description {
        font-size: 0.75rem;
    }
    
    .statistics-cta {
        margin-top: 40px;
    }
    
    .stats-cta-button {
        padding: 15px 30px;
        font-size: 1rem;
    }

/* ========== MOBILE RESPONSIVE ========== */
@media (max-width: 991.98px) {
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.2rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .hero-btn {
        min-width: 250px;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .categories-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 20px;
    }
    
    .university-card {
        padding: 30px;
        text-align: center;
    }
    
    .opinions-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 767.98px) {
    .hero-section {
        min-height: 80vh;
        padding: 40px 0;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .hero-text {
        text-align: center;
        margin-bottom: 30px;
    }
    
    .hero-buttons {
        justify-content: center;
    }
    
    .app-download-section {
        text-align: center;
    }
    
    .search-input-group {
        flex-direction: column;
        gap: 10px;
    }
    
    .search-input {
        width: 100%;
        text-align: center;
    }
    
    .search-btn {
        width: 100%;
        justify-content: center;
    }
    
    /* Adjust hero columns for mobile */
    .hero-content .col-lg-6 {
        margin-bottom: 2rem;
    }
    
    /* Make SVG background more subtle on mobile */
    .hero-bg-modern .floating-shape {
        opacity: 0.3;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
    
    .section-description {
        font-size: 1rem;
    }
    
    .categories-grid {
        grid-template-columns: 1fr;
    }
    
    .category-card {
        padding: 20px;
    }
    
    .university-card {
        padding: 20px;
    }
    
    .university-title {
        font-size: 1.5rem;
    }
    
    .faq-question {
        padding: 20px;
        font-size: 1rem;
    }
    
    .opinion-card {
        padding: 20px;
    }
    
    .partner-item {
        min-width: 200px;
        padding: 20px;
    }
}

@media (max-width: 575.98px) {
    .hero-title {
        font-size: 1.8rem;
    }
    
    .hero-btn {
        min-width: 200px;
        padding: 12px 20px;
        font-size: 1rem;
    }
    
    .section-title {
        font-size: 1.5rem;
    }
    
    .categories-section,
    .university-section,
    .faq-section,
    .opinions-section,
    .partners-section {
        padding: 40px 0;
    }
}