/* ==========================================
   HEML Main Page - Responsive Layout

   Desktop (1800px+) : 좌우 배치
   Medium (1025-1799px) : 상하 배치
   Mobile (1024px 이하) : 기존 모바일 유지
   ========================================== */


/* ==========================================
   1. 중간 너비에서 상하 배치
   ========================================== */

@media screen and (min-width: 1025px)
                  and (max-width: 1799px) {

    /* 메인 영역 전체 */
    .main-section.visual {
        display: flex !important;
        flex-direction: column !important;
        align-items: stretch !important;

        width: 100% !important;
        height: auto !important;
        min-height: 0 !important;
        overflow: visible !important;
    }

    /* Main Visual */
    .main-section.visual > :first-child {
        display: block !important;
        position: relative !important;

        width: 100% !important;
        max-width: none !important;

        height: clamp(480px, 52vw, 720px) !important;
        min-height: 0 !important;

        flex: none !important;
        align-self: stretch !important;

        margin: 0 !important;
        overflow: hidden !important;
        box-sizing: border-box;
    }

    /* Hot Issue */
    .main-section.visual > .heml-hotissue {
        display: block !important;

        width: 100% !important;
        max-width: none !important;
        height: auto !important;
        min-height: 0 !important;

        flex: none !important;
        align-self: stretch !important;

        margin: 0 !important;
        padding: 32px 28px 40px !important;

        background: #000;
        box-sizing: border-box;
    }

    /* Hot Issue 내부 콘텐츠 */
    .main-section.visual
    .heml-hotissue__news {
        width: 100%;
        max-width: 760px;

        margin-left: auto;
        margin-right: auto;
    }

    /* Contact Us */
    .main-section.visual
    .heml-hotissue__contact {
        width: 100%;
        max-width: 760px;

        margin-left: auto;
        margin-right: auto;
    }

}


/* ==========================================
   2. 모바일 레이아웃 보완
   ========================================== */

@media screen and (max-width: 1024px) {

    /* 기존 모바일 배치 유지 */
    .main-section.visual {
        height: auto !important;
        min-height: 0 !important;
    }

    /* Hot Issue 너비 제한 제거 */
    .main-section.visual > .heml-hotissue {
        width: 100% !important;
        max-width: none !important;
        height: auto !important;

        margin: 0 !important;
        padding: 28px 22px 36px !important;

        box-sizing: border-box;
    }

    .main-section.visual
    .heml-hotissue__news {
        width: 100%;
        max-width: 760px;

        margin-left: auto;
        margin-right: auto;
    }

    .main-section.visual
    .heml-hotissue__contact {
        width: 100%;
        max-width: 760px;

        margin-left: auto;
        margin-right: auto;
    }

}


/* ==========================================
   3. 작은 모바일 화면
   ========================================== */

@media screen and (max-width: 600px) {

    .main-section.visual > .heml-hotissue {
        padding: 24px 18px 32px !important;
    }

    .main-section.visual
    .heml-hotissue__heading {
        font-size: 26px;
    }

    .main-section.visual
    .heml-hotissue__title {
        font-size: 18px;
    }

    .main-section.visual
    .heml-hotissue__description {
        font-size: 14px;
    }

    .main-section.visual
    .heml-hotissue__contact {
        padding-top: 35px;
    }

}
/* 좌우 배치에서 메인 이미지와 Hot Issue 하단 맞추기 */
@media screen and (min-width: 1800px) {
  .main-section.visual {
    align-items: stretch;
  }

  .main-section.visual > .main-slider1.area1 {
    display: flex;
    height: auto;
    min-height: var(--el-visual-height);
    min-width: 0;
    align-self: stretch;
  }

  .main-section.visual > .main-slider1 > .swiper-wrapper {
    width: 100%;
    height: auto;
    align-self: stretch;
  }

  .main-section.visual > .main-slider1 > .swiper-wrapper > .swiper-slide {
    height: auto;
    align-self: stretch;
  }

  .main-section.visual > .main-slider1 .img {
    height: 100%;
  }

  .main-section.visual > .main-slider1 .img > img {
    display: block;
  }
}