/* ============================================================
 * DB손해보험 보험스쿨 랜딩 — dbins.css
 * 화이트 베이스 + DB손해보험 브랜드 블루 포인트
 * ============================================================ */

:root {
  --db-green:        #008043;
  --db-green-rgb: 0, 128, 67;
  --db-blue-dark:   #002457;
  --db-blue-light:  #0066B3;
  --db-blue-soft:   #EAF1FA;
  --db-yellow:      #FFC72C;
  --text:           #06301C;
  --text-mute:      #959595;
  --line:           #E5E7EB;
  --bg:             #FFFFFF;
  --bg-soft:        #F7F9FC;
  --shadow-sm:      0 1px 3px rgba(0,0,0,.06), 0 1px 2px rgba(0,0,0,.04);
  --shadow-md:      0 4px 12px rgba(0,0,0,.04);
  --shadow-lg:      0 12px 32px rgba(0,0,0,.12);
  --radius:         12px;
  --radius-lg:      20px;
  --container:      1280px;
  --header-h:       64px;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); }
body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo",
               "Pretendard", "Noto Sans KR", "Malgun Gothic", sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
p, span { padding: 0;margin: 0; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: 0; background: none; }
h1, h2, h3, h4 { margin: 0; line-height: 1.25; font-weight: 700; }
ul {padding:0; margin:0;}
li {list-style: none;padding:0;margin:0;}
dl, dd, dt {padding:0;margin:0;}

@keyframes fadeUp {
  0% {
    opacity: 0;
    transform: translateY(30px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}
/* 애니메이션을 적용할 클래스 */
.hero .tit img,
.hero .tit .txt,
.hero .tit h1,
.hero .btn-white {
  opacity: 0; /* 처음엔 안 보이게 */
  animation: fadeUp 0.8s ease-out forwards;
}

/* 각 요소별로 등장 순서(지연 시간) 조절 */
.hero .tit img {
  animation-delay: 0.2s;
}

.hero .tit .txt {
  animation-delay: 0.4s;
}

.hero .tit h1 {
  animation-delay: 0.6s;
}

.hero .btn-white {
  animation-delay: 0.9s; /* 버튼은 제일 마지막에 */
}
/* 등장 애니메이션 대상 공통 스타일 */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: all 0.8s cubic-bezier(0.215, 0.61, 0.355, 1); /* 부드러운 감속 효과 */
  visibility: hidden; /* 보이지 않을 때 클릭 방지 */
}

/* 스크롤 감지되어 클래스가 붙었을 때 */
.reveal.active {
  opacity: 1;
  transform: translateY(0);
  visibility: visible;
}

/* 순차적 등장을 위한 딜레이 설정 (카드 등에 사용) */
.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; }
/* ---------- Layout ---------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
}
section { padding: 60px 80px; scroll-margin-top: var(--header-h); }
section.alt { background: var(--bg-soft); }

@media (max-width: 900px) {
  section {
    padding: 24px 20px;
  }
}

.cont.bg {
  background-color: #f5f5f5;
  width: auto;
  margin-left: calc(-50vw + 50%);
  margin-right: calc(-50vw + 50%);
  padding-top: 60px;
  padding-bottom: 60px;
  padding-left: calc((100vw - 1280px) / 2);
  padding-right: calc((100vw - 1280px) / 2);
  align-items: center;
}
@media (max-width: 900px) {
    .cont.bg {
      width: 100vw;
      position: relative;
      left: 50%;
      transform: translateX(-50%); /* 중앙 정렬로 강제 고정 */
      
      padding: 24px 20px !important;
      margin: 0; /* 마진 대신 transform으로 해결 */
    }
}
.bg.primary {
  background-color: rgba(var(--db-green-rgb), 0.08);
}
.bg.gray {
  background-color: #f5f5f5;
}


.sm-tit {
   font-size: clamp(18px, 5vw, 30px);
   color: var(--db-green);
   font-weight: 800;
   margin-bottom:8px;
}
.sm-txt {
   font-size: clamp(16px, 1.6vw, 20px);
   line-height: 1.4;
}

.mb-0 {
  margin-bottom: 0 !important;
}
.pb-0 {
  padding-bottom: 0 !important;
}

.txt-white {
  color: #fff !important;
}
.txt-primary {
  color: var(--db-green);
}
/* top */
.top-landing {
  background-image: url('../img/top-bg.png');
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center;
}

/* ---------- Header ---------- */
.dbins-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--header-h);
  backdrop-filter: blur(8px);
  z-index: 100;
}
.dbins-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  padding:0 80px;
}
/* 기본 상태: 스크롤 로고는 숨김 */
.logo-scroll { display: none; }

/* 스크롤 되었을 때 상태 */
.dbins-header.is-scrolled {
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(8px);
  box-shadow: 0 2px 10px rgba(0,0,0,0.07);
}

.dbins-header.is-scrolled .logo-default { display: none; }
.dbins-header.is-scrolled .logo-scroll { display: block; }

.dbins-nav { display: flex; gap: 28px; align-items: center; }
.dbins-nav a {
  font-size: 16px;
  font-weight: 500;
  color: #fff;
  transition: color .2s;
}
.dbins-header.is-scrolled .dbins-nav a {
  color: var(--text-mute);
}
.dbins-header.is-scrolled .dbins-nav a:hover,
.dbins-header.is-scrolled .dbins-nav a.active {
  color: var(--db-green);
  font-weight: 800;
}

