/* ==========================================================================
   LPK DERMA INDONESIA - CORE DESIGN SYSTEM & STYLES
   PT. Derma Indonesia Academy
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&display=swap');

:root {
  /* Colors */
  --primary: #0a192f;
  --primary-rgb: 10, 25, 47;
  --primary-light: #1e293b;
  --primary-dark: #070f1e;
  
  --accent: #d97706;
  --accent-light: #f59e0b;
  --accent-hover: #b45309;
  --accent-glow: rgba(245, 158, 11, 0.2);

  --emerald: #059669;
  --emerald-light: #10b981;
  --emerald-bg: #ecfdf5;

  --bg-main: #ffffff;
  --bg-subtle: #f8fafc;
  --bg-card: #ffffff;
  --border-light: #e2e8f0;
  --border-subtle: #f1f5f9;

  --text-main: #0f172a;
  --text-muted: #64748b;
  --text-light: #94a3b8;
  --text-inverse: #ffffff;

  /* Typography */
  --font-sans: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;

  /* Shadows */
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.08), 0 2px 4px -2px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.08), 0 4px 6px -4px rgba(0, 0, 0, 0.04);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.08), 0 8px 10px -6px rgba(0, 0, 0, 0.03);
  --shadow-glow: 0 0 25px rgba(217, 119, 6, 0.25);

  /* Radii */
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --radius-xl: 24px;
  --radius-full: 9999px;

  /* Transitions */
  --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-base: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 5.5rem;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-sans);
  color: var(--text-main);
  background-color: var(--bg-main);
  line-height: 1.65;
}

section {
  overflow-x: clip;
}

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

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

ul, ol {
  list-style: none;
}

/* Container */
.container {
  width: 100%;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
  box-sizing: border-box;
}

/* Typography Utilities */
.section-title-wrap {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 3.5rem;
}

.badge-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background-color: rgba(217, 119, 6, 0.1);
  color: var(--accent);
  font-weight: 700;
  font-size: 0.825rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 0.4rem 1rem;
  border-radius: var(--radius-full);
  margin-bottom: 1rem;
  border: 1px solid rgba(217, 119, 6, 0.25);
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  line-height: 1.35;
}

.badge-tag.emerald {
  background-color: var(--emerald-bg);
  color: var(--emerald);
  border-color: rgba(5, 150, 105, 0.25);
}

.section-title {
  font-size: 2.25rem;
  font-weight: 800;
  color: var(--primary);
  line-height: 1.25;
  margin-bottom: 1rem;
  letter-spacing: -0.02em;
}

.section-subtitle {
  font-size: 1.1rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* Common Section Spacing */
.section {
  padding: 5.5rem 0;
}

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

/* Skeleton Loading & Shimmer */
.skeleton {
  background: linear-gradient(90deg, #f1f5f9 25%, #e2e8f0 50%, #f1f5f9 75%);
  background-size: 200% 100%;
  animation: skeletonShimmer 1.5s infinite;
  border-radius: var(--radius-md);
  position: relative;
  overflow: hidden;
}

@keyframes skeletonShimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

img.img-skeleton {
  background: linear-gradient(90deg, #f1f5f9 25%, #e2e8f0 50%, #f1f5f9 75%);
  background-size: 200% 100%;
  animation: skeletonShimmer 1.5s infinite;
}

img.img-skeleton.loaded {
  animation: none;
  background: none;
}

/* Responsive typography & Mobile Viewport Polish */
@media (max-width: 768px) {
  body {
    padding-bottom: 4.5rem; /* space for mobile bottom app bar */
  }
  .container {
    padding-left: 1rem;
    padding-right: 1rem;
  }
  .section {
    padding: 3.25rem 0;
  }
  .section-title-wrap {
    margin-bottom: 2.25rem;
  }
  .section-title {
    font-size: 1.75rem;
    letter-spacing: -0.02em;
  }
  .section-subtitle {
    font-size: 0.95rem;
  }
  .badge-tag {
    font-size: 0.725rem;
    padding: 0.35rem 0.8rem;
    letter-spacing: 0.02em;
    word-break: break-word;
  }
}

@media (max-width: 380px) {
  .container {
    padding-left: 0.85rem;
    padding-right: 0.85rem;
  }
  .badge-tag {
    font-size: 0.685rem;
    padding: 0.3rem 0.7rem;
  }
}
