/* 
 * Edyant - Components Stylesheet
 * Contains styles for reusable UI components like carousels, cards, etc.
 */

/* ======= ANALYTICS CAROUSEL ======= */
.analytics-container {
    position: relative;
    overflow: visible;
    padding: 0 30px;
    margin: 15px 0;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.analytics-viewport {
    overflow: hidden;
    width: 100%;
}

.analytics-carousel {
    display: flex;
    width: 500%;
    transition: transform 0.5s ease;
}

.analytics-item {
    width: 20%;
    flex-shrink: 0;
    padding: 0 15px;
    box-sizing: border-box;
    display: flex;
    justify-content: center;
}

.analytics-content {
    max-width: 800px;
    width: 100%;
    padding: 40px;
    background-color: #f9f9f9;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    text-align: center;
    transition: all 0.3s ease;
    box-sizing: border-box;
}

.analytics-content:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.analytics-icon {
    margin-bottom: 20px;
    color: #4a6fa0;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background-color: rgba(74, 111, 160, 0.1);
}

.analytics-item h3 {
    font-family: 'Playfair Display', serif;
    font-weight: 600;
    margin-bottom: 15px;
    color: #333;
}

.analytics-item p {
    font-family: 'Roboto', sans-serif;
    font-weight: 300;
    color: #555;
    margin-bottom: 25px;
    line-height: 1.6;
}

.analytics-indicators {
    display: flex;
    justify-content: center;
    margin-top: 30px;
}

.analytics-indicator {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: #ddd;
    margin: 0 6px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.analytics-indicator.active {
    background-color: #4a6fa0;
    transform: scale(1.2);
}

/* ======= TESTIMONIAL CAROUSEL ======= */
.testimonial-carousel {
    display: flex;
    overflow: hidden;
    position: relative;
    height: 180px;
}

.testimonial-slide {
    min-width: 100%;
    opacity: 0;
    position: absolute;
    top: 0;
    left: 0;
    transition: opacity 0.8s ease;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.testimonial-slide.active {
    opacity: 1;
    z-index: 1;
}

.testimonial-indicators {
    display: flex;
    justify-content: center;
    margin-top: 20px;
    z-index: 2;
    position: relative;
}

/* ======= PARTNER LOGO GRID ======= */
.partner-logos {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap; /* Changed from nowrap */
    gap: 20px;
    margin-top: 20px;
}

.partner-logo {
    width: 120px;
    height: 120px;
    padding: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.partner-logo img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    filter: grayscale(100%);
    opacity: 0.7;
    transition: all 0.3s ease;
}

.partner-logo:hover img {
    filter: grayscale(0);
    opacity: 1;
}

@media (max-width: 768px) {
    .analytics-container {
        padding: 0 10px;
    }

    .analytics-carousel {
        width: 100%;
    }

    .analytics-item {
        width: 100%;
    }

    .analytics-content {
        padding: 24px;
    }

    .testimonial-carousel {
        height: 260px;
    }
}

@media (max-width: 576px) {
    .partner-logo {
        width: 108px;
        height: 108px;
        padding: 9px;
    }

    .testimonial-carousel {
        height: 220px;
    }

    .testimonial-indicators {
        margin-top: 12px;
    }

    .testimonial-slide p:last-child {
        margin-bottom: 0;
    }
}

@media (max-width: 480px) {
    .testimonial-carousel {
        height: 240px;
    }
}
