﻿* {
    font-family: Arial !important;
}

body {
    margin: 0;
    background-color: #000;
    color: #eee;
    font-size: 12px;
}

a {
    text-decoration: none;
}

header a {
    color: #eee;
    margin-right: 40px;
}

.logo > img {
    height: 40px;
    margin-top: 20px;
}

/* Cookie Banner */
.cookie-banner {
    position: fixed;
    bottom: -300px;
    left: 20px;
    max-width: 360px;
    padding: 20px;
    background-color: #ffffff;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    border-radius: 12px;
    z-index: 1000;
    transition: bottom 0.6s ease-in-out, opacity 0.6s ease-in-out;
    opacity: 0;
}

    .cookie-banner.show {
        bottom: 30px;
        opacity: 1;
    }

.cookie-content h3 {
    font-size: 18px;
    color: #222;
    margin: 0 0 10px;
    font-weight: bold;
}

.cookie-content p {
    font-size: 14px;
    color: #555;
    line-height: 1.6;
    margin: 0 0 15px;
}

.cookie-content a {
    color: #007bff;
    font-weight: 500;
}

    .cookie-content a:hover {
        text-decoration: underline;
    }

.btn-accept {
    background-color: #28a745;
    color: #ffffff;
    border: none;
    padding: 10px 20px;
    font-size: 14px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    transition: background-color 0.3s ease;
}

    .btn-accept:hover {
        background-color: #218838;
    }

/* Carousel */
.carousel {
    position: relative;
    height: 100vh;
    margin-top: 0;
    overflow: hidden;
}

    .carousel .list {
        position: relative;
        height: 100%;
        width: 100%;
    }

        .carousel .list .item {
            position: absolute;
            width: 100%;
            height: 100%;
            inset: 0;
            transition: transform 0.5s ease-in-out;
        }

            .carousel .list .item img {
                width: 100%;
                height: 100%;
                object-fit: cover;
            }

            .carousel .list .item .content {
                position: absolute;
                top: 20%;
                width: 1140px;
                max-width: 80%;
                left: 40%;
                transform: translateX(-50%);
                padding-right: 30%;
                box-sizing: border-box;
                color: #fff;
                text-shadow: 0 5px 10px #0004;
            }

            .carousel .list .item .author {
                font-weight: bold;
                letter-spacing: 10px;
                font-size: 40px;
            }

            .carousel .list .item .title,
            .carousel .list .item .topic {
                font-size: 3em;
                font-weight: bold;
                line-height: 1.3em;
            }

            .carousel .list .item .topic {
                color: #f1683a;
                font-size: 22px;
            }

            .carousel .list .item .des {
                font-size: 15px;
                font-family: Arial;
            }

            .carousel .list .item .buttons {
                display: block;
                grid-template-columns: repeat(2, 230px);
                grid-template-rows: 60px;
                gap: 5px;
                margin-top: 10px;
            }

                .carousel .list .item .buttons button {
                    position: relative;
                    display: inline-flex;
                    align-items: center;
                    justify-content: center;
                    padding: 10px;
                    font-size: 12px;
                    font-weight: 700;
                    letter-spacing: 1px;
                    color: #ffffff;
                    text-transform: uppercase;
                    border: none;
                    border-radius: 50px;
                    background: linear-gradient(135deg, #f1683a 0%, #e74c3c 100%);
                    box-shadow: 0 8px 25px rgba(241, 104, 58, 0.4), 0 4px 15px rgba(0, 0, 0, 0.1), inset 0 1px 0 rgba(255, 255, 255, 0.2);
                    cursor: pointer;
                    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
                    overflow: hidden;
                    min-width: 200px;
                    text-decoration: none;
                }

                    .carousel .list .item .buttons button:before,
                    .carousel .list .item .buttons button:after {
                        content: "";
                        display: block;
                        position: absolute;
                        transition: all 0.5s ease-in-out;
                    }

                    .carousel .list .item .buttons button:before {
                        top: 50%;
                        right: 1em;
                        width: 1em;
                        height: 1em;
                        transform-origin: 50% 50%;
                        transform: translate(0, -0.5em) rotate(45deg);
                        box-shadow: inset -0.2em 0.2em 0 0 #e74c3c;
                        border-radius: 0 0.15em 0 0;
                    }

                    .carousel .list .item .buttons button:after {
                        top: 50%;
                        right: 1em;
                        width: 1.3em;
                        height: 0.2em;
                        transform: translate(0, -0.1em);
                        background-color: transparent;
                    }

                    .carousel .list .item .buttons button:hover:before {
                        transform: translate(0.5em, -0.5em) rotate(45deg);
                    }

                    .carousel .list .item .buttons button:hover:after {
                        transform: translate(0.5em, -0.1em);
                        background-color: #e74c3c;
                    }

/* Thumbnail */
.thumbnail {
    position: absolute;
    bottom: 10%;
    left: 50%;
    width: max-content;
    z-index: 1;
    display: flex;
    gap: 5px;
}

    .thumbnail .item,
    .thumbnail .emptyitem {
        display: grid;
        grid-template-rows: 150px auto;
        width: 140px;
        height: 240px;
        flex-shrink: 0;
        position: relative;
        border: 1px solid #fff;
        border-radius: 10px;
        overflow: hidden;
    }

    .thumbnail .emptyitem {
        height: 220px;
    }

        .thumbnail .item img,
        .thumbnail .emptyitem img {
            width: 100%;
            height: 100%;
            object-fit: cover;
            grid-row: 1;
        }


    .thumbnail .item .content {
        padding: 10px;
        grid-row: 2;
        text-align: center;
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1), 0 1px 3px rgba(0, 0, 0, 0.08);
        background-color: rgba(255, 255, 255, 0.9);
    }

        .thumbnail .item .content .title {
            font-size: 11px;
            font-weight: bold;
            color: #e74c3c;
            font-family: Arial;
        }

        .thumbnail .item .content .description {
            font-size: 11px;
            color: #000;
            font-family: Arial;
        }

    .thumbnail .item.active {
        border: 2px solid #007bff;
        transform: scale(1.05);
    }

