/* ============================================================
   만세케어 — 홈(랜딩) 페이지 전용 스타일
   manse.css + manse-yellow.css 뒤에 로드
   ============================================================ */

/* 보건복지부 배지 */
.ministry-badge { height: 60px; width: auto; position: relative; top: 0; left: -10px; }

/* 헤더 투명 처리 (노랑 히어로 페이지 공통) */
.header { background: transparent; border-bottom: none; backdrop-filter: none; }
.header.scrolled { background: rgba(255,250,235,.92); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); box-shadow: var(--shadow-sm); }
.header .btn-primary { background: #ED6F23; color: #fff; box-shadow: 0 6px 16px rgba(237,111,35,.3); }
.header .btn-primary:hover { background: #d85f17; }
.header .btn-ghost { border-color: rgba(58,44,0,.28); color: #3a2c00; }
.header .btn-ghost:hover { background: rgba(255,255,255,.4); }

/* ===== 히어로 ===== */
.l-hero { background: var(--primary); position: relative; overflow: hidden; margin-top: -74px; }
.l-hero::before { content: ""; position: absolute; width: 62vw; height: 62vw; max-width: 780px; max-height: 780px; border-radius: 50%; background: rgba(255,255,255,.22); top: -22%; right: -12%; }

/* 배경 빛망울 애니메이션 */
.l-bg { position: absolute; inset: 0; z-index: 0; overflow: hidden; pointer-events: none; }
.l-bg .orb { position: absolute; border-radius: 50%; filter: blur(7px); will-change: transform; }
.l-bg .o1 { width: clamp(240px,28vw,440px); aspect-ratio: 1; top: -12%; right: 5%; background: rgba(255,255,255,.72); animation: l-drift1 11s ease-in-out infinite; }
.l-bg .o2 { width: clamp(180px,22vw,340px); aspect-ratio: 1; bottom: -16%; left: 3%; background: rgba(237,111,35,.22); animation: l-drift2 13s ease-in-out infinite; }
.l-bg .o3 { width: clamp(130px,15vw,230px); aspect-ratio: 1; top: 18%; left: 38%; background: rgba(255,255,255,.6); animation: l-drift3 16s ease-in-out infinite; }
@keyframes l-drift1 { 0%,100% { transform: translate(0,0) scale(1); } 50% { transform: translate(-90px,60px) scale(1.22); } }
@keyframes l-drift2 { 0%,100% { transform: translate(0,0) scale(1); } 50% { transform: translate(80px,-58px) scale(1.2); } }
@keyframes l-drift3 { 0%,100% { transform: translate(0,0) scale(1); } 50% { transform: translate(60px,70px) scale(1.28); } }

/* 떠오르는 입자 */
.l-bg .dot { position: absolute; bottom: -24px; border-radius: 50%; background: rgba(255,255,255,.75); will-change: transform, opacity; }
.l-bg .d1 { left: 12%; width: 14px; height: 14px; animation: l-rise 13s linear infinite; }
.l-bg .d2 { left: 28%; width: 9px; height: 9px; background: rgba(58,44,0,.16); animation: l-rise 17s linear infinite 2s; }
.l-bg .d3 { left: 46%; width: 18px; height: 18px; animation: l-rise 15s linear infinite 4s; }
.l-bg .d4 { left: 63%; width: 11px; height: 11px; animation: l-rise 19s linear infinite 1s; }
.l-bg .d5 { left: 78%; width: 15px; height: 15px; background: rgba(237,111,35,.3); animation: l-rise 14s linear infinite 6s; }
.l-bg .d6 { left: 90%; width: 8px; height: 8px; animation: l-rise 16s linear infinite 3s; }
@keyframes l-rise { 0% { transform: translateY(0) scale(.5); opacity: 0; } 12% { opacity: .9; } 88% { opacity: .9; } 100% { transform: translateY(-72vh) scale(1); opacity: 0; } }

/* 하트 일러스트 */
.l-hero .care { position: absolute; right: max(24px,calc(50vw - 700px + 24px)); bottom: clamp(40px,6vw,80px); width: clamp(160px,16vw,240px); z-index: 1; pointer-events: none; animation: l-float 5s ease-in-out infinite; filter: drop-shadow(0 12px 22px rgba(58,44,0,.18)); transform-origin: 60% 80%; }
@keyframes l-float { 0% { transform: translateY(0) rotate(-3deg) scale(1); } 25% { transform: translateY(-12px) rotate(2deg) scale(1.02); } 50% { transform: translateY(-18px) rotate(-1deg) scale(1.04); } 75% { transform: translateY(-10px) rotate(3deg) scale(1.02); } 100% { transform: translateY(0) rotate(-3deg) scale(1); } }
@media (max-width:1100px) { .l-hero .care { width: clamp(130px,14vw,180px); } }
@media (max-width:760px) { .l-hero .care { width: 110px; right: 18px; bottom: 24px; opacity: .94; } }
@media (max-width:480px) { .l-hero .care { display: none; } }

/* 히어로 내부 */
.l-hero .inner { position: relative; z-index: 1; padding: calc(74px + clamp(24px,3vw,44px)) 24px clamp(44px,6vw,80px); }
.l-hero h1 { font-size: clamp(40px,7vw,96px); font-weight: 800; letter-spacing: -.04em; line-height: .98; color: #3a2c00; margin: 24px 0 0; }
.l-hero h1 .out { -webkit-text-stroke: 2.5px #3a2c00; color: transparent; font-size: 1.25em; display: inline-block; vertical-align: -0.06em; }
.l-hero h1 .ro { display: inline-block; transform: translateY(0.18em); margin-left: 0.02em; }
.l-hero .sub { font-size: clamp(17px,2.1vw,23px); color: #3a2c00; font-weight: 600; margin: 26px 0 0; max-width: 620px; line-height: 1.55; }
.l-hero .cta-row { display: flex; gap: 14px; margin-top: 32px; flex-wrap: wrap; }
.l-hero .btn-deep { background: var(--primary-deep); color: #fff; }
.l-hero .btn-deep:hover { background: #7d5700; }
.l-hero .btn-wht { background: #fff; color: #3a2c00; }
.l-hero .btn-wht:hover { filter: brightness(.97); }

/* 혜택 칩 */
.l-pills { display: flex; flex-wrap: wrap; gap: 12px; margin-top: clamp(34px,4vw,52px); position: relative; z-index: 1; }
.l-pills .p { display: inline-flex; align-items: center; background: rgba(255,255,255,.42); color: #3a2c00; border: 1px solid rgba(58,44,0,.14); border-radius: 999px; padding: 10px 18px; font-weight: 800; font-size: clamp(15px,4vw,19px); }
@media(max-width:540px){.l-pills{gap:6px;flex-wrap:nowrap;}.l-pills .p{font-size:clamp(12px,3.5vw,15px);padding:6px 10px;}.l-pills .p--night{display:none;}}

/* ===== 교육원 소개 섹션 ===== */
.l-branch { background: var(--surface); }
.branch-grid { display: grid; grid-template-columns: repeat(2,1fr); gap: 22px; }
.branch { position: relative; background: var(--bg); border: 1px solid var(--line); border-radius: 22px; padding: 0; overflow: hidden; box-shadow: var(--shadow-sm); transition: transform .18s, box-shadow .18s; display: flex; flex-direction: column; }
.branch:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); }
.branch-photo { position: relative; width: 100%; aspect-ratio: 16/9; overflow: hidden; background: var(--surface-2); }
.branch-photo > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; animation: branch-fade 12s infinite; }
.branch-photo > img:nth-child(1) { animation-delay: 0s; }
.branch-photo > img:nth-child(2) { animation-delay: 4s; }
.branch-photo > img:nth-child(3) { animation-delay: 8s; }
@keyframes branch-fade { 0%,28% { opacity: 1; } 36%,100% { opacity: 0; } }
.branch-photo--5 > img { animation: branch-fade5 20s infinite; }
.branch-photo--5 > img:nth-child(4) { animation-delay: 12s; }
.branch-photo--5 > img:nth-child(5) { animation-delay: 16s; }
@keyframes branch-fade5 { 0%,17% { opacity: 1; } 23%,100% { opacity: 0; } }
.branch:hover .branch-photo img { animation-play-state: paused; }
.branch-photo .pin { position: absolute; left: 18px; top: 16px; z-index: 2; display: inline-flex; align-items: center; gap: 7px; font-size: 16px; font-weight: 800; color: #ed6f23; background: rgba(255,255,255,.92); padding: 7px 14px; border-radius: 999px; box-shadow: 0 4px 10px rgba(0,0,0,.1); }
.branch-photo .pin img { width: 18px; height: 18px; object-fit: contain; display: inline-block; }
.branch-photo .dots { position: absolute; right: 14px; bottom: 12px; z-index: 2; display: flex; gap: 6px; }
.branch-photo .dots i { width: 7px; height: 7px; border-radius: 50%; background: rgba(255,255,255,.6); animation: dot-pulse 12s infinite; }
.branch-photo .dots i:nth-child(1) { animation-delay: 0s; }
.branch-photo .dots i:nth-child(2) { animation-delay: 4s; }
.branch-photo .dots i:nth-child(3) { animation-delay: 8s; }
@keyframes dot-pulse { 0%,28% { background: #fff; transform: scale(1.3); } 36%,100% { background: rgba(255,255,255,.55); transform: scale(1); } }
.branch-body { padding: clamp(24px,3.2vw,36px); display: flex; flex-direction: column; flex: 1; }
.branch h3 { font-size: clamp(24px,2.8vw,32px); font-weight: 800; margin: 0 0 6px; letter-spacing: -.02em; }
.branch .lead { color: var(--muted); font-size: 15.5px; margin: 0 0 20px; }
.branch .rows { display: flex; flex-direction: column; gap: 14px; border-top: 1px dashed var(--line); padding-top: 18px; margin-bottom: 22px; }
.branch .rows .r { display: flex; align-items: flex-start; gap: 11px; font-size: 18px; color: #46535b; }
.branch .rows .r .ic { width: 24px; text-align: center; color: var(--primary-deep); flex: none; font-size: 17px; }
.branch .rows .r b { color: #ed6f23; font-size: 30px; font-weight: 900; letter-spacing: .01em; line-height: 1.1; }
.branch .acts { display: flex; gap: 10px; flex-wrap: wrap; margin-top: auto; align-self: flex-start; align-items: center; }

/* ===== 자격증 요약 카드 ===== */
.l-cert { background: var(--bg); }

.cert-illust { display: block; width: clamp(110px,12vw,150px); height: auto; 
               margin: 0 auto 18px; filter: drop-shadow(0 8px 18px rgba(58,44,0,.15)); animation: cert-bob 4s ease-in-out infinite; }

@keyframes cert-bob { 0%,100% { transform: translateY(0) rotate(-2deg); } 50% { transform: translateY(-6px) rotate(2deg); } }
.cert-card { background: var(--surface); border: 1px solid var(--line); border-radius: 24px; padding: clamp(32px,4.5vw,56px); box-shadow: var(--shadow-sm); }
.cert-card .head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap; margin-bottom: clamp(24px,3vw,36px); }
.cert-card .head .badge { display: inline-flex; align-items: center; gap: 8px; font-size: 13.5px; font-weight: 800; color: #3a2c00; background: var(--primary); padding: 6px 14px; border-radius: 999px; }
.cert-card .head h3 { font-size: clamp(24px,3vw,34px); font-weight: 800; margin: 6px 0 8px; letter-spacing: -.02em; line-height: 1.25; }
.cert-card .head p { margin: 0; color: #46535b; font-size: 17px; line-height: 1.7; max-width: 560px; }
.cert-card .head .acts { display: flex; gap: 10px; flex-wrap: wrap; }
.cert-stats { display: grid; grid-template-columns: repeat(4,1fr); gap: 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.cert-stats .s { padding: 22px 24px; border-right: 1px dashed var(--line); }
.cert-stats .s:last-child { border-right: none; }
.cert-stats .k { font-size: 13px; font-weight: 700; color: var(--muted); letter-spacing: .04em; }
.cert-stats .v { font-size: clamp(22px,2.4vw,28px); font-weight: 900; color: var(--ink); margin-top: 6px; line-height: 1.1; }
.cert-stats .v small { font-size: 13px; font-weight: 700; color: var(--muted); margin-left: 3px; }
.cert-stats .v em { font-style: normal; color: #ed6f23; }
.cert-stats .sub { font-size: 14px; color: var(--muted); margin-top: 6px; }
.cert-feats { display: grid; grid-template-columns: repeat(4,1fr); gap: 20px; margin-top: clamp(24px,3vw,36px); }
.cert-feats .f { display: flex; gap: 14px; align-items: flex-start; }
.cert-feats .ic { width: 44px; height: 44px; border-radius: 11px; background: var(--primary-soft); color: var(--primary-deep); display: grid; place-items: center; font-size: 21px; flex: none; }
.cert-feats .tx { font-size: 18px; font-weight: 800; color: var(--ink); line-height: 1.4; }
.cert-feats .tx span { display: block; font-size: 15px; font-weight: 500; color: var(--muted); margin-top: 5px; }

/* ===== 중간 CTA ===== */
.l-mid-cta { background: var(--surface-2); }
.l-mid-cta h2 { font-size: clamp(22px,3vw,36px); font-weight: 800; letter-spacing: -.02em; }

/* ===== 구인구직 / FAQ 배경 구분 ===== */
.section.jobs { background: var(--surface-2); }
.section.faq  { background: var(--surface); }

/* ===== 하단 CTA ===== */
.l-cta { background: var(--primary); text-align: center; padding: clamp(32px,4vw,56px) 0; }
.l-cta h2 { font-size: clamp(30px,4.6vw,56px); font-weight: 800; color: #3a2c00; letter-spacing: -.03em; }
.l-cta p { color: #3a2c00; font-weight: 600; font-size: clamp(16px,1.8vw,20px); margin: 14px 0 0; }
.l-cta .btn-deep { background: var(--primary-deep); color: #fff; }
.l-cta .btn-deep:hover { background: #7d5700; }

/* ===== 반응형 ===== */
@media (max-width:980px) {
    .cert-stats { grid-template-columns: repeat(2,1fr); }
    .cert-stats .s:nth-child(2) { border-right: none; }
    .cert-stats .s:nth-child(1), .cert-stats .s:nth-child(2) { border-bottom: 1px dashed var(--line); }
    .cert-feats { grid-template-columns: repeat(2,1fr); }
}
@media (max-width:860px) {
    .branch-grid { grid-template-columns: 1fr; }
}
@media (max-width:540px) {
    .cert-stats { grid-template-columns: 1fr; }
    .cert-stats .s { border-right: none; border-bottom: 1px dashed var(--line); }
    .cert-stats .s:last-child { border-bottom: none; }
    .cert-feats { grid-template-columns: 1fr; }
    .cert-card .head { flex-direction: column; align-items: flex-start; }
}
