/* ===== CMN Academy — Design System ===== */
:root {
  --brand: #0F4C81;
  --brand-dark: #0A3458;
  --accent: #F5A623;
  --accent-soft: #FCE9C7;
  --ink: #0F1F33;
  --ink-soft: #4A5A6E;
  --bg: #FBFBFD;
  --surface: #FFFFFF;
  --line: #E6E8EE;
  --green: #1F9D55;
  --shadow-sm: 0 1px 2px rgba(15, 31, 51, 0.06), 0 1px 3px rgba(15, 31, 51, 0.04);
  --shadow-md: 0 4px 6px rgba(15, 31, 51, 0.07), 0 2px 4px rgba(15, 31, 51, 0.06);
  --shadow-lg: 0 10px 25px rgba(15, 31, 51, 0.1), 0 4px 10px rgba(15, 31, 51, 0.05);
  --radius: 12px;
  --radius-lg: 18px;
  --container: 1180px;
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  --font-display: 'Inter', sans-serif;
}

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

html { scroll-behavior: smooth; }
body {
  font-family: var(--font-sans);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  font-feature-settings: 'cv11', 'ss01';
}

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

a { color: var(--brand); text-decoration: none; }
a:hover { color: var(--brand-dark); text-decoration: underline; }

.container { max-width: var(--container); margin: 0 auto; padding: 0 24px; }

h1, h2, h3, h4, h5 {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.2;
  color: var(--ink);
}
h1 { font-size: clamp(2rem, 4vw, 3.25rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.4rem); margin-bottom: 1rem; }
h3 { font-size: 1.4rem; margin-bottom: 0.6rem; }
h4 { font-size: 1.1rem; margin-bottom: 0.5rem; }

p { margin-bottom: 1rem; color: var(--ink-soft); }

/* ===== Header ===== */
.site-header {
  background: var(--surface);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: saturate(180%) blur(8px);
  background: rgba(255,255,255,0.92);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 16px;
  padding-bottom: 16px;
}
.logo {
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  color: var(--ink);
  font-weight: 800;
}
.logo:hover { text-decoration: none; }
.logo-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  background: linear-gradient(135deg, var(--brand) 0%, var(--brand-dark) 100%);
  color: white;
  border-radius: 9px;
  font-weight: 800;
  font-size: 0.85rem;
  letter-spacing: 0.02em;
}
.logo-text {
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}
.site-nav {
  display: flex;
  align-items: center;
  gap: 28px;
}
.site-nav a {
  color: var(--ink);
  font-weight: 500;
  font-size: 0.95rem;
  text-decoration: none;
}
.site-nav a:hover { color: var(--brand); }
.site-nav .btn-nav {
  background: var(--ink);
  color: white;
  padding: 9px 18px;
  border-radius: 8px;
}
.site-nav .btn-nav:hover { background: var(--brand); color: white; }
.menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
}

/* ===== Hero ===== */
.hero {
  padding: 80px 0 60px;
  background: linear-gradient(180deg, #F4F7FB 0%, var(--bg) 100%);
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  top: -200px;
  right: -200px;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(15, 76, 129, 0.08) 0%, transparent 70%);
  pointer-events: none;
}
.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--accent-soft);
  color: var(--brand-dark);
  padding: 6px 14px;
  border-radius: 100px;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 20px;
}
.hero h1 {
  margin-bottom: 20px;
}
.hero h1 span {
  color: var(--brand);
  background: linear-gradient(135deg, var(--brand) 0%, #1976D2 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.hero-lead {
  font-size: 1.15rem;
  color: var(--ink-soft);
  max-width: 640px;
  margin-bottom: 32px;
}
.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 0.98rem;
  text-decoration: none;
  transition: all 0.2s;
  border: none;
  cursor: pointer;
}
.btn-primary {
  background: var(--brand);
  color: white;
  box-shadow: var(--shadow-md);
}
.btn-primary:hover {
  background: var(--brand-dark);
  color: white;
  text-decoration: none;
  transform: translateY(-1px);
  box-shadow: var(--shadow-lg);
}
.btn-secondary {
  background: var(--surface);
  color: var(--ink);
  border: 1.5px solid var(--line);
}
.btn-secondary:hover {
  border-color: var(--brand);
  color: var(--brand);
  text-decoration: none;
}

/* ===== Trust Strip ===== */
.trust-strip {
  padding: 30px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--surface);
}
.trust-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  flex-wrap: wrap;
}
.trust-label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--ink-soft);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.trust-items {
  display: flex;
  align-items: center;
  gap: 30px;
  flex-wrap: wrap;
}
.trust-item {
  font-weight: 600;
  color: var(--ink);
}

/* ===== Sections ===== */
section { padding: 70px 0; }
.section-eyebrow {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--brand);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 12px;
}
.section-head {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 50px;
}
.section-head p {
  font-size: 1.1rem;
}

