
:root {
  --navy: #0C1445;
  --navy-light: #101850;
  --amber: #E8A020;
  --amber-hover: #d09018;
  --amber-light: #f0c050;
  --blue: #7ec8e3;
  --orange: #e87820;
  --green: #40c080;
  --red: #e05050;
  --bg: #FDF6E3;
  --bg-alt: #EDE4C8;
  --text: #1a1a2e;
  --text2: #5a5f7a;
  --text3: #8a8fa8;
  --radius: 12px;
  --sidebar-w: 240px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: 'DM Sans', sans-serif; background: var(--bg); color: var(--text); line-height: 1.6; }

/* ── Sidebar ── */
.sidebar {
  position: fixed; top: 0; left: 0; bottom: 0;
  width: var(--sidebar-w); background: var(--navy);
  display: flex; flex-direction: column;
  z-index: 100; padding: 28px 20px 24px;
  border-right: 1px solid rgba(126,200,227,0.12);
}
.sidebar-logo { display: flex; flex-direction: column; align-items: center; margin-bottom: 8px; text-decoration: none; }
.sidebar-logo img { height: 100px; width: auto; display: block; }
.sidebar-brand {
  color: var(--amber-light); font-size: 16px; font-weight: 700;
  text-align: center; margin-top: 10px; letter-spacing: 0.3px;
}

