@charset "utf-8";

/* Main Slider & Sub Hero Base */
.main-hero,
.sub-hero {
    position: relative;
    width: 100%;
    overflow: hidden;
    /* 만약 개별 배경이 없을 경우를 대비한 기본 배경색 */
    background-color: #f8f9fa;
}

/* 첫 화면은 화면을 꽉 채운다. 800px 로 잘라 두면 큰 모니터에서 아래 섹션이 걸쳐 보여
   첫인상이 반토막 난다 */
.main-hero {
    height: 100vh;
    min-height: 680px;
    max-height: 1000px;
}

/* 실적 띠 — 슬라이드 위에 얹는다 */
.hero-stats {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 6;
    display: flex;
    align-items: center;
    gap: 48px;
    padding: 26px 60px;
    background: linear-gradient(180deg, transparent, rgba(6, 20, 32, .78));
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
}

.hero-stat {
    display: flex;
    align-items: baseline;
    gap: 8px;
    text-decoration: none;
    transition: transform .2s;
}

.hero-stat:hover { transform: translateY(-2px); }

.hero-stat strong {
    font-size: 2.4rem;
    font-weight: 900;
    line-height: 1;
    letter-spacing: -.04em;
    color: #fff;
    font-variant-numeric: tabular-nums;
}

.hero-stat span {
    font-size: .95rem;
    font-weight: 700;
    color: rgba(255, 255, 255, .7);
}

/* 스크롤 유도 — 실적 띠 바로 위 가운데 */
.hero-scroll {
    position: absolute;
    left: 50%;
    bottom: 130px;
    z-index: 7;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    text-decoration: none;
}

.hero-scroll-text {
    font-size: .7rem;
    font-weight: 800;
    letter-spacing: .3em;
    color: rgba(255, 255, 255, .75);
}

/* 선이 위에서 아래로 흘러내린다 */
.hero-scroll-line {
    position: relative;
    width: 1px;
    height: 46px;
    background: rgba(255, 255, 255, .22);
    overflow: hidden;
}

