/* ------------------------------------------------
   Brand Colors (메인 페이지와 톤 맞추기)
------------------------------------------------ */
:root {
  --inmu-orange: #ff7a00;
  --inmu-black: #111827;
  --inmu-gray: #f9fafb;
  --inmu-border: #e5e7eb;
}

/* ------------------------------------------------
   Layout base
------------------------------------------------ */
.content_container {
  max-width: 1200px;
  margin: 0 auto 80px;
  padding: 0px 20px 0; /* 상단 고정 네비 때문에 위 여백 */
}

/* ------------------------------------------------
   메인 카드 영역 (.box)
------------------------------------------------ */
.box {
  margin-top: 40px;
  border-radius: 24px;
  border: 1px solid var(--inmu-border);
  background: #ffffff;
  display: flex;
  gap: 32px;
  padding: 32px 36px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.06);
}

/* 좌측 텍스트 영역 */
.box .text_part {
  flex: 0 0 42%;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

/* 타이틀 */
.box .text_part .title {
  margin-bottom: 20px;
}

.box .text_part .kor_title {
  font-family: 'GmarketSansMedium', sans-serif;
  font-size: 32px;
  font-weight: 700;
  color: var(--inmu-black);
}

.box .text_part .eng_title {
  font-family: 'GmarketSansMedium', sans-serif;
  font-size: 16px;
  letter-spacing: 0.18em;
  margin-top: 6px;
  color: var(--inmu-orange);
}

/* 주소 + 안내문 */
.box .text_part .explanation {
  font-family: 'GmarketSansMedium', sans-serif;
  font-size: 18px;
  margin-top: 24px;
  line-height: 1.7;
  color: #4b5563;
}

.box .text_part .explanation .branch-hours,
.box .text_part .explanation .branch-tel {
  display: inline-block;
  margin-top: 4px;
  font-size: 16px;
  color: #374151;
}

/* 부가 설명 문단 */
.box .text_part p + .instruments,
.box .text_part .explanation + p {
  margin-top: 18px;
}

/* 악기 리스트 */
.box .text_part .instruments {
  font-family: 'GmarketSansMedium', sans-serif;
  display: flex;
  gap: 60px;
  margin-top: 28px;
  font-size: 16px;
  line-height: 1.9;
  color: #111827;
}

.box .text_part .instruments .left-vertical,
.box .text_part .instruments .right-vertical {
  white-space: nowrap;
}

/* ------------------------------------------------
   우측 이미지 + 버튼 영역
------------------------------------------------ */
.box .img_part {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

/* 이미지 카드 */
.box .img_part .img_container {
  border-radius: 22px;
  overflow: hidden;
  position: relative;
}

.box .img_part .img_container img {
  display: block;
  width: 100%;
  height: auto;
  transform: scale(1);
  transition: transform 0.5s ease;
}

.box .img_part .img_container::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top right, rgba(0,0,0,0.1), transparent);
  pointer-events: none;
}

/* 호버 시 살짝 확대 */
.box .img_part .img_container:hover img {
  transform: scale(1.03);
}

/* 버튼 영역 */
.box .img_part .button_part {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.box .img_part .button_part a {
  flex: 1 1 260px;
  text-decoration: none;
}

/* 공통 버튼 스타일 */
.box .img_part .button {
  width: 100%;
  height: 56px;
  border-radius: 999px;
  border: none;
  background: #111827;
  position: relative;
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.12);
}

.box .img_part .button_class {
  background: linear-gradient(135deg, var(--inmu-orange), #ff9a3c);
}

.box .img_part .button_review {
  background: #111827;
}

.box .img_part .button .text {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 0 16px;
  font-size: 18px;
  font-weight: 600;
  font-family: 'GmarketSansMedium', sans-serif;
  color: #ffffff;
  line-height: 56px;
}

/* 버튼 호버 효과 */
.box .img_part .button:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.16);
}

/* ------------------------------------------------
   Video Section (branch-video)
------------------------------------------------ */
.branch-video {
  max-width: 1200px;
  margin: 72px auto 0;
  padding: 40px 32px 48px;
  border-radius: 24px;
  background: radial-gradient(circle at top left, #111827, #020617);
  color: #f9fafb;
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.5);
}

