.content_wrap.main_page {
    padding-top: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* 메인 프로그램 슬라이더 */
.main_slider_wrap {
    position: relative;
    margin-bottom: 100px;
}

.main_quick_wrap {
    position: absolute;
    left: 50%;
    bottom: 0px;
    transform: translate3d(-50%, 50%, 0);
}

.quick_section {
    display: flex;
    justify-content: center;
}

#contentArea.main_page {
    padding: 0;
}

.quick_wrap_pc_background {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 6px;
    width: fit-content;
    background: #fff;
    box-shadow: 0px 6px 6px rgba(0, 0, 0, 0.2);
    border-radius: 100px;
}

.quick_wrap_pc_inner {
    display: flex;
    align-items: center;
    justify-content: center;
    justify-content: space-between;
    padding: 24px 84px;

    background: #ff4876;
    border: 2px solid #111;
    box-shadow: inset 3px 5px 0px #fff;
    border-radius: 100px;
}

.qwp_icon_wrap_pc {
    width: 72px;
    margin: 0 30px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding-top: 4px;
}
.qwp_icon_wrap_pc:hover {
    animation: buttonFloatUpDown 2s ease-in-out infinite;
}

.slogan_wrap {
    margin: 100px 0;
}

.start_line {
    width: 100px;
    height: 2px;
    background-color: #00a199;
    margin-bottom: 100px;
}

.main_section {
    align-items: center;
}

.title_wrap_main {
    display: flex;
    flex-direction: column;
    gap: 28px;
    align-items: center;
}

.title_inner {
    display: flex;
    align-items: center;
    gap: 12px;
}

@media (max-width: 640px) {
    .title_inner {
        gap: 6px;
        padding-left: 12px;
    }
}

.title_inner span {
    font-size: 42px;
    line-height: 52px;
    font-weight: 700;
}

.caption_inner {
    font-size: 20px;
    line-height: 28px;
    margin-bottom: 60px;
}

@media (min-width: 1201px) {
    #container.main_page {
        transform: translateY(-68px);
        background-color: transparent;
    }
}

@media (max-width: 1200px) {
}

@media (max-width: 950px) {
    /* 메인 프로그램 슬라이더 */

    .main_slider_wrap {
        margin-bottom: 150px;
    }
    .main_quick_wrap {
        transform: translate3d(-50%, 70%, 0);
    }
    .quick_wrap_pc_background {
        width: 90%;
    }

    .quick_wrap_pc_inner {
        width: 100%;
        justify-content: space-between;
    }
    .qwp_icon_wrap_pc {
        margin: 0 20px;
    }
}

@media (max-width: 700px) {
    .main_slider_wrap {
        margin-bottom: 160px;
    }
    .main_quick_wrap {
        width: 90%;
    }
    .quick_wrap_pc_background {
        width: 100%;
        border-radius: 52px;
        padding: 4px;
        box-shadow: rgba(0, 0, 0, 0.1) 0px 3px 3px;
    }
    .quick_wrap_pc_inner {
        flex-wrap: wrap;
        padding: 10px 10px 5px 10px;
        border-radius: 50px;
        /* border: 2px solid rgba(0, 0, 0, 0.3); */
    }
    .qwp_icon_wrap_pc {
        width: 33.3%;
        padding: 10px;
        border-right: rgba(255, 255, 255, 0.2) 1px solid;
        border-bottom: rgba(255, 255, 255, 0.2) 1px solid;
        gap: 5px;
        box-sizing: border-box;
        margin: 0px;
    }
    .qwp_icon_wrap_pc:nth-child(n + 4) {
        padding-top: 15px;
        border-bottom: none;
    }
    .qwp_icon_wrap_pc:nth-child(3n),
    .qwp_icon_wrap_pc:nth-child(6n) {
        border-right: none;
    }
    .qwp_icon_wrap_pc img {
        width: 25px;
        height: 25px;
    }
    .quick_section span {
        font-size: 15px;
    }
}

@media (max-width: 550px) {
}

