/* ===============================
   🌱 Vision Section
   =============================== */
.vision {
  background-image: url('../img/bg/vision-bg.webp');
  background-size: cover;
  background-position: center;
  color: var(--color-text-light, #fff);
  position: relative;
  margin-top: 75px;
}
.vision::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: var(--color-overlay-green, rgba(43,90,43,.55)); /* ← 폴백 */
  z-index: 0;
}
.vision .text-block{ position: relative; z-index: 1; }

.vision:hover::before {
  background-color: rgba(60, 120, 60, 0.5);
}

/* ===============================
   Home (index.css) — Info 섹션 전용
   components.css의 공용 규칙 위에 얹는 오버라이드
   =============================== */

/* Info 섹션 컨테이너: 좌/우 2열 + 흰 배경(투명) */
.home-page .info{
  display: flex;
  align-items: center;                 /* 세로 중앙 */
  justify-content: space-between;      /* 좌/우 분배 */
  gap: clamp(28px, 5vw, 64px);         /* 열 간격 */
  padding: clamp(20px, 3vw, 30px) 0;

  /* 기존 회색/박스 흔적 완전 제거 */
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
}

/* hover 때 배경 생기는 예전 규칙 무력화 */
.home-page .info:hover{
  background: transparent !important;
}

/* 좌측 텍스트 박스: Vision 섹션과 동일 정렬/스케일(색상은 상속) */
.home-page .info-left{
  flex: 1 1 48%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;     /* 가로 중앙 */
  text-align: center;      /* 텍스트 중앙 */
  gap: 10px;
  min-height: 320px;       /* 필요시 숫자만 조절 */
}

.home-page .info-left h2{
  font-size: var(--fs-h2);
  line-height: var(--lh-comf);
  margin: 0 0 8px;
  color: inherit;          /* 색상은 테마/상속 그대로 */
  text-shadow: none;
  font-weight: 700;
}

.home-page .info-left .typewriter{
  font-size: clamp(14px, 2.6vw, 18px);
  line-height: 1.6;
  color: inherit;
}

.home-page .info-left p{
  font-size: clamp(14px, 2.6vw, 18px);
  line-height: 1.6;
  margin: 0;
  color: inherit;
}

/* 우측 영상 박스 */
.home-page .info-right{
  flex: 1 1 52%;
  display: flex;
  justify-content: center;
}

/* iframe을 16:9 반응형으로, 과하지 않게 최대 폭 제한 */
.home-page .info-right iframe{
  width: 100%;
  max-width: 960px;             /* 섹션 폭에 맞춰 자연스럽게 */
  aspect-ratio: 16 / 9;
  height: auto;
  border: 0;
  border-radius: 16px;
  box-shadow: 0 10px 30px rgba(0,0,0,.12);
}

/* 반응형: 스택으로 전환 + 여백 유지 */
@media (max-width: 1024px){
  .home-page .info{
    flex-direction: column;
    align-items: stretch;
    gap: clamp(20px, 4vw, 36px);
  }
  .home-page .info-left{
    min-height: unset;
    align-items: center;
    text-align: center;
  }
  .home-page .info-right{
    width: 100%;
  }
}
/* ===============================
   🎥 Video (Vision2) — index 전용
   - 레이아웃/타이포는 components.css(vision==video 공용)에서 처리
   - 여기서는 배경이미지 + 오버레이만 유지
   =============================== */

.content-section.video{
  position: relative;
  overflow: hidden;
  background-image: url('../img/bg/vision2-bg.webp');
  background-size: cover;
  background-position: center;
}

/* 이미지 위, 텍스트 아래에 깔리는 틴트 오버레이 */
.content-section.video::before{
  content: '';
  position: absolute;
  inset: 0;
  background: var(--color-overlay-green, rgba(43,90,43,.55)); /* 변수 없으면 우측 값 사용 */
  z-index: 0;               /* 배경 위 */
  pointer-events: none;     /* 호버/클릭 방해 X */
  transition: background-color .3s ease, opacity .3s ease;
}
.content-section.video:hover::before{
  background: var(--color-overlay-green-hover, rgba(43,90,43,.65));
}

/* 텍스트는 오버레이 위로 */
.content-section.video .text-block{
  position: relative;
  z-index: 1;
}

/* ===============================
   ⏳ Loader
   =============================== */
#loader.fade-out {
  opacity: 0;
  pointer-events: none;
}
.content-section:hover {
  transform: translateY(-4px);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

/* ===============================
   🧩 Partners Grid
   =============================== */
.partners-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
}
@media (max-width: 1024px) { .partners-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 640px)  { .partners-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px)  { .partners-grid { grid-template-columns: 1fr; } }

/* ===============================
   📱 Responsive — Hero Overlay
   =============================== */
@media (max-width: 768px) {
  .home-page .info {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  .home-page .info-left,
  .home-page .info-right {
    width: 100%;
    margin-bottom: 2rem;
  }
  .home-page .info-left h2 {
    font-size: 1.5rem;
  }
  .brand-logo {
    width: 160px;
  }
  .home-page .video iframe {
    max-width: 100%;
  }
  .home-page .video .text-block h2 {
    font-size: 1.5rem;
  }
  .home-page .video .text-block p {
    font-size: 1rem;
    line-height: 1.6;
  }
  .loader-inner img {
    width: 300px;
  }
}

/* Partners banner controls */
.banner-partners .control-buttons button{
  all: unset;                     /* 기본 버튼 스타일 제거 */
  display: inline-grid;
  place-items: center;
  width: 36px; height: 36px;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0,0,0,.08);
  cursor: pointer;
  font-size: 14px;                /* 아이콘/문자 크기 */
  line-height: 1;
  color: var(--color-text, #111);
}
.banner-partners .control-buttons button:hover{
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(0,0,0,.12);
}
#togglePlayBtn{ font-weight: 700; } /* ⏸ 문자 조금 또렷하게 */
