/*
Theme Name: TradeWave Pro
Theme URI: https://tradewave.id
Author: TradeWave Engineering
Author URI: https://tradewave.id
Description: Tema portal finansial, sinyal trading, dan edukasi pasar profesional ultra-cepat untuk TradeWave.
Version: 1.3.0
Tested up to: 6.7
Requires at least: 6.0
Requires PHP: 8.0
License: GNU General Public License v2 or later
Text Domain: tradewave
*/

:root {
  --tw-bg: #070b13;
  --tw-bg-light: #f8fafc;
  --tw-surface: #0f172a;
  --tw-surface-card: #131c31;
  --tw-surface-hover: #1e293b;
  --tw-border: #1e293b;
  --tw-border-accent: #334155;
  --tw-border-light: #e2e8f0;
  --tw-primary: #2563eb;
  --tw-primary-hover: #1d4ed8;
  --tw-cyan: #38bdf8;
  --tw-success: #10b981;
  --tw-danger: #ef4444;
  --tw-warning: #f59e0b;
  --tw-text-main: #0f172a;
  --tw-text-light: #f8fafc;
  --tw-text-muted: #64748b;
  --tw-font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --tw-radius: 12px;
  --tw-radius-sm: 6px;
  --tw-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.08), 0 2px 4px -2px rgba(0, 0, 0, 0.06);
  --tw-shadow-lg: 0 14px 25px -4px rgba(0, 0, 0, 0.15), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--tw-font);
  background-color: var(--tw-bg-light);
  color: var(--tw-text-main);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--tw-primary);
  text-decoration: none;
  transition: all 0.2s ease;
}
a:hover {
  color: var(--tw-primary-hover);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Top Bar */
.topbar {
  background: #090d16;
  color: #94a3b8;
  font-size: 0.825rem;
  padding: 8px 0;
  border-bottom: 1px solid #1e293b;
}
.topbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}
.topbar-left {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #cbd5e1;
  font-weight: 500;
}
.topbar-right a {
  color: #38bdf8;
  font-weight: 600;
}
.topbar-right a:hover {
  text-decoration: underline;
}

/* Header (Streamlined, No Clutter Next to Logo) */
.site-header {
  background: #070b13;
  border-bottom: 1px solid #1e293b;
  position: sticky;
  top: 0;
  z-index: 100;
}
.header-wrapper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 74px;
}
.site-branding {
  display: flex;
  align-items: center;
  gap: 12px;
}
.site-logo {
  font-size: 1.55rem;
  font-weight: 800;
  color: #ffffff;
  letter-spacing: -0.5px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.site-logo span {
  color: #38bdf8;
}
.site-logo-badge {
  background: rgba(56, 189, 248, 0.15);
  color: #38bdf8;
  font-size: 0.68rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 4px;
  border: 1px solid rgba(56, 189, 248, 0.25);
  letter-spacing: 0.5px;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}
.header-contact-link {
  color: #cbd5e1;
  font-size: 0.9rem;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.header-contact-link:hover {
  color: #38bdf8;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 0.9rem;
  padding: 10px 22px;
  border-radius: var(--tw-radius-sm);
  cursor: pointer;
  transition: all 0.2s ease;
  border: 1px solid transparent;
  gap: 8px;
}
.btn-primary {
  background: var(--tw-primary);
  color: #ffffff !important;
}
.btn-primary:hover {
  background: var(--tw-primary-hover);
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.4);
}
.btn-outline {
  border-color: #334155;
  color: #f1f5f9 !important;
  background: rgba(255, 255, 255, 0.04);
}
.btn-outline:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: #64748b;
}
.btn-success {
  background: var(--tw-success);
  color: #ffffff !important;
}
.btn-success:hover {
  background: #059669;
}
.btn-sm {
  padding: 8px 16px;
  font-size: 0.825rem;
}

