@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@200;300;400;500;600;700&display=swap');

:root {
    --tfs-bg: radial-gradient(circle at 20% 20%, rgba(147, 197, 253, 0.15), rgba(15, 23, 42, 0.95));
    --tfs-title-color: #f8fafc;
    --tfs-topic-color: #d1d5db;
    --tfs-description-color: rgba(248, 250, 252, 0.75);
    --tfs-button-bg: #111827;
    --tfs-button-color: #f9fafb;
    --tfs-button-hover-bg: #0f172a;
    --tfs-button-hover-color: #ffffff;
    --tfs-overlay-color: rgba(0, 0, 0, 0.35);
    --tfs-content-padding: 32px;
    --tfs-card-blur: 24px;
    --tfs-card-bg: rgba(15, 23, 42, 0.35);
    --tfs-title-size: clamp(2.2rem, 4vw, 3.5rem);
    --tfs-topic-spacing: 0.22em;
    --tfs-description-size: 0.95rem;
    --tfs-transition-speed: 800ms;
    --tfs-item1-transform: translateX(-100%) translateY(-5%) scale(1.5);
    --tfs-item1-filter: blur(30px);
    --tfs-item1-zIndex: 11;
    --tfs-item1-opacity: 0;

    --tfs-item2-transform: translateX(0);
    --tfs-item2-filter: blur(0px);
    --tfs-item2-zIndex: 10;
    --tfs-item2-opacity: 1;

    --tfs-item3-transform: translate(50%, 10%) scale(0.85);
    --tfs-item3-filter: blur(10px);
    --tfs-item3-zIndex: 9;

    --tfs-item4-transform: translate(80%, 20%) scale(0.6);
    --tfs-item4-filter: blur(30px);
    --tfs-item4-zIndex: 8;

    --tfs-item5-transform: translate(120%, 35%) scale(0.35);
    --tfs-item5-filter: blur(40px);
    --tfs-item5-opacity: 0;
}

.tfs-carousel {
    position: relative;
    min-height: 680px;
    font-family: 'Poppins', sans-serif;
    color: #f8fafc;
    overflow: hidden;
    background: var(--tfs-background, var(--tfs-bg));
    border-radius: 32px;
    padding: 48px 0;
}

.tfs-carousel::before {
    content: '';
    position: absolute;
    inset: 10% auto auto 5%;
    width: 420px;
    height: 420px;
    background: radial-gradient(circle, rgba(147, 51, 234, 0.45), transparent 60%);
    filter: blur(90px);
    opacity: 0.7;
    pointer-events: none;
    z-index: 0;
}

.tfs-list {
    position: relative;
    width: min(1200px, 92vw);
    height: 70vh;
    margin: 0 auto;
}

.tfs-item {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 32px;
    padding: 32px;
    border-radius: 28px;
    overflow: hidden;
    transition: left 0.5s, opacity 0.5s, transform 0.5s;
}

.tfs-item:nth-child(n + 6) {
    opacity: 0;
}

.tfs-item:nth-child(1) {
    transform: var(--tfs-item1-transform);
    filter: var(--tfs-item1-filter);
    z-index: var(--tfs-item1-zIndex);
    opacity: var(--tfs-item1-opacity);
    pointer-events: none;
}

.tfs-item:nth-child(2) {
    z-index: 10;
    transform: var(--tfs-item2-transform);
    filter: var(--tfs-item2-filter);
    opacity: var(--tfs-item2-opacity);
}

.tfs-item:nth-child(3) {
    transform: var(--tfs-item3-transform);
    filter: var(--tfs-item3-filter);
    z-index: var(--tfs-item3-zIndex);
}

.tfs-item:nth-child(4) {
    transform: var(--tfs-item4-transform);
    filter: var(--tfs-item4-filter);
    z-index: var(--tfs-item4-zIndex);
}

.tfs-item:nth-child(5) {
    transform: var(--tfs-item5-transform);
    filter: var(--tfs-item5-filter);
    opacity: var(--tfs-item5-opacity);
    pointer-events: none;
}

.tfs-image {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    opacity: 0.85;
    transition: transform 1.5s, opacity 0.5s;
}

.tfs-overlay {
    position: absolute;
    inset: 0;
    mix-blend-mode: multiply;
    opacity: 0.9;
    background: var(--tfs-overlay-color, rgba(0, 0, 0, 0.35));
}

.tfs-content {
    position: relative;
    z-index: 2;
    max-width: 420px;
    padding: var(--tfs-content-padding, 32px);
    backdrop-filter: blur(var(--tfs-card-blur, 24px));
    border-radius: 32px;
    background: var(--tfs-card-bg, rgba(15, 23, 42, 0.35));
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 20px 60px rgba(15, 23, 42, 0.5);
}

.tfs-introduce .author {
    text-transform: uppercase;
    letter-spacing: 0.4em;
    font-size: 0.75rem;
    margin-bottom: 12px;
    color: rgba(248, 250, 252, 0.7);
}

