/*
Theme Name: 헬스플러스뉴스 (Health Plus News)
Theme URI: https://hospitalplus.co.kr/
Author: 헬스플러스뉴스
Description: 의료·건강 전문 인터넷 신문을 위한 심플·깔끔한 매거진형 워드프레스 테마입니다. 흰 배경 카드형 레이아웃, 브랜드 블루+그린 톤, 카테고리별 자동 배치, 기사 상세, 인기기사, 이슈 헤드라인, 네이버 블로그 연결을 제공합니다. '게시판' 카테고리 글은 신문 지면에 노출되지 않습니다. 매체명·로고는 워드프레스 설정에서 언제든 변경할 수 있습니다.
Version: 1.1.0
Requires at least: 6.0
Tested up to: 6.6
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: healthplus-news
Tags: news, magazine, blog, custom-logo, custom-menu, featured-images, right-sidebar, threaded-comments, translation-ready
*/

:root{
  --blue:#1f6fd6; --blue-deep:#173a63; --green:#54ad3f;
  --ink:#1f2733; --gray:#727b86; --line:#e9edf1; --soft:#f5f8fb; --paper:#ffffff;
}
*{margin:0;padding:0;box-sizing:border-box}
html{scroll-behavior:smooth}
body{font-family:'Noto Sans KR',-apple-system,BlinkMacSystemFont,'Malgun Gothic',sans-serif;color:var(--ink);background:var(--paper);line-height:1.6;-webkit-font-smoothing:antialiased}
a{color:inherit;text-decoration:none}
img{max-width:100%;height:auto;display:block}
.wrap{max-width:1180px;margin:0 auto;padding:0 20px}
.screen-reader-text{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0)}

