/* Notice Board */
.notice-board {
    position: relative;
    width: 100%;
    color: var(--font);
    padding: var(--space-xl) calc(var(--space-lg) * 2) 0 calc(var(--space-lg) * 2);
    background-image: linear-gradient(to top, var(--primary), var(--background));
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-xl);
}

.notice-card {
    max-width: 400px;
    width: 100%;
    background: var(--primary);
    color: var(--font);
    border: solid 1px var(--muted);
    padding: var(--space-lg);
    border-radius: 8px;
    font-family: Inter, system-ui, sans-serif;
}

.notice-title {
    color: var(--font);
    margin: 0 0 6px 0;
    font-weight: 700;
}

.notice-date {
    color: var(--muted-font);
    margin-bottom: 8px;
    display: block;
}

.notice-desc {
    margin: 0;
    color: var(--muted-font);
    line-height: 1.4;
}

.notice-card-container {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    overflow: hidden;
    /* hide scroll */
    max-height: 600px;
    position: relative;
    background: transparent;
}

/* Wrap cards in a moving container */
.notice-card-scroll {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-xl);
    animation: scroll-up 20s linear infinite;
}

.notice-board::after {
    content: '';
    width: 100%;
    height: 30%;
    position: absolute;
    bottom: -1px;
    left: 0;
    background-image: linear-gradient(to top, var(--primary), transparent);
    z-index: 9999;
}

@keyframes scroll-up {
    0% {
        transform: translateY(0);
    }

    100% {
        transform: translateY(-50%);
    }
}

/* Desktop View Optimization */
@media screen and (min-width: 1024px) {
    .notice-board::after {
        content: '';
        width: 100%;
        height: 30%;
        position: absolute;
        bottom: 0;
        left: 0;
        z-index: 2;
    }

    .notice-card {
        box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
    }
}