.tfs-introduce .title {
    font-size: var(--tfs-title-size, clamp(2.2rem, 4vw, 3.5rem));
    line-height: 1.05;
    font-weight: 600;
    margin-bottom: 6px;
    color: var(--tfs-title-color, #f8fafc);
}

.tfs-introduce .topic {
    font-size: clamp(1.3rem, 2vw, 1.6rem);
    letter-spacing: var(--tfs-topic-spacing, 0.22em);
    text-transform: uppercase;
    margin-bottom: 18px;
    color: var(--tfs-topic-color, #d1d5db);
}

.tfs-introduce .des {
    font-size: var(--tfs-description-size, 0.95rem);
    line-height: 1.6;
    color: var(--tfs-description-color, rgba(248, 250, 252, 0.75));
}

.tfs-buttons {
    margin-top: 26px;
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
}

.tfs-btn {
    border: none;
    border-radius: 999px;
    padding: 12px 28px;
    font-size: 0.85rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    cursor: pointer;
    transition: transform 0.3s ease, background 0.3s;
    background: var(--tfs-button-bg, #111827);
    color: var(--tfs-button-color, #f9fafb);
}

.tfs-btn:hover {
    transform: translateY(-3px);
    background: var(--tfs-button-hover-bg, var(--tfs-button-bg, #111827));
    color: var(--tfs-button-hover-color, var(--tfs-button-color, #f9fafb));
}

.tfs-arrows {
    position: absolute;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    width: min(1200px, 92vw);
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 3;
}

.tfs-prev,
.tfs-next {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.3);
    background: rgba(15, 23, 42, 0.35);
    color: #f8fafc;
    font-size: 1.4rem;
    cursor: pointer;
    transition: background 0.3s;
}

.tfs-see-all {
    border: none;
    background: transparent;
    color: #f8fafc;
    letter-spacing: 0.35em;
    text-transform: uppercase;
    font-weight: 600;
    cursor: pointer;
}

.tfs-carousel.show-detail .tfs-prev,
.tfs-carousel.show-detail .tfs-next {
    opacity: 0;
    pointer-events: none;
}

.tfs-carousel.show-detail .tfs-see-all {
    opacity: 0.8;
}

@keyframes tfs-showContent {
    from {
        transform: translateY(-30px);
        filter: blur(10px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        filter: blur(0px);
        opacity: 1;
    }
}

.tfs-item:nth-child(2) .tfs-introduce .title,
.tfs-item:nth-child(2) .tfs-introduce .topic,
.tfs-item:nth-child(2) .tfs-introduce .des,
.tfs-item:nth-child(2) .tfs-buttons {
    opacity: 0;
    animation: tfs-showContent 0.65s 0.5s ease forwards;
}

.tfs-item:nth-child(2) .tfs-introduce .topic { animation-delay: 0.7s; }
.tfs-item:nth-child(2) .tfs-introduce .des { animation-delay: 0.9s; }
.tfs-item:nth-child(2) .tfs-buttons { animation-delay: 1.1s; }

.tfs-carousel.next .tfs-item:nth-child(1) { animation: tfs-from-pos2 0.65s forwards; }
.tfs-carousel.next .tfs-item:nth-child(2) { animation: tfs-from-pos3 0.75s forwards; }
.tfs-carousel.next .tfs-item:nth-child(3) { animation: tfs-from-pos4 0.85s forwards; }
.tfs-carousel.next .tfs-item:nth-child(4) { animation: tfs-from-pos5 0.95s forwards; }

.tfs-carousel.prev .tfs-item:nth-child(5) { animation: tfs-from-pos4 0.65s forwards; }
.tfs-carousel.prev .tfs-item:nth-child(4) { animation: tfs-from-pos3 0.75s forwards; }
.tfs-carousel.prev .tfs-item:nth-child(3) { animation: tfs-from-pos2 0.85s forwards; }
.tfs-carousel.prev .tfs-item:nth-child(2) { animation: tfs-from-pos1 0.95s forwards; }

@keyframes tfs-from-pos1 {
    from {
        transform: var(--tfs-item1-transform);
        filter: var(--tfs-item1-filter);
        opacity: var(--tfs-item1-opacity);
    }
}
@keyframes tfs-from-pos2 {
    from {
        transform: var(--tfs-item2-transform);
        filter: var(--tfs-item2-filter);
        opacity: var(--tfs-item2-opacity);
    }
}
@keyframes tfs-from-pos3 {
    from {
        transform: var(--tfs-item3-transform);
        filter: var(--tfs-item3-filter);
    }
}
@keyframes tfs-from-pos4 {
    from {
        transform: var(--tfs-item4-transform);
        filter: var(--tfs-item4-filter);
    }
}
@keyframes tfs-from-pos5 {
    from {
        transform: var(--tfs-item5-transform);
        filter: var(--tfs-item5-filter);
        opacity: var(--tfs-item5-opacity);
    }
}

@media (max-width: 991px) {
    .tfs-carousel {
        min-height: 560px;
        padding: 32px 0 90px;
    }

    .tfs-item {
        flex-direction: column;
        text-align: center;
    }

    .tfs-content {
        max-width: 100%;
    }

    .tfs-introduce .topic {
        letter-spacing: 0.15em;
    }
}

@media (max-width: 640px) {
    .tfs-carousel {
        min-height: 520px;
    }

    .tfs-buttons {
        flex-direction: column;
    }

    .tfs-prev,
    .tfs-next {
        width: 40px;
        height: 40px;
    }

    .tfs-see-all {
        letter-spacing: 0.2em;
        font-size: 0.7rem;
    }
}