/* Hero Section */
.hero {
  background: radial-gradient(circle at 80% 20%, #1e293b 0%, #070b13 70%);
  color: #ffffff;
  padding: 85px 0 70px;
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid #1e293b;
}
.hero-content {
  max-width: 820px;
}
.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(56, 189, 248, 0.12);
  color: #38bdf8;
  border: 1px solid rgba(56, 189, 248, 0.3);
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 0.825rem;
  font-weight: 600;
  margin-bottom: 22px;
}
.hero-title {
  font-size: 3rem;
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -1px;
  margin-bottom: 20px;
}
.hero-title span {
  background: linear-gradient(135deg, #38bdf8, #818cf8);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.hero-desc {
  font-size: 1.15rem;
  color: #94a3b8;
  margin-bottom: 34px;
  max-width: 700px;
  line-height: 1.7;
}
.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 38px;
}
.hero-stats {
  display: flex;
  gap: 40px;
  padding-top: 28px;
  border-top: 1px solid #1e293b;
}
.stat-item h4 {
  font-size: 1.6rem;
  font-weight: 800;
  color: #ffffff;
}
.stat-item p {
  font-size: 0.85rem;
  color: #64748b;
}

/* Sections */
.section {
  padding: 70px 0;
}
.section-dark {
  background: #090d16;
  color: #ffffff;
}
.section-header {
  margin-bottom: 42px;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  flex-wrap: wrap;
  gap: 18px;
}
.section-badge {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: #38bdf8;
  margin-bottom: 8px;
}
.section-title-wrap h2 {
  font-size: 2.1rem;
  font-weight: 800;
  letter-spacing: -0.5px;
  color: inherit;
  line-height: 1.25;
}
.section-title-wrap p {
  color: var(--tw-text-muted);
  font-size: 1rem;
  margin-top: 6px;
  max-width: 680px;
}

/* =========================================================
   PROFESSIONAL EDUCATION SECTION (INSTITUTIONAL ACADEMY)
   ========================================================= */
.edu-trust-bar {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
  margin-bottom: 36px;
}
.edu-trust-item {
  background: #ffffff;
  border: 1px solid var(--tw-border-light);
  border-radius: var(--tw-radius-sm);
  padding: 16px 20px;
  display: flex;
  align-items: center;
  gap: 14px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}
