/* ==========================================================================
   HENDRA WIJAYA - DESIGN SYSTEM & STYLESHEET
   Aesthetics: Elegant, Clean, Modern Editorial (Zero Render-Blocking)
   ========================================================================== */

:root {
  /* Color Palette - Light Theme (WCAG AA Compliant >= 4.5:1) */
  --bg-main: #f8fafc;
  --bg-surface: #ffffff;
  --bg-surface-elevated: #ffffff;
  --bg-subtle: #f1f5f9;
  --bg-glass: rgba(255, 255, 255, 0.85);
  
  --border-color: #cbd5e1;
  --border-subtle: #e2e8f0;
  --border-focus: #0284c7;

  --text-main: #0f172a;
  --text-muted: #334155;       /* Slate-700: 7.2:1 contrast ratio against #ffffff */
  --text-dim: #475569;         /* Slate-600: 5.9:1 contrast ratio against #ffffff */
  --text-inverse: #ffffff;

  --primary: #0369a1;          /* Sky-700: 5.4:1 contrast against #ffffff */
  --primary-light: #e0f2fe;
  --primary-hover: #0284c7;
  
  --accent-amber: #b45309;     /* Amber-700: 4.8:1 contrast against #ffffff */
  --accent-amber-light: #fef3c7;
  
  --accent-teal: #0f766e;      /* Teal-700: 5.2:1 contrast against #ffffff */
  --accent-teal-light: #ccfbf1;

  --badge-bg: #e2e8f0;
  --badge-text: #1e293b;

  --shadow-sm: 0 1px 3px rgba(0,0,0,0.05);
  --shadow-md: 0 4px 20px -2px rgba(15, 23, 42, 0.06);
  --shadow-lg: 0 12px 32px -4px rgba(15, 23, 42, 0.08);
  --shadow-glow: 0 0 25px rgba(2, 132, 199, 0.15);

  --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-serif: 'Newsreader', 'Playfair Display', Georgia, serif;

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-full: 9999px;

  --transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  --max-width: 1140px;
  --header-height: 72px;
}

[data-theme="dark"] {
  --bg-main: #0b0f19;
  --bg-surface: #111827;
  --bg-surface-elevated: #1a2234;
  --bg-subtle: #1e293b;
  --bg-glass: rgba(11, 15, 25, 0.85);

  --border-color: #334155;
  --border-subtle: #1e293b;
  --border-focus: #38bdf8;

  --text-main: #f8fafc;
  --text-muted: #cbd5e1;       /* Slate-300: 10.5:1 contrast against #111827 */
  --text-dim: #94a3b8;         /* Slate-400: 7.8:1 contrast against #111827 */
  --text-inverse: #0f172a;

  --primary: #38bdf8;          /* Sky-400: 8.8:1 contrast against #111827 */
  --primary-light: rgba(56, 189, 248, 0.15);
  --primary-hover: #7dd3fc;

  --accent-amber: #fcd34d;     /* Amber-300: 12.1:1 contrast against #111827 */
  --accent-amber-light: rgba(251, 191, 36, 0.15);

  --accent-teal: #5eead4;      /* Teal-300: 11.8:1 contrast against #111827 */
  --accent-teal-light: rgba(45, 212, 191, 0.15);

  --badge-bg: #1e293b;
  --badge-text: #f1f5f9;

  --shadow-sm: 0 1px 3px rgba(0,0,0,0.4);
  --shadow-md: 0 4px 20px -2px rgba(0, 0, 0, 0.45);
  --shadow-lg: 0 12px 32px -4px rgba(0, 0, 0, 0.6);
  --shadow-glow: 0 0 25px rgba(56, 189, 248, 0.2);
}

/* ==========================================================================
   Base & Reset
   ========================================================================== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-sans);
  background-color: var(--bg-main);
  color: var(--text-main);
  line-height: 1.65;
  transition: background-color 0.3s ease, color 0.3s ease;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Reading Progress Indicator */