/* Arrows */
.arrows {
    position: absolute;
    top: 80%;
    right: 52%;
    z-index: 100;
    width: 300px;
    max-width: 30%;
    display: flex;
    gap: 10px;
    align-items: center;
}

    .arrows button {
        width: 40px;
        height: 40px;
        border-radius: 50%;
        border: none;
        color: #000;
        font-family: monospace;
        font-weight: bold;
        transition: background-color 0.5s, color 0.5s;
    }

        .arrows button:hover {
            background-color: #fff;
            color: #000;
        }

/* JobCarousel */
.JobCarousel {
    border: 1px solid #4B5563 !important;
    padding: 10px !important;
    border-radius: 5px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1), 0 1px 3px rgba(0, 0, 0, 0.08);
    background-color: rgba(243, 244, 246, 0.3); /* Semi-transparent background */
}

/* Animations */
.carousel .list .item:nth-child(1) {
    z-index: 1;
}

    .carousel .list .item:nth-child(1) .content .author,
    .carousel .list .item:nth-child(1) .content .title,
    .carousel .list .item:nth-child(1) .content .topic,
    .carousel .list .item:nth-child(1) .content .des,
    .carousel .list .item:nth-child(1) .content .buttons {
        transform: translateY(50px);
        filter: blur(20px);
        opacity: 0;
        animation: showContent 0.5s linear 1 forwards;
    }

@keyframes showContent {
    to {
        transform: translateY(0);
        filter: blur(0);
        opacity: 1;
    }
}

.carousel .list .item:nth-child(1) .content .title {
    animation-delay: 1.2s;
}

.carousel .list .item:nth-child(1) .content .topic {
    animation-delay: 1.4s;
}

.carousel .list .item:nth-child(1) .content .des {
    animation-delay: 1.6s;
}

.carousel .list .item:nth-child(1) .content .buttons {
    animation-delay: 1.8s;
}

.carousel.next .list .item:nth-child(1) img {
    width: 150px;
    height: 220px;
    position: absolute;
    bottom: 50px;
    left: 50%;
    border-radius: 30px;
    animation: showImage 0.5s linear 1 forwards;
}

@keyframes showImage {
    to {
        bottom: 0;
        left: 0;
        width: 100%;
        height: 100%;
        border-radius: 0;
    }
}

