/*
Theme Name: KelasFX Academy
Theme URI: https://kelasfx.com/
Author: KelasFX
Author URI: https://kelasfx.com/
Description: Tema WordPress edukasi forex, crypto, saham, dan manajemen risiko untuk KelasFX.com.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.8
Requires PHP: 7.4
Text Domain: kelasfx
License: GNU General Public License v2 or later
*/

:root {
  --kfx-bg: #07111f;
  --kfx-bg-soft: #0d1b2c;
  --kfx-card: #102236;
  --kfx-text: #eef6ff;
  --kfx-muted: #9db0c6;
  --kfx-primary: #28d7a1;
  --kfx-primary-dark: #15a97d;
  --kfx-gold: #f3c969;
  --kfx-border: rgba(255,255,255,.10);
  --kfx-white: #fff;
  --kfx-shadow: 0 24px 70px rgba(0,0,0,.28);
  --kfx-radius: 20px;
  --kfx-max: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--kfx-text);
  background: var(--kfx-bg);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.7;
}
a { color: inherit; text-decoration: none; }
a:hover { color: var(--kfx-primary); }
img { max-width: 100%; height: auto; border-radius: 16px; }
.container { width: min(calc(100% - 36px), var(--kfx-max)); margin-inline: auto; }
.screen-reader-text { position:absolute; left:-9999px; }

