/* Carousel Styles for Horizontal Loop */

/* Leadership Section */
.leadership {
    padding: 80px 20px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    min-height: 60vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

/* Departments Section */
.departments {
    padding: 80px 20px;
    background-color: #ffffff;
    min-height: 60vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.leadership .section-title,
.departments .section-title {
    width: 100%;
    text-align: center;
    margin-top: 4rem;
}

.leadership h2,
.departments h2 {
    font-size: 2.5rem;
    color: white;
    font-weight: 700;
    margin: 0;
}

.departments h2 {
    color: #1a1a2e;
}

/* Carousel Container */
.carousel-wrapper {
    position: relative;
    width: 100%;
    max-width: 1220px;
    margin: 0 50px;
    display: flex;
    flex-direction: column;
    padding: 0 10px;
}

.carousel-cards {
    list-style: none;
    padding: 0;
    margin: 0;
    position: relative;
    width: 100%;
    height: 530px;
    display: flex;
    align-items: center;
    overflow: hidden;
    border-radius: 20px;
}

.carousel-cards li {
    flex-shrink: 0;
    width: 240px;
    height: 340px;
    background-size: cover;
    background-position: center;
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.25);
    overflow: hidden;
    margin: 0 10px;
    cursor: pointer;
    position: relative;
    /* Smooth opacity transitions */
    .card-info {
        color: rgba(255, 255, 255, 0.55);
    }
}

.carousel-cards li:hover {
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.35);
}

.carousel-cards li.active {
    box-shadow: 
        0 0 0 3px #ee7c2e,
        0 25px 80px rgba(238, 124, 46, 0.4),
        0 20px 60px rgba(0, 0, 0, 0.5);
    filter: brightness(1.05);
    .card-info {
        color: rgba(255, 255, 255);
    }
}

.card-info {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.95) 50%);
    padding: 2.5rem 1.5rem 1.5rem;
    color: white;
    text-align: center;
}

.card-info h3 {
    font-size: 1.4rem;
    margin-bottom: 0.5rem;
    font-weight: 700;
    line-height: 1.2;
}

.card-info p {
    font-size: 0.95rem;
    opacity: 0.95;
    margin: 0;
}

.carousel-actions {
    /*DISABLED DISABLE CONTROLS ACTIONS*/
    display:none !important;


    display: flex;
    justify-content: center;
    gap: 2rem;
    width: 100%;
}

.carousel-prev,
.carousel-next {
    background-color: #1a1a2e;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: none;
    color: white;
    font-size: 1.2rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.carousel-prev:hover,
.carousel-next:hover {
    background-color: var(--secondary-color);
    transform: scale(1.1);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.carousel-prev:active,
.carousel-next:active {
    transform: scale(0.95);
}

.departments .carousel-prev,
.departments .carousel-next {
    background-color: #1a1a2e;
}

.departments .carousel-prev:hover,
.departments .carousel-next:hover {
    background-color: var(--primary-color);
}

/* Responsive Design */
@media (max-width: 1024px) {

     section:has(.carousel-wrapper) {
        padding: 0px
    }

    .carousel-wrapper {
        margin: 0px;
        padding: 0px
    }

    .carousel-cards {
        height: 620px;
    }

    .carousel-cards li {
        width: 250px;
        height: 400px;
        margin: 0 12px;

    }

    .carousel-cards li:last-child {
        margin-right: 12px;
    }

    .card-info h3 {
        font-size: 1.5rem;
    }

    .card-info p {
        font-size: 1.2rem;
    }
}

@media (max-width: 768px) {

    section:has(.carousel-wrapper) {
        padding: 0px
    }

    .carousel-wrapper {
        margin: 0px;
        padding: 0px
    }

    .carousel-cards {
        height: 620px;
    }

    .carousel-cards li {
        width: 200px;
        height: 320px;
        margin: 0 10px;
    }

    .carousel-cards li:last-child {
        margin-right: 10px;
    }

    .card-info h3 {
        font-size: 1.3rem;
    }

    .card-info p {
        font-size: 1rem;
    }

    .carousel-prev,
    .carousel-next {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    section:has(.carousel-wrapper) {
        padding: 0px
    }

    .carousel-wrapper {
        margin: 0px;
        padding: 0px
    }
    .carousel-cards {
        height: 450px;
    }

    .carousel-cards li {
        width: 180px;
        height: 310px;
        margin: 0 8px;
    }

    .carousel-cards li:last-child {
        margin-right: 8px;
    }

    .card-info {
        padding: 1.5rem 1rem 1rem;
    }

    .card-info h3 {
        font-size: 1.1rem;
        margin-bottom: 0.3rem;
    }

    .card-info p {
        font-size: 0.8rem;
    }

    .carousel-prev,
    .carousel-next {
        width: 36px;
        height: 36px;
        font-size: 0.9rem;
    }

    .carousel-actions {
        gap: 1rem;
    }
}