/* --- 마키 컨테이너 --- */
/* 전체 슬라이드 영역을 감싸는 컨테이너 */
.marquee-container {
    width: 100%; /* 너비 100% */
    overflow: hidden; /* 중요: 컨테이너 영역을 벗어나는 내용 숨김 */
    position: relative; /* 옵션: 필요에 따라 위치 지정 */
    padding-bottom: 200px;
    box-sizing: border-box;
}

/* --- 아이템 그룹 --- */
.marquee-items {
    display: flex;
    flex-shrink: 0; /* 아이템들이 줄어들지 않도록 함 */
    align-items: center;
    gap: 20px;
    /* 무한 반복 애니메이션 적용 */
    animation: marquee-scroll 60s linear infinite;
    /* 중요: HTML에서 아이템 세트를 복제했기 때문에 이 컨테이너는 이제 원본 너비의 두 배가 됩니다. */
}

/* --- 개별 아이템 스타일 (<a> 태그) --- */
.marquee-item {
    display: block;
    width: 300px;
    height: 410px;
    border-radius: 12px;
    overflow: hidden;
    position: relative; /* 중요: 하단 오버레이/텍스트의 절대 위치 기준점 */
    flex-shrink: 0; /* 아이템들이 줄어들지 않도록 함 (개별 아이템에도 적용하는 것이 안전) */
}

/* --- 지그재그 효과 --- */
/* 모든 짝수 번째 아이템에 적용 */
.marquee-items > .marquee-item:nth-child(even) {
    transform: translateY(40px); /* 짝수 아이템을 아래로 이동 (값 조절 가능) */
}

/* --- 이미지 스타일 --- */
.marquee-item img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

/* --- 마우스 호버 시 확대 효과 --- */
.marquee-item:hover img {
    transform: scale(1.15);
}

/* --- 그라데이션 오버레이 --- */
.marquee-item::after {
    content: "";
    position: absolute; /* 부모 요소(.marquee-item) 기준 절대 위치 */
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        to top,
        rgba(0, 0, 0, 0.7) 0%,
        rgba(0, 0, 0, 0) 70%,
        transparent
    );
    border-radius: 12px;
    pointer-events: none; /* 중요: 이 요소 위로 마우스 클릭이 통과되도록 함 (링크 클릭 가능하게) */
    z-index: 1; /* 텍스트보다 아래에 위치하도록 설정 */
}

/* --- 텍스트 오버레이 컨테이너 --- */
.text-overlay {
    position: absolute;
    display: flex;
    align-items: flex-end;
    height: 60%;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 20px 14px;
    z-index: 2;
    pointer-events: none;
}

/* --- 텍스트 스타일 & 말줄임표(...) 처리 --- */
.text-overlay p {
    margin: 0;
    color: white;
    font-size: 18px;
    line-height: 26px;
    font-weight: 600;

    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    white-space: normal;
    word-wrap: break-word;
}

/* --- 무한 스크롤 애니메이션 --- */
@keyframes marquee-scroll {
    0% {
        transform: translateX(0%);
    }
    100% {
        /* 컨테이너 자체 너비의 50%만큼 왼쪽으로 이동시킵니다. */
        /* HTML에서 아이템을 복제했으므로, 이는 정확히 원본 아이템 세트 하나의 너비만큼 이동하는 것과 같습니다. */
        /* 애니메이션이 끝나면 0% 상태로 돌아가는데, 이때 보이는 화면이 0%일 때와 동일하여 끊김 없이 연결됩니다. */
        transform: translateX(-50%);
    }
}

/* 선택 사항: 마우스 호버 시 애니메이션 일시 정지 (사용자 경험 개선) */
/* .marquee-container:hover .marquee-items {
    animation-play-state: paused;
} */

.main_section_content_wrap.for_notice {
    max-width: 1478px;
    margin: 0 auto;
    padding: 0 40px;
}

.notice_slider_outer {
    position: relative;
    padding: 0 50px; /* Space for arrows */
}

.notice_slider_wrap {
    position: relative;
    overflow: hidden;
    width: 100%;
    margin: 0 auto;
}

.notice_slide_container {
    display: flex;
    transition: transform 0.5s ease;
    width: 100%;
}