.site-header {
  position: sticky; top: 0; z-index: 50;
  border-bottom: 1px solid var(--kfx-border);
  background: rgba(7,17,31,.88);
  backdrop-filter: blur(14px);
}
.header-inner { min-height: 78px; display:flex; align-items:center; justify-content:space-between; gap:24px; }
.brand { display:flex; align-items:center; gap:12px; font-weight:850; letter-spacing:-.03em; font-size:1.35rem; }
.brand-mark { width:40px; height:40px; display:grid; place-items:center; border-radius:12px; background:linear-gradient(135deg,var(--kfx-primary),#75f0c9); color:#042118; box-shadow:0 10px 26px rgba(40,215,161,.28); font-weight:900; }
.brand-sub { display:block; color:var(--kfx-muted); font-size:.68rem; font-weight:600; letter-spacing:.08em; text-transform:uppercase; }
.main-nav ul { display:flex; align-items:center; gap:26px; list-style:none; padding:0; margin:0; }
.main-nav a { color:#d7e5f4; font-size:.94rem; font-weight:650; }
.menu-toggle { display:none; border:1px solid var(--kfx-border); background:transparent; color:white; border-radius:12px; padding:10px 12px; }
.header-cta, .button { display:inline-flex; align-items:center; justify-content:center; min-height:46px; padding:0 20px; border-radius:13px; font-weight:800; background:var(--kfx-primary); color:#042118; border:1px solid transparent; }
.button:hover, .header-cta:hover { background:#52e2b6; color:#042118; transform:translateY(-1px); }
.button-outline { background:transparent; color:var(--kfx-text); border-color:var(--kfx-border); }
.button-outline:hover { background:rgba(255,255,255,.06); color:white; }

.hero { position:relative; overflow:hidden; padding:88px 0 64px; background:radial-gradient(circle at 75% 15%, rgba(40,215,161,.17), transparent 28%), radial-gradient(circle at 15% 35%, rgba(45,110,255,.16), transparent 25%); }
.hero-grid { display:grid; grid-template-columns:1.08fr .92fr; align-items:center; gap:62px; }
.eyebrow { display:inline-flex; align-items:center; gap:9px; padding:7px 12px; border:1px solid rgba(40,215,161,.28); border-radius:999px; color:#91f5d4; background:rgba(40,215,161,.08); font-size:.78rem; font-weight:800; letter-spacing:.07em; text-transform:uppercase; }
.hero h1 { margin:20px 0 20px; max-width:760px; font-size:clamp(2.5rem,5.6vw,5rem); line-height:1.02; letter-spacing:-.06em; }
.hero h1 span { color:var(--kfx-primary); }
.hero p { max-width:650px; font-size:1.1rem; color:#b9c9d9; }
.hero-actions { display:flex; flex-wrap:wrap; gap:12px; margin-top:30px; }
.trust-row { display:flex; flex-wrap:wrap; gap:18px; margin-top:28px; color:var(--kfx-muted); font-size:.88rem; }
.trust-row span::before { content:'✓'; color:var(--kfx-primary); margin-right:7px; font-weight:900; }
.market-card { position:relative; padding:22px; border:1px solid var(--kfx-border); border-radius:28px; background:linear-gradient(145deg,rgba(18,38,59,.95),rgba(8,20,34,.96)); box-shadow:var(--kfx-shadow); }
.chart { height:230px; border-radius:18px; overflow:hidden; background:linear-gradient(180deg,rgba(40,215,161,.11),transparent), repeating-linear-gradient(0deg,transparent 0 43px,rgba(255,255,255,.05) 44px), repeating-linear-gradient(90deg,transparent 0 55px,rgba(255,255,255,.05) 56px); }
.chart svg { width:100%; height:100%; }
.market-top, .market-bottom { display:flex; justify-content:space-between; gap:20px; align-items:center; }
.market-top { margin-bottom:16px; }
.market-bottom { margin-top:18px; }
.market-price { font-size:1.45rem; font-weight:850; }
.badge-up { padding:6px 10px; border-radius:999px; color:#78efc8; background:rgba(40,215,161,.12); font-weight:800; font-size:.8rem; }
.mini-stat strong { display:block; font-size:1rem; }
.mini-stat span { color:var(--kfx-muted); font-size:.76rem; }

.section { padding:76px 0; }
.section-soft { background:var(--kfx-bg-soft); }
.section-head { display:flex; justify-content:space-between; align-items:end; gap:30px; margin-bottom:30px; }
.section-title { margin:0; font-size:clamp(1.8rem,3vw,2.8rem); line-height:1.15; letter-spacing:-.04em; }
.section-desc { max-width:580px; margin:10px 0 0; color:var(--kfx-muted); }
.text-link { color:var(--kfx-primary); font-weight:800; white-space:nowrap; }

.topic-grid { display:grid; grid-template-columns:repeat(4,1fr); gap:18px; }
.topic-card { min-height:210px; padding:24px; border:1px solid var(--kfx-border); border-radius:var(--kfx-radius); background:rgba(255,255,255,.035); transition:.22s ease; }
.topic-card:hover { transform:translateY(-5px); border-color:rgba(40,215,161,.42); background:rgba(40,215,161,.06); }
.topic-icon { width:48px; height:48px; display:grid; place-items:center; border-radius:14px; background:rgba(40,215,161,.12); color:var(--kfx-primary); font-weight:900; }
.topic-card h3 { margin:20px 0 8px; }
.topic-card p { margin:0; color:var(--kfx-muted); font-size:.93rem; }

.post-grid { display:grid; grid-template-columns:repeat(3,1fr); gap:22px; }
.post-card { overflow:hidden; border:1px solid var(--kfx-border); border-radius:var(--kfx-radius); background:var(--kfx-card); }
.post-thumb { aspect-ratio:16/9; background:linear-gradient(135deg,#16314b,#0c1c2c); overflow:hidden; }
.post-thumb img { width:100%; height:100%; object-fit:cover; border-radius:0; transition:transform .35s ease; }
.post-card:hover img { transform:scale(1.045); }
.post-content { padding:22px; }
.post-meta { display:flex; flex-wrap:wrap; gap:10px; color:var(--kfx-muted); font-size:.78rem; }
.post-card h3 { margin:12px 0 10px; font-size:1.25rem; line-height:1.35; letter-spacing:-.02em; }
.post-card p { margin:0; color:var(--kfx-muted); font-size:.92rem; }
.category-pill { color:#8cf2d1; }

.feature-band { display:grid; grid-template-columns:1fr 1fr; gap:35px; align-items:center; padding:42px; border:1px solid var(--kfx-border); border-radius:28px; background:linear-gradient(120deg,rgba(40,215,161,.10),rgba(30,92,180,.08)); }
.check-list { list-style:none; padding:0; margin:24px 0 0; }
.check-list li { margin:12px 0; color:#c3d1df; }
.check-list li::before { content:'✓'; display:inline-grid; place-items:center; width:24px; height:24px; margin-right:10px; border-radius:50%; color:#042118; background:var(--kfx-primary); font-weight:900; font-size:.75rem; }

.newsletter { text-align:center; padding:50px 24px; border:1px solid rgba(40,215,161,.25); border-radius:28px; background:radial-gradient(circle at top,rgba(40,215,161,.15),transparent 48%),var(--kfx-card); }
.newsletter form { display:flex; max-width:600px; margin:26px auto 0; gap:10px; }
.newsletter input { flex:1; min-width:0; min-height:50px; border-radius:13px; border:1px solid var(--kfx-border); background:#091625; color:white; padding:0 16px; }

.content-wrap { display:grid; grid-template-columns:minmax(0,1fr) 320px; gap:38px; padding:58px 0; }
.article, .page-content { min-width:0; }
.article-header { margin-bottom:28px; }
.article-title { font-size:clamp(2rem,4.4vw,4rem); line-height:1.07; letter-spacing:-.055em; margin:12px 0 18px; }
.entry-content { font-size:1.04rem; color:#d6e1ec; }
.entry-content h2, .entry-content h3 { color:white; letter-spacing:-.03em; line-height:1.2; margin-top:2em; }
.entry-content a { color:var(--kfx-primary); text-decoration:underline; }
.entry-content blockquote { margin:28px 0; padding:18px 22px; border-left:4px solid var(--kfx-primary); background:rgba(40,215,161,.06); border-radius:0 14px 14px 0; }
.entry-content table { width:100%; border-collapse:collapse; }
.entry-content th,.entry-content td { padding:12px; border:1px solid var(--kfx-border); text-align:left; }
.sidebar-widget { padding:22px; margin-bottom:20px; border:1px solid var(--kfx-border); border-radius:18px; background:var(--kfx-card); }
.sidebar-widget h3 { margin-top:0; }
.sidebar-widget ul { list-style:none; padding:0; margin:0; }
.sidebar-widget li { padding:10px 0; border-bottom:1px solid var(--kfx-border); }
.sidebar-widget li:last-child { border-bottom:0; }

.archive-header { padding:64px 0 18px; }
.pagination { margin-top:32px; }
.pagination .nav-links { display:flex; flex-wrap:wrap; gap:8px; }
.page-numbers { display:grid; place-items:center; min-width:42px; height:42px; padding:0 12px; border:1px solid var(--kfx-border); border-radius:10px; }
.page-numbers.current { background:var(--kfx-primary); color:#042118; border-color:var(--kfx-primary); }

.site-footer { padding:60px 0 24px; border-top:1px solid var(--kfx-border); background:#050d17; }
.footer-grid { display:grid; grid-template-columns:1.4fr repeat(3,1fr); gap:36px; }
.footer-title { color:white; font-weight:800; margin-bottom:14px; }
.footer-links { list-style:none; padding:0; margin:0; }
.footer-links li { margin:9px 0; color:var(--kfx-muted); }
.footer-note { color:var(--kfx-muted); max-width:430px; }
.disclaimer { margin-top:36px; padding-top:22px; border-top:1px solid var(--kfx-border); color:#7f93a8; font-size:.8rem; }
.copyright { display:flex; justify-content:space-between; gap:16px; margin-top:20px; color:#6f8296; font-size:.82rem; }

@media (max-width: 980px) {
  .hero-grid,.feature-band,.content-wrap { grid-template-columns:1fr; }
  .market-card { max-width:660px; }
  .topic-grid { grid-template-columns:repeat(2,1fr); }
  .post-grid { grid-template-columns:repeat(2,1fr); }
  .footer-grid { grid-template-columns:repeat(2,1fr); }
  .header-cta { display:none; }
}
@media (max-width: 760px) {
  .header-inner { min-height:68px; }
  .menu-toggle { display:block; }
  .main-nav { display:none; position:absolute; left:18px; right:18px; top:68px; padding:14px; border:1px solid var(--kfx-border); border-radius:16px; background:#091625; }
  .main-nav.is-open { display:block; }
  .main-nav ul { flex-direction:column; align-items:stretch; gap:0; }
  .main-nav a { display:block; padding:12px; }
  .hero { padding-top:62px; }
  .hero-grid { gap:38px; }
  .hero h1 { font-size:2.65rem; }
  .topic-grid,.post-grid,.footer-grid { grid-template-columns:1fr; }
  .section-head,.copyright { align-items:flex-start; flex-direction:column; }
  .feature-band { padding:28px 22px; }
  .newsletter form { flex-direction:column; }
  .newsletter .button { width:100%; }
}
