/* 카드 레이아웃 관련(모터센스 예시) */
.card-wrapper {
  width: 100%;
  max-width: 2030px;  /* 최대 폭 */
  margin: 0 auto;     /* 가운데 정렬 */
  box-sizing: border-box;
}

/* 카드 개별 스타일 */
.case-card {
  width: 100%;          /* 그리드 칸 가득 */
  max-width: 363px;     /* 최대 너비 */
  height: 485px;
  border: 1px solid #d6e7f2;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.04);
  border-radius: 30px;
  padding: 24px 24px 0 24px;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  background-color: #fff;
  position: relative;
  margin-bottom: 20px;
}

.card-container {
  display: grid;
  grid-template-columns: repeat(4, 1fr); /* 정확히 4열 */
  gap: 20px;                              /* 카드 간 간격 */
  width: 100%;
  max-width: calc((363px * 4) + (20px * 3)); /* 카드 너비*4 + 간격*3 */
  margin: 0 auto;                         /* 가운데 정렬 (전체를) */
  box-sizing: border-box;

}

.case-content {
  font-weight: bold;
  padding-bottom: 20px;
  z-index: 1;
}

.case-button {
  padding: 10px 16px;
  background-color: #0047AB;
  color: #fff;
  text-decoration: none;
  border-radius: 5px;
  font-weight: bold;
  font-size: 16px;
}

.case-button-wrap {
  margin-top: 20px;
  margin-bottom: 20px;
}

.case-title {
  font-size: 28px;
  line-height: 1.4;
  color: #222;
  margin-bottom: 30px;
}

.case-link {
  margin-bottom: 20px;
  color: #0047AB;
  text-decoration: none;
  border-bottom: 1px solid #0047AB;
  font-weight: 500;
  font-size: 16px;
}

.case-image {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  border-bottom-left-radius: 30px;
  border-bottom-right-radius: 30px;
  overflow: hidden;
  z-index: 0;
}

.case-image img {
  width: 100%;
  max-height: 300px;
  height: auto;
  object-fit: cover;
  display: block;
}

/* 태블릿 (992px 이하) - 3열 */
@media (max-width: 992px) {
  .card-container {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* 중간 화면 (768px 이하) - 2열 */
@media (max-width: 768px) {
  .card-container {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .card-container {
    grid-template-columns: 1fr;
    justify-items: center; /* 카드 가운데 정렬 */
    padding: 20px;          /* 좌우 여백 확보 */
    max-width: 100%;
  }

  .case-card {
    width: 100%;
    max-width: 363px;
  }
}

/* 카드 레이아웃 관련(LAVO 예시) */
.card {
  width: 100%;
  max-width: 416px;
  background-color: #fff;
  border: none;
  box-shadow: none;
  overflow: hidden;      /* 중요: 이미지 둥근 모서리 위해 꼭 필요 */
  box-sizing: border-box;
  padding-bottom: 20px;
  border-radius: 25px;   /* 카드 전체 둥근 모서리 추가 (필요 시) */
  margin: 0 auto;
}

@media (max-width: 760px) {
  .card {
    width: 416px;
    height: 575.39px;
    margin: 0 auto;
  }
}

@media (max-width: 400px) {
  .card {
    width: 100%;
    height: 575.39px;
    margin: 0 auto;
  }
}

/* 기존 스타일 유지 */
.card-image {
  width: 100%;
  object-fit: cover;    /* 영역 꽉 채우면서 비율 유지 */
  display: block;
  border-radius: 25px; /* 상하좌우 모두 둥글게 */
  aspect-ratio: 1 / 1;
}

.card-title {
  font-size: 20px;
  font-weight: bold;
  padding: 15px 10px 0 8px;
  color: #005f99;
}

.card-list {
  font-size: 18px;
  list-style: none;  /* 불릿 제거 */
  padding-left: 10px;   /* 기본 들여쓰기 제거 */
  margin: 0;
}

.card-list li {
  position: relative;
  padding-left: 1em;        /* dot 공간 확보 */
  text-indent: 0em;        /* 줄바꿈 시 dot에 맞게 들여쓰기 */
  line-height: 1.6;
}

.card-list li::before {
  content: "\2022"; /* ← Bullet 기호 (•) 유니코드 */
  position: absolute;
  left: 0;
  top: 0;
  font-size: 1em;
  line-height: 1.6;
  color: #003366; /* 필요 시 컬러 변경 가능 */
}


#section-cardImg .feature-card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); /* 최소폭 300px으로 줄임 */
  gap: 40px;
  justify-content: center;
  padding: 0 16px;
  max-width: 1600px; /* 충분히 넓게 */
  margin-left: auto;
  margin-right: auto;
}

#section-cardImg .feature-card {
  position: relative;
  width: 100%;
}

#section-cardImg .feature-card img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  border-radius: 25px;
}

