/* ==========================================================
   BLUEDOG 공통 디자인 보정 (모든 페이지 공통)
   - 각 페이지 안쪽 스타일 뒤에 불러와서 덮어씀
   ========================================================== */
:root {
  --shadow-sm: 0 1px 2px rgba(10, 22, 40, 0.04), 0 4px 14px rgba(10, 22, 40, 0.05);
  --shadow-md: 0 2px 4px rgba(10, 22, 40, 0.05), 0 14px 34px rgba(10, 22, 40, 0.09);
}
body { -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }

/* ── 아이콘(선 아이콘) ── */
.ico { width: 1em; height: 1em; fill: none; stroke: currentColor; stroke-width: 1.8;
  stroke-linecap: round; stroke-linejoin: round; vertical-align: -0.14em; flex-shrink: 0; }
.hero-tag { display: inline-flex; align-items: center; gap: 6px; backdrop-filter: blur(6px); }
.hero-tag .ico { color: #90bce8; width: 14px; height: 14px; }

/* 아이콘 원형 배지 */
.info-icon, .curriculum-icon {
  width: 48px; height: 48px; border-radius: 14px; margin: 0 auto 10px;
  display: flex; align-items: center; justify-content: center;
  background: #fff; color: var(--blue); font-size: 22px;
  box-shadow: 0 2px 8px rgba(37, 99, 168, 0.12);
}
.curriculum-item .curriculum-icon { width: 40px; height: 40px; font-size: 19px; border-radius: 12px;
  background: var(--blue-pale); box-shadow: none; margin-bottom: 8px; }
.who-icon { width: 36px; height: 36px; border-radius: 10px; background: var(--blue-pale); color: var(--blue);
  display: flex; align-items: center; justify-content: center; font-size: 18px; margin-top: 0; }
.map-pin { width: 56px; height: 56px; border-radius: 50%; background: #fff; color: var(--blue);
  display: flex; align-items: center; justify-content: center; font-size: 26px;
  box-shadow: var(--shadow-sm); margin: 0 auto 10px; }
.trust-title, .target-title, .include-title, .pass-title, .level-recommend strong {
  display: flex; align-items: center; gap: 7px; }
.trust-title .ico { color: var(--blue); font-size: 16px; }
.target-title .ico, .pass-title .ico { color: var(--blue); font-size: 17px; }
.level-recommend strong .ico { font-size: 16px; }

/* 리스트 체크 표시 */
.include-list li::before, .target-list li::before {
  content: '' !important; width: 18px; height: 18px; margin-top: 2px;
  background: no-repeat center / contain;
}
.include-card.yes .include-list li::before, .target-list li::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232563a8' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='10'/%3E%3Cpath d='m8 12 3 3 5-6'/%3E%3C/svg%3E"); }
.include-card.no .include-list li::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23dc2626' stroke-width='2' stroke-linecap='round'%3E%3Ccircle cx='12' cy='12' r='10'/%3E%3Cpath d='m15 9-6 6M9 9l6 6'/%3E%3C/svg%3E"); }
.include-card.yes .include-title { color: var(--blue) !important; }

/* ── 제목 ── */
.hero h1 { letter-spacing: -0.02em; font-weight: 700; }
.section-title { letter-spacing: -0.02em; font-weight: 700; }
.section-label { display: inline-flex; align-items: center; gap: 8px; }
.section-label::before { content: ''; width: 18px; height: 2px; border-radius: 2px; background: currentColor; }

/* ── 카드: 얇은 테두리 → 부드러운 그림자 ── */
.program-card, .who-card, .include-card, .level-card, .test-card, .review-card, .review-box,
.inst-card, .step, .faq-item, .target-card, .trust-item, .curriculum-item, .map-card, .pass-box {
  border-color: rgba(10, 22, 40, 0.08) !important;
  box-shadow: var(--shadow-sm);
}
.program-card { border-radius: 16px; transition: transform 0.2s, box-shadow 0.2s; }
.program-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.program-photo { transition: transform 0.5s; }
.program-card:hover .program-photo { transform: scale(1.04); }
.info-card { box-shadow: none; }
.photo-grid img, .level-photo, .profile-img, .inst-img { box-shadow: var(--shadow-sm); }
.photo-grid img { transition: transform 0.3s; }
.photo-grid img:hover { transform: scale(1.02); }

/* ── 버튼 ── */
.btn-primary, .btn-outline, .nav-cta, .review-link, .map-btn {
  border-radius: 10px !important; transition: transform 0.15s, box-shadow 0.2s, background 0.2s; }
.btn-primary:hover, .nav-cta:hover, .review-link:hover, .map-btn:hover {
  transform: translateY(-1px); box-shadow: 0 6px 18px rgba(10, 22, 40, 0.18); }

/* ── 네비게이션 현재 위치 표시 ── */
.nav-links a.active { position: relative; }
.nav-links a.active::after { content: ''; position: absolute; left: 0; right: 0; bottom: -6px;
  height: 2px; border-radius: 2px; background: var(--blue-light); }

/* ── 공통 푸터 ── */
footer { gap: 1rem 2rem; }
.footer-info { font-size: 12px; color: rgba(255,255,255,0.4); line-height: 1.8; }
.footer-links { display: flex; gap: 1.25rem; list-style: none; }
.footer-links a { font-size: 12px; color: rgba(255,255,255,0.5); text-decoration: none; }
.footer-links a:hover { color: rgba(255,255,255,0.85); }

/* ── 스크롤하면 부드럽게 나타나기 (JS가 켜졌을 때만) ── */
.js-reveal .reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.7s ease, transform 0.7s ease; }
.js-reveal .reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .js-reveal .reveal { opacity: 1; transform: none; transition: none; }
  .program-card:hover, .program-card:hover .program-photo, .photo-grid img:hover { transform: none; }
}

