/*
Theme Name: PMB 2026 - STIT RADEN WIJAYA MOJOKERTO
Theme URI: http://pmb.stitradenwijaya.ac.id/
Author: STIT Raden Wijaya Mojokerto
Description: Theme WordPress custom portal Penerimaan Mahasiswa Baru dengan desain responsif, aksesibel, dan dukungan WordPress Native API.
Version: 1.0.0
Requires at least: 6.2
Requires PHP: 8.0
Tested up to: 6.8
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: pmb-stit-rw
Tags: education, custom-logo, custom-menu, featured-images, news, accessibility-ready
*/
:root {
  --pmb-primary: #244ff5;
  --pmb-primary-dark: #1738c4;
  --pmb-accent: #ffe44d;
  --pmb-ink: #182033;
  --pmb-muted: #647087;
  --pmb-bg: #f7f9ff;
  --pmb-white: #fff;
  --pmb-border: #e5eaf4;
  --pmb-radius: 20px;
  --pmb-shadow: 0 16px 45px rgba(28, 54, 112, .10);
  --pmb-width: 1180px;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 100px; }
body { margin: 0; color: var(--pmb-ink); background: #fff; font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; font-size: 16px; line-height: 1.7; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--pmb-primary); text-decoration-thickness: .08em; text-underline-offset: .18em; }
a:hover { color: var(--pmb-primary-dark); }
button, input, textarea, select { font: inherit; }
button, .button { cursor: pointer; }
button:focus-visible, a:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible { outline: 3px solid #f0bd00; outline-offset: 3px; }
.skip-link { position: absolute; left: -9999px; top: 8px; z-index: 10000; background: #fff; padding: .75rem 1rem; border-radius: 8px; }
.skip-link:focus { left: 8px; }
.container { width: min(var(--pmb-width), calc(100% - 40px)); margin-inline: auto; }
.site-header { position: sticky; top: 0; z-index: 1000; background: rgba(255,255,255,.94); border-bottom: 1px solid rgba(229,234,244,.9); backdrop-filter: blur(16px); }
.header-inner { min-height: 82px; display: flex; align-items: center; justify-content: space-between; gap: 28px; }
.site-branding { display: flex; align-items: center; gap: 12px; min-width: 0; color: var(--pmb-ink); text-decoration: none; }
.custom-logo { width: auto; max-width: 68px; max-height: 58px; object-fit: contain; }
.brand-mark { width: 48px; height: 48px; display: grid; place-items: center; border-radius: 14px; color: #fff; background: var(--pmb-primary); font-weight: 900; letter-spacing: -.04em; }
.brand-copy { display: grid; line-height: 1.25; }
.brand-copy strong { font-size: .97rem; letter-spacing: -.02em; }
.brand-copy small { margin-top: 4px; color: var(--pmb-muted); font-size: .73rem; }
.primary-navigation { display: flex; align-items: center; gap: 6px; }
.primary-navigation ul { display: flex; align-items: center; gap: 4px; list-style: none; margin: 0; padding: 0; }
.primary-navigation li { position: relative; }
.primary-navigation a { display: block; padding: 10px 13px; color: #3c465b; text-decoration: none; font-weight: 650; font-size: .91rem; border-radius: 10px; }
.primary-navigation a:hover, .primary-navigation .current-menu-item > a { color: var(--pmb-primary); background: #f0f4ff; }
.primary-navigation .sub-menu { display: none; position: absolute; top: 100%; left: 0; min-width: 220px; padding: 8px; background: #fff; border: 1px solid var(--pmb-border); border-radius: 14px; box-shadow: var(--pmb-shadow); }
.primary-navigation li:hover > .sub-menu, .primary-navigation li:focus-within > .sub-menu { display: block; }
.primary-navigation .sub-menu ul { display: block; }
.nav-toggle { display: none; border: 1px solid var(--pmb-border); background: #fff; color: var(--pmb-ink); border-radius: 10px; padding: 9px 12px; font-weight: 700; }
.button { display: inline-flex; justify-content: center; align-items: center; gap: 9px; min-height: 46px; padding: 11px 20px; border: 0; border-radius: 999px; font-weight: 800; text-decoration: none; transition: transform .18s ease, box-shadow .18s ease, background .18s ease; }
.button:hover { transform: translateY(-2px); }
.button-primary { color: #fff; background: var(--pmb-primary); box-shadow: 0 8px 20px rgba(36,79,245,.2); }
.button-primary:hover { color: #fff; background: var(--pmb-primary-dark); }
.button-accent { color: #252b38; background: var(--pmb-accent); }
.button-accent:hover { color: #252b38; background: #ffdc26; }
.button-outline { color: var(--pmb-primary); background: #fff; border: 1px solid #dce4ff; }
.hero { padding: 54px 0 72px; overflow: hidden; background: radial-gradient(ellipse at 6% 15%, #edf2ff 0, transparent 38%), #fff; }
.hero-heading { max-width: 820px; margin: 0 auto 38px; text-align: center; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; margin: 0 0 12px; color: var(--pmb-primary); font-weight: 850; font-size: .78rem; letter-spacing: .12em; text-transform: uppercase; }
.eyebrow::before { content: ""; width: 24px; height: 2px; background: var(--pmb-accent); }
.hero h1 { margin: 0; color: var(--pmb-primary); font-size: clamp(2rem, 4.4vw, 3.5rem); line-height: 1.1; letter-spacing: -.055em; }
.hero-rule { width: 150px; height: 4px; margin: 20px auto 0; background: var(--pmb-accent); border-radius: 99px; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.02fr) minmax(0, 1fr); align-items: center; gap: clamp(35px, 6vw, 80px); }
.hero-gallery { position: relative; min-height: 430px; display: flex; align-items: center; justify-content: center; }
.hero-gallery::after { content: ""; position: absolute; width: 105px; height: 220px; right: -10px; top: 22%; z-index: 0; opacity: .5; background-image: radial-gradient(var(--pmb-primary) 1.7px, transparent 1.7px); background-size: 9px 9px; }
.hero-photo { position: absolute; overflow: hidden; border: 7px solid #fff; border-radius: 4px; box-shadow: var(--pmb-shadow); background: #eaf0ff; }
.hero-photo img { width: 100%; height: 100%; object-fit: cover; }
.hero-photo-main { width: 68%; height: 340px; left: 22%; top: 6%; z-index: 2; }
.hero-photo-side { width: 39%; height: 235px; left: 0; top: 18%; z-index: 1; }
.hero-photo-bottom { width: 58%; height: 195px; left: 16%; bottom: 0; z-index: 3; }
.photo-placeholder { display: grid; place-items: center; width: 100%; height: 100%; padding: 22px; text-align: center; color: #4c5c86; background: linear-gradient(140deg,#dce6ff,#f8fbff); font-weight: 800; }
.hero-copy { position: relative; z-index: 1; }
.hero-copy h2 { margin: 0 0 18px; font-size: clamp(1.7rem, 3vw, 2.45rem); line-height: 1.2; letter-spacing: -.045em; }
.hero-copy p { color: var(--pmb-muted); margin: 0 0 16px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.hero-actions .button-primary { width: 100%; margin-top: 6px; }
.section { padding: 76px 0; }
.section-soft { background: var(--pmb-bg); }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 25px; margin-bottom: 30px; }
.section-heading h2 { margin: 0; font-size: clamp(1.8rem, 3vw, 2.55rem); line-height: 1.15; letter-spacing: -.045em; }
.section-heading p { max-width: 580px; margin: 10px 0 0; color: var(--pmb-muted); }
.selection-grid, .info-grid, .post-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.selection-card, .info-card, .post-card, .content-panel { border: 1px solid var(--pmb-border); border-radius: var(--pmb-radius); background: #fff; box-shadow: 0 8px 26px rgba(24,32,51,.035); }
.selection-card { padding: 26px; transition: transform .2s ease, box-shadow .2s ease; }
.selection-card:hover { transform: translateY(-4px); box-shadow: var(--pmb-shadow); }
.selection-icon { width: 52px; height: 52px; display: grid; place-items: center; margin-bottom: 18px; border-radius: 16px; color: var(--pmb-primary); background: #eef2ff; font-size: 1.4rem; }
.selection-card h3 { margin: 0 0 8px; font-size: 1.18rem; }
.selection-card p { color: var(--pmb-muted); margin: 0 0 18px; font-size: .94rem; }
.text-link { display: inline-flex; align-items: center; gap: 8px; font-weight: 800; text-decoration: none; }
.stats-strip { display: grid; grid-template-columns: repeat(3,1fr); gap: 16px; margin-top: 28px; }
.stat-item { padding: 20px; border-radius: 16px; background: #f0f4ff; }
.stat-item strong { display: block; color: var(--pmb-primary); font-size: 1.6rem; line-height: 1.2; }
.stat-item span { color: var(--pmb-muted); font-size: .88rem; }
.info-card, .post-card { overflow: hidden; }
.card-image { aspect-ratio: 16 / 9; background: #edf1fa; overflow: hidden; }
.card-image img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.post-card:hover .card-image img { transform: scale(1.04); }
.card-body { padding: 22px; }
.post-meta { color: var(--pmb-muted); font-size: .82rem; }
.card-body h2, .card-body h3 { margin: 8px 0 10px; font-size: 1.18rem; line-height: 1.35; }
.card-body h2 a, .card-body h3 a { color: var(--pmb-ink); text-decoration: none; }
.card-body h2 a:hover, .card-body h3 a:hover { color: var(--pmb-primary); }
.card-body p { margin: 0 0 16px; color: var(--pmb-muted); }
.cta-band { display: flex; align-items: center; justify-content: space-between; gap: 30px; padding: clamp(28px, 5vw, 52px); color: #fff; background: var(--pmb-primary); border-radius: 26px; }
.cta-band h2 { margin: 0 0 8px; font-size: clamp(1.6rem,3vw,2.3rem); line-height: 1.2; }
.cta-band p { margin: 0; color: #e1e8ff; }
.cta-band .button { flex-shrink: 0; }
.page-header { padding: 56px 0 34px; background: var(--pmb-bg); }
.page-header h1 { margin: 0; font-size: clamp(2rem,4vw,3rem); line-height: 1.15; letter-spacing: -.045em; }
.page-header p { color: var(--pmb-muted); margin: 12px 0 0; }
.content-area { padding: 48px 0 78px; }
.content-panel { padding: clamp(24px, 4vw, 46px); }
.entry-content > *:first-child { margin-top: 0; }
.entry-content > *:last-child { margin-bottom: 0; }
.entry-content { overflow-wrap: anywhere; }
.entry-content h2, .entry-content h3 { margin-top: 1.7em; line-height: 1.25; }
.entry-content img { border-radius: 14px; }
.entry-content table { width: 100%; border-collapse: collapse; }
.entry-content th, .entry-content td { padding: 12px; border: 1px solid var(--pmb-border); text-align: left; }
.entry-content blockquote { margin-inline: 0; padding: 10px 22px; border-left: 4px solid var(--pmb-accent); color: var(--pmb-muted); }
.pagination, .nav-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 36px; }
.page-numbers { display: inline-grid; min-width: 42px; min-height: 42px; place-items: center; padding: 6px 12px; border: 1px solid var(--pmb-border); border-radius: 12px; text-decoration: none; font-weight: 750; }
.page-numbers.current { color: #fff; background: var(--pmb-primary); border-color: var(--pmb-primary); }
.search-form { display: flex; gap: 8px; max-width: 620px; margin-top: 22px; }
.search-form label { flex: 1; }
.search-field { width: 100%; min-height: 48px; padding: 10px 15px; border: 1px solid #dce2ef; border-radius: 12px; }
.site-footer { padding: 56px 0 20px; color: #dce4ff; background: #111a36; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; padding-bottom: 38px; }
.site-footer h2, .site-footer h3 { margin: 0 0 14px; color: #fff; font-size: 1.05rem; }
.site-footer p { margin: 0 0 12px; color: #b9c5e6; }
.site-footer a { color: #fff; }
.footer-menu, .footer-menu ul { list-style: none; margin: 0; padding: 0; }
.footer-menu li { margin: 8px 0; }
.footer-bottom { display: flex; justify-content: space-between; gap: 18px; padding-top: 20px; border-top: 1px solid rgba(255,255,255,.15); color: #aab8dc; font-size: .88rem; }
.footer-bottom p { margin: 0; }
.empty-state { padding: 40px 24px; text-align: center; border: 1px dashed #cbd5ea; border-radius: var(--pmb-radius); background: #fafbff; }
.empty-state h2 { margin-top: 0; }
.notice { padding: 14px 18px; border-radius: 12px; background: #fff8d8; color: #574800; }
.back-to-top { position: fixed; right: 22px; bottom: 22px; z-index: 900; display: grid; place-items: center; width: 44px; height: 44px; border: 0; border-radius: 50%; color: #fff; background: var(--pmb-primary); box-shadow: var(--pmb-shadow); text-decoration: none; opacity: 0; pointer-events: none; transition: opacity .2s; }
.back-to-top.is-visible { opacity: 1; pointer-events: auto; }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
@media (max-width: 900px) {
  .header-inner { min-height: 74px; }
  .nav-toggle { display: inline-flex; align-items: center; gap: 8px; }
  .primary-navigation { display: none; position: absolute; top: calc(100% + 1px); left: 0; right: 0; padding: 12px 20px 18px; background: #fff; border-bottom: 1px solid var(--pmb-border); box-shadow: var(--pmb-shadow); }
  .primary-navigation.is-open { display: block; }
  .primary-navigation ul { display: block; }
  .primary-navigation a { padding: 12px; }
  .primary-navigation .sub-menu { display: block; position: static; padding: 0 0 0 14px; border: 0; box-shadow: none; }
  .hero-grid { grid-template-columns: 1fr; }
  .hero-gallery { max-width: 620px; width: 100%; margin-inline: auto; }
  .hero-copy { max-width: 700px; margin-inline: auto; }
  .selection-grid, .info-grid, .post-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 620px) {
  .container { width: min(var(--pmb-width), calc(100% - 28px)); }
  .brand-copy strong { max-width: 210px; font-size: .82rem; }
  .brand-copy small { font-size: .68rem; }
  .custom-logo { max-width: 48px; max-height: 46px; }
  .brand-mark { width: 40px; height: 40px; }
  .hero { padding: 38px 0 52px; }
  .hero-heading { margin-bottom: 20px; }
  .hero-gallery { min-height: 330px; }
  .hero-photo-main { height: 255px; }
  .hero-photo-side { height: 170px; }
  .hero-photo-bottom { height: 145px; }
  .hero-gallery::after { height: 150px; width: 60px; right: -4px; }
  .hero-actions { display: grid; grid-template-columns: 1fr; }
  .hero-actions .button-primary { margin-top: 0; }
  .section { padding: 54px 0; }
  .section-heading { display: block; }
  .selection-grid, .info-grid, .post-grid, .stats-strip, .footer-grid { grid-template-columns: 1fr; }
  .cta-band { display: block; }
  .cta-band .button { margin-top: 22px; }
  .footer-grid { gap: 28px; }
  .footer-bottom { display: block; }
  .footer-bottom p + p { margin-top: 8px; }
  .search-form { flex-direction: column; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; }
}
