/* =====================================================================
   리소스 센터(가이드·비교·블로그) 전용 스타일 — asp.css 와 분리·무간섭
   - 모든 규칙은 .asp-res 래퍼 하위에만 적용 (블로그 모달만 .blog-modal 전역)
   - guide.php / compare.php / blog.php 공용
   ===================================================================== */
@import url('https://cdn.jsdelivr.net/gh/orioncactus/pretendard@v1.3.9/dist/web/static/pretendard.css');

/* 고정 헤더(top-info+nav) 높이만큼 본문을 내려 배너 가림 해제 (활용사례 .asp-ref 와 동일) */
.asp-res{ margin-top:115px; }

.asp-res{
  --navy:#0E427E;--blue:#1462b3;--blue2:#2f86e0;--hblue:#0e438f;--bar:#3263a6;
  --soft:#f6f8fb;--cardbg:#f7faff;--bbg:#d6e1f2;--line:#e8ebf0;--tag:#eef3fa;
  --t:#222222;--body:#444b55;--mut:#6b7480;
  font-family:'Pretendard',-apple-system,'Apple SD Gothic Neo','Malgun Gothic',sans-serif;
  color:var(--t);line-height:1.3;letter-spacing:-0.025em;-webkit-font-smoothing:antialiased}
.asp-res *{box-sizing:border-box}
.asp-res h1,.asp-res h2,.asp-res h3,.asp-res h4,.asp-res p,.asp-res ul,.asp-res li{margin:0;padding:0;list-style:none}
.asp-res a{text-decoration:none;color:inherit}

