/* =========================================
   Hero Section - Modern Slide
========================================= */
.hero {
    position: relative;
    width: 100%;
    height: 100vh;
    max-height: 800px;
    overflow: hidden;
}

/* --- Slides --- */
.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    opacity: 0;
    transition: opacity 1.2s ease-in-out;
}

.hero-slide.active {
    opacity: 1;
}

/* Slide Images */
.hero-slide:nth-child(1) { background-image: url('/img/main_slide/m1.jpg'); }
.hero-slide:nth-child(2) { background-image: url('/img/main_slide/m2.png'); }
.hero-slide:nth-child(3) { background-image: url('/img/main_slide/m3.png'); }

/* Light overlay */
.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* --- Content --- */
.hero-inner {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    height: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 40px;
    box-sizing: border-box;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s 0.3s ease-out, transform 0.6s 0.3s ease-out;
}

.hero-slide.active .hero-inner {
    opacity: 1;
    transform: translateY(0);
}

/* Badge */
.hero-badge {
    display: inline-block;
    padding: 8px 20px;
    border-radius: 30px;
    background: rgba(1, 65, 154, 0.1);
    border: 1px solid rgba(1, 65, 154, 0.2);
    font-size: 14px;
    font-weight: 600;
    color: #01419a;
    letter-spacing: 0.3px;
    margin-bottom: 20px;
}

/* Title */
.hero-title {
    font-size: 52px;
    font-weight: 700;
    color: #111;
    line-height: 1.3;
    letter-spacing: -2px;
    margin: 0 0 20px 0;
}

.hero-title strong {
    color: #01419a;
}

/* Description */
.hero-desc {
    font-size: 18px;
    line-height: 1.7;
    color: #171717;
    margin: 0 0 20px 0;
}

/* Tags */
.hero-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 30px;
}

.hero-tags span {
    padding: 5px 14px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.8);
    border: 1px solid rgba(1, 65, 154, 0.2);
    font-size: 13px;
    font-weight: 500;
    color: #01419a;
}

/* CTA Button */
.hero-cta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 16px 36px;
    background: #01419a;
    color: #fff;
    font-size: 16px;
    font-weight: 700;
    border-radius: 6px;
    text-decoration: none;
    transition: 0.3s;
}

.hero-cta:hover {
    background: #002e70;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(1, 65, 154, 0.25);
}

.hero-cta i {
    font-size: 18px;
    transition: transform 0.3s;
}

.hero-cta:hover i {
    transform: translateX(4px);
}

/* --- Dot Indicators --- */
.hero-dots {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    display: flex;
    gap: 10px;
}

.hero-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 2px solid rgba(1, 65, 154, 0.3);
    background: transparent;
    cursor: pointer;
    transition: 0.3s;
    padding: 0;
}

.hero-dot.active {
    background: #01419a;
    border-color: #01419a;
    transform: scale(1.2);
}

.hero-dot:hover {
    border-color: #01419a;
}


/* =========================================
   Responsive
========================================= */
@media (max-width: 1024px) {
    .hero { max-height: 650px; }
    .hero-inner { padding: 0 30px; }
    .hero-title { font-size: 40px; }
    .hero-desc { font-size: 16px; }
}

@media (max-width: 768px) {
    .hero { height: 100vh; height: 85vh; max-height: none; }
    .hero-slide:nth-child(1) { background-image: url('/img/main_slide/mm1.jpg'); }
    .hero-slide:nth-child(2) { background-image: url('/img/main_slide/mm2.jpg'); }
    .hero-slide:nth-child(3) { background-image: url('/img/main_slide/mm3.jpg'); }
    .hero-inner {
        padding: 0 20px;
        align-items: center;
        justify-content: flex-start;
        padding-top: 50px;
        text-align: center;
    }
    .hero-badge { font-size: 13px; padding: 6px 16px; margin-bottom: 10px; }
    .hero-title { font-size: 28px; letter-spacing: 0px; margin-bottom: 5px; }
    .hero-desc { font-size: 17px; }
    .hero-tags { justify-content: center; }
    .hero-tags span { font-size: 12px; padding: 4px 10px; }
    .hero-cta { padding: 10px 25px; font-size: 12px; }
    .hero-dots { bottom: 0px; }

    /* 슬라이드별 모바일 이미지 위치 */
    .hero-slide:nth-child(1) { background-position: 50% 50%; }
    .hero-slide:nth-child(2) { background-position: 50% 70%; }
    .hero-slide:nth-child(3) { background-position: 50% 50%; }
}