.dbins-nav a:hover { font-weight: 800; }
.dbins-nav a.active { font-weight: 800; }

.dbins-nav-toggle { display: none; }
.dbins-nav .nav-home {
  display: flex;
  align-items: center;
  padding-right: 16px;
  border-right: 1px solid rgba(255, 255, 255, 0.3); /* 기본 흰색 보더 */
}
.dbins-nav .nav-home .icon-home {
  display: inline-block;
  width: 20px;
  height: 20px;
  background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="%23ffffff" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="m3 9 9-7 9 7v11a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2z"/><polyline points="9 22 9 12 15 12 15 22"/></svg>') no-repeat center;
  background-size: contain;
}
.dbins-header.is-scrolled .nav-home {
  border-right-color: var(--line, #eee); /* 스크롤 시 회색 보더 */
}

.dbins-header.is-scrolled .icon-home {
  background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="%23999999" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="m3 9 9-7 9 7v11a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2z"/><polyline points="9 22 9 12 15 12 15 22"/></svg>');
}
.nav-join {
  padding: 4px 16px;
  border-radius: 30px;
  border: 1px solid #fff;
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  transition: opacity 0.2s;
}

.nav-join:hover {
  opacity: 0.8;
  background-color: rgba(255, 255, 255, 0.2);
}

.dbins-header.is-scrolled .nav-join {
  border: 1px solid var(--db-green);
  color: var(--db-green) !important;
}

@media (max-width: 768px) {
  .dbins-header .container {
    flex-direction: column;
    justify-content: center;
    gap:8px;
    padding: 0 16px;
  }
  .dbins-nav {
    gap:8px;
  }
  .dbins-nav a {
    font-size: 13px;
  }
  .dbins-logo {
    height: 20px;
  }
  .dbins-logo img {
    height: 100%;
  }
  .nav-join {
    font-weight: 800 !important;
    padding: 0;
    border: none;
  }
  .dbins-nav .nav-home .icon-home {
    width: 16px;
    height: 16px;
  }
  .dbins-nav .nav-home {
    padding-right: 4px;
  }
  .dbins-header.is-scrolled .nav-join {
    border: none;
  }
}

/* ---------- Hero ---------- */
.hero {
  padding-top: calc(var(--header-h) + 80px);
  padding-bottom: 100px;
  text-align: center;
}

.hero .tit {
  display: flex;
  flex-direction: column;
  align-items: center;
  color: #fff;
  gap: 30px;
  margin-bottom: 80px;
}
.hero .tit .txt {
  font-size: clamp(16px, 5vw, 24px);
  font-weight: 800;
}
.hero .tit h1 {
  font-size: clamp(28px, 5vw, 60px);
  letter-spacing: -0.02em;
  margin-bottom: 16px;
  font-weight: 800;
}
.hero h1 .accent { color: var(--db-green); }
.hero .subtitle {
  font-size: clamp(14px, 1.6vw, 17px);
  color: var(--text-mute);
  margin-bottom: 36px;
}
.hero .cta-row {
  display: flex; justify-content: center; gap: 12px; flex-wrap: wrap;
}

@media (max-width: 900px) {
  .hero {
    padding-top: 80px;
    padding-bottom: 50px;
  }
  .hero .tit {
    gap: 16px;
    margin-bottom: 24px;
  }
  .hero .tit img {
    width: 24px;
    height: 24px;
  }
}

/* badge */
.badge {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px; 
  height: 44px;
  border-radius: 50%;
  
  font-size: 20px;
}
.badge.primary {
  background-color: var(--db-green);
  color: #fff;
}
.badge.white {
  background-color: #fff;
  color: var(--db-green);
}
.card-title .badge {
  width: 28px;
  height: 28px;
  font-size: 14px;
}

@media (max-width: 900px) {
  .badge {
    padding: 6px;
    font-size: 14px;
    width: 28px;
    height: 28px;
  }
  .card-title .badge {
    width: 18px;
    height: 18px;
    font-size : 12px;
  }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  font-size: clamp(16px, 5vw, 24px);
  font-weight: 700;
  min-width: 270px;
  min-height: 60px;
  transition: transform .15s, box-shadow .15s, background .15s;
}
.btn-primary {
  background: var(--db-green);
  color: #fff;
  box-shadow: var(--shadow-md);
}
.btn-primary:hover { background: rgba(var(--db-green-rgb), 0.8); transform: translateY(-1px); box-shadow: var(--shadow-lg); }
.btn-outline {
  background: #fff;
  color: var(--db-green);
  border: 2px solid var(--db-green);
}
.btn-white {
  background: #fff;
  color: var(--db-green);
}
.btn-outline:hover { background: var(--db-blue-soft); }
.btn-ghost { color: var(--db-green); }
.btn-ghost:hover { background: var(--db-blue-soft); }
.btn-white:hover { background-color: rgba(255, 255, 255, 0.8);}
.btn-wrap {width:100%;text-align: center;padding-top:40px;}
@media (max-width: 900px) {
  .btn {
    min-height: 52px;
    width: 100%;
    min-width: 100%;
  }
  .btn-wrap {
    padding-top:16px;
  }
}

/* ---------- Section heading ---------- */
.section-head { 
  display:flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  margin-bottom: 60px;
}
.section-head .eyebrow {
  display: flex;
  align-items: center;
  width: 100%;
  justify-content: center;
  font-size: clamp(14px, 4vw, 24px);
  font-weight: 800;
  color: var(--db-green);
  letter-spacing: -1px;
  gap: 8px;
  margin-bottom:40px;
}
.eyebrow.white {
  color: #fff;
}
.section-head h2 {
  font-size: clamp(20px, 4vw, 36px);
  color: var(--text);
  letter-spacing: -0.02em;
  font-weight: 800;
  margin-bottom: 12px;
}
.section-head .lead {
  color: var(--text-mute);
  font-size: clamp(14px, 3.6vw, 21px);
  line-height: 1.4;
}

@media (max-width: 900px) {
  .section-head {
    margin-bottom: 24px;
  }
  .section-head .eyebrow {
    margin-bottom: 16px;
  }
  .section-head h2  {
    margin-bottom: 8px;
  }
}

/* 이벤트 01 */
#event01 .card-wrapper {
  display: flex;
  gap: 20px;
  justify-content: center;
}