.reading-progress-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: transparent;
  z-index: 1100;
}

.reading-progress-bar {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--primary), var(--accent-amber));
  transition: width 0.1s ease-out;
}

a {
  color: inherit;
  text-decoration: none;
  transition: var(--transition);
}

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

button, input, textarea, select {
  font-family: inherit;
  font-size: inherit;
}

/* Container */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

.container-narrow {
  max-width: 820px;
}

/* ==========================================================================
   Header & Navigation
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  height: var(--header-height);
  background: var(--bg-glass);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-color);
  transition: var(--transition);
}

.nav-wrapper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-height);
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: -0.02em;
}

.brand-avatar {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-full);
  object-fit: cover;
  border: 2px solid var(--primary);
}

.brand-text {
  display: flex;
  flex-direction: column;
}

.brand-name {
  color: var(--text-main);
  line-height: 1.2;
}

.brand-tag {
  font-size: 0.75rem;
  color: var(--text-muted);
  font-weight: 500;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.75rem;
  list-style: none;
}

.nav-link {
  font-size: 0.925rem;
  font-weight: 500;
  color: var(--text-muted);
  position: relative;
  padding: 0.35rem 0;
}

.nav-link:hover, .nav-link.active {
  color: var(--text-main);
}

.nav-link.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--primary);
  border-radius: var(--radius-full);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.theme-toggle-btn {
  background: var(--bg-subtle);
  border: 1px solid var(--border-color);
  color: var(--text-main);
  width: 38px;
  height: 38px;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition);
}

.theme-toggle-btn:hover {
  background: var(--border-color);
  transform: rotate(15deg);
}

.theme-toggle-btn svg {
  width: 18px;
  height: 18px;
}

.mobile-menu-btn {
  display: none;
  background: transparent;
  border: none;
  color: var(--text-main);
  cursor: pointer;
  padding: 0.5rem;
}

.mobile-menu-btn svg {
  width: 24px;
  height: 24px;
}

/* ==========================================================================
   Hero Section
   ========================================================================== */
.hero-section {
  padding: 4.5rem 0 3.5rem 0;
  position: relative;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 3.5rem;
  align-items: center;
}

.hero-content {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 0.9rem;
  background: var(--primary-light);
  color: var(--primary);
  border-radius: var(--radius-full);
  font-size: 0.825rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  width: fit-content;
}

.pulse-dot {
  width: 8px;
  height: 8px;
  background: var(--primary);
  border-radius: 50%;
  animation: pulse-animation 2s infinite;
}

@keyframes pulse-animation {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(3, 105, 161, 0.7); }
  70% { transform: scale(1); box-shadow: 0 0 0 8px rgba(3, 105, 161, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(3, 105, 161, 0); }
}

.hero-title {
  font-size: 2.85rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.15;
  color: var(--text-main);
}

.hero-title .highlight-serif {
  font-family: var(--font-serif);
  font-weight: 500;
  font-style: italic;
  color: var(--primary);
}

.hero-lead {
  font-size: 1.125rem;
  color: var(--text-muted);
  line-height: 1.7;
}

.hero-locations {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.875rem;
  color: var(--text-muted);
  flex-wrap: wrap;
  margin: 1.25rem 0;
}

.hero-locations-label {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-weight: 700;
  color: var(--text-main);
  text-transform: uppercase;
  font-size: 0.775rem;
  letter-spacing: 0.05em;
}

.hero-locations-flow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.hero-locations-flow .tag-city {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  padding: 0.25rem 0.65rem;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.825rem;
  color: var(--text-main);
  box-shadow: var(--shadow-sm);
}

.hero-locations-flow .tag-city.highlight-city {
  background: var(--primary-light);
  border-color: var(--primary);
  color: var(--primary);
}

.loc-arrow {
  color: var(--text-dim);
  font-weight: 700;
}

.hero-cta {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 0.5rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.4rem;
  border-radius: var(--radius-md);
  font-size: 0.925rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  border: 1px solid transparent;
}

