.gallery-slider-container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 0;
    position: relative;
    background: #fff;
}

.about-title {
    font-size: 3rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: -0.02em;
    pointer-events: none;
    white-space: nowrap;
    background: linear-gradient(to bottom,
            rgb(8 42 123 / 35%) 30%,
            rgb(255 255 255 / 0%) 76%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.carousel-container {
    width: 100%;
    height: 320px;
    position: relative;
    perspective: 1000px;
    margin-top: 40px;
}

.carousel-container .card.no-animation {
    transition: none !important;
}

.carousel-container .carousel-track {
    position: relative;
    display: flex;
    align-items: center;
    width: 100%;
    height: 100%;
    transform-style: preserve-3d;
    transition: transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.carousel-container .card {
    position: absolute;
    left: 50%;
    width: 220px;
    height: 300px;
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 4px 40px rgba(0, 0, 0, 0.15);
    cursor: pointer;
    transform-origin: center center;
    transition: transform 1s ease, opacity 0.5s ease;
}

.carousel-container .card-visual {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    transform-style: preserve-3d;
    transition: transform 1s ease;
}

.carousel-container .card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: filter 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: filter;
    backface-visibility: hidden;
}

.carousel-container .card.center {
    z-index: 10;
    transform: translateX(-50%) scale(1.1);
}

.carousel-container .card.center .card-visual {
    transform: translateZ(0);
}

.carousel-container .card.left-2 {
    z-index: 1;
    transform: translateX(-50%) translateX(-420px) scale(0.7)
}

.carousel-container .card.left-1 {
    z-index: 5;
    transform: translateX(-50%) translateX(-232px) scale(0.9);
}

.carousel-container .card.right-1 {
    z-index: 5;
    transform: translateX(-50%) translateX(232px) scale(0.9);
}

.carousel-container .card.right-2 {
    z-index: 1;
    transform: translateX(-50%) translateX(420px) scale(0.7);
}

.carousel-container .card.left-2 .card-visual,
.carousel-container .card.right-2 .card-visual {
    transform: translateZ(-300px);
}

.carousel-container .card.left-1 .card-visual,
.carousel-container .card.right-1 .card-visual {
    transform: translateZ(-100px);
}

.carousel-container .card.hidden {
    opacity: 0;
    pointer-events: none;
}

.carousel-container .card.hidden .card-visual {
    transform: translateZ(0);
}

.carousel-container .card .card-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top,
            rgba(0, 0, 0, 0.8) 0%,
            /* dưới cùng */
            rgba(89, 89, 89, 0.5) 75%,
            /* gần trên nhạt dần */
            rgba(0, 0, 0, 0) 100%
            /* trên trong suốt */
        );
    padding: 20px;
    opacity: 0;
    transform: translateY(100%);
    transition: all 0.3s ease;
    pointer-events: auto;
}

.carousel-container .card:hover .card-overlay {
    opacity: 1;
    transform: translateY(0);
}

.carousel-container .card-inner {
    width: 100%;
    height: 100%;
    transition: transform 0.3s ease;
}

.carousel-container .card:hover .card-inner {
    transform: scale(1.1);
}

.carousel-container .card-button {
    display: inline-block;
    padding: 8px 16px;
    background: #c1121f;
    color: white;
    border-radius: 8px;
    text-decoration: none;
    font-size: 0.7rem;
    transition: background 0.3s ease;
}

.carousel-container .card-button:hover {
    background: #780000;
}

.gallery-slider-container .dots {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 20px;
}

.gallery-slider-container .dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(8, 42, 123, 0.2);
    cursor: pointer;
    transition: all 0.3s ease;
}

.gallery-slider-container .dot.active {
    background: #c1121f;
    transform: scale(1.2);
}

.carousel-container .nav-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: #c1121f;
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 20;
    transition: all 0.3s ease;
    font-size: 1.5rem;
    border: none;
    outline: none;
    padding-bottom: 4px;
}

.carousel-container .nav-arrow:hover {
    background: rgba(0, 0, 0, 0.8);
    transform: translateY(-50%) scale(1.1);
}

.carousel-container .nav-arrow.left {
    left: 20px;
    padding-right: 3px;
}

.carousel-container .nav-arrow.right {
    right: 20px;
    padding-left: 3px;
}

.gallery-slider-container .carousel-current-title {
    margin-top: 16px;
    font-size: 1.4rem;
    font-weight: 500;
    color: #c1121f;
    text-align: center;
    min-height: 1.5em;
    /* tránh nhảy layout khi title thay đổi */
}


@media (max-width: 768px) {
    .about-title {
        font-size: 1.4rem;
    }

    .about-subtitle {
        font-size: 0.8rem;
        margin-top: -8px;
    }

    .carousel-container {
        height: 260px;
        margin-top: 20px;
    }

    .carousel-container .card {
        width: 160px;
        height: 220px;
    }

    .carousel-container .card.left-2 {
        transform: translateX(-50%) translateX(-160px) scale(0.75);
    }

    .carousel-container .card.left-2 .card-visual,
    .carousel-container .card.right-2 .card-visual {
        transform: translateZ(-300px);
    }

    .carousel-container .card.left-1 {
        transform: translateX(-50%) translateX(-80px) scale(0.85);
    }

    .carousel-container .card.left-1 .card-visual,
    .carousel-container .card.right-1 .card-visual {
        transform: translateZ(-120px);
    }

    .carousel-container .card.right-1 {
        transform: translateX(-50%) translateX(80px) scale(0.85);
    }

    .carousel-container .card.right-2 {
        transform: translateX(-50%) translateX(160px) scale(0.75);
    }

    .carousel-container .card.hidden {
        opacity: 0;
        pointer-events: none;
    }

    .carousel-container .card.hidden .card-visual {
        transform: translateZ(0);
    }

    .carousel-container .card-button {
        font-size: 0.8rem;
        padding: 6px 12px;
    }

    .carousel-container .nav-arrow {
        width: 32px;
        height: 32px;
        font-size: 1.2rem;
    }

    .carousel-container .nav-arrow.left {
        left: 10px;
    }

    .carousel-container .nav-arrow.right {
        right: 10px;
    }
}