#event01 .db-card {
  flex: 1;
  min-width: 180px;
  max-width: 200px;
  min-height: 160px;
  max-height: 180px;
  background-color: #fff;
  border-radius: 8px;
  padding: 4px;
  text-align: center; /* 전체 가운데 정렬 */
  display: flex;
  transition: transform 0.3s ease;
  flex-direction: column;
  box-shadow: var(--shadow-md);
}

#event01 .db-card:hover {
  transform: translateY(-8px);
}

#event01 .card-title {
  font-size: 16px;
  font-weight: 700;
  color: #fff;
  background-color: var(--db-green);
  border-radius: 4px;
  padding: 10px 0;
}

#event01 .card-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
}

#event01 .card-text {
  font-size: 16px;
  line-height: 1.5;
  color: var(--text);
}

#event01 .card-img {
  margin-top: 12px;
}

#event01 .card-img img {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 0 auto; /* 이미지 중앙 정렬 */
}

/* 카드 모바일 대응 */
/* 태블릿 ~ 일반 노트북 구간 (728px 이상 1280px 이하) */
@media (min-width: 769px) and (max-width: 1280px) {
  .grid {
    padding-right: 40px !important;
    padding-left: 40px !important;
  }

  #event01 .card-wrapper {
    display: flex;
    flex-wrap: wrap; /* 카드가 밑으로 떨어지게 설정 */
    justify-content: center;
    gap: 20px;
    overflow-x: visible;
  }

  #event01 .db-card {
    flex: 1 1 calc(33.333% - 20px);
  }
}
@media (max-width: 768px) {
  #event01 .card-wrapper {
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch; /* iOS에서 부드러운 스크롤 */
    display: flex;
    justify-content: flex-start;
    gap: 16px;
    
    -ms-overflow-style: none; /* IE, Edge */
    scrollbar-width: none; /* Firefox */
  }
  #event01 .card-wrapper::-webkit-scrollbar {
    display: none; /* Chrome, Safari, Opera */
  }
  #event01 .db-card {
    flex: 0 0 280px;
    max-width: 280px;
    margin: 0; /* 기존 마진 초기화 */
  }
  #event01 .db-card:hover {
    transform: none;
  }
}

/* 이벤트 02 */
#event02 {
  background: 
    linear-gradient(
      180deg,
  #1c272b 0%,
  #256c4e 65%,
  #34bb80 100%
    );
}
#event02 .card-wrapper {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
}
#event02 .card-wrapper .db-card {
  background-color: #fff;
  flex: 1;
  border-radius: 16px;
  padding: 4px;
  text-align: center;
}
#event02 .card-wrapper .db-card .card-title {
  background-color: rgba(var(--db-green-rgb), 0.08);
  border-radius: 12px;
  min-height: 52px;
  font-size: 21px;
  font-weight: 800;
  color: var(--db-green) ;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
}
#event02 .card-wrapper .dot-wrap {
  display: flex;
  gap: 4px;
}
#event02 .card-wrapper .dot-wrap .dot {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.4);
}
#event02 .card-wrapper .db-card .card-text {
  font-size: clamp(14px, 3.6vw, 16px);
  line-height: 1.4;
  color: var(--text);
  padding: 16px 0;
}
#event02 .info {
  padding-top: 30px;
  margin-top: 40px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}
#event02 .info .tit {
  color: #fff;
  font-size: clamp(14px, 3.6vw, 16px);
  font-weight: 700;
  margin-bottom: 12px;
}
#event02 .info li {
  position: relative;
  font-size: 13px;
  line-height: 1.4;
  color: #fff;
  margin-bottom: 8px;
  display: flex;
  gap: 8px;
  align-items: center;
}

