/* Modern Homepage Styles */
:root {
    --gradient-1: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --gradient-2: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    --gradient-3: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    --gradient-4: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%);
    --gradient-5: linear-gradient(135deg, #fa709a 0%, #fee140 100%);
    --gradient-6: linear-gradient(135deg, #30cfd0 0%, #330867 100%);
}

body {
    overflow-x: hidden;
    background: #f8f9fa !important;
    background-image: 
        radial-gradient(circle at 20% 50%, rgba(255, 255, 255, 0.8) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(240, 242, 245, 0.5) 0%, transparent 50%) !important;
}

.gradient-text {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.min-vh-75 {
    min-height: 75vh;
}

/* Modern Hero Section - Full Width */
.modern-hero-fullwidth {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 120px 0 100px;
    margin-top: -20px;
    margin-left: calc(-50vw + 50%);
    margin-right: calc(-50vw + 50%);
    width: 100vw;
    overflow: hidden;
    color: white;
    box-shadow: 0 10px 50px rgba(0, 0, 0, 0.2);
}


/* Legacy support */
.modern-hero {
    position: relative;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 100px 0 80px;
    margin-top: -20px;
    overflow: hidden;
    color: white;
}

.hero-particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(circle at 20% 50%, rgba(255, 255, 255, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(255, 255, 255, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 40% 20%, rgba(255, 255, 255, 0.05) 0%, transparent 50%);
    animation: particleFloat 20s ease-in-out infinite;
}

@keyframes particleFloat {
    0%, 100% { transform: translateY(0) scale(1); }
    50% { transform: translateY(-20px) scale(1.05); }
}

.hero-gradient-overlay {
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, transparent 0%, rgba(0,0,0,0.1) 100%);
}

.hero-content {
    position: relative;
    z-index: 2;
    padding: 0 20px;
}

.modern-hero-fullwidth .hero-content {
    max-width: 100%;
}

/* Floating Cards المركزية */
.floating-card-center {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 20px;
    padding: 30px 20px;
    text-align: center;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
}

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

.floating-card-center:hover::before {
    left: 100%;
}

.floating-card-center:hover {
    transform: translateY(-10px) scale(1.05);
    background: rgba(255, 255, 255, 0.25);
    box-shadow: 0 15px 45px rgba(0, 0, 0, 0.2);
    border-color: rgba(255, 255, 255, 0.5);
}

.floating-card-center i {
    font-size: 3rem;
    color: white;
    margin-bottom: 15px;
    display: block;
    animation: iconFloat 3s ease-in-out infinite;
    position: relative;
    z-index: 1;
}

.floating-card-center span {
    color: white;
    font-size: 1.1rem;
    font-weight: 600;
    display: block;
    position: relative;
    z-index: 1;
}

.hero-badge {
    display: inline-block;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    padding: 10px 20px;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 600;
    border: 1px solid rgba(255, 255, 255, 0.3);
    animation: fadeInUp 0.6s ease-out;
}

.hero-badge i {
    color: #ffd700;
    margin-left: 8px;
}

.hero-title {
    font-size: 4rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    animation: fadeInUp 0.6s ease-out;
    text-align: center;
}

.hero-subtitle {
    font-size: 1.25rem;
    line-height: 1.8;
    opacity: 0.95;
    animation: fadeInUp 0.6s ease-out 0.2s both;
    text-align: center;
}

.hero-buttons {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    animation: fadeInUp 0.6s ease-out 0.6s both;
    justify-content: center;
}

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

/* Hero Illustration */
.hero-illustration {
    position: relative;
    height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.floating-card {
    position: absolute;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    padding: 15px 25px;
    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.floating-card i {
    font-size: 1.5rem;
}

.floating-card.card-1 {
    top: 10%;
    right: 10%;
    animation: float 3s ease-in-out infinite;
}

.floating-card.card-2 {
    top: 50%;
    left: 5%;
    animation: float 3s ease-in-out infinite 1s;
}

.floating-card.card-3 {
    bottom: 15%;
    right: 15%;
    animation: float 3s ease-in-out infinite 2s;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-20px); }
}

.hero-main-visual {
    position: relative;
    width: 350px;
    height: 350px;
}

.visual-circle {
    position: absolute;
    border-radius: 50%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.visual-circle.circle-1 {
    width: 350px;
    height: 350px;
    background: rgba(255, 255, 255, 0.1);
    animation: pulse 4s ease-in-out infinite;
}

.visual-circle.circle-2 {
    width: 250px;
    height: 250px;
    background: rgba(255, 255, 255, 0.15);
    animation: pulse 4s ease-in-out infinite 1s;
}

.visual-circle.circle-3 {
    width: 150px;
    height: 150px;
    background: rgba(255, 255, 255, 0.2);
    animation: pulse 4s ease-in-out infinite 2s;
}

@keyframes pulse {
    0%, 100% { transform: translate(-50%, -50%) scale(1); opacity: 1; }
    50% { transform: translate(-50%, -50%) scale(1.1); opacity: 0.8; }
}

/* Modern Buttons */
.btn-modern {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 32px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    text-decoration: none;
    position: relative;
    overflow: hidden;
}

.btn-modern::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn-modern:hover::before {
    width: 300px;
    height: 300px;
}

.btn-modern span {
    position: relative;
    z-index: 1;
}

.btn-modern i {
    position: relative;
    z-index: 1;
    transition: transform 0.3s ease;
}

.btn-modern:hover i {
    transform: translateX(-5px);
}

.btn-modern-primary {
    background: white;
    color: #667eea;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.btn-modern-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
    color: #667eea;
}

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

.btn-modern-outline:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: white;
    transform: translateY(-3px);
    color: white;
}

.btn-modern.btn-lg {
    padding: 16px 40px;
    font-size: 1.1rem;
}

/* Glass Statistics Cards */
.stats-section {
    margin: -80px 0 80px;
    position: relative;
    z-index: 10;
}

.glass-stat-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 30px;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.5);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
}

