.news-slider-wrapper,
.activity-slider-wrapper {
    position: relative;
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
    overflow: hidden;
}

.news-slider-container,
.activity-slider-container {
    overflow: hidden;
    width: 100%;
}

.news-slider,
.activity-slider {
    display: flex;
    transition: transform 0.5s ease-in-out;
}

.news-card {
    background-color: #fff;
    border: 1px solid #eee;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
    display: flex;
    flex-direction: column;
    cursor: pointer;
    flex: 0 0 auto;
    width: 80%;
    max-width: 300px;
    aspect-ratio: 2/2.5;
    margin: 10px;
    transition: all 0.3s ease;
}

.news-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

.news-card img {
    width: 100%;
    aspect-ratio: 1.5/1;
    object-fit: cover;
}

.news-card-content {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 16px;
    flex-grow: 1;
}

.news-card-content span {
    font-family: "Noto Sans KR", sans-serif;
    text-align: right;
    font-weight: 300;
    font-size: 13px;
    color: #aaa;
}

.news-card h3 {
    font-family: "Noto Sans KR", sans-serif;
    font-size: 0.95rem;
    padding: 0;
    text-align: left;
    font-weight: 600;
    color: #333;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.card.first-card {
    transform: scale(1.02);
    z-index: 1;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.prev-btn,
.next-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.9);
    color: #c9171e;
    border: 1px solid #eee;
    border-radius: 50%;
    font-size: 20px;
    cursor: pointer;
    z-index: 2;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: all 0.2s ease;
}

.prev-btn:hover,
.next-btn:hover {
    background: #c9171e;
    color: #fff;
    border-color: #c9171e;
    box-shadow: 0 4px 12px rgba(201, 23, 30, 0.2);
}

.prev-btn {
    left: 8px;
}

.next-btn {
    right: 8px;
}

@media (max-width: 768px) {
    .news-card {
        width: 70%;
        max-width: none;
    }

    .news-card h3 {
        font-size: 3.5vw;
    }

    .news-card-content {
        padding: 12px;
    }

    .news-card-content span {
        font-size: 11px;
    }

    .prev-btn,
    .next-btn {
        width: 34px;
        height: 34px;
        font-size: 16px;
    }
}