.edu-trust-icon {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  background: #eff6ff;
  color: var(--tw-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  flex-shrink: 0;
}
.edu-trust-text h5 {
  font-size: 0.9rem;
  font-weight: 700;
  color: #0f172a;
}
.edu-trust-text p {
  font-size: 0.78rem;
  color: var(--tw-text-muted);
}

.edu-tracks-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(330px, 1fr));
  gap: 28px;
}
.edu-track-card {
  background: #ffffff;
  border: 1px solid var(--tw-border-light);
  border-radius: var(--tw-radius);
  overflow: hidden;
  box-shadow: var(--tw-shadow);
  display: flex;
  flex-direction: column;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
  position: relative;
}
.edu-track-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--tw-shadow-lg);
  border-color: #38bdf8;
}
.edu-track-card.featured {
  border: 2px solid #2563eb;
}
.edu-card-featured-ribbon {
  background: #2563eb;
  color: #ffffff;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  text-align: center;
  padding: 5px 0;
}
.edu-track-header {
  padding: 26px 26px 18px;
  border-bottom: 1px solid #f1f5f9;
}
.edu-track-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}
.edu-track-code {
  font-size: 0.75rem;
  font-weight: 800;
  color: #2563eb;
  background: #eff6ff;
  padding: 3px 10px;
  border-radius: 4px;
}
.edu-track-tier {
  font-size: 0.75rem;
  font-weight: 600;
  color: #64748b;
  background: #f8fafc;
  padding: 3px 8px;
  border-radius: 4px;
  border: 1px solid #e2e8f0;
}
.edu-track-header h3 {
  font-size: 1.35rem;
  font-weight: 800;
  color: #0f172a;
  line-height: 1.3;
  margin-bottom: 8px;
}
.edu-track-header p {
  font-size: 0.875rem;
  color: #64748b;
  line-height: 1.55;
}
.edu-track-body {
  padding: 24px 26px;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.edu-curriculum-label {
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  color: #475569;
  margin-bottom: 12px;
}
.edu-curriculum-list {
  list-style: none;
  margin-bottom: 24px;
  flex: 1;
}
.edu-curriculum-list li {
  font-size: 0.85rem;
  color: #334155;
  margin-bottom: 10px;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  line-height: 1.5;
}
.edu-curriculum-list li svg, .edu-curriculum-list li span.check {
  color: #10b981;
  font-weight: bold;
  flex-shrink: 0;
  margin-top: 1px;
}
.edu-deliverables-box {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: var(--tw-radius-sm);
  padding: 12px 16px;
  margin-bottom: 22px;
  font-size: 0.8rem;
  color: #475569;
}
.edu-deliverables-box strong {
  color: #0f172a;
  display: block;
  margin-bottom: 3px;
}
.edu-track-footer {
  padding: 0 26px 26px;
}
.edu-track-footer .btn {
  width: 100%;
}

/* Institutional Comparison Banner */
.edu-comparison-box {
  margin-top: 48px;
  background: linear-gradient(135deg, #090d16 0%, #131c31 100%);
  border: 1px solid #1e293b;
  border-radius: var(--tw-radius);
  padding: 38px;
  color: #ffffff;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 24px;
}
.edu-comparison-content h4 {
  font-size: 1.5rem;
  font-weight: 800;
  margin-bottom: 8px;
  letter-spacing: -0.3px;
}
.edu-comparison-content p {
  color: #94a3b8;
  font-size: 0.95rem;
  max-width: 660px;
  line-height: 1.6;
}

/* Signal Cards Grid */
.signals-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 22px;
}
.signal-card {
  background: #ffffff;
  border-radius: var(--tw-radius);
  border: 1px solid var(--tw-border-light);
  overflow: hidden;
  box-shadow: var(--tw-shadow);
  transition: transform 0.2s, box-shadow 0.2s;
  display: flex;
  flex-direction: column;
}
.signal-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--tw-shadow-lg);
  border-color: #cbd5e1;
}
.signal-thumb {
  position: relative;
  height: 180px;
  background: #0f172a;
  overflow: hidden;
}
.signal-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s;
}
.signal-card:hover .signal-thumb img {
  transform: scale(1.04);
}
.signal-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background: rgba(15, 23, 42, 0.85);
  backdrop-filter: blur(4px);
  color: #ffffff;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 4px;
  border: 1px solid rgba(255, 255, 255, 0.15);
}
.signal-body {
  padding: 18px;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.signal-meta {
  display: flex;
  justify-content: space-between;
  font-size: 0.775rem;
  color: var(--tw-text-muted);
  margin-bottom: 8px;
}
.signal-title {
  font-size: 1.1rem;
  font-weight: 700;
  line-height: 1.4;
  margin-bottom: 10px;
}
.signal-title a {
  color: var(--tw-text-main);
}
.signal-title a:hover {
  color: var(--tw-primary);
}
.signal-excerpt {
  font-size: 0.85rem;
  color: var(--tw-text-muted);
  margin-bottom: 16px;
  flex: 1;
}
.signal-footer {
  border-top: 1px solid var(--tw-border-light);
  padding-top: 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.signal-link {
  font-weight: 600;
  font-size: 0.85rem;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

/* 3 Pillars */
.pillars-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 24px;
}
.pillar-card {
  background: #131c31;
  border: 1px solid #1e293b;
  border-radius: var(--tw-radius);
  padding: 32px 26px;
  transition: border-color 0.2s;
}
.pillar-card:hover {
  border-color: #38bdf8;
}
.pillar-icon {
  width: 48px;
  height: 48px;
  border-radius: 8px;
  background: rgba(56, 189, 248, 0.15);
  color: #38bdf8;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 18px;
}
.pillar-card h3 {
  font-size: 1.25rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 10px;
}
.pillar-card p {
  color: #94a3b8;
  font-size: 0.9rem;
  margin-bottom: 18px;
}
.pillar-card ul {
  list-style: none;
  margin-bottom: 20px;
}
.pillar-card li {
  font-size: 0.85rem;
  color: #cbd5e1;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.pillar-card li::before {
  content: "✓";
  color: var(--tw-success);
  font-weight: bold;
}

/* Lead Magnet Banner */
.lead-banner {
  background: linear-gradient(135deg, #131c31 0%, #070b13 100%);
  border: 1px solid #1e293b;
  border-radius: var(--tw-radius);
  padding: 42px;
  color: #ffffff;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 24px;
}
.lead-banner-text h3 {
  font-size: 1.65rem;
  font-weight: 800;
  margin-bottom: 8px;
}
.lead-banner-text p {
  color: #94a3b8;
  font-size: 0.95rem;
  max-width: 600px;
}

/* Risk Disclaimer */
.risk-disclaimer {
  background: #070b13;
  border-top: 1px solid #1e293b;
  padding: 28px 0;
  font-size: 0.775rem;
  color: #64748b;
  line-height: 1.6;
}
.risk-disclaimer strong {
  color: #94a3b8;
}

/* Footer */
.site-footer {
  background: #05080e;
  color: #94a3b8;
  border-top: 1px solid #1e293b;
  padding: 45px 0 25px;
  font-size: 0.875rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 35px;
}
.footer-col h4 {
  color: #ffffff;
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 14px;
}
.footer-col ul {
  list-style: none;
}
.footer-col li {
  margin-bottom: 8px;
}
.footer-col a {
  color: #94a3b8;
}
.footer-col a:hover {
  color: #38bdf8;
}
.footer-bottom {
  border-top: 1px solid #1e293b;
  padding-top: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 0.8rem;
}

/* Single Post Layout */
.article-layout {
  padding: 40px 0 60px;
}
.article-container {
  max-width: 820px;
  margin: 0 auto;
}
.article-header {
  margin-bottom: 24px;
}
.article-header h1 {
  font-size: 2.25rem;
  font-weight: 800;
  line-height: 1.25;
  margin: 12px 0;
  color: #0f172a;
}
.article-meta {
  display: flex;
  gap: 16px;
  font-size: 0.85rem;
  color: var(--tw-text-muted);
}
.article-content {
  font-size: 1.05rem;
  line-height: 1.8;
  color: #334155;
}
.article-content h2, .article-content h3 {
  color: #0f172a;
  margin: 30px 0 14px;
}
.article-content p {
  margin-bottom: 20px;
}
.article-content img {
  border-radius: var(--tw-radius);
  margin: 25px 0;
  box-shadow: var(--tw-shadow);
}

.signal-specs-table {
  width: 100%;
  border-collapse: collapse;
  margin: 25px 0;
  background: #ffffff;
  border-radius: var(--tw-radius);
  overflow: hidden;
  box-shadow: var(--tw-shadow);
  border: 1px solid var(--tw-border-light);
}
.signal-specs-table th, .signal-specs-table td {
  padding: 12px 18px;
  text-align: left;
  border-bottom: 1px solid var(--tw-border-light);
  font-size: 0.95rem;
}
.signal-specs-table th {
  background: #f1f5f9;
  font-weight: 700;
  color: #0f172a;
  width: 35%;
}

@media (max-width: 868px) {
  .hero-title {
    font-size: 2.1rem;
  }
  .header-actions {
    gap: 8px;
  }
  .header-contact-link {
    display: none;
  }
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 25px;
  }
}