.glass-stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-1);
    transform: scaleX(0);
    transition: transform 0.6s ease;
}

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

.glass-stat-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
}

.stat-icon-wrapper {
    margin-bottom: 20px;
}

.stat-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: white;
    position: relative;
    animation: iconFloat 3s ease-in-out infinite;
}

@keyframes iconFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.stat-icon.gradient-1 { background: var(--gradient-1); }
.stat-icon.gradient-2 { background: var(--gradient-2); }
.stat-icon.gradient-3 { background: var(--gradient-3); }
.stat-icon.gradient-4 { background: var(--gradient-4); }

.stat-number {
    font-size: 2.5rem;
    font-weight: 800;
    margin: 15px 0 10px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-label {
    font-size: 1rem;
    color: #666;
    font-weight: 600;
    margin-bottom: 15px;
}

.stat-progress {
    width: 100%;
    height: 4px;
    background: #f0f0f0;
    border-radius: 10px;
    overflow: hidden;
}

.stat-progress-bar {
    height: 100%;
    width: 0;
    border-radius: 10px;
    animation: progressBar 2s ease-out forwards;
}

@keyframes progressBar {
    to { width: 100%; }
}

.stat-progress-bar.gradient-1 { background: var(--gradient-1); }
.stat-progress-bar.gradient-2 { background: var(--gradient-2); }
.stat-progress-bar.gradient-3 { background: var(--gradient-3); }
.stat-progress-bar.gradient-4 { background: var(--gradient-4); }

/* Section Headers */
.section-header {
    margin-bottom: 60px;
}

.section-badge {
    display: inline-block;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 8px 20px;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 15px;
}

.section-title-modern {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 15px;
    color: #2d3748;
}

.section-subtitle {
    font-size: 1.1rem;
    color: #718096;
    max-width: 600px;
    margin: 0 auto;
}

/* Features Section */
.features-section {
    padding: 80px 0;
}

.feature-card-3d {
    background: white;
    border-radius: 20px;
    padding: 40px 30px;
    height: 100%;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.feature-card-3d::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: var(--gradient-1);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.6s ease;
}

.feature-card-3d:hover::before {
    transform: scaleX(1);
}

.feature-card-3d:hover {
    transform: translateY(-15px) rotateX(5deg);
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.15);
}