/* ===== Workshop Cards ===== */
.workshop-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 24px;
}
.workshop-card {
  background: var(--surface);
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--line);
  transition: all 0.25s;
  position: relative;
  display: flex;
  flex-direction: column;
}
.workshop-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
  border-color: var(--brand);
}
.workshop-card.featured {
  border: 2px solid var(--brand);
  background: linear-gradient(180deg, #F4F7FB 0%, var(--surface) 100%);
}
.workshop-card.featured::before {
  content: 'MOST POPULAR';
  position: absolute;
  top: -12px;
  left: 32px;
  background: var(--brand);
  color: white;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  padding: 5px 12px;
  border-radius: 100px;
}
.workshop-icon {
  width: 48px;
  height: 48px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--brand) 0%, var(--brand-dark) 100%);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  margin-bottom: 18px;
}
.workshop-card h3 { margin-bottom: 8px; }
.workshop-meta {
  display: flex;
  gap: 14px;
  font-size: 0.85rem;
  color: var(--ink-soft);
  margin-bottom: 16px;
  flex-wrap: wrap;
}
.workshop-meta span { display: inline-flex; align-items: center; gap: 4px; }
.workshop-card p { font-size: 0.95rem; }
.workshop-card ul {
  list-style: none;
  padding: 0;
  margin: 16px 0 24px;
}
.workshop-card li {
  padding: 6px 0;
  font-size: 0.92rem;
  color: var(--ink-soft);
  display: flex;
  align-items: flex-start;
  gap: 8px;
}
.workshop-card li::before {
  content: '✓';
  color: var(--green);
  font-weight: 700;
  flex-shrink: 0;
}
.workshop-price {
  display: flex;
  align-items: baseline;
  gap: 6px;
  margin-bottom: 18px;
  margin-top: auto;
}
.price-value {
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--ink);
  letter-spacing: -0.02em;
}
.price-unit { color: var(--ink-soft); font-size: 0.9rem; }
.price-claimable {
  display: inline-block;
  background: rgba(31, 157, 85, 0.12);
  color: var(--green);
  font-size: 0.78rem;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 100px;
  margin-left: 8px;
}

/* ===== Why Section ===== */
.why-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
}
.why-card {
  text-align: center;
  padding: 24px;
}
.why-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 16px;
  border-radius: 16px;
  background: var(--accent-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
}

/* ===== CTA Banner ===== */
.cta-banner {
  background: linear-gradient(135deg, var(--brand) 0%, var(--brand-dark) 100%);
  color: white;
  padding: 70px 0;
  position: relative;
  overflow: hidden;
}
.cta-banner::before {
  content: '';
  position: absolute;
  top: -100px;
  right: -100px;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(245, 166, 35, 0.15) 0%, transparent 70%);
}
.cta-inner {
  text-align: center;
  position: relative;
}
.cta-banner h2, .cta-banner p { color: white; }
.cta-banner h2 { margin-bottom: 16px; }
.cta-banner p { opacity: 0.92; max-width: 600px; margin: 0 auto 28px; font-size: 1.1rem; }
.cta-banner .btn-primary {
  background: var(--accent);
  color: var(--ink);
}
.cta-banner .btn-primary:hover {
  background: white;
  color: var(--brand);
}

/* ===== Blog ===== */
.blog-hero {
  padding: 60px 0 30px;
  background: linear-gradient(180deg, #F4F7FB 0%, var(--bg) 100%);
}
.blog-hero h1 { margin-bottom: 12px; }
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 28px;
}
.blog-card {
  background: var(--surface);
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  overflow: hidden;
  transition: all 0.25s;
  display: flex;
  flex-direction: column;
}
.blog-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
  text-decoration: none;
}
.blog-card-image {
  aspect-ratio: 16/9;
  background: linear-gradient(135deg, var(--brand) 0%, var(--brand-dark) 100%);
  position: relative;
  overflow: hidden;
}
.blog-card-image::after {
  content: attr(data-emoji);
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 5rem;
  opacity: 0.85;
}
.blog-card-body {
  padding: 24px;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.blog-card-tag {
  display: inline-block;
  background: var(--accent-soft);
  color: var(--brand-dark);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  padding: 3px 10px;
  border-radius: 100px;
  margin-bottom: 12px;
  text-transform: uppercase;
  width: fit-content;
}
.blog-card h3 {
  font-size: 1.2rem;
  margin-bottom: 10px;
  color: var(--ink);
}
.blog-card p {
  flex: 1;
  font-size: 0.95rem;
  color: var(--ink-soft);
  margin-bottom: 14px;
}
.blog-card-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.82rem;
  color: var(--ink-soft);
  padding-top: 12px;
  border-top: 1px solid var(--line);
}