.notice_slide_item {
    flex: 0 0 calc(33.333% - 20px);
    margin: 0 10px;
    padding: 25px;
    border: 1px solid #e0e0e0;
    border-radius: 5px;
    min-height: 200px;
    display: flex;
    flex-direction: column;
}

.nsi_title {
    font-weight: bold;
    font-size: 20px;
    line-height: 28px;
    min-height: 56px;
    margin-bottom: 24px;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.nsi_caption {
    color: #666;
    font-size: 16px;
    line-height: 24px;
    min-height: 72px;
    flex-grow: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
}

.nsi_date {
    color: #999;
    font-size: 16px;
    line-height: 24px;
    margin-top: 20px;
}

@media (max-width:764px) {
    .nsi_title {
        font-size: 16px;
        line-height: 24px;
        min-height: 48px;
        margin-bottom: 16px;
    }
    .nsi_caption {
        -webkit-line-clamp: 4;
        line-clamp: 4;
        font-size: 14px;
        line-height: 20px;
        min-height: 80px;
    }
    .nsi_date {
        font-size: 14px;
        line-height: 20px;
        margin-top: 24px;
    }
}
.notice_nav {
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    transform: translateY(-50%);
    display: flex;
    justify-content: space-between;
    width: 100%;
    pointer-events: none;
    z-index: 10;
}

.notice_prev,
.notice_next {
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.8);
    border: 1px solid #ddd;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    pointer-events: auto;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.notice_indicator_container {
    margin-top: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 4px;
    background-color: #ddd;
    width: 100%;
    margin-left: auto;
    margin-right: auto;
    position: relative;
    border-radius: 2px;
    overflow: hidden;
}

.notice_indicator_progress {
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    background-color: #5baf96;
    transition: width 0.5s ease;
    border-radius: 2px;
}

/* Media query for screens under 1200px */
@media (max-width: 1200px) {
    .notice_slide_item {
        flex: 0 0 calc(50% - 20px);
    }
}

/* Media query for screens under 764px (mobile) */
@media (max-width: 764px) {
    .notice_slider_outer {
        padding: 0; /* Remove arrow space on mobile */
    }

    .notice_slide_item {
        flex: 0 0 calc(85% - 20px);
    }

    .notice_nav {
        display: none; /* Hide arrows on mobile */
    }

    .notice_slider_wrap {
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch; /* For smooth scrolling on iOS */
        scroll-behavior: smooth;
        padding: 10px 0;
    }

    .notice_slide_container {
        width: auto;
        transition: none;
    }

    .notice_slide_item {
        scroll-snap-align: center;
    }

    /* Show part of the next slide */
    .notice_slide_container {
        padding-right: 15%; /* Show approximately 15% of the next slide */
    }
}

.countdown-container {
    display: flex;
    justify-content: center;
    gap: 2vw;
    text-align: center;
}

.countdown-item {
    position: relative;
    width: 20vw;
    max-width: 120px;
    height: auto;
}

.circle-container {
    position: relative;
    width: 100%;
    padding-top: 100%;
    margin: 0 auto;
}

.circle-container svg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    transform: rotate(-90deg);
}

circle {
    fill: none;
    stroke-width: 4;
}

.circle-bg {
    stroke: #e0e0e0; /* 회색 배경 원 */
    fill: #fff;
    /* 배경 원은 진행률에 따라 변하지 않으므로 strokeDashoffset을 고정 */
}

.circle-progress-days {
    stroke: #00a199;
    transition: stroke-dashoffset 0.3s linear;
}

.circle-progress-hours {
    stroke: #f2d56f;
    transition: stroke-dashoffset 0.3s linear;
}

.circle-progress-minutes {
    stroke: #5a9dfa;
    transition: stroke-dashoffset 0.3s linear;
}

.circle-progress-seconds {
    stroke: #fa5ab2;
    transition: stroke-dashoffset 0.1s linear;
}

.countdown-value {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: clamp(1.5rem, 4vw, 40px);
    font-weight: bold;
    color: #333;
}

.countdown-label {
    margin-top: 1vw;
    font-size: clamp(0.8rem, 2vw, 16px);
    color: #666;
}

@media (max-width: 600px) {
    .countdown-item {
        width: 25vw;
    }
    .countdown-container {
        gap: 1vw;
    }
}
