/* ============================================
   SANKIYA - Carousel & Banner Styles
   ============================================ */

/* ========== HERO CAROUSEL ========== */
.hero-carousel {
    position: relative;
    width: 100%;
    height: 100vh;
    min-height: 600px;
    max-height: 900px;
    overflow: hidden;
}

.hero-carousel-track {
    position: relative;
    width: 100%;
    height: 100%;
}

.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 1s ease, visibility 1s ease;
    display: flex;
    align-items: center;
}

.hero-slide.active {
    opacity: 1;
    visibility: visible;
    z-index: 2;
}

.hero-slide-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(15, 35, 71, 0.85) 0%, rgba(27, 58, 107, 0.7) 50%, rgba(200, 16, 46, 0.3) 100%);
    z-index: 1;
}

.hero-slide-content {
    position: relative;
    z-index: 3;
    max-width: 750px;
    padding-top: 80px;
}

.hero-slide-badge {
    display: inline-block;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.25);
    color: #fff;
    padding: 0.5rem 1.2rem;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 500;
    margin-bottom: 1.5rem;
    letter-spacing: 0.5px;
    animation: fadeInDown 0.8s ease;
}

.hero-slide-badge i {
    margin-right: 0.5rem;
}

.hero-slide-content h1 {
    color: #fff;
    font-size: 3rem;
    font-weight: 800;
    line-height: 1.15;
    margin-bottom: 1.5rem;
    animation: fadeInUp 0.8s ease 0.2s both;
}

.hero-slide-content h1 span {
    color: #E01E3C;
    position: relative;
}

.hero-slide-content p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.15rem;
    line-height: 1.8;
    margin-bottom: 2rem;
    animation: fadeInUp 0.8s ease 0.4s both;
}

.hero-slide-content .hero-buttons {
    animation: fadeInUp 0.8s ease 0.6s both;
}

/* Hero Carousel Buttons */
.hero-carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.25);
    color: #fff;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.hero-carousel-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-50%) scale(1.1);
}

.hero-carousel-prev {
    left: 2rem;
}

.hero-carousel-next {
    right: 2rem;
}

/* Hero Carousel Dots */
.hero-carousel-dots {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    display: flex;
    gap: 0.75rem;
}

.hero-carousel-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.4);
    border: 2px solid rgba(255, 255, 255, 0.6);
    cursor: pointer;
    transition: all 0.3s ease;
}

.hero-carousel-dot.active {
    background: #fff;
    border-color: #fff;
    transform: scale(1.2);
}

.hero-carousel-dot:hover {
    background: rgba(255, 255, 255, 0.7);
}

/* Progress bar on slides */
.hero-carousel-progress {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-red), var(--primary-red-light));
    z-index: 10;
    transition: width linear;
}

/* ========== STATS BANNER ========== */
.stats-banner {
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--primary-blue-dark) 100%);
    padding: 3rem 0;
    position: relative;
    overflow: hidden;
}

.stats-banner::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 300px;
    height: 300px;
    background: rgba(200, 16, 46, 0.15);
    border-radius: 50%;
    filter: blur(60px);
}

.stats-banner-inner {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    text-align: center;
    position: relative;
    z-index: 1;
}

.stat-item {
    color: #fff;
}

.stat-number {
    font-size: 3rem;
    font-weight: 800;
    line-height: 1;
    margin-bottom: 0.5rem;
    display: inline;
}

.stat-label-suffix {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-red-light);
    display: inline;
}

.stat-label {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.8);
    font-weight: 400;
    letter-spacing: 0.3px;
}

/* ========== TESTIMONIALS CAROUSEL ========== */
.testimonials-section {
    overflow: hidden;
}

.testimonials-carousel {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

.testimonials-track {
    position: relative;
    min-height: 320px;
}

.testimonial-card {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    opacity: 0;
    visibility: hidden;
    transform: translateX(60px);
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    background: #fff;
    padding: 2.5rem;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-md);
    border: 1px solid var(--light-gray);
}

.testimonial-card.active {
    opacity: 1;
    visibility: visible;
    transform: translateX(0);
    position: relative;
}

.testimonial-card.exit-left {
    opacity: 0;
    transform: translateX(-60px);
}

.testimonial-stars {
    color: #f59e0b;
    font-size: 1rem;
    margin-bottom: 1.25rem;
    display: flex;
    gap: 0.25rem;
}

.testimonial-card blockquote {
    font-size: 1.05rem;
    line-height: 1.8;
    color: var(--text-color);
    font-style: italic;
    margin-bottom: 1.5rem;
    position: relative;
    padding-left: 1.5rem;
    border-left: 3px solid var(--primary-blue);
}

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

.testimonial-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-blue), var(--primary-blue-light));
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.testimonial-author strong {
    display: block;
    font-size: 0.95rem;
    color: var(--primary-blue);
}

.testimonial-author span {
    font-size: 0.85rem;
    color: var(--medium-gray);
}

/* Testimonial Navigation */
.testimonial-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 5;
    background: var(--primary-blue);
    color: #fff;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    border: none;
    cursor: pointer;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-md);
}

.testimonial-btn:hover {
    background: var(--primary-blue-light);
    transform: translateY(-50%) scale(1.1);
}

.testimonial-prev {
    left: -60px;
}

.testimonial-next {
    right: -60px;
}

.testimonial-dots {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 1.5rem;
}

.testimonial-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--light-gray);
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.testimonial-dot.active {
    background: var(--primary-blue);
    transform: scale(1.2);
}

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

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ========== RESPONSIVE ========== */
@media (max-width: 1024px) {
    .testimonial-prev { left: -20px; }
    .testimonial-next { right: -20px; }
}

@media (max-width: 768px) {
    .hero-carousel {
        min-height: 500px;
        max-height: 700px;
    }

    .hero-slide-content {
        padding-top: 100px;
        padding-left: 1rem;
        padding-right: 1rem;
    }

    .hero-slide-content h1 {
        font-size: 2rem;
    }

    .hero-slide-content p {
        font-size: 1rem;
    }

    .hero-carousel-btn {
        width: 40px;
        height: 40px;
        font-size: 0.9rem;
    }

    .hero-carousel-prev { left: 1rem; }
    .hero-carousel-next { right: 1rem; }

    .stats-banner-inner {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }

    .stat-number {
        font-size: 2.2rem;
    }

    .testimonial-prev { left: -10px; }
    .testimonial-next { right: -10px; }

    .testimonial-btn {
        width: 36px;
        height: 36px;
        font-size: 0.8rem;
    }

    .testimonial-card {
        padding: 1.5rem;
    }

    .testimonials-track {
        min-height: 380px;
    }
}

@media (max-width: 480px) {
    .hero-carousel {
        min-height: 450px;
    }

    .hero-slide-content h1 {
        font-size: 1.6rem;
    }

    .hero-slide-badge {
        font-size: 0.75rem;
        padding: 0.4rem 0.9rem;
    }

    .hero-buttons {
        flex-direction: column;
        gap: 0.75rem;
    }

    .hero-buttons .btn {
        width: 100%;
        text-align: center;
    }

    .stats-banner-inner {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }

    .stat-number {
        font-size: 1.8rem;
    }

    .testimonials-track {
        min-height: 420px;
    }

    .testimonial-prev { left: 0; }
    .testimonial-next { right: 0; }
}
