/* ================================================
   SWCF_totalnotice - 이미지 카드 스타일
   ================================================ */

/* 카드 아이템 */
.SWCF_totalnotice .card_item {
  display: flex;
  flex-direction: column;
  background: transparent;
  border-radius: 0;
  overflow: visible;
  box-shadow: none;
  transition: all 0.3s ease;
  text-decoration: none;
  width: 100% !important;
  max-width: 100% !important;
  height: 100%;
}

.SWCF_totalnotice .card_item:hover {
  transform: none;
  box-shadow: none;
}

/* 이미지 래퍼 (버튼 포함) */
.SWCF_totalnotice .card_img_wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 16/10;
}

/* 이미지 영역 - 외부 컨테이너 (SVG 배경용) */
.SWCF_totalnotice .card_img {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  overflow: visible;
  background: transparent;
}

/* 이미지 마스크 컨테이너 (overflow hidden으로 이미지 클리핑) */
.SWCF_totalnotice .card_img::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  border-radius: 16px;
  overflow: hidden;
  z-index: 0;
  background: #f3f4f6;
}

/* 둥근 흰색 배경 (SVG로 구현) - 우측 하단은 직각 */
.SWCF_totalnotice .card_img::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: -1px;
  z-index: 3;
  width: 90px;
  height: 92px;
  background-image: url("data:image/svg+xml,%3Csvg width='110' height='112' viewBox='0 0 110 112' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M110 112H0C17.67 112 32 97.67 32 80V64C32 46.3269 46.3269 32 64 32H78C95.67 32 110 17.67 110 0V112Z' fill='white'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right bottom;
  background-size: contain;
  pointer-events: none;
}

/* 이미지 래퍼 (실제 클리핑 담당) */
.SWCF_totalnotice .card_img_inner {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  border-radius: 16px;
  overflow: hidden;
  z-index: 1;
}

.SWCF_totalnotice .card_img_inner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.SWCF_totalnotice .card_item:hover .card_img_inner img {
  transform: scale(1.05);
}

/* MORE 버튼 (화살표) */
.SWCF_totalnotice .card_more {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 52px;
  height: 52px;
  background: #333;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  z-index: 5;
}

.SWCF_totalnotice .card_more i {
  color: #fff;
  font-size: 22px;
}

.SWCF_totalnotice .card_item:hover .card_more {
  background: var(--primary, #10b981);
  transform: scale(1.05);
}

/* 텍스트 영역 */
.SWCF_totalnotice .card_info {
  padding: 16px 8px 0 8px;
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: 8px;
}

/* 라벨 */
.SWCF_totalnotice .card_label {
  display: inline-block;
  width: fit-content;
  font-size: 13px;
  font-weight: 600;
  color: var(--primary, #10b981);
  margin-bottom: 4px;
}

/* 제목 */
.SWCF_totalnotice .card_title {
var(--subtop-h)font-size:calc(var(--tit-mds-size) * 0.8);
  font-weight: 600;
  color: #1f2937;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  margin: 0;
}

/* 설명 */
.SWCF_totalnotice .card_desc {
font-size:calc(var(--tx-sm-size) * 0.9);
  color: #6b7280;
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  margin: 0;
  margin-top: 4px;
}

/* ================================================
   모바일 스타일
   ================================================ */
@media only all and (max-width:767px) {
  .SWCF_totalnotice .card_img_wrap {
    aspect-ratio: 16/9;
  }

  .SWCF_totalnotice .card_img::before,
  .SWCF_totalnotice .card_img_inner {
    border-radius: 12px;
  }

  .SWCF_totalnotice .card_img::after {
    width: 68px;
    height: 70px;
  }

  .SWCF_totalnotice .card_more {
    width: 40px;
    height: 40px;
    bottom: 0;
    right: 0;
  }

  .SWCF_totalnotice .card_more i {
    font-size: 16px;
  }

  .SWCF_totalnotice .card_info {
    padding: 12px 0 0 0;
    gap: 4px;
  }

  .SWCF_totalnotice .card_label {
    font-size: 12px;
  }

  .SWCF_totalnotice .card_title {
 var(--subtop-h)font-size:calc(var(--tit-mds-size) * 0.9);
  }

  .SWCF_totalnotice .card_desc {
 font-size:calc(var(--tx-sm-size) * 0.9);
    -webkit-line-clamp: 2;
  }
}

/* 빈 슬라이드 */
.SWCF_totalnotice .empty-slide .empty_li {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 200px;
  color: #9ca3af;
  font-size: 14px;
}
