/* Embla Carousel Styles - VERTICAL */
#newsCarousel.embla {
    position: relative;
    max-width: 500px;
    margin: 0 auto;
    padding: 80px 20px;
}

#newsCarousel .embla__viewport {
    overflow: hidden !important;
    height: 324px;
    /* Same as one slide */
    width: 100%;
}

#newsCarousel .embla__container {
    display: flex;
    flex-direction: column;
    height: auto;
    backface-visibility: hidden;
    touch-action: pan-x pinch-zoom;
}

#newsCarousel .embla__slide {
    flex: 0 0 324px;
    /* FIXED HEIGHT - critical for vertical scroll */
    height: 324px;
    width: 100%;
    padding: 10px 0;
}

#newsCarousel .embla__slide .card {
    height: 19rem;
    display: flex;
    flex-direction: column;
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(138, 43, 226, 0.15);
    transition: all 0.3s ease;
}

#newsCarousel .embla__slide .card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(138, 43, 226, 0.25);
}

#newsCarousel .card-image-wrapper {
    height: 140px;
    width: 100%;
    position: relative;
    overflow: hidden;
    flex-shrink: 0;
}

#newsCarousel .card-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

#newsCarousel .card-content {
    padding: 1rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

#newsCarousel .card-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: #5B2C91;
    margin-bottom: 0.5rem;
    line-height: 1.3;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

#newsCarousel .card-description {
    font-size: 0.85rem;
    line-height: 1.4;
    margin-bottom: 0.75rem;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    color: #4a148c;
}

#newsCarousel .cta-button {
    margin-top: auto;
    padding: 0.4rem 1rem;
    font-size: 0.85rem;
    background: linear-gradient(135deg, #5B2C91, #8B3A9C);
    color: white;
    text-decoration: none;
    border-radius: 20px;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(138, 43, 226, 0.2);
    border: none;
    cursor: pointer;
    display: inline-block;
    text-align: center;
}

#newsCarousel .cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(138, 43, 226, 0.3);
    background: linear-gradient(135deg, #6a35a8, #9c45b0);
}

/* Dots */
.embla__dots {
    display: flex;
    justify-content: center;
    margin-top: 1.5rem;
    gap: 10px;
    padding: 10px 0;
}

.embla__dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(91, 44, 145, 0.3);
    cursor: pointer;
    border: none;
    padding: 0;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.embla__dot:hover {
    background: rgba(91, 44, 145, 0.6);
    transform: scale(1.2);
}

.embla__dot--selected {
    background: #5B2C91;
    width: 30px;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(91, 44, 145, 0.5);
}

/* Navigation Buttons - VERTICAL */
#newsCarousel .embla__prev,
#newsCarousel .embla__next {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    z-index: 100;
    background: transparent;
    backdrop-filter: none;
    border: none;
    color: #5B2C91;
    width: 90px;
    height: 90px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 0;
    /* Hide text */
    font-weight: bold;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: none;
}

#newsCarousel .embla__prev img,
#newsCarousel .embla__next img,
#newsCarousel .arrow-icon {
    width: 72px;
    height: 72px;
    object-fit: contain;
    /* filter: brightness(0) invert(1); */
    display: block;
}

#newsCarousel .embla__prev:hover,
#newsCarousel .embla__next:hover {
    background: transparent;
    color: white;
    transform: translateX(-50%) scale(1.1);
    box-shadow: none;
    border-color: transparent;
}

#newsCarousel .embla__prev:active,
#newsCarousel .embla__next:active {
    transform: translateX(-50%) scale(0.95);
}

#newsCarousel .embla__prev {
    top: 10px;
}

#newsCarousel .embla__next {
    bottom: 10px;
}