/* ================================================
   EASYSOLVE — style.css
   Tema: Clean Academic dengan aksen biru-teal
   Font: Sora (display) + Nunito (body)
   ================================================ */

@import url("https://fonts.googleapis.com/css2?family=Sora:wght@400;600;700;800&family=Nunito:wght@400;500;600;700&display=swap");

/* ─── CSS VARIABLES ────────────────────────── */
:root {
  --bg: #f0f4ff;
  --bg-card: #ffffff;
  --bg-dark: #0d1b3e;
  --bg-surface: #e8eef8;
  --primary: #2563eb;
  --primary-dk: #1e40af;
  --primary-lt: #dbeafe;
  --accent: #0ea5e9;
  --accent-teal: #14b8a6;
  --math-clr: #7c3aed;
  --phys-clr: #f59e0b;
  --conv-clr: #10b981;
  --text: #1e293b;
  --text-muted: #64748b;
  --text-light: #94a3b8;
  --border: #cbd5e1;
  --border-lt: #e2e8f0;
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.08);
  --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 12px 40px rgba(0, 0, 0, 0.14);
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --font-display: "Sora", sans-serif;
  --font-body: "Nunito", sans-serif;
  --transition: 0.22s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ─── RESET & BASE ──────────────────────────── */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

main {
  flex: 1;
}

button {
  cursor: pointer;
  border: none;
  background: none;
  font-family: inherit;
}
input,
select {
  font-family: inherit;
}

/* ─── HEADER ─────────────────────────────────── */
.site-header {
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-lt);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: var(--shadow-sm);
}

.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  height: 68px;
  display: flex;
  align-items: center;
  gap: 24px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  text-decoration: none;
  flex-shrink: 0;
}

.logo-icon {
  width: 42px;
  height: 42px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  color: #fff;
  font-family: var(--font-display);
  font-weight: 800;
  box-shadow: 0 2px 8px rgba(37, 99, 235, 0.3);
}

.logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}
.logo-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 18px;
  color: var(--text);
}
.logo-tagline {
  font-size: 11px;
  color: var(--text-muted);
}

.main-nav {
  display: flex;
  gap: 4px;
  margin-left: auto;
}

.nav-btn {
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 600;
  color: var(--text-muted);
  transition: all var(--transition);
}
.nav-btn:hover {
  background: var(--primary-lt);
  color: var(--primary);
}
.nav-btn.active {
  background: var(--primary);
  color: #fff;
}

.hamburger {
  display: none;
  font-size: 22px;
  color: var(--text);
  margin-left: auto;
  padding: 4px 8px;
}

.mobile-nav {
  background: var(--bg-card);
  border-top: 1px solid var(--border-lt);
  padding: 12px 24px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.mobile-nav button {
  padding: 12px 16px;
  text-align: left;
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
  border-radius: var(--radius-sm);
  transition: background var(--transition);
}
.mobile-nav button:hover {
  background: var(--primary-lt);
  color: var(--primary);
}

/* ─── PAGE SYSTEM ───────────────────────────── */
.page {
  display: none;
  animation: fadeIn 0.3s ease;
}
.page.active {
  display: block;
}
.hidden {
  display: none !important;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ─── HERO ───────────────────────────────────── */
.hero {
  position: relative;
  overflow: hidden;
  background: linear-gradient(
    145deg,
    var(--bg-dark) 0%,
    #1a2f6e 60%,
    #0f4c8a 100%
  );
  padding: 80px 24px 90px;
  text-align: center;
}

.hero-bg-shapes {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}

.shape {
  position: absolute;
  font-family: var(--font-display);
  font-weight: 800;
  opacity: 0.06;
  color: #fff;
  user-select: none;
  animation: float 8s ease-in-out infinite;
}

.shape-1 {
  font-size: 120px;
  top: -20px;
  left: 5%;
  animation-delay: 0s;
}
.shape-2 {
  font-size: 100px;
  top: 30%;
  left: 88%;
  animation-delay: 1.5s;
}
.shape-3 {
  font-size: 140px;
  top: 60%;
  left: 10%;
  animation-delay: 3s;
}
.shape-4 {
  font-size: 80px;
  top: 10%;
  left: 50%;
  animation-delay: 0.8s;
}
.shape-5 {
  font-size: 110px;
  top: 70%;
  left: 70%;
  animation-delay: 2.2s;
}
.shape-6 {
  font-size: 90px;
  top: 45%;
  left: 35%;
  animation-delay: 1s;
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0) rotate(0deg);
  }
  50% {
    transform: translateY(-20px) rotate(5deg);
  }
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 700px;
  margin: 0 auto;
}

