@charset "utf-8";
@charset "utf-8";

/**
 * 홈페이지 안내 페이지 (참고: 마을e척척 content.do?menu=227)
 */

/* ========================================
   레이아웃
   ======================================== */
.guide-page-wrap {
  width: 100%;
  margin-top: calc(-1 * var(--spacing-xl));
}

.guide-page-wrap .subpage-content {
    padding: 0;
}

.guide-page {
  width: 100%;
  min-height: 60vh;
  background: var(--color-bg-white);
}

.guide-container {
  width: 100%;
  max-width: var(--content-max-width);
  margin: 0 auto;
  padding: 0 var(--spacing-lg);
}

/* ========================================
   인트로 섹션
   ======================================== */
.guide-intro {
  text-align: center;
  padding: 3rem 0 3rem;
}

.guide-intro-title {
  font-weight: 600;
  line-height: 1.6;
  font-size: var(  --font-size-2xl);
  color: var(--color-text-black);
  margin: 0;
  margin-left: auto;
  margin-right: auto;
}

/* ========================================
   유튜브 영상존 (배경 전체 width, 컨텐츠는 기존 유지)
   ======================================== */
.guide-video {
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  min-height: 80vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background-image: url('images/info-second-bg.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  transform: translateZ(0);
  backface-visibility: hidden;
  contain: layout;
}

.guide-video-title {
  font-size: var(--font-size-2xl);
  font-weight: 600;
  line-height: 1.6;
  color: var(--color-text-black);
  margin: 0 0 1rem;
  text-align: center;
}

.guide-video-wrap {
  width: 100%;
  max-width: 800px;
  margin: 0 auto;
}

.guide-video-inner {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%; /* 16:9 */
  height: 0;
  overflow: hidden;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.12);
  background: #000;
}

.guide-video-iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
}

.guide-video-placeholder {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-bg-light);
  color: var(--color-text-gray);
  font-size: var(--font-size-sm);
  text-align: center;
  padding: 1rem;
}

.guide-video-placeholder code {
  display: block;
  margin-top: 0.5rem;
  font-size: var(--font-size-xs);
  color: #0d9488;
}

/* ========================================
   서비스 카드 그리드
   ======================================== */
.guide-services {
  margin-bottom: 3rem;
  min-height: 480px;
}

.guide-service-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}

.guide-service-item {
  margin: 0;
}

.guide-service-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 2rem 1.5rem 1.25rem;
  min-height: 220px;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
  border: 4px solid #ddd;
  text-decoration: none;
  color: var(--color-text-black);
  position: relative;
  overflow: hidden;
  transition:
    box-shadow 0.35s cubic-bezier(0.34, 1.56, 0.64, 1),
    transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.guide-service-item:nth-child(1) .guide-service-card {
  border-color: #FF6733;
}

.guide-service-item:nth-child(2) .guide-service-card {
  border-color: #FFAE00;
}

.guide-service-item:nth-child(3) .guide-service-card {
  border-color: #6369DD;
}

.guide-service-item:nth-child(4) .guide-service-card {
  border-color: #4CA0FF;
}

.guide-service-item:nth-child(5) .guide-service-card {
  border-color: #1A8100;
}

.guide-service-item:nth-child(6) .guide-service-card {
  border-color: #51D72F;
}

.guide-service-card:hover {
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.12);
  transform: translateY(-8px) scale(1.02);
  background: #fff;
  color: var(--color-text-black);
}

.guide-service-item:nth-child(1) .guide-service-card:hover {
  box-shadow: 0 16px 40px rgba(255, 103, 51, 0.25);
}

.guide-service-item:nth-child(2) .guide-service-card:hover {
  box-shadow: 0 16px 40px rgba(255, 174, 0, 0.25);
}

.guide-service-item:nth-child(3) .guide-service-card:hover {
  box-shadow: 0 16px 40px rgba(99, 105, 221, 0.25);
}

.guide-service-item:nth-child(4) .guide-service-card:hover {
  box-shadow: 0 16px 40px rgba(76, 160, 255, 0.25);
}

.guide-service-item:nth-child(5) .guide-service-card:hover {
  box-shadow: 0 16px 40px rgba(26, 129, 0, 0.25);
}

.guide-service-item:nth-child(6) .guide-service-card:hover {
  box-shadow: 0 16px 40px rgba(81, 215, 47, 0.25);
}

