/*
Theme Name: HP Center Editorial
Author: Garut WordPress Central
Description: Fast responsive editorial magazine theme for HP Center.
Version: 1.0.0
Requires at least: 6.0
Requires PHP: 7.4
Text Domain: hp-center-editorial
*/
:root{--ink:#14203a;--muted:#67748a;--accent:#4455ee;--light:#f0f3ff;--line:#e7eaf1}*{box-sizing:border-box}html{scroll-behavior:smooth}body{margin:0;background:#f7f9fd;color:var(--ink);font:16px/1.65 system-ui,-apple-system,Segoe UI,sans-serif}a{text-decoration:none;color:inherit}a:hover{color:var(--accent)}.shell{width:min(1180px,calc(100% - 40px));margin:auto}.header{background:#fff;position:sticky;top:0;z-index:20;border-bottom:1px solid var(--line)}.header-inner{display:flex;align-items:center;justify-content:space-between;gap:26px;min-height:78px}.logo{font-size:26px;font-weight:850;letter-spacing:-.05em}.logo span{color:var(--accent)}.menu ul{list-style:none;padding:0;margin:0;display:flex;gap:24px;align-items:center}.menu a{font-size:14px;font-weight:650}.head-search form{display:flex;align-items:center;background:#f1f4fa;border-radius:13px;padding:5px 6px 5px 14px}.head-search input{border:0;background:transparent;outline:0;width:150px;font:inherit;font-size:13px}.head-search button{background:var(--accent);color:white;border:0;border-radius:10px;padding:8px 12px;cursor:pointer}.menu-toggle{display:none}.eyebrow{font-size:12px;text-transform:uppercase;letter-spacing:.12em;font-weight:800;color:var(--accent)}.lead{padding:55px 0 28px}.lead h1{font-size:clamp(35px,5vw,62px);letter-spacing:-.055em;line-height:1.1;margin:12px 0}.lead p{color:var(--muted);font-size:18px;max-width:680px}.hero-grid{display:grid;grid-template-columns:1.3fr 1fr;gap:22px;margin-top:30px}.featured{position:relative;display:flex;min-height:420px;flex-direction:column;justify-content:flex-end;border-radius:23px;overflow:hidden;background:linear-gradient(135deg,#25376b,#7183e8);color:white}.featured img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}.featured:before{content:"";position:absolute;inset:0;background:linear-gradient(transparent 15%,rgba(10,20,45,.9));z-index:1}.featured-inner{position:relative;z-index:2;padding:35px}.featured h2{font-size:clamp(25px,3vw,36px);letter-spacing:-.035em;line-height:1.23;margin:12px 0}.featured p{color:#dce5ff}.feature-side{display:flex;flex-direction:column;gap:20px}.side-story{display:grid;grid-template-columns:145px 1fr;gap:18px;background:white;border-radius:20px;overflow:hidden;min-height:195px;border:1px solid var(--line)}.side-story img,.image-fallback{width:100%;height:100%;object-fit:cover;background:linear-gradient(145deg,#e4eaff,#8693d8)}.side-story .inner{padding:18px 15px 18px 0}.side-story h3{font-size:18px;line-height:1.35;margin:7px 0}.date{font-size:12px;color:var(--muted)}.section-head{display:flex;align-items:center;justify-content:space-between;gap:15px;margin:38px 0 20px}.section-head h2{font-size:29px;letter-spacing:-.035em;margin:0}.category-row{display:flex;gap:10px;flex-wrap:wrap}.category-row a{background:#fff;border:1px solid var(--line);padding:8px 15px;border-radius:25px;font-size:13px;font-weight:650}.category-row a:hover{background:var(--light)}.post-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:22px}.post-card{background:white;border:1px solid var(--line);border-radius:20px;overflow:hidden;box-shadow:0 10px 30px #1b255008}.post-card .thumb{height:205px;background:linear-gradient(120deg,#e6ecff,#8495e6);overflow:hidden}.post-card .thumb img{width:100%;height:100%;object-fit:cover;transition:transform .25s}.post-card:hover .thumb img{transform:scale(1.04)}.post-card .body{padding:23px}.post-card h3{font-size:21px;line-height:1.35;letter-spacing:-.02em;margin:8px 0}.post-card p{color:var(--muted);font-size:14px}.more{color:var(--accent);font-weight:700;font-size:14px}.article-wrap{max-width:820px;margin:42px auto}.article{background:white;padding:40px;border-radius:22px;border:1px solid var(--line)}.article h1{font-size:clamp(32px,4.5vw,52px);letter-spacing:-.045em;line-height:1.2}.article img{max-width:100%;height:auto}.article .entry-content{overflow-wrap:anywhere}.article .entry-content a{color:var(--accent);text-decoration:underline}.pagination{margin-top:28px}.pagination .nav-links{display:flex;gap:10px;flex-wrap:wrap}.pagination a,.pagination span{padding:9px 14px;background:white;border-radius:10px}.footer{margin-top:65px;padding:48px 0;background:#15213d;color:#dbe2f2}.footer .logo{color:white}.footer p{font-size:14px;color:#aebbd5}.mobile-only{display:none}
@media(max-width:920px){.head-search{display:none}.menu ul{gap:13px}.hero-grid{grid-template-columns:1fr}.feature-side{display:grid;grid-template-columns:1fr 1fr}.post-grid{grid-template-columns:repeat(2,1fr)}}@media(max-width:680px){.shell{width:calc(100% - 30px)}.header-inner{min-height:66px;flex-wrap:wrap;padding:10px 0;gap:10px}.logo{font-size:23px}.menu-toggle{display:block;border:0;border-radius:11px;padding:9px 13px;background:var(--light);color:var(--accent);font-weight:700}.menu{display:none;width:100%}.menu.open{display:block}.menu ul{display:flex;flex-direction:column;align-items:flex-start;padding:12px 0}.lead{padding:36px 0 22px}.lead p{font-size:16px}.featured{min-height:340px}.featured-inner{padding:24px}.feature-side{grid-template-columns:1fr}.side-story{grid-template-columns:120px 1fr;min-height:150px}.post-grid{grid-template-columns:1fr}.post-card .thumb{height:210px}.section-head{margin-top:28px}.article-wrap{margin:24px 15px}.article{padding:22px}.footer{margin-top:40px}}

.related-section{margin-top:38px}.related-section .section-head{margin:0 0 18px}.related-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.related-grid .thumb{height:145px}.related-grid .body{padding:17px}.related-grid .body h3{font-size:17px}.related-placeholder{height:100%;display:grid;place-items:center;color:#fff;font-size:50px;background:linear-gradient(135deg,#e2e7ff,#697cde)}@media(max-width:720px){.related-grid{grid-template-columns:1fr}.related-grid .thumb{height:180px}}

/* HP Center related posts v2 */
.related-section{max-width:1180px;width:calc(100vw - 40px);position:relative;left:50%;transform:translateX(-50%);margin:60px 0 30px}
.related-section .section-head{border-bottom:1px solid #e7eaf1;padding-bottom:18px;margin-bottom:24px}
.related-section .section-head h2{font-size:clamp(25px,3vw,33px);letter-spacing:-.04em}
.related-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:18px}
.related-grid .post-card{border-radius:18px;box-shadow:0 10px 25px #101d3910;transition:transform .22s,box-shadow .22s}
.related-grid .post-card:hover{transform:translateY(-5px);box-shadow:0 16px 30px #101d3920}
.related-grid .thumb{height:175px;overflow:hidden;background:linear-gradient(135deg,#dee6ff,#8795e3)}
.related-grid .thumb img{width:100%;height:100%;object-fit:cover}
.related-grid .body{padding:18px 18px 21px}
.related-grid .body h3{font-size:17px;line-height:1.43;display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden;min-height:72px}
.related-placeholder{height:100%;display:grid;place-items:center;font-size:52px;color:white;background:linear-gradient(135deg,#d5dcff,#6e80dc)}
@media(max-width:920px){.related-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:650px){.related-section{width:calc(100vw - 30px);margin:38px 0 20px}.related-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:11px}.related-grid .thumb{height:128px}.related-grid .body{padding:12px}.related-grid .body h3{font-size:14px;min-height:60px}.related-grid .date{font-size:11px}.related-grid .more{font-size:12px}}

/* Top bar categories, footer legal links, compact related cards */
.category-topbar{background:#162342;color:#e5eafb;border-bottom:1px solid #32405b}
.category-top-inner{display:flex;align-items:center;gap:19px;min-height:39px;overflow-x:auto;white-space:nowrap;scrollbar-width:thin}
.category-top-inner a{font-size:12px;font-weight:650;color:#edf2ff}
.category-top-inner a:hover{color:#b6c8ff}
.category-label{font-size:11px;letter-spacing:.08em;text-transform:uppercase;color:#a7b4d0;font-weight:700}
.footer-grid{display:flex;align-items:start;justify-content:space-between;gap:30px}
.footer-grid>div{max-width:510px}
.footer-links{display:flex;gap:22px;flex-wrap:wrap}
.footer-links a{font-weight:650;color:#f0f4ff;font-size:14px}
.footer-copy{margin-top:25px;border-top:1px solid #40506a;padding-top:18px;color:#afbdd4;font-size:13px}
.related-section .related-grid{grid-template-columns:repeat(4,minmax(0,1fr));gap:14px}
.related-section .related-grid .thumb{height:132px}
.related-section .related-grid .body{padding:13px 14px}
.related-section .related-grid .body h3{font-size:15px;line-height:1.36;min-height:61px}
@media(max-width:900px){.related-section .related-grid{display:flex;overflow-x:auto;scroll-snap-type:x mandatory;padding-bottom:12px}.related-section .related-grid .post-card{flex:0 0 215px;scroll-snap-align:start}.related-section .related-grid .thumb{height:120px}}
@media(max-width:680px){.category-top-inner{gap:14px;min-height:37px}.category-top-inner a{font-size:12px}.footer-grid{flex-direction:column;gap:18px}.footer-links{gap:14px}.related-section .related-grid .post-card{flex-basis:185px}.related-section .related-grid .body h3{font-size:14px;min-height:59px}}

/* Unified material navigation and footer */
.category-topbar{display:none!important}
.header{overflow:visible}.header-inner{position:relative}.hc-nav>ul{align-items:center;gap:7px}.hc-nav>ul>li>a,.hc-nav summary{display:flex;align-items:center;gap:9px;padding:11px 15px;border-radius:13px;color:#394866;font-weight:750;font-size:14px;cursor:pointer}.hc-nav>ul>li>a:hover,.hc-nav summary:hover,.mega[open]>summary{background:#eef1ff;color:#4455ee}.hc-nav summary{list-style:none}.hc-nav summary::-webkit-details-marker{display:none}.hc-nav .chevron{font-size:18px}.mega-panel{position:absolute;z-index:35;top:calc(100% - 4px);left:18%;width:min(650px,80vw);padding:24px;border:1px solid #e4eafa;border-radius:20px;background:white;box-shadow:0 20px 55px #15224a24}.mega-heading{font-size:19px;font-weight:800;letter-spacing:-.025em;margin-bottom:18px}.mega-heading small{display:block;font-size:13px;font-weight:450;color:#6f7990;letter-spacing:0}.mega-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:11px}.mega-link{display:flex;gap:13px;align-items:center;background:#f7f9ff;border:1px solid #edf0f8;border-radius:14px;padding:14px;color:#273451}.mega-link:hover{background:#edf1ff;transform:translateY(-1px)}.mega-link strong,.mega-link small{display:block}.mega-link small{color:#78839a;font-size:12px}.mega-icon{display:grid;place-items:center;width:43px;height:43px;flex:none;border-radius:12px;background:#e8edff;color:#4359e8;font-size:24px}.mega-arrow{margin-left:auto;color:#7181ad}.related-section .related-grid{display:grid!important;grid-template-columns:repeat(4,minmax(0,1fr))!important;gap:13px;overflow:visible!important}.related-section .related-grid .post-card{min-width:0;width:auto!important;flex:none!important}.related-section .related-grid .thumb{height:125px}.related-section .related-grid .body{padding:13px}.related-section .related-grid h3{font-size:14px;min-height:55px}.hc-footer{background:linear-gradient(135deg,#13203b,#202e51);border-top:4px solid #6175fb}.hc-footer .footer-grid{display:grid;grid-template-columns:1.6fr 1fr 1fr;gap:55px;align-items:start}.footer-about .logo{color:white}.footer-about p{max-width:350px;color:#b7c5df;line-height:1.7}.footer-column{display:flex;flex-direction:column;gap:9px}.footer-column h3{font-size:14px;text-transform:uppercase;letter-spacing:.12em;color:#91a9ec;margin:0 0 8px}.footer-column a{color:#e8edff;font-size:14px;padding:4px 0}.footer-column a:hover{color:#b6c4ff}.footer-pill{display:inline-flex;border:1px solid #4a5980;border-radius:99px;padding:7px 13px;font-size:12px;color:#bacaff}.hc-footer .footer-copy{display:flex;justify-content:space-between;gap:16px;flex-wrap:wrap}
@media(max-width:900px){.hc-nav>ul>li>a,.hc-nav summary{padding:9px}.mega-panel{left:0;width:min(650px,calc(100vw - 40px))}.related-section .related-grid{grid-template-columns:repeat(4,minmax(175px,1fr))!important;overflow-x:auto!important;padding-bottom:10px;scroll-snap-type:x mandatory}.related-section .related-grid .post-card{scroll-snap-align:start}.hc-footer .footer-grid{gap:25px}}
@media(max-width:680px){.hc-nav>ul{align-items:stretch}.hc-nav>ul>li>a,.hc-nav summary{padding:13px}.mega-panel{position:static;width:100%;box-shadow:none;border-radius:13px;padding:13px}.mega-grid{grid-template-columns:1fr}.mega-link{padding:11px}.related-section .related-grid{display:grid!important;grid-auto-flow:column;grid-auto-columns:175px;grid-template-columns:none!important;overflow-x:auto!important;scroll-snap-type:x mandatory;scrollbar-width:thin}.related-section .related-grid .post-card{min-width:0}.hc-footer .footer-grid{grid-template-columns:1fr 1fr;gap:28px}.footer-about{grid-column:span 2}.hc-footer .footer-copy{flex-direction:column}.footer-column{gap:6px}}

/* Final related layout: exactly one row; swipe only when viewport is narrow */
.related-section .post-grid.related-grid{display:flex!important;flex-direction:row!important;flex-wrap:nowrap!important;align-items:stretch!important;gap:14px!important;max-width:100%!important;overflow-x:visible!important;grid-template-columns:none!important}
.related-section .post-grid.related-grid>.post-card{display:block!important;flex:0 0 calc((100% - 42px)/4)!important;width:calc((100% - 42px)/4)!important;min-width:0!important;margin:0!important;scroll-snap-align:start}
.related-section .post-grid.related-grid .thumb{height:140px!important}
.simple-nav>ul{display:flex;gap:8px;align-items:center;flex-wrap:nowrap}.simple-nav>ul>li>a{display:block;padding:9px 12px;border-radius:10px;color:#394866;font-size:14px;font-weight:650;white-space:nowrap}.simple-nav>ul>li>a:hover{background:#eef1ff;color:#4455ee}
@media(max-width:900px){.related-section .post-grid.related-grid{overflow-x:auto!important;overscroll-behavior-inline:contain;scroll-snap-type:x mandatory;padding-bottom:13px}.related-section .post-grid.related-grid>.post-card{flex:0 0 200px!important;width:200px!important}}
@media(max-width:680px){.simple-nav>ul{flex-direction:column;align-items:stretch;gap:3px}.simple-nav>ul>li>a{padding:11px 12px}.related-section .post-grid.related-grid>.post-card{flex:0 0 175px!important;width:175px!important}}