.hero-badge {
  display: inline-block;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #93c5fd;
  font-size: 13px;
  font-weight: 700;
  padding: 6px 16px;
  border-radius: 999px;
  margin-bottom: 20px;
  letter-spacing: 0.5px;
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(28px, 5vw, 52px);
  font-weight: 800;
  color: #fff;
  line-height: 1.18;
  margin-bottom: 18px;
}

.hero-accent {
  background: linear-gradient(90deg, #60a5fa, #34d399);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-size: 16px;
  color: #94a3b8;
  max-width: 540px;
  margin: 0 auto 32px;
  line-height: 1.7;
}

/* ─── SEARCH ─────────────────────────────────── */
.search-wrap {
  position: relative;
  max-width: 540px;
  margin: 0 auto;
}

.search-icon {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 18px;
  pointer-events: none;
}

.search-input {
  width: 100%;
  padding: 16px 44px 16px 48px;
  border-radius: var(--radius-xl);
  border: 2px solid transparent;
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  font-size: 15px;
  font-weight: 500;
  backdrop-filter: blur(8px);
  transition: all var(--transition);
  outline: none;
}

.search-input::placeholder {
  color: rgba(255, 255, 255, 0.45);
}

.search-input:focus {
  background: rgba(255, 255, 255, 0.18);
  border-color: rgba(96, 165, 250, 0.6);
  box-shadow: 0 0 0 4px rgba(96, 165, 250, 0.15);
}

.search-clear {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: rgba(255, 255, 255, 0.5);
  font-size: 16px;
  padding: 4px;
  opacity: 0;
  transition: opacity var(--transition);
}
.search-clear:hover {
  color: #fff;
}

.search-count {
  margin-top: 12px;
  font-size: 13px;
  color: #93c5fd;
  font-weight: 600;
}

/* ─── SECTIONS ───────────────────────────────── */
.section {
  max-width: 1200px;
  margin: 0 auto;
  padding: 48px 24px;
}

.section-header {
  display: flex;
  align-items: baseline;
  gap: 16px;
  margin-bottom: 28px;
  flex-wrap: wrap;
}

.section-title {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 700;
  color: var(--text);
}

.section-subtitle {
  font-size: 14px;
  color: var(--text-muted);
}

/* ─── CATEGORY CARDS ─────────────────────────── */
.category-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  margin-bottom: 48px;
}

.cat-card {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  cursor: pointer;
  border: 2px solid transparent;
  transition: all var(--transition);
  box-shadow: var(--shadow-sm);
  position: relative;
  overflow: hidden;
}

.cat-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  border-radius: 4px 4px 0 0;
}

.cat-math::before {
  background: linear-gradient(90deg, var(--math-clr), #a855f7);
}
.cat-physics::before {
  background: linear-gradient(90deg, var(--phys-clr), #f97316);
}
.cat-convert::before {
  background: linear-gradient(90deg, var(--conv-clr), var(--accent-teal));
}

.cat-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}
.cat-math:hover {
  border-color: var(--math-clr);
}
.cat-physics:hover {
  border-color: var(--phys-clr);
}
.cat-convert:hover {
  border-color: var(--conv-clr);
}

.cat-icon {
  font-size: 36px;
  margin-bottom: 12px;
}
.cat-card h3 {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 6px;
}
.cat-card p {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.5;
}
.cat-count {
  display: inline-block;
  margin-top: 12px;
  font-size: 12px;
  font-weight: 700;
  color: var(--primary);
  background: var(--primary-lt);
  padding: 3px 10px;
  border-radius: 999px;
}

/* ─── FORMULA GRID ───────────────────────────── */
.formula-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 16px;
}

.formula-card {
  background: var(--bg-card);
  border-radius: var(--radius-md);
  padding: 20px;
  display: flex;
  align-items: center;
  gap: 16px;
  cursor: pointer;
  border: 2px solid var(--border-lt);
  transition: all var(--transition);
  box-shadow: var(--shadow-sm);
}

.formula-card:hover {
  border-color: var(--primary);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.card-icon {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-sm);
  background: var(--primary-lt);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  font-weight: 800;
  color: var(--primary);
  font-family: var(--font-display);
  flex-shrink: 0;
}

.card-body {
  flex: 1;
  min-width: 0;
}

