/* Why Choose Us Section Styles */
.why-choose-section {
    background: var(--rk-green);
    color: #ffffff;
    padding: 100px 0;
    position: relative;
    overflow: hidden;
}

/* Override global container constraints for this section */
.why-choose-section .container {
    max-width: none;
    width: 100%;
    padding: 0 2rem;
}

/* Section Title */
.why-choose-section .section-title-center {
    color: #ffffff;
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 4rem;
    text-align: center;
    position: relative;
    z-index: 2;
}

.why-choose-section .section-title-center::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: var(--bright-yellow);
    border-radius: 2px;
}

/* 2-Column Layout */
.why-choose-content {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 4rem;
    align-items: start;
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
    position: relative;
    z-index: 2;
    padding: 0 2rem;
}

/* Features Column */
.features-column {
    display: flex;
    flex-direction: column;
    width: 100%;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    width: 100%;
    margin: 0;
}

/* Feature Cards */
.feature-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    padding: 2rem 1.5rem;
    text-align: center;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.05), transparent);
    transform: rotate(45deg);
    transition: all 0.6s ease;
    opacity: 0;
}

.feature-card:hover::before {
    opacity: 1;
    animation: shimmer 1.5s ease-in-out;
}

.feature-card:hover {
    transform: translateY(-8px);
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.3);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
}

.feature-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    position: relative;
    z-index: 2;
    transition: all 0.3s ease;
}

.feature-icon.professional {
    background: linear-gradient(135deg, var(--bright-yellow), #ffd900);
    color: var(--text-color);
}

.feature-icon.groups {
    background: linear-gradient(135deg, #FF6B6B, #FF8E8E);
    color: #ffffff;
}

.feature-icon.fun {
    background: linear-gradient(135deg, #4ECDC4, #6FDDD6);
    color: #ffffff;
}

.feature-icon.schedule {
    background: linear-gradient(135deg, #45B7D1, #6BC5D8);
    color: #ffffff;
}

.feature-icon.safety {
    background: linear-gradient(135deg, #96CEB4, #A8D5BA);
    color: #ffffff;
}

.feature-icon.progress {
    background: linear-gradient(135deg, #FFEAA7, #FDCB6E);
    color: var(--text-color);
}

.feature-card:hover .feature-icon {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
}

.feature-card h3 {
    font-size: 1.2rem;
    font-weight: 600;
    margin: 0 0 1rem 0;
    color: #ffffff;
    position: relative;
    z-index: 2;
}

.feature-card p {
    font-size: 0.9rem;
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.9);
    margin: 0;
    position: relative;
    z-index: 2;
}

/* Testimonial Column */
.testimonial-column {
    display: flex;
    flex-direction: column;
}

/* Testimonial Carousel Container */
.testimonial-carousel {
    position: relative;
    min-height: 400px;
    overflow: hidden;
}

.testimonial-slides {
    position: relative;
    width: 100%;
    height: 100%;
}

.testimonial-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    padding: 2.5rem 2rem;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: opacity 1s ease-in-out, transform 1s ease-in-out, visibility 1s ease-in-out;
    overflow: hidden;
    box-sizing: border-box;
}

/* Active testimonial card */
.testimonial-card.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    position: relative;
    z-index: 2;
}

/* Non-active testimonials stay hidden */
.testimonial-card:not(.active) {
    position: absolute;
    z-index: 1;
}

/* Remove/Hide carousel navigation dots completely */
.testimonial-nav,
.carousel-dots {
    display: none !important;
}

.testimonial-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.05), transparent);
    transform: rotate(45deg);
    transition: all 0.6s ease;
    opacity: 0;
}

.testimonial-card:hover::before {
    opacity: 1;
}

.testimonial-quote {
    font-size: 1.1rem;
    line-height: 1.6;
    margin: 0 0 2rem 0;
    color: rgba(255, 255, 255, 0.95);
    font-style: italic;
    position: relative;
}