#event02 .info li::before {
  content: "";
  display: inline-block;
  width: 4px;
  height: 4px;
  border-radius: 50%; /* 동그랗게 */
  background-color: rgba(255, 255, 255, 0.4);
}
@media (max-width: 900px) {
  #event02 .card-wrapper .db-card .card-title {
    font-size: 16px;
    min-height: 42px;
  }
  #event02 .card-wrapper {
    flex-direction: column;
    flex-wrap: wrap;
  }
  #event02 .card-wrapper .db-card  {
    width: 100%;
  }
  #event02 .card-wrapper .dot-wrap {
    flex-direction: column;
  }
  #event02 .info {
    padding-top: 16px;
    margin-top: 24px;
  }
}
/* about */
#about .section-head .lead.mo {
  display: none;
}
@media (max-width: 900px) {
  #about .section-head .lead.mo {
    display: block;
  }
  #about .section-head .lead.pc {
    display: none;
  }
}
/* ---------- Card ---------- */
.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow-sm);
  transition: transform .2s, box-shadow .2s;
}
.card:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.card h3 { font-size: 18px; margin-bottom: 8px; color: var(--db-green); }
.card p { color: var(--text-mute); font-size: 14px; margin: 0; }

.grid {
  display: grid;
  gap: 24px;
}
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 900px) {
  .grid-3, .grid-4 { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
}

/* ---------- Floating action buttons ---------- */
.dbins-floating {
  position: fixed;
  right: 20px;
  bottom: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  z-index: 90;
}
.dbins-floating .fab {
  width: 64px;
  min-height: 64px;
  border-radius: 16px;
  background: #fff;
  border: 1px solid rgba(0,0,0,.06);
  color: var(--db-green);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
  box-shadow: var(--shadow-sm);
  transition: transform .15s, background .15s, box-shadow .15s;
  padding: 6px 4px;
}
.dbins-floating .fab .icon {
  font-size: 20px;
  margin-bottom: 4px;
}
.dbins-floating .fab .en {
  display: block;
  font-size: 9px;
  font-weight: 500;
  opacity: 0.85;
  margin-top: 2px;
}
.dbins-floating .fab:hover {
  background: rgba(var(--db-green-rgb),0.08);
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

@media (max-width: 600px) {
  .dbins-floating { right: 12px; bottom: 12px; gap: 8px; }
  .dbins-floating .fab { width: 56px; min-height: 56px; font-size: 10px; }
  .dbins-floating .fab .icon { font-size: 18px; }
  .dbins-floating .fab:hover {
    background: rgba(var(--db-green-rgb),0.6);
    color: #fff;
  }
}

/* ---------- Footer ---------- */
.dbins-footer {
  background: #06301C;
  color: #fff;
  padding: 40px 80px;
  font-size: 13px;
}
.dbins-footer .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.dbins-footer img {
  height: 30px;
}
.dbins-footer .copyright { color: rgba(255,255,255,0.5); font-size: 12px; }
@media (max-width: 600px) {
  .dbins-footer {
    padding: 16px 0;;
  }
  .dbins-footer .container {
    flex-direction: column;
    justify-content: center;
    gap: 16px;
  }
  .dbins-footer img {
    height: 20px;
  }
}

/* ---------- Utilities ---------- */
.text-center { text-align: center; }
.muted { color: var(--text-mute); font-size:12px;margin-top:8px; }
.placeholder {
  padding: 60px 24px;
  background: var(--db-blue-soft);
  border: 2px dashed var(--db-blue-light);
  border-radius: var(--radius);
  text-align: center;
  color: var(--db-green);
  font-weight: 600;
}

.info-list { 
  list-style: none;
  padding: 0;
  margin: 16px 0 0;
  display: grid;
  gap: 12px;
}
.info-list li {
  display: flex;
  gap: 8px;
  align-items: flex-start;
}
.info-list li .key {
  flex-shrink: 0; 
  min-width: 80px;
  font-weight: 700;
  font-size: 13px;
  background-color: rgba(var(--db-green-rgb), 0.08);
  color: var(--db-green);
  text-align: center;
  border: 1px solid var(--db-green);
  border-radius: 4px;
}
.info-list li .val { color: var(--text); font-size: 14px; }

/* ---------- 일정 표 ---------- */
.schedule-wrap .list {
  background-color: #f5f5f5;
  border-radius: 16px;
  padding: 40px 24px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 40px;
}
.schedule-wrap .list .sm-tit {
  margin-bottom: 0;
}
.schedule-wrap .list .info-list {
  display: flex;
  background-color: #fff;
  box-shadow: var(--shadow-md);
  padding: 24px 40px;
  border-radius: 16px;
  margin-top: 0;
}
.schedule-wrap .list .info-list li {
  align-items: center;
}
.schedule-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 16px;
  background: #fff;
  border-radius: 16px;
  overflow: hidden;
  font-size: 16px;
}
.schedule-table th, .schedule-table td {
  padding: 12px 12px;
  border: 1px solid rgba(0,0,0,.06);
  text-align: center;
  vertical-align: middle;
  line-height: 1.3;
}
.schedule-table thead th {
  background: var(--db-green);
  color: #fff;
  font-weight: 700;
  border-color: var(--db-green);
}
.schedule-table tbody th {
  background: rgba(var(--db-green-rgb), 0.08);
  color: var(--text);
  font-weight: 700;
  width: 110px;
}
.schedule-table td { color: var(--text); }
.schedule-table tr:hover td { background: var(--bg-soft); }
.schedule-wrap { overflow-x: auto; }
.schedule-card-wrapper {
  display: none;
}

@media (max-width: 900px) {
  .schedule-wrap .list {
    padding: 24px 16px;
    flex-direction: column;
    gap: 8px;
  }
  .schedule-wrap .list .info-list  {
    flex-direction: column;
    width:100%;
    padding: 12px 16px;
  }
  .schedule-table {
    display:none;
  }
  .schedule-card-wrapper {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    gap: 16px;
    scrollbar-width: none;
    margin-top: 16px;
  }
  .schedule-card-wrapper::-webkit-scrollbar { display: none; }

  .schedule-card {
    flex: 0 0 300px; /* 카드 너비 고정 */
    background: #fff;
    border-radius: 16px;
    box-shadow: var(--shadow-md);
    border: 1px solid rgba(0,0,0, .08);
  }

  .day-title {
    font-size: 16px;
    background-color: var(--db-green);
    padding: 10px 0;
    color: #fff;
    border-top-left-radius: 16px;
    border-top-right-radius: 16px;
    text-align: center;
  }
  .schedule-card dl {
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 8px;
  }

  .schedule-card .row {
    display: flex;
    border-bottom: 1px solid rgba(0,0,0, .08);
    justify-content: space-between;
    align-content: center;
    width: 100%;
    padding-bottom: 8px;
  }
  .schedule-card dd {
    text-align: right;
  }
  .schedule-card .row:last-child { border-bottom: none;padding-bottom:0; }

  .schedule-card dt {
    flex: 0 0 80px; /* 왼쪽 교시 영역 너비 */
    font-size: 14px;
    font-weight: 700;
    color: #333;
  }

  .schedule-card dd {
    flex: 1;
    margin: 0;
    font-size: 14px;
    line-height: 1.5;
    color: #666;
  }
}

/* ---------- 교육장 카드 ---------- */
.location-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform .2s, box-shadow .2s;
  display: flex; flex-direction: column;
  cursor: pointer;
}
.location-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.location-card .map-placeholder {
  min-height: 240px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--db-green); font-size: 36px;
}
.location-card .map-placeholder img {
  width: 100%;
}
.location-card .body { 
  padding: 24px 20px;
}
.location-card h3 {
  display: flex;
  gap: 8px;
  align-items: center;
  color: var(--db-green);
  font-size: 18px;
  margin-bottom: 8px;
}
.location-card h3 .map-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  background-color: rgba(0,0,0, .08);
  border-radius: 50%;
}
.location-card h3 .map-icon img {
  width: 70%;
}
.location-card .addr { color: var(--text-mute); font-size: 14px; }