.sidebar-nav { flex: 1; display: flex; flex-direction: column; gap: 4px; margin-top: 28px; }
.sidebar-nav a {
  display: flex; align-items: center; gap: 12px;
  color: rgba(255,255,255,0.7); text-decoration: none;
  font-size: 14px; font-weight: 500; padding: 10px 14px;
  border-radius: 8px; transition: all 0.2s;
}
.sidebar-nav a:hover { color: #fff; background: rgba(255,255,255,0.08); }
.sidebar-nav a.active { color: var(--amber-light); background: rgba(232,160,32,0.12); }
.sidebar-nav a .nav-icon {
  width: 20px; height: 20px; display: flex; align-items: center; justify-content: center;
  font-size: 15px; opacity: 0.8;
}

.sidebar-bottom { margin-top: auto; }
.sidebar-cta {
  display: block; width: 100%; padding: 12px 16px;
  background: var(--amber); color: #fff;
  font-size: 14px; font-weight: 700; text-align: center;
  border-radius: 8px; text-decoration: none; border: none;
  cursor: pointer; font-family: inherit; transition: all 0.2s;
}
.sidebar-cta:hover { background: var(--amber-hover); transform: translateY(-1px); }

/* ── Mobile top bar ── */
.mobile-topbar {
  display: none; position: fixed; top: 0; left: 0; right: 0;
  height: 56px; background: var(--navy); z-index: 200;
  padding: 0 16px; align-items: center; justify-content: space-between;
  border-bottom: 1px solid rgba(126,200,227,0.12);
}
.mobile-topbar-logo { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.mobile-topbar-logo img { height: 36px; width: auto; display: block; }
.mobile-topbar-logo span { color: var(--amber-light); font-size: 16px; font-weight: 700; }
.hamburger {
  background: none; border: none; cursor: pointer; padding: 8px;
  display: flex; flex-direction: column; gap: 5px;
}
.hamburger span {
  display: block; width: 22px; height: 2px; background: #fff;
  border-radius: 2px; transition: all 0.3s;
}
.hamburger.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }
.mobile-nav-overlay {
  display: none; position: fixed; top: 56px; left: 0; right: 0; bottom: 0;
  background: var(--navy); z-index: 199; padding: 20px 24px;
  flex-direction: column; gap: 6px;
}
.mobile-nav-overlay.active { display: flex; }
.mobile-nav-overlay a {
  color: rgba(255,255,255,0.8); text-decoration: none;
  font-size: 17px; font-weight: 600; padding: 14px 0;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.mobile-nav-overlay a:hover { color: var(--amber-light); }
.mobile-nav-overlay a.active { color: var(--amber-light); }
.mobile-nav-overlay .mobile-cta {
  margin-top: 16px; display: block; padding: 14px;
  background: var(--amber); color: #fff; font-weight: 700;
  text-align: center; border-radius: 10px; font-size: 16px;
}

/* ── Main content area ── */
.main-content { margin-left: var(--sidebar-w); min-height: 100vh; }

/* ── Blog article ── */
.blog-article {
  max-width: 820px; margin: 0 auto; padding: 48px 32px 60px;
  position: relative;
}
.back-link {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 14px; font-weight: 600; color: var(--amber);
  text-decoration: none; margin-bottom: 32px; transition: color 0.2s;
}
.back-link:hover { color: var(--amber-hover); }

.post-meta {
  font-size: 13px; color: var(--text3); margin-bottom: 8px;
  display: flex; align-items: center; gap: 12px;
}
.post-meta .tag { display: inline-block; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.8px; padding: 3px 10px; border-radius: 99px; }
.post-meta .tag-free { background: rgba(64,192,128,0.12); color: var(--green); }
.post-meta .tag-starter { background: rgba(232,160,32,0.12); color: var(--amber); }
.post-meta .tag-plus { background: rgba(126,200,227,0.15); color: #5ba8c8; }
.post-meta .tag-pro { background: rgba(64,192,128,0.12); color: var(--green); }
.post-meta .tag-all { background: rgba(12,20,69,0.08); color: var(--navy); }

/* Question header */
.question-header {
  display: flex; align-items: center; gap: 24px;
  margin-bottom: 40px;
}
.question-header img {
  width: 140px; height: 140px; object-fit: contain; flex-shrink: 0;
}
.question-header h1 {
  font-size: 32px; font-weight: 800; color: var(--navy);
  line-height: 1.25; letter-spacing: -0.5px;
}

/* Speech bubble sections */
.ambit-section {
  display: flex; align-items: flex-start; gap: 24px;
  margin-bottom: 32px;
}
.ambit-section img {
  width: 120px; height: 120px; object-fit: contain; flex-shrink: 0;
  margin-top: 4px;
}
.speech-bubble {
  background: #F5ECD0; border: 1px solid #E8DBB8;
  border-radius: 16px; padding: 24px;
  position: relative; flex: 1;
}
.speech-bubble::before {
  content: ''; position: absolute; left: -10px; top: 24px;
  width: 0; height: 0;
  border-top: 8px solid transparent;
  border-bottom: 8px solid transparent;
  border-right: 10px solid #E8DBB8;
}
.speech-bubble::after {
  content: ''; position: absolute; left: -8px; top: 25px;
  width: 0; height: 0;
  border-top: 7px solid transparent;
  border-bottom: 7px solid transparent;
  border-right: 9px solid #F5ECD0;
}
.speech-bubble h2 {
  font-size: 20px; font-weight: 700; color: var(--navy);
  margin-bottom: 12px;
}
.speech-bubble p {
  font-size: 15px; color: var(--text2); line-height: 1.7;
  margin-bottom: 12px;
}
.speech-bubble p:last-child { margin-bottom: 0; }

/* Pro tip box */
.pro-tip {
  background: #FFF8E8; border: 1px solid #E8DBB8;
  border-left: 4px solid var(--amber);
  border-radius: 12px; padding: 24px;
  flex: 1;
}
.pro-tip h2 {
  font-size: 18px; font-weight: 700; color: var(--amber);
  margin-bottom: 10px; display: flex; align-items: center; gap: 8px;
}
.pro-tip p {
  font-size: 15px; color: var(--text2); line-height: 1.7;
  margin-bottom: 12px;
}
.pro-tip p:last-child { margin-bottom: 0; }

/* CTA section */
.cta-section {
  display: flex; align-items: center; gap: 24px;
  margin: 40px 0 48px; padding: 28px;
  background: linear-gradient(135deg, rgba(12,20,69,0.04) 0%, rgba(232,160,32,0.06) 100%);
  border-radius: 16px; border: 1px solid #E8DBB8;
}
.cta-section img {
  width: 140px; height: 140px; object-fit: contain; flex-shrink: 0;
}
.cta-content { flex: 1; }
.cta-content p {
  font-size: 17px; font-weight: 600; color: var(--navy);
  margin-bottom: 16px; line-height: 1.5;
}
.cta-btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 28px; background: var(--amber); color: #fff;
  font-size: 15px; font-weight: 700; border-radius: 10px;
  text-decoration: none; transition: all 0.2s;
}
.cta-btn:hover { background: var(--amber-hover); transform: translateY(-1px); box-shadow: 0 6px 20px rgba(232,160,32,0.3); }

/* Post navigation */
.post-nav {
  display: flex; justify-content: space-between; align-items: center;
  padding: 24px 0; border-top: 1px solid #E8DBB8; margin-bottom: 48px;
  gap: 16px;
}
.post-nav a {
  font-size: 14px; font-weight: 600; color: var(--amber);
  text-decoration: none; transition: color 0.2s; max-width: 45%;
}
.post-nav a:hover { color: var(--amber-hover); }
.post-nav .prev { text-align: left; }
.post-nav .next { text-align: right; margin-left: auto; }

/* Suggestion box */
.suggestion-box {
  max-width: 100%; margin: 0; padding: 40px 32px;
  background: #F5ECD0; border: 1px solid #E8DBB8;
  border-radius: 16px; text-align: left;
}
.suggestion-box-inner { display: flex; align-items: flex-start; gap: 24px; }
.suggestion-box img {
  width: 220px; height: 220px; object-fit: contain;
  flex-shrink: 0;
}
.suggestion-box-content { flex: 1; }
.suggestion-box h2 { font-size: 22px; font-weight: 700; color: var(--navy); }
.suggestion-box p { font-size: 14px; color: var(--text2); }
.suggestion-form { width: 100%; display: flex; flex-direction: column; gap: 12px; text-align: left; }
.suggestion-form label { font-size: 13px; font-weight: 600; color: var(--text2); }
.suggestion-form input,
.suggestion-form textarea {
  width: 100%; padding: 12px 16px; border-radius: 8px;
  border: 2px solid #E8DBB8; background: var(--bg); color: var(--text);
  font-size: 14px; font-family: inherit; outline: none; transition: border-color 0.2s;
}
.suggestion-form input:focus,
.suggestion-form textarea:focus { border-color: var(--amber); }
.suggestion-form textarea { resize: vertical; min-height: 100px; }
.suggestion-form button {
  padding: 12px 28px; border-radius: 8px; border: none;
  background: var(--amber); color: #fff; font-weight: 700;
  font-size: 15px; cursor: pointer; font-family: inherit;
  transition: all 0.2s; align-self: center;
}
.suggestion-form button:hover { background: var(--amber-hover); }
.suggestion-thanks { display: none; color: var(--green); font-weight: 600; font-size: 15px; margin-top: 8px; }

/* Footer */
.footer { border-top: 1px solid #E8DBB8; padding: 40px 0; background: #F5ECD0; margin-top: 60px; }
.footer-inner {
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 16px; max-width: 1060px; margin: 0 auto; padding: 0 32px;
}
.footer-logo { display: flex; align-items: center; gap: 8px; font-size: 16px; font-weight: 700; color: var(--navy); }
.footer-logo span { color: var(--text3); font-weight: 400; font-size: 12px; }
.footer-links { display: flex; gap: 24px; flex-wrap: wrap; }
.footer-links a { color: var(--text2); text-decoration: none; font-size: 13px; transition: color 0.2s; }
.footer-links a:hover { color: var(--navy); }
.footer-copy { color: var(--text3); font-size: 12px; }

/* ── Responsive ── */
@media (max-width: 768px) {
  .sidebar { display: none; }
  .mobile-topbar { display: flex; }
  .main-content { margin-left: 0; padding-top: 56px; }
  .blog-article { padding: 32px 20px 40px; }
  .question-header { flex-direction: column; align-items: center; text-align: center; }
  .question-header img { width: 100px; height: 100px; }
  .question-header h1 { font-size: 26px; }
  .ambit-section { flex-direction: column; align-items: center; }
  .ambit-section > img[src*="pointing"] { display: none; }
  .ambit-section .speech-bubble, .ambit-section .pro-tip { width: 100%; }
  .speech-bubble::before, .speech-bubble::after { display: none; }
  .cta-section { flex-direction: column; align-items: center; text-align: center; }
  .cta-section img { width: 80px; height: 80px; }
  .suggestion-box { padding: 28px 20px; }
  .suggestion-box-inner { flex-direction: column; align-items: center; text-align: center; }
  .suggestion-box img { width: 100px; height: 100px; }
  .post-nav { flex-direction: column; gap: 12px; }
  .post-nav a { max-width: 100%; text-align: center; }
  .footer-inner { flex-direction: column; text-align: center; }
}