/* ===== Single Post ===== */
.post-hero {
  padding: 60px 0 30px;
  background: linear-gradient(180deg, #F4F7FB 0%, var(--bg) 100%);
}
.post-meta {
  display: flex;
  gap: 14px;
  font-size: 0.9rem;
  color: var(--ink-soft);
  margin-bottom: 16px;
  flex-wrap: wrap;
}
.post-tag {
  background: var(--accent-soft);
  color: var(--brand-dark);
  font-weight: 600;
  padding: 3px 12px;
  border-radius: 100px;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.post-content {
  max-width: 760px;
  margin: 40px auto;
  padding: 0 24px;
}
.post-content h1 { margin-bottom: 30px; }
.post-content h2 { margin-top: 50px; margin-bottom: 18px; }
.post-content h3 { margin-top: 32px; margin-bottom: 12px; }
.post-content p { margin-bottom: 1.4em; font-size: 1.08rem; line-height: 1.75; color: var(--ink); }
.post-content ul, .post-content ol { padding-left: 1.5em; margin-bottom: 1.4em; }
.post-content li { margin-bottom: 0.5em; line-height: 1.7; }
.post-content blockquote {
  border-left: 4px solid var(--brand);
  background: #F4F7FB;
  margin: 2em 0;
  padding: 1.2em 1.5em;
  border-radius: 0 var(--radius) var(--radius) 0;
  font-style: italic;
  color: var(--ink);
}
.post-content blockquote p:last-child { margin-bottom: 0; }
.post-content a { color: var(--brand); font-weight: 500; }
.post-content code {
  background: #F4F4F8;
  padding: 0.15em 0.4em;
  border-radius: 4px;
  font-size: 0.92em;
  font-family: ui-monospace, 'SF Mono', Menlo, Consolas, monospace;
}
.post-content pre {
  background: var(--ink);
  color: #E0E6ED;
  padding: 1.2em;
  border-radius: var(--radius);
  overflow-x: auto;
  margin: 1.4em 0;
}
.post-content pre code { background: none; padding: 0; color: inherit; }
.post-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.4em 0;
  font-size: 0.95rem;
}
.post-content th, .post-content td {
  border: 1px solid var(--line);
  padding: 10px 14px;
  text-align: left;
}
.post-content th {
  background: #F4F7FB;
  font-weight: 700;
}
.post-content img {
  border-radius: var(--radius);
  margin: 1.4em 0;
  box-shadow: var(--shadow-md);
}

/* ===== About Page ===== */
.about-section {
  padding: 70px 0;
}
.about-grid {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 60px;
  align-items: start;
}
.about-portrait {
  width: 100%;
  aspect-ratio: 1;
  background: linear-gradient(135deg, var(--brand) 0%, var(--brand-dark) 100%);
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 5rem;
  color: white;
  font-weight: 800;
  letter-spacing: -0.04em;
  box-shadow: var(--shadow-lg);
}
.about-content h2 { margin-bottom: 20px; }
.about-content p { font-size: 1.08rem; margin-bottom: 1.2em; }
.credentials {
  margin-top: 30px;
  padding: 24px;
  background: var(--surface);
  border-radius: var(--radius);
  border: 1px solid var(--line);
}
.credentials h4 { margin-bottom: 12px; }
.credentials ul { list-style: none; padding: 0; }
.credentials li {
  padding: 6px 0;
  display: flex;
  gap: 10px;
  align-items: flex-start;
}
.credentials li::before { content: '✓'; color: var(--green); font-weight: 700; }

/* ===== Contact ===== */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
  max-width: 900px;
  margin: 50px auto 0;
}
.contact-card {
  background: var(--surface);
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  padding: 30px;
  text-align: center;
  transition: all 0.2s;
}
.contact-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}
.contact-icon {
  font-size: 2rem;
  margin-bottom: 14px;
}
.contact-card h4 { margin-bottom: 6px; }
.contact-card a { font-weight: 600; }

/* ===== Footer ===== */
.site-footer {
  background: var(--ink);
  color: #C5CCD8;
  padding: 60px 0 30px;
  margin-top: 80px;
}
.footer-inner {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.4fr;
  gap: 40px;
  margin-bottom: 40px;
}
.footer-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  color: white;
  margin-bottom: 14px;
}
.footer-col h4 {
  color: white;
  margin-bottom: 14px;
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.footer-col p { color: #97A4B5; font-size: 0.95rem; }
.footer-col ul { list-style: none; padding: 0; }
.footer-col li { margin-bottom: 8px; font-size: 0.95rem; }
.footer-col a { color: #C5CCD8; }
.footer-col a:hover { color: white; }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  padding-top: 24px;
  border-top: 1px solid #2A3548;
  font-size: 0.85rem;
  color: #97A4B5;
}
.footer-bottom p { color: inherit; }

/* ===== Responsive ===== */
@media (max-width: 880px) {
  .menu-toggle { display: block; }
  .site-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    flex-direction: column;
    padding: 24px;
    border-bottom: 1px solid var(--line);
    gap: 20px;
  }
  .site-nav.open { display: flex; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .about-grid { grid-template-columns: 1fr; }
  section { padding: 50px 0; }
  .hero { padding: 50px 0 40px; }
}
@media (max-width: 540px) {
  .footer-inner { grid-template-columns: 1fr; }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .btn { justify-content: center; }
}