#section-cardImg .overlay {
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0,0,0,0.5);
  display: flex;
  flex-direction: column;      /* 세로 방향으로 쌓기 */
  justify-content: center;
  align-items: center;
  color: #fff;
  z-index: 10;
  pointer-events: none;
  border-radius: 25px;
}

/* 메인 타이틀 느낌 스타일 */
#section-cardImg .overlay p.title-main {
  margin-bottom: 20px;       /* 아래 마진 */
  font-weight: bold !important;          /* 굵게 (bold) */
  font-size: 36px; !important;           /* 기존 크기 유지 */
  color: #fff;
  text-align: center !important;;
  padding: 0 16px !important;;
  line-height: 1.6;
}

/* 내용 텍스트 스타일 */
#section-cardImg .overlay p.title-sub {
  font-size: 20px !important;;           /* 적당한 크기 */
  color: #fff;
  text-align: center !important;;
  padding: 0 16px !important;;
  line-height: 1.6 !important;;
}

/* 992px 이하: 2열 */
@media (max-width: 992px) {
  #section-cardImg .feature-card-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  #section-cardImg .feature-card-grid .overlay p {
    font-size: 24px;
  }
}


/* 576px 이하: 1열 */
@media (max-width: 576px) {
  #section-cardImg .feature-card-grid {
    grid-template-columns: 1fr;
  }
  #section-cardImg .overlay p.title-main {
    margin-bottom: 20px;       /* 아래 마진 */
    font-weight: bold !important;          /* 굵게 (bold) */
    font-size: 30px; !important;           /* 기존 크기 유지 */
    color: #fff;
    text-align: center !important;;
    padding: 0 16px !important;;
    line-height: 1.6;
  }
}

/* 메인 페이지 좌/우 배열 형 */
#featurette-layout {
  max-width: 1320px;
  margin: 0 auto;
  padding-left: 15px;
  padding-right: 15px;
  box-sizing: border-box;
}

/* 메인 페이지 콘텐츠 관련 (featurette 영역에만 적용) */
#featurette-layout .featurette-divider {
  margin: 77px 0; /* 메인 페이지 콘텐츠 간 간격 설정 */
}

#featurette-layout .featurette-heading {
  font-size: 33.6px;
  font-weight: 500;
  letter-spacing: -0.05rem;
}

/* 1) 부모 요소: 텍스트 길이만큼 폭을 갖게 */
#featurette-layout .title-wrapper {
  display: inline-block; /* 콘텐츠(텍스트, bar)의 너비에 딱 맞춰집니다. */
}

/* 2) .bar는 부모 너비의 100% */
#featurette-layout .bar {
  display: block;
  width: 100%;
  height: 2px;
  background-color: #003366;
  margin-top: 4px;
  margin-bottom: 9px;
}

#description-box .lead,
#description-box .highlight-text {
  font-weight: bold;
  font-size: 24px;
}

#featurette-layout li{
  font-weight: normal;
  font-size: 20px;
}

#featurette-layout .svg-wrapper {
  width: 100%;
  max-width: 500px;
  aspect-ratio: 1 / 1;
  height: auto;
}

#featurette-layout .responsive-svg {
  width: 100%;
  height: auto;
  display: block;
}

#featurette-layout .responsive-svg text{
  font-size: 48px !important;
  font-weight: bold;
}

#featurette-layout .image-wrapper {
  width: 100%;
  aspect-ratio: 1 / 1; /* 정사각형 비율 유지 */
  overflow: hidden;    /* 이미지 넘침 방지 */
  position: relative;
}

#featurette-layout .responsive-img {
  width: 100%;
  height: 100%;
  object-fit: cover;   /* 영역 꽉 채우면서 비율 유지 */
  display: block;
}

.case-image .responsive-svg text{
  font-size: 30px !important;
  font-weight: bold;
}

.case-image .svg-wrapper {
  width: 100%;
  height: auto; /* 필요하면 px값으로 고정해도 됨 */
  aspect-ratio: 361 / 189; /* 직사각형 비율 유지 */
}

.case-image .responsive-svg {
  width: 100%;
  height: 100%;
  display: block;
}

#img-text-layout .svg-wrapper {
  width: 100%;           /* 기본은 부모 너비에 맞춤 */
  max-width: 416px;      /* 최대 416px로 제한 */
  aspect-ratio: 1 / 1;
  height: auto;
  display: block;
  margin-left: auto;     /* 가운데 정렬 */
  margin-right: auto;
}

#section-cardImg .svg-wrapper {
  width: 100%;
  height: auto; /* 필요하면 px값으로 고정해도 됨 */
  aspect-ratio: 394 / 592; /* 직사각형 비율 유지 */
}

#section-cardImg .responsive-svg {
  width: 100%;
  height: 100%;
  display: block;
  border-radius: 25px;
}

#section-cardImg .responsive-svg text{
  font-size: 40px !important;
  font-weight: bold;
}