.btn-primary {
  background: var(--primary);
  color: #ffffff;
}

.btn-primary:hover {
  background: var(--primary-hover);
  transform: translateY(-2px);
  box-shadow: var(--shadow-glow);
}

.btn-outline {
  background: var(--bg-surface);
  border-color: var(--border-color);
  color: var(--text-main);
}

.btn-outline:hover {
  background: var(--bg-subtle);
  border-color: var(--text-muted);
  transform: translateY(-2px);
}

.hero-image-wrapper {
  position: relative;
  display: flex;
  justify-content: center;
}

.hero-image-card {
  position: relative;
  width: 100%;
  max-width: 360px;
  aspect-ratio: 4 / 5;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border-color);
  background: var(--bg-surface);
}

.hero-image-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.hero-image-card:hover img {
  transform: scale(1.04);
}

.hero-badge-float {
  position: absolute;
  bottom: 1.25rem;
  left: 1.25rem;
  right: 1.25rem;
  background: var(--bg-glass);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 0.9rem 1.1rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.badge-icon {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-full);
  background: var(--accent-amber-light);
  color: var(--accent-amber);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.badge-text-title {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-main);
  line-height: 1.2;
}

.badge-text-sub {
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* ==========================================================================
   Section Title & Subtitles
   ========================================================================== */
.section {
  padding: 4.5rem 0;
  position: relative;
}

.section-alt {
  background-color: var(--bg-subtle);
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
}

.section-header {
  margin-bottom: 3rem;
}

.section-header.text-center {
  text-align: center;
  max-width: 680px;
  margin-left: auto;
  margin-right: auto;
}

.section-tag {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--primary);
  margin-bottom: 0.5rem;
}

.section-title {
  font-size: 2.15rem;
  font-weight: 800;
  letter-spacing: -0.025em;
  color: var(--text-main);
  line-height: 1.25;
}

.section-desc {
  font-size: 1rem;
  color: var(--text-muted);
  margin-top: 0.6rem;
  line-height: 1.6;
}

/* ==========================================================================
   Tabs Navigation (3 Pillars: Pribadi, Karier, Akademisi)
   ========================================================================== */
.tabs-header {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  padding: 0.4rem;
  border-radius: var(--radius-full);
  max-width: 520px;
  margin: 0 auto 3rem auto;
  box-shadow: var(--shadow-sm);
}

.tab-btn {
  flex: 1;
  padding: 0.65rem 1rem;
  border-radius: var(--radius-full);
  border: none;
  background: transparent;
  color: var(--text-muted);
  font-weight: 600;
  font-size: 0.875rem;
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.tab-btn:hover {
  color: var(--text-main);
}

.tab-btn.active {
  background: var(--primary);
  color: #ffffff;
  box-shadow: var(--shadow-sm);
}

.tab-pane {
  display: none;
  animation: fadeIn 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.tab-pane.active {
  display: block;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ==========================================================================
   Bento Grid & Cards
   ========================================================================== */
.bento-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 1.5rem;
}

.card {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.card:hover {
  box-shadow: var(--shadow-md);
  border-color: var(--border-focus);
  transform: translateY(-3px);
}

.card-span-8 { grid-column: span 8; }
.card-span-6 { grid-column: span 6; }
.card-span-4 { grid-column: span 4; }
.card-span-12 { grid-column: span 12; }

.card-icon-box {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  background: var(--primary-light);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
}

.card-title {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 0.75rem;
  letter-spacing: -0.015em;
}

.card-text {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.65;
}

/* Timeline Cards */
.timeline-list {
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
  position: relative;
}

.timeline-item {
  display: flex;
  gap: 1.25rem;
  position: relative;
}

.timeline-marker {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.timeline-dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--primary);
  border: 3px solid var(--bg-surface);
  box-shadow: 0 0 0 2px var(--primary);
  z-index: 2;
}

.timeline-line {
  width: 2px;
  flex-grow: 1;
  background: var(--border-color);
  margin-top: 6px;
}

.timeline-content {
  padding-bottom: 0.5rem;
}

.timeline-period {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.timeline-role {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-main);
  margin-top: 0.15rem;
}

.timeline-org {
  font-size: 0.925rem;
  font-weight: 500;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
}

.timeline-desc {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.6;
}

.timeline-scope-list {
  margin-top: 0.6rem;
  padding-left: 1.25rem;
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.6;
}

.timeline-scope-list li {
  margin-bottom: 0.35rem;
}

.timeline-scope-list strong {
  color: var(--text-main);
}

/* Poskasir Showcase Banner */
.product-showcase {
  background: linear-gradient(135deg, var(--bg-surface-elevated), var(--bg-surface));
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 2.5rem;
  align-items: center;
  box-shadow: var(--shadow-md);
  margin-top: 2rem;
}

.product-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: var(--accent-teal-light);
  color: var(--accent-teal);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.25rem 0.65rem;
  border-radius: var(--radius-full);
  margin-bottom: 0.75rem;
}

.product-title {
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--text-main);
  margin-bottom: 0.5rem;
}

