/* BASIC css start */
/* 전체 래퍼 */
.situation-wrapper {
  max-width: 1300px;
  margin: 120px auto;
  padding: 0 20px;
  box-sizing: border-box;
}


.situation-hero {
  position: relative;
  width: 100%;
  height: 80vh;
  overflow: hidden;
  margin-bottom: 80px;
}

.situation-hero-fadebox {
  position: relative;
  width: 100%;
  height: 100%;
}

.situation-hero .fade-img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  animation: fadeSlide 12s infinite;
  opacity: 0;
}

.situation-hero .img1 { animation-delay: 0s; }
.situation-hero .img2 { animation-delay: 4s; }
.situation-hero .img3 { animation-delay: 8s; }

.situation-hero-text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: #fff;
  text-align: center;
  text-shadow: 0 0 10px rgba(0,0,0,0.5);
  padding: 0 20px;
  line-height: 1.5;
}

.situation-hero-text h1 {
  font-size: 2.5rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 12px;
}

.situation-hero-text p {
  font-size: 1.2rem;
  font-weight: 300;
}

@keyframes fadeSlide {
  0%   { opacity: 0; }
  8%   { opacity: 1; }
  30%  { opacity: 1; }
  38%  { opacity: 0; }
  100% { opacity: 0; }
}


/* 각 상황 블록 */
.situation-block {
  position: relative;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 80px;
  gap: 40px;

  padding: 40px;
  border: 1px solid #e0e0e0;
  border-radius: 0px;
  overflow: hidden;
  background-color: #fff;

}



/* 콘텐츠가 위에 보이게 */
.situation-image-container,
.situation-products {
  position: relative;
  z-index: 1;
}

/* 순서 반전용 */
.situation-block.reverse {
  flex-direction: row-reverse;
}

/* 대표 이미지 영역 */
.situation-image-container {
  flex: 1;
  position: relative;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  min-width: 300px;
}

/* 이미지 fade 슬라이드 */
.fade-image-box {
  position: relative;
  width: 100%;
  height: 100%;
}
.fade-img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  animation: fadeSlide 12s infinite;
  opacity: 0;
  transition: opacity 1s ease-in-out;
}
.fade-img.img1 { animation-delay: 0s; }
.fade-img.img2 { animation-delay: 4s; }
.fade-img.img3 { animation-delay: 8s; }

@keyframes fadeSlide {
  0%   { opacity: 0; }
  8%   { opacity: 1; }
  30%  { opacity: 1; }
  38%  { opacity: 0; }
  100% { opacity: 0; }
}

/* 제품 리스트 영역 */
.situation-products {
  flex: 1;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 20px;
}

/* 개별 제품 카드 */
.product-card {
  width: 48%;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.product-card img {
  width: 100%;
  max-width: 280px;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border-radius: 10px;
  margin-bottom: 14px;
}

/* 제품명 */
.product-name {
  font-size: 1.0rem;
  font-weight: 600;
  color: #222;
  margin-bottom: 6px;
}

/* 제품 설명 */
.product-desc {
  font-size: 0.8rem;
  color: #444;
  line-height: 1.4;
}

/* 반응형 처리 */
@media screen and (max-width: 768px) {
  .situation-block,
  .situation-block.reverse {
    flex-direction: column;
    gap: 30px;
  }

  .situation-products {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 20px;
  }

  .product-card {
    width: 100%;
  }

  .product-card img {
    width: 80%;
    margin: 0 auto 14px;
  }
}


/* 상황별 제목 */
.situation-title {
  font-size: 1.6rem;
  font-weight: 600;
  margin: 60px 0 20px;
  text-align: center;
  color: #222;
}

.situation-title2 {
  font-size: 1.1rem;
  font-weight: 400;
  margin: 15px 0 20px;
  text-align: center;
  color: #323232;
}


.product-card img {
  width: 100%;
  max-width: 280px;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border-radius: 6px;
  margin-bottom: 14px;
  transition: transform 0.3s ease;
}

.product-card img:hover {
  transform: scale(1.07);
}


/* BASIC css end */

