/*
Theme Name: SSMI Gateway
Theme URI: https://ssmi.sch.id/
Author: SSMI IPB University
Description: Portal aplikasi SSMI dengan hero sinematik, kartu unggulan, direktori layanan, pencarian dan favorit. Pasangkan dengan SSMI App Directory.
Version: 1.1.0
Requires at least: 6.5
Requires PHP: 8.0
License: GPL-2.0-or-later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: ssmi-gateway
Tags: custom-logo, custom-menu, featured-images, blog, education
*/
:root{--navy:#0b2639;--ink:#132e41;--muted:#657582;--gold:#e7b85b;--line:#e0e6ea;--paper:#f6f7f9;--teal:#197b83}*{box-sizing:border-box}html{scroll-behavior:smooth;scroll-padding-top:100px}body{margin:0;color:var(--ink);background:white;font-family:Arial,Helvetica,sans-serif;font-size:15px;line-height:1.65}button,input,select,textarea{font:inherit}button,a{-webkit-tap-highlight-color:transparent}a{color:inherit;text-decoration:none}button{cursor:pointer}svg{width:23px;height:23px;flex-shrink:0}button:focus-visible,a:focus-visible,input:focus-visible{outline:3px solid #d59b32;outline-offset:5px}button{color:inherit}img{max-width:100%;height:auto}h1,h2,h3,p{margin-top:0}h1,h2,h3{line-height:1.12;letter-spacing:-.045em}h2{font-size:clamp(32px,3.4vw,46px);font-weight:600;margin-bottom:0}h2 span{color:#7a8b98}h3{font-size:21px}.wrap{width:min(1280px,calc(100% - 112px));margin-inline:auto}.sr-only,.skip-link{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap}.skip-link:focus{position:fixed;z-index:99999;top:10px;left:10px;clip:auto;width:auto;height:auto;padding:12px 20px;background:white;color:var(--navy)}.eyebrow{font-size:10px;font-weight:600;letter-spacing:.2em;display:flex;align-items:center;gap:12px;color:#e6c27d;margin-bottom:28px}.eyebrow>span{display:inline-block;width:24px;height:2px;background:var(--gold)}.eyebrow.dark{color:#54707f;font-size:10px;margin-bottom:18px}.button{display:inline-flex;align-items:center;justify-content:center;gap:26px;padding:14px 23px;border-radius:5px;font-size:12px;font-weight:600;border:0;transition:transform .2s,background .2s}.button:hover{transform:translateY(-2px)}.button svg{width:18px}.button-navy{background:var(--navy);color:white}.button-light{background:#f7f8f9;color:var(--navy)}.feature-track{display:flex;gap:14px;overflow-x:auto;padding:8px 1px 16px;scrollbar-width:none;scroll-snap-type:x mandatory}.feature-track::-webkit-scrollbar{display:none}.feature-controls{display:flex;align-items:center;gap:12px;margin-top:10px}.text-link{font-weight:600;font-size:11px}.section-pad{padding:86px 0}.directory{background:var(--paper)}.section-intro{display:flex;align-items:flex-end;justify-content:space-between;gap:35px;margin-bottom:38px}.section-intro>p{font-size:12px;color:var(--muted);margin-bottom:3px;line-height:1.8}.demo-notice{font-size:11px;padding:12px 16px;background:#f0e9da;border-left:3px solid #d2ad60;border-radius:3px;color:#67552d;margin-bottom:25px}.directory-tools{display:flex;align-items:center;justify-content:space-between;gap:20px;border-bottom:1px solid var(--line);padding-bottom:22px}.filters{display:flex;gap:7px;flex-wrap:wrap}.filter{border:1px solid transparent;background:transparent;border-radius:5px;padding:9px 13px;font-size:11px;color:#596f7e;white-space:nowrap}.filter.is-active{background:var(--navy);color:white}.filter:hover{border-color:#c4d0d8}.search-box{display:flex;align-items:center;gap:10px;background:white;border:1px solid var(--line);padding:9px 12px;border-radius:5px;min-width:228px}.search-box svg{width:16px;height:16px;color:#748692}.search-box input{width:100%;min-width:0;background:transparent;border:0;outline:none;font-size:11px;color:var(--ink)}.search-box:focus-within{box-shadow:0 0 0 2px #b58d47}.result-meta{display:flex;justify-content:space-between;font-size:10px;color:#7a8b96;padding:18px 0}.app-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:20px}.app-card{background:white;border:1px solid #e2e7eb;padding:25px;border-radius:9px;display:flex;flex-direction:column;transition:transform .2s,box-shadow .2s}.app-card:hover{transform:translateY(-4px);box-shadow:0 12px 30px #0b263908;border-color:#b8c7d1}.app-top{display:flex;justify-content:space-between;align-items:center;margin-bottom:23px}.app-icon{width:45px;height:45px;display:grid;place-items:center;border-radius:10px;background:#eaf2f5;color:#286a87}.app-icon.color-1{background:#e9f3f0;color:#367f70}.app-icon.color-2{background:#f4efe4;color:#a67c35}.favorite-button{display:grid;place-items:center;width:32px;height:32px;padding:7px;background:none;border:0;color:#8596a1;border-radius:5px}.favorite-button svg{width:18px;height:18px}.favorite-button[aria-pressed=true]{color:#ad7b20;background:#faf1dc}.favorite-button[aria-pressed=true] svg{fill:#e7b85b}.app-category{font-size:9px;color:#8b7755;letter-spacing:.08em;text-transform:uppercase;margin-bottom:9px}.app-card h3{font-size:20px;letter-spacing:-.03em;margin-bottom:12px}.app-description{font-size:12px;color:#6c7d88;line-height:1.8;margin-bottom:26px;flex:1}.app-bottom{border-top:1px solid #edf0f2;padding-top:15px;display:flex;justify-content:space-between;gap:10px;align-items:center;font-size:9px}.app-status{display:flex;align-items:center;gap:6px;color:#69808d}.app-status i{width:5px;height:5px;background:#ac9a77;border-radius:50%}.app-status.available i{background:#318770}.app-open{font-size:10px;font-weight:600}.not-available{color:#9aa6ad}.directory-note{font-size:10px;color:#7b8e99;margin:23px 0 0}.empty-state{text-align:center;background:white;padding:55px;border:1px dashed #bfcdd6;border-radius:9px}.empty-state p{font-size:13px;color:var(--muted)}[hidden]{display:none!important}.news-label{font-size:9px;letter-spacing:.13em;color:#768892}.news-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:25px}.news-card{border-top:2px solid #e3b666;padding:24px 0}.news-card>span{font-size:9px;color:#7b8c96}.news-card h3{font-size:23px;font-weight:500;line-height:1.25;margin:16px 0 12px}.news-card p{font-size:12px;color:var(--muted)}.news-empty{grid-column:1/-1;max-width:620px}.closing-band{background:#143c50;color:white;padding:51px 0;position:relative;overflow:hidden}.closing-band:after{content:'';position:absolute;width:400px;height:400px;border:1px solid #ffffff18;border-radius:50%;right:18%;top:-200px;box-shadow:0 0 0 40px #ffffff04,0 0 0 80px #ffffff03;pointer-events:none}.closing-band>.wrap{display:flex;justify-content:space-between;align-items:center;gap:25px;position:relative;z-index:1}.closing-band .eyebrow{margin-bottom:18px;font-size:8px}.closing-band h2{font-size:34px;font-weight:400}.site-footer{background:#081f2f;color:#b9cad4;padding:50px 0 0}.footer-top{display:grid;grid-template-columns:1fr 1fr;gap:30px;padding-bottom:35px}.footer-brand{font-size:25px;color:white;font-weight:600}.footer-brand span{font-size:14px;font-weight:400;margin-left:10px;color:#adbdc9}.footer-top p{font-size:11px;line-height:1.8;margin:12px 0}.footer-top>div:last-child{justify-self:end;min-width:270px}.footer-top strong{font-size:13px;color:white}.footer-top .text-link{color:var(--gold)}.footer-bottom{display:flex;justify-content:space-between;gap:20px;border-top:1px solid #ffffff18;padding:20px 0;font-size:9px;color:#7c96a7}.content-main{padding-top:65px;padding-bottom:80px;min-height:60vh}.content-main h1{font-size:clamp(36px,4vw,54px);margin-bottom:35px}.entry{padding:30px 0;border-bottom:1px solid var(--line)}.entry p{color:var(--muted)}.entry-single{max-width:860px;margin:auto;border:0}.entry-single h1{margin-top:30px}.entry-content h2,.comments-area h2{font-size:30px;margin:30px 0 20px}.entry-content h3{margin-top:25px}.entry-content a{color:#197b83;text-decoration:underline}.entry-content img{height:auto}.entry-content table{border-collapse:collapse;max-width:100%}.entry-content th,.entry-content td{border:1px solid var(--line);padding:10px}.entry-content pre{overflow:auto}.alignwide{max-width:1280px}.wp-caption-text,.gallery-caption{font-size:12px}.sticky{border-top:3px solid var(--gold)}.bypostauthor{border-left:2px solid var(--gold)}.toast{position:fixed;bottom:24px;left:50%;transform:translateX(-50%);background:#0b2639;color:white;border-radius:8px;box-shadow:0 8px 30px #0003;padding:10px 20px;font-size:12px;z-index:100;opacity:0;pointer-events:none;transition:opacity .2s}.toast.is-visible{opacity:1}.admin-bar{--wp-admin--admin-bar--height:32px}

@media(max-width:1150px){.wrap{width:calc(100% - 64px)}.directory-tools{align-items:flex-start;flex-direction:column}.search-box{width:100%}.app-card{padding:22px}.app-bottom{flex-wrap:wrap}}
@media(max-width:800px){.app-grid{grid-template-columns:repeat(2,1fr)}.section-pad{padding:60px 0}.section-intro{align-items:flex-start;flex-direction:column;gap:20px}.news-grid{grid-template-columns:1fr}.news-card{padding-bottom:15px}.footer-top>div:last-child{min-width:0}.closing-band h2{font-size:29px}}
@media(max-width:520px){.wrap{width:calc(100% - 40px)}.eyebrow{font-size:8px;margin-bottom:23px}.feature-track{gap:14px}.section-intro{margin-bottom:25px}.section-intro h2{font-size:34px}.filters{gap:3px}.filter{padding:8px 10px;font-size:10px}.result-meta{font-size:9px;gap:15px}.app-grid{grid-template-columns:1fr;gap:14px}.app-card{padding:23px}.app-top{margin-bottom:15px}.app-description{margin-bottom:22px}.app-card h3{font-size:22px}.app-bottom{font-size:10px}.demo-notice{font-size:10px}.closing-band>.wrap{flex-direction:column;align-items:flex-start;gap:28px}.closing-band h2{font-size:30px}.footer-top{grid-template-columns:1fr;gap:20px}.footer-top>div:last-child{justify-self:start}.footer-bottom{flex-wrap:wrap;font-size:8px}.footer-bottom>span:nth-child(2){display:none}.toast{max-width:90%;width:max-content;font-size:11px}.empty-state{padding:35px 20px}}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}*,*:before,*:after{transition:none!important;animation:none!important}.app-card:hover,.button:hover{transform:none}}