.product-desc {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.65;
  margin-bottom: 1.25rem;
}

.product-features {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.feature-pill {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.85rem;
  color: var(--text-main);
  font-weight: 500;
}

.feature-pill svg {
  color: var(--accent-teal);
  flex-shrink: 0;
}

.product-visual-box {
  background: var(--bg-subtle);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  text-align: center;
  box-shadow: var(--shadow-sm);
}

.pos-mockup-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 0.75rem;
  margin-bottom: 1rem;
}

.mockup-dots {
  display: flex;
  gap: 5px;
}

.mockup-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--border-color);
}

.pos-mockup-url {
  font-size: 0.8rem;
  color: var(--text-muted);
  font-weight: 600;
}

.pos-mockup-body {
  padding: 1.5rem 0.5rem;
  text-align: left;
}

.pos-mockup-tag {
  font-size: 0.8rem;
  color: var(--accent-teal);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.pos-mockup-title {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--text-main);
  margin: 0.25rem 0 0.75rem 0;
}

.pos-mockup-desc {
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.55;
}

/* ==========================================================================
   Opinion / Editorial Section & Article Cards
   ========================================================================== */
.opinions-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 2rem;
}

.article-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: var(--transition);
  box-shadow: var(--shadow-sm);
}

.article-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--primary);
}

.article-thumb-wrapper {
  position: relative;
  width: 100%;
  height: 200px;
  overflow: hidden;
  background: var(--bg-subtle);
}

.article-thumb-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.article-card:hover .article-thumb-wrapper img {
  transform: scale(1.05);
}

.article-category-badge {
  position: absolute;
  top: 1rem;
  left: 1rem;
  background: var(--bg-glass);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: var(--text-main);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.3rem 0.75rem;
  border-radius: var(--radius-full);
  border: 1px solid var(--border-color);
}

.article-body {
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.article-meta {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 0.75rem;
}

.meta-dot {
  width: 4px;
  height: 4px;
  background: var(--text-dim);
  border-radius: 50%;
}

.article-card-title {
  font-family: var(--font-serif);
  font-size: 1.45rem;
  font-weight: 600;
  line-height: 1.35;
  color: var(--text-main);
  margin-bottom: 0.75rem;
  transition: var(--transition);
}

.article-card:hover .article-card-title {
  color: var(--primary);
}

.article-excerpt {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 1.5rem;
  flex-grow: 1;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.article-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 1rem;
  border-top: 1px solid var(--border-color);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--primary);
}

/* ==========================================================================
   Opini Archive Page & Filters
   ========================================================================== */
.archive-hero {
  padding: 4rem 0 2rem 0;
  text-align: center;
}

.archive-search-box {
  max-width: 580px;
  margin: 2rem auto;
  position: relative;
}