.branch-video h3 {
  font-family: 'GmarketSansMedium', sans-serif;
  font-size: 26px;
  font-weight: 700;
  margin-bottom: 20px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

/* 타이틀 왼쪽에 작은 오렌지 바 */
.branch-video h3::before {
  content: "";
  width: 6px;
  height: 22px;
  border-radius: 999px;
  background: var(--inmu-orange);
}

.branch-video .video-wrapper {
  position: relative;
  padding-bottom: 56.25%; /* 16:9 비율 */
  height: 0;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid rgba(249, 250, 251, 0.2);
  margin-top: 18px;
}

.branch-video .video-wrapper iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* ------------------------------------------------
   Responsive
------------------------------------------------ */

/* 1024px 이하 (태블릿 가로) */
@media screen and (max-width: 1024px) {
  .content_container {
    padding-top: 110px;
  }

  .box {
    padding: 28px 24px;
    gap: 24px;
  }

  .box .text_part {
    flex: 0 0 45%;
  }

  .branch-video {
    margin-top: 60px;
    padding: 32px 24px 40px;
  }
}

/* 900px 이하: 카드 세로 정렬 */
@media screen and (max-width: 900px) {
  .box {
    flex-direction: column;
  }

  .box .text_part,
  .box .img_part {
    flex: 1 1 auto;
    width: 100%;
  }

  .box .text_part .title {
    text-align: left;
  }

  .box .text_part .kor_title {
    font-size: 28px;
  }

  .box .text_part .eng_title {
    font-size: 14px;
  }

  .box .text_part .explanation {
    font-size: 16px;
  }

  .box .text_part .instruments {
    font-size: 15px;
    gap: 40px;
  }

  .branch-video {
    padding: 28px 20px 34px;
  }
}

/* 768px 이하 (태블릿 세로 ~ 작은 모바일) */
@media screen and (max-width: 768px) {
  .content_container {
    padding: 100px 16px 0;
  }

  .box {
    padding: 24px 18px;
    border-radius: 20px;
  }

  .box .text_part .explanation {
    margin-top: 18px;
  }

  .box .text_part .instruments {
    margin-top: 20px;
    gap: 28px;
  }

  .box .img_part .button_part {
    flex-direction: column;
  }

  .branch-video h3 {
    font-size: 22px;
  }
}

/* 480px 이하 (모바일) */
@media screen and (max-width: 480px) {
  .box {
    padding: 20px 16px;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.08);
  }

  .box .text_part .kor_title {
    font-size: 24px;
  }

  .box .text_part .explanation {
    font-size: 15px;
  }

  .box .text_part .instruments {
    flex-direction: row;
    justify-content: space-between;
    font-size: 14px;
    gap: 16px;
  }

  .box .img_part .button {
    height: 52px;
  }

  .box .img_part .button .text {
    font-size: 16px;
    line-height: 52px;
  }

  .branch-video {
    padding: 22px 16px 28px;
    border-radius: 18px;
  }

  .branch-video h3 {
    font-size: 18px;
  }
}

/* ================================
   버튼 모바일 레이아웃 수정
   (map.css 맨 아래쪽에 추가)
================================== */

/* 공통: a 태그를 확실히 블록 + 전체폭 사용 */
.box .img_part .button_part a {
  display: block;
  flex: 1 1 auto;
}

/* 900px 이하: 세로로 2줄 정렬 */
@media screen and (max-width: 900px) {
  .box .img_part .button_part {
    flex-direction: column;
    align-items: stretch;   /* 가로 폭 100% */
    gap: 12px;
  }

  .box .img_part .button_part a {
    width: 100%;
    max-width: 100%;
    flex: none;             /* 1 1 260px 해제 */
  }

  .box .img_part .button {
    width: 100%;
    height: 54px;
  }

  .box .img_part .button .text {
    font-size: 17px;
    line-height: 54px;
    padding: 0 12px;
  }
}

/* 480px 이하: 폰 화면에서 간격 조금 더 줄이기 */
@media screen and (max-width: 480px) {
  .box .img_part .button_part {
    gap: 10px;
  }

  .box .img_part .button {
    height: 50px;
  }

  .box .img_part .button .text {
    font-size: 16px;
    line-height: 50px;
  }
}

