/* Simple Reviews Styles */

/* Override existing reviews section */
.reviews {
    padding: 100px 0 !important;
    min-height: auto !important;
}

/* Reviews Stats */
.reviews-stats {
    text-align: center;
    margin: 2rem 0 3rem;
}

.total-reviews {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 1rem;
}

.rating-display {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
}

.stars {
    display: flex;
    gap: 0.25rem;
}

.stars i {
    color: #fbbf24;
    font-size: 1.5rem;
}

/* Reviews Layout */
.reviews-layout {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 4rem;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
}

/* Reviews Scroll Container */
.reviews-scroll-container {
    position: relative;
    direction: rtl;
}

.reviews-viewport {
    height: 400px;
    overflow: hidden;
    position: relative;
}

.reviews-scroll {
    display: flex;
    flex-direction: column;
    animation: verticalScroll var(--scroll-duration, 120s) linear infinite;
    gap: 1.5rem;
}

@keyframes verticalScroll {
    0% {
        transform: translateY(0);
    }
    100% {
        transform: translateY(-50%);
    }
}

.reviews-scroll:hover {
    animation-play-state: paused;
}

/* Reviews Image */
.reviews-image-container {
    display: flex;
    justify-content: center;
    align-items: center;
}

.reviews-hero-image {
    width: 100%;
    max-width: 250px;
    height: auto;
    border-radius: 15px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
    cursor: pointer;
}

.reviews-hero-image:hover {
    transform: scale(1.05);
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.25);
    filter: brightness(1.1);
}

.simple-review {
    background: transparent;
    border: none;
    border-radius: 0;
    padding: 1.5rem 0;
    margin-bottom: 0;
    box-shadow: none;
    transition: opacity 0.3s ease;
    min-height: 120px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.simple-review:hover {
    transform: none;
    box-shadow: none;
    opacity: 0.8;
}

.simple-review-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 0.75rem;
    direction: rtl;
}

.simple-review-info {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    direction: rtl;
    flex: 1;
}

.simple-review-avatar {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    background: linear-gradient(135deg, #1e3a8a, #3b82f6);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
    font-size: 0.9rem;
    flex-shrink: 0;
}

.simple-review-name {
    font-weight: 600;
    color: #1f2937;
    font-size: 1rem;
}

.simple-review-rating {
    display: flex;
    gap: 0.15rem;
}

.simple-review-rating .star {
    color: #fbbf24;
    font-size: 0.8rem;
}

.simple-review-text {
    color: #6b7280;
    line-height: 1.6;
    font-size: 0.95rem;
    text-align: right;
    direction: rtl;
    margin-top: 0.5rem;
}

/* Hide old review styles but keep new ones */
.review-card,
.reviews-content,
.reviews-list,
.reviews-text,
.reviews-title,
.reviews-description,
.reviews-summary {
    display: none !important;
}

/* Ensure new review elements are visible */
.reviews-viewport,
.reviews-scroll,
.simple-review {
    display: flex !important;
}

.reviews-viewport {
    display: block !important;
}

/* Loading and Error States */
.reviews-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 300px;
    gap: 1rem;
    color: #6b7280;
}

.spinner {
    width: 40px;
    height: 40px;
    border: 3px solid #e2e8f0;
    border-top: 3px solid #fbbf24;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.loading-text {
    font-size: 1rem;
    font-weight: 500;
}

.reviews-error {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 300px;
    gap: 1rem;
    color: #6b7280;
    text-align: center;
}

.error-icon {
    font-size: 3rem;
    color: #ef4444;
}

.error-text {
    font-size: 1rem;
    font-weight: 500;
}

/* Mobile responsiveness */
@media (max-width: 768px) {
    .reviews-layout {
        grid-template-columns: 1fr;
        gap: 0;
    }
    
    .reviews-image-container {
        display: none; /* Hide image on mobile */
    }
    
    .reviews-scroll-container {
        order: 1;
    }
    
    .reviews-viewport {
        height: 300px; /* Show 2 reviews instead of 3 */
    }
    
    .simple-review {
        padding: 1rem 0;
        min-height: 100px;
    }
    
    .simple-review-header {
        gap: 0.5rem;
        margin-bottom: 0.5rem;
    }
    
    .simple-review-info {
        gap: 0.5rem;
    }
    
    .simple-review-avatar {
        width: 30px;
        height: 30px;
        font-size: 0.8rem;
    }
    
    .simple-review-name {
        font-size: 0.9rem;
    }
    
    .simple-review-rating .star {
        font-size: 0.7rem;
    }
    
    .simple-review-text {
        font-size: 0.85rem;
        margin-top: 0.25rem;
    }
    
    .total-reviews {
        font-size: 1.2rem;
    }
    
     .stars i {
         font-size: 1.2rem;
     }
     
     /* تقليل تأثيرات الـ hover على الموبايل */
     .reviews-hero-image:hover {
         transform: scale(1.02);
     }
     
    .who-image:hover {
        transform: scale(1.04) !important;
    }
    
    /* Mobile adjustments for about section */
    .about-visual {
        padding-top: 1rem;
    }
    
    .who-image {
        max-width: 300px !important;
        margin-top: 0 !important;
        min-height: 250px !important;
    }
    
    .about-content-simple {
        padding: 0.5rem 1rem 1.5rem 1rem;
    }
}
 
 /* About Section Simple Features */