.search-input {
  width: 100%;
  padding: 0.85rem 1.25rem 0.85rem 3rem;
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-full);
  color: var(--text-main);
  box-shadow: var(--shadow-sm);
  outline: none;
  transition: var(--transition);
}

.search-input:focus {
  border-color: var(--primary);
  box-shadow: var(--shadow-glow);
}

.search-icon {
  position: absolute;
  left: 1.15rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  pointer-events: none;
}

.filter-pills {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-bottom: 3rem;
}

.filter-pill {
  padding: 0.4rem 1rem;
  border-radius: var(--radius-full);
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  color: var(--text-muted);
  font-size: 0.85rem;
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition);
}

.filter-pill:hover {
  border-color: var(--text-muted);
  color: var(--text-main);
}

.filter-pill.active {
  background: var(--primary);
  border-color: var(--primary);
  color: #ffffff;
}

/* ==========================================================================
   Article Detail Page (Distraction-Free Editorial View)
   ========================================================================== */
.article-detail-header {
  padding: 3.5rem 0 2rem 0;
  border-bottom: 1px solid var(--border-color);
  margin-bottom: 3rem;
}

.article-detail-category {
  display: inline-block;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 1rem;
}

.article-detail-title {
  font-family: var(--font-serif);
  font-size: 3rem;
  font-weight: 600;
  line-height: 1.2;
  color: var(--text-main);
  letter-spacing: -0.02em;
  margin-bottom: 1.5rem;
}

.article-detail-meta {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  font-size: 0.9rem;
  color: var(--text-muted);
  flex-wrap: wrap;
}

.author-meta-box {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.author-meta-img {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  object-fit: cover;
}

.article-detail-cover {
  width: 100%;
  max-height: 620px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-bottom: 3rem;
  border: 1px solid var(--border-color);
  background: var(--bg-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
}

.article-detail-cover img {
  max-width: 100%;
  max-height: 620px;
  width: auto;
  height: auto;
  object-fit: contain;
  display: block;
}

/* Article Prose Typography */
.article-prose {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  line-height: 1.85;
  color: var(--text-main);
}

.article-prose p {
  margin-bottom: 1.75rem;
}

.article-prose .lead-paragraph {
  font-size: 1.45rem;
  font-style: italic;
  color: var(--text-main);
  line-height: 1.6;
}

.article-prose strong {
  font-weight: 700;
  color: var(--text-main);
}

.article-prose .article-quote {
  border-left: 3px solid var(--primary);
  padding: 1rem 0 1rem 1.75rem;
  margin: 2.5rem 0;
  font-style: italic;
  font-size: 1.35rem;
  color: var(--text-main);
  background: var(--bg-subtle);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
}

.article-prose .article-subheading {
  font-family: var(--font-sans);
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--text-main);
  margin: 2.75rem 0 1.25rem 0;
  letter-spacing: -0.015em;
}

.article-prose .arabic-highlight {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  text-align: center;
  background: var(--primary-light);
  color: var(--primary);
  padding: 1.5rem;
  border-radius: var(--radius-md);
  margin: 2.5rem 0;
}

.article-prose .arabic-highlight small {
  display: block;
  font-size: 0.95rem;
  font-style: normal;
  font-family: var(--font-sans);
  color: var(--text-muted);
  margin-top: 0.4rem;
}

.article-signoff {
  margin-top: 3rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border-color);
  font-family: var(--font-sans);
  font-size: 1rem;
  color: var(--text-muted);
}

.article-signoff strong {
  color: var(--text-main);
  font-size: 1.15rem;
}

/* Article Share & Tags */
.article-tags-share {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 2rem 0;
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
  margin: 3rem 0;
  flex-wrap: wrap;
  gap: 1rem;
}

.article-tags {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.article-tag {
  background: var(--bg-subtle);
  border: 1px solid var(--border-color);
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius-sm);
  font-size: 0.8rem;
  color: var(--text-muted);
}

