@charset "UTF-8";
/**
 * @파일명            template-design-subject-zigzag.css
 * @프로젝트명         메디사이트
 * @작성자            전혜린(hyerin__ni@page1.co.kr)
 * @최초작성일         2026-11-04
 * @최종수정일         2026-11-20
 **/
.section-subject[data-design-id="subject-zigzag"] {
  padding: 50px 0;
}

@media screen and (min-width: 1024px) {
  html:not(.design-edit-page) .section-subject[data-design-id="subject-zigzag"] {
    padding: 150px 0;
  }
}

html:not(.design-edit-page) .section-subject[data-design-id="subject-zigzag"] .selection:not(.all):has(.section-desc) {
  margin-top: 15px;
}

html:not(.design-edit-page) .section-subject[data-design-id="subject-zigzag"] .selection:not(.all):has(.title) {
  margin-top: 10px;
}

html:not(.design-edit-page) .section-subject[data-design-id="subject-zigzag"] .selection:not(.all):has(.desc) {
  margin-top: 22px;
}

.section-subject[data-design-id="subject-zigzag"] .section-headline {
  font-size: 32px;
  font-weight: 700;
  line-height: 1.2;
  color: #0041AD;
  text-align: center;
}

@media screen and (min-width: 1024px) {
  html:not(.design-edit-page) .section-subject[data-design-id="subject-zigzag"] .section-headline {
    font-size: 50px;
  }
}

.section-subject[data-design-id="subject-zigzag"] .section-desc {
  font-size: 18px;
  font-weight: 400;
  line-height: 1.44;
  color: #222;
  text-align: center;
}

.section-subject[data-design-id="subject-zigzag"] .subject-list {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
      -ms-flex-direction: column;
          flex-direction: column;
  row-gap: 60px;
  margin: 34px 0 0;
}

@media screen and (min-width: 1024px) {
  html:not(.design-edit-page) .section-subject[data-design-id="subject-zigzag"] .subject-list {
    row-gap: 65px;
    margin-top: 120px;
  }
}

.section-subject[data-design-id="subject-zigzag"] .subject-item {
  position: relative;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: reverse;
      -ms-flex-direction: column-reverse;
          flex-direction: column-reverse;
  row-gap: 35px;
}

@media screen and (min-width: 1024px) {
  html:not(.design-edit-page) .section-subject[data-design-id="subject-zigzag"] .subject-item {
    -webkit-box-orient: horizontal;
    -webkit-box-direction: normal;
        -ms-flex-direction: row;
            flex-direction: row;
    -webkit-box-pack: justify;
        -ms-flex-pack: justify;
            justify-content: space-between;
    -webkit-box-align: center;
        -ms-flex-align: center;
            align-items: center;
    row-gap: 0;
  }
  html:not(.design-edit-page) .section-subject[data-design-id="subject-zigzag"] .subject-item:nth-child(2n) {
    -webkit-box-orient: horizontal;
    -webkit-box-direction: reverse;
        -ms-flex-direction: row-reverse;
            flex-direction: row-reverse;
  }
  html:not(.design-edit-page) .section-subject[data-design-id="subject-zigzag"] .subject-item > [class*="text-box"] {
    width: 50%;
    padding: 0 100px;
  }
}

.section-subject[data-design-id="subject-zigzag"] .subject-item .eyebrow {
  font-family: 'Pretendard Variable', sans-serif;
  font-size: 12px;
  font-weight: 900;
  line-height: 1.2;
  letter-spacing: 0.2em;
  color: #01BBD9;
  text-align: center;
}

@media screen and (min-width: 1024px) {
  html:not(.design-edit-page) .section-subject[data-design-id="subject-zigzag"] .subject-item .eyebrow {
    font-size: 14px;
  }
}

.section-subject[data-design-id="subject-zigzag"] .subject-item .title {
  font-size: 32px;
  font-weight: 800;
  line-height: 1.2;
  color: #222;
  text-align: center;
}

@media screen and (min-width: 1024px) {
  html:not(.design-edit-page) .section-subject[data-design-id="subject-zigzag"] .subject-item .title {
    font-size: 40px;
  }
}

.section-subject[data-design-id="subject-zigzag"] .subject-item .desc {
  font-size: 14px;
  font-weight: 500;
  line-height: 1.5;
  color: #222;
  text-align: center;
}

@media screen and (min-width: 1024px) {
  html:not(.design-edit-page) .section-subject[data-design-id="subject-zigzag"] .subject-item .desc {
    font-size: 20px;
  }
}

.section-subject[data-design-id="subject-zigzag"] .subject-item .thumb-box {
  position: relative !important;
  inset: auto !important;
}

@media screen and (min-width: 1024px) {
  html:not(.design-edit-page) .section-subject[data-design-id="subject-zigzag"] .subject-item .thumb-box {
    -ms-flex-negative: 0;
        flex-shrink: 0;
    width: 50%;
  }
}

.section-subject[data-design-id="subject-zigzag"] .subject-item .thumb-box img {
  width: 100%;
  height: 100%;
  -o-object-fit: cover;
     object-fit: cover;
}

.section-subject[data-design-id="subject-zigzag"] .link-subject {
  position: relative;
  display: block;
  width: 100%;
  height: 240px;
  border-radius: 28px;
  overflow: hidden;
  background-color: #f5f5f5;
}

html:not(.design-edit-page) .section-subject[data-design-id="subject-zigzag"] .link-subject::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1;
  background-color: rgba(0, 0, 0, 0.2);
  opacity: 0;
  pointer-events: none;
  -webkit-transition: opacity .3s;
  transition: opacity .3s;
}

html:not(.design-edit-page) .section-subject[data-design-id="subject-zigzag"] .link-subject:hover::before {
  opacity: 1;
}

@media screen and (min-width: 1024px) {
  html:not(.design-edit-page) .section-subject[data-design-id="subject-zigzag"] .link-subject {
    height: 320px;
  }
}

.section-subject[data-design-id="subject-zigzag"] .subject-item:has(.thumb-box[data-ui-role="image"]) .link-subject {
  background-color: transparent;
}

.section-subject[data-design-id="subject-zigzag"] .subject-item:has(.thumb-box[data-ui-role="image"]:not(.is-fill)):has(img) .link-subject {
  outline: 1px solid #eee !important;
}
