h5 {
    margin: 0;
}

.category-name {
    margin: auto 0;
}

.event-section {
    margin-top: 1em;
    margin-bottom: 50px;
}

.event-slider {
    overflow: visible !important; /* 화살표가 잘리지 않도록 */
    position: relative;
    padding: 10px 0;
}

.event-slider a {
    color: inherit; /* 부모 요소의 글씨 색상 상속 */
    text-decoration: none; /* 밑줄 제거 */
}

.event-card {
    width: auto;
    height: auto;
    overflow: hidden;
    border-radius: 5px;
    background-color: white;
    border: 1px solid #ddd;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.event-card:hover {
    transform: translateY(-5px);
}

.event-card img, .event-card video {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    object-position: center;
    display: block; /* 인라인 요소 특성 제거 */
}

.event-card-body {
    padding: 10px;
}

.event-card-title {
    font-weight: bold;
    white-space: nowrap; /* 줄 바꿈 방지 */
    overflow: hidden; /* 넘치는 텍스트 숨김 */
    text-overflow: ellipsis; /* 말줄임표 (...) 표시 */
}

.slick-slide {
    padding: 0.5em;
}

.slick-prev i, .slick-next i {
    font-size: 50px; /* 아이콘 크기 */
    color: #858484; /* 기본 색상 */
    background-color: rgba(255, 255, 255, 0.8); /* 배경색 */
    border-radius: 50%; /* 둥근 화살표 */
    top: 50%; /* 슬라이더의 높이를 기준으로 수직 중앙 */
    transform: translateY(-50%); /* 실제 위치를 중앙으로 보정 */
}

.slick-prev {
    left: -40px; /* 왼쪽 화살표 위치 */
}

.slick-next {
    right: -40px; /* 오른쪽 화살표 위치 */
}

.slick-prev:hover i, .slick-next:hover i {
    color: #f00 !important;
    cursor: pointer;
    transition: all 0.3s ease; /* 부드러운 전환 효과 */
}


/* 게시글 목록 스타일 */
.post-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 20px;
}

.post-card {
    display: flex;
    align-items: center;
    padding: 10px;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 5px;
    text-decoration: none; /* 기본 밑줄 제거 */
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.post-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.1);
    text-decoration: none; /* 기본 밑줄 제거 */
}

.post-card > img, .post-card > video {
    width: 120px;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    border-radius: 5px;
    margin-right: 20px;
    display: block; /* 인라인 요소 특성 제거 */
}

.post-card-body {
    flex: 1;
    white-space: nowrap; /* 줄 바꿈 방지 */
    overflow: hidden; /* 넘치는 텍스트 숨김 */
    text-overflow: ellipsis; /* 말줄임표 (...) 표시 */
}

.post-card-title-container {
    font-size: 18px;
    font-weight: bold;
    margin: 5px 0 5px 0;
    white-space: nowrap; /* 줄 바꿈 방지 */
    overflow: hidden; /* 넘치는 텍스트 숨김 */
    text-overflow: ellipsis; /* 말줄임표 (...) 표시 */
}

.post-card-category {
    color: black;
}

.post-card-title {
    color: #007bff;
}

.post-card-meta {
    display: flex;
    align-items: center;
}

.left, .right {
    color: black;
    display: flex;
    align-items: center;
    gap: 10px;
}

.post-card-meta img {
    width: 24px;
    aspect-ratio: 1 /1;
    margin-right: 5px;
}

.post-card-meta span {
    font-size: 14px;
    font-weight: 600;
    color: #333;
}

.post-card-stats {
    display: flex;
    font-size: 14px;
    color: black;
    gap: 10px;
}

.post-card-date {
    color: black;
}

/* 제목과 상태를 한 줄에 표시 */
.post-card-title-status {
    display: flex;
}

/* 상태에 따라 다른 스타일 적용 */
.post-card-status {
    font-weight: bold;
    padding: 0 10px;
    margin-left: 10px;
    border-radius: 5px;
    display: flex;
    align-items: center; /* 세로 중앙 정렬 */
}

/* 진행 예정 스타일 */
.status-scheduled {
    color: #ffc400; /* 진행 예정 스타일 */
    border: 2px solid #ffc400;
    background-color: rgba(255, 196, 0, 0.1); /* 자연스러운 배경색 (오렌지색의 투명도) */
}

/* 진행중 스타일 */
.status-ongoing {
    color: #4caf50; /* 진행중 스타일 */
    border: 2px solid #4caf50;
    background-color: rgba(76, 175, 80, 0.1); /* 자연스러운 배경색 (초록색의 투명도) */
}

/* 마감 스타일 */
.status-closed {
    color: gray; /* 마감 스타일 */
    border: 2px solid gray;
    background-color: rgba(169, 169, 169, 0.1); /* 자연스러운 배경색 (회색의 투명도) */
}

.remaining-day {
    color: #ff4444;
    background-color: #fff0f0;
    border: 2px solid #ffcccc;
    margin-left: 10px;
    padding: 5px 10px;
    border-radius: 5px;
}

.end-type {
    color: #007bff; /* 파란색 텍스트 */
    background-color: rgba(0, 123, 255, 0.1); /* 파란색 배경 (투명도 추가) */
    border: 2px solid #007bff; /* 파란색 테두리 */
    font-weight: bold;
    margin-left: 10px;
    padding: 5px 10px;
    border-radius: 5px;
}

.event-status-filter {
    display: flex;
    gap: 15px;
    font-size: 18px;
    font-weight: 500;
}

.event-status-filter a {
    text-decoration: none;
    color: #555;
    padding-bottom: 5px;
    transition: all 0.2s ease-in-out;
}

.event-status-filter a:hover {
    color: #000;
}

.event-status-filter a.active {
    font-weight: bold;
    color: #007bff; /* 강조 색상 */
    border-bottom: 3px solid #007bff;
}

@media screen and (max-width: 768px) {

    .post-list {
        gap: 5px;
    }

    .post-card {
        padding: 5px;
    }

    .post-card-title-container span {
        font-size: 14px !important;
    }

    .post-card span, .post-card div {
        font-size: 12px;
    }

    .post-card > img, .post-card > video {
        width: 90px;
        margin-right: 5px;
        display: block; /* 인라인 요소 특성 제거 */
    }

    .post-card-meta img {
        width: 16px;
        aspect-ratio: 1 /1;
    }

    .status-scheduled,
    .status-ongoing,
    .status-closed,
    .remaining-day,
    .end-type {
        border-width: 1px;
    }

    .post-card-status, .remaining-day, .end-type {
        margin-left: 5px;
    }

    .category-name {
        margin: 5px 0;
    }

}