@charset "utf-8";

/* 메인 배너 스타일 */
#main_bnr_area {
    position: relative;
    width: 100%;
    height: 100vh;
    min-height: 700px;
    overflow: hidden;
}

#main_bnr_area .main_txt_box {
    position: absolute;
    top: 35% !important;
    left: 8% !important;
    right: auto !important;
    bottom: auto !important;
    transform: translateY(-50%);
    z-index: 20;
    max-width: 760px;
    text-align: left;
}

.main_txt_box .eyebrow {
    margin-bottom: 18px;
    letter-spacing: .08em;
}

.main_txt_box .eyebrow .eyebrow-line {
    display: block;
    color: #20662c;
    font-size: 20px;
    font-weight: 800;
}

.main_txt_box .eyebrow .secondary {
    color: #20662c;
}

.hero_title {
    color: #fff;
    font-size: 60px;
    line-height: 1.24;
    font-weight: 600;
    margin: 10px 0 18px;
    text-shadow: 0 2px 7px rgba(0,0,0,.25);
}

.hero_title strong {
    font-weight: 800;
}

.hero_subcopy {
    color: rgba(255,255,255,.9);
    font-size: 20px;
    line-height: 1.9;
    font-weight: 500;
    margin-bottom: 26px;
}

.cta_btn { display: none !important; }

.main_txt_img {
    margin-bottom: 30px;
}

.main_txt_img img {
    max-width: 100%;
}

.main_txt {
    font-size: 21px;
    color: #fff;
    line-height: 1.8;
    margin-bottom: 40px;
    word-break: keep-all;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.5);
}

.main_control {
    display: flex;
    gap: 10px;
}

.main_control .swiper-pagination-bullet {
    width: 12px;
    height: 12px;
    background: rgba(255,255,255,0.5);
    opacity: 1;
    margin: 0 5px;
}

.main_control .swiper-pagination-bullet-active {
    background: #fff;
}

.main_img_area {
    width: 100%;
    height: 100%;
}

.main_img {
    width: 100%;
    height: 100%;
    background-size: cover; /* 이미지 전체가 보이도록 변경 */
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
}

/* 배경 비디오 스타일 */
.bg-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover; /* 비디오 전체가 보이도록 변경 */
    z-index: 1;
}

/* 배경 이미지 대신 인라인 스타일로 적용 */
.main_img01, .main_img02, .main_img03, .main_img04, .main_img05 {
    background-color: transparent;
}

.main_bottom_left {
    position: absolute;
    left: 8%;
    bottom: 40px;
    z-index: 20;
    display: flex;
    align-items: center;
    gap: 22px;
}

.main_bottom_left .counter {
    color: rgba(255,255,255,.98);
    font-size: 24px;
    font-weight: 800;
    letter-spacing: .02em;
}

.main_bottom_left .counter .slash {
    color: rgba(255,255,255,.6);
    margin: 0 6px;
    font-weight: 600;
}

.main_bottom_left .counter .current {
    font-size: 34px;
    font-weight: 800;
}

.main_bottom_left .counter .total {
    font-size: 19px;
    opacity: .75;
}

.main_bottom_left .progress_line {
    display: inline-block;
    width: 180px;
    height: 2px;
    background: rgba(255,255,255,.35);
    position: relative;
    top: -1px;
}

.main_bottom_left .arrow_group {
    display: inline-flex;
    gap: 12px;
}

.main_bottom_left .arrow_group button {
    width: 36px;
    height: 36px;
    border: 1px solid rgba(255,255,255,.7);
    color: #fff;
    background: transparent;
    border-radius: 4px;
    cursor: pointer;
    transition: all .2s ease;
    line-height: 1;
    display: inline-flex;
    align-items:center;
    justify-content:center;
}

.main_bottom_left .arrow_group button:hover {
    background: rgba(255,255,255,.12);
    border-color: #fff;
}

.main_bottom_left, .main_bottom_left * {
    pointer-events: auto;
}

.main_ctr_btn {
    display: none !important;
}

/* 세로(포트레이트) 전용: 잘림 없이 축소해서 전부 보이기 옵션 */
@media (orientation: portrait) and (max-width: 1024px) {
    /* 컨테이너를 세로형 비율로 */
    .main_img_area {
        aspect-ratio: 9 / 16; /* 필요 시 3/4 등으로 조정 가능 */
        height: auto;
    }
    /* 배경 이미지는 잘림 없이 */
    .main_img {
        background-size: contain; /* 잘림 대신 레터박스 */
        background-color: #000;
    }
    /* 비디오는 잘림 없이 */
    .bg-video {
        object-fit: contain; /* 잘림 대신 레터박스 */
        background-color: #000;
    }
    /* Swiper 내부도 높이 전달 */
    .main_img_area,
    .main_img_area .swiper-wrapper,
    .main_img_area .swiper-slide {
        height: 100%;
    }
}