.hero-scroll-line::after {
    content: '';
    position: absolute;
    left: 0;
    top: -46px;
    width: 1px;
    height: 46px;
    background: linear-gradient(180deg, transparent, #fff);
    animation: heroScrollFlow 1.8s ease-in-out infinite;
}

@keyframes heroScrollFlow {
    0% { transform: translateY(0); }
    100% { transform: translateY(92px); }
}

/* 합격·수상 기록이 한 줄씩 아래에서 올라왔다 사라진다.
   한 자리에 겹쳐 두고 차례가 온 줄만 보인다 */
.hero-feed {
    position: relative;
    margin-left: auto;
    width: 380px;
    height: 46px;
}

.hero-feed-item {
    position: absolute;
    right: 0;
    bottom: 0;
    display: inline-flex;
    align-items: center;
    gap: 9px;
    padding: 12px 20px;
    border: 1px solid rgba(255, 255, 255, .18);
    border-radius: 999px;
    background: rgba(8, 22, 34, .55);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    white-space: nowrap;
    opacity: 0;
    transform: translateY(26px);
}

.hero-feed-item.is-on {
    animation: heroFeedPop 3.4s cubic-bezier(.2, .8, .3, 1) forwards;
}

@keyframes heroFeedPop {
    0% { opacity: 0; transform: translateY(26px); }
    12% { opacity: 1; transform: translateY(0); }
    82% { opacity: 1; transform: translateY(0); }
    100% { opacity: 0; transform: translateY(-22px); }
}

.hero-feed-tag {
    padding: 3px 9px;
    border-radius: 999px;
    background: var(--point-mint);
    font-size: .7rem;
    font-weight: 800;
    color: #05221f;
}

.hero-feed-tag.is-award { background: var(--point-yellow); color: #3a2b00; }

.hero-feed-item strong {
    font-size: .95rem;
    font-weight: 800;
    color: #fff;
}

.hero-feed-item i {
    font-style: normal;
    font-size: .84rem;
    color: rgba(255, 255, 255, .6);
}

.hero-feed-item em {
    font-style: normal;
    font-size: .8rem;
    color: rgba(255, 255, 255, .42);
}

.hero-stat-note {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-left: auto;
    padding: 12px 22px;
    border: 1px solid rgba(255, 255, 255, .28);
    border-radius: 999px;
    font-size: .9rem;
    font-weight: 700;
    color: #fff;
    text-decoration: none;
    transition: border-color .2s, background .2s, color .2s;
}

.hero-stat-note::after {
    content: '';
    width: 6px;
    height: 6px;
    border-top: 2px solid var(--point-mint);
    border-right: 2px solid var(--point-mint);
    transform: rotate(45deg);
    transition: border-color .2s;
}

.hero-stat-note:hover {
    border-color: var(--point-mint);
    background: var(--point-mint);
    color: #05221f;
}

.hero-stat-note:hover::after { border-color: #05221f; }

@media (max-width: 900px) {
    .hero-stats {
        gap: 14px 22px;
        padding: 16px 20px 18px;
        flex-wrap: wrap;
    }

    .hero-stat strong { font-size: 1.6rem; }
    .hero-stat span { font-size: .82rem; }
    .hero-stat-note { display: none; }

    /* 실적 띠가 두 줄이 되어 아래쪽에는 자리가 없다.
       슬라이드 번호는 위로 올린다 */
    .slider-controls {
        top: 96px;
        bottom: auto;
        left: 20px;
    }

    /* 알림 줄은 폭을 꽉 채워 숫자 아래로 내려온다 */
    .hero-feed {
        width: 100%;
        margin-left: 0;
        height: 42px;
    }

    .hero-feed-item {
        right: auto;
        left: 0;
        padding: 10px 16px;
    }

    .hero-feed-item strong { font-size: .88rem; }
    .hero-feed-item i { font-size: .78rem; }
    .hero-feed-item em { display: none; }

    /* 스크롤 유도도 함께 올린다 */
    .hero-scroll { bottom: 170px; }
}

.sub-hero {
    height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding-top: 80px; /* Offset for header */
}

.sub-hero-content {
    position: relative;
    z-index: 3;
    text-align: center;
    color: #ffffff;
}

.sub-title {
    font-size: 42px;
    font-weight: 700;
    text-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
}

/* Swiper Styling */
.main-slider {
    width: 100%;
    height: 100%;
    z-index: 2;
}

.swiper-slide {
    position: relative;
    overflow: hidden;
}

/* 배경 이미지 확대/축소 모션용 레이어 */
.slide-bg {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: 0;
    /* 전환 전에는 약간 커진 상태 (툭 튀어나오는 느낌 준비) */
    transform: scale(1.1);
    transition: transform 1.5s cubic-bezier(0.2, 0.8, 0.2, 1);
}

/* 어두운 배경 오버레이 (가독성 향상) */
.swiper-slide::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0, 0, 0, 0.3); /* 가독성을 위해 어둡게 상향 */
    z-index: 1;
}

/* 슬라이드가 활성화되는 순간 스케일이 정사이즈로 돌아오며 팝 효과 연출 */
.swiper-slide-active .slide-bg {
    transform: scale(1);
}

.slide-inner {
    display: flex;
    align-items: center;
    justify-content: flex-start; /* 텍스트 좌측 정렬 고정 */
    width: 100%;
    height: 100%;
    margin: 0 auto;
    padding: 0 60px 0 200px; /* 좌측에서 200px 띄움 */
    padding-top: 80px; /* offset for header */
    position: relative;
    z-index: 2; /* 오버레이 위로 */
}

.slide-content {
    color: #ffffff;
    max-width: 900px; /* 텍스트 가로폭을 넓혀 2줄로 유지 */
    z-index: 3;
}

.slide-title {
    font-size: 60px; /* 폰트 사이즈 대폭 상향 */
    font-weight: 800;
    line-height: 1.3;
    margin-bottom: 24px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 1s cubic-bezier(0.2, 0.8, 0.2, 1) 0.3s, transform 1s cubic-bezier(0.2, 0.8, 0.2, 1) 0.3s;
}

.slide-text {
    font-size: 18px;
    font-weight: 400;
    opacity: 0.9;
    margin-bottom: 40px;
    text-shadow: 0 1px 5px rgba(0, 0, 0, 0.5);
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 1s cubic-bezier(0.2, 0.8, 0.2, 1) 0.5s, transform 1s cubic-bezier(0.2, 0.8, 0.2, 1) 0.5s;
}

.btn-slide-link {
    display: inline-block;
    padding: 16px 40px;
    border: 1px solid rgba(255,255,255,0.6);
    background: rgba(0,0,0,0.2);
    color: #ffffff;
    font-weight: 600;
    border-radius: 50px;
    backdrop-filter: blur(5px);
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 1s cubic-bezier(0.2, 0.8, 0.2, 1) 0.7s, transform 1s cubic-bezier(0.2, 0.8, 0.2, 1) 0.7s, background-color 0.3s, color 0.3s;
}

.btn-slide-link:hover {
    background-color: #ffffff;
    color: var(--point-blue);
}

.slide-image-wrap,
.slide-img-bg {
    display: none; /* 배경 방식으로 통합하여 미사용 */
}

/* Active Slide Animations (Stagger Fade-up) */
.swiper-slide-active .slide-title,
.swiper-slide-active .slide-text,
.swiper-slide-active .btn-slide-link {
    opacity: 1;
    transform: translateY(0);
}

.swiper-slide-active .slide-image-wrap {
    opacity: 1;
    transform: translateX(0);
}

/* Custom Fractional Pagination & SVG Navigation */
/* 하단에 실적 띠가 깔려 있어 60px 로 두면 숫자와 겹친다 */
.slider-controls {
    position: absolute;
    bottom: 140px;
    left: 200px; /* 텍스트 시작선과 정렬 */
    z-index: 10;
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 16px;
    color: #fff;
    font-size: 18px;
    font-weight: 600;
    letter-spacing: 2px;
}

/* Swiper 기본 absolute 속성 강제 해제하여 1열 정렬 맞춤 */
.custom-prev,
.custom-next,
.custom-fraction {
    position: static !important;
    margin: 0 !important;
    width: auto !important;
    height: auto !important;
    transform: none !important;
    left: auto !important;
    right: auto !important;
    bottom: auto !important;
    top: auto !important;
}

.custom-prev,
.custom-next {
    background: none;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0.7;
    transition: opacity 0.3s, transform 0.3s;
    padding: 5px;
}

/* SVG 화살표를 흰색으로 굵게 처리 */
.custom-prev svg,
.custom-next svg {
    width: 28px;
    height: 28px;
    stroke: #ffffff;
    stroke-width: 3px;
}

.custom-prev:hover,
.custom-next:hover {
    opacity: 1;
    transform: scale(1.15) !important;
}

.custom-fraction .separator {
    margin: 0 6px;
    opacity: 0.5;
}

/* 스와이퍼 기본 화살표 폰트 아이콘 완전 제거 */
.custom-prev::after,
.custom-next::after,
.swiper-button-next::after,
.swiper-button-prev::after {
    display: none !important;
}

@media (max-width: 1024px) {
    .main-hero {
        height: 600px; /* 모바일 슬라이더 전체 높이 고정 */
    }

    .slide-bg {
        transform: scale(1.1); /* 모바일에서도 확대 효과 유지 */
        background-position: center;
    }
    
    .slide-inner {
        flex-direction: column; 
        justify-content: center;
        text-align: left; /* 좌측 정렬 */
        padding: 0 20px;
        height: 100%;
    }
    
    /* 900px 이하 규칙이 뒤에 오지 않으므로 여기서도 위로 올려 둔다 */
    .slider-controls {
        left: 20px; /* 좌측 정렬 */
        transform: none;
        top: 96px;
        bottom: auto;
    }
    
    .slide-title {
        font-size: 32px; /* 모바일 가독성 향상 */
        word-break: keep-all;
    }
    
    .slide-text {
        font-size: 16px;
        margin-bottom: 30px;
        word-break: keep-all;
    }
    
    .slide-image-wrap {
        max-width: 100%;
        width: 100%;
        height: 250px;
        margin-top: 30px;
        justify-content: flex-start; /* 좌측 정렬 */
    }
    
    .slide-img-bg {
        width: 100%;
        height: 100%;
        background-size: cover;
        background-position: center;
        max-height: 250px;
    }
}
