.community-main { padding: 0; margin: 0; }

/* ---------------------------------
   🎥 Video Hero (풀블리드)
---------------------------------- */
.community-page .video-hero{
  position: relative;
  width: 100%;
  min-height: 100svh;
  overflow: hidden;
}
.community-page .video-hero video{
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.community-page .video-hero .overlay{
  position: relative;
  z-index: 1;
  color: #fff;
  text-align: center;
  padding-top: min(28svh, 28vh);
  text-shadow: 0 2px 6px rgba(0,0,0,.4);
}

/* 히어로 오버레이 제목은 항상 흰색 */
.community-page .video-hero .overlay h2{
  color:#fff;
  text-shadow:0 2px 6px rgba(0,0,0,.45);
}

/* ---------------------------------
   🧭 Intro
---------------------------------- */
.community-intro{
  background: var(--surface-elev-1, #fff);
  color: var(--color-text, #222);
  text-align: center;
  padding: 56px 24px;
  margin-top: 64px;
}
.community-intro h2{
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: .75rem;
}
.community-intro .typewriter{
  display: block;
  margin: 0 auto;
  max-width: 980px;        /* about/business와 톤 맞춤 */
  line-height: 1.7;
  writing-mode: horizontal-tb;
  text-orientation: mixed;
  white-space: normal;     /* 애니를 써도 줄바꿈 안정 */
  word-break: keep-all;
  overflow-wrap: anywhere;
  color: var(--color-text);
}

/* ---------------------------------
   📄 공통 섹션
---------------------------------- */
.community-section{
  max-width: 1200px;
  margin: 0 auto;
  padding: var(--section-padding, 64px) 0;
  color: var(--color-text);
  text-align: left;
  line-height: 1.8;
}
.community-section h2{
  text-align: center;
  font-size: var(--fs-h2);
  color: var(--color-primary);
  margin: var(--gap-lg, 24px) 0 var(--gap-sm, 12px);
}
.community-section p{
  max-width: 900px;
  margin: 0 auto var(--gap-md, 20px);
  text-align: center;
}

/* ---------------------------------
   🎬 커뮤니티 비디오/갤러리
---------------------------------- */
.community-videos{
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 0;
}
.community-videos .video-row{
  display: flex;
  gap: 20px;
  align-items: stretch;
  justify-content: center;
  flex-wrap: wrap;
}
.community-videos .video-item{
  flex: 1 1 360px;
  max-width: 520px;
  border-radius: 12px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 8px 24px rgba(0,0,0,.06);
}
.community-videos .video-item iframe,
.community-videos .video-item video,
.community-videos .video-item img{
  width: 100%;
  height: 100%;
  display: block;
  aspect-ratio: 16/9;
  object-fit: cover;
}
.video-caption{
  padding: 12px 16px;
  font-size: .95rem;
  color: var(--color-text);
}

/* ---------------------------------
   🔗 하위 페이지 링크/버튼 모음
---------------------------------- */
.subpage-links{
  display: flex;
  gap: 16px;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  margin-top: 16px;
}
.subpage-links a{
  display: inline-block;
  padding: .75rem 1.25rem;
  border-radius: 8px;
  text-decoration: none;
  background: var(--color-accent);
  color: #fff;
  transition: transform .15s ease, box-shadow .15s ease, background .2s ease;
}
.subpage-links a:hover{
  transform: translateY(-1px);
  box-shadow: 0 8px 18px rgba(0,0,0,.08);
  background: color-mix(in oklab, var(--color-accent) 88%, #ffffff);
}

/* ---------------------------------
   📋 사례/목록
---------------------------------- */
.case-list{
  list-style: none;
  padding: 0;
  margin: 16px auto 0;
  max-width: 900px;
}
.case-list li{
  background: #fff;
  border: 1px solid rgba(0,0,0,.06);
  border-radius: 10px;
  padding: 12px 16px;
  margin-bottom: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,.04);
}

/* ---------------------------------
   CTA 공통 (페이지 통일)
---------------------------------- */
.community-section .cta.primary{
  display: inline-block;
  padding: .75rem 1.5rem;
  background-color: var(--color-accent);
  color: #fff;
  border-radius: 6px;
  text-decoration: none;
  transition: background .2s ease, color .2s ease, border .2s ease, transform .15s ease;
  margin-top: 1rem;             /* h3 뒤에 오는 버튼 간격 확보 */
}
.community-section .cta.primary:hover{
  background: #ffffff;
  color: var(--color-primary);
  border: 1px solid var(--color-primary);
  transform: translateY(-1px);
}

/* ---------------------------------
   반응형
---------------------------------- */
@media (max-width: 1024px){
  .community-section{ padding: 56px 0; }
  .community-videos{ padding: 32px 0; }
}

@media (max-width: 768px){
  /* 히어로 최소 높이 조정 */
  .community-page .video-hero{ min-height: 60svh; }
  .community-page .video-hero .overlay{ padding-top: 12svh; font-size: 1rem; }

  /* 풀블리드 섹션은 예외 */
  .community-main .video-hero{ padding-left: 0 !important; padding-right: 0 !important; }

  .community-intro{ padding-top: 40px; padding-bottom: 40px; margin-top: 48px; }
  .community-intro h1{ font-size: 1.5rem; }
  .community-intro .typewriter{ font-size: 1rem; }

  .community-videos .video-row{
    flex-direction: column;
    gap: 16px;
    margin: 12px 0;
    align-items: stretch;
  }
  .community-videos .video-item{ width: 100%; max-width: 100%; }
  .video-caption{ font-size: .92rem; }
  .subpage-links{ flex-direction: column; gap: 12px; align-items: stretch; }
  .subpage-links a{ width: 100%; text-align: center; }
  .case-list li{ font-size: .95rem; padding: .75rem 1rem; }
}

@media (max-width: 480px){
  .community-intro{ padding: 24px 16px; }
  .community-section{ padding: 36px 0; }
  .community-videos{ padding: 24px 0; }
  .video-caption{ font-size: .85rem; margin-top: 6px; }
  .case-list li{ margin-bottom: 10px; }
}

/* ---------------------------------
   (선택) 타이핑 애니메이션 사용 시
   - business와 동일하게 안전한 가로 한 줄 + 폭 애니
---------------------------------- */
@keyframes typing{
  from{ width: 0; }
  to{ width: calc(var(--chars, 1) * 1ch); }
}
@keyframes caretBlink{ 50%{ opacity: 0; } }