.video-wrapper.is-vertical {
  position: relative;
  width: 100%;
  max-width: 420px;   /* 필요하면 조정 */
  margin: 0 auto;
  padding-top: 177.78%; /* 9:16 비율 */
}
.video-wrapper.is-vertical iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

/* =========================================
   Dance Studio Section (지점 페이지용)
   - 기존 지점소개 톤에 자연스럽게 묻히게 설계
   - 링크 파란색 제거 + 버튼처럼 보이되 "클릭감" 살림
   - 쇼츠는 4:5 비율(지렁이 방지) + 모바일에서 더 짧게
   ========================================= */

.dance-studio-section{
  margin-top: 56px;
  padding: 28px 28px 26px;
  border: 1px solid var(--inmu-border, #e5e7eb);
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 14px 36px rgba(0,0,0,.06);
  font-family: 'GmarketSansMedium', sans-serif;
}

.dance-studio-section h3{
  margin: 0 0 12px;
  font-size: 22px;
  font-weight: 800;
  color: var(--inmu-black, #111827);
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.dance-studio-section h3::before{
  content:"";
  width: 6px;
  height: 18px;
  border-radius: 999px;
  background: var(--inmu-orange, #ff7a00);
}

.dance-desc{
  margin: 0 0 14px;
  font-size: 16px;
  line-height: 1.75;
  color: #374151;
}

.dance-desc .dance-sub{
  color: #4b5563;
  font-size: 14px;
}

.dance-info-box{
  margin-top: 14px;
  padding: 14px 14px;
  border-radius: 16px;
  background: var(--inmu-gray, #f9fafb);
  border: 1px solid var(--inmu-border, #e5e7eb);
  display: grid;
  gap: 6px;
}

.dance-info-box .line{
  display: block;
  color: #374151;
  font-size: 14px;
  line-height: 1.6;
}

.dance-links{
  margin-top: 14px;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

/* 링크 파란색 제거 + 클릭감 */
.dance-link-btn{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 48px;
  padding: 0 18px;
  border-radius: 999px;
  border: 1px solid var(--inmu-border, #e5e7eb);
  background: #fff;
  color: #111827;
  text-decoration: none;
  cursor: pointer;
  font-weight: 700;
  font-size: 15px;
  transition: transform .12s ease, box-shadow .12s ease, filter .12s ease, border-color .12s ease;
  box-shadow: 0 10px 20px rgba(0,0,0,.06);
}

.dance-link-btn:hover{
  transform: translateY(-2px);
  box-shadow: 0 16px 34px rgba(0,0,0,.10);
  filter: brightness(.99);
}

.dance-link-btn:active{
  transform: translateY(0);
  box-shadow: 0 10px 20px rgba(0,0,0,.06);
}

.dance-link-btn.is-primary{
  border: none;
  color: #fff;
  background: linear-gradient(135deg, var(--inmu-orange, #ff7a00), #ff9a3c);
  box-shadow: 0 12px 26px rgba(255,122,0,.22);
}

.dance-link-btn.is-primary:hover{
  box-shadow: 0 18px 40px rgba(255,122,0,.28);
}

.dance-note{
  margin: 10px 0 0;
  font-size: 13px;
  color: #6b7280;
}

/* ✅ 쇼츠(세로) 영상: 4:5 비율로 "덜 길게" */
.dance-video-wrapper{
  position: relative;
  width: 100%;
  max-width: 560px;    /* 넓혀서 더 덜 길어 보이게 */
  margin: 16px auto 0;
  padding-top: 100%;   /* 4:5 비율(너무 길지 않게) */
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid var(--inmu-border, #e5e7eb);
  background: #000;
  box-shadow: 0 16px 40px rgba(0,0,0,.10);
}

.dance-video-wrapper iframe{
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* 모바일: 더 짧고 컴팩트하게 */
@media (max-width: 480px){
  .dance-studio-section{
    padding: 22px 18px 20px;
    border-radius: 18px;
  }

  .dance-links{
    flex-direction: column;
  }

  .dance-link-btn{
    width: 100%;
    height: 46px;
  }

  .dance-video-wrapper{
    max-width: 360px;
    padding-top: 88%;  /* ✅ 모바일에서 더 짧게 (지금보다 세로 줄임) */
  }
}