.testimonial-quote::before {
    content: '"';
    font-size: 4rem;
    color: var(--bright-yellow);
    position: absolute;
    left: -1rem;
    top: -1.5rem;
    line-height: 1;
    opacity: 0.7;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.author-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    overflow: hidden;
    position: relative;
    background: linear-gradient(135deg, #45B7D1, #6BC5D8);
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid rgba(255, 255, 255, 0.3);
    transition: all 0.3s ease;
}

.author-avatar:hover {
    transform: scale(1.05);
    background: linear-gradient(135deg, #6BC5D8, #45B7D1);
}

.author-avatar svg {
    color: #ffffff;
    width: 24px;
    height: 24px;
}

.avatar-fallback {
    display: none;
}

.author-avatar img[style*="display: none"] + .avatar-fallback,
.author-avatar:not(:has(img)) .avatar-fallback {
    display: flex;
}

.author-info h4 {
    margin: 0 0 0.25rem 0;
    font-size: 1.1rem;
    font-weight: 600;
    color: #ffffff;
}

.author-info p {
    margin: 0;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.8);
}

.rating {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.stars {
    display: flex;
    gap: 0.25rem;
    align-items: center;
}

.stars svg {
    width: 18px;
    height: 18px;
    fill: #FFD700;
}

/* Decorative Background Elements */
.why-choose-decoration {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
    z-index: 1;
}

.deco-shape {
    position: absolute;
    opacity: 0.05;
}

.deco-shape.shape-1 {
    width: 300px;
    height: 300px;
    background: #ffffff;
    border-radius: 50%;
    top: -100px;
    right: -100px;
    animation: float 8s ease-in-out infinite;
}

.deco-shape.shape-2 {
    width: 150px;
    height: 150px;
    background: var(--bright-yellow);
    transform: rotate(45deg);
    bottom: 20%;
    left: -50px;
    animation: float 6s ease-in-out infinite reverse;
}

.deco-shape.shape-3 {
    width: 0;
    height: 0;
    border-left: 75px solid transparent;
    border-right: 75px solid transparent;
    border-bottom: 130px solid #ffffff;
    top: 30%;
    left: 10%;
    animation: float 10s ease-in-out infinite;
}

/* Animations */
@keyframes shimmer {
    0% { transform: translateX(-100%) translateY(-100%) rotate(45deg); }
    100% { transform: translateX(100%) translateY(100%) rotate(45deg); }
}

@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    33% { transform: translateY(-20px) rotate(2deg); }
    66% { transform: translateY(-10px) rotate(-2deg); }
}

/* Responsive Design */
@media (max-width: 1024px) {
    .why-choose-content {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .testimonial-column {
        order: 2;
    }

    .features-column {
        order: 1;
    }

    .features-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.25rem;
    }
}

@media (max-width: 768px) {
    .why-choose-section {
        padding: 60px 0;
    }

    .why-choose-content {
        gap: 2rem;
    }

    .features-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .testimonial-card {
        padding: 2rem;
    }

    .feature-card {
        padding: 1.5rem;
    }

    .why-choose-section .section-title-center {
        font-size: 2rem;
        margin-bottom: 3rem;
    }
}

@media (max-width: 480px) {
    .testimonial-card {
        padding: 1.5rem;
    }

    .feature-card {
        padding: 1.25rem;
    }

    .testimonial-quote {
        font-size: 1rem;
    }

    .feature-card h3 {
        font-size: 1.1rem;
    }

    .feature-card p {
        font-size: 0.85rem;
    }
}

/* High contrast mode support */
@media (prefers-contrast: more) {
    .feature-card {
        background: rgba(255, 255, 255, 0.2);
        border: 2px solid #ffffff;
    }

    .testimonial-card {
        border: 2px solid var(--text-color);
    }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    .feature-card,
    .testimonial-card,
    .feature-icon {
        transition: none;
    }

    .feature-card:hover,
    .testimonial-card:hover,
    .feature-card:hover .feature-icon {
        transform: none;
    }

    .deco-shape,
    .feature-card::before {
        animation: none;
    }

    .testimonial-card {
        transition: none;
    }
}