.thumb{position:relative;overflow:hidden;border-radius:8px;background:var(--soft);display:flex;align-items:flex-end}
.thumb img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}
.thumb .ico{width:100%;text-align:center;font-size:34px;padding:0 0 16px;opacity:.55;position:relative}
.g1{background:linear-gradient(135deg,#e8f1fc,#d3e6fa)}
.g2{background:linear-gradient(135deg,#e6f5e4,#d1eccf)}
.g3{background:linear-gradient(135deg,#eef1f5,#dde3ea)}
.g4{background:linear-gradient(135deg,#fdeef1,#f7dbe2)}

/* util */
.util{border-bottom:1px solid var(--line);font-size:12.5px;color:var(--gray)}
.util .wrap{display:flex;justify-content:space-between;align-items:center;height:38px}
.util .r a{margin-left:16px;color:var(--gray)}
.util .r a:hover{color:var(--blue)}

/* masthead */
.mast .wrap{display:flex;align-items:center;justify-content:space-between;padding:20px 20px 18px;gap:16px}
.brand{display:flex;align-items:center;gap:13px}
.brand .mk{position:relative;width:48px;height:48px;flex-shrink:0}
.brand .mk .cross{position:absolute;inset:0;background:var(--blue);border-radius:12px;-webkit-mask:linear-gradient(#000 0 0) center/18px 100% no-repeat,linear-gradient(#000 0 0) center/100% 18px no-repeat;mask:linear-gradient(#000 0 0) center/18px 100% no-repeat,linear-gradient(#000 0 0) center/100% 18px no-repeat}
.brand .mk .leaf{position:absolute;right:-2px;bottom:-2px;width:24px;height:24px;background:var(--green);border-radius:0 60% 0 60%;transform:rotate(8deg)}
.brand .site-title{font-size:29px;font-weight:900;letter-spacing:-1.2px;color:var(--blue-deep);line-height:1.1}
.brand .tag{font-size:11px;color:var(--gray);letter-spacing:.5px;margin-top:1px}
.brand .custom-logo{max-height:66px;width:auto}
.mast .ad{width:300px;height:60px;border:1px dashed #d6dee7;border-radius:6px;display:flex;align-items:center;justify-content:center;color:#aab4bf;font-size:12px}
.search{display:flex;align-items:center;border:1.5px solid var(--line);border-radius:22px;padding:8px 15px;gap:8px}
.search input[type=search]{border:none;outline:none;font-size:14px;width:140px;font-family:inherit;background:none}
.search button{border:none;background:none;color:var(--blue);font-size:15px;cursor:pointer}

/* nav */
.site-nav{border-top:2px solid var(--blue);border-bottom:1px solid var(--line);position:sticky;top:0;background:var(--paper);z-index:40}
.site-nav .wrap{display:flex;align-items:center}
.site-nav ul{list-style:none;display:flex;flex-wrap:wrap;margin:0;padding:0}
.site-nav li a{display:block;padding:15px 20px;font-size:15.5px;font-weight:700;color:var(--ink);position:relative}
.site-nav li a:hover,.site-nav li.current-menu-item>a,.site-nav li.current_page_item>a{color:var(--blue)}
.site-nav li.current-menu-item>a::after,.site-nav li a:hover::after{content:'';position:absolute;left:20px;right:20px;bottom:-1px;height:3px;background:var(--green);border-radius:2px}
.site-nav .allm{padding:15px 14px 15px 0;color:var(--blue-deep);font-size:18px;cursor:pointer}
.site-nav .sub-menu{display:none}

/* headline strip */
.strip{background:var(--soft);border-bottom:1px solid var(--line)}
.strip .wrap{display:flex;align-items:center;gap:18px;height:44px;font-size:14px;overflow:hidden}
.strip .lab{color:var(--blue);font-weight:900;white-space:nowrap}
.strip .items{display:flex;gap:26px;overflow:hidden;white-space:nowrap}
.strip a{color:var(--ink);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.strip a:hover{color:var(--blue)}

/* layout */
.main{display:grid;grid-template-columns:1fr 300px;gap:40px;padding:34px 0}
section.col{min-width:0}

/* hero */
.hero{display:grid;grid-template-columns:1.5fr 1fr;gap:26px;padding-bottom:30px;border-bottom:1px solid var(--line)}
.lead .thumb{height:330px}
.cat{display:inline-flex;align-items:center;justify-content:center;color:#fff;background:var(--blue);padding:5px;border-radius:7px;line-height:0}
.cat svg{width:15px;height:15px;display:block;stroke:#fff}
.cat.gr{background:var(--green)} .cat.pk{background:#d9628a} .cat.gy{background:#8a94a0}
.lead .cat{margin:14px 0 9px}
.lead h2{font-size:27px;font-weight:900;line-height:1.34;letter-spacing:-.6px}
.lead h2 a:hover{color:var(--blue)}
.lead p{color:var(--gray);font-size:15px;margin-top:10px}
.side{display:flex;flex-direction:column;gap:17px}
.side .it{display:grid;grid-template-columns:96px 1fr;gap:14px;padding-bottom:16px;border-bottom:1px solid var(--line)}
.side .it:last-child{border-bottom:none;padding-bottom:0}
.side .it .thumb{height:66px}
.side .it .cat{margin-bottom:5px}
.side .it h3{font-size:15.5px;font-weight:700;line-height:1.42}
.side .it h3 a:hover{color:var(--blue)}

/* section */
.sec{margin-top:34px}
.sec-h{display:flex;align-items:center;justify-content:space-between;margin-bottom:18px}
.sec-h h2{font-size:20px;font-weight:900;color:var(--blue-deep);display:flex;align-items:center;gap:9px}
.sec-h h2::before{content:'';width:6px;height:20px;background:var(--green);border-radius:3px}
.sec-h .more{font-size:13px;color:var(--gray)}
.cards{display:grid;grid-template-columns:repeat(3,1fr);gap:24px}
.card .thumb{height:158px}
.card .cat{margin:13px 0 8px}
.card h3{font-size:16.5px;font-weight:700;line-height:1.42}
.card h3 a:hover{color:var(--blue)}
.card p{font-size:13.5px;color:var(--gray);margin-top:7px}
.card .meta{font-size:12px;color:#9aa4af;margin-top:9px}

/* list variant */
.listwrap{display:grid;grid-template-columns:1fr 1fr;gap:0 34px}
.li{display:grid;grid-template-columns:1fr 120px;gap:16px;padding:16px 0;border-bottom:1px solid var(--line)}
.li .cat{margin-bottom:7px}
.li h3{font-size:16px;font-weight:700;line-height:1.42}
.li h3 a:hover{color:var(--blue)}
.li .meta{font-size:12px;color:#9aa4af;margin-top:8px}
.li .thumb{height:76px}

/* rows (archive/search) */
.rows .li{grid-template-columns:1fr 150px}
.rows .li .thumb{height:96px}

/* sidebar */
.sidebar .box,.widget{border:1px solid var(--line);border-radius:10px;padding:20px;margin-bottom:22px}
.sidebar .box h4,.widget .widget-title{font-size:15.5px;font-weight:900;color:var(--blue-deep);padding-bottom:12px;margin-bottom:4px;border-bottom:2px solid var(--blue)}
.rank a{display:flex;gap:12px;padding:11px 0;border-bottom:1px dashed var(--line)}
.rank a:last-child{border-bottom:none}
.rank .n{font-size:16px;font-weight:900;color:var(--blue);min-width:20px}
.rank a:nth-child(-n+3) .n{color:var(--green)}
.rank .tt{font-size:14px;font-weight:500;line-height:1.4}
.rank a:hover .tt{color:var(--blue)}
.promo{background:linear-gradient(140deg,var(--blue),var(--blue-deep));color:#fff;border:none}
.promo h4{color:#fff;border:none;padding:0;margin-bottom:8px}
.promo p{font-size:13.5px;color:#dbe8f8;line-height:1.6}
.naverbox{display:flex;align-items:center;gap:12px;border:1px solid var(--line);border-radius:10px;padding:16px 18px;margin-bottom:22px}
.naverbox .n{width:38px;height:38px;background:#03c75a;color:#fff;border-radius:9px;display:flex;align-items:center;justify-content:center;font-weight:900;font-size:20px;flex-shrink:0}
.naverbox b{font-size:14.5px;display:block}
.naverbox span{font-size:12px;color:var(--gray)}
.ad2{border:1px dashed #d6dee7;border-radius:10px;height:250px;display:flex;flex-direction:column;align-items:center;justify-content:center;color:#aab4bf;font-size:13px;gap:6px}
.widget ul{list-style:none;margin:0;padding:0}
.widget ul li{padding:9px 0;border-bottom:1px dashed var(--line);font-size:14px}
.widget ul li:last-child{border-bottom:none}
.widget ul li a:hover{color:var(--blue)}

/* pagination */
.pagination{display:flex;gap:8px;justify-content:center;margin:34px 0;flex-wrap:wrap}
.pagination .page-numbers{display:inline-block;padding:9px 15px;border:1px solid var(--line);border-radius:6px;font-size:14px;font-weight:500}
.pagination .page-numbers.current{background:var(--blue);color:#fff;border-color:var(--blue)}
.pagination .page-numbers:hover{border-color:var(--blue);color:var(--blue)}
.pagination .page-numbers.current:hover{color:#fff}

/* page head */
.page-head{background:var(--soft);border-bottom:1px solid var(--line);padding:26px 0}
.page-head h1{font-size:25px;font-weight:900;color:var(--blue-deep)}
.page-head .desc{color:var(--gray);font-size:14px;margin-top:6px}

/* footer */
.site-footer{background:#131c26;color:#93a1af;margin-top:46px;padding:38px 0 26px;font-size:13px}
.site-footer .foot-links{list-style:none;display:flex;flex-wrap:wrap;margin:0 0 22px;padding:0 0 20px;border-bottom:1px solid rgba(255,255,255,.09)}
.site-footer .foot-links li{position:relative;padding:2px 16px;line-height:1.4}
.site-footer .foot-links li:first-child{padding-left:0}
.site-footer .foot-links li::after{content:'';position:absolute;right:0;top:5px;bottom:5px;width:1px;background:rgba(255,255,255,.14)}
.site-footer .foot-links li:last-child::after{display:none}
.site-footer .foot-links a{color:#aeb9c4;font-size:13px}
.site-footer .foot-links a:hover{color:#fff}
.site-footer .foot-links a.strong{color:#fff;font-weight:700}
.site-footer .foot-main{display:flex;justify-content:space-between;align-items:flex-start;gap:24px;flex-wrap:wrap}
.site-footer .flogo{font-size:21px;font-weight:900;color:#fff;margin-bottom:11px}
.site-footer .info{line-height:1.95;color:#7a8794;font-size:12.5px}
.site-footer .foot-right{text-align:right}
.site-footer .nvbtn{display:inline-flex;align-items:center;gap:9px;background:#03c75a;color:#fff;font-weight:700;padding:11px 18px;border-radius:8px;font-size:14px}
.site-footer .nvbtn .ni{width:22px;height:22px;background:#fff;color:#03c75a;border-radius:5px;display:flex;align-items:center;justify-content:center;font-weight:900}
.site-footer .sns{margin-top:12px;display:flex;gap:8px;justify-content:flex-end}
.site-footer .sns a{width:32px;height:32px;border-radius:50%;background:rgba(255,255,255,.1);display:flex;align-items:center;justify-content:center;font-size:13px;color:#cdd8e2}
.site-footer .sns a:hover{background:var(--blue)}
.site-footer .bottom{margin-top:22px;padding-top:18px;border-top:1px solid rgba(255,255,255,.09);color:#5f6e7a;font-size:12px}

/* single article */
.art-wrap{max-width:760px;margin:30px auto;padding:10px 0 0}
.back{display:inline-flex;align-items:center;gap:6px;color:var(--blue);font-weight:700;font-size:14px;margin-bottom:20px}
.art-cat{color:var(--blue);font-weight:700;font-size:14px}
.art-wrap h1.art-title{font-size:31px;font-weight:900;line-height:1.4;margin:12px 0 16px;letter-spacing:-.6px}
.art-sub{font-size:18px;color:var(--gray);line-height:1.6;margin-bottom:22px;font-weight:500}
.byline{display:flex;align-items:center;justify-content:space-between;border-top:1px solid var(--line);border-bottom:1px solid var(--line);padding:14px 0;margin-bottom:26px;flex-wrap:wrap;gap:10px}
.byline .who{display:flex;align-items:center;gap:10px}
.byline .av{width:40px;height:40px;border-radius:50%;background:linear-gradient(135deg,var(--blue),var(--blue-deep));display:flex;align-items:center;justify-content:center;color:#fff;font-weight:700}
.byline b{font-size:14px}.byline .em{font-size:12px;color:var(--gray)}
.byline .date{font-size:12.5px;color:var(--gray);text-align:right}
.byline .share{display:flex;gap:8px;margin-top:4px;justify-content:flex-end}
.byline .share a{width:28px;height:28px;border-radius:50%;background:var(--soft);display:flex;align-items:center;justify-content:center;font-size:12px;color:var(--ink)}
.art-hero{margin-bottom:8px;border-radius:8px;overflow:hidden}
.art-hero img{width:100%}
.art-body{font-size:17px;line-height:1.95;color:#28313f}
.art-body p{margin-bottom:22px}
.art-body h2,.art-body h3{font-weight:900;margin:30px 0 12px;color:var(--blue-deep)}
.art-body h2{font-size:23px}.art-body h3{font-size:20px}
.art-body img{border-radius:8px;margin:20px 0}
.art-body ul,.art-body ol{margin:0 0 22px 22px}
.art-body blockquote{border-left:4px solid var(--green);background:var(--soft);padding:18px 24px;font-size:18px;font-weight:500;color:var(--blue-deep);margin:26px 0;border-radius:0 6px 6px 0}
.art-body a{color:var(--blue);text-decoration:underline}
.wp-caption-text,.art-body figcaption{font-size:12.5px;color:#9aa4af;text-align:center;margin-top:6px}
.tags{display:flex;gap:8px;flex-wrap:wrap;margin:30px 0}
.tags a{background:var(--soft);border:1px solid var(--line);color:var(--gray);font-size:13px;padding:6px 14px;border-radius:20px}
.tags a:hover{border-color:var(--blue);color:var(--blue)}
.related{margin-top:36px;border-top:2px solid var(--blue);padding-top:18px}
.related h4{font-size:17px;font-weight:900;color:var(--blue-deep);margin-bottom:16px}
.related .r{display:grid;grid-template-columns:96px 1fr;gap:14px;padding:12px 0;border-bottom:1px solid var(--line);align-items:center}
.related .r .thumb{height:64px}
.related .r h5{font-size:15.5px;font-weight:700;line-height:1.4}
.related .r h5 a:hover{color:var(--blue)}
.related .r .m{font-size:12px;color:#9aa4af;margin-top:5px}
.notice-empty{background:#eef6ee;border:1px solid #cfe6cd;color:#2f6b28;font-size:13.5px;padding:14px 16px;border-radius:8px;line-height:1.6;margin-bottom:24px}

/* comments */
.comments-area{max-width:760px;margin:0 auto 40px;border:1px solid var(--line);border-radius:10px;padding:26px 40px}
.comments-area .comments-title,.comments-area h3{font-size:18px;font-weight:900;color:var(--blue-deep);margin-bottom:16px}
.comment-list{list-style:none;margin:0;padding:0}
.comment-list li{border-bottom:1px solid var(--line);padding:14px 0}
.comment-form input,.comment-form textarea{width:100%;border:1px solid var(--line);border-radius:6px;padding:10px;font-family:inherit;margin-bottom:10px}
.comment-form input[type=submit]{width:auto;background:var(--blue);color:#fff;border:none;padding:11px 22px;font-weight:700;cursor:pointer}

@media(max-width:960px){
  .main{grid-template-columns:1fr}
  .hero{grid-template-columns:1fr}
  .listwrap{grid-template-columns:1fr}
  .mast .ad{display:none}
  .site-footer .foot-main{flex-direction:column}
  .site-footer .foot-right{text-align:left}
  .site-footer .sns{justify-content:flex-start}
}
@media(max-width:620px){
  .cards{grid-template-columns:1fr 1fr}
  .search{display:none}
  .brand .site-title{font-size:23px}
  .art-wrap h1.art-title{font-size:25px}
  .comments-area{padding:20px}
  .rows .li,.li{grid-template-columns:1fr}
  .li .thumb{display:none}
}
