/* =============================================
   References Section
   ============================================= */

.references-section {
    padding: 80px 0;
    background-color: var(--gray-100);
}

.references-wrapper {
    display: flex;
    align-items: center;
    gap: 60px;
}

/* Left Content */
.references-content {
    flex: 0 0 40%;
}

.references-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background-color: rgba(227, 41, 42, 0.1);
    padding: 10px 20px;
    border-radius: 50px;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--secondary-color);
    margin-bottom: 20px;
}

.references-badge i {
    font-size: 1rem;
}

.references-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 20px;
    line-height: 1.25;
    font-family: var(--font-heading);
}

.references-title span {
    color: var(--secondary-color);
}

.references-desc {
    font-size: 1.0625rem;
    color: var(--gray-600);
    line-height: 1.8;
    margin-bottom: 30px;
}

/* Stats Row */
.references-stats {
    display: flex;
    gap: 40px;
    padding-top: 30px;
    border-top: 1px solid var(--gray-300);
}

.ref-stat-item {
    text-align: left;
}

.ref-stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-color);
    font-family: var(--font-heading);
    line-height: 1;
    margin-bottom: 8px;
}

.ref-stat-number span {
    color: var(--secondary-color);
}

.ref-stat-label {
    font-size: 0.9375rem;
    color: var(--gray-600);
    font-weight: 500;
}

/* Right Slider */
.references-slider-container {
    flex: 1;
    position: relative;
}

.references-slider {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
}

.references-slides {
    display: flex;
    transition: transform 0.5s ease;
}

.reference-slide {
    min-width: 100%;
    position: relative;
}

.reference-slide img {
    width: 100%;
    height: 450px;
    object-fit: cover;
    display: block;
}

/* Slide Caption */
.slide-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 30px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8) 0%, transparent 100%);
}

.slide-caption h4 {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--white);
    margin-bottom: 6px;
    font-family: var(--font-heading);
}

.slide-caption p {
    font-size: 0.9375rem;
    color: rgba(255, 255, 255, 0.8);
}

/* Slider Navigation */
.ref-slider-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 48px;
    height: 48px;
    background-color: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 10;
}

.ref-slider-nav:hover {
    background-color: rgba(255, 255, 255, 0.3);
    border-color: rgba(255, 255, 255, 0.4);
}

.ref-slider-nav i {
    font-size: 1.125rem;
    color: var(--white);
    transition: all 0.3s ease;
}

.ref-slider-nav:hover i {
    color: var(--white);
}

.ref-slider-prev {
    left: 20px;
}

.ref-slider-next {
    right: 20px;
}

/* Slider Dots */
.ref-slider-dots {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 24px;
}

.ref-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: var(--gray-300);
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.ref-dot:hover {
    background-color: var(--gray-400);
}

.ref-dot.active {
    background-color: var(--secondary-color);
    width: 32px;
    border-radius: 6px;
}

/* =============================================
   Responsive Styles
   ============================================= */

@media (max-width: 1199px) {
    .references-wrapper {
        gap: 40px;
    }
    
    .references-content {
        flex: 0 0 45%;
    }
    
    .references-title {
        font-size: 2.25rem;
    }
    
    .reference-slide img {
        height: 400px;
    }
}

@media (max-width: 991px) {
    .references-section {
        padding: 60px 0;
    }
    
    .references-wrapper {
        flex-direction: column;
        gap: 40px;
    }
    
    .references-content {
        flex: none;
        width: 100%;
        text-align: center;
    }
    
    .references-stats {
        justify-content: center;
    }
    
    .references-slider-container {
        width: 100%;
        max-width: 600px;
    }
    
    .ref-slider-prev {
        left: 16px;
    }
    
    .ref-slider-next {
        right: 16px;
    }
}

@media (max-width: 768px) {
    .references-title {
        font-size: 1.875rem;
    }
    
    .references-desc {
        font-size: 1rem;
    }
    
    .reference-slide img {
        height: 350px;
    }
    
    .ref-slider-nav {
        width: 42px;
        height: 42px;
    }
    
    .references-stats {
        gap: 30px;
    }
    
    .ref-stat-number {
        font-size: 2rem;
    }
}

@media (max-width: 576px) {
    .references-section {
        padding: 50px 0;
    }
    
    .references-title {
        font-size: 1.5rem;
    }
    
    .reference-slide img {
        height: 280px;
    }
    
    .slide-caption {
        padding: 20px;
    }
    
    .slide-caption h4 {
        font-size: 1.125rem;
    }
    
    .slide-caption p {
        font-size: 0.875rem;
    }
    
    .ref-slider-nav {
        width: 38px;
        height: 38px;
    }
    
    .ref-slider-prev {
        left: 12px;
    }
    
    .ref-slider-next {
        right: 12px;
    }
    
    .references-stats {
        flex-direction: column;
        gap: 20px;
        align-items: center;
    }
    
    .ref-stat-item {
        text-align: center;
    }
}