.guide-service-arrow {
  display: block;
  width: 20px;
  height: 20px;
  margin-top: 0.5rem;
  border-right: 2px solid rgba(0, 0, 0, 0.35);
  border-bottom: 2px solid rgba(0, 0, 0, 0.35);
  transform: rotate(45deg) translateY(2px);
  transition: all 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
  opacity: 0.7;
}

.guide-service-item:nth-child(1) .guide-service-card:hover .guide-service-arrow {
  border-color: #FF6733;
}

.guide-service-item:nth-child(2) .guide-service-card:hover .guide-service-arrow {
  border-color: #FFAE00;
}

.guide-service-item:nth-child(3) .guide-service-card:hover .guide-service-arrow {
  border-color: #6369DD;
}

.guide-service-item:nth-child(4) .guide-service-card:hover .guide-service-arrow {
  border-color: #4CA0FF;
}

.guide-service-item:nth-child(5) .guide-service-card:hover .guide-service-arrow {
  border-color: #1A8100;
}

.guide-service-item:nth-child(6) .guide-service-card:hover .guide-service-arrow {
  border-color: #51D72F;
}

.guide-service-card:hover .guide-service-arrow {
  transform: rotate(-135deg) translateY(-2px);
  opacity: 1;
}

.guide-service-icon-wrap {
  width: 64px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
  border-radius: 50%;
  background: var(--color-bg-light);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.3s ease;
}

.guide-service-card:hover .guide-service-icon-wrap {
  background: var(--color-bg-light);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  transform: scale(1.1);
}

.guide-service-icon {
  width: 32px;
  height: 32px;
  object-fit: contain;
  transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.guide-service-card:hover .guide-service-icon {
  transform: scale(1.08);
}

.guide-service-title {
  font-size: var(--font-size-lg);
  font-weight: 600;
  color: var(--color-text-black);
  margin: 0 0 0.25rem;
  line-height: 1.3;
  transition: color 0.25s ease;
}

.guide-service-card:hover .guide-service-title {
  color: var(--color-text-black);
}

.guide-service-desc-wrap {
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  margin: 0;
  transition: max-height 0.4s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.35s ease, margin 0.35s ease;
}

.guide-service-card:hover .guide-service-desc-wrap {
  max-height: 5.5em;
  opacity: 1;
  margin-top: 0.5rem;
}

.guide-service-desc {
  font-size: var(--font-size-sm);
  color: var(--color-text-black);
  line-height: 1.5;
  margin: 0;
}

.guide-service-card:hover .guide-service-desc {
  color: var(--color-text-black);
}

/* ========================================
   반응형: 미디어 쿼리 (브레이크포인트별 통합)
   ======================================== */

/* 768px 이하 */
@media (max-width: 768px) {
  .guide-intro {
    padding: 2rem 0 2.5rem;
  }

  .guide-video {
    min-height: 70vh;
    padding: 2rem calc(50vw - 50%);
  }

  .guide-services {
    margin-bottom: 2rem;
    min-height: 660px;
  }

  .guide-service-card {
    padding: 1.25rem 1rem 1.25rem;
    min-height: 200px;
  }

  .guide-service-card:hover {
    padding-bottom: 1.25rem;
  }

  .guide-service-desc-wrap {
    max-height: none;
    opacity: 1;
    margin-top: 0.5rem;
  }

  .guide-service-desc {
    color: var(--color-text-black);
  }

  .guide-service-arrow {
    transform: rotate(-135deg) translateY(-2px);
    opacity: 0.8;
  }
}

/* 480px 이하 */
@media (max-width: 480px) {
  .guide-intro {
    padding: 1.5rem 0 2rem;
  }

  .guide-video {
    min-height: 40vh;
    padding: 1.5rem calc(50vw - 50%);
  }

  .guide-services {
    min-height: 1200px;
  }

  .guide-service-card {
    padding: 1rem 0.75rem 1rem;
    min-height: 180px;
  }

  .guide-service-card:hover {
    padding-bottom: 1rem;
  }
}

/* 600px 이상 */
@media (min-width: 600px) {
  .guide-services {
    min-height: 660px;
  }

  .guide-service-list {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* 1024px 이상 */
@media (min-width: 1024px) {
  .guide-services {
    min-height: 480px;
  }

  .guide-service-list {
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
  }
}