/* 배너 (가이드·비교) */
.asp-res .res-banner{height:300px;display:flex;color:#fff;background-color:#0E427E;
  background-image:radial-gradient(circle at 86% 18%,rgba(47,134,224,.55),transparent 46%),radial-gradient(circle at 12% 95%,rgba(13,40,80,.55),transparent 50%),linear-gradient(120deg,#0a325f 0%,#0E427E 46%,#1462b3 100%);
  background-size:cover;background-position:center;background-repeat:no-repeat}
.asp-res .res-banner .bin{max-width:1180px;width:100%;margin:0 auto;padding:0 40px;display:flex;flex-direction:column;justify-content:center;gap:14px}
.asp-res .res-banner h1{font-size:42px;font-weight:700;line-height:1.2;color:#fff}
.asp-res .res-banner p{font-size:19px;font-weight:400;line-height:1.4;color:#eaf1f9;max-width:780px}

/* 브레드크럼 */
.asp-res .res-crumb{background:#fff;border-bottom:1px solid var(--line)}
.asp-res .res-crumb .in{max-width:1180px;margin:0 auto;padding:14px 40px;font-size:13px;color:var(--mut)}
.asp-res .res-crumb.blog .in{max-width:1364px}

.asp-res .res-wrap{max-width:1180px;margin:0 auto;padding:0 40px;display:flex;flex-direction:column;align-items:stretch;gap:45px}

/* 목차 */
.asp-res .res-toc-wrap{padding:40px 0 8px}
.asp-res .res-toc{background:var(--soft);border:1px solid var(--line);border-radius:16px;padding:30px 32px;display:flex;flex-direction:column;gap:18px}
.asp-res .res-toc .tt{font-size:16px;font-weight:700;color:var(--navy)}
.asp-res .res-toc ol{display:grid;grid-template-columns:repeat(3,1fr);gap:12px 26px;counter-reset:toc;list-style:none}
.asp-res .res-toc li{counter-increment:toc}
.asp-res .res-toc a{display:flex;align-items:center;gap:11px;font-size:16px;font-weight:500;color:#384150}
.asp-res .res-toc a::before{content:counter(toc);flex:0 0 26px;height:26px;border-radius:50%;background:#fff;border:1px solid #d5dfea;color:var(--blue);font-size:14px;font-weight:700;display:flex;align-items:center;justify-content:center}

/* 섹션 */
.asp-res .res-sec{display:flex;flex-direction:column;gap:14px;padding:56px 0;border-bottom:1px solid var(--line)}
.asp-res .res-sec:last-of-type{border-bottom:0}
.asp-res .res-sec-head{display:flex;align-items:center;gap:14px;width:100%}
.asp-res .res-bar{flex:0 0 auto;display:block;width:6px;height:38px;background:#3263a6;border-radius:1px}
.asp-res .res-bar.dark{background:#222}
.asp-res .res-secnum{flex:0 0 auto;display:flex;width:26px;height:26px;border-radius:50%;background:#fff;border:1px solid #d5dfea;color:#1462b3;font-size:14px;font-weight:700;line-height:1;align-items:center;justify-content:center}
.asp-res .res-sec-head h2{font-size:28px;font-weight:600;line-height:1.3;color:var(--hblue)}
.asp-res .res-sec-faq .res-sec-head{align-items:flex-start}
.asp-res .res-sec-faq .res-sec-head h2{color:#222}
.asp-res .res-sec-body{display:flex;flex-direction:column;gap:14px;width:100%;padding:0 15px}
.asp-res .res-sec-body.full{padding:0}
.asp-res .res-sec-body p{font-size:16px;font-weight:400;color:var(--body);line-height:1.3}
.asp-res .res-textlink{display:inline-flex;align-self:flex-start;align-items:center;gap:4px;font-size:15px;font-weight:700;color:var(--blue);margin-top:8px}
.asp-res .res-textlink::after{content:"›";font-size:18px;line-height:1}

/* 카드/스텝 */
.asp-res .res-cards{display:grid;grid-template-columns:repeat(3,1fr);gap:22px}
.asp-res .res-card{background:var(--cardbg);border-radius:16px;padding:30px 26px;display:flex;flex-direction:column;gap:10px;transition:.16s}
.asp-res .res-card:hover{box-shadow:0 12px 28px rgba(13,40,80,.08);transform:translateY(-3px)}
.asp-res .res-card .ico{width:52px;height:52px;border-radius:13px;background:var(--bbg);display:flex;align-items:center;justify-content:center}
.asp-res .res-card .ico svg{width:28px;height:28px}
.asp-res .res-card h3{font-size:19px;font-weight:600;color:#11161d;line-height:1.3}
.asp-res .res-card p{font-size:16px;font-weight:400;color:var(--mut);line-height:1.3}
.asp-res .res-steps{display:grid;grid-template-columns:repeat(3,1fr);gap:22px}
.asp-res .res-step{background:var(--soft);border-radius:16px;padding:28px 26px;display:flex;flex-direction:column;gap:8px}
.asp-res .res-step .num{width:36px;height:36px;border-radius:50%;background:#384150;color:#fff;font-size:16px;font-weight:700;display:flex;align-items:center;justify-content:center}
.asp-res .res-step h4{font-size:19px;font-weight:500;color:#11161d;line-height:1.3}
.asp-res .res-step p{font-size:16px;font-weight:400;color:var(--mut);line-height:1.3}
.asp-res .res-btns{display:flex;gap:12px;flex-wrap:wrap;margin-top:8px}
.asp-res .res-sec-body.full .res-btns{justify-content:center}
.asp-res .res-btn{display:inline-block;padding:13px 28px;border-radius:8px;font-size:15px;font-weight:700;cursor:pointer}
.asp-res .res-btn.pri{background:#1e5ea1;color:#fff}

/* FAQ */
.asp-res .res-faq{display:flex;flex-direction:column;padding:0 20px}
.asp-res .res-faq .item{display:flex;flex-direction:column;gap:10px;padding:22px 0;border-bottom:1px solid var(--line)}
.asp-res .res-faq .item:first-child{border-top:1px solid var(--line)}
.asp-res .res-faq .q{font-size:17px;font-weight:600;color:#222;line-height:1.3;white-space:pre-wrap}
.asp-res .res-faq .a{font-size:16px;font-weight:400;color:var(--mut);line-height:1.3}

/* 비교표 */
.asp-res .res-table-wrap{overflow-x:auto}
.asp-res .res-table{width:100%;border-collapse:separate;border-spacing:0;min-width:720px;border:1px solid var(--line);border-radius:14px;overflow:hidden}
.asp-res .res-table th,.asp-res .res-table td{padding:16px 18px;text-align:left;line-height:1.3;border-bottom:1px solid var(--line);border-right:1px solid var(--line);vertical-align:middle}
.asp-res .res-table tr td:last-child,.asp-res .res-table tr th:last-child{border-right:0}
.asp-res .res-table tr:last-child td{border-bottom:0}
.asp-res .res-table thead th{background:#0e427e;color:#fff;font-weight:600;font-size:18px}
.asp-res .res-table thead th.hl{background:#006ad7}
.asp-res .res-table tbody th{background:#f6f8fb;font-weight:500;color:#2a3340;font-size:15px;width:200px}
.asp-res .res-table td{color:#4a525d;font-size:16px;font-weight:400}
.asp-res .res-table td.hl{background:#f1f7fe;font-weight:500;color:#10395f}
.asp-res .res-wrap-compare{gap:12px}
.asp-res .res-h-why{font-size:25px;font-weight:700;color:#0e427e;line-height:1.3}
.asp-res .res-h-select{font-size:28px;font-weight:600;color:#222;line-height:1.3}
.asp-res .res-table-intro{font-size:18px;font-weight:500;color:#444b55;line-height:1.3;margin-bottom:14px}
.asp-res .res-table-intro strong{font-weight:600;color:#004faa}

/* CTA (가이드=그라데이션 / 비교=다크 / 블로그=#3263a6) */
.asp-res .res-cta{text-align:center;padding:58px 24px;display:flex;flex-direction:column;align-items:center;gap:10px;background:linear-gradient(to right,rgba(0,0,0,.28),rgba(255,255,255,.10)),#1462b3}
.asp-res .res-cta-dark{background:linear-gradient(to right,#343e48,#253b52)}
.asp-res .res-cta-blog{background:#3263a6}
.asp-res .res-cta h2{font-size:26px;font-weight:700;color:#fff;line-height:1.3}
.asp-res .res-cta p{font-size:16px;color:#eaf1f9;line-height:1.5}
.asp-res .res-cta .btns{display:flex;gap:12px;justify-content:center;flex-wrap:wrap;margin-top:14px}
.asp-res .res-cta .btn{padding:14px 32px;border-radius:8px;font-size:16px;font-weight:600;display:inline-block;margin-top:0}
.asp-res .res-cta .btn.pri{background:#fff;color:var(--blue)}
.asp-res .res-cta-dark .btn.pri{color:#343e48}
.asp-res .res-cta-blog .btn,.asp-res .res-cta-blog .btn.pri{background:#fff;color:#1462b3}
.asp-res .res-cta .btn.sec{background:transparent;color:#fff;border:1px solid rgba(255,255,255,.75)}

/* ===== 블로그 (blog.php / v4) ===== */
.asp-res .res-bbanner{position:relative;height:314px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:14px;overflow:hidden;background:#0e1b2e}
.asp-res .res-bbanner .bg{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;z-index:0}
.asp-res .res-bbanner .bt{position:relative;z-index:1;font-size:50px;font-weight:800;color:#fff;line-height:1.3}
.asp-res .res-bbanner .bsubwrap{position:relative;z-index:1;display:flex;justify-content:center;width:752px;max-width:86%;border-top:1px solid rgba(255,255,255,.85);padding-top:13px}
.asp-res .res-bbanner .bsub{font-size:20px;color:rgba(255,255,255,.63);line-height:1.3;text-align:center}
.asp-res .res-wrap-blog{max-width:1364px;margin:0 auto;padding:56px 40px 0}
.asp-res .res-cats{display:flex;gap:10px;flex-wrap:wrap;margin-bottom:48px}
.asp-res .res-cat{padding:9px 20px;border:1px solid var(--line);background:#fff;border-radius:30px;font-size:15px;font-weight:500;color:#56616f;cursor:pointer}
.asp-res .res-cat.on{background:var(--blue);border-color:var(--blue);color:#fff}
.asp-res .res-blog-sec{margin-bottom:72px}
.asp-res .res-blog-h{font-size:28px;font-weight:700;color:#222;line-height:1.3;margin-bottom:24px}
.asp-res .res-bloggrid{display:grid;grid-template-columns:repeat(3,1fr);column-gap:40px;row-gap:34px}
.asp-res .res-bcard2{display:flex;flex-direction:column;background:#fff;border-radius:14px;overflow:hidden;box-shadow:6px 5px 11.35px rgba(0,0,0,.08);cursor:pointer}
.asp-res .res-bcard2 .thumb{display:block;width:100%;aspect-ratio:428/328;overflow:hidden;background:#eef3fa}
.asp-res .res-bcard2 .thumb img{width:100%;height:100%;object-fit:cover;display:block;transition:.25s}
.asp-res .res-bcard2:hover .thumb img{transform:scale(1.04)}
.asp-res .res-bcard2 .body{display:flex;flex-direction:column;gap:7px;padding:10px 16px 16px}
.asp-res .res-bcard2 .ctop{display:flex;flex-direction:column;gap:9px}
.asp-res .res-bcard2 .tag{align-self:flex-start;background:#eef3fa;color:#1462b3;font-size:12px;font-weight:500;padding:4px 11px;border-radius:5px}
.asp-res .res-bcard2 .ttl{font-size:20px;font-weight:600;color:#222;line-height:1.3;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.asp-res .res-bcard2 .exc{font-size:16px;font-weight:400;color:#767676;line-height:1.3;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.asp-res .res-bcard2 .foot{display:flex;align-items:center;justify-content:space-between;margin-top:2px}
.asp-res .res-bcard2 .more{font-size:16px;font-weight:500;color:#1462b3;padding:10px 0}
.asp-res .res-bcard2 .date{font-size:12.5px;color:#9aa3af}

/* 블로그 모달 (전역) */
.blog-modal{position:fixed;inset:0;z-index:99999;display:none;background:rgba(10,20,35,.55);padding:40px 20px;overflow-y:auto;font-family:'Pretendard',sans-serif;letter-spacing:-0.025em}
.blog-modal.open{display:block}
.blog-modal-box{position:relative;background:#fff;border-radius:16px;max-width:760px;width:100%;margin:0 auto;overflow:hidden;box-shadow:0 20px 60px rgba(0,0,0,.3)}
.blog-modal-close{position:absolute;top:14px;right:14px;width:38px;height:38px;border:0;border-radius:50%;background:rgba(255,255,255,.88);color:#333;font-size:22px;line-height:1;cursor:pointer;z-index:3}
.blog-modal-thumb{width:100%;aspect-ratio:760/300;object-fit:cover;display:block;background:#eef3fa}
.blog-modal-inner{padding:30px 36px 38px;color:#222}
.blog-modal-meta{font-size:13px;color:#9aa3af;margin-bottom:10px}
.blog-modal-inner > h2{font-size:26px;font-weight:700;color:#222;line-height:1.35;margin-bottom:8px}
.blog-modal .res-article p{font-size:16.5px;color:#333;line-height:1.8;margin:14px 0}
.blog-modal .res-article h2{font-size:20px;font-weight:700;color:#222;margin:24px 0 8px}
.blog-modal .res-article ul{margin:0 0 16px;padding-left:20px}
.blog-modal .res-article li{font-size:16px;color:#333;line-height:1.7;margin-bottom:7px}
.blog-modal .res-article strong{font-weight:700;color:#222}
.blog-modal .res-article a{color:#1462b3;font-weight:600;text-decoration:underline}
.blog-modal .res-article blockquote{margin:20px 0;padding:14px 18px;background:#f6f8fb;border-left:4px solid #1462b3;border-radius:0 8px 8px 0;font-size:16px;color:#2f3b52;font-weight:500}
.blog-modal-src{margin-top:28px;padding-top:18px;border-top:1px solid #e8ebf0;font-size:13.5px;color:#6b7480}

/* ===== 유튜브 쇼츠 (세로 9:16) ===== */
.asp-res .res-vidgrid{display:grid;grid-template-columns:repeat(4,1fr);gap:20px}
.asp-res .res-vcard{position:relative;cursor:pointer;border-radius:14px;overflow:hidden;background:#0e1b2e;aspect-ratio:9/16;box-shadow:6px 5px 11.35px rgba(0,0,0,.08)}
.asp-res .res-vcard img,.asp-res .res-vcard video{width:100%;height:100%;object-fit:cover;display:block;transition:.25s}
.asp-res .res-vcard:hover img,.asp-res .res-vcard:hover video{transform:scale(1.04)}
.asp-res .res-vcard .play{position:absolute;inset:0;display:flex;align-items:center;justify-content:center}
.asp-res .res-vcard .play svg{width:56px;height:56px;background:rgba(0,0,0,.45);border-radius:50%;padding:15px;box-sizing:border-box}
.asp-res .res-vcard .vmeta{position:absolute;left:0;right:0;bottom:0;display:flex;flex-direction:column;gap:3px;padding:30px 14px 13px;background:linear-gradient(transparent,rgba(0,0,0,.78));color:#fff}
.asp-res .res-vcard .vt{font-size:14px;font-weight:600;line-height:1.3;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.asp-res .res-vcard .vd{font-size:12px;color:rgba(255,255,255,.7)}
/* 영상 콘텐츠 티저(추천↔전체 사이, 카드 3개 한 줄) */
.asp-res .res-vidgrid.teaser{grid-template-columns:repeat(3,1fr)}
/* 티저 카드만 길이 완화: 9:16 → 4:5 (영상 비율 유지, 중앙만 살짝 크롭 → 얼굴 안전).
   더 줄이려면 4/5 를 1/1(정사각), 더 키우려면 3/4 로 바꾸면 됨. */
.asp-res .res-vidgrid.teaser .res-vcard{aspect-ratio:4/5}
.asp-res .res-vidgrid.teaser .res-vcard img,
.asp-res .res-vidgrid.teaser .res-vcard video{object-position:center 30%}
.asp-res .res-vidmore{display:flex;justify-content:center;margin-top:28px}
.asp-res .res-vidmore a{display:inline-flex;align-items:center;gap:7px;border:1px solid var(--line);background:#fff;border-radius:999px;padding:12px 30px;font-weight:700;font-size:16px;color:#1462b3;cursor:pointer}
.asp-res .res-vidmore a:hover{border-color:#1462b3}
@media(max-width:640px){.asp-res .res-vidgrid.teaser{grid-template-columns:repeat(2,1fr)}}
/* 영상 모달 */
.video-modal{position:fixed;inset:0;z-index:99999;display:none;background:rgba(8,14,24,.8);padding:24px}
.video-modal.open{display:flex;align-items:center;justify-content:center}
.video-modal-box{width:100%;max-width:430px}
.video-modal-box video,.video-modal-box iframe{width:100%;aspect-ratio:9/16;max-height:86vh;border:0;border-radius:14px;background:#000;display:block}
.video-modal-close{position:absolute;top:18px;right:22px;width:42px;height:42px;border:0;border-radius:50%;background:rgba(255,255,255,.9);color:#222;font-size:24px;line-height:1;cursor:pointer;z-index:2}
@media(max-width:1024px){.asp-res .res-vidgrid{grid-template-columns:repeat(3,1fr)}}
@media(max-width:640px){.asp-res .res-vidgrid{grid-template-columns:repeat(2,1fr)}}

@media(max-width:1024px){.asp-res .res-cards,.asp-res .res-steps{grid-template-columns:1fr 1fr}.asp-res .res-toc ol{grid-template-columns:1fr 1fr}.asp-res .res-bloggrid{grid-template-columns:1fr 1fr}}
@media(max-width:768px){.asp-res .res-wrap{gap:32px}.asp-res .res-banner{height:auto;padding:54px 0}.asp-res .res-banner h1{font-size:30px}.asp-res .res-sec{padding:36px 0}.asp-res .res-sec-head h2{font-size:23px}.asp-res .res-sec-body,.asp-res .res-faq{padding:0}.asp-res .res-cards,.asp-res .res-steps{grid-template-columns:1fr}.asp-res .res-toc ol{grid-template-columns:1fr}}
@media(max-width:640px){.asp-res .res-bloggrid{grid-template-columns:1fr}.asp-res .res-bbanner{height:240px}.asp-res .res-bbanner .bt{font-size:32px}}