.location-card .cont {
  background-color: var(--db-green);
  height: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 24px;
  flex-direction: column;
  text-align: center;
}
.location-card .cont .map-icon {
  width: 36px;
  height: 36px;
  background-color: #fff;
  display: flex;
  flex-direction: column;
  border-radius: 50%;
  justify-content: center;
  align-items: center;
  margin-bottom: 8px;
}
.location-card .cont .txt {
  color: #fff;
}
.location-card .cont .txt .tit {
  font-size: 20px;
  font-weight: 800;
  line-height: 1.4;
}
.location-card .cont .txt span {
  font-size: 14px;
  margin-top:8px;
  line-height: 1.4;
  display: inline-block;
}
.location-card .cont .map-icon img {
  width: 70%;
}
.location-card .cont .btn {
  min-width: 100%;
  font-size: 18px;
  min-height: 48px;
  margin-top: 12px;
}
.mobile-location-header { display: none; }
@media (min-width: 769px) and (max-width: 1440px) {
  #location .grid.grid-4 {
    grid-template-columns: repeat(3, 1fr) !important; 
    gap: 20px;
  }
  .location-card .map-placeholder {
    min-height: 160px;
    max-height: 190px;
  }
}
@media (max-width: 600px) {
  .mobile-location-header {
    display: block;
    padding: 0 20px 20px;
  }
  
  #locationSelector {
    width: 100%;
    height: 52px;
    padding: 0 16px;
    border: 2px solid var(--db-green);
    color: var(--text) !important;
    -webkit-appearance: none;
    -webkit-text-fill-color: #333;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    appearance: none;
    background: #fff url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="%23999999" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="m6 9 6 6 6-6"/></svg>') no-repeat right 16px center;
  }
  .location-card .cont .btn {
    font-size: 16px;
    min-height: 42px;
  }
  .grid.grid-4 {
    display: block !important; /* 그리드 해제 */
    padding: 0 20px;
  }

  .location-card {
    margin-bottom: 20px;
  }
}

