@charset "utf-8";

/* MAIN_JLS_1_2 그리드 레이아웃 */
.MAIN_JLS_1_2 {
  width: 100%;
  height: 100%;
  box-sizing: border-box;
}

.MAIN_JLS_1_2 .grid_container {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: repeat(2, 1fr);
  gap: 20px;
  width: 100%;
  height: 100%;
  min-height: 660px;
}

/* 그리드 아이템 기본 스타일 */
.MAIN_JLS_1_2 .grid_item {
  position: relative;
  border-radius: 15px;
  overflow: hidden;
  box-sizing: border-box;
}

/* PC: 3+2 배열 - 아이템 4,5는 1.5배 너비 */
.MAIN_JLS_1_2 .grid_item.item_1 { grid-column: 1; grid-row: 1; }
.MAIN_JLS_1_2 .grid_item.item_2 { grid-column: 2; grid-row: 1; }
.MAIN_JLS_1_2 .grid_item.item_3 { grid-column: 3; grid-row: 1; }
.MAIN_JLS_1_2 .grid_item.item_4 { grid-column: 1 / span 1; grid-row: 2; }
.MAIN_JLS_1_2 .grid_item.item_5 { grid-column: 2 / span 2; grid-row: 2; }

/* 링크 스타일 - 전체 영역 */
.MAIN_JLS_1_2 .grid_item .item-link {
  display: block;
  width: 100%;
  height: 100%;
  text-decoration: none;
  color: inherit;
}

/* 배경 이미지 */
.MAIN_JLS_1_2 .item_bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.MAIN_JLS_1_2 .item_bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.MAIN_JLS_1_2 .grid_item:hover .item_bg img {
  transform: scale(1.05);
}

.MAIN_JLS_1_2 .item_bg .no_image {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

/* 어두운 오버레이 */
.MAIN_JLS_1_2 .grid_item::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to top, rgba(0,0,0,0.6) 0%, rgba(0,0,0,0) 60%);
  z-index: 2;
  pointer-events: none;
}

/* 텍스트 영역 - 왼쪽 하단 40px 안쪽 */
.MAIN_JLS_1_2 .item_text {
  position: absolute;
  bottom: 40px;
  left: 40px;
  right: 40px;
  z-index: 10;
  color: #fff;
}

.MAIN_JLS_1_2 .item_text p {
  margin: 0;
  line-height: 1.4;
}

/* 텍스트 스타일 */
.MAIN_JLS_1_2 .item_text .tx1 {
  font-size: var(--tit-md-size, 22px);
  font-weight: 700;
  color: #fff;
  margin-bottom: 8px;
}

.MAIN_JLS_1_2 .item_text .tx2 {
  font-size: var(--tit-sm-size, 15px);
  font-weight: 400;
  color: rgba(255,255,255,0.9);
  margin-bottom: 5px;
}

.MAIN_JLS_1_2 .item_text .tx3 {
  font-size: var(--tit-xs-size, 13px);
  font-weight: 400;
  color: rgba(255,255,255,0.75);
}

.MAIN_JLS_1_2 .item_text .tx4,
.MAIN_JLS_1_2 .item_text .tx5 {
  font-size: 12px;
  font-weight: 400;
  color: rgba(255,255,255,0.65);
  margin-top: 3px;
}

/* 링크 아이콘 - 우측 상단 (호버 시 나타남) */
.MAIN_JLS_1_2 .link-icon {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 40px;
  height: 40px;
  background: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 20;
  opacity: 0;
  transition: opacity 0.3s ease, background 0.3s ease, transform 0.3s ease;
  box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

/* + 아이콘 */
.MAIN_JLS_1_2 .link-icon i {
  font-size: 20px;
  color: #333;
  transition: color 0.3s, transform 0.3s ease;
}

.MAIN_JLS_1_2 .grid_item:hover .link-icon:hover i {
  transform: rotate(180deg);
}

.MAIN_JLS_1_2 .grid_item:hover .link-icon {
  opacity: 1;
  background: rgba(255,255,255,0.6);
}

.MAIN_JLS_1_2 .grid_item:hover .link-icon:hover {
  background: #fff;
  transform: scale(1.1);
}

.MAIN_JLS_1_2 .grid_item:hover .link-icon i {
  color: #333;
}

/* 빈 그리드 */
.MAIN_JLS_1_2 .empty_grid {
  grid-column: 1 / -1;
  grid-row: 1 / -1;
  display: flex;
  align-items: center;
  justify-content: center;
}

.MAIN_JLS_1_2 .empty_li {
  text-align: center;
  color: #999;
  padding: 50px 20px;
}

/* 테블릿 반응형 (991px 이하) - 2+2+1 배열 */
@media only all and (max-width: 991px) {
  .MAIN_JLS_1_2 .grid_container {
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: repeat(3, 1fr);
    min-height: 800px;
  }

  .MAIN_JLS_1_2 .grid_item.item_1 { grid-column: 1; grid-row: 1; }
  .MAIN_JLS_1_2 .grid_item.item_2 { grid-column: 2; grid-row: 1; }
  .MAIN_JLS_1_2 .grid_item.item_3 { grid-column: 1; grid-row: 2; }
  .MAIN_JLS_1_2 .grid_item.item_4 { grid-column: 2; grid-row: 2; }
  .MAIN_JLS_1_2 .grid_item.item_5 { grid-column: 1 / span 2; grid-row: 3; }

  .MAIN_JLS_1_2 .item_text {
    bottom: 30px;
    left: 30px;
    right: 30px;
  }

  .MAIN_JLS_1_2 .item_text .tx1 {
    font-size: 20px;
  }
}

/* 모바일 반응형 (767px 이하) - 1칸씩, 1:0.6 비율 */
@media only all and (max-width: 767px) {
  .MAIN_JLS_1_2 .grid_container {
    display: flex;
    flex-direction: column;
    gap: 15px;
    min-height: auto;
    padding: 0;
    margin: 0;
  }

  .MAIN_JLS_1_2 .grid_item.item_1,
  .MAIN_JLS_1_2 .grid_item.item_2,
  .MAIN_JLS_1_2 .grid_item.item_3,
  .MAIN_JLS_1_2 .grid_item.item_4,
  .MAIN_JLS_1_2 .grid_item.item_5 {
    width: 100%;
    aspect-ratio: 1 / 0.6;
    min-height: auto;
    border-radius: 10px;
  }

  .MAIN_JLS_1_2 .item_text {
    bottom: 20px;
    left: 20px;
    right: 20px;
  }

  .MAIN_JLS_1_2 .item_text .tx1 {
    font-size: 18px;
  }

  .MAIN_JLS_1_2 .item_text .tx2 {
    font-size: 14px;
  }

  /* 모바일 링크 아이콘 - 항상 보임 */
  .MAIN_JLS_1_2 .link-icon {
    top: 15px;
    right: 15px;
    width: 35px;
    height: 35px;
    opacity: 1;
    background: var(--primary, #e53935);
  }

  .MAIN_JLS_1_2 .link-icon i {
    font-size: 16px;
    color: #fff;
  }
}
