.hero-wrapper {
    display: flex;
    gap: 10px;
    width: 100%;
}

/* Carousel */
.hero-left {
    flex: 3;
}

.carItem {
    height: 350px;
}

.hero-img {
    /*height: 350px;
    object-fit: cover;*/
    width: 100%;
    height: 100%;
    object-fit: fill; /*cover*/
}

/* Notice Board */
.hero-right {
    flex: 1;
    min-width: 260px;
}

.notice-board {
    height: 350px;
    overflow: hidden;
    border: 1px solid #ddd;
    background: #fff;
    padding: 10px;
    position: relative;
}

.notice-head {
    margin: 0;
    padding: 5px;
    background: #a7b5db;
    border-bottom: 1px solid #ddd;
    font-weight: 600;
    text-align: center;
}

.notice-body {
    height: calc(100% - 45px); /* heading height */
    overflow: hidden;
    position: relative;
}

.notice-list {
    list-style: none;
    padding: 0;
    margin: 0;
    animation: scrollUp 15s linear infinite;
}

.notice-list li {
    padding: 12px;
    border-bottom: 1px solid #eee;
}

.notice-list a {
    text-decoration: none;
    color: #333;
    display: block;
}

center {
    display: inline;
    margin-left: 5px;
}


/* Hover pause (desktop) */
.notice-board:hover .notice-list {
    animation-play-state: paused;
}

@keyframes scrollUp {
    from { transform: translateY(100%); }
    to { transform: translateY(-100%); }
}

/* Mobile Responsive */
@media (max-width: 992px) {
    .hero-wrapper {
        flex-direction: column;
    }

    .hero-img,
    .notice-board {
        height: 250px;
    }
    .carItem {
        height: 250px;
    }
}

@media (max-width: 768px) {
    .carItem {
        height: 250px;
    }
}