/* 과정 정보 칸: 컴퓨터에서는 4칸 한 줄 */
@media (min-width: 641px) {
  .level-body .curriculum-grid { grid-template-columns: repeat(4, 1fr); }
  .level-body .curriculum-label { font-size: 10.5px; }
}

/* ==========================================================
   모바일 가독성
   - 컴퓨터용으로 넣은 강제 줄바꿈(<br>)을 휴대폰에서는 풀어서
     문장이 자연스럽게 이어지도록 함 (제목·후기 인용·푸터는 유지)
   ========================================================== */
p, .hero-desc, .level-desc, .review-text, .section-sub, .tour-desc, .std-desc, .step-desc, .why-desc {
  text-wrap: pretty;
}
h1, h2, .section-title, .section-sub, .hero-desc, .review-highlight, .cta-section h2, .cta-section p { text-wrap: balance; }

@media (max-width: 640px) {
  p br, .hero-desc br, .profile-desc br, .inst-desc br, .what-box br { display: none; }

  body { font-size: 15px; }
  .hero-desc { font-size: 15px; line-height: 1.7; }
  .section-title { font-size: 24px; line-height: 1.35; }
  .section-sub { font-size: 14.5px; line-height: 1.65; margin-bottom: 2rem; }

  /* 본문 문단: 줄간격을 살짝 줄여 덩어리로 읽히게 */
  .profile-desc, .inst-desc, .level-desc, .review-text, .test-desc, .what-box p {
    font-size: 15px; line-height: 1.75;
  }
  .cta-section p, .apply-cta p, .price-cta p { font-size: 15px; line-height: 1.65; padding: 0 0.5rem; }

  /* 담당 과정처럼 '이름 : 값' 형태는 위아래로 쌓기 */
  .inst-info { grid-template-columns: 1fr; gap: 2px; }
  .inst-info dt { font-size: 12.5px; }
  .inst-info dd { margin-bottom: 10px; }

  /* 카드 안쪽 여백 조금 줄이기 */
  .inst-card, .review-card, .review-box { padding: 1.4rem 1.25rem; }
  .who-card { padding: 1.1rem; }
}

/* ==========================================================
   2차 리뉴얼: 공감형 Q&A · 선택 이유 · 흐르는 띠 · 폴라로이드 · 고정 문의 버튼
   ========================================================== */