.card-badge {
  font-size: 11px;
  font-weight: 700;
  color: var(--accent-teal);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.card-title {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 700;
  color: var(--text);
  margin: 2px 0 4px;
}

.card-desc {
  font-size: 13px;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.card-arrow {
  color: var(--text-light);
  font-size: 18px;
  transition: transform var(--transition);
}
.formula-card:hover .card-arrow {
  transform: translateX(4px);
  color: var(--primary);
}

/* ─── EMPTY STATE ────────────────────────────── */
.empty-state {
  grid-column: 1/-1;
  text-align: center;
  padding: 60px 24px;
  color: var(--text-muted);
}
.empty-icon {
  font-size: 48px;
  display: block;
  margin-bottom: 16px;
}

/* ─── MODAL ──────────────────────────────────── */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(13, 27, 62, 0.7);
  backdrop-filter: blur(6px);
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  animation: fadeIn 0.2s ease;
}

.modal-overlay.visible {
  display: flex;
}

.modal-box {
  background: var(--bg-card);
  border-radius: var(--radius-xl);
  width: 100%;
  max-width: 560px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: var(--shadow-lg);
  animation: slideUp 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(30px) scale(0.97);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* Modal Header */
.modal-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  padding: 28px 28px 20px;
  border-bottom: 1px solid var(--border-lt);
  gap: 16px;
}

.modal-badge {
  font-size: 11px;
  font-weight: 700;
  color: var(--accent-teal);
  text-transform: uppercase;
  letter-spacing: 0.8px;
  display: block;
  margin-bottom: 6px;
}

.modal-title {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 800;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 10px;
}

.modal-icon {
  font-size: 26px;
}

.modal-desc {
  font-size: 14px;
  color: var(--text-muted);
  margin-top: 6px;
}

.modal-close {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--bg-surface);
  color: var(--text-muted);
  font-size: 16px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition);
}
.modal-close:hover {
  background: #fee2e2;
  color: #ef4444;
}

/* Formula Display */
.formula-display {
  margin: 20px 28px;
  background: var(--bg-dark);
  border-radius: var(--radius-md);
  padding: 20px;
  text-align: center;
}

.formula-latex {
  color: #fff;
  font-size: 22px;
}
.formula-raw {
  color: #64748b;
  font-size: 13px;
  margin-top: 8px;
  font-family: monospace;
}

/* Input Section */
.input-section {
  padding: 0 28px;
}
.section-label {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-muted);
  margin-bottom: 16px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.fields-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 14px;
}

.field-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.field-group label {
  font-size: 13px;
  font-weight: 700;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 6px;
}

.unit-tag {
  font-size: 11px;
  font-weight: 600;
  background: var(--primary-lt);
  color: var(--primary);
  padding: 2px 7px;
  border-radius: 999px;
}

.calc-input {
  padding: 12px 14px;
  border: 2px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
  background: var(--bg);
  transition: all var(--transition);
  outline: none;
  width: 100%;
}

.calc-input:focus {
  border-color: var(--primary);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}

/* Calc Actions */
.calc-actions {
  display: flex;
  gap: 12px;
  padding: 20px 28px;
  align-items: center;
}

.btn-primary {
  flex: 1;
  padding: 14px 24px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: #fff;
  border-radius: var(--radius-sm);
  font-size: 15px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all var(--transition);
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}
.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(37, 99, 235, 0.4);
}
.btn-primary:active {
  transform: translateY(0);
}

.btn-secondary {
  padding: 12px 20px;
  background: var(--bg-surface);
  color: var(--text-muted);
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 600;
  transition: all var(--transition);
}
.btn-secondary:hover {
  background: var(--border);
  color: var(--text);
}

/* Result Section */
.result-section {
  margin: 0 28px 20px;
  background: linear-gradient(135deg, #f0fdf4, #ecfdf5);
  border: 2px solid #86efac;
  border-radius: var(--radius-md);
  padding: 20px;
  animation: popIn 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes popIn {
  from {
    opacity: 0;
    transform: scale(0.96);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.result-header {
  font-size: 13px;
  font-weight: 700;
  color: #16a34a;
  margin-bottom: 14px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.result-main {
  display: flex;
  align-items: baseline;
  gap: 10px;
}
.result-number {
  font-family: var(--font-display);
  font-size: 36px;
  font-weight: 800;
  color: var(--text);
}
.result-unit-main {
  font-size: 16px;
  font-weight: 600;
  color: var(--text-muted);
}

.result-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 0;
  border-bottom: 1px solid #bbf7d0;
}
.result-row:last-child {
  border-bottom: none;
}
.result-label {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-muted);
}
.result-value {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
  color: var(--text);
}
.result-unit {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-muted);
}

.result-error {
  color: #dc2626;
  font-size: 14px;
  font-weight: 600;
  background: #fef2f2;
  border-radius: var(--radius-sm);
  padding: 10px 14px;
}

.btn-copy {
  margin-top: 14px;
  padding: 8px 16px;
  background: #16a34a;
  color: #fff;
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-weight: 700;
  transition: all var(--transition);
}
.btn-copy:hover {
  background: #15803d;
}

/* Steps Section */
.steps-section {
  margin: 0 28px 28px;
}

.steps-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 18px;
  background: var(--bg-surface);
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
  cursor: pointer;
  transition: background var(--transition);
  border: 2px solid var(--border-lt);
}
.steps-toggle:hover {
  background: var(--primary-lt);
  border-color: var(--primary);
}
.toggle-arrow {
  font-size: 16px;
  transition: transform var(--transition);
}

.steps-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}
.steps-content.open {
  max-height: 600px;
}