.share-buttons {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.share-btn {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition);
}

.share-btn:hover {
  background: var(--primary);
  border-color: var(--primary);
  color: #ffffff;
  transform: translateY(-2px);
}

/* ==========================================================================
   Contact & Footer
   ========================================================================== */
.contact-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 3.5rem 2.5rem;
  text-align: center;
  box-shadow: var(--shadow-md);
  max-width: 820px;
  margin: 0 auto;
}

.social-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin-top: 1.75rem;
  flex-wrap: wrap;
}

.social-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 1.2rem;
  border-radius: var(--radius-full);
  background: var(--bg-subtle);
  border: 1px solid var(--border-color);
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-main);
  transition: var(--transition);
}

.social-pill:hover {
  background: var(--primary);
  border-color: var(--primary);
  color: #ffffff;
  transform: translateY(-2px);
}

.site-footer {
  border-top: 1px solid var(--border-color);
  padding: 3rem 0;
  background: var(--bg-surface);
  font-size: 0.9rem;
  color: var(--text-muted);
}

.footer-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1.5rem;
}

.footer-suksma {
  font-weight: 600;
  color: var(--text-main);
}

/* ==========================================================================
   Responsive Breakpoints
   ========================================================================== */
@media (max-width: 992px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
    text-align: center;
  }

  .hero-content {
    align-items: center;
  }

  .hero-locations {
    justify-content: center;
  }

  .hero-cta {
    justify-content: center;
  }

  .card-span-8, .card-span-6, .card-span-4 {
    grid-column: span 12;
  }

  .product-showcase {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .nav-links {
    position: fixed;
    top: var(--header-height);
    left: 0;
    width: 100%;
    background: var(--bg-surface);
    border-bottom: 1px solid var(--border-color);
    flex-direction: column;
    padding: 1.5rem;
    gap: 1rem;
    box-shadow: var(--shadow-md);
    transform: translateY(-150%);
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  }

  .nav-links.mobile-open {
    transform: translateY(0);
  }

  .mobile-menu-btn {
    display: block;
  }

  .hero-title {
    font-size: 2.2rem;
  }

  .article-detail-title {
    font-size: 2.2rem;
  }

  .article-prose {
    font-size: 1.125rem;
  }

  .tabs-header {
    flex-direction: column;
    border-radius: var(--radius-md);
    gap: 0.35rem;
  }

  .tab-btn {
    width: 100%;
  }

  .metrics-grid {
    grid-template-columns: repeat(2, 1fr) !important;
  }
}

@media (max-width: 540px) {
  .metrics-grid {
    grid-template-columns: 1fr !important;
  }
}

/* ==========================================================================
   Executive Impact Metrics Ribbon
   ========================================================================== */
.metrics-section {
  padding: 2.5rem 0;
  background: var(--bg-surface);
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
  position: relative;
  z-index: 5;
}

.metrics-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

.metric-item {
  padding: 1rem 1.25rem;
  border-left: 2px solid var(--primary);
  background: var(--bg-subtle);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  transition: transform 0.3s ease, border-color 0.3s ease;
}

.metric-item:hover {
  transform: translateY(-3px);
  border-color: var(--accent-teal);
}

.metric-number {
  font-family: var(--font-serif);
  font-size: 2.35rem;
  font-weight: 700;
  color: var(--primary);
  line-height: 1.1;
  margin-bottom: 0.25rem;
  display: flex;
  align-items: baseline;
  gap: 0.2rem;
}

.metric-label {
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-main);
  margin-bottom: 0.25rem;
}

.metric-sub {
  font-size: 0.775rem;
  color: var(--text-muted);
  line-height: 1.4;
}

/* ==========================================================================
   Live Availability Status Badge
   ========================================================================== */
.status-pill-live {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 0.85rem;
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.3);
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 600;
  color: #059669;
  margin-bottom: 1rem;
}

[data-theme="dark"] .status-pill-live {
  background: rgba(16, 185, 129, 0.15);
  border-color: rgba(16, 185, 129, 0.4);
  color: #34d399;
}

