/* ===== 교육 상세 CSS ===== */

/* 우측 상단 액션 영역 (강의 목록 보기 등) */
.edv_topbar_actions { display:flex; justify-content:flex-end; margin:0 0 14px; }
.edv_btn_list {
  display:inline-block;
  padding:8px 16px;
  background:#f3f4f6;
  color:#555;
  font-size:13px;
  border:1px solid #e5e7eb;
  border-radius:6px;
  text-decoration:none;
  transition:background-color .15s, color .15s, border-color .15s;
}
.edv_btn_list:hover { background:#e5e7eb; color:#333; border-color:#d1d5db; }

.edu_breadcrumb { font-size:18px; color:#888; margin-bottom:20px; }
@media (max-width:640px) { .edu_breadcrumb { font-size:14px; } }
.edu_breadcrumb a { color:#888; text-decoration:none; }
.edu_breadcrumb a:hover { color:#333; }
.edu_breadcrumb span { margin:0 4px; }

/* ===== 3컬럼 상단 ===== */
.edv_top {
  display:grid;
  grid-template-columns: 1.2fr 1fr 1fr; /* fallback */
  grid-template-columns: var(--edu-detail-img-ratio, 1.2fr) var(--edu-detail-info-ratio, 1fr) var(--edu-detail-booking-ratio, 1fr);
  gap: 30px;
  gap: var(--edu-detail-gap, 30px);
  margin-bottom:40px;
  width:100% !important;
}
@media (max-width:1024px) { .edv_top { grid-template-columns:1fr 1fr !important; } .edv_image { grid-column:1/3; } }
@media (max-width:640px) {
  .edv_top { grid-template-columns:1fr !important; }
  .edv_image { grid-column:auto; max-height:none !important; }
  /* 모바일: 이미지 가로 100% — aspect-ratio/max-height 해제하고 원본 비율로 꽉 채움 */
  .edv_img_wrap { aspect-ratio:auto !important; max-height:none !important; width:100% !important; }
  .edv_img_wrap img { width:100% !important; height:auto !important; object-fit:contain !important; }
}

.edv_col { width:100%; }

/* 이미지 컬럼 공통 */
.edv_image { max-height: var(--edu-detail-img-maxh, 500px); }

/* 이미지 (단일) */
.edv_img_wrap { border-radius:10px; overflow:hidden; background:#f5f5f5; max-height:var(--edu-detail-img-maxh, 500px); aspect-ratio:var(--edu-detail-img-aspect, 4/3); }
.edv_img_wrap img { width:100%; height:100%; object-fit:cover; display:block; }
.edv_noimg { display:flex; align-items:center; justify-content:center; background:#f1f3f5; color:#adb5bd; height:100%; }
.edv_noimg_inner { display:flex; flex-direction:column; align-items:center; gap:8px; }
.edv_noimg_inner svg { opacity:.8; }
.edv_noimg_txt { font-size:14px; color:#adb5bd; font-weight:500; }

/* ===== 스와이퍼 모드 ===== */
.edv_swiper_wrap { border-radius:10px; overflow:hidden; background:#f5f5f5; }
.edv_swiper_main { width:100%; aspect-ratio:var(--edu-detail-img-aspect, 4/3); max-height:var(--edu-detail-img-maxh, 500px); overflow:hidden; }
.edv_swiper_main .swiper-slide { display:flex; align-items:center; justify-content:center; background:#f5f5f5; height:100%; }
.edv_swiper_main .swiper-slide img { width:100%; height:100%; object-fit:cover; display:block; }
.edv_swiper_main .swiper-button-prev,
.edv_swiper_main .swiper-button-next { color:#fff; --swiper-navigation-size:24px; background:rgba(0,0,0,.2); width:36px; height:36px; border-radius:50%; }
.edv_swiper_main .swiper-button-prev::after,
.edv_swiper_main .swiper-button-next::after { font-size:14px; }
.edv_swiper_main .swiper-pagination-bullet-active { background:var(--primary, #2196f3); }

/* ===== 썸네일 우측 모드 ===== */
.edv_thumb_thumb_right .edv_thumb_layout {
  display: flex;
  flex-direction: row;
  gap: 10px;
  max-height: var(--edu-detail-img-maxh, 500px);
}
.edv_thumb_thumb_right .edv_main_img {
  flex: 1;
  min-width: 0;
  border-radius: 10px;
  overflow: hidden;
  background: #f5f5f5;
  display: flex;
  align-items: center;
  justify-content: center;
}
.edv_thumb_thumb_right .edv_main_img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  max-height: var(--edu-detail-img-maxh, 500px);
}
.edv_thumb_thumb_right .edv_thumb_nav {
  display: flex;
  flex-direction: column;
  gap: 6px;
  width: 76px;
  flex-shrink: 0;
  overflow-y: auto;
  max-height: var(--edu-detail-img-maxh, 500px);
}
.edv_thumb_thumb_right .edv_thumb_item {
  width: 76px;
  height: 76px;
  border-radius: 6px;
  overflow: hidden;
  cursor: pointer;
  border: 2px solid #e5e5e5;
  transition: border-color .2s;
  flex-shrink: 0;
}
.edv_thumb_thumb_right .edv_thumb_item:hover { border-color: #bbb; }
.edv_thumb_thumb_right .edv_thumb_item.on { border-color: var(--primary, #2196f3); }
.edv_thumb_thumb_right .edv_thumb_item img { width:100%; height:100%; object-fit:cover; display:block; }

/* ===== 썸네일 하단 모드 ===== */
.edv_thumb_thumb_bottom .edv_thumb_layout {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.edv_thumb_thumb_bottom .edv_main_img {
  width: 100%;
  border-radius: 10px;
  overflow: hidden;
  background: #f5f5f5;
  display: flex;
  align-items: center;
  justify-content: center;
  max-height: var(--edu-detail-img-maxh, 500px);
}
.edv_thumb_thumb_bottom .edv_main_img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  max-height: var(--edu-detail-img-maxh, 500px);
}
.edv_thumb_thumb_bottom .edv_thumb_nav {
  display: flex;
  flex-direction: row;
  gap: 6px;
  flex-wrap: nowrap;
  overflow-x: auto;
  padding-bottom: 4px;
}
.edv_thumb_thumb_bottom .edv_thumb_item {
  width: 68px;
  height: 68px;
  border-radius: 6px;
  overflow: hidden;
  cursor: pointer;
  border: 2px solid #e5e5e5;
  transition: border-color .2s;
  flex-shrink: 0;
}
.edv_thumb_thumb_bottom .edv_thumb_item:hover { border-color: #bbb; }
.edv_thumb_thumb_bottom .edv_thumb_item.on { border-color: var(--primary, #2196f3); }
.edv_thumb_thumb_bottom .edv_thumb_item img { width:100%; height:100%; object-fit:cover; display:block; }

/* 모바일 썸네일 */
@media (max-width:640px) {
  .edv_thumb_thumb_right .edv_thumb_layout { flex-direction: column; }
  .edv_thumb_thumb_right .edv_thumb_nav { flex-direction: row; width: auto; max-height: none; overflow-x: auto; overflow-y: hidden; }
  .edv_thumb_thumb_right .edv_thumb_item { width: 60px; height: 60px; }
}

/* 정보 */
.edv_badge { display:inline-block; padding:4px 12px; font-size:var(--edu-detail-cate-size, 12px); color:#fff; background:var(--edu-detail-badge-color, var(--primary, #e74c3c)); border-radius:var(--edu-detail-badge-radius, 4px); font-weight:600; margin-bottom:8px; }
.edv_category { font-size:var(--edu-detail-cate-size, 13px); color:#888; margin-bottom:4px; }
/* ★ 관리자 전용: 소속 교육 과정 제목 (고객에게는 출력 자체가 안 됨) */
.edv_edu_admin { display:inline-block; margin-bottom:6px; padding:3px 10px; background:#fef3c7; color:#92400e; border:1px dashed #fcd34d; border-radius:5px; font-size:13px; font-weight:600; line-height:1.4; }
.edv_title { font-size:var(--edu-detail-title-size, 24px); font-weight:700; color:#222; margin:0 0 6px; line-height:1.4; }
.edv_teacher { font-size:var(--edu-detail-teacher-size, 15px); color:#666; margin-bottom:12px; }

.edv_info_wrap { border-top:var(--edu-detail-info-line, 1px) solid var(--edu-detail-info-line-color, #eee); padding:var(--edu-detail-info-padding, 12px 0 0 0); margin-top:4px; }
.edv_info_wrap.no_line { border-top:none; }
.edv_info_tbl { width:100%; border-collapse:collapse; }
.edv_info_tbl th { text-align:left; font-size:var(--edu-detail-label-size, 13px); color:#888; font-weight:400; padding:var(--edu-detail-row-gap, 8px) 0; width:60px; vertical-align:top; }
.edv_info_tbl td { font-size:var(--edu-detail-value-size, 14px); color:#333; padding:var(--edu-detail-row-gap, 8px) 0; }
.edv_price_val { font-size:18px; font-weight:700; color:var(--primary,#2196f3); }
.edv_remain { font-size:11px; color:#e67e22; }

/* ===== 예약 칼럼 ===== */
.edv_booking { background:#f8f9fa; border-radius:10px; padding:16px; border:1px solid #e8e8e8; }
.edv_booking_title { font-size:14px; font-weight:700; color:#2c3e50; margin-bottom:10px; }

/* 달력+시간 컨테이너 */
.edv_cal_container { width:100%; }

/* 하단 모드 (기본) - 달력 아래 시간 */
.edv_cal_bottom { display:block; }
.edv_cal_bottom .edv_cal_left { width:100%; }
.edv_cal_bottom .edv_cal_right { width:100%; margin-top:12px; }

/* 좌우 모드 - 달력 좌 + 시간/선택내역 우 */
.edv_cal_side { display:flex; gap:16px; }
.edv_cal_side .edv_cal_left { flex:1; min-width:0; }
.edv_cal_side .edv_cal_right {
  flex:1; min-width:0; margin-top:0;
  border-left:1px solid #e8e8e8; padding-left:16px;
  display:flex; flex-direction:column;
}
.edv_cal_side .edv_slots_wrap { flex:1; overflow-y:auto; min-height:0; }
.edv_cal_side .edv_slots_placeholder { flex:1; display:flex; align-items:center; justify-content:center; color:#bbb; }
.edv_cal_side .edv_result_box { margin-top:auto; flex-shrink:0; border-top:1px solid #e8e8e8; padding-top:12px; }
@media (max-width:640px) {
  .edv_cal_side { flex-direction:column; }
  .edv_cal_side .edv_cal_right { margin-top:12px; border-left:none; padding-left:0; border-top:1px solid #e8e8e8; padding-top:12px; }
}

/* 달력 */
.edv_calendar { margin-bottom:12px; }
.edv_cal_head { display:flex; justify-content:space-between; align-items:center; padding:10px 0; }
.edv_cal_head button { background:none; border:none; font-size:16px; cursor:pointer; color:#333; padding:4px 8px; border-radius:4px; }
.edv_cal_head button:hover { background:#eee; }
.edv_cal_head span { font-size:15px; font-weight:700; color:#222; }
.edv_cal_days { display:grid; grid-template-columns:repeat(7,1fr); text-align:center; font-size:11px; color:#888; padding:4px 0; border-bottom:1px solid #eee; }
.edv_cal_days .sun { color:#e74c3c; }
.edv_cal_days .sat { color:#3498db; }
.edv_cal_grid { display:grid; grid-template-columns:repeat(7,1fr); gap:3px; padding:6px 0; }
.edv_cal_cell {
  aspect-ratio:1; display:flex; flex-direction:column; align-items:center; justify-content:center;
  font-size:13px; border-radius:50%; cursor:pointer; transition:all .15s; color:#333; position:relative;
}
.edv_cal_cell:hover:not(.disabled):not(.empty):not(.selected) { background:#ebf5fb; }
.edv_cal_cell.empty { cursor:default; }
.edv_cal_cell.today { font-weight:700; }
.edv_cal_cell.today::after { content:''; width:4px; height:4px; background:#e74c3c; border-radius:50%; position:absolute; bottom:3px; }
.edv_cal_cell.selected { background:var(--primary,#27ae60); color:#fff; font-weight:700; }
/* 활성 셀은 hover 해도 활성 컬러 그대로 유지 */
.edv_cal_cell.selected:hover { background:var(--primary,#27ae60); color:#fff; opacity:1; }
.edv_cal_cell.disabled { color:#ddd; cursor:not-allowed; }
.edv_cal_x { font-size:8px; color:#ddd; font-style:normal; line-height:1; }

/* 시간대 선택 */
.edv_slots_wrap { margin-bottom:12px; }
.edv_slots_list { display:flex; flex-direction:column; gap:6px; }
.edv_slot_item {
  display:flex; align-items:center; gap:8px; padding:10px 12px;
  background:#fff; border:1px solid #e0e0e0; border-radius:8px; cursor:pointer;
  transition:all .2s; font-size:13px;
}
.edv_slot_item:hover:not(.disabled) { border-color:var(--primary,#3498db); }
.edv_slot_item.selected { border-color:var(--primary,#27ae60); background:#f0fdf4; }
.edv_slot_item.selected .edv_slot_num { background:var(--primary,#27ae60); color:#fff; }
.edv_slot_item.disabled { opacity:.5; cursor:not-allowed; background:#fafafa; }
.edv_slot_num { font-size:11px; font-weight:700; background:#ebf5fb; color:#3498db; padding:3px 8px; border-radius:4px; min-width:40px; text-align:center; }
.edv_slot_time { font-weight:600; color:#222; }
.edv_slot_remain { font-size:12px; color:#888; margin-left:auto; }
.edv_slot_remain.warn { color:#e67e22; font-weight:600; }
.edv_slot_full { font-size:11px; color:#e74c3c; font-weight:600; margin-left:4px; }

/* 결과 박스 */
/* 범위 선택 하이라이트 */
.edv_cal_cell.in-range { background:rgba(39,174,96,0.12); color:#222; }

/* 선택 결과 박스 */
.edv_result_box {
  margin-top:12px; padding:12px 14px; background:#fff; border:1px solid #e8e8e8;
  border-radius:8px;
}
.edv_result_inner { display:flex; align-items:center; justify-content:space-between; gap:12px; }
@media (max-width:1024px) { .edv_result_inner { flex-direction:column; align-items:stretch; gap:8px; } .edv_result_right { align-items:flex-end; } }
.edv_result_left { flex:1; }
.edv_result_right { flex-shrink:0; display:flex; flex-direction:column; align-items:flex-start; gap:2px; }
.edv_result_label { font-size:11px; color:#888; white-space:nowrap; }
.edv_result_row { font-size:13px; color:#333; margin-bottom:2px; }
.edv_result_row strong { color:#222; margin-right:8px; }

/* placeholder */
.edv_slots_placeholder {
  padding:40px 20px; text-align:center; color:#aaa; font-size:13px;
}

/* 시간 스크롤 (좌우 모드) */
.edv_cal_side .edv_cal_right {
  display:flex; flex-direction:column;
}
.edv_cal_side .edv_slots_wrap {
  flex:1; overflow-y:auto; max-height:none;
}
.edv_cal_side .edv_slots_placeholder {
  flex:1; display:flex; align-items:center; justify-content:center;
}

/* 모집형 정보 */
.edv_recruit_info { padding:10px 0; }
.edv_recruit_date { font-size:15px; font-weight:600; color:#222; margin-bottom:2px; }
.edv_recruit_time { font-size:14px; color:#666; }

/* 인원수 */
.edv_persons { display:flex; flex-direction:column; align-items:flex-end; padding:8px 0; border-top:1px solid #eee; margin-top:8px; gap:4px; }
.edv_persons span { font-size:12px; color:#888; }
.edv_qty_wrap { display:inline-flex; align-items:center; gap:0; }
.edv_qty_wrap button { width:30px; height:30px; border:1px solid #ddd; background:#fff; font-size:14px; cursor:pointer; color:#333; line-height:1; display:flex; align-items:center; justify-content:center; padding:0; }
.edv_qty_wrap button:hover { background:#f4f4f4; }
.edv_qty_wrap input { width:38px !important; height:30px !important; min-height:30px !important; max-height:30px !important; box-sizing:border-box !important; border-top:1px solid #ddd !important; border-bottom:1px solid #ddd !important; border-left:none !important; border-right:none !important; border-radius:0 !important; text-align:center; font-size:14px; font-weight:600; padding:0 0 0 0 !important; padding-left:0 !important; padding-right:0 !important; margin:0 !important; line-height:28px !important; -moz-appearance:textfield; appearance:textfield; }
.edv_qty_wrap input::-webkit-inner-spin-button { -webkit-appearance:none; }

/* 금액 */
.edv_total { display:flex; justify-content:space-between; align-items:center; padding:10px 0; }
.edv_total span { font-size:13px; color:#666; }
.edv_total strong { font-size:20px; color:var(--primary,#2196f3); }

/* 신청 버튼 */
.edv_btn_apply {
  display:block; width:100%; padding:14px; text-align:center;
  background:var(--primary,#27ae60); color:#fff; font-size:16px; font-weight:700;
  border:none; border-radius:8px; cursor:pointer; transition:opacity .2s; margin-top:8px;
}
.edv_btn_apply:hover { opacity:.9; }
/* 비활성 버튼 — 신청 불가 기간 (접수종료/접수예정/마감 등) */
.edv_btn_disabled {
  display:block; width:100%; padding:14px; text-align:center;
  background:#f0f0f0; color:#999; font-size:16px; font-weight:700;
  border:1px solid #e5e5e5; border-radius:8px; margin-top:8px;
  cursor:not-allowed;
}
.edv_btn_disabled:hover { background:#f0f0f0; }

/* ===== 다일선택 모드 ===== */
/* 이미지/정보 숨기기 */
.edv_hide_img .edv_image { display:none !important; }
.edv_hide_info .edv_info { display:none !important; }
/* 둘 다 숨김 → 1컬럼 */
.edv_hide_img.edv_hide_info { grid-template-columns:1fr !important; }
/* 이미지만 숨김 → 정보비율 + 달력비율 */
.edv_hide_img:not(.edv_hide_info) { grid-template-columns:var(--edu-detail-info-ratio, 1fr) var(--edu-detail-booking-ratio, 1fr) !important; }
/* 정보만 숨김 → 이미지비율 + 달력비율 */
.edv_hide_info:not(.edv_hide_img) { grid-template-columns:var(--edu-detail-img-ratio, 1fr) var(--edu-detail-booking-ratio, 1fr) !important; }

/* 3단 컨테이너 - 기본: 세로 스택 (좁은 컬럼 내) */
.edv_multi_container {
  display:grid;
  grid-template-columns:1fr;
  gap:12px;
  width:100%;
}
.edv_multi_col {
  background:#fff;
  border:1px solid #e8e8e8;
  border-radius:8px;
  padding:14px;
  display:flex;
  flex-direction:column;
}
.edv_multi_calendar { align-self:start !important; }
.edv_multi_calendar .edv_calendar { }
/* 세로 스택 시(3컬럼 모두 표시) 내부 패널 배경 간소화 - booking 자체가 배경 */
.edv_multi_mode:not(.edv_hide_img):not(.edv_hide_info) .edv_multi_col {
  background:transparent; border:none; padding:0;
}
.edv_multi_mode:not(.edv_hide_img):not(.edv_hide_info) .edv_multi_col + .edv_multi_col {
  border-top:1px solid #e8e8e8; padding-top:12px; margin-top:4px;
}

/* 추가 영역 */
.edv_multi_add_area {
  margin-top:auto;
  padding-top:12px;
  border-top:1px solid #e8e8e8;
}
.edv_multi_add_row {
  display:flex;
  align-items:center;
  justify-content:space-between;
  margin-bottom:8px;
}
/* 다일 선택: 전체 공통 인원 고정 박스 (시간 선택 위) */
.edv_multi_qty_fixed {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  padding:10px 12px;
  margin-bottom:12px;
  background:#f8fafc;
  border:1px solid #e2e8f0;
  border-radius:8px;
}
.edv_multi_add_label { font-size:13px; color:#555; }
.edv_btn_add_item {
  display:block;
  width:100%;
  padding:14px;
  text-align:center;
  background:var(--secondary,#555);
  color:#fff;
  font-size:16px;
  font-weight:700;
  border:none;
  border-radius:8px;
  cursor:pointer;
  transition:opacity .2s;
}
.edv_btn_add_item:hover { opacity:.85; }
.edv_btn_add_item i { margin-right:4px; }

/* 장바구니 목록 */
.edv_multi_cart {
  display:flex;
  flex-direction:column;
}
.edv_multi_list {
  flex:1;
  overflow-y:auto;
  max-height:300px;
  min-height:100px;
}
.edv_multi_empty {
  padding:30px 10px;
  text-align:center;
  color:#bbb;
  font-size:13px;
}
.edv_multi_item {
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding:10px 12px;
  background:#fff;
  border:1px solid #e8e8e8;
  border-radius:6px;
  margin-bottom:6px;
}
.edv_multi_item_info {
  display:flex;
  flex-direction:column;
  gap:2px;
}
.edv_multi_item_date { font-size:13px; font-weight:600; color:#222; }
.edv_multi_item_time { font-size:12px; color:#666; }
.edv_multi_item_persons { font-size:11px; color:#888; }
.edv_multi_item_del {
  width:28px;
  height:28px;
  border:none;
  background:#f5f5f5;
  color:#e74c3c;
  border-radius:50%;
  cursor:pointer;
  display:flex;
  align-items:center;
  justify-content:center;
  font-size:14px;
  flex-shrink:0;
}
.edv_multi_item_del:hover { background:#fde8e8; }
.edv_multi_total { margin-top:auto; padding-top:8px; }

/* 다일모드: 예약칸은 자기 컬럼에 배치 (3단 내부는 세로 스택) */
/* 이미지+정보 둘 다 숨김이면 전체 폭 → 내부 3단 가로 배치 */
.edv_hide_img.edv_hide_info.edv_multi_mode .edv_booking {
  grid-column:1 / -1;
}
.edv_hide_img.edv_hide_info .edv_multi_container {
  grid-template-columns:1fr 1fr 1fr;
}
/* 이미지 또는 정보 하나만 숨기면: 예약 영역 넓어짐 → 내부 3단 가로 */
.edv_hide_img:not(.edv_hide_info) .edv_multi_container,
.edv_hide_info:not(.edv_hide_img) .edv_multi_container {
  grid-template-columns:1fr 1fr 1fr;
}

@media (max-width:1024px) {
  .edv_hide_img.edv_hide_info .edv_multi_container { grid-template-columns:1fr 1fr; }
  .edv_hide_img.edv_hide_info .edv_multi_cart { grid-column:1/3; }
  .edv_hide_img:not(.edv_hide_info) .edv_multi_container,
  .edv_hide_info:not(.edv_hide_img) .edv_multi_container { grid-template-columns:1fr 1fr; }
  .edv_hide_img:not(.edv_hide_info) .edv_multi_cart,
  .edv_hide_info:not(.edv_hide_img) .edv_multi_cart { grid-column:1/3; }
}
@media (max-width:640px) {
  .edv_hide_img.edv_hide_info .edv_multi_container,
  .edv_hide_img:not(.edv_hide_info) .edv_multi_container,
  .edv_hide_info:not(.edv_hide_img) .edv_multi_container { grid-template-columns:1fr; }
  .edv_hide_img.edv_hide_info .edv_multi_cart,
  .edv_hide_img:not(.edv_hide_info) .edv_multi_cart,
  .edv_hide_info:not(.edv_hide_img) .edv_multi_cart { grid-column:auto; }
}

/* ===== 2col 레이아웃: 이미지+정보(좌, 세로 스택) | 달력3단(우, 풀하이트) ===== */
.edv_multi_2col.edv_top {
  grid-template-columns:var(--edu-detail-img-ratio, 0.8fr) 1fr !important;
  grid-template-rows:auto 1fr;
}
.edv_multi_2col .edv_image { grid-column:1; grid-row:1; }
.edv_multi_2col .edv_info { grid-column:1; grid-row:2; align-self:start; }
.edv_multi_2col .edv_multi_container { grid-template-columns:1fr 1fr 1fr; }
.edv_multi_2col .edv_multi_col { background:#fff; border:1px solid #e8e8e8; border-radius:8px; padding:14px; }
.edv_multi_2col .edv_multi_calendar { align-self:start; }
/* 2col + 세로스택 간소화 해제 */
.edv_multi_2col:not(.edv_hide_img):not(.edv_hide_info) .edv_multi_col { background:#fff; border:1px solid #e8e8e8; padding:14px; }
.edv_multi_2col:not(.edv_hide_img):not(.edv_hide_info) .edv_multi_col + .edv_multi_col { border-top:1px solid #e8e8e8; padding-top:14px; margin-top:0; }

/* 2col + 이미지 숨김 → 정보(좌) + 달력3단(우) */
.edv_multi_2col.edv_hide_img .edv_info { grid-column:1; grid-row:1; }
.edv_multi_2col.edv_hide_img .edv_booking { grid-column:2; grid-row:1; }
.edv_multi_2col.edv_hide_img { grid-template-columns:var(--edu-detail-info-ratio, 0.5fr) 1fr !important; }
/* 2col + 정보 숨김 → 이미지(좌) + 달력3단(우) */
.edv_multi_2col.edv_hide_info .edv_image { grid-column:1; grid-row:1; }
.edv_multi_2col.edv_hide_info .edv_booking { grid-column:2; grid-row:1; }
.edv_multi_2col.edv_hide_info { grid-template-columns:var(--edu-detail-img-ratio, 0.8fr) 1fr !important; }
/* 2col + 둘 다 숨김 → 달력만 전체폭 */
.edv_multi_2col.edv_hide_img.edv_hide_info .edv_booking { grid-column:1; grid-row:1; }

@media (max-width:1024px) {
  .edv_multi_2col.edv_top { grid-template-columns:1fr !important; grid-template-rows:auto; }
  .edv_multi_2col .edv_image,
  .edv_multi_2col .edv_info,
  .edv_multi_2col .edv_booking { grid-column:1; grid-row:auto; }
  .edv_multi_2col .edv_multi_container { grid-template-columns:1fr 1fr; }
  .edv_multi_2col .edv_multi_cart { grid-column:1/3; }
}
@media (max-width:640px) {
  .edv_multi_2col .edv_multi_container { grid-template-columns:1fr; }
  .edv_multi_2col .edv_multi_cart { grid-column:auto; }
}

/* ===== 탭 영역 위치 옵션 — 'top' (썸네일+정보 바로 아래, .edv_top 그리드 자식으로 삽입) ===== */
.edv_top.edv_top_has_tab { align-items: start; grid-template-rows: max-content auto; }
.edv_top.edv_top_has_tab > .edv_image,
.edv_top.edv_top_has_tab > .edv_info {
  grid-row: 1;
  align-self: start;
}
.edv_top.edv_top_has_tab > .edv_booking {
  grid-row: 1 / span 2;
  align-self: start;
  min-height: 0;
}
.edv_top .edv_tab_wrap_outer.edv_tab_in_grid {
  grid-column: 1 / span 2;
  grid-row: 2;
  align-self: start;
}
/* 2col 모드에서는 그리드가 2칸이므로 전체 폭(좌측 1칸 = 이미지+정보 세로스택 영역)에 위치 */
.edv_top.edv_multi_2col .edv_tab_wrap_outer.edv_tab_in_grid {
  grid-column: 1;
  grid-row: 3;
}
/* 이미지/정보 영역 둘 다 숨겼거나 booking 만 있을 때는 풀폭 */
.edv_top.edv_hide_img.edv_hide_info .edv_tab_wrap_outer.edv_tab_in_grid {
  grid-column: 1 / -1;
}
/* 탭 wrapper 자체 마진 정리 — 사용자 설정 값(--edu-detail-tab-top-gap)은 .edv_tab_wrap 에서 처리 */
.edv_tab_wrap_outer.edv_tab_pos_top { margin-top:0; }
/* 1024px 이하 — 그리드가 단일 컬럼으로 무너지면 탭도 풀폭 */
@media (max-width:1024px) {
  .edv_top .edv_tab_wrap_outer.edv_tab_in_grid,
  .edv_top.edv_multi_2col .edv_tab_wrap_outer.edv_tab_in_grid,
  .edv_top.edv_hide_img.edv_hide_info .edv_tab_wrap_outer.edv_tab_in_grid {
    grid-column: 1 / -1;
    grid-row: auto;
  }
}

/* ===== 탭 ===== */
.edv_tab_wrap { border-top:2px solid #222; width:100% !important; margin-top:var(--edu-detail-tab-top-gap, 40px) !important; }
/* 하단 위치(기본) — .edv_top 의 margin-bottom 으로 간격 적용 (content.skin.php 의 !important 룰 덮어쓰기) */
.edv_top:not(.edv_top_has_tab) { margin-bottom: var(--edu-detail-tab-top-gap, 40px) !important; }
/* 상단 위치 — .edv_top 의 margin-bottom 은 0 (탭이 그리드 안에 있으므로 중복 방지) */
.edv_top.edv_top_has_tab { margin-bottom: 0 !important; }
.edv_tab_nav { display:flex; border-bottom:1px solid #eee; flex-wrap:wrap; }
.edv_tab_btn { padding:var(--edu-detail-tab-padding, 12px 20px); font-size:var(--edu-detail-tab-size, 14px); color:#888; background:none; border:none; cursor:pointer; border-bottom:2px solid transparent; margin-bottom:-1px; transition:all .2s; }
.edv_tab_btn.on { color:#222; font-weight:700; border-bottom-color:var(--primary,#2196f3); }
.edv_tab_panel { display:none; padding:var(--edu-detail-tab-content-padding, 24px 0); }
.edv_tab_panel.on { display:block; }

/* 펼침형 - 전체 펼침 + 탭 sticky 앵커 */
.edv_tab_scroll .edv_tab_panel { display:block; }
.edv_tab_scroll .edv_tab_sticky { position:sticky; top:0; background:#fff; z-index:10; border-bottom:1px solid #eee; }
.edv_section { margin-bottom:var(--edu-detail-section-gap, 20px); }
.edv_section h3 { font-size:var(--edu-detail-section-title-size, 16px); font-weight:700; color:#333; margin:0 0 var(--edu-detail-section-title-gap, 8px); }
.edv_section_body {
  font-size:var(--edu-detail-section-body-size, 14px);
  line-height:1.7;
  color:#555;
  padding:var(--edu-detail-section-body-padding, 0);
  background:var(--edu-detail-section-body-bg, transparent);
  border-radius:var(--edu-detail-section-body-radius, 0);
}
.edv_section_body img { max-width:100%; height:auto; }

/* ===== 이미지 확대보기(라이트박스) ===== */
.edv_zoomable { cursor:zoom-in; }
.edv_lightbox {
  position:fixed; inset:0; z-index:2147483647;
  display:none; align-items:center; justify-content:center;
  background:rgba(0,0,0,.88);
}
.edv_lightbox.on { display:flex; }
.edv_lb_stage {
  position:relative; max-width:92vw; max-height:88vh;
  display:flex; align-items:center; justify-content:center;
}
.edv_lb_stage img {
  max-width:92vw; max-height:88vh;
  object-fit:contain; border-radius:6px;
  box-shadow:0 10px 40px rgba(0,0,0,.5);
}
.edv_lb_close {
  position:absolute; top:18px; right:22px; z-index:2;
  width:44px; height:44px; border:none; border-radius:50%;
  background:rgba(255,255,255,.12); color:#fff;
  font-size:30px; line-height:1; cursor:pointer;
  display:flex; align-items:center; justify-content:center;
  transition:background .15s;
}
.edv_lb_close:hover { background:rgba(255,255,255,.25); }
.edv_lb_nav {
  position:absolute; top:50%; transform:translateY(-50%); z-index:2;
  width:50px; height:50px; border:none; border-radius:50%;
  background:rgba(255,255,255,.12); color:#fff;
  font-size:24px; cursor:pointer;
  display:flex; align-items:center; justify-content:center;
  transition:background .15s;
}
.edv_lb_nav:hover { background:rgba(255,255,255,.28); }
.edv_lb_prev { left:18px; }
.edv_lb_next { right:18px; }
.edv_lb_count {
  position:absolute; bottom:-34px; left:50%; transform:translateX(-50%);
  color:#fff; font-size:14px; letter-spacing:.5px;
  background:rgba(0,0,0,.4); padding:4px 12px; border-radius:14px;
}
@media (max-width:640px){
  .edv_lb_nav { width:40px; height:40px; font-size:20px; }
  .edv_lb_prev { left:8px; } .edv_lb_next { right:8px; }
  .edv_lb_close { top:10px; right:12px; }
}
