/* ===== متغيرات CSS ===== */
:root {
    --primary-color: #4361ee;
    --secondary-color: #3f37c9;
    --accent-color: #4cc9f0;
    --dark-color: #1a1a2e;
    --light-color: #f8f9fa;
    --success-color: #4ade80;
    --danger-color: #f87171;
    --warning-color: #fbbf24;
    --gray-color: #6b7280;
    
    --gradient-primary: linear-gradient(135deg, #4361ee 0%, #3f37c9 100%);
    --gradient-dark: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    --gradient-accent: linear-gradient(135deg, #4cc9f0 0%, #4361ee 100%);
    
    --shadow-sm: 0 2px 4px rgba(0,0,0,0.1);
    --shadow-md: 0 4px 6px rgba(0,0,0,0.1);
    --shadow-lg: 0 10px 15px rgba(0,0,0,0.1);
    --shadow-xl: 0 20px 25px rgba(0,0,0,0.15);
    
    --border-radius: 12px;
    --border-radius-lg: 20px;
    --border-radius-sm: 8px;
    
    --transition: all 0.3s ease;
}

/* ===== إعدادات عامة ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Cairo', sans-serif;
    background: var(--dark-color);
    line-height: 1.6;
    overflow-x: hidden;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

body.page-tutorials {
    background: #f8f9fa;
    color: #333;
}

main {
    flex: 1;
    padding-top: 80px;
}

.container {
    max-width: 1200px;
    margin: 40 auto;
    padding: 0 15px;
}

/* ===== شريط التنقل العصري ===== */
.navbar {
    background: rgba(26, 26, 46, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding: 1rem 0;
    transition: var(--transition);
    z-index: 1000;
}

.navbar.scrolled {
    background: rgba(26, 26, 46, 0.98);
    box-shadow: var(--shadow-lg);
    padding: 0.8rem 0;
}

.navbar-brand {
    font-weight: 900;
    font-size: 1.8rem;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    position: relative;
    padding-right: 2.5rem;
    transition: var(--transition);
}

.navbar-brand::before {
    content: '';
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 2rem;
    height: 2rem;
    background: var(--gradient-primary);
    border-radius: 10px;
    z-index: -1;
}

.navbar-brand i {
    margin-left: 0.5rem;
    font-size: 1.6rem;
}

.nav-item {
    margin: 0 0.3rem;
}

.nav-link {
    font-weight: 600;
    font-size: 0.95rem;
    color: #fff !important;
    padding: 0.5rem 1rem !important;
    border-radius: 8px;
    position: relative;
    overflow: hidden;
    transition: var(--transition);
}

.nav-link::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 0;
    height: 100%;
    background: var(--gradient-primary);
    transition: width 0.3s ease;
    z-index: -1;
}

.nav-link:hover::before,
.nav-link.active::before {
    width: 100%;
}

.nav-link:hover,
.nav-link.active {
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
}

.nav-link i {
    font-size: 1.1rem;
    margin-left: 0.5rem;
    transition: var(--transition);
}

.nav-link:hover i {
    transform: scale(1.2);
}

.dropdown-menu {
    background: rgba(26, 26, 46, 0.95);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--border-radius);
    padding: 0.5rem;
    margin-top: 0.5rem !important;
}

.dropdown-item {
    color: #fff;
    font-weight: 500;
    padding: 0.75rem 1rem;
    border-radius: 6px;
    margin: 0.2rem 0;
    transition: var(--transition);
}

.dropdown-item:hover {
    background: var(--gradient-primary);
    transform: translateX(-5px);
}

.navbar-toggler {
    border: none;
    padding: 0.5rem;
    border-radius: 8px;
    background: var(--gradient-primary);
}

.navbar-toggler:focus {
    box-shadow: 0 0 0 3px rgba(67, 97, 238, 0.3);
}

/* ===== قسم الإحصائيات ===== */
.stats-section::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 300px;
    height: 300px;
    background: var(--gradient-accent);
    border-radius: 50%;
    filter: blur(100px);
    opacity: 0.3;
}

.stats-header {
    position: relative;
    z-index: 1;
}

.platform-title {
    font-size: 3.5rem;
    font-weight: 900;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 1.5rem;
    animation: titleGlow 3s ease-in-out infinite alternate;
}

