.benefit-main {
  padding: 0;
  margin: 0;
}

/* 🎥 비디오 히어로 (페이지 스코프 + svh) */
.benefit-main .video-hero {
  position: relative;
  width: 100%;
  min-height: 100svh;
  overflow: hidden;
}
.benefit-main .video-hero video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}
.benefit-main .video-hero .overlay {
  position: relative;
  z-index: 1;
  color: white;
  text-align: center;
  padding-top: min(30svh, 30vh);
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.4);
}

/* 🔰 인트로 섹션 */
.benefit-intro {
  background: url('../../img/bg/benefit-intro-bg.webp') center/cover no-repeat;
  color: #fff;
  position: relative;
  margin-top: 75px;
  text-align: center;
  padding: 4rem 1rem;
  overflow: hidden;
}
.benefit-intro::before {
  content: '';
  position: absolute;
  inset: 0;
  background-color: rgba(40, 80, 40, 0.5);
  z-index: -1;
  transition: background-color 0.3s ease;
}
.benefit-intro:hover::before { background-color: rgba(40, 80, 40, 0.7); }
.benefit-intro h2 {
  font-size: 1.6rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  color: #fff;
}

/* ⌨️ 타이핑 텍스트 */
.benefit-intro .typewriter {
  font-size: 1.125rem;
  font-weight: 700;
  font-family: 'Noto Sans KR', sans-serif;
  color: #fff;
  writing-mode: horizontal-tb;
  text-orientation: mixed;
  white-space: normal;
  overflow: visible;
  width: auto;
  max-width: 100%;
  line-height: 1.7;
  margin: 0 auto;
}

/* 📄 공통 콘텐츠 섹션 */
.benefit-section1 {
  max-width: 900px;
  margin: 0 auto;
  padding: var(--section-padding) 0;
  text-align: center;
  font-size: var(--fs-base);
  color: var(--color-text);
  line-height: 1.8;
}
.benefit-section1 h2 {
  font-size: var(--fs-h2);
  color: var(--color-primary);
}
.benefit-title {
  text-align: center;
  color: var(--color-primary);
  font-size: 1.6rem;
  font-weight: 700;
  margin-top: 40px;
}

/* 📊 기술 효과 테이블 */
.tech-benefit-table {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-top: 20px;
}
.tech-benefit-table .benefit-row {
  padding: 12px;
  background-color: #f8f8f8;
  border-left: 4px solid var(--color-primary);
  border-radius: 5px;
}
.tech-benefit-table .benefit-row strong {
  font-size: 16px;
  color: #4a4a4a;
  display: block;
  margin-bottom: 6px;
}
.tech-benefit-table .benefit-row p {
  font-size: 14px;
  margin: 0;
  line-height: 1.5;
}

.benefit-section{
  max-width: 900px;
  margin: 0 auto;
  padding: var(--section-padding) 1.25rem;
  text-align: center;
  font-size: var(--fs-base);
  color: var(--color-text);
  line-height: 1.8;
}

/* 📦 카드 섹션 */
.smartfarm-effect-cards {
  width: 100%;
  padding: 0;
  margin: 0;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  box-sizing: border-box;
}
.smartfarm-effect-cards .card-container {
  display: flex;
  gap: 20px;
  justify-content: center;
  max-width: 1200px;
  padding: 40px 20px;
  margin: 0 auto;
  scroll-padding-inline: 20px;
}
.smartfarm-effect-cards .card-container::before,
.smartfarm-effect-cards .card-container::after {
  content: "";
  flex: 0 0 20px;
}

