/* ========================================
   REFERENCES PAGE STYLES
   ======================================== */

.references-page-content {
    background-color: var(--color-gray-50);
}

/* ========================================
   REFERENCES SECTION
   ======================================== */

.references-section {
    margin-bottom: var(--space-16);
}

.references-section:last-child {
    margin-bottom: 0;
}

/* Section Header */
.references-section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto var(--space-10);
}

.references-section-title {
    font-family: var(--font-primary);
    font-size: var(--text-3xl);
    font-weight: var(--font-bold);
    color: var(--color-secondary);
    margin-bottom: var(--space-3);
}

.references-section-desc {
    font-family: var(--font-primary);
    font-size: var(--text-lg);
    color: var(--color-gray-600);
    line-height: var(--leading-relaxed);
}

/* ========================================
   REFERENCES GRID - DESKTOP
   ======================================== */

.references-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-5);
}

/* Reference Card */
.reference-card {
    background: var(--color-white);
    border-radius: var(--radius-xl);
    padding: var(--space-6);
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-base);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
}

.reference-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.reference-card-logo {
    width: 100%;
    height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.reference-card-logo img {
    max-width: 80%;
    max-height: 80%;
    object-fit: contain;
    filter: grayscale(100%);
    opacity: 0.7;
    transition: all var(--transition-base);
}

.reference-card:hover .reference-card-logo img {
    filter: grayscale(0%);
    opacity: 1;
}

/* ========================================
   MOBILE SWIPER
   ======================================== */

.references-swiper-mobile {
    display: none;
}

.references-swiper-container {
    position: relative;
    padding-bottom: var(--space-10);
}

.references-page-swiper .swiper-pagination {
    bottom: 0;
}

.references-page-swiper .swiper-pagination-bullet {
    width: 10px;
    height: 10px;
    background: var(--color-gray-300);
    opacity: 1;
}

.references-page-swiper .swiper-pagination-bullet-active {
    background: var(--color-primary);
}

/* ========================================
   RESPONSIVE
   ======================================== */

@media (max-width: 1024px) {
    .references-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: var(--space-4);
    }

    .references-section-title {
        font-size: var(--text-2xl);
    }

    .references-section-desc {
        font-size: var(--text-base);
    }
}

@media (max-width: 768px) {
    .references-section {
        margin-bottom: 0;
    }

    .section {
        padding: var(--space-8) 0 0;
    }

    .references-page-content>.container {
        padding-left: 0;
        padding-right: 0;
    }

    .references-section-header {
        margin-bottom: var(--space-8);
        padding-left: var(--space-4);
        padding-right: var(--space-4);
    }

    .references-section-title {
        font-size: var(--text-xl);
    }

    .references-section-desc {
        font-size: var(--text-sm);
    }

    /* Hide Desktop Grid, Show Mobile Swiper */
    .references-grid-desktop {
        display: none;
    }

    .references-swiper-mobile {
        display: block;
        padding-bottom: 0;
    }

    .reference-card {
        padding: var(--space-5);
        border-radius: var(--radius-lg);
    }

    .reference-card-logo {
        height: 90px;
    }
}

@media (max-width: 480px) {
    .reference-card {
        padding: var(--space-4);
    }

    .reference-card-logo {
        height: 60px;
    }
}