.feature-icon-box {
    width: 80px;
    height: 80px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 25px;
    font-size: 2rem;
    color: white;
    position: relative;
    transition: all 0.4s ease;
}

.feature-card-3d:hover .feature-icon-box {
    transform: scale(1.1) rotate(5deg);
}

.feature-icon-box.gradient-1 { background: var(--gradient-1); }
.feature-icon-box.gradient-2 { background: var(--gradient-2); }
.feature-icon-box.gradient-3 { background: var(--gradient-3); }
.feature-icon-box.gradient-4 { background: var(--gradient-4); }
.feature-icon-box.gradient-5 { background: var(--gradient-5); }
.feature-icon-box.gradient-6 { background: var(--gradient-6); }

.feature-title {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 15px;
    color: #2d3748;
}

.feature-description {
    font-size: 0.95rem;
    line-height: 1.7;
    color: #718096;
    margin-bottom: 20px;
}

.feature-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #667eea;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.feature-link:hover {
    gap: 12px;
    color: #764ba2;
}

.feature-link i {
    transition: transform 0.3s ease;
}

.feature-link:hover i {
    transform: translateX(-5px);
}

/* Jobs Section */
.jobs-section {
    padding: 80px 0;
}

.job-card-modern {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 1px solid rgba(0, 0, 0, 0.05);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.job-card-modern:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
}

.job-card-header {
    padding: 25px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.job-company-info {
    display: flex;
    gap: 15px;
    align-items: center;
    flex: 1;
}

.company-logo {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    overflow: hidden;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: white;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.company-logo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.company-logo.gradient-bg {
    background: var(--gradient-3);
    color: white;
    font-size: 1.5rem;
}

.company-details {
    flex: 1;
}

.company-name {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 5px;
    color: #2d3748;
}

.company-location {
    font-size: 0.85rem;
    color: #718096;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 5px;
}

.job-badge-new {
    background: linear-gradient(135deg, #fa709a 0%, #fee140 100%);
    color: white;
    padding: 6px 16px;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.job-card-body {
    padding: 25px;
    flex: 1;
}

.job-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 15px;
    color: #2d3748;
    line-height: 1.4;
}

.job-salary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%);
    color: white;
    padding: 8px 16px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 15px;
}

.job-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}

.job-meta-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.85rem;
    color: #718096;
}

.job-meta-item i {
    color: #667eea;
}

.job-card-footer {
    padding: 20px 25px;
    border-top: 1px solid #f0f0f0;
}

.btn-job-apply {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 12px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 12px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    border: none;
}

.btn-job-apply:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(102, 126, 234, 0.4);
    color: white;
}

.btn-job-apply i {
    transition: transform 0.3s ease;
}

.btn-job-apply:hover i {
    transform: translateX(-5px);
}

/* CTA Section */
.cta-section {
    padding: 80px 0;
}

.cta-container {
    position: relative;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 30px;
    overflow: hidden;
    padding: 60px 40px;
}

.cta-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0.3;
}

.cta-circle {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
}

.cta-circle.circle-1 {
    width: 300px;
    height: 300px;
    top: -100px;
    right: -100px;
    animation: float 6s ease-in-out infinite;
}

.cta-circle.circle-2 {
    width: 200px;
    height: 200px;
    bottom: -50px;
    left: -50px;
    animation: float 6s ease-in-out infinite 2s;
}

.cta-circle.circle-3 {
    width: 150px;
    height: 150px;
    top: 50%;
    left: 50%;
    animation: float 6s ease-in-out infinite 4s;
}

.cta-content {
    position: relative;
    z-index: 2;
    color: white;
}

.cta-title {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 20px;
}

.cta-description {
    font-size: 1.1rem;
    line-height: 1.8;
    opacity: 0.95;
    margin-bottom: 30px;
}