/* 카드 구조 */
.smartfarm-effect-cards .card {
  position: relative;
  flex: 0 0 280px;
  min-width: 280px;
  max-width: 380px;
  max-height: 460px;
  border-radius: 16px;
  overflow: hidden;
  background: linear-gradient(to bottom, #ecf9ed, #d7efdb);
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  scroll-snap-align: start;
  transition: flex 0.3s ease;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}
.smartfarm-effect-cards .card:hover { flex: 0 0 380px; }

/* 텍스트 영역 */
.smartfarm-effect-cards .card-header { padding: 1rem 1.5rem; text-align: left; }
.smartfarm-effect-cards .card-header h2 { font-size: 1.6rem; margin-bottom: 0.25rem; color: #2e7d32; }
.smartfarm-effect-cards .card-header h3 { font-size: 1.2rem; color: #1b5e20; margin-bottom: 0.25rem; }
.smartfarm-effect-cards .card-header p { font-size: 0.9rem; color: #4e6b4e; line-height: 1.5; }

/* 이미지 */
.smartfarm-effect-cards .card-image { width: 100%; height: 180px; transition: opacity 0.3s ease; }
.smartfarm-effect-cards .card-image img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* 오버레이 */
.smartfarm-effect-cards .card-overlay {
  position: absolute;
  inset: 0;
  background: #ffffff;
  opacity: 0;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  transition: opacity 0.3s ease;
  pointer-events: none;
  z-index: 1;
}
.smartfarm-effect-cards .card:hover .card-image img { opacity: 0; }
.smartfarm-effect-cards .card:hover .card-overlay { opacity: 1; pointer-events: auto; }
.smartfarm-effect-cards .card-overlay .overlay-icon {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 100%; height: 100%;
  object-fit: contain;
  opacity: 0.2;
  z-index: 0;
  pointer-events: none;
}
.smartfarm-effect-cards .card-overlay h4 {
  font-size: 1rem;
  color: #2e7d32;
  margin-bottom: 1rem;
  position: relative;
  z-index: 1;
  line-height: 1.6;
}

/* CTA 버튼 */
.smartfarm-effect-cards .card-buttons {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: center;
  position: relative;
  z-index: 1;
}
.smartfarm-effect-cards .card-buttons .cta.primary {
  padding: 8px 16px;
  background-color: #2e7d32;
  color: #fff;
  border-radius: 6px;
  font-size: 0.9rem;
  text-decoration: none;
  border: none;
  transition: background-color 0.3s ease;
}
.smartfarm-effect-cards .card-buttons .cta.primary:hover { background-color: #1b5e20; }

/* 상담 CTA 버튼 */
.benefit-section1 .cta.primary {
  display: inline-block;
  margin-top: 1rem;
  padding: 0.75rem 1.5rem;
  background-color: var(--color-accent);
  color: white;
  border-radius: 4px;
  text-decoration: none;
  transition: background 0.3s ease, color 0.3s ease, border 0.3s ease;
}
.benefit-section1 .cta.primary:hover {
  background-color: #fff;
  color: var(--color-primary);
  border: 1px solid var(--color-primary);
}

/* 📱 모바일 전용: 카드 세로 정렬 + 내용보기 라벨 */
@media (max-width: 768px) {
  .smartfarm-effect-cards {
    overflow-x: visible;
    scroll-snap-type: none;
  }
  .smartfarm-effect-cards .card-container {
    flex-direction: column;
    gap: 1.25rem;
    padding: 1.25rem;
  }
  .smartfarm-effect-cards .card {
    flex: 1 1 100%;
    min-width: 100%;
    max-width: 100%;
  }

  /* 라벨 추가 */
  .smartfarm-effect-cards .card .card-image {
    position: relative;
  }
  .smartfarm-effect-cards .card .card-image::after {
    content: "내용 보기";
    position: absolute;
    right: 10px;
    bottom: 10px;
    display: inline-block;
    padding: 5px 10px;
    background: rgba(255,255,255,.92);
    color: var(--color-primary);
    border: 1px solid var(--color-primary);
    border-radius: 999px;
    font-weight: 600;
    font-size: 0.7rem;
    box-shadow: 0 2px 8px rgba(0,0,0,.12);
    z-index: 5;
    pointer-events: none;
  }
}