/* ---------- 보험상식 ---------- */
#knowledge {
  background: 
  linear-gradient(
      180deg,
  #1c272b 0%,
  #256c4e 65%,
  #34bb80 100%
    );
}
#knowledge .cont {
  text-align: center;
  color: #fff;
  padding-bottom: 80px;
}
#knowledge .cont h3 {
  font-size: clamp(16px, 4vw, 30px);
  margin-bottom: 40px;
}
#knowledge .cont .txt {
  font-size: clamp(14px, 1.6vw, 16px);
  line-height: 1.4;
}
#knowledge .cont .txt.mo {
  display: none;
}
#knowledge .note {
  color: #fff;
  background-color: rgba(255, 255, 255, 0.2);
  padding: 16px 40px;
  width: fit-content; 
  margin: 0 auto; 
  border-radius: 16px; 
  margin-bottom: 40px;
}
#knowledge .note ul {
  display: flex;
  justify-content: center;
  font-size: 21px;
  gap: 30px;
}
#knowledge .note ul li {
  border-right: 1px solid rgba(255, 255, 255, 0.4);
  padding-right: 30px;
  line-height: 1.4;
}
#knowledge .note ul li:last-child {
  border-right: 0;
  padding-right: 0;
}
.reason-card {
  background: rgba(255, 255, 255, 0.2);
  border-radius: 16px;
  transition: transform .2s, box-shadow .2s;
  position: relative;
}
.reason-card:hover { transform: translateY(-2px); }
.reason-card .num {
  font-size: 18px;
  font-weight: 800;
  color: rgba(255, 255, 255, 0.9);
  line-height: 1;
  opacity: 0.4;
}
.reason-card .tit { 
  color: #fff;
  font-size: 18px !important;
  margin-bottom: 0 !important;
  padding: 16px 0;
  display: flex;
  align-items: center;
  gap: 4px;
  justify-content: center;
  line-height: 1;
}
.reason-card .txt { 
  color: var(--text);
  background-color: #fff;
  font-size: 16x !important;
  margin-top: 0 !important;
  min-height: 160px;
  max-height: 160px;
  border-radius: 16px;
  padding: 16px 30px;
  text-align: left;
}
.reason-card .info-list li .val {
  font-size: 16px;
}
.reason-card .info-list li .key {
  min-width: 110px;
  padding: 4px 0;
}
.reason.grid {
  gap: 40px !important;
}
@media (max-width: 600px) {
  #knowledge .cont .txt.mo {
    display: block;
    line-height: 1.4;
  }
  #knowledge .cont .txt.pc {
    display: none;
  }
  #knowledge .cont .txt {
    min-height: auto;
    max-height: 100%;
  }
  #knowledge .cont {
    padding-bottom: 24px;
  }
  #knowledge .cont h3 {
    margin-bottom: 16px;
  }
  #knowledge .note  {
    width: 100%;
    padding: 16px 12px;
    margin-bottom: 16px;
  }
  #knowledge .note ul {
    font-size: 14px;
    gap: 12px;
    font-weight: 600;
  }
  #knowledge .note ul li {
    padding-right: 12px;
  }
  .reason-card .tit {
    font-size: 16px !important;
    padding: 12px 0;
  }
  .reason-card .info-list li .val {
    font-size: 14px;
  }
  .reason-card .info-list li {
    flex-direction: column;
  }
  .reason.grid {
    gap: 24px !important;
  }
}
/* ---------- FAQ 아코디언 ---------- */
.faq-list { display: grid; gap: 12px; max-width: 860px; margin: 0 auto; }
.faq-item {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.faq-item summary {
  padding: 20px 24px;
  cursor: pointer;
  font-weight: 700;
  color: var(--text);
  font-size: 15px;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  transition: background .15s;
}
.faq-item summary > span {
  display: flex;
  align-items: center;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary:hover { background: var(--bg-soft); }
.faq-item summary::after {
  content: '';
  display: block;
  width: 14px; /* 크기 살짝 키움 */
  height: 14px;
  background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="%23999999" stroke-width="3" stroke-linecap="round" stroke-linejoin="round"><path d="m6 9 6 6 6-6"/></svg>') no-repeat center;
  background-size: contain;
  transition: transform 0.3s ease, background-image 0.3s ease;
  flex-shrink: 0; /* 아이콘 찌그러짐 방지 */
}

.faq-item[open] summary::after {
  transform: rotate(180deg);
}
.faq-item summary .q-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px; height: 28px;
  background: var(--db-green);
  color: #fff;
  border-radius: 50%;
  font-size: 14px;
  font-weight: 700;
  flex-shrink: 0;
  margin-right: 12px;
}
.faq-item .answer {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.3s ease-in-out, padding 0.3s ease-in-out, border-top 0.3s ease;
  overflow: hidden;
  background: var(--bg-soft);
  padding: 0 24px 0 64px;
  border-top: 1px solid transparent;
}

.faq-item[open] .answer {
  grid-template-rows: 1fr;
  padding: 20px 24px 24px 64px;
  border-top: 1px solid var(--line);
}
.faq-item .answer-inner {
  min-height: 0;
  transition: opacity 0.2s ease;
  opacity: 0;
}

.faq-item[open] .answer-inner {
  opacity: 1;
  transition: opacity 0.3s ease 0.1s;
}
@media (max-width: 600px) {
  .faq-item[open] .answer {
    padding: 20px;
  }
}
/* ---------- Form ---------- */
.form-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 40px;
  max-width: 760px;
  margin: 0 auto;
  box-shadow: var(--shadow-md);
}
@media (max-width: 600px) {
  .form-card { padding: 28px 20px; }
}
.field { margin-bottom: 22px; }
.field label.lbl {
  display: block;
  font-size: 14px;
  color: var(--text);
  margin-bottom: 8px;
}
.field label.lbl .req { color: #E11D48; margin-left: 2px; }
.field .hint { font-size: 12px; color: var(--text-mute); margin-top: 6px; }

.field input[type="text"],
.field input[type="email"],
.field input[type="tel"],
.field input[type="number"],
.field select,
.field textarea {
  width: 100%;
  padding: 12px 16px;
  font-size: 15px;
  font-family: inherit;
  color: var(--text);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  transition: border-color .15s, box-shadow .15s;
  -webkit-appearance: none;
  appearance: none;
}
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--db-green);
}
/* 1. Readonly 상태 (수정 불가, 읽기 전용) */
.field input:read-only,
.field textarea:read-only {
  background-color: #f8f9fa;
  border-color: #e9ecef;
  cursor: default;
  color: #666;
}