/* 반응형 */
@media (max-width: 1024px) {
    #main_bnr_area {
        height: auto;
        min-height: auto;
    }
    
    .main_img_area {
        height: auto;
        aspect-ratio: 16 / 9; /* 화면 너비 기준 16:9 비율 유지 */
    }
    
    .main_img {
        background-size: contain; /* 잘림 없이 표시 */
        background-color: #000;   /* 레터박스 색상 */
    }
    
    .bg-video {
        object-fit: contain;      /* 잘림 없이 표시 */
        background-color: #000;   /* 레터박스 색상 */
    }
    
    #main_bnr_area .main_txt_box {
        left: 5%;
    }
    
    .hero_title {
        font-size: 44px;
    }
    
    .main_bottom_left {
        left: 5%;
        bottom: 28px;
        gap: 16px;
    }
    
    .main_bottom_left .progress_line {
        width: 140px;
    }
}

@media (max-width: 767px) {
    #main_bnr_area {
        height: auto;
        min-height: auto;
    }
    
    .main_img_area {
        height: auto;
        aspect-ratio: 16 / 9; /* 모바일에서도 16:9 유지 (필요 시 9:16으로 변경 가능) */
    }
    
    .main_img {
        background-size: contain;
        background-color: #000;
    }
    
    .bg-video {
        object-fit: contain;
        background-color: #000;
    }
    
    .main_txt_img {
        margin-bottom: 20px;
    }
    
    .main_txt_img img {
        max-width: 80%;
    }
    
    .main_txt {
        font-size: 19px;
    }
    
    .hero_title {
        font-size: 30px;
    }
    
    .hero_subcopy {
        font-size: 17px;
    }
    
    #main_bnr_area .main_txt_box {
        left: 5%;
        max-width: 90%;
    }
    
    .main_bottom_left {
        left: 5%;
        bottom: 22px;
        gap: 12px;
    }
    
    .main_bottom_left .counter {
        font-size: 22px;
    }
    
    .main_bottom_left .progress_line {
        width: 110px;
    }
}

/* Mobile override: slide #2 uses mobile image */
@media (max-width: 768px) {
  .main_img02 {
    background-image: url('/images/m_main1.jpg') !important;
    background-size: cover !important;
    background-position: center !important;
    background-repeat: no-repeat !important;
  }
  .main_img03 {
    background-image: url('/images/m_main.jpg') !important;
    background-size: cover !important;
    background-position: center !important;
    background-repeat: no-repeat !important;
  }
}

/* Mobile: move title/subtitle to bottom and shrink for slides 2 and 3 */
@media (max-width: 768px) {
  body.active-slide-2 #main_bnr_area .main_txt_box,
  body.active-slide-3 #main_bnr_area .main_txt_box {
    position: absolute !important;
    left: 8% !important;
    right: 8% !important;
    width: auto !important;
    top: auto !important;          /* cancel any vertical centering */
    bottom: 80px !important;       /* stick to very bottom */
    transform: none !important;    /* ensure no translateY centering */
    text-align: left !important;
    z-index: 30 !important;
    margin: 0 !important;
    padding: 0 !important;
  }
  body.active-slide-2 .main_txt_box .hero_title,
  body.active-slide-3 .main_txt_box .hero_title {
    font-size: 20px !important;
    line-height: 1.35 !important;
    margin: 0 0 6px !important;
  }
  body.active-slide-2 .main_txt_box .hero_subcopy,
  body.active-slide-3 .main_txt_box .hero_subcopy {
    font-size: 13px !important;
    line-height: 1.5 !important;
    margin: 0 0 8px !important;
    color: rgba(255,255,255,0.9) !important;
  }
  body.active-slide-2 .main_txt_box .eyebrow,
  body.active-slide-3 .main_txt_box .eyebrow {
    display: none !important; /* 하단 배치 시 보조 라벨은 숨김 (원하면 주석 처리) */
  }
  body.active-slide-2 .main_txt_box .cta_btn,
  body.active-slide-3 .main_txt_box .cta_btn {
    transform: scale(0.9);
    padding: 8px 14px !important;
    font-size: 12px !important;
  }
}