.cta-features {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.cta-feature-item {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1rem;
}

.cta-feature-item i {
    color: #43e97b;
    font-size: 1.2rem;
}

.btn-cta-primary {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 18px 40px;
    background: white;
    color: #667eea;
    border-radius: 50px;
    font-weight: 700;
    font-size: 1.1rem;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.btn-cta-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
    color: #667eea;
}

.btn-cta-primary i {
    transition: transform 0.3s ease;
}

.btn-cta-primary:hover i {
    transform: translateX(-5px);
}

.cta-note {
    margin-top: 15px;
    font-size: 0.9rem;
    opacity: 0.9;
}

/* Responsive */
@media (max-width: 992px) {
    .modern-hero-fullwidth {
        padding: 80px 0 60px;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-illustration {
        height: 400px;
        margin-top: 40px;
    }
    
    .section-title-modern {
        font-size: 2rem;
    }
    
    .cta-title {
        font-size: 2rem;
    }
}

@media (max-width: 768px) {
    .modern-hero,
    .modern-hero-fullwidth {
        padding: 60px 0 40px;
        margin-left: 0;
        margin-right: 0;
        width: 100%;
    }
    
    .modern-hero-fullwidth .container-fluid {
        padding-left: 1rem;
        padding-right: 1rem;
    }
    
    .hero-title {
        font-size: 2rem;
        text-align: center;
    }
    
    .hero-subtitle {
        font-size: 1rem;
        text-align: center;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .btn-modern {
        width: 100%;
        max-width: 300px;
        justify-content: center;
    }
    
    .floating-card-center {
        padding: 25px 15px;
    }
    
    .floating-card-center i {
        font-size: 2.5rem;
    }
    
    .floating-card-center span {
        font-size: 1rem;
    }
    
    .stats-section {
        margin: -40px 0 40px;
    }
    
    .features-section,
    .jobs-section,
    .cta-section {
        padding: 40px 0;
    }
    
    .section-title-modern {
        font-size: 1.75rem;
    }
    
    .cta-container {
        padding: 40px 20px;
    }
    
    .cta-title {
        font-size: 1.75rem;
    }
    
    .floating-card {
        font-size: 0.85rem;
        padding: 10px 15px;
    }
    
    .floating-card i {
        font-size: 1.2rem;
    }
}

/* Modern Creative Pagination Design */
nav[role="navigation"][aria-label="Pagination Navigation"] {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 60px;
    padding: 25px 35px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.5);
    position: relative;
    overflow: hidden;
}

nav[role="navigation"][aria-label="Pagination Navigation"]::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(102, 126, 234, 0.1), transparent);
    transition: left 0.6s ease;
}

nav[role="navigation"][aria-label="Pagination Navigation"]:hover::before {
    left: 100%;
}

/* إخفاء النص "Showing X to Y of Z results" */
nav[role="navigation"] > div > div > p {
    display: none;
}

/* تنسيق الـ container */
nav[role="navigation"] .relative.z-0 {
    display: flex;
    align-items: center;
    gap: 10px;
    background: transparent;
    box-shadow: none;
    border-radius: 0;
}

.pagination {
    display: flex !important;
    flex-direction: row !important;
    justify-content: center;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    margin: 0;
    padding: 0;
    list-style: none;
}

.pagination::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(102, 126, 234, 0.1), transparent);
    transition: left 0.6s ease;
}

.pagination:hover::before {
    left: 100%;
}

/* تنسيق جميع الأزرار */
nav[role="navigation"] a,
nav[role="navigation"] span[aria-current],
nav[role="navigation"] span[aria-disabled] span {
    position: relative;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    min-width: 50px !important;
    height: 50px !important;
    padding: 0 18px !important;
    border-radius: 50% !important;
    border: none !important;
    background: transparent !important;
    color: #4a5568 !important;
    font-weight: 700 !important;
    font-size: 1rem !important;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275) !important;
    text-decoration: none !important;
    overflow: hidden !important;
    margin: 0 !important;
    box-shadow: none !important;
}

.pagination .page-item {
    display: inline-block;
    margin: 0;
    position: relative;
}

