/* Notice Board Styles */
.nb-notice-board {
    font-family: "Open Sans", Sans-serif;
    color: #fff;
    overflow: hidden;
    margin: auto;
    position: relative;
    width: 100%;
}

.nb-slide-track {
    -webkit-animation: nb-scroll 15s linear infinite;
    animation: nb-scroll 15s linear infinite;
    display: flex;
    align-items: center;
}

.nb-notice {
    width: auto;
    flex-shrink: 0;
    padding: 10px 20px;
    margin: 10px 0;
    border-left: 1px solid #C9C9C9;
}

.nb-notice-header {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 6px;
}

.nb-date {
    display: flex;
    align-items: center;
    gap: 5px;
    flex-shrink: 0;
}

.nb-day {
    width: 32px;
    height: 32px;
    background-color: #FFC300;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-weight: 700;
    font-size: 16px;
}

.nb-month {
    color: #fff;
    font-weight: 700;
    font-size: 16px;
}

.nb-year {
    color: #fff;
    font-weight: 700;
    font-size: 16px;
}

.nb-title {
    color: #fff;
    flex: 1;
}

.nb-notice-body p {
    line-height: 20px;
    font-size: 12px;
    font-weight: 600;
    margin: 0;
    color: #fff;
}

.nb-notice-body a {
    color: #FFC300;
    text-decoration: none;
    font-weight: 600;
}

.nb-notice-body a:hover {
    text-decoration: underline;
}

/* Animations - Dynamic based on notice count */
@-webkit-keyframes nb-scroll {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(calc(-320px * var(--notice-count)));
    }
}

@keyframes nb-scroll {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(calc(-320px * var(--notice-count)));
    }
}

/* Responsive Design */
@media screen and (max-width: 720px) {
    @-webkit-keyframes nb-scroll {
        0% {
            transform: translateX(0);
        }

        100% {
            transform: translateX(calc(-270px * var(--notice-count)));
        }
    }

    @keyframes nb-scroll {
        0% {
            transform: translateX(0);
        }

        100% {
            transform: translateX(calc(-270px * var(--notice-count)));
        }
    }
}

/* Legacy slider styles - keeping for backward compatibility */
@-webkit-keyframes scroll {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(calc(-250px * 3));
    }
}

@keyframes scroll {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(calc(-250px * 3));
    }
}

.slider {
    background: white;
    box-shadow: 0 10px 20px -5px rgba(0, 0, 0, 0.125);
    padding: 50px;
    height: 100px;
    overflow: hidden;
    margin: auto;
    position: relative;
    width: 100%;
}

.slider::before,
.slider::after {
    background: linear-gradient(to right, white 0%, rgba(255, 255, 255, 0) 100%);
    content: "";
    padding: 50px;
    height: 100px;
    position: absolute;
    width: 200px;
    z-index: 2;
}

.slider::after {
    right: 0;
    top: 0;
    transform: rotateZ(180deg);
}

.slider::before {
    left: 0;
    top: 0;
}

.slider .slide-track {
    -webkit-animation: scroll 40s linear infinite;
    animation: scroll 40s linear infinite;
    display: flex;
    width: calc(250px * 14);
}

.slider .slide {
    height: 100px;
    width: 250px;
}

@media screen and (max-width: 720px) {
    .slider img {
        width: auto;
    }
}