@charset "UTF-8";

/* ===== 상단 경로 표시 영역 ===== */
section.index {
    width: 100%;
    margin-top: 100px;        /* 헤더 높이 */
    border-top: 1px solid #e5e7eb;
    border-bottom: 1px solid #e5e7eb;
    background: #fff;
    position: relative;
    z-index: 20;              /* 🔥 wrap보다 높게 */
}

/* 경로 텍스트 래퍼 */
section.index .tabs {
    max-width: 1200px;
    margin: 0 auto;
    padding: 14px 0;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    color: #9ca3af;
}

/* 기본 경로 텍스트 */
section.index .tabs p {
    margin: 0;
    display: flex;
    align-items: center;
    gap: 6px;
}

/* > 기호 */
section.index .tabs span {
    margin: 0 4px;
    color: #d1d5db;
}

/* 현재 선택된 페이지 */
section.index .tabs .selection {
    color: #111827;
    font-weight: 600;
}

/* ===== 페이지 타이틀 영역 ===== */
.page-title {
    text-align: center;
    margin-top: 60px;
    margin-bottom: 40px;
}

.page-title h1 {
    font-size: 56px;
    font-weight: 600;
    color: #055C4D;
    letter-spacing: -1px;
}

/* 이벤트 페이지 레이아웃 */
#event{
    width: 100%;
    /* height: 200vh; */
    /* padding: 100px 0px; */
    box-sizing: border-box;
}

#event .m-tit{
    text-align: center;
    font-size: 30px;
    font-weight: 500;
    margin-bottom: 50px;
}

#event .event-wrap{
    width: 1300px;
    margin: 0 auto;
}

/* 카테고리 메뉴 */
#event .event-wrap .event-menu{
    display: flex;
    margin-bottom: 20px;
}

#event .event-wrap .event-menu li{
    margin-right: 15px;
    color: #8a8a8a;
    cursor: pointer;
}

#event .event-wrap .event-menu li.active{
    color: #1a1a1a;
    font-weight: 500;
    border-bottom: 2px solid #1a1a1a;
}

/* 이벤트 리스트 */
#event .event-wrap .event-list{
    display: flex;
    flex-wrap: wrap;
    gap: 30px; /* 사이 간격 */
}

#event .event-wrap .event-list li{
    width: calc(33.333% - 20px); /* 3열 배치 */
    margin-bottom: 30px;
    display: none; /* 기본 숨김 */
}

#event .event-wrap .event-list li.active{
    display: block; /* 활성화된 것만 보임 */
}

#event .event-wrap .event-list li a{
    display: block;
    width: 100%;
}

/* 이미지 박스 */
#event .event-wrap .event-list li .img-box img{
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 0.3s;
}

#event .event-wrap .event-list li:hover .img-box img{
    transform: scale(1.1);
}

#event .event-wrap .event-list li .list-bot{
    margin-top: 15px;
    padding: 0 10px;
}

#event .event-wrap .event-list li .list-bot h3{
    font-size: 18px;
    font-weight: 500;
    margin-bottom: 8px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

#event .event-wrap .event-list li .list-bot p{
    font-size: 14px;
    color: #666;
}

/* 상태 뱃지 및 오버레이 */
#event .event-wrap .event-list li.list-end .img-box::after{
    content: "종료된 이벤트입니다.";
    display: block;
    width: 100%;
    height: 100%;
    background-color: black;
    opacity: 0.7;
    color: white;
    position: absolute;
    top:0;
    left:0;
    z-index: 10;
    border-radius: 15px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 24px;
}

#event .event-wrap .event-list li .img-box{
    width: 100%;
    height: 250px;
    border-radius: 15px 15px 0 0;
    overflow: hidden;
    position: relative;
}

#event .event-wrap .event-list li .img-box .state-ing,
#event .event-wrap .event-list li .img-box .state-end{
    position: absolute;
    top: 20px;
    right: 20px;
    border-radius: 20px;
    padding: 5px 10px;
    z-index: 20;
    animation: pulse 1.5s infinite;
}

/* 진행중: 노란색/검정 */
#event .event-wrap .event-list li .img-box .state-ing {
    background-color: #FFC107;
    color: #1a1a1a;
    font-weight: bold;
}

/* 종료: 회색/흰색 */
#event .event-wrap .event-list li .img-box .state-end {
    background-color: #666;
    color: white;
    font-weight: bold;
    animation: none; /* 종료는 깜빡임 없음 */
}

@keyframes pulse {
    0%   { transform: scale(1); }
    50%  { transform: scale(1.05); }
    100% { transform: scale(1); }
}

/* =========================================
   [추가됨] 이벤트 상세 페이지 스타일
   ========================================= */
.event-detail-wrap {
    width: 1200px;
    margin: 50px auto 100px;
    border: 1px solid #ddd;
    border-radius: 20px;
    padding: 50px;
    box-sizing: border-box;
    background-color: #fff;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}

.event-detail-head {
    border-bottom: 2px solid #055C4D;
    padding-bottom: 20px;
    margin-bottom: 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.event-detail-head h2 {
    font-size: 32px;
    font-weight: 600;
    color: #1a1a1a;
}

.badge-wrap span {
    font-size: 16px;
    font-weight: 500;
}

.badge-ing-detail {
    color: #FFC107;
    border: 1px solid #FFC107;
    padding: 5px 15px;
    border-radius: 30px;
    background-color: #fff;
}

.badge-end-detail {
    color: #666;
    border: 1px solid #666;
    padding: 5px 15px;
    border-radius: 30px;
    background-color: #fff;
}

.event-detail-info {
    text-align: right;
    color: #666;
    margin-bottom: 40px;
    font-size: 15px;
}

.event-detail-content {
    text-align: center;
    margin-bottom: 60px;
    min-height: 300px;
}

.event-detail-content img {
    max-width: 100%;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.event-btn-group {
    display: flex;
    justify-content: center;
    gap: 20px;
}

.event-btn-group a {
    display: block;
    width: 250px;
    height: 60px;
    line-height: 60px;
    text-align: center;
    border-radius: 50px;
    font-size: 18px;
    font-weight: 500;
    transition: all 0.3s;
}

.btn-link {
    background-color: #055C4D;
    color: white;
    border: 1px solid #055C4D;
}
.btn-link:hover {
    background-color: #04463a;
    box-shadow: 0 5px 15px rgba(5, 92, 77, 0.3);
}

.btn-list {
    background-color: white;
    color: #666;
    border: 1px solid #ddd;
}
.btn-list:hover {
    background-color: #f9f9f9;
    color: #1a1a1a;
}