/* SSMI masthead and opening panel. The custom logo has its own white ground. */
.site-header {
    --ssmi-ink: #0c1b30;
    --ssmi-orange: #c96e20;
    position: relative;
    z-index: 20;
    color: var(--ssmi-ink);
    background: var(--ssmi-orange);
    border-bottom: 1px solid #af5719;
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 28px;
    min-height: 96px;
    padding-block: 12px;
}

.identity { display: flex; align-items: center; gap: 14px; min-width: 0; }
.brand-copy { display: flex; flex-direction: column; line-height: 1.25; }
.brand-copy strong { font-size: 30px; font-weight: 700; letter-spacing: -.055em; white-space: nowrap; }
.brand-copy strong span { color: white; font-weight: 500; }
.brand-copy small { margin-top: 4px; color: #201307; font-size: 8px; font-weight: 700; letter-spacing: .08em; }

.site-header .custom-logo-link,
.brand-symbol {
    flex: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    border-radius: 6px;
}
.site-header .custom-logo-link { padding: 7px 10px; line-height: 0; }
.site-header .custom-logo-link img { display: block; width: 260; height: auto; max-width: 260; max-height: 80px; object-fit: contain; }
.brand-symbol { position: relative; width: 46px; height: 46px; color: #00318e; font: 700 32px/1 Georgia, serif; }
.brand-symbol span { position: absolute; bottom: 2px; right: 6px; color: #b75816; font: 700 17px/1 Arial, sans-serif; }

.header-inner nav ul { display: flex; align-items: center; flex-wrap: wrap; gap: 4px 27px; list-style: none; padding: 0; margin: 0; }
.header-inner nav a { display: inline-flex; align-items: center; min-height: 42px; font-size: 13px; font-weight: 600; }
.header-inner nav a:hover,
.header-inner .current-menu-item > a { text-decoration: underline; text-underline-offset: 5px; }
.header-link {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    gap: 18px;
    min-height: 44px;
    padding: 10px 18px;
    border-radius: 5px;
    background: #00318e;
    color: white;
    font-size: 12px;
    font-weight: 700;
}
.header-link svg { width: 18px; height: 18px; }
.header-link:hover { background: #082968; }
.site-header :focus-visible { outline: 3px solid #111f39; outline-offset: 3px; box-shadow: 0 0 0 3px white; }
.menu-toggle { display: none; }

.hero {
    position: relative;
    isolation: isolate;
    min-height: 700px;
    overflow: hidden;
    color: white;
    background: #903e10;
}
.hero-art, .hero-shade { position: absolute; inset: 0; pointer-events: none; }
.hero-art {
    background-image: url('assets/digital-landscape.svg?v=1.1.0');
    background-size: cover;
    background-position: center;
}
.hero-shade {
    background: linear-gradient(90deg, rgb(105 40 10 / 96%) 0%, rgb(113 43 12 / 89%) 36%, rgb(120 48 14 / 52%) 67%, rgb(104 39 7 / 39%) 100%),
                linear-gradient(0deg, rgb(80 29 8 / 91%), transparent 48%);
}
.hero-inner {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
    gap: clamp(36px, 5vw, 80px);
    align-items: center;
    padding-block: 94px 120px;
}
.hero-copy, .hero-showcase { min-width: 0; }
.hero h1 { max-width: 565px; margin: 0 0 25px; font-size: clamp(45px, 4.5vw, 66px); font-weight: 650; letter-spacing: -.055em; line-height: 1.06; }
.hero .eyebrow, .showcase-heading { color: #fff0d9; }
.hero .eyebrow > span, .feature-line, .feature-progress > span { background: #ffd49b; }
.hero-description { max-width: 420px; margin: 0 0 31px; color: #fff4e9; font-size: 15px; line-height: 1.8; }
.button-hero { min-height: 44px; color: #572409; background: #fff; }
.button-hero:hover { background: #fff0df; }
.hero-caption { display: flex; align-items: center; gap: 14px; margin-top: 30px; color: #ffe8d1; font-size: 11px; }
.caption-line { width: 32px; height: 1px; background: #ffd8af; }
.showcase-heading { display: flex; justify-content: space-between; margin-bottom: 16px; font-size: 9px; font-weight: 600; letter-spacing: .13em; }

.feature-card {
    position: relative;
    isolation: isolate;
    flex: 0 0 calc((100% - 28px)/3);
    height: 270px;
    overflow: hidden;
    padding: 18px;
    border: 1px solid rgb(255 226 191 / 49%);
    border-radius: 12px;
    background: #b95b23 center/cover;
    color: white;
    text-align: left;
    scroll-snap-align: start;
    transition: transform .25s, border-color .25s;
}
.feature-card.tone-1 { background-color: #a65333; }
.feature-card.tone-2 { background-color: #bf772f; }
.feature-card::before {
    content: '';
    position: absolute;
    z-index: -1;
    inset: 0;
    background: linear-gradient(0deg, #3c211d 0%, rgb(70 32 20 / 67%) 39%, transparent 90%),
                repeating-linear-gradient(125deg, transparent 0 28px, rgb(255 223 184 / 13%) 29px 30px);
}
.feature-card::after {
    content: '';
    position: absolute;
    z-index: -1;
    inset: 45px -65px 10px 15px;
    transform: rotate(-24deg);
    border: 1px solid rgb(255 232 210 / 20%);
    border-radius: 12px;
    box-shadow: 15px -18px 0 #ffffff08, 30px -36px 0 #ffffff06, 45px -54px 0 #ffffff04;
}
.feature-card.is-active { transform: translateY(-6px); border-color: #ffefd7; box-shadow: 0 5px 14px #48200940; }
.feature-card:focus-visible { outline: 3px solid white; outline-offset: -4px; }
.hero a:focus-visible, .feature-controls button:focus-visible { outline: 3px solid #fff; outline-offset: 3px; }
.feature-number { position: absolute; top: 19px; left: 18px; padding: 1px 5px; color: #fff; background: #632e12; border-radius: 3px; font-size: 10px; }
.feature-glyph { position: absolute; top: 70px; left: 18px; color: #ffe8cb; }
.feature-glyph svg { width: 48px; height: 48px; stroke-width: 1.2; }
.feature-text { position: absolute; right: 14px; bottom: 22px; left: 18px; overflow-wrap: anywhere; }
.feature-text small { color: #ffead5; font-size: 10px; }
.feature-text strong { display: block; margin: 7px 0 15px; font-size: 20px; font-weight: 600; letter-spacing: -.035em; line-height: 1.15; }
.feature-line { display: block; width: 23px; height: 2px; }
.feature-controls button { width: 38px; height: 38px; border: 1px solid #ffd3ac99; border-radius: 50%; background: #662b13; color: white; }
.feature-controls button:hover { background: #54220e; }
.feature-progress { flex: 1; height: 2px; margin: 0 10px; background: #ffe3c94d; }
.feature-progress > span { display: block; width: 33.33%; height: 2px; transition: width .3s; }
.feature-count { font-size: 23px; font-variant-numeric: tabular-nums; }
.selected-feature { min-height: 86px; padding-top: 17px; }
.feature-description { max-width: 450px; margin: 0 0 5px; color: #fff3e8; font-size: 12px; line-height: 1.65; }
.feature-open { color: #fff0d8; text-decoration: underline; text-underline-offset: 3px; }
.hero-bottom { position: absolute; inset: auto 0 26px; display: flex; align-items: center; justify-content: space-between; gap: 18px; padding-top: 16px; border-top: 1px solid #ffe2c144; color: #ffe6cd; font-size: 8px; letter-spacing: .12em; }
.hero-bottom a { flex-shrink: 0; color: #fff5e7; font-size: 11px; letter-spacing: 0; }

@media (min-width: 1600px) {
    .hero { min-height: 745px; }
    .hero-inner { padding-top: 116px; }
}
@media (max-width: 1150px) {
    .hero h1 { font-size: clamp(40px, 5vw, 56px); }
    .feature-card { height: 248px; }
    .feature-text strong { font-size: 18px; }
}
@media (max-width: 800px) {
    .header-inner { min-height: 84px; gap: 14px; }
    .header-link { display: none; }
    .hero { min-height: 0; }
    .hero-inner { grid-template-columns: minmax(0, 1fr); gap: 38px; padding-block: 58px 108px; }
    .hero-copy { max-width: 540px; }
    .hero-showcase { width: 100%; max-width: 650px; }
    .feature-card { height: 236px; }
}
@media (max-width: 680px) {
    .header-inner { min-height: 78px; }
    .identity { gap: 10px; }
    .brand-copy strong { font-size: 26px; }
    .brand-copy small { font-size: 7px; }
    .site-header .custom-logo-link img { max-width: 92px; max-height: 42px; }
    .site-header .custom-logo-link { padding: 5px 7px; }
    .brand-symbol { width: 38px; height: 38px; font-size: 26px; }
    .menu-toggle {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        min-height: 44px;
        padding: 6px 12px;
        border: 1px solid #68350f;
        border-radius: 5px;
        background: transparent;
        color: #0c1b30;
        font-size: 12px;
        font-weight: 700;
    }
    .header-inner nav {
        display: none;
        position: absolute;
        inset: 100% 16px auto;
        padding: 10px 16px;
        border: 1px solid #f0c399;
        border-radius: 0 0 8px 8px;
        background: white;
        color: #172f52;
        box-shadow: 0 8px 20px #53240b29;
    }
    .header-inner nav.is-open { display: block; }
    .header-inner nav ul { flex-direction: column; align-items: stretch; gap: 0; }
    .header-inner nav a { display: flex; min-height: 44px; }
}
@media (max-width: 520px) {
    .hero-inner { gap: 32px; padding-block: 42px 96px; }
    .hero h1 { max-width: 380px; font-size: clamp(40px, 10vw, 51px); }
    .hero-description { font-size: 14px; }
    .hero-caption { font-size: 10px; margin-top: 23px; }
    .feature-card { flex-basis: calc((100% - 14px)/2); height: 220px; }
    .feature-glyph { top: 54px; }
    .feature-text { left: 13px; right: 10px; bottom: 16px; }
    .feature-text strong { font-size: 18px; }
    .hero-bottom { bottom: 20px; align-items: flex-end; }
    .hero-bottom > span { max-width: 165px; font-size: 7px; }
}
@media (max-width: 380px) {
    .site-header .custom-logo-link img { max-width: 72px; }
    .header-inner, .identity { gap: 8px; }
    .menu-toggle { padding-inline: 9px; }
}
@media (prefers-reduced-motion: reduce) {
    .feature-card.is-active { transform: none; }
}
