/* =========================================================
   page/ 폴더 전용 서브페이지 CSS
   - theme/basic/css/custom.css(사이트 공통 디자인)와는 별도로
     이 page 폴더 안의 개별 페이지들만을 위한 스타일을 여기서 관리합니다.
   - 새 페이지를 추가할 때 이 파일에 이어서 섹션을 추가하면 됩니다.
   ========================================================= */

/* ===== 병원소개 (intro_1_1.php) ===== */
.bd-page-intro{ padding:80px 0 100px; }
.bd-page-intro .bd-w1500{ display:flex; gap:60px; align-items:flex-start; flex-wrap:wrap; }
.bd-page-intro-content{ flex:1.2; min-width:300px; }
.bd-page-intro-content .bd-eng-tit{
  display:block; font-family:'Noto Serif KR', serif; font-size:clamp(22px,2.6vw,30px);
  font-weight:500; color:var(--bd-main-deep,#0e6690); letter-spacing:0; text-transform:none; margin-bottom:14px;
}
.bd-page-intro-content h4{ font-size:18px; color:var(--bd-sub,#666); font-weight:600; margin-bottom:30px; }
.bd-page-intro-txt strong{ display:block; font-size:20px; line-height:1.6; margin-bottom:22px; color:var(--bd-font,#222); }
.bd-page-intro-txt p{ color:var(--bd-sub,#666); font-size:15.5px; line-height:1.85; margin-bottom:14px; }
.bd-page-intro-img{ flex:1; min-width:280px; display:flex; gap:16px; }
.bd-page-intro-img .bd-ph, .bd-page-intro-img img{ flex:1; aspect-ratio:3/4; border-radius:10px; object-fit:cover; width:100%; }
@media (max-width:768px){ .bd-page-intro-img{ order:-1; } }

/* ===== 세 가지 철학 섹션 (intro_1_1.php 하단) ===== */
.bd-page-philo{ padding:20px 0 110px; }
.bd-philo-tit{ text-align:center; max-width:760px; margin:0 auto 70px; }
.bd-philo-tit .bd-eng-tit{ text-transform:none; letter-spacing:0; }
.bd-philo-tit h4{ font-size:clamp(24px,3vw,34px); font-weight:700; color:var(--bd-font,#222); margin-bottom:20px; }
.bd-philo-tit p{ color:var(--bd-sub,#666); font-size:16px; line-height:1.8; }
.bd-philo-tit p b{ color:var(--bd-main-deep,#0e6690); font-weight:700; }
.bd-philo-row{ display:flex; align-items:center; gap:60px; padding:50px 0; border-top:1px solid #eee; flex-wrap:wrap; }
.bd-philo-row:first-of-type{ border-top:none; }
.bd-philo-row.bd-reverse{ flex-direction:row-reverse; }
.bd-philo-txt{ flex:1.1; min-width:280px; }
.bd-philo-txt strong{ display:block; font-family:'Marcellus'; color:var(--bd-main,#188FCA); font-size:16px; margin-bottom:14px; }
.bd-philo-txt b{ display:block; font-size:22px; font-weight:700; color:var(--bd-font,#222); margin-bottom:18px; line-height:1.4; }
.bd-philo-txt p{ color:var(--bd-sub,#666); font-size:15px; line-height:1.8; margin-bottom:14px; }
.bd-philo-img{ flex:1; min-width:280px; }
.bd-philo-img .bd-ph, .bd-philo-img img{ aspect-ratio:560/380; border-radius:10px; object-fit:cover; width:100%; display:block; }
@media (max-width:768px){ .bd-philo-row, .bd-philo-row.bd-reverse{ flex-direction:column; } }

/* =========================================================
   범용 카드 그리드 템플릿
   ========================================================= */
.bd-page-generic{ padding:70px 0 110px; }
.bd-page-lead{ max-width:720px; margin:0 auto 60px; text-align:center; }
.bd-page-lead .bd-eng-tit{ display:block; margin-bottom:14px; }
.bd-page-lead p{ color:var(--bd-sub,#666); font-size:16px; line-height:1.8; }

.bd-card-grid{
  display:grid; gap:32px;
  grid-template-columns:repeat(auto-fit, minmax(260px, 1fr));
}
.bd-card-grid-2{ grid-template-columns:repeat(auto-fit, minmax(360px, 1fr)); }
.bd-card-grid-3{ grid-template-columns:repeat(auto-fit, minmax(260px, 1fr)); }

.bd-card{
  background:#fff; border-radius:14px; overflow:hidden;
  box-shadow:0 4px 20px rgba(0,0,0,.06); border:1px solid #f0f0f0;
  display:flex; flex-direction:column;
}
.bd-card-img{ aspect-ratio:4/3; position:relative; }
.bd-card-img img, .bd-card-img .bd-ph{ width:100%; height:100%; object-fit:cover; display:block; }
.bd-card-body{ padding:28px 26px 32px; flex:1; display:flex; flex-direction:column; }
.bd-card-part{ color:var(--bd-main,#188FCA); font-size:13.5px; font-weight:700; margin-bottom:8px; }
.bd-card-body h3{ font-size:21px; font-weight:700; color:var(--bd-font,#222); margin-bottom:14px; }
.bd-card-body p{ color:var(--bd-sub,#666); font-size:14.5px; line-height:1.75; margin-bottom:18px; }
.bd-card-tags{ display:flex; flex-wrap:wrap; gap:8px; margin-top:auto; }
.bd-card-tags li{
  font-size:12.5px; color:var(--bd-main-deep,#0e6690); background:rgba(95,162,122,.09);
  padding:6px 12px; border-radius:99px;
}

.bd-card-doctor{ flex-direction:row; }
.bd-card-doctor .bd-card-img{ width:42%; aspect-ratio:auto; flex-shrink:0; }
.bd-card-doctor .bd-card-body{ width:58%; }
@media (max-width:640px){
  .bd-card-doctor{ flex-direction:column; }
  .bd-card-doctor .bd-card-img{ width:100%; aspect-ratio:4/3; }
  .bd-card-doctor .bd-card-body{ width:100%; }
}

/* ===== 의료진소개 상세형 (intro_1_2.php) ===== */
.bd-doc-intro{ padding:80px 0 0; text-align:center; overflow:hidden; }
.bd-doc-intro h4{ font-size:clamp(22px,3vw,32px); font-weight:700; line-height:1.5; color:var(--bd-font,#222); margin-bottom:34px; }
.bd-doc-intro h4 span{ color:var(--bd-main-deep,#0e6690); }
.bd-doc-intro-img{ max-width:820px; margin:0 auto 34px; aspect-ratio:820/420; border-radius:16px; overflow:hidden; }
.bd-doc-intro-img img, .bd-doc-intro-img .bd-ph{ width:100%; height:100%; object-fit:cover; }
.bd-doc-intro > .bd-w1500 > p{ font-size:16px; color:var(--bd-sub,#666); line-height:1.7; padding-bottom:60px; }
.bd-doc-intro > .bd-w1500 > p b{ color:var(--bd-main-deep,#0e6690); }

.bd-doc-profile{ padding:20px 0 100px; }
.bd-doc-tabs{ display:flex; justify-content:center; gap:14px; margin-bottom:40px; flex-wrap:wrap; }
.bd-doc-tab-btn{
  padding:12px 28px; border-radius:99px; border:1px solid #ddd; background:#fff;
  font-size:15px; font-weight:600; color:#888; cursor:pointer; transition:.2s;
}
.bd-doc-tab-btn.bd-active{ background:var(--bd-main,#188FCA); border-color:var(--bd-main,#188FCA); color:#fff; }

.bd-doc-panel{ display:none; gap:50px; }
.bd-doc-panel.bd-active{ display:flex; flex-wrap:wrap; }
.bd-doc-panel-img{ flex:0 0 300px; aspect-ratio:3/4; border-radius:14px; overflow:hidden; }
.bd-doc-panel-img img, .bd-doc-panel-img .bd-ph{ width:100%; height:100%; object-fit:cover; }
.bd-doc-panel-info{ flex:1; min-width:320px; }
.bd-doc-panel-top strong{ font-size:24px; font-weight:700; color:var(--bd-font,#222); }
.bd-doc-panel-top strong span{ font-size:15px; font-weight:500; color:var(--bd-sub,#666); margin-left:8px; }
.bd-doc-panel-top p{ margin:14px 0 28px; color:var(--bd-sub,#666); font-size:15px; line-height:1.7; }

.bd-doc-cv-grid{ display:grid; grid-template-columns:1fr 1fr; gap:24px; margin-bottom:34px; }
.bd-doc-cv-box{ background:#f0f5fa; border-radius:10px; padding:20px 22px; }
.bd-doc-cv-box b{ display:block; color:var(--bd-main-deep,#0e6690); font-size:14.5px; margin-bottom:10px; }
.bd-doc-cv-box ul li{ font-size:13.5px; color:var(--bd-sub,#666); line-height:1.7; }
.bd-doc-cv-wide{ grid-column:1 / -1; }
@media (max-width:600px){ .bd-doc-cv-grid{ grid-template-columns:1fr; } }

.bd-doc-greeting{ padding:20px 0 100px; }
.bd-doc-greeting-box{ max-width:820px; margin:0 auto; background:#f0f5fa; border-radius:16px; padding:50px 60px; }
.bd-doc-greeting-box p{ color:#444; font-size:15.5px; line-height:2; margin-bottom:16px; }
.bd-doc-greeting-sign{ text-align:right; font-weight:700; color:var(--bd-main-deep,#0e6690) !important; margin-top:30px; }
@media (max-width:600px){ .bd-doc-greeting-box{ padding:36px 26px; } }

.bd-doc-schedule table{ width:100%; border-collapse:collapse; text-align:center; margin-bottom:12px; }
.bd-doc-schedule th, .bd-doc-schedule td{ border:1px solid #eee; padding:10px 6px; font-size:13.5px; color:var(--bd-sub,#666); }
.bd-doc-schedule th{ background:#f0f5fa; color:var(--bd-main-deep,#0e6690); }
.bd-doc-schedule td.bd-red{ color:#c0392b; font-weight:700; }
.bd-doc-schedule-note{ font-size:12px; color:#999; }

.bd-doc-thesis{ padding:80px 0 110px; background:var(--bd-bg-mint,#eef4fa); }
.bd-doc-thesis-panel{ display:none; }
.bd-doc-thesis-panel.bd-active{ display:block; }
.bd-doc-thesis-top{ display:flex; align-items:center; gap:40px; flex-wrap:wrap; margin-bottom:40px; }
.bd-doc-thesis-txt{ flex:1; min-width:240px; }
.bd-doc-thesis-txt strong{ display:block; font-size:22px; font-weight:700; margin-bottom:14px; }
.bd-doc-thesis-txt p{ color:var(--bd-sub,#666); font-size:15px; line-height:1.7; }
.bd-doc-thesis-img{ flex:0 0 200px; aspect-ratio:3/4; border-radius:10px; overflow:hidden; }
.bd-doc-thesis-img img, .bd-doc-thesis-img .bd-ph{ width:100%; height:100%; object-fit:cover; }
.bd-doc-thesis-cite{ flex:1; min-width:240px; background:#fff; border-radius:10px; padding:22px 24px; }
.bd-doc-thesis-cite span{ color:var(--bd-main,#188FCA); font-size:13px; display:block; margin-bottom:8px; }
.bd-doc-thesis-cite p{ font-size:14px; line-height:1.6; margin-bottom:10px; }
.bd-doc-thesis-cite b{ font-size:13px; color:var(--bd-sub,#666); font-weight:400; }
.bd-doc-paper-list{ max-height:260px; overflow-y:auto; background:#fff; border-radius:10px; padding:20px 24px; }
.bd-doc-paper-list li{ font-size:13px; color:var(--bd-sub,#666); line-height:1.9; padding-bottom:8px; border-bottom:1px dashed #eee; margin-bottom:8px; }
.bd-doc-paper-list li:last-child{ border-bottom:none; margin-bottom:0; }
@media (max-width:768px){ .bd-doc-panel-img{ flex:0 0 auto; width:100%; aspect-ratio:4/3; } }

/* ===== 첨단보유장비 (intro_1_3.php) ===== */
.bd-equip-intro{ padding:80px 0 0; overflow:hidden; }
.bd-equip-intro .bd-w1500{ display:flex; align-items:center; gap:60px; flex-wrap:wrap; padding-bottom:60px; }
.bd-equip-intro-txt{ flex:1; min-width:280px; }
.bd-equip-intro-txt h4{ font-size:clamp(22px,3vw,32px); font-weight:700; line-height:1.5; color:var(--bd-font,#222); margin-bottom:20px; }
.bd-equip-intro-txt h4 b{ color:var(--bd-main-deep,#0e6690); }
.bd-equip-intro-txt p{ color:var(--bd-sub,#666); font-size:15.5px; line-height:1.8; }
.bd-equip-intro-img{ flex:1; min-width:280px; aspect-ratio:560/400; border-radius:14px; overflow:hidden; }
.bd-equip-intro-img img, .bd-equip-intro-img .bd-ph{ width:100%; height:100%; object-fit:cover; }

.bd-rolling{ background:var(--bd-main-deep,#0e6690); padding:18px 0; overflow:hidden; white-space:nowrap; }
.bd-rolling-track{ display:inline-block; animation:bdRollX 22s linear infinite; }
.bd-rolling-track span{ font-family:'Marcellus'; font-size:22px; color:rgba(255,255,255,.85); padding:0 6px; }
@keyframes bdRollX{ from{ transform:translateX(0); } to{ transform:translateX(-50%); } }

.bd-equip-list{ padding:80px 0 110px; }
.bd-equip-item{ display:flex; align-items:center; gap:50px; flex-wrap:wrap; margin-bottom:50px; }
.bd-equip-item-txt{ flex:1.1; min-width:280px; }
.bd-equip-item-txt b{ display:block; font-size:24px; font-weight:700; color:var(--bd-font,#222); margin-bottom:8px; }
.bd-equip-item-txt span{ display:block; color:var(--bd-main,#188FCA); font-size:14px; margin-bottom:18px; }
.bd-equip-item-txt p{ color:var(--bd-sub,#666); font-size:15px; line-height:1.85; }
.bd-equip-item-img{ flex:1; min-width:280px; aspect-ratio:500/380; border-radius:14px; overflow:hidden; }
.bd-equip-item-img img, .bd-equip-item-img .bd-ph{ width:100%; height:100%; object-fit:cover; }

.bd-pagination{ display:flex; justify-content:center; align-items:center; gap:10px; }
.bd-pg-arrow, .bd-pg-num{
  display:flex; align-items:center; justify-content:center; width:36px; height:36px;
  border-radius:50%; color:var(--bd-sub,#666); font-size:14px; font-weight:600; transition:.2s;
}
.bd-pg-arrow{ color:var(--bd-main-deep,#0e6690); }
.bd-pg-num.bd-active{ background:var(--bd-main,#188FCA); color:#fff; }
.bd-pg-num:hover{ background:#eef3fa; }

/* ===== 병원둘러보기 / 시설둘러보기 (intro_3.php) ===== */
.bd-tour{ padding:80px 0 110px; }
.bd-tour-tit{ position:relative; max-width:640px; margin-bottom:50px; }
.bd-tour-tit h4{ font-size:clamp(22px,3vw,32px); font-weight:700; line-height:1.5; color:var(--bd-font,#222); margin-bottom:16px; }
.bd-tour-tit h4 b{ color:var(--bd-main-deep,#0e6690); }
.bd-tour-tit p{ color:var(--bd-sub,#666); font-size:15.5px; }
.bd-tour-deco{ position:absolute; right:0; top:0; opacity:.6; }

.bd-tour-area{ display:flex; gap:24px; height:min(70vh,640px); }
.bd-tour-main{ flex:1; min-width:0; position:relative; height:100%; border-radius:14px; overflow:hidden; }
.bd-tour-main .swiper-slide img, .bd-tour-main .swiper-slide .bd-ph{ width:100%; height:100%; object-fit:cover; }
.bd-tour-title-box{
  position:absolute; left:24px; bottom:24px; z-index:2;
  background:rgba(20,30,24,.55); backdrop-filter:blur(4px);
  padding:10px 22px; border-radius:99px;
}
.bd-tour-title-box p{ color:#fff; font-size:15px; font-weight:600; margin:0; }
.bd-tour-prev, .bd-tour-next{
  position:absolute; top:50%; transform:translateY(-50%); z-index:2;
  width:42px; height:42px; border-radius:50%; background:rgba(255,255,255,.85); border:none; cursor:pointer;
}
.bd-tour-prev{ left:16px; } .bd-tour-next{ right:16px; }
.bd-tour-prev:before, .bd-tour-next:before{
  content:''; position:absolute; top:50%; left:50%; width:9px; height:9px;
  border-top:2px solid var(--bd-main-deep,#0e6690); border-right:2px solid var(--bd-main-deep,#0e6690);
}
.bd-tour-prev:before{ transform:translate(-30%,-50%) rotate(-135deg); }
.bd-tour-next:before{ transform:translate(-70%,-50%) rotate(45deg); }

/* PC: 세로 썸네일 스와이퍼 (JS에서도 direction:'vertical'로 초기화됨) */
.bd-tour-thumbs{ width:150px; height:100%; max-height:100%; overflow:hidden; }
.bd-tour-thumbs .swiper-slide{ height:100px !important; border-radius:8px; overflow:hidden; opacity:.5; cursor:pointer; transition:.2s; }
.bd-tour-thumbs .swiper-slide-thumb-active{ opacity:1; outline:2px solid var(--bd-main,#188FCA); outline-offset:2px; }
.bd-tour-thumbs .swiper-slide img, .bd-tour-thumbs .swiper-slide .bd-ph{ width:100%; height:100%; object-fit:cover; }

/* 모바일: 가로 썸네일 스와이퍼 (JS에서도 direction:'horizontal'로 초기화해야 함 - 방향 불일치 시
   세로 스와이퍼 높이 계산이 깨져 컨테이너가 수천~수만 px로 폭주하는 버그가 있었습니다) */
@media (max-width:900px){
  .bd-tour-area{ flex-direction:column; height:auto; max-height:none; }
  .bd-tour-main{ height:auto; aspect-ratio:4/3; max-height:80vh; }
  .bd-tour-thumbs{
    width:100%; height:100px; max-height:100px; /* 안전장치: 방향이 잘못 초기화되어도 컨테이너가 이 이상 커지지 않음 */
  }
  .bd-tour-thumbs .swiper-slide{ height:100% !important; width:130px !important; }
}

/* 진료시간 안내 / 오시는 길 (intro_1_4.php 하단) */
.bd-tour-hours{ padding:20px 0 70px; }
.bd-tour-location{ padding:0 0 100px; }
.bd-tour-sub-tit h4{ font-size:clamp(22px,2.8vw,28px); font-weight:700; color:var(--bd-font,#222); margin-bottom:26px; }

.bd-time-table{ display:flex; flex-direction:column; gap:14px; max-width:720px; }
.bd-time-table li{ display:flex; gap:14px; flex-wrap:wrap; }
.bd-tt-col{
  flex:1; min-width:220px; display:flex; align-items:center; justify-content:space-between;
  background:#f0f5fa; border-radius:10px; padding:18px 24px;
}
.bd-tt-col.bd-tt-lunch, .bd-tt-col.bd-tt-holiday{ background:#fdf4f2; }
.bd-tt-day span{ font-weight:700; color:var(--bd-main-deep,#0e6690); font-size:15px; }
.bd-tt-col.bd-tt-lunch .bd-tt-day span, .bd-tt-col.bd-tt-holiday .bd-tt-day span{ color:#c0392b; }
.bd-tt-time{ color:var(--bd-sub,#666); font-size:14.5px; }

.bd-address{ display:flex; align-items:center; gap:10px; margin-bottom:24px; }
.bd-address svg{ width:22px; height:22px; flex-shrink:0; }
.bd-address span{ font-size:15.5px; color:var(--bd-font,#222); font-weight:600; }
.bd-tour-map{ aspect-ratio:1500/500; border-radius:14px; overflow:hidden; }

.bd-tour-map-grid{ display:grid; grid-template-columns:1fr 1fr; gap:20px; }
.bd-tour-map-grid .bd-tour-map{ aspect-ratio:4/3; }
@media (max-width:768px){ .bd-tour-map-grid{ grid-template-columns:1fr; } }

.bd-tour-map-kakao{ position:relative; background:#f4f4f4; }
.bd-tour-map-kakao .root_daum_roughmap{ width:100% !important; height:100% !important; }
.bd-tour-map-kakao .root_daum_roughmap_landing{ position:absolute !important; inset:0 !important; }
.bd-tour-map-kakao iframe{ width:100% !important; height:100% !important; border-radius:14px; }
.bd-tour-map img, .bd-tour-map .bd-ph{ width:100%; height:100%; object-fit:cover; }

.bd-transit-grid{ display:grid; grid-template-columns:repeat(2,1fr); gap:20px; margin-top:24px; }
.bd-transit-grid > div{ background:#f0f5fa; border-radius:10px; padding:22px 24px; }
.bd-transit-grid b{ display:block; color:var(--bd-main-deep,#0e6690); font-size:14.5px; margin-bottom:8px; }
.bd-transit-grid p{ color:#666; font-size:13px; line-height:1.7; }
@media (max-width:600px){ .bd-transit-grid{ grid-template-columns:1fr; } }
@media (max-width:600px){ .bd-tt-col{ flex-direction:column; align-items:flex-start; gap:6px; } }

/* 첨단보유장비 - 카드 좌우교차 배치 */
.bd-equip-item.bd-reverse{ flex-direction:row-reverse; }

/* 첨단보유장비 - 보유장비 전체 리스트 테이블 */
.bd-equip-full{ padding:20px 0 110px; }
.bd-equip-tablewrap{ overflow-x:auto; }
.bd-equip-table{ width:100%; min-width:820px; border-collapse:collapse; }
.bd-equip-table th, .bd-equip-table td{
  border:1px solid #eee; padding:12px 10px; font-size:13px; color:#444;
  text-align:center; vertical-align:middle; line-height:1.5; word-break:keep-all;
}
.bd-equip-table thead th{ background:#f0f5fa; color:var(--bd-main-deep,#0e6690); }
.bd-equip-table tbody tr:nth-child(even){ background:#fafcfb; }
.bd-equip-table tbody td:nth-child(4){ text-align:left; }
.bd-equip-table tbody td:nth-child(6){ text-align:left; color:#888; font-size:12px; }