.about-content-simple {
    direction: rtl;
    text-align: center;
    max-width: 100%;
    margin: 0;
    padding: 0;
}
 
.simple-text-section {
    margin: 0;
    padding: 0;
    background: transparent;
    border: none;
    box-shadow: none;
}
 
.simple-text-section:last-of-type {
    margin-bottom: 0;
}
 
.simple-text-section h2 {
    font-size: 2.2rem;
    font-weight: 800;
    background: linear-gradient(135deg, #1E3A8A, #3B82F6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 1.5rem;
    line-height: 1.3;
    text-align: center;
    padding: 0 2rem;
}
 
.simple-text-section p {
    font-size: 1.3rem;
    line-height: 1.7;
    color: #4B5563;
    margin-bottom: 2rem;
    text-align: center;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    font-weight: 400;
    padding: 0 2rem;
}
 
/* Features section removed - no longer needed */

/* Enhanced About Section Styling - Flowing Design */
.about {
    padding: 0 !important;
    background: transparent !important;
    position: relative;
    overflow: hidden;
}

/* Add spacing to section header */
.about .section-header {
    margin-top: 60px;
    margin-bottom: 2rem;
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 0;
    max-width: 100%;
    margin: 0;
    padding: 0;
    min-height: 40vh;
    align-items: stretch;
    background: transparent;
}

.about-text {
    order: 1;
    padding: 0;
    background: transparent;
    flex-direction: column;
    justify-content: center;
    position: relative;
}

.about-visual {
    order: 2;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Remove all overlays and effects */
.about-visual::after {
    display: none;
}

.about-visual::before {
    display: none;
}

@media (max-width: 1024px) {
    .about-content {
        grid-template-columns: 1fr;
        min-height: auto;
    }
    
    .about-text {
        order: 1;
        padding: 30px 40px;
    }
    
    .about-visual {
        order: 2;
        min-height: 25vh;
    }
    
    .about-visual::after {
        display: none;
    }
}

@media (max-width: 768px) {
    .about .section-header {
        margin-top: 40px;
        margin-bottom: 1.5rem;
    }
    
    .about-text {
        padding: 20px 20px;
    }
    
    .about-visual {
        min-height: 20vh;
    }
}

@media (max-width: 480px) {
    .about .section-header {
        margin-top: 30px;
        margin-bottom: 1rem;
    }
}
 
 /* Hide old feature cards and text blocks */
 .features-grid,
 .feature-card,
 .text-block {
     display: none !important;
 }
 
 /* Image sizing improvements - Full flowing design */
.who-image {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    object-position: center !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    transition: none !important;
    cursor: default !important;
    margin: 0 !important;
    min-height: 30vh !important;
    bottom: 0;
    opacity: 0.6;
}
 
.who-image:hover {
    transform: none !important;
    filter: none !important;
}
 
.visual-card {
    padding: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    border: none !important;
    overflow: hidden !important;
    border-radius: 0 !important;
    position: relative;
    width: 100%;
    height: 100%;
}
 
 /* Mobile Action Buttons Enhancements */
 .mobile-action-btn {
     cursor: pointer !important;
     -webkit-tap-highlight-color: rgba(0,0,0,0.3) !important;
     -webkit-touch-callout: none !important;
     -webkit-user-select: none !important;
     user-select: none !important;
 }
 
 .mobile-action-btn:active {
     transform: scale(0.95) !important;
     opacity: 0.8 !important;
 }
 
 /* Ensure icons are clickable */
 .mobile-action-btn .btn-icon {
     pointer-events: none !important;
 }
 
/* Section backgrounds and borders are now handled in styles.css */
