/* Carousel Continuous Mode - Infinite smooth scroll */

.carousel-section {
    padding: 4rem 0;
    overflow: hidden;


}

.carousel-container {
    max-width: 1440px;
    margin: 0 auto;
    /* padding: 0 20px; */
    
    display: flex;
    flex-direction: column;

}

/* Carousel Header */
.carousel-header {
    text-align: center;
    margin-bottom: 3rem;
}

.carousel-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-color);
    margin-bottom: 0.5rem;
    width: fit-content;
    padding: 10px 20px;

    align-self: center;
    justify-self: center;


    background-color: rgba(255, 255, 255, 0.2); /* semi-transparent */
    backdrop-filter: blur(4px); /* controls blur strength */
    -webkit-backdrop-filter: blur(10px); /* for Safari */
    border-radius: 40px; /* optional */
}

.carousel-subtitle {
    font-size: 1.125rem;
    color: var(--text-light);
    max-width: 600px;
    margin: 0 auto;
}

/* Carousel Wrapper */
.carousel-wrapper {
    position: relative;
    padding: 0 60px; /* Match pagination mode for consistent card widths */
}

/* Navigation Buttons */
.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: none;
    background-color: var(--secondary-color);
    color: var(--bg-light);
    box-shadow: var(--shadow-lg);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

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

.carousel-btn:active {
    transform: translateY(-50%) scale(0.95);
}

.carousel-btn-prev {
    left: 0;
}

.carousel-btn-next {
    right: 0;
}

/* Carousel Track Container */
.carousel-track-container {
    overflow: hidden;
    position: relative;
    padding: 10px 0; /* Prevent border cut-off on hover */
    margin: -10px 0;
}

.carousel-track {
    display: flex;
    gap: 20px;
    transition: none; /* No snap transitions in continuous mode */
    will-change: transform;
}

/* Pause on hover */
.carousel-wrapper:hover .carousel-track {
    animation-play-state: paused;
}

/* Carousel Cards */
.carousel-card {
    min-width: calc(33.333% - 14px);
    background-color: var(--secondary-color);
    border-radius: 12px;
    padding: 2rem;
    box-shadow: var(--shadow);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    /* border: 1px solid var(--border-color); */
}

.carousel-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-color);
}

/* Card Icon */
.card-icon {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    background-color: var(--bg-light);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    color: var(--primary-color);
}

/* Card Content */
.card-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-light);
    margin-bottom: 0.75rem;
}

.card-description {
    font-size: 1.25rem;
    color: var(--text-light);
    line-height: 1.6;
    margin-bottom: 1.5rem;
    flex-grow: 1;
}

.card-list {
    list-style: none;
    padding: 0;
    margin: 0 0 1.5rem 0;
    flex-grow: 1;
}

.card-list li {
    font-size: 1.125rem;
    color: var(--text-color);
    background-color: var(--bg-light);
    border-radius: 10px;
    padding: 4px 16px;
    font-weight: 500;
    line-height: 1.6;
    margin-bottom: 0.75rem;
    /* padding-left: 1.5rem; */
    position: relative;
    
    
}

.card-list li:last-child {
    margin-bottom: 0;
}

.card-list li::before {
    content: "•";
    color: var(--bg-light);
    font-weight: bold;
    font-size: 1.2em;
    position: absolute;
    left: 0;
    top: -0.1em;
}

.card-link {
    color: var(--primary-color);
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: var(--transition);
}

.card-link:hover {
    color: var(--accent-color);
    gap: 0.75rem;
}

/* Responsive Styles */
@media (max-width: 1024px) {
    .carousel-card {
        min-width: calc(50% - 10px);
    }
    
    .carousel-title {
        font-size: 2rem;
    }

    .section-2{
        text-align: center;
    }
}

@media (max-width: 768px) {
    .carousel-wrapper {
        padding: 0 50px; /* Match pagination button spacing */
    }
    
    .carousel-btn {
        width: 40px;
        height: 40px;
    }
    
    .carousel-card {
        min-width: 100%;
    }
    
    .carousel-title {
        font-size: 1.75rem;
    }
    
    .card-title {
        font-size: 1.25rem;
    }
    
    .card-icon {
        width: 50px;
        height: 50px;
    }
    .card-list li {
        text-align: center;
    }
}

@media (max-width: 480px) {
    .carousel-wrapper {
        padding: 0 35px; /* Match pagination button spacing */
    }
    
    .carousel-btn {
        width: 35px;
        height: 35px;
    }
    
    .carousel-container {
        padding: 0 10px;
    }
    
    .carousel-card {
        padding: 1.5rem;
    }
}