/* 2. Disabled 상태 (완전 비활성화) */
.field input:disabled,
.field select:disabled,
.field textarea:disabled {
  background-color: rgba(0,0,0,.02);
  cursor: not-allowed;
  opacity: 1;
  -webkit-text-fill-color: #999;
}
.field select {
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'><path d='M1 1l5 5 5-5' stroke='%236B7280' stroke-width='1.6' fill='none' stroke-linecap='round'/></svg>");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 36px;
}
.field input.is-invalid,
.field select.is-invalid,
.field textarea.is-invalid {
  border-color: #E11D48;
  background-color: #FFF5F5;
}
.field input.is-invalid:focus,
.field select.is-invalid:focus,
.field textarea.is-invalid:focus {
  box-shadow: 0 0 0 3px rgba(225,29,72,0.15);
}
.radio-group.is-invalid label,
.check-group.is-invalid label {
  background: #FFF5F5;
  outline: 1px solid #E11D48;
  outline-offset: 0;
  box-sizing: border-box;
}
.field-error {
  display: block;
  margin-top: 6px;
  font-size: 12px;
  color: #E11D48;
}
@keyframes dbins-shake {
  0%, 100% { transform: translateX(0); }
  20%      { transform: translateX(-6px); }
  40%      { transform: translateX(6px); }
  60%      { transform: translateX(-4px); }
  80%      { transform: translateX(4px); }
}
.dbins-shake { animation: dbins-shake .35s ease-in-out; }

.row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 600px) { .row-2 { grid-template-columns: 1fr; gap: 0; } }

/* radio/check group */
.radio-group input[type="radio"] {
  display: none;
}
.radio-group, .check-group {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  width: 100%;
}
.radio-group label, .check-group label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  font-size: 14px;
  cursor: pointer;
  transition: all .15s;
  flex: 1 1 calc(25% - 8px);
  text-align: center;
}
.radio-group label span {
  width:100%;
  display:inline-block;
}
.radio-group label:hover, .check-group label:hover {
  background: rgba(var(--db-green-rgb), 0.08);
}
.radio-group input:checked + span,
.check-group input:checked + span {
  color: var(--db-green);
  font-weight: 700;
}
.radio-group label:has(input:checked),
.check-group label:has(input:checked) {
  border-color: var(--db-green);
  background: rgba(var(--db-green-rgb), 0.08);
}
/* 체크박스 */
.check-group input[type="checkbox"] {
  display: none;
}

.check-group label {
  display: inline-flex;
  align-items: center;
  cursor: pointer;
  gap: 8px;
  font-size: 15px;
}
.check-group label > span {
  display: flex;
  gap: 8px;
  align-items: center;
}
.check-group label span::before {
  content: '';
  display: inline-block;
  width: 20px;
  height: 20px;
  border: 1px solid #ddd;
  border-radius: 4px; /* 살짝 굴린 사각형 */
  background-color: #fff;
  vertical-align: middle;
  transition: all 0.2s;
  box-sizing: border-box;
}

.check-group input[type="checkbox"]:checked + span::before {
  background-color: var(--db-green, #34bb80);
  border-color: var(--db-green, #34bb80);
  
  /* 하얀색 체크 표시 SVG 삽입 */
  background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="white" stroke-width="4" stroke-linecap="round" stroke-linejoin="round"><polyline points="20 6 9 17 4 12"/></svg>');
  background-repeat: no-repeat;
  background-position: center;
  background-size: 14px;
}

.check-group label:hover span::before {
  border-color: var(--db-green, #34bb80);
}

@media (max-width: 610px) {
  .field {
    margin-bottom: 8px;
  }
  .radio-group, .check-group {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
  }

  .radio-group label, .check-group label {
    box-sizing: border-box;
    flex: 1 1 auto; /* 기본적으로 공간을 꽉 채우도록 설정 */
  }

  .radio-group label:first-child:nth-last-child(-n+3),
  .radio-group label:first-child:nth-last-child(-n+3) ~ label {
    flex: 1 1 calc(33.333% - 8px); 
    max-width: 100%; 
  }
  .radio-group label:first-child:nth-last-child(n+4),
  .radio-group label:first-child:nth-last-child(n+4) ~ label {
    flex: 0 0 calc((100% - 8px) / 2);
  }
}

/* 검색 인풋 */
#centerOtherWrap input[type="text"] {
  width: 100%;
  height: 48px;
  padding: 0 45px 0 16px;
  border: 1px solid var(--line, #e0e0e0);
  border-radius: 8px;
  font-size: 15px;
  box-sizing: border-box;

  /* 검색 아이콘 삽입 (회색 버전 SVG) */
  background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="%23999999" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><circle cx="11" cy="11" r="8"/><path d="m21 21-4.3-4.3"/></svg>');
  background-repeat: no-repeat;
  background-position: right 16px center; /* 우측에서 15px 띄우고 중앙 정렬 */
  background-size: 20px;
}

#centerOtherWrap input[type="text"]:focus {
  border-color: var(--db-green);
  outline: none;
  background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="%23008043" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><circle cx="11" cy="11" r="8"/><path d="m21 21-4.3-4.3"/></svg>');
}
/* 주소 인풋 */
/* 기본적으로 거주지 주소 필드는 숨김 */
/* 1. 기본 상태: 필드 전체 숨김 */
#addressField {
  display: none;
}

/* 2. 활성화 상태: 필드 노출 */
#addressField.is-visible {
  display: block !important;
}