.pagination .page-link {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 50px;
    height: 50px;
    padding: 0 18px;
    border-radius: 50%;
    border: none;
    background: transparent;
    color: #4a5568;
    font-weight: 700;
    font-size: 1rem;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    text-decoration: none;
    overflow: hidden;
}

/* تأثير التوسع الدائري */
nav[role="navigation"] a::before,
nav[role="navigation"] span[aria-current]::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    transform: translate(-50%, -50%);
    transition: width 0.4s ease, height 0.4s ease;
    z-index: -1;
}

nav[role="navigation"] a:hover::before {
    width: 120%;
    height: 120%;
}

nav[role="navigation"] a:hover {
    color: white !important;
    transform: scale(1.15) rotate(5deg) !important;
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4) !important;
}

.pagination .page-link::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    transform: translate(-50%, -50%);
    transition: width 0.4s ease, height 0.4s ease;
    z-index: -1;
}

.pagination .page-link:hover::before {
    width: 120%;
    height: 120%;
}

.pagination .page-link:hover {
    color: white;
    transform: scale(1.15) rotate(5deg);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4);
}

/* الصفحة النشطة */
nav[role="navigation"] span[aria-current="page"] span {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
    color: white !important;
    transform: scale(1.1) !important;
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.5) !important;
    animation: pulseActive 2s ease-in-out infinite !important;
}

nav[role="navigation"] span[aria-current="page"] span::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 50%;
    transform: translateX(-50%);
    width: 6px;
    height: 6px;
    background: white;
    border-radius: 50%;
    animation: dotBounce 1s ease-in-out infinite;
}

.pagination .page-item.active .page-link {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    transform: scale(1.1);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.5);
    animation: pulseActive 2s ease-in-out infinite;
}

@keyframes pulseActive {
    0%, 100% {
        box-shadow: 0 8px 25px rgba(102, 126, 234, 0.5);
    }
    50% {
        box-shadow: 0 8px 35px rgba(102, 126, 234, 0.7);
    }
}

.pagination .page-item.active .page-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 50%;
    transform: translateX(-50%);
    width: 6px;
    height: 6px;
    background: white;
    border-radius: 50%;
    animation: dotBounce 1s ease-in-out infinite;
}

@keyframes dotBounce {
    0%, 100% {
        transform: translateX(-50%) translateY(0);
    }
    50% {
        transform: translateX(-50%) translateY(-8px);
    }
}

.pagination .page-item.disabled .page-link {
    background: transparent;
    color: #cbd5e0;
    cursor: not-allowed;
    opacity: 0.4;
}

.pagination .page-item.disabled .page-link:hover {
    transform: none;
    box-shadow: none;
}

/* أزرار السابق والتالي */
nav[role="navigation"] a[rel="prev"],
nav[role="navigation"] a[rel="next"],
nav[role="navigation"] a[aria-label*="Previous"],
nav[role="navigation"] a[aria-label*="Next"],
nav[role="navigation"] .rounded-l-md,
nav[role="navigation"] .rounded-r-md {
    min-width: 50px !important;
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%) !important;
    color: white !important;
    font-size: 1.2rem !important;
    box-shadow: 0 4px 15px rgba(240, 147, 251, 0.3) !important;
}