/* 선택할 이유 */
.reason-section { background: var(--navy); color: #fff; }
.reason-section .section-label { color: #90bce8; }
.reason-section .section-title { color: #fff; margin-bottom: 2.5rem; }
.reason-section .section-title em { font-style: normal; color: #FEE500; }
.reason-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.reason-card { position: relative; background: rgba(255,255,255,0.06); border: 0.5px solid rgba(255,255,255,0.14);
  border-radius: 18px; padding: 1.6rem 1.5rem; transition: background 0.2s, transform 0.2s; }
.reason-card:hover { background: rgba(255,255,255,0.1); transform: translateY(-3px); }
.reason-num { position: absolute; top: 1.2rem; right: 1.4rem; font-size: 13px; font-weight: 800; color: rgba(255,255,255,0.25); }
.reason-icon { width: 46px; height: 46px; border-radius: 14px; background: rgba(91,155,213,0.2); color: #90bce8;
  display: flex; align-items: center; justify-content: center; font-size: 22px; margin-bottom: 1rem; }
.reason-title { font-size: 17px; font-weight: 700; margin-bottom: 6px; }
.reason-desc { font-size: 14px; color: rgba(255,255,255,0.65); line-height: 1.65; }

/* 후기 해시태그 */
.review-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 0.9rem; }
.review-chips span { font-size: 12px; font-weight: 600; color: #fff; background: var(--blue); padding: 4px 11px; border-radius: 20px; }

/* 폴라로이드 갤러리 */
.photo-grid.polaroid { gap: 26px 22px; padding: 10px 6px 0; }
.photo-grid.polaroid img { background: #fff; padding: 10px 10px 36px; border-radius: 6px !important;
  box-shadow: 0 10px 28px rgba(10,22,40,0.14); height: 280px; }
.photo-grid.polaroid img:nth-child(3n+1) { transform: rotate(-2.5deg); }
.photo-grid.polaroid img:nth-child(3n+2) { transform: rotate(1.8deg) translateY(10px); }
.photo-grid.polaroid img:nth-child(3n) { transform: rotate(-1deg); }
.photo-grid.polaroid img:hover { transform: rotate(0) scale(1.04); z-index: 2; position: relative; }

/* 고정 문의 버튼 */
.float-kakao { position: fixed; right: 22px; bottom: 22px; z-index: 90; width: 60px; height: 60px; border-radius: 50%;
  background: #FEE500; display: flex; align-items: center; justify-content: center;
  box-shadow: 0 8px 24px rgba(10,22,40,0.25); transition: transform 0.2s; }
.float-kakao:hover { transform: scale(1.07); }
.float-kakao svg { width: 30px; height: 30px; }
.sticky-cta { display: none; }

@media (max-width: 760px) {
  .reason-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .reason-card { padding: 1.2rem 1rem; }
  .reason-title { font-size: 15px; }
  .reason-desc { font-size: 13px; }
  .reason-num { top: 0.9rem; right: 1rem; }
}
@media (max-width: 640px) {
  .photo-grid.polaroid { gap: 18px 14px; }
  .photo-grid.polaroid img { height: 190px; padding: 7px 7px 24px; }
  /* 휴대폰: 화면 아래 고정 문의 바 */
  .float-kakao { display: none; }
  .sticky-cta { display: block; position: fixed; left: 0; right: 0; bottom: 0; z-index: 90;
    padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); background: rgba(255,255,255,0.94);
    backdrop-filter: blur(8px); box-shadow: 0 -4px 18px rgba(10,22,40,0.1); }
  .sticky-cta a { display: flex; align-items: center; justify-content: center; gap: 8px; height: 50px; border-radius: 12px;
    background: #FEE500; color: #191919; font-weight: 700; font-size: 16px; text-decoration: none; }
  .sticky-cta svg { width: 22px; height: 22px; }
  body { padding-bottom: 74px; }
}
@media (prefers-reduced-motion: reduce) {
  .photo-grid.polaroid img { transform: none !important; }
}

/* ==========================================================
   3차 리뉴얼: 가독성 · 세련된 미니멀 스타일
   - 더 큰 제목, 넉넉한 여백, 얇은 테두리, 둥근 알약 버튼
   - 글자색은 진한 회색 계열로 눈이 덜 피로하게
   ========================================================== */
:root {
  --ink: #0b1220;            /* 제목 */
  --text: #3b4252;           /* 본문 */
  --muted: #6b7280;          /* 보조 글 */
  --line: #e7e9ee;           /* 얇은 테두리 */
  --surface: #f6f7f9;        /* 연한 배경 */
  --gray-50: #f6f7f9;
  --gray-300: #e7e9ee;
  --radius-lg: 20px;
  --shadow-sm: 0 1px 2px rgba(11,18,32,0.04);
  --shadow-md: 0 1px 2px rgba(11,18,32,0.04), 0 18px 40px -12px rgba(11,18,32,0.14);
}
body { color: var(--text); font-size: 16px; line-height: 1.75; letter-spacing: -0.005em;
  font-feature-settings: "tnum" 0; }
::selection { background: rgba(37,99,168,0.18); }

/* ── 여백과 폭 ── */
section { padding: 7rem 2rem; }
.container { max-width: 1040px; }

/* ── 섹션 머리말 ── */
.section-label { font-size: 12px; letter-spacing: 0.14em; font-weight: 700; margin-bottom: 1rem; text-transform: uppercase; }
.section-label::before { width: 6px; height: 6px; border-radius: 50%; }
.section-title { font-size: clamp(28px, 3.6vw, 42px); font-weight: 700; line-height: 1.25;
  letter-spacing: -0.035em; color: var(--ink); margin-bottom: 1rem; }
.section-sub { font-size: 17px; line-height: 1.7; color: var(--muted); max-width: 620px; margin-bottom: 3.5rem; }
[style*="text-align:center"] .section-sub, [style*="text-align: center"] .section-sub { margin-left: auto; margin-right: auto; }

/* ── 히어로 ── */
.hero h1 { font-weight: 800; letter-spacing: -0.04em; line-height: 1.18; }
.hero-badge { font-weight: 600; letter-spacing: 0.18em; padding: 6px 14px; border-radius: 999px;
  background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.18); color: #cfe2f6; }
.hero-desc { font-size: 17px; line-height: 1.75; }

/* ── 네비게이션 ── */
nav { background: rgba(10,22,40,0.72) !important; backdrop-filter: saturate(160%) blur(16px);
  -webkit-backdrop-filter: saturate(160%) blur(16px); border-bottom: 1px solid rgba(255,255,255,0.06) !important; }
.logo { font-weight: 800; letter-spacing: 0.02em; }
.nav-links a { font-size: 15px; font-weight: 500; color: rgba(255,255,255,0.72); }
.nav-links a.active, .nav-links a:hover { color: #fff; }

/* ── 버튼: 알약 모양 ── */
.btn-primary, .btn-outline, .nav-cta, .review-link, .map-btn, .gallery-more a {
  border-radius: 999px !important; font-weight: 600; letter-spacing: -0.01em; }
.btn-primary, .btn-outline { padding: 15px 28px; font-size: 15.5px; }
.btn-outline { border-width: 1px !important; }
.nav-cta { padding: 9px 18px; }

/* ── 카드: 얇은 선 + 큰 모서리, 그림자는 마우스 올릴 때만 ── */
.program-card, .who-card, .include-card, .level-card, .test-card, .review-card, .review-box,
.inst-card, .step, .target-card, .trust-item, .map-card, .pass-box, .price-card, .info-card {
  border: 1px solid var(--line) !important; border-radius: var(--radius-lg) !important; box-shadow: none; }
.review-card { border-left: 1px solid var(--line) !important; }
.program-card:hover, .inst-card:hover, .level-card:hover { box-shadow: var(--shadow-md); }
.program-card { padding: 1.75rem 1.5rem 1.6rem; }
.program-name { font-size: 17px; font-weight: 700; letter-spacing: -0.02em; margin-bottom: 8px; }
.program-desc { font-size: 14px; line-height: 1.65; }
.program-tag, .profile-tag, .review-tag { border-radius: 999px; font-weight: 600; }
.trust-item { background: #fff; padding: 1.15rem 1.25rem; }
.trust-title { font-size: 15px; }
.trust-desc { font-size: 13.5px; line-height: 1.6; }

/* 본문 글 크기 살짝 키우기 */
.profile-desc, .inst-desc, .level-desc, .test-desc, .what-box p { font-size: 16px; line-height: 1.85; color: var(--text); }
.profile-name { font-size: 26px; letter-spacing: -0.03em; }
.review-text { font-size: 15px; line-height: 1.85; color: var(--text); }
.review-highlight { letter-spacing: -0.03em; }

/* ── 연한 배경 섹션 ── */
.programs-section, .review-section { background: var(--surface); }

/* ── 숫자 바 ── */
.stat-num { font-size: 38px; font-weight: 800; letter-spacing: -0.03em; color: #fff; font-variant-numeric: tabular-nums; }
.stat-label { font-size: 13px; color: rgba(255,255,255,0.55); }

/* ── 자주 묻는 질문: 카드 대신 깔끔한 구분선 ── */
.faq-list { gap: 0; border-top: 1px solid var(--line); }
.faq-item { background: transparent !important; border: 0 !important; border-bottom: 1px solid var(--line) !important;
  border-radius: 0 !important; box-shadow: none !important; }
.faq-q { padding: 1.35rem 0.25rem; font-size: 16.5px; font-weight: 600; letter-spacing: -0.02em; }
.faq-q::after { font-weight: 300; font-size: 22px; }
.faq-a { padding: 0 0.25rem 1.4rem; font-size: 15px; line-height: 1.8; color: var(--muted); }

/* ── 문의(CTA) 섹션 ── */
.cta-section { padding: 6.5rem 2rem; }
.cta-section h2 { font-size: clamp(26px, 3.4vw, 38px); font-weight: 800; letter-spacing: -0.035em; }
.cta-section p { font-size: 17px; }

/* ── 이유 카드 ── */
.reason-card { border-radius: var(--radius-lg); border: 1px solid rgba(255,255,255,0.1); padding: 1.9rem 1.7rem; }
.reason-title { font-size: 18px; letter-spacing: -0.02em; }
.reason-desc { font-size: 14.5px; line-height: 1.7; }

/* ── 사진 ── */
.photo-grid img, .profile-img, .inst-img, .level-photo, .tour-photo { border-radius: 16px; }
.tour-card { border-radius: var(--radius-lg); }

/* ── 푸터 ── */
footer { padding: 3rem 2rem calc(3rem); }

/* ── 휴대폰 ── */
@media (max-width: 640px) {
  section { padding: 4.5rem 1.25rem; }
  body { font-size: 16px; }
  .section-label { font-size: 11.5px; margin-bottom: 0.75rem; }
  .section-title { font-size: 27px; line-height: 1.3; }
  .section-sub { font-size: 15.5px; margin-bottom: 2.25rem; }
  .hero-desc { font-size: 15.5px; }
  .profile-desc, .inst-desc, .level-desc, .review-text, .test-desc, .what-box p { font-size: 15.5px; line-height: 1.8; }
  .faq-q { font-size: 15.5px; padding: 1.15rem 0.1rem; }
  .faq-a { font-size: 14.5px; }
  .cta-section { padding: 4.5rem 1.25rem; }
  .stat-num { font-size: 30px; }
  .program-name { font-size: 16px; }
}
/* 좁은 카드 안 강제 줄바꿈은 풀어서 자연스럽게 */
.program-desc br, .reason-desc br, .trust-desc br { display: none; }
/* 작은 설명 글씨 키우기 */
.step-desc, .why-desc, .tour-desc, .who-desc { font-size: 14.5px; line-height: 1.7; }
.step-title, .who-title { font-size: 16px; font-weight: 700; letter-spacing: -0.02em; }
@media (max-width: 760px) {
  .reason-card { padding: 1.25rem 1.05rem; border-radius: 16px; }
  .reason-title { font-size: 15.5px; }
  .reason-desc { font-size: 13.5px; line-height: 1.6; }
}

/* 휴대폰: 프로그램 카드를 가로형(사진 왼쪽 · 글 오른쪽)으로 짧게 */
@media (max-width: 640px) {
  .programs-grid { grid-template-columns: 1fr !important; gap: 12px; }
  .program-card { display: grid !important; grid-template-columns: 112px 1fr; column-gap: 16px;
    align-items: start; padding: 14px 16px 14px 14px; border-radius: 16px !important; }
  .program-card { grid-template-rows: auto auto 1fr; }
  .program-photo { grid-row: 1 / span 3; width: 112px; height: 112px; margin: 0;
    border-radius: 12px; align-self: start; }
  .program-name { font-size: 16px; margin: 2px 0 4px; }
  .program-desc { font-size: 13.5px; line-height: 1.55; }
  .program-tag { margin-top: 8px; justify-self: start; font-size: 11px; padding: 2px 9px; }
  .program-card:hover .program-photo { transform: none; }
}

/* 휴대폰 메인 첫 화면: 사진 바로 아래에 제목이 붙도록 (빈 공간 제거) + 가운데 정렬 */
@media (max-width: 640px) {
  .hero.hero-main {
    min-height: 0; align-items: flex-start;
    padding: calc(64px + 92vw) 1.25rem 3rem;
    background-image:
      linear-gradient(180deg, rgba(10,22,40,0) 0, rgba(10,22,40,0) calc(64px + 62vw),
        rgba(10,22,40,0.85) calc(64px + 100vw), #0a1628 calc(64px + 118vw)),
      url('../images/hero-main-mobile.jpg');
    background-size: 100% 100%, 175% auto; background-position: 0 0, 52% 64px;
  }
  .hero-main .hero-content { width: 100%; margin: 0 auto; }
  .hero-main .hero-desc { display: block !important; margin-bottom: 1.75rem; }
  .hero-main h1 { margin-bottom: 1rem !important; }
}

/* 어두운 박스 안 글자는 밝게 (강사 과정 '배우는 것') */
.what-box p { color: rgba(255,255,255,0.9) !important; }
/* 휴대폰에서만 원하는 위치에서 줄바꿈 */
@media (max-width: 640px) { .m-line { display: block; } }