/* [핵심] 3. 필드가 보일 때, 그 안의 인풋 박스(conditional)도 강제로 노출 */
#addressField.is-visible #centerOtherWrap {
  display: block !important;
}
/* input-with-button (추천인 조회) */
.input-with-btn {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.input-with-btn input { flex: 1; }
.input-with-btn button {
  flex-shrink: 0;
  padding: 0 18px;
  border: 1px solid var(--db-green);
  color: var(--db-green);
  border-radius: 10px;
  font-size: 14px;
  font-weight: 700;
  transition: background .15s;
}
.input-with-btn button:hover { background: rgba(var(--db-green-rgb), 0.08); }
.input-with-btn button:disabled { background: var(--text-mute); cursor: not-allowed; }

@media (max-width: 610px) {
  #f_recommender {
    flex: 0 0 100%; 
    order: 1; /* 맨 위 */
  }

  #f_name {
    flex: 1; /* 남는 공간 채우기 */
    order: 2;
    min-width: 0; /* flex 안에서 인풋 너비 깨짐 방지 */
  }

  #btnLookupRecommender {
    flex: 0 0 80px; /* 버튼은 고정 너비 */
    order: 3;
    height: 48px; /* 인풋이랑 높이 맞춤 */
  }
}

.lookup-result {
  margin-top: 8px;
  font-size: 13px;
  font-weight: 600;
  display: none;
}
.lookup-result.ok    { color: #16A34A; display: block; }
.lookup-result.err   { color: #E11D48; display: block; }
.lookup-result.busy  { color: var(--text-mute); display: block; }

/* hidden conditional address field */
.conditional { display: none; }
.conditional.is-visible { display: block; }

.agree-box {
  border: 1px solid rgba(0,0,0,.04);
  border-radius: 10px;
  padding: 16px;
  background: var(--bg-soft);
  font-size: 12px;
  color: var(--text-mute);
  max-height: 140px;
  overflow-y: auto;
  line-height: 1.6;
  margin-bottom: 10px;
}
.agree-box strong { color: var(--text); display: block; margin-top: 6px; }

.submit-row { margin-top: 28px; text-align: center; }

/* alert / success message */
.alert {
  padding: 16px 20px;
  border-radius: var(--radius);
  margin-bottom: 24px;
  font-size: 14px;
}
.alert-success {
  background: #ECFDF5;
  color: #065F46;
  border: 1px solid #A7F3D0;
}
.alert-error {
  background: #FEF2F2;
  color: #991B1B;
  border: 1px solid #FECACA;
}

/* 폼 안내문구 */
.info-msg {
  display: flex;
  align-items: flex-start;
  gap: 6px;
  margin-top: 8px;
  color: var(--text-mute, #666);
  font-size: 12px;
  line-height: 1.4;
}

/* Info 동그라미 아이콘 */
.info-msg::before {
  content: 'i';
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 14px;
  height: 14px;
  background-color: #ccc;
  color: #fff;
  font-family: serif;
  font-size: 10px;
  font-weight: bold;
  border-radius: 50%;
  flex-shrink: 0;
  margin-top: 2px;
}

/* 모달팝업 */
/* 모달 배경 (오버레이) */
.modal-overlay {
  display: none; /* 기본 숨김 */
  position: fixed;
  top: 0; left: 0; width: 100%; height: 100%;
  background: rgba(0, 0, 0, 0.6);
  z-index: 9999;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

/* 모달 본체 */
.modal-content {
  background: #fff;
  width: 100%;
  max-width: 400px;
  border-radius: 20px;
  position: relative;
  padding: 40px 24px 30px;
  text-align: center;
  box-shadow: 0 10px 30px rgba(0,0,0,0.2);
  animation: modalUp 0.3s ease-out;
}

@keyframes modalUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

/* 닫기 버튼 (X) */
.modal-close {
  position: absolute;
  top: 0px;
  right: 20px;
  font-size: 28px;
  color: #959595;
  background: none; border: none; cursor: pointer;
}

/* 인포 아이콘 큰 버전 */
.modal-info-icon {
  width: 50px; height: 50px;
  background: var(--db-green, #34bb80);
  color: #fff;
  font-family: serif; font-size: 30px; font-weight: bold;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 20px;
}

/* 텍스트 스타일 */
.modal-text {
  font-size: 16px;
  line-height: 1.4;
  color: var(--text);
  margin-bottom: 8px;
}
.modal-text strong { color: var(--db-green); font-weight: 700; }

.modal-subtext {
  font-size: 13px; color: #888;
}

/* 모달 내 신청하기 버튼 */
.modal-content .btn-primary {
  width: 100%;
  height: 48px !important;
  min-height: 48px !important;
  background: var(--db-green);
  color: #fff;
  border: none;
  border-radius: 30px;
  font-size: 16px; 
  font-weight: 600;
  cursor: pointer;
  margin-top: 24px;
}