.arrival-carousel-container {
    position: relative;
    /* Initial background mesh */
    background: 
        radial-gradient(at 0% 0%, #e3ffe7 0px, transparent 50%),
        radial-gradient(at 100% 100%, #d9e7ff 0px, transparent 50%),
        radial-gradient(at 80% 10%, #e0f4f3 0px, transparent 50%);
    background-color: #f7faff;
    
    /* Extended 1.2s liquid background morph */
    transition: background 1.2s cubic-bezier(0.19, 1, 0.22, 1);
    
    border: 1px solid rgba(0, 113, 227, 0.12);
    border-radius: 24px;
    padding: 28px 32px 20px 32px;
    margin-bottom: 36px;
    
    backdrop-filter: blur(25px) saturate(160%);
    -webkit-backdrop-filter: blur(25px) saturate(160%);
    box-shadow: 0 12px 32px rgba(0, 60, 120, 0.06);
    overflow: hidden;
}

.carousel-header-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
}

.carousel-section-label {
    font-size: 11px;
    font-weight: 700;
    color: #4a7199;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    display: flex;
    align-items: center;
    gap: 6px;
}

.carousel-nav-controls {
    display: flex;
    align-items: center;
    gap: 8px;
}

.carousel-arrow-btn {
    background: rgba(255, 255, 255, 0.85);
    border: 1px solid rgba(0, 91, 181, 0.15);
    color: #0a2540;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    backdrop-filter: blur(10px);
    transition: all 0.3s cubic-bezier(0.19, 1, 0.22, 1);
}

.carousel-arrow-btn:hover {
    background: #ffffff;
    border-color: rgba(0, 113, 227, 0.3);
    box-shadow: 0 4px 10px rgba(0, 113, 227, 0.12);
    transform: scale(1.05);
}

.carousel-arrow-btn:active {
    transform: scale(0.95);
}

.carousel-arrow-btn:disabled {
    opacity: 0.3;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.carousel-track-wrapper {
    overflow: hidden;
    width: 100%;
}

/* --- TRACK PHYSICS --- */
.carousel-track {
    display: flex;
    transition: transform 1.2s cubic-bezier(0.19, 1, 0.22, 1);
    will-change: transform;
}

.carousel-slide {
    min-width: 100%;
    box-sizing: border-box;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 8px 0 16px 0;

    /* Base Slide Frame Transition */
    opacity: 0;
    transform: scale(0.92);
    filter: blur(6px);
    will-change: transform, opacity, filter;
    transition: 
        transform 1.2s cubic-bezier(0.19, 1, 0.22, 1),
        opacity 0.9s cubic-bezier(0.19, 1, 0.22, 1),
        filter 1.2s cubic-bezier(0.19, 1, 0.22, 1);
}

.carousel-slide.active-slide {
    opacity: 1;
    transform: scale(1);
    filter: blur(0px);
}

/* =========================================================
   ELEMENT-BY-ELEMENT MAGIC MOVE ANIMATIONS
   ========================================================= */

/* 1. Tag Row (Badges & Meta) */
.slide-tag-row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
    
    /* Outgoing / Inactive state: Drops slightly & fades */
    opacity: 0;
    transform: translateY(-12px);
    will-change: transform, opacity;
    transition: 
        transform 1.0s cubic-bezier(0.19, 1, 0.22, 1),
        opacity 0.7s ease;
}

.carousel-slide.active-slide .slide-tag-row {
    opacity: 1;
    transform: translateY(0px);
    transition-delay: 0.06s; /* First element to land */
}

/* 2. Slide Title */
.slide-title {
    font-size: 22px;
    font-weight: 600;
    color: #0b1e36;
    letter-spacing: -0.015em;
    margin: 0 0 6px 0;
    
    /* Outgoing / Inactive state: Glides in from right with subtle scale down */
    opacity: 0;
    transform: translateX(35px) scale(0.96);
    will-change: transform, opacity;
    transition: 
        transform 1.1s cubic-bezier(0.19, 1, 0.22, 1),
        opacity 0.8s ease;
}

.carousel-slide.active-slide .slide-title {
    opacity: 1;
    transform: translateX(0px) scale(1);
    transition-delay: 0.12s; /* Lands after tags */
}

/* 3. Slide Description */
.slide-description {
    font-size: 14px;
    color: #2c4a6f;
    line-height: 1.5;
    margin: 0;
    
    /* Outgoing / Inactive state: Drifts up from bottom */
    opacity: 0;
    transform: translateY(16px);
    will-change: transform, opacity;
    transition: 
        transform 1.1s cubic-bezier(0.19, 1, 0.22, 1),
        opacity 0.8s ease;
}

.carousel-slide.active-slide .slide-description {
    opacity: 1;
    transform: translateY(0px);
    transition-delay: 0.18s; /* Lands after title */
}

/* 4. Action Button */
.btn-slide-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 22px;
    border-radius: 99px;
    font-size: 14px;
    font-weight: 500;
    letter-spacing: -0.01em;
    text-decoration: none;
    cursor: pointer;
    
    background: rgba(255, 255, 255, 0.45);
    backdrop-filter: blur(16px) saturate(180%);
    -webkit-backdrop-filter: blur(16px) saturate(180%);
    
    color: #005bb5;
    border: 1px solid rgba(255, 255, 255, 0.65);
    box-shadow: 
        0 4px 16px rgba(0, 80, 160, 0.08),
        inset 0 1px 1px rgba(255, 255, 255, 0.8);

    /* Outgoing / Inactive state: Shrinks and floats from the right */
    opacity: 0;
    transform: translateX(50px) scale(0.88);
    will-change: transform, opacity;
    transition: 
        transform 1.2s cubic-bezier(0.19, 1, 0.22, 1),
        opacity 0.9s cubic-bezier(0.19, 1, 0.22, 1),
        background 0.3s ease;
}

.carousel-slide.active-slide .btn-slide-action {
    opacity: 1;
    transform: translateX(0px) scale(1);
    transition-delay: 0.26s; /* Final anchor element to land */
}

.btn-slide-action:hover {
    background: rgba(255, 255, 255, 0.75);
    border-color: rgba(255, 255, 255, 0.9);
    color: #004488;
    transform: translateY(-1.5px) scale(1.02);
    box-shadow: 
        0 6px 20px rgba(0, 80, 160, 0.12),
        inset 0 1px 1px rgba(255, 255, 255, 0.9);
}

.btn-slide-action:active {
    transform: translateY(0) scale(0.98);
    background: rgba(255, 255, 255, 0.6);
    box-shadow: 0 2px 8px rgba(0, 80, 160, 0.08);
}

/* Typography & Badges */
.slide-body {
    max-width: 680px;
}

.badge-arrival {
    background: #0071e3;
    color: #ffffff;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 4px 10px;
    border-radius: 20px;
    box-shadow: 0 2px 6px rgba(0, 113, 227, 0.25);
}

.badge-update {
    background: rgba(52, 199, 89, 0.15);
    color: #1e7032;
    border: 1px solid rgba(52, 199, 89, 0.3);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 4px 10px;
    border-radius: 20px;
}

.slide-meta {
    font-size: 12px;
    font-weight: 600;
    color: #5c7b9c;
}

/* Navigation Dots */
.carousel-dots {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 8px;
}

.dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: rgba(0, 113, 227, 0.2);
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.19, 1, 0.22, 1);
}

.dot.active {
    background: #0071e3;
    width: 22px;
    border-radius: 10px;
    box-shadow: 0 1px 4px rgba(0, 113, 227, 0.3);
}

@media (max-width: 768px) {
    .carousel-slide {
        flex-direction: column;
        align-items: flex-start;
    }
    .btn-slide-action {
        width: 100%;
        justify-content: center;
    }
}