@keyframes titleGlow {
    from {
        text-shadow: 0 0 10px rgba(67, 97, 238, 0.5);
    }
    to {
        text-shadow: 0 0 20px rgba(67, 97, 238, 0.8), 0 0 30px rgba(67, 97, 238, 0.6);
    }
}

.platform-description {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.8);
    max-width: 800px;
    margin: 0 auto 2rem;
    line-height: 1.8;
}

.download-wrapper {
    margin-top: 2rem;
}

.download-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 1rem 2.5rem;
    background: var(--gradient-primary);
    color: white;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 700;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    border: none;
    box-shadow: 0 10px 20px rgba(67, 97, 238, 0.3);
    animation: pulse 2s infinite;
}

.download-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 30px rgba(67, 97, 238, 0.4);
    color: white;
}

@keyframes pulse {
    0% {
        box-shadow: 0 10px 20px rgba(67, 97, 238, 0.3);
    }
    50% {
        box-shadow: 0 15px 30px rgba(67, 97, 238, 0.5);
    }
    100% {
        box-shadow: 0 10px 20px rgba(67, 97, 238, 0.3);
    }
}

/* ===== الهيدر المتحرك ===== */
.hero-section {
    position: relative;
    height: 600px;
    margin-bottom: 3rem;
}

.main-slider {
    width: 100%;
    height: 100%;
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-xl);
}

.swiper-slide {
    position: relative;
}

.slide-content {
    position: relative;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.slide-bg-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.slide-bg-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, rgba(26, 26, 46, 0.9) 0%, rgba(26, 26, 46, 0.7) 100%);
    z-index: 1;
}

.slide-bg-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 10s ease;
}

.swiper-slide-active .slide-bg-image {
    transform: scale(1.1);
}

.slide-badge {
    position: absolute;
    top: 20px;
    left: 20px;
    background: var(--gradient-primary);
    color: white;
    padding: 0.5rem 1.5rem;
    border-radius: 50px;
    font-weight: 700;
    z-index: 2;
    animation: badgePulse 2s infinite;
}

@keyframes badgePulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

.slide-content .container {
    position: relative;
    z-index: 2;
}

.slide-content h1 {
    font-size: 3.5rem;
    font-weight: 900;
    background: linear-gradient(45deg, #fff 30%, #4cc9f0 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 1.5rem;
    animation: slideInLeft 1s ease;
}

.slide-content p {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 2rem;
    animation: slideInRight 1s ease 0.3s both;
}

.glow-effect {
    background: var(--gradient-primary);
    color: white;
    border: none;
    padding: 1rem 2.5rem;
    border-radius: 50px;
    font-weight: 700;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    animation: fadeInUp 1s ease 0.6s both;
}

.glow-effect:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(67, 97, 238, 0.4);
}

.swiper-button-next,
.swiper-button-prev {
    color: white;
    background: rgba(255, 255, 255, 0.1);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    backdrop-filter: blur(10px);
    transition: var(--transition);
}

.swiper-button-next:hover,
.swiper-button-prev:hover {
    background: var(--gradient-primary);
    transform: scale(1.1);
}

.swiper-button-next::after,
.swiper-button-prev::after {
    font-size: 1.5rem;
}

.swiper-pagination-bullet {
    width: 12px;
    height: 12px;
    background: rgba(255, 255, 255, 0.5);
    opacity: 1;
}

.swiper-pagination-bullet-active {
    background: var(--gradient-primary);
}

/* ===== عداد الزوار الاحترافي - تصميم عرضي نحيف ===== */
.visitor-counter {
    width: 100%;
    background: linear-gradient(90deg, rgba(175,17,169,0.1) 0%, rgba(175,17,169,0.05) 100%);
    backdrop-filter: blur(10px);
    border-radius: 50px;
    padding: 0.6rem 1.5rem;
    color: #af11a9cf;
    box-shadow: var(--shadow-lg);
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    border: 1px solid rgba(178, 97, 97, 0.2);
    margin: 0 auto;
}

.visitor-counter::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, rgba(255,255,255,0.1) 0%, rgba(255,255,255,0) 50%);
    pointer-events: none;
}

.counter-header {
    display: flex;
    align-items: center;
    margin-bottom: 0;
    padding-left: 1rem;
}

.counter-header h3 {
    font-size: 1.1rem;
    font-weight: 700;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #fff;
    text-shadow: 0 0 5px rgba(175,17,169,0.5);
}

