@import url('https://fonts.googleapis.com/css2?family=Tajawal:wght@400;500;700;800&display=swap');

body {
    font-family: 'Tajawal', sans-serif;
    scroll-behavior: smooth;
}

.gradient-bg {
    background: linear-gradient(135deg, #14532d 0%, #166534 100%);
}

.card-hover:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

/* Carousel Styles */
.carousel-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    width: 100%;
    gap: 1rem;
    flex-direction: column; /* Adjusted for pagination */
}

.carousel-container {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    gap: 0.5rem;
}

.carousel-nav-btn {
    background: white;
    border-radius: 50%;
    padding: 0.75rem;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    cursor: pointer;
    color: #166534;
    transition: all 0.2s;
    z-index: 10;
    flex-shrink: 0;
    border: 1px solid #dcfce7;
}

.carousel-nav-btn:hover {
    background: #f0fdf4;
    transform: scale(1.1);
    box-shadow: 0 8px 12px rgba(0,0,0,0.15);
}

.carousel-viewport {
    flex: 1;
    overflow-x: auto;
    overflow-y: hidden;
    display: flex;
    scroll-behavior: smooth;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding: 20px 0;
}

.carousel-viewport::-webkit-scrollbar {
    display: none;
}

.carousel-track {
    display: flex;
    gap: 1.5rem;
    width: max-content;
    padding-inline: 1rem; /* Default padding */
}

.carousel-slide {
    width: 280px;
    flex-shrink: 0;
    scroll-snap-align: center; /* Center snapping for all */
    transition: transform 0.3s ease;
    /* Removed background-color: white to allow Tailwind classes */
}

/* Pagination Dots */
.pagination-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 10px;
}

.dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: #d1d5db;
    cursor: pointer;
    transition: all 0.3s ease;
}

.dot.active {
    background-color: #166534; /* Green-800 */
    width: 24px;
    border-radius: 10px;
}

/* Responsive Adjustments */
@media (min-width: 1024px) {
     /* Desktop: Show 4 items */
    .carousel-viewport {
        max-width: 1200px; /* Increased to fit 4 items */
        margin: 0 auto;
    }
    .carousel-track {
        padding-inline: 0;
        justify-content: center;
    }
    .carousel-slide {
        width: 270px; /* Slightly smaller to fit 4 comfortably */
    }
}

@media (min-width: 768px) and (max-width: 1023px) {
    /* Tablet: Show ~2-3 items */
    .carousel-viewport {
        max-width: 768px;
        margin: 0 auto;
    }
    .carousel-track {
        padding-inline: 1rem;
    }
}

@media (max-width: 767px) {
    .carousel-nav-btn {
        display: none; /* Hide arrows on mobile */
    }
    
    .carousel-slide {
        width: 80vw;
        max-width: 300px;
    }
    
    .carousel-track {
        /* Mobile Centering: 50% - half of card width (40vw) */
        padding-inline: calc(50% - 40vw); 
        gap: 1rem;
    }
}

.compact-table th, .compact-table td {
    padding: 4px;
    font-size: 0.85rem;
}

.btn-order {
    background: linear-gradient(to left, #166534, #15803d);
    transition: all 0.3s;
}
.btn-order:hover {
    background: linear-gradient(to left, #14532d, #166534);
    box-shadow: 0 4px 12px rgba(22, 101, 52, 0.3);
}

/* FAQ Animation */
.faq-content {
    transition: max-height 0.3s ease-out;
    max-height: 0;
    overflow: hidden;
}
.faq-content.active {
    max-height: 500px;
}