/* Why Choose Us Section */
.why-choose-us-section {
    grid-column: 1 / -1;
    width: 100%;
    margin-top: 3rem;
    margin-bottom: 3rem;
    padding: 1rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative; /* Ensure it stays in flow */
    z-index: 10;
}

.why-us-pill {
    background: rgba(107, 70, 193, 0.1);
    color: var(--primary-purple);
    padding: 0.5rem 1rem;
    border-radius: 999px;
    font-weight: 600;
    font-size: 0.85rem;
    display: inline-block;
    margin-bottom: 1rem;
}

.why-us-title {
    text-align: center;
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.75rem;
    line-height: 1.2;
}

.why-us-gradient-text {
    background: linear-gradient(90deg, #A855F7, #F97316, #A855F7);
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: transparent;
    animation: gradientMove 2s linear infinite;
}

@keyframes gradientMove {
    0% { background-position: 0% 50%; }
    100% { background-position: 200% 50%; }
}

.why-us-subtitle {
    text-align: center;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto 2.5rem;
    font-size: 1.1rem;
    font-weight: 400;
    line-height: 1.5;
}

.why-us-image-container {
    width: 100%;
    max-width: 500px;
    margin: 0 auto;
}

.why-us-image-container img {
    width: 100%;
    height: auto;
    display: block;
}

.why-us-slider-container {
    width: 100%;
    max-width: 1000px;
    position: relative;
    overflow: hidden;
}

.why-us-track {
    display: flex;
    gap: 1.5rem;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding: 1rem 0.5rem 2rem; /* Bottom padding for shadow */
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none; /* Firefox */
}

.why-us-track::-webkit-scrollbar {
    display: none; /* Chrome/Safari */
}

.why-us-card {
    flex: 0 0 300px;
    background: var(--bg-secondary); /* Default dark mode bg */
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 2rem;
    scroll-snap-align: center;
    box-shadow: var(--shadow-md);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
}

/* Theme light overrides for cards */
body.theme-light .why-us-card {
    background: #ffffff;
    border-color: #e5e7eb;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
}

.why-us-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.why-us-icon-box {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    color: white;
    background: linear-gradient(135deg, #8B5CF6, #F97316);
    box-shadow: 0 4px 10px rgba(139, 92, 246, 0.3);
}

.why-us-icon-box svg {
    width: 24px;
    height: 24px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.why-us-card h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.75rem;
}

.why-us-card p {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

/* Dots */
.why-us-dots {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 0.5rem;
}

.why-us-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #CBD5E1;
    cursor: pointer;
    transition: all 0.3s ease;
}

.why-us-dot.active {
    background: #8B5CF6; /* Purple */
    width: 24px;
    border-radius: 4px;
}

/* Responsive */
@media (min-width: 768px) {
    .why-us-track {
        /* Desktop: Show 2.5 cards roughly */
        justify-content: flex-start;
        padding-left: calc(50% - 300px); /* Center start roughly or just auto */
        padding-left: 2rem;
        /* If container is 1000px, 40% is 400px. Too big. */
        /* User wants 2 visible + 1 peek.
           Container max-width 1000px.
           Let's set card width to ~40% of container.
        */
    }
    .why-us-card {
        flex: 0 0 380px; /* Adjusted for desktop peek */
    }
}

@media (max-width: 767px) {
    .why-us-title {
        font-size: 1.5rem;
        padding: 0 1rem;
        word-wrap: break-word;
        overflow-wrap: break-word;
        white-space: normal;
        box-sizing: border-box;
        width: 100%;
        max-width: 100vw;
        margin-left: auto;
        margin-right: auto;
    }
    .why-us-subtitle {
        padding: 0 1.5rem;
        box-sizing: border-box;
        width: 100%;
        max-width: 100vw;
        margin-left: auto;
        margin-right: auto;
        word-wrap: break-word;
        overflow-wrap: break-word;
    }
    .why-us-card {
        flex: 0 0 75%; /* Shows ~1.25 cards, making the first one wider */
        max-width: none;
        min-width: 260px; /* Increased min-width for better presence */
    }
    .why-us-track {
        justify-content: flex-start;
        padding-left: 1rem;
        padding-right: 1rem;
        padding-bottom: 2rem; /* Ensure shadow isn't cut off */
    }
    .why-choose-us-section {
        overflow: hidden; /* Prevent horizontal scroll on the section itself */
        width: 100%;
        margin-top: 1.5rem; /* Reduced margin between testimonials and this section title on mobile */
        padding-left: 0.25rem;
        padding-right: 0.25rem;
    }
    .why-us-image-container {
        max-width: 100%; /* Increased image size on mobile */
    }
}