.counter-header h3 i {
    font-size: 1.2rem;
    color: #ffd700;
}

.counter-stats {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.counter-item {
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(5px);
    border-radius: 40px;
    padding: 0.3rem 1rem;
    display: flex;
    align-items: center;
    gap: 0.6rem;
    transition: var(--transition);
    border: 1px solid rgba(178, 97, 97, 0.25);
    min-width: 130px;
}

.counter-item:hover {
    transform: translateY(-2px);
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(175,17,169,0.5);
    box-shadow: 0 5px 15px rgba(175,17,169,0.2);
}

.counter-icon {
    font-size: 1rem;
    margin-bottom: 0;
    opacity: 0.95;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: rgba(175,17,169,0.2);
    color: #fff;
}

.counter-number {
    font-size: 1.1rem;
    font-weight: 800;
    margin-bottom: 0;
    background: linear-gradient(135deg, #d10000 0%, #e3d5ff 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    line-height: 1;
}

.counter-label {
    font-size: 0.8rem;
    opacity: 0.9;
    color: #ddd;
    margin-right: auto;
}

.counter-trend {
    font-size: 0.7rem;
    display: flex;
    align-items: center;
    gap: 0.2rem;
    background: rgba(0,0,0,0.2);
    padding: 0.2rem 0.5rem;
    border-radius: 20px;
    margin-left: 0.3rem;
}

.trend-up {
    color: #00ff88;
}

.trend-down {
    color: #ff4757;
}

/* ===== الفوتر - تصميم شريط نحيف احترافي ===== */
.footer {
    background: var(--gradient-dark);
    padding: 0.8rem 0;
    margin-top: 2rem;
    border-top: 1px solid rgba(255,255,255,0.05);
    box-shadow: 0 -5px 20px rgba(0,0,0,0.2);
}

.footer .container {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.footer-content {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    width: 100%;
}

/* القسم الأيمن: الشعار والوصف */
.footer-brand {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    flex-wrap: wrap;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.footer-logo i {
    font-size: 1.5rem;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.footer-logo h3 {
    font-size: 1.3rem;
    font-weight: 900;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    margin: 0;
}

.footer-description {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.8rem;
    margin: 0;
    max-width: 250px;
    line-height: 1.4;
}

/* روابط سريعة + دعم فني مجمعة */
.footer-links-group {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.footer-links-group .footer-title {
    display: none; /* إخفاء العناوين لتوفير المساحة */
}

.footer-links {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin: 0;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 500;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 0.2rem;
    white-space: nowrap;
}

.footer-links a i {
    font-size: 0.7rem;
    transition: transform 0.2s;
}

.footer-links a:hover {
    color: white;
    transform: translateY(-2px);
}

.footer-links a:hover i {
    transform: translateX(-3px);
}

/* قسم التواصل الاجتماعي */
.footer-social {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.social-icons {
    display: flex;
    gap: 0.3rem;
    margin: 0;
}

.social-icon {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    color: white;
    text-decoration: none;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    background: rgba(255,255,255,0.1);
}

.social-icon::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--gradient-primary);
    opacity: 0;
    transition: opacity 0.3s;
    z-index: 0;
}

.social-icon i {
    position: relative;
    z-index: 1;
}

.social-icon:hover {
    transform: translateY(-3px);
}

.social-icon:hover::before {
    opacity: 1;
}

.whatsapp:hover::before {
    background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
}

.discord:hover::before {
    background: linear-gradient(135deg, #5865F2 0%, #404EED 100%);
}

.social-note {
    display: none; /* إخفاء النص الطويل في الشريط النحيف */
}

/* السطر السفلي: حقوق النشر */
.footer-bottom {
    display: flex;
    justify-content: center;
    align-items: center;
    padding-top: 0.5rem;
    border-top: 1px solid rgba(255,255,255,0.05);
    margin-top: 0.3rem;
}

.copyright {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.75rem;
    margin: 0;
}

.footer-divider {
    display: none; /* إلغاء الخط الزائد */
}

/* ===== استجابة الفوتر للشاشات الصغيرة ===== */
@media (max-width: 992px) {
    .footer-content {
        flex-direction: column;
        align-items: center;
        gap: 0.8rem;
    }
    
    .footer-brand {
        justify-content: center;
        text-align: center;
    }
    
    .footer-description {
        max-width: 100%;
        text-align: center;
    }
    
    .footer-links-group {
        justify-content: center;
    }
}

@media (max-width: 768px) {
    .footer {
        padding: 1rem 0;
    }
    
    .footer-links {
        flex-wrap: wrap;
        justify-content: center;
        gap: 0.6rem;
    }
    
    .footer-links a {
        white-space: normal;
        font-size: 0.8rem;
    }
    
    .footer-social {
        margin-top: 0.3rem;
    }
}

/* ===== تأثيرات الرفع ===== */
.hover-lift {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hover-lift:hover {
    transform: translateY(-3px);
}

/* ===== تأثيرات الظهور ===== */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 1s ease forwards;
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.slide-in-left {
    animation: slideInLeft 1s ease;
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.slide-in-right {
    animation: slideInRight 1s ease;
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* ===== تنسيق الصفحة الداخلية ===== */
.page-header {
    background: var(--gradient-primary);
    padding: 6rem 0 4rem;
    margin-top: 76px;
    position: relative;
    overflow: hidden;
}

.page-header::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1440 320"><path fill="%23ffffff" fill-opacity="0.1" d="M0,96L48,112C96,128,192,160,288,160C384,160,480,128,576,112C672,96,768,96,864,112C960,128,1056,160,1152,160C1248,160,1344,128,1392,112L1440,96L1440,320L1392,320C1344,320,1248,320,1152,320C1056,320,960,320,864,320C768,320,672,320,576,320C480,320,384,320,288,320C192,320,96,320,48,320L0,320Z"></path></svg>') no-repeat bottom;
    background-size: cover;
}

.page-header .container {
    position: relative;
    z-index: 1;
}

.breadcrumb {
    background: transparent;
    padding: 0;
    margin-bottom: 1rem;
}

.breadcrumb-item a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: var(--transition);
}

.breadcrumb-item a:hover {
    color: white;
}

.breadcrumb-item.active {
    color: white;
}

.breadcrumb-item + .breadcrumb-item::before {
    color: rgba(255, 255, 255, 0.6);
}

.page-title {
    font-size: 3rem;
    font-weight: 900;
    color: white;
    margin-bottom: 1rem;
}

.page-description {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.9);
    max-width: 800px;
}

/* ===== تنسيق البطاقات ===== */
.tutorial-card,
.app-card,
.feature-card {
    background: white;
    border-radius: var(--border-radius);
    overflow: hidden;
    transition: var(--transition);
    border: 1px solid #e5e7eb;
    height: 100%;
}

.tutorial-card:hover,
.app-card:hover,
.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-xl);
    border-color: var(--primary-color);
}

.tutorial-card .card-img-top {
    height: 200px;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.tutorial-card:hover .card-img-top {
    transform: scale(1.05);
}

.tutorial-card .card-body {
    padding: 1.5rem;
}

.tutorial-card .card-title {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--dark-color);
    margin-bottom: 0.75rem;
}

.tutorial-card .card-text {
    color: var(--gray-color);
    line-height: 1.6;
    margin-bottom: 1rem;
}

.tutorial-card .card-footer {
    background: #f8f9fa;
    border-top: 1px solid #e5e7eb;
    padding: 1rem 1.5rem;
}

.app-card {
    text-align: center;
    padding: 2rem;
}

.app-card .card-body {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.app-card i.fa-mobile-alt {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.app-card .card-title {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--dark-color);
    margin-bottom: 1rem;
}

.app-card .card-text {
    color: var(--gray-color);
    line-height: 1.6;
    margin-bottom: 1.5rem;
    flex-grow: 1;
}

.app-info {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.feature-card {
    text-align: center;
    padding: 2rem;
}

.feature-icon {
    width: 70px;
    height: 70px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-size: 1.8rem;
    color: white;
    transition: var(--transition);
}

.feature-card:hover .feature-icon {
    transform: rotateY(180deg) scale(1.1);
}

.feature-title {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--dark-color);
    margin-bottom: 1rem;
}

/* ===== قسم المميزات ===== */
.feature-section {
    padding: 4rem 0;
}

.section-title {
    font-size: 2.2rem;
    font-weight: 900;
    color: var(--dark-color);
    margin-bottom: 1rem;
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    right: 0;
    width: 60%;
    height: 4px;
    background: var(--gradient-primary);
    border-radius: 2px;
}

/* ===== شريط البحث والتصفية ===== */
.filter-card {
    background: white;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-md);
    margin-bottom: 2rem;
}

.filter-card .card-header {
    background: var(--gradient-primary);
    color: white;
    border-radius: var(--border-radius) var(--border-radius) 0 0 !important;
    padding: 1rem 1.5rem;
}

.filter-card .card-body {
    padding: 1.5rem;
}

.form-label {
    font-weight: 600;
    color: var(--dark-color);
    margin-bottom: 0.5rem;
}

.form-control,
.form-select {
    border: 2px solid #e5e7eb;
    border-radius: var(--border-radius-sm);
    padding: 0.75rem 1rem;
    transition: var(--transition);
}

.form-control:focus,
.form-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(67, 97, 238, 0.1);
}

/* ===== الترحيم ===== */
.pagination {
    justify-content: center;
    margin-top: 2rem;
}

.page-item.active .page-link {
    background: var(--gradient-primary);
    border-color: var(--primary-color);
}

.page-link {
    color: var(--primary-color);
    border: 2px solid #e5e7eb;
    margin: 0 0.25rem;
    border-radius: var(--border-radius-sm) !important;
    transition: var(--transition);
}

.page-link:hover {
    background-color: #f8f9fa;
    border-color: var(--primary-color);
    color: var(--primary-color);
}

/* ===== شريط التقدم ===== */
.progress-bar-animated {
    animation: progressBar 1s ease-in-out infinite;
}

@keyframes progressBar {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

/* ===== أنماط متجاوبة ===== */
@media (max-width: 768px) {
    .platform-title {
        font-size: 2.5rem;
    }
    
    .hero-section {
        height: 500px;
    }
    
    .slide-content h1 {
        font-size: 2.5rem;
    }
    
    .counter-stats {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .section-title {
        font-size: 1.8rem;
    }
    
    .page-title {
        font-size: 2.2rem;
    }
}

@media (max-width: 576px) {
    .counter-stats {
        grid-template-columns: 1fr;
    }
    
    .navbar-brand {
        font-size: 1.5rem;
    }
    
    .nav-link {
        padding: 0.5rem !important;
    }
}

/* أنماط إضافية للصفحات الداخلية */
.page-tutorials .page-header,
.page-applications .page-header,
.page-category .page-header {
    background: var(--gradient-primary);
    padding: 6rem 0 4rem;
    margin-top: 76px;
    position: relative;
    overflow: hidden;
}

.page-header::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1440 320"><path fill="%23ffffff" fill-opacity="0.1" d="M0,96L48,112C96,128,192,160,288,160C384,160,480,128,576,112C672,96,768,96,864,112C960,128,1056,160,1152,160C1248,160,1344,128,1392,112L1440,96L1440,320L1392,320C1344,320,1248,320,1152,320C1056,320,960,320,864,320C768,320,672,320,576,320C480,320,384,320,288,320C192,320,96,320,48,320L0,320Z"></path></svg>') no-repeat bottom;
    background-size: cover;
}

.search-form .input-group {
    border-radius: var(--border-radius);
    overflow: hidden;
}

.search-form .form-control {
    border: none;
    padding: 1rem 1.5rem;
}

.search-form .btn {
    border-radius: 0;
    padding: 1rem 2rem;
}

.featured-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    background: #e74c3c;
    color: white;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    z-index: 1;
}

.other-category-card {
    background: #f8f9fa;
    border-radius: var(--border-radius-sm);
    padding: 1rem;
    margin-bottom: 0.75rem;
    transition: var(--transition);
    border-left: 4px solid var(--primary-color);
}

.other-category-card:hover {
    background: #e9ecef;
    transform: translateX(-5px);
}

.tutorial-icon,
.app-icon,
.category-icon {
    color: var(--primary-color);
}

.download-count {
    font-size: 0.9rem;
    color: var(--gray-color);
}

.empty-state {
    padding: 4rem 0;
}

@media (max-width: 768px) {
    .page-header {
        padding: 4rem 0 3rem;
    }
    
    .page-title {
        font-size: 2rem;
    }
    
    .page-description {
        font-size: 1rem;
    }
}

.py-5 {
    padding-top: 4rem !important;
    padding-bottom: 0rem !important;
    color: #6dbf3c !important;
}