.carousel.next .thumbnail .item:nth-last-child(1) {
    overflow: hidden;
    animation: showThumbnail 0.5s linear 1 forwards;
}

.carousel.prev .list .item img {
    z-index: 100;
}

@keyframes showThumbnail {
    from {
        width: 0;
        opacity: 0;
    }
}

.carousel.next .thumbnail {
    animation: effectNext 0.5s linear 1 forwards;
}

@keyframes effectNext {
    from {
        transform: translateX(150px);
    }
}

.carousel .time {
    position: absolute;
    z-index: 1000;
    width: 0%;
    height: 3px;
    background-color: #f1683a;
    left: 0;
    top: 0;
}

.carousel.next .time,
.carousel.prev .time {
    animation: runningTime 3s linear 1 forwards;
}

@keyframes runningTime {
    from {
        width: 100%;
    }

    to {
        width: 0;
    }
}

.carousel.prev .list .item:nth-child(2) {
    z-index: 2;
}

    .carousel.prev .list .item:nth-child(2) img {
        animation: outFrame 0.5s linear 1 forwards;
        position: absolute;
        bottom: 0;
        left: 0;
    }

@keyframes outFrame {
    to {
        width: 150px;
        height: 220px;
        bottom: 50px;
        left: 50%;
        border-radius: 20px;
    }
}

.carousel.prev .thumbnail .item:nth-child(1) {
    overflow: hidden;
    opacity: 0;
    animation: showThumbnail 0.5s linear 1 forwards;
}

.carousel.next .arrows button,
.carousel.prev .arrows button {
    pointer-events: none;
}

.carousel.prev .list .item:nth-child(2) .content .author,
.carousel.prev .list .item:nth-child(2) .content .title,
.carousel.prev .list .item:nth-child(2) .content .topic,
.carousel.prev .list .item:nth-child(2) .content .des,
.carousel.prev .list .item:nth-child(2) .content .buttons {
    animation: contentOut 1.5s linear 1 forwards;
}

@keyframes contentOut {
    to {
        transform: translateY(-150px);
        filter: blur(20px);
        opacity: 0;
    }
}

/* Media Queries */
@media screen and (max-width: 760px) {
    .thumbnail {
        bottom: 120px;
        left: 60%;
        gap: 10px;
    }

        .thumbnail .item {
            grid-template-rows: 150px auto;
            width: 50px;
            height: 120px;
            border: 1px solid #fff;
            border-radius: 10px;
            overflow: hidden;
        }

    .carousel .list .item .content {
        left: 45%;
        padding-right: 30%;
    }

    .carousel .list .item .buttons button {
        padding: 1em 3em 1em 1em;
        font-size: 12px;
        font-weight: bold;
        color: #fff;
        border-radius: 20px;
        background-color: transparent;
    }

        .carousel .list .item .buttons button:before {
            top: 50%;
            right: 1em;
            width: 1em;
            height: 1em;
            transform-origin: 50% 50%;
            transform: translate(0, -0.5em) rotate(45deg);
            box-shadow: inset -0.2em 0.2em 0 0 #e74c3c;
            border-radius: 0 0.15em 0 0;
        }

        .carousel .list .item .buttons button:after {
            top: 50%;
            right: 1em;
            width: 1.3em;
            height: 0.2em;
            transform: translate(0, -0.1em);
            background-color: transparent;
        }

        .carousel .list .item .buttons button:hover:before {
            transform: translate(0.5em, -0.5em) rotate(45deg);
        }

        .carousel .list .item .buttons button:hover:after {
            transform: translate(0.5em, -0.1em);
            background-color: #e74c3c;
        }

    .author,
    .title {
        font-size: 12px;
    }

    .arrows {
        top: 80%;
        right: 52%;
        width: 300px;
        max-width: 30%;
        gap: 10px;
    }

        .arrows button {
            width: 40px;
            height: 40px;
            border-radius: 50%;
            border: none;
            color: #000;
            font-family: monospace;
            font-weight: bold;
            transition: background-color 0.5s, color 0.5s;
        }

            .arrows button:hover {
                background-color: #fff;
                color: #000;
            }
}




@media screen and (max-width: 678px) {
    .carousel .list .item .content {
        padding-right: 0;
    }

        .carousel .list .item .content .title {
            font-size: 30px;
        }
}
