/*
Theme Name: Semangat CPNS
Theme URI: https://example.com/semangat-cpns
Author: OpenAI
Description: Tema WordPress responsif bernuansa optimistis untuk website persiapan CPNS, tryout CAT, materi belajar, dan progres peserta. Tanpa CDN eksternal.
Version: 1.1.0
Requires at least: 5.8
Tested up to: 6.8
Requires PHP: 7.4
License: GPL-2.0-or-later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: semangat-cpns
Tags: education, blog, custom-logo, custom-menu, featured-images, one-column, two-columns, translation-ready
*/
:root {
  --sc-primary: #b91c1c;
  --sc-primary-dark: #991b1b;
  --sc-accent: #d4a72c;
  --sc-ink: #182235;
  --sc-muted: #647084;
  --sc-paper: #fffdf9;
  --sc-surface: #ffffff;
  --sc-soft: #fff1f1;
  --sc-border: #eadfe0;
  --sc-success: #18794e;
  --sc-radius: 22px;
  --sc-shadow: 0 16px 42px rgba(66, 22, 36, .10);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; background: var(--sc-paper); color: var(--sc-ink);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px; line-height: 1.7;
}
body, button, input, select, textarea { font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; }
a { color: var(--sc-primary-dark); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--sc-primary); }
img { max-width: 100%; height: auto; }
button, input, select, textarea { max-width: 100%; }
button, .button, .wp-block-button__link, input[type="submit"] {
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  border: 0; border-radius: 999px; padding: .88rem 1.25rem;
  background: var(--sc-primary); color: #fff; font-weight: 800; cursor: pointer;
  text-decoration: none; box-shadow: 0 8px 18px rgba(185,28,28,.20);
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
}
button:hover, .button:hover, .wp-block-button__link:hover, input[type="submit"]:hover {
  color: #fff; background: var(--sc-primary-dark); transform: translateY(-2px);
  box-shadow: 0 12px 22px rgba(185,28,28,.24);
}
:focus-visible { outline: 3px solid #1769aa; outline-offset: 3px; }
.container { width: min(1160px, calc(100% - 36px)); margin-inline: auto; }
.site-header { position: relative; z-index: 10; background: rgba(255,253,249,.94); border-bottom: 1px solid var(--sc-border); }
.header-inner { min-height: 82px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.site-branding { display: flex; align-items: center; gap: 12px; min-width: 0; }
.custom-logo { max-height: 52px; width: auto; }
.brand-mark { display: grid; place-items: center; width: 46px; height: 46px; flex: 0 0 46px; border-radius: 15px; color: white; font-weight: 950; background: linear-gradient(145deg, var(--sc-primary), #f05a48); box-shadow: 0 7px 15px rgba(185,28,28,.22); }
.site-title { margin: 0; font-size: 1.08rem; line-height: 1.2; font-weight: 900; letter-spacing: -.03em; }
.site-title a { color: var(--sc-ink); text-decoration: none; }
.site-description { margin: 3px 0 0; color: var(--sc-muted); font-size: .78rem; }
.main-navigation ul { display: flex; align-items: center; gap: 22px; list-style: none; padding: 0; margin: 0; }
.main-navigation a { color: var(--sc-ink); font-weight: 750; font-size: .92rem; text-decoration: none; }
.main-navigation a:hover { color: var(--sc-primary); }
.menu-toggle { display: none; }
.hero {
  position: relative; overflow: hidden; padding: clamp(54px, 8vw, 104px) 0 74px;
  background:
    radial-gradient(circle at 86% 14%, rgba(247,183,49,.25) 0 8%, transparent 8.2%),
    radial-gradient(circle at 94% 62%, rgba(255,255,255,.16) 0 13%, transparent 13.2%),
    linear-gradient(125deg, #8e1529 0%, #c91f36 54%, #f05a48 100%);
  color: white;
}
.hero:before { content:""; position:absolute; width:420px; height:420px; border:1px solid rgba(255,255,255,.18); border-radius:50%; right:-130px; top:-160px; box-shadow:0 0 0 35px rgba(255,255,255,.035), 0 0 0 75px rgba(255,255,255,.025); }
.hero-grid { position: relative; display: grid; grid-template-columns: 1.15fr .85fr; gap: 48px; align-items: center; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; padding: 7px 13px; border-radius: 999px; background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.22); font-size: .82rem; font-weight: 800; letter-spacing: .02em; }
.hero h1 { margin: 20px 0 18px; max-width: 720px; font-size: clamp(2.5rem, 5.8vw, 4.8rem); line-height: 1.03; letter-spacing: -.065em; color: white; }
.hero h1 em { color: #ffd66e; font-style: normal; }
.hero p { max-width: 610px; color: rgba(255,255,255,.88); font-size: clamp(1rem, 1.5vw, 1.18rem); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.button-light { background: #fff; color: var(--sc-primary-dark); box-shadow: none; }
.button-light:hover { background: #fff6e6; color: var(--sc-primary-dark); }
.button-outline { background: transparent; color: #fff; border: 1px solid rgba(255,255,255,.55); box-shadow: none; }
.button-outline:hover { background: rgba(255,255,255,.12); }
.hero-art { position: relative; display: grid; place-items: center; min-height: 310px; }
.motivation-card { width: min(100%, 380px); padding: 28px; background: #fffdf9; color: var(--sc-ink); border-radius: 28px; transform: rotate(2deg); box-shadow: 0 28px 70px rgba(48,0,12,.24); }
.motivation-card .sun { display: grid; place-items: center; width: 60px; height: 60px; border-radius: 19px; background: #fff0bd; font-size: 1.9rem; margin-bottom: 18px; }
.motivation-card h2 { margin: 0 0 10px; font-size: 1.6rem; line-height: 1.2; letter-spacing: -.04em; }
.motivation-card p { color: var(--sc-muted); font-size: .96rem; margin-bottom: 18px; }
.mini-progress { height: 10px; background: #f2e5e5; border-radius: 99px; overflow: hidden; }
.mini-progress span { display: block; width: 72%; height: 100%; background: linear-gradient(90deg, #f7b731, #f05a48); border-radius: inherit; }
.motivation-note { margin-top: 12px; color: var(--sc-primary-dark); font-size: .78rem; font-weight: 850; }
.section { padding: clamp(48px, 7vw, 84px) 0; }
.section-soft { background: #fff5ed; }
.section-heading { display: flex; justify-content: space-between; align-items: end; gap: 24px; margin-bottom: 30px; }
.kicker { color: var(--sc-primary); text-transform: uppercase; font-size: .76rem; font-weight: 900; letter-spacing: .13em; }
.section-heading h2 { margin: 6px 0 0; font-size: clamp(1.8rem, 3.5vw, 2.7rem); line-height: 1.1; letter-spacing: -.05em; }
.section-heading p { color: var(--sc-muted); max-width: 480px; margin: 0; }
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.feature-card { padding: 26px; border: 1px solid var(--sc-border); border-radius: var(--sc-radius); background: var(--sc-surface); box-shadow: 0 8px 24px rgba(24,34,53,.035); }
.feature-icon { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 17px; background: #fff0bd; font-size: 1.45rem; margin-bottom: 18px; }
.feature-card:nth-child(2) .feature-icon { background: #ffe1df; }
.feature-card:nth-child(3) .feature-icon { background: #dff5e9; }
.feature-card h3 { margin: 0 0 8px; font-size: 1.15rem; }
.feature-card p { color: var(--sc-muted); margin: 0; font-size: .95rem; }
.day-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.day-card { background: white; border: 1px solid var(--sc-border); border-radius: 18px; padding: 20px; }
.day-number { display: inline-grid; place-items: center; width: 36px; height: 36px; border-radius: 12px; background: var(--sc-primary); color: white; font-weight: 900; margin-bottom: 13px; }
.day-card h3 { font-size: 1rem; margin: 0 0 7px; }
.day-card p { margin: 0; color: var(--sc-muted); font-size: .88rem; }
.cta-band { padding: 36px; display: flex; align-items: center; justify-content: space-between; gap: 28px; border-radius: 28px; background: linear-gradient(115deg, #17243a, #293c58); color: white; }
.cta-band h2 { margin: 0 0 8px; color: white; font-size: clamp(1.5rem, 3vw, 2.2rem); letter-spacing: -.04em; }
.cta-band p { color: #d7e1ee; margin: 0; }
.content-layout { display: grid; grid-template-columns: minmax(0, 1fr) 280px; gap: 40px; padding: 54px 0 76px; }
.entry-card, .page-card { background: white; border: 1px solid var(--sc-border); border-radius: var(--sc-radius); padding: clamp(22px, 4vw, 38px); box-shadow: 0 8px 24px rgba(24,34,53,.035); margin-bottom: 22px; }
.entry-title { margin: 0 0 12px; font-size: clamp(1.55rem, 3vw, 2.25rem); line-height: 1.15; letter-spacing: -.045em; }
.entry-title a { color: var(--sc-ink); text-decoration: none; }
.entry-meta { color: var(--sc-muted); font-size: .84rem; margin-bottom: 18px; }
.entry-content > *:first-child { margin-top: 0; }
.entry-content h2, .entry-content h3 { line-height: 1.2; letter-spacing: -.025em; }
.entry-content blockquote { margin: 1.5rem 0; padding: 1rem 1.3rem; border-left: 4px solid var(--sc-accent); background: #fff8e4; border-radius: 0 14px 14px 0; }
.post-thumbnail img { width: 100%; max-height: 360px; object-fit: cover; border-radius: 16px; margin-bottom: 20px; }
.sidebar .widget { background: white; padding: 22px; border: 1px solid var(--sc-border); border-radius: 18px; margin-bottom: 18px; }
.widget-title { margin: 0 0 12px; font-size: 1.08rem; }
.sidebar ul { padding-left: 20px; }
.site-footer { background: #141e30; color: #e7edf5; padding: 44px 0 22px; }
.footer-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 30px; }
.site-footer h2, .site-footer h3 { color: #fff; margin-top: 0; }
.site-footer p, .site-footer li { color: #b8c4d5; }
.site-footer a { color: #ffe08a; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.14); margin-top: 28px; padding-top: 18px; color: #b8c4d5; font-size: .85rem; }
.pagination, .nav-links { display: flex; gap: 8px; flex-wrap: wrap; margin: 26px 0; }
.page-numbers { display: inline-flex; align-items: center; justify-content: center; min-width: 42px; padding: 8px 12px; border-radius: 12px; background: white; border: 1px solid var(--sc-border); text-decoration: none; }
.page-numbers.current { background: var(--sc-primary); color: white; }
input[type="text"], input[type="email"], input[type="password"], input[type="search"], input[type="url"], textarea, select {
  width: 100%; border: 1px solid #cbd2dc; border-radius: 12px; padding: 12px 14px; background: #fff; color: var(--sc-ink);
}
label { font-weight: 700; }
.search-form { display: flex; gap: 8px; }
.search-form label { flex: 1; }
.search-form input[type="submit"] { padding: .7rem 1rem; }
.screen-reader-text { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.empty-state { padding: 48px 24px; text-align: center; border: 1px dashed var(--sc-border); border-radius: var(--sc-radius); }
.empty-state h2 { margin-top: 0; }
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr .8fr; gap: 26px; }
  .day-grid { grid-template-columns: repeat(2, 1fr); }
  .content-layout { grid-template-columns: minmax(0,1fr) 240px; gap: 22px; }
  .main-navigation ul { gap: 14px; }
}
@media (max-width: 700px) {
  .container { width: min(100% - 28px, 1160px); }
  .header-inner { min-height: 72px; flex-wrap: wrap; padding: 12px 0; }
  .menu-toggle { display: inline-flex; padding: 10px 13px; }
  .main-navigation { display: none; width: 100%; padding: 6px 0 12px; }
  .main-navigation.is-open { display: block; }
  .main-navigation ul { flex-direction: column; align-items: stretch; gap: 0; }
  .main-navigation li { border-top: 1px solid var(--sc-border); padding: 10px 0; }
  .hero { padding: 48px 0 54px; }
  .hero-grid { grid-template-columns: 1fr; }
  .hero-art { min-height: auto; margin: 10px 8px 0; }
  .motivation-card { transform: none; }
  .section-heading { display: block; }
  .section-heading p { margin-top: 12px; }
  .feature-grid { grid-template-columns: 1fr; }
  .day-grid { grid-template-columns: 1fr 1fr; }
  .cta-band { display: block; padding: 27px; }
  .cta-band .button { margin-top: 22px; }
  .content-layout { grid-template-columns: 1fr; padding-top: 28px; }
  .footer-grid { grid-template-columns: 1fr; gap: 18px; }
}
@media (max-width: 390px) {
  .day-grid { grid-template-columns: 1fr; }
  .hero-actions .button { width: 100%; }
  .site-description { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; animation: none !important; }
}


/* v1.1.0 — integração com CAT CPNS Tryout v1.3.0 */
.program-intro { max-width: 760px; }
.package-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:20px; margin-top:28px; }
.package-card { position:relative; padding:clamp(22px,3vw,32px); background:#fff; border:1px solid var(--sc-border); border-radius:var(--sc-radius); box-shadow:var(--sc-shadow); }
.package-card.is-featured { border:2px solid var(--sc-primary); }
.package-card .package-label { display:inline-flex; padding:5px 10px; border-radius:999px; background:#fee2e2; color:#991b1b; font-weight:800; font-size:.78rem; }
.package-card h3 { font-size:1.55rem; margin:14px 0 4px; letter-spacing:-.035em; }
.package-card .package-duration { color:var(--sc-muted); margin:0 0 16px; }
.package-card ul { padding-left:20px; margin:18px 0 24px; }
.package-card li { margin:7px 0; }
.weekly-rhythm { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:14px; margin-top:28px; }
.rhythm-card { padding:20px; border:1px solid var(--sc-border); background:#fff; border-radius:18px; }
.rhythm-card strong { display:block; margin-bottom:6px; }
.rhythm-card p { margin:0; color:var(--sc-muted); font-size:.92rem; }
.dashboard-shortcut { display:flex; align-items:center; justify-content:space-between; gap:18px; padding:22px 26px; margin:0 0 22px; background:#fff; border:1px solid var(--sc-border); border-radius:18px; }
.dashboard-shortcut p { margin:3px 0 0; color:var(--sc-muted); }
.catc, .catc-program, .catc-auth { font-family:inherit; }
.catc .catc-btn, .catc-program .catc-btn, .catc-auth .catc-btn { box-shadow:none; text-decoration:none; }
.catc-auth { background:#fff; border-color:var(--sc-border); box-shadow:var(--sc-shadow); }
.catc-auth h2, .catc-auth h3 { color:var(--sc-ink); }
.catc-auth .catc-btn { border-radius:10px; background:#b91c1c; border-color:#b91c1c; }
.catc-auth .catc-btn:hover { background:#991b1b; }
.catc-program-hero { background:linear-gradient(125deg,#fff1f1,#fff 65%); border-color:#f4cccc; }
.catc-kicker { color:#b91c1c; }
.catc-progress span { background:linear-gradient(90deg,#b91c1c,#d4a72c); }
.catc-day-number { background:#fee2e2; color:#991b1b; }
.catc-theme-row button { font:inherit; }
@media(max-width:700px) {
 .package-grid, .weekly-rhythm { grid-template-columns:1fr; }
 .dashboard-shortcut { display:block; }
 .dashboard-shortcut .button { margin-top:14px; width:100%; }
}