.status-dot-green {
  width: 8px;
  height: 8px;
  background-color: #10b981;
  border-radius: 50%;
  box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
  animation: pulseGreen 2s infinite;
}

@keyframes pulseGreen {
  0% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
  }
  70% {
    transform: scale(1);
    box-shadow: 0 0 0 6px rgba(16, 185, 129, 0);
  }
  100% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0);
  }
}

/* ==========================================================================
   Case Study & Architecture Blueprint Styles
   ========================================================================== */
.case-study-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  margin: 2rem 0;
}

@media (max-width: 900px) {
  .case-study-grid {
    grid-template-columns: 1fr;
  }
}

.case-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  transition: var(--transition);
}

.case-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.case-header {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 0.75rem;
  font-size: 0.825rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.case-header.problem { color: #be123c; }
.case-header.solution { color: var(--primary); }
.case-header.impact { color: #047857; }

[data-theme="dark"] .case-header.problem { color: #fb7185; }
[data-theme="dark"] .case-header.solution { color: #38bdf8; }
[data-theme="dark"] .case-header.impact { color: #34d399; }

.case-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 0.5rem;
}

.case-desc {
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* Architecture Blueprint Box */
.blueprint-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 2rem;
  margin: 3rem 0 1rem 0;
  box-shadow: var(--shadow-sm);
}

.blueprint-flow {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr;
  align-items: center;
  gap: 1rem;
  margin-top: 1.5rem;
}

@media (max-width: 900px) {
  .blueprint-flow {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .flow-arrow {
    transform: rotate(90deg);
    margin: 0.5rem auto;
  }
}

.blueprint-node {
  background: var(--bg-subtle);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  text-align: center;
  position: relative;
  transition: var(--transition);
}

.blueprint-node:hover {
  border-color: var(--primary);
  box-shadow: var(--shadow-sm);
}

.node-icon {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-md);
  background: var(--bg-surface);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 0.75rem auto;
  border: 1px solid var(--border-color);
}

.node-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 0.25rem;
}

.node-desc {
  font-size: 0.775rem;
  color: var(--text-muted);
  line-height: 1.4;
}

.flow-arrow {
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Leadership & Coffee Wisdom Banner */
.wisdom-banner {
  background: linear-gradient(135deg, rgba(3, 105, 161, 0.08) 0%, rgba(13, 148, 136, 0.08) 100%);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 2.5rem 2rem;
  margin: 3rem 0;
  display: flex;
  gap: 2rem;
  align-items: center;
}

@media (max-width: 768px) {
  .wisdom-banner {
    flex-direction: column;
    text-align: center;
  }
}

.wisdom-quote {
  font-family: var(--font-serif);
  font-size: 1.35rem;
  font-style: italic;
  line-height: 1.6;
  color: var(--text-main);
  margin-bottom: 0.75rem;
}

.wisdom-author {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* ==========================================================================
   Comprehensive Mobile Polish (Phones & Tablets)
   ========================================================================== */
@media (max-width: 640px) {
  .hero-locations {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 0.5rem;
  }
  
  .hero-locations-flow {
    justify-content: center;
    gap: 0.4rem;
  }

  .hero-cta {
    flex-direction: column;
    width: 100%;
  }

  .hero-cta .btn {
    width: 100%;
    justify-content: center;
  }

  .social-links {
    flex-direction: column;
    width: 100%;
  }

  .social-pill {
    width: 100%;
    justify-content: center;
  }

  .article-tags-share {
    flex-direction: column;
    align-items: flex-start;
    gap: 1.25rem;
  }

  .share-buttons {
    width: 100%;
    justify-content: flex-start;
  }

  .footer-content {
    flex-direction: column;
    text-align: center;
    gap: 1rem;
  }

  .product-features {
    grid-template-columns: 1fr;
  }

  .author-meta-box {
    width: 100%;
  }
}