.step-item {
  display: flex;
  gap: 14px;
  padding: 12px 18px;
  border-left: 2px solid var(--primary-lt);
  margin: 8px 0;
  background: #fff;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  align-items: flex-start;
}

.step-num {
  width: 24px;
  height: 24px;
  background: var(--primary);
  color: #fff;
  border-radius: 50%;
  font-size: 12px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-family: var(--font-display);
}

.step-text {
  font-size: 14px;
  color: var(--text);
  line-height: 1.6;
  padding-top: 2px;
}

/* ─── BREADCRUMB ─────────────────────────────── */
.page-breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 24px;
}
.breadcrumb-link {
  cursor: pointer;
  color: var(--primary);
  font-weight: 600;
}
.breadcrumb-link:hover {
  text-decoration: underline;
}
.breadcrumb-sep {
  opacity: 0.5;
}

/* ─── HISTORY ────────────────────────────────── */
.history-actions {
  margin-bottom: 20px;
}

.history-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.history-item {
  background: var(--bg-card);
  border: 2px solid var(--border-lt);
  border-radius: var(--radius-md);
  padding: 16px 20px;
  cursor: pointer;
  transition: all var(--transition);
}
.history-item:hover {
  border-color: var(--primary);
  box-shadow: var(--shadow-md);
}

.history-name {
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
}
.history-result {
  font-size: 14px;
  color: var(--primary);
  font-weight: 600;
  margin: 4px 0;
}
.history-time {
  font-size: 12px;
  color: var(--text-light);
}

.history-empty {
  color: var(--text-muted);
  font-size: 15px;
  padding: 40px;
  text-align: center;
}

/* ─── FOOTER ─────────────────────────────────── */
.site-footer {
  background: var(--bg-dark);
  color: #94a3b8;
  margin-top: auto;
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 48px 24px;
  text-align: center;
}

.footer-logo {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 800;
  color: #fff;
  margin-bottom: 10px;
}
.footer-tagline {
  font-size: 14px;
  margin-bottom: 20px;
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 24px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}
.footer-links span {
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: color var(--transition);
}
.footer-links span:hover {
  color: #60a5fa;
}

.footer-copy {
  font-size: 13px;
}

/* ─── SCROLLBAR ──────────────────────────────── */
.modal-box::-webkit-scrollbar {
  width: 6px;
}
.modal-box::-webkit-scrollbar-thumb {
  background: var(--border);
  border-radius: 3px;
}

/* ─── RESPONSIVE ─────────────────────────────── */
@media (max-width: 768px) {
  .main-nav {
    display: none;
  }
  .hamburger {
    display: block;
  }

  .hero {
    padding: 60px 20px 70px;
  }
  .hero-title {
    font-size: 26px;
  }

  .formula-grid {
    grid-template-columns: 1fr;
  }

  .modal-box {
    border-radius: var(--radius-lg);
    max-height: 95vh;
  }
  .modal-header,
  .input-section,
  .calc-actions,
  .result-section,
  .steps-section {
    padding-left: 20px;
    padding-right: 20px;
  }
  .formula-display {
    margin: 16px 20px;
  }

  .result-number {
    font-size: 28px;
  }

  .fields-grid {
    grid-template-columns: 1fr;
  }

  .category-cards {
    grid-template-columns: 1fr;
  }

  .section-header {
    flex-direction: column;
    gap: 4px;
  }
}

@media (max-width: 480px) {
  .header-inner {
    padding: 0 16px;
  }
  .logo-tagline {
    display: none;
  }
  .section {
    padding: 32px 16px;
  }
}

/* ─── KATEGORI BARU: KIMIA & KEUANGAN ─────── */
.cat-chem::before {
  background: linear-gradient(90deg, #10b981, #059669);
}
.cat-finance::before {
  background: linear-gradient(90deg, #f59e0b, #d97706);
}

.cat-chem:hover {
  border-color: #10b981;
}
.cat-finance:hover {
  border-color: #f59e0b;
}

/* 5 kolom kategori di desktop */
@media (min-width: 900px) {
  .category-cards {
    grid-template-columns: repeat(5, 1fr);
  }
}
