/*
Theme Name: Halteng Education Portal
Theme URI: https://example.com/
Author: Halteng Education Portal
Description: Custom official education portal theme for Dinas Pendidikan Kabupaten Halmahera Tengah.
Version: 1.0.7
Requires at least: 6.0
Requires PHP: 7.4
Text Domain: halteng-education
*/
:root{--hep-navy:#063B7A;--hep-blue:#0B63CE;--hep-green:#16A85A;--hep-ink:#172536;--hep-muted:#64748b;--hep-bg:#f4f7fb;--hep-line:#e5eaf1;--hep-white:#fff;--hep-radius:18px;--hep-shadow:0 14px 40px rgba(6,59,122,.09)}
*{box-sizing:border-box}html{scroll-behavior:smooth}body{margin:0;background:#fff;color:var(--hep-ink);font-family:Arial,Helvetica,sans-serif;font-size:16px;line-height:1.65}a{color:var(--hep-blue);text-decoration:none}a:hover{color:var(--hep-green)}img{max-width:100%;height:auto}.hep-container{width:min(1180px,calc(100% - 40px));margin-inline:auto}
.hep-topbar{background:#052e60;color:#dbeafe;font-size:12px;padding:7px 0}.hep-topbar-inner{display:flex;justify-content:space-between;gap:16px;flex-wrap:wrap}
.site-header{background:#fff;position:sticky;top:0;z-index:99;box-shadow:0 3px 18px rgba(15,35,60,.07)}.hep-header-inner{min-height:82px;display:flex;align-items:center;justify-content:space-between;gap:24px}.hep-brand{display:flex;align-items:center;gap:13px;color:var(--hep-navy);min-width:250px}.hep-brand img{width:52px;height:52px;object-fit:contain}.hep-brand-name{font-weight:800;letter-spacing:.02em;line-height:1.25;font-size:17px}.hep-brand-sub{font-size:11px;color:#64748b;letter-spacing:.06em}.hep-nav ul{display:flex;align-items:center;gap:25px;list-style:none;margin:0;padding:0}.hep-nav a{font-size:13px;font-weight:700;color:#26384d}.hep-nav a:hover,.hep-nav .current-menu-item>a{color:var(--hep-blue)}.hep-mobile-toggle{display:none;border:0;background:var(--hep-navy);color:#fff;border-radius:9px;padding:9px 12px;font-size:18px}
.hep-hero{background:linear-gradient(120deg,#f3f7fc 0%,#eaf2fb 55%,#f7fafc 100%);overflow:hidden}.hep-hero-inner{display:grid;grid-template-columns:1.08fr .92fr;align-items:center;gap:48px;min-height:520px;padding-top:52px;padding-bottom:52px}.hep-eyebrow{display:inline-flex;align-items:center;gap:9px;color:var(--hep-green);font-size:12px;font-weight:800;letter-spacing:.12em;text-transform:uppercase}.hep-eyebrow:before{content:"";width:25px;height:3px;background:var(--hep-green);border-radius:4px}.hep-hero h1{font-size:clamp(34px,4.5vw,56px);line-height:1.12;letter-spacing:-.035em;color:var(--hep-navy);margin:17px 0}.hep-hero-copy{font-size:17px;color:#536477;max-width:590px;margin:0 0 27px}.hep-actions{display:flex;gap:12px;flex-wrap:wrap}.hep-button{display:inline-flex;align-items:center;justify-content:center;padding:12px 20px;border-radius:9px;background:var(--hep-blue);color:#fff;font-weight:700;font-size:13px;transition:.2s}.hep-button:hover{background:var(--hep-navy);color:#fff;transform:translateY(-1px)}.hep-button-outline{background:#fff;color:var(--hep-navy);border:1px solid #d6e0ed}.hep-button-outline:hover{background:var(--hep-navy);color:#fff}
.hep-leader-wrap{position:relative;max-width:470px;margin-left:auto;width:100%}.hep-leader-frame{position:relative;overflow:hidden;border-radius:190px 190px 18px 18px;background:#dce7f2;box-shadow:var(--hep-shadow);min-height:440px}.hep-leader-frame img{display:block;width:100%;height:500px;object-fit:cover;object-position:center 22%}.hep-leader-caption{position:absolute;bottom:18px;left:-22px;right:22px;background:var(--hep-navy);color:#fff;padding:17px 21px;border-radius:12px;box-shadow:var(--hep-shadow)}.hep-leader-caption strong{display:block;font-size:17px}.hep-leader-caption span{display:block;color:#d8e7f8;font-size:12px;margin-top:2px}
.hep-section{padding:70px 0}.hep-section-soft{background:var(--hep-bg)}.hep-section-head{text-align:center;max-width:700px;margin:0 auto 34px}.hep-section-head .hep-kicker{font-size:11px;color:var(--hep-green);font-weight:800;letter-spacing:.13em;text-transform:uppercase}.hep-section-head h2{color:var(--hep-navy);font-size:clamp(25px,3vw,34px);line-height:1.2;margin:8px 0 10px}.hep-section-head p{color:var(--hep-muted);margin:0}.hep-stat-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:15px}.hep-stat{padding:24px;background:#fff;border:1px solid var(--hep-line);border-radius:14px;text-align:center}.hep-stat strong{display:block;color:var(--hep-navy);font-size:30px;line-height:1.2}.hep-stat span{display:block;color:var(--hep-muted);font-size:13px;margin-top:7px}
.hep-shortcode-content{background:#fff}.hep-card-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:20px}.hep-info-card{background:#fff;border:1px solid var(--hep-line);border-radius:14px;padding:24px}.hep-info-card h3{margin:0 0 8px;color:var(--hep-navy)}.hep-info-card p{margin:0;color:var(--hep-muted);font-size:14px}
.hep-quicklinks{display:grid;grid-template-columns:repeat(4,1fr);gap:14px}.hep-quicklink{display:flex;align-items:center;gap:13px;padding:19px;background:#fff;border:1px solid var(--hep-line);border-radius:13px;color:var(--hep-navy);font-weight:700;font-size:14px}.hep-quicklink:hover{border-color:#b7cce4;box-shadow:var(--hep-shadow)}.hep-quick-icon{width:38px;height:38px;display:grid;place-items:center;background:#eaf2fb;color:var(--hep-blue);border-radius:10px;font-size:18px}
.hep-news-placeholder{display:grid;grid-template-columns:repeat(3,1fr);gap:18px}.hep-news-box{padding:25px;border:1px solid var(--hep-line);border-radius:14px;background:#fff}.hep-news-box h3{font-size:17px;color:var(--hep-navy);margin:0 0 8px}.hep-news-box p{font-size:13px;color:var(--hep-muted);margin:0}
.site-footer{background:#052e60;color:#dbeafe;padding:48px 0 20px}.hep-footer-grid{display:grid;grid-template-columns:1.4fr 1fr 1fr;gap:35px}.site-footer h3{font-size:16px;color:#fff;margin:0 0 12px}.site-footer p,.site-footer li{font-size:13px;color:#c5d7ec}.site-footer ul{list-style:none;margin:0;padding:0}.site-footer a{color:#dbeafe}.hep-footer-bottom{border-top:1px solid rgba(255,255,255,.15);margin-top:30px;padding-top:15px;font-size:12px;color:#b9cce2}
.hep-page-content{padding:50px 0;min-height:45vh}.hep-page-content h1,.hep-page-content h2{color:var(--hep-navy)}.hep-menu-fallback{display:flex;gap:18px;list-style:none;padding:0;margin:0}.hep-menu-fallback a{color:#26384d;font-size:13px;font-weight:700}
@media(max-width:900px){.hep-nav{display:none;position:absolute;top:82px;left:0;right:0;background:#fff;padding:15px 22px 22px;box-shadow:0 12px 18px rgba(0,0,0,.08)}.hep-nav.is-open{display:block}.hep-nav ul{display:block}.hep-nav li{padding:10px 0;border-bottom:1px solid var(--hep-line)}.hep-mobile-toggle{display:block}.hep-hero-inner{gap:25px;min-height:0}.hep-leader-frame{min-height:360px}.hep-leader-frame img{height:410px}.hep-stat-grid,.hep-quicklinks{grid-template-columns:repeat(2,1fr)}}
@media(max-width:640px){.hep-container{width:min(100% - 30px,1180px)}.hep-topbar-inner{justify-content:center;text-align:center}.hep-header-inner{min-height:72px}.hep-brand{min-width:0}.hep-brand img{width:43px;height:43px}.hep-brand-name{font-size:14px}.hep-brand-sub{font-size:9px}.hep-nav{top:72px}.hep-hero-inner{grid-template-columns:1fr;padding-top:42px;padding-bottom:35px}.hep-hero h1{font-size:36px}.hep-hero-copy{font-size:15px}.hep-leader-wrap{max-width:360px;margin:12px auto 0}.hep-leader-frame{min-height:0;border-radius:130px 130px 15px 15px}.hep-leader-frame img{height:390px}.hep-leader-caption{left:10px;right:10px;bottom:10px}.hep-section{padding:48px 0}.hep-stat-grid{gap:10px}.hep-stat{padding:17px 10px}.hep-stat strong{font-size:25px}.hep-quicklinks,.hep-card-grid,.hep-news-placeholder{grid-template-columns:1fr}.hep-footer-grid{grid-template-columns:1fr;gap:22px}}

/* V1.0.2: profile dropdown, gallery, survey and contact components */
.hep-nav ul li{position:relative}.hep-nav ul .sub-menu{display:none;position:absolute;top:100%;left:0;min-width:245px;background:#fff;padding:9px 0;margin:0;list-style:none;box-shadow:0 12px 30px rgba(12,34,60,.14);border:1px solid var(--hep-line);border-radius:10px;z-index:120}.hep-nav ul li:hover>.sub-menu,.hep-nav ul li:focus-within>.sub-menu{display:block}.hep-nav ul .sub-menu li{padding:0;border:0}.hep-nav ul .sub-menu a{display:block;padding:9px 16px;white-space:normal}.hep-nav ul .sub-menu a:hover{background:#f2f7fc}
.hep-gallery-instruction{padding:28px;border:1px dashed #b8c9dc;border-radius:14px;background:#fff;text-align:center;color:var(--hep-muted)}.hep-gallery-instruction strong{color:var(--hep-navy)}.hep-section .gallery{display:grid;grid-template-columns:repeat(4,1fr);gap:14px;margin:0}.hep-section .gallery-item{width:100%!important;margin:0!important}.hep-section .gallery-item img{width:100%;height:190px;object-fit:cover;border-radius:12px;border:0}.hep-section .gallery-caption{font-size:12px;color:var(--hep-muted)}
.hep-contact-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:18px;max-width:800px;margin:auto}.hep-contact-card{display:flex;align-items:center;gap:15px;padding:22px;background:#fff;border:1px solid var(--hep-line);border-radius:14px;color:var(--hep-ink)}.hep-contact-card:hover{border-color:#b7cce4;box-shadow:var(--hep-shadow)}.hep-contact-symbol{width:45px;height:45px;border-radius:12px;background:#e8f5ee;color:#14864a;display:grid;place-items:center;font-weight:800}.hep-contact-card strong,.hep-contact-card small{display:block}.hep-contact-card strong{color:var(--hep-navy)}.hep-contact-card small{font-size:13px;color:var(--hep-muted)}
@media(max-width:900px){.hep-nav ul .sub-menu{display:block;position:static;box-shadow:none;border:0;border-left:2px solid #dbeafe;border-radius:0;margin:5px 0 0 10px;padding:0 0 0 8px}.hep-nav ul .sub-menu a{padding:7px 10px}}
@media(max-width:640px){.hep-section .gallery{grid-template-columns:repeat(2,1fr)}.hep-section .gallery-item img{height:140px}.hep-contact-grid{grid-template-columns:1fr}}


/* Hero activity photo slider — v1.0.3 */
.hep-hero .hep-leader-wrap{align-self:center;min-width:0}
.hep-hero-slider{position:relative;margin-top:18px;border-radius:16px;overflow:hidden;background:#dce7f3;box-shadow:0 12px 30px rgba(6,59,122,.13)}
.hep-slider-track{position:relative;aspect-ratio:16/9;}
.hep-slide{position:absolute;inset:0;margin:0;opacity:0;visibility:hidden;transition:opacity .55s ease;}
.hep-slide.is-active{opacity:1;visibility:visible;z-index:1}
.hep-slide img{display:block;width:100%;height:100%;object-fit:cover}
.hep-slide figcaption{position:absolute;left:0;right:0;bottom:0;padding:34px 18px 13px;color:#fff;font-size:14px;font-weight:700;background:linear-gradient(transparent,rgba(3,25,52,.78));}
.hep-slider-arrow{position:absolute;z-index:3;top:50%;transform:translateY(-50%);width:36px;height:36px;border:0;border-radius:50%;background:rgba(255,255,255,.92);color:#063B7A;font-size:27px;line-height:1;cursor:pointer;box-shadow:0 2px 10px rgba(0,0,0,.15)}
.hep-slider-prev{left:12px}.hep-slider-next{right:12px}
.hep-slider-dots{position:absolute;z-index:3;right:15px;bottom:13px;display:flex;gap:7px}
.hep-slider-dots button{width:8px;height:8px;padding:0;border:0;border-radius:99px;background:rgba(255,255,255,.65);cursor:pointer}
.hep-slider-dots button.is-active{width:22px;background:#fff}
@media(max-width:760px){.hep-hero-slider{margin-top:15px}.hep-slider-track{aspect-ratio:16/10}.hep-slide figcaption{font-size:12px;padding-bottom:12px}}
@media(prefers-reduced-motion:reduce){.hep-slide{transition:none}}

/* V1.0.4: Full-width Hero Slider Manager integration */
.hep-leader-section{padding:48px 0;background:#f3f7fc}.hep-leader-section-inner{display:grid;grid-template-columns:190px 1fr;gap:28px;align-items:center;max-width:1000px}.hep-leader-section-photo{width:180px;height:180px;border-radius:18px;overflow:hidden;box-shadow:var(--hep-shadow)}.hep-leader-section-photo img{width:100%;height:100%;object-fit:cover;object-position:center 20%}.hep-leader-section-copy h2{color:var(--hep-navy);font-size:28px;margin:7px 0}.hep-leader-section-copy p{color:var(--hep-muted);margin:6px 0}@media(max-width:640px){.hep-leader-section-inner{grid-template-columns:1fr;text-align:center}.hep-leader-section-photo{margin:auto;width:150px;height:150px}}


/* V1.0.6 — Editorial single article page */
.hep-article-page{background:#fff;padding:48px 0 76px;min-height:55vh}
.hep-article{max-width:920px;margin:0 auto}
.hep-article-header{max-width:850px;margin:0 auto 28px}
.hep-article-meta{display:flex;align-items:center;gap:13px;flex-wrap:wrap;color:#718096;font-size:13px;margin-bottom:13px}
.hep-article-category{display:inline-flex;align-items:center;background:#eaf2fb;color:var(--hep-navy);padding:5px 11px;border-radius:99px;font-size:11px;font-weight:800;letter-spacing:.04em}
.hep-article-title{font-size:clamp(30px,4.1vw,44px);line-height:1.18;letter-spacing:-.025em;color:var(--hep-navy);margin:0 0 16px}
.hep-article-excerpt{font-size:18px;line-height:1.65;color:#58697d;margin:0}
.hep-article-featured-image{margin:0 auto 32px;max-width:100%;text-align:center}
.hep-article-featured-image img{display:block;width:100%;max-height:560px;object-fit:cover;border-radius:16px}
.hep-article-featured-image figcaption{font-size:12px;color:#718096;text-align:left;margin-top:8px}
.hep-article-body{max-width:820px;margin:0 auto;color:#263548;font-size:17px;line-height:1.85;overflow-wrap:anywhere}
.hep-article-body p{margin:0 0 1.35em}
.hep-article-body h2,.hep-article-body h3,.hep-article-body h4{color:var(--hep-navy);line-height:1.3;margin:1.7em 0 .65em}
.hep-article-body h2{font-size:28px}.hep-article-body h3{font-size:23px}
.hep-article-body ul,.hep-article-body ol{padding-left:1.5em;margin:0 0 1.4em}
.hep-article-body blockquote{margin:1.7em 0;padding:16px 22px;border-left:4px solid var(--hep-green);background:#f4f8fc;color:#42556b;border-radius:0 10px 10px 0}
.hep-article-body img,.hep-article-body figure{max-width:100%;height:auto}
.hep-article-body figure{margin:1.5em 0}
.hep-article-body table{display:block;max-width:100%;overflow-x:auto;border-collapse:collapse}
.hep-article-body th,.hep-article-body td{border:1px solid #dbe4ef;padding:9px 12px;text-align:left}
.hep-article-body a{text-decoration:underline;text-underline-offset:3px}
.hep-article-pages{margin-top:25px;padding-top:18px;border-top:1px solid var(--hep-line)}
.hep-article-tags{max-width:820px;margin:34px auto 0;padding-top:18px;border-top:1px solid var(--hep-line);font-size:13px;color:#64748b}
.hep-article-tags span{font-weight:700;color:var(--hep-navy);margin-right:6px}
.hep-article-empty{max-width:820px;margin:auto;padding:60px 0}
@media(max-width:640px){
 .hep-article-page{padding:30px 0 50px}
 .hep-article-title{font-size:30px}
 .hep-article-excerpt{font-size:16px}
 .hep-article-featured-image img{border-radius:10px}
 .hep-article-body{font-size:16px;line-height:1.8}
 .hep-article-body h2{font-size:24px}
}


/* HEP Theme V1.0.7 — staff access and article recommendations */
.hep-dashboard-link{display:inline-flex;align-items:center;justify-content:center;white-space:nowrap;margin-left:14px;padding:10px 16px;border-radius:8px;background:#063b7a;color:#fff!important;font-size:13px;font-weight:700;text-decoration:none;transition:background .2s ease}
.hep-dashboard-link:hover{background:#0b63ce;color:#fff!important}
.hep-article-recommendations{max-width:920px;margin:50px auto 0;padding-top:28px;border-top:1px solid #e2e8f0}
.hep-recommendation-heading{margin-bottom:20px}
.hep-recommendation-kicker{display:block;margin-bottom:7px;color:#16a85a;font-size:10px;font-weight:800;letter-spacing:.13em}
.hep-recommendation-heading h2{margin:0;color:#063b7a;font-size:26px;line-height:1.25}
.hep-recommendation-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px}
.hep-recommendation-card{min-width:0;overflow:hidden;border:1px solid #e2e8f0;border-radius:12px;background:#fff;transition:transform .18s ease,box-shadow .18s ease}
.hep-recommendation-card:hover{transform:translateY(-3px);box-shadow:0 9px 24px rgba(6,59,122,.09)}
.hep-recommendation-image{display:flex;align-items:center;justify-content:center;aspect-ratio:16/9;overflow:hidden;background:#eef3f8;text-decoration:none}
.hep-recommendation-image img{display:block;width:100%;height:100%;object-fit:cover;transition:transform .25s ease}
.hep-recommendation-card:hover .hep-recommendation-image img{transform:scale(1.035)}
.hep-recommendation-placeholder{padding:12px;color:#7890aa;font-size:11px;font-weight:800;letter-spacing:.08em;text-align:center}
.hep-recommendation-content{padding:14px}
.hep-recommendation-content time{display:block;margin-bottom:8px;color:#77869a;font-size:11px}
.hep-recommendation-content h3{margin:0 0 13px;color:#063b7a;font-size:15px;line-height:1.45}
.hep-recommendation-content h3 a{color:inherit;text-decoration:none}
.hep-recommendation-content h3 a:hover{color:#0b63ce}
.hep-recommendation-link{color:#0b63ce;font-size:12px;font-weight:700;text-decoration:none}
.hep-recommendation-link:hover{text-decoration:underline}
@media(max-width:760px){
 .hep-recommendation-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:13px}
 .hep-recommendation-content{padding:12px}
 .hep-recommendation-content h3{font-size:14px}
 .hep-dashboard-link{margin-left:0;padding:9px 12px}
}
@media(max-width:480px){
 .hep-recommendation-grid{grid-template-columns:1fr}
 .hep-recommendation-card{display:grid;grid-template-columns:112px minmax(0,1fr)}
 .hep-recommendation-image{height:100%;min-height:112px;aspect-ratio:auto}
 .hep-recommendation-content{padding:11px}
 .hep-recommendation-content h3{font-size:13px;margin-bottom:8px}
}