nav[role="navigation"] a[rel="prev"]:hover,
nav[role="navigation"] a[rel="next"]:hover,
nav[role="navigation"] a[aria-label*="Previous"]:hover,
nav[role="navigation"] a[aria-label*="Next"]:hover,
nav[role="navigation"] .rounded-l-md:hover,
nav[role="navigation"] .rounded-r-md:hover {
    background: linear-gradient(135deg, #f5576c 0%, #f093fb 100%) !important;
    transform: scale(1.15) !important;
    box-shadow: 0 8px 25px rgba(240, 147, 251, 0.5) !important;
}

/* الأزرار المعطلة */
nav[role="navigation"] span[aria-disabled="true"] span {
    background: #e9ecef !important;
    color: #cbd5e0 !important;
    box-shadow: none !important;
    cursor: not-allowed !important;
    opacity: 0.4 !important;
}

nav[role="navigation"] span[aria-disabled="true"] span:hover {
    transform: none !important;
}

.pagination .page-item:first-child .page-link,
.pagination .page-item:last-child .page-link {
    min-width: 50px;
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    color: white;
    font-size: 1.2rem;
    box-shadow: 0 4px 15px rgba(240, 147, 251, 0.3);
}

.pagination .page-item:first-child .page-link:hover,
.pagination .page-item:last-child .page-link:hover {
    background: linear-gradient(135deg, #f5576c 0%, #f093fb 100%);
    transform: scale(1.15);
    box-shadow: 0 8px 25px rgba(240, 147, 251, 0.5);
}

.pagination .page-item:first-child.disabled .page-link,
.pagination .page-item:last-child.disabled .page-link {
    background: #e9ecef;
    color: #cbd5e0;
    box-shadow: none;
}

/* حركة الأسهم */
nav[role="navigation"] svg {
    width: 18px !important;
    height: 18px !important;
    transition: transform 0.3s ease !important;
}

nav[role="navigation"] .rounded-l-md:hover svg,
nav[role="navigation"] a[rel="prev"]:hover svg,
nav[role="navigation"] a[aria-label*="Previous"]:hover svg {
    transform: translateX(-3px) !important;
}

nav[role="navigation"] .rounded-r-md:hover svg,
nav[role="navigation"] a[rel="next"]:hover svg,
nav[role="navigation"] a[aria-label*="Next"]:hover svg {
    transform: translateX(3px) !important;
}

.pagination .page-link svg {
    width: 18px;
    height: 18px;
    transition: transform 0.3s ease;
}

.pagination .page-item:first-child .page-link:hover svg {
    transform: translateX(-3px);
}

.pagination .page-item:last-child .page-link:hover svg {
    transform: translateX(3px);
}

/* نقاط الانتقال بين الصفحات */
.pagination .page-item .page-link[aria-label="..."] {
    min-width: 40px;
    color: #a0aec0;
    font-size: 1.2rem;
    letter-spacing: 2px;
}

/* تأثير التموج عند النقر */
@keyframes ripple {
    0% {
        transform: scale(0);
        opacity: 1;
    }
    100% {
        transform: scale(2);
        opacity: 0;
    }
}

/* إخفاء النسخة المحمولة */
nav[role="navigation"] .sm\\:hidden {
    display: none !important;
}

/* Responsive Pagination */
@media (max-width: 768px) {
    nav[role="navigation"][aria-label="Pagination Navigation"] {
        padding: 20px 25px;
        border-radius: 50px;
    }
    
    nav[role="navigation"] .relative.z-0 {
        gap: 8px;
    }
    
    nav[role="navigation"] a,
    nav[role="navigation"] span[aria-current],
    nav[role="navigation"] span[aria-disabled] span {
        min-width: 45px !important;
        height: 45px !important;
        padding: 0 14px !important;
        font-size: 0.95rem !important;
    }
    
    .pagination {
        padding: 20px 25px;
        gap: 8px;
        border-radius: 50px;
    }
    
    .pagination .page-link {
        min-width: 45px;
        height: 45px;
        padding: 0 14px;
        font-size: 0.95rem;
    }
}

@media (max-width: 576px) {
    nav[role="navigation"][aria-label="Pagination Navigation"] {
        padding: 15px 20px;
    }
    
    nav[role="navigation"] .relative.z-0 {
        gap: 6px;
    }
    
    nav[role="navigation"] a,
    nav[role="navigation"] span[aria-current],
    nav[role="navigation"] span[aria-disabled] span {
        min-width: 40px !important;
        height: 40px !important;
        padding: 0 12px !important;
        font-size: 0.9rem !important;
    }
    
    .pagination {
        padding: 15px 20px;
        gap: 6px;
    }
    
    .pagination .page-link {
        min-width: 40px;
        height: 40px;
        padding: 0 12px;
        font-size: 0.9rem;
    }
    
    .pagination .page-item:first-child .page-link,
    .pagination .page-item:last-child .page-link {
        min-width: 40px;
    }
}
