@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

:root {
  --primary: #d40c1a;
  --primary-light: #ff3131;
  --primary-dark: #96281b;
  --foreground: #1a1a1a;
  --background: #ffffff;
  --card: #ffffff;
  --muted: #f5f5f5;
  --muted-fg: #666666;
  --border: #e8e8e8;
  --secondary: #1a1a1a;
  --secondary-fg: #f9f9f9;
  --accent: #fff0ef;
  --radius: 0.5rem;
  --shadow-card: 0 4px 20px -4px rgba(26, 26, 26, .08);
  --shadow-elegant: 0 10px 40px -10px rgba(192, 57, 43, .25);
  /* --gradient-hero: rgba(113, 0, 8, 0.5); */
  --gradient-hero: linear-gradient(135deg, #1a1a1a 0%, #3d1c17 50%, #d40c1a 100%);
  --gradient-primary: linear-gradient(135deg, #d40c1a, #ff3131);
  --gradient-dark: linear-gradient(180deg, #1a1a1a, #0d0d0d);
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Inter', sans-serif;
  color: var(--foreground);
  background: var(--background);
  line-height: 1.6;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* ── Utilities ─────────────────────────────────────── */
.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.text-primary {
  color: var(--primary);
}

.text-muted {
  color: var(--muted-fg);
}

.font-bold {
  font-weight: 700;
}

.section {
  padding: 5rem 0;
}

.section-lg {
  padding: 7rem 0;
}

.text-center {
  text-align: center;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: .375rem;
  padding: .25rem .75rem;
  border-radius: 999px;
  font-size: .75rem;
  font-weight: 600;
}

.badge-primary {
  background: rgba(192, 57, 43, .1);
  color: var(--primary);
}

.badge-emerald {
  background: rgba(16, 185, 129, .1);
  color: #059669;
}

.badge-amber {
  background: rgba(245, 158, 11, .1);
  color: #d97706;
}

.badge-rose {
  background: rgba(244, 63, 94, .1);
  color: #e11d48;
}

/* ── Top Header ────────────────────────────────────── */
.top-header {
  background: var(--secondary);
  color: rgba(255, 255, 255, 0.7);
  font-size: .75rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.top-header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 2.5rem;
}

.top-header-left,
.top-header-right {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.top-header a {
  display: flex;
  align-items: center;
  gap: .5rem;
  transition: color .2s;
}

.top-header a:hover {
  color: #fff;
}

.top-header-right {
  gap: 1rem;
}

.top-header-right a {
  color: rgba(255, 255, 255, 0.5);
}

.top-header-right a:hover {
  color: var(--primary-light);
}

@media (max-width: 640px) {
  .top-header-left span {
    display: none;
  }

  .top-header-left {
    gap: 1rem;
  }
}

/* ── Buttons ───────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .75rem 1.5rem;
  border-radius: var(--radius);
  font-size: .875rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: all .2s;
  text-decoration: none;
}

.btn-hero {
  background: var(--gradient-primary);
  color: #fff;
  box-shadow: var(--shadow-elegant);
}

.btn-hero:hover {
  opacity: .9;
  transform: translateY(-1px);
}

.btn-outline {
  background: transparent;
  border: 1.5px solid var(--border);
  color: var(--foreground);
}

.btn-outline:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.btn-outline-light {
  background: transparent;
  border: 1.5px solid rgba(255, 255, 255, .4);
  color: #fff;
}

.btn-outline-light:hover {
  background: rgba(255, 255, 255, .1);
}

.btn-ghost {
  background: transparent;
  color: var(--muted-fg);
  padding: .5rem;
}

.btn-ghost:hover {
  background: var(--muted);
  color: var(--foreground);
}

.btn-sm {
  padding: .375rem .75rem;
  font-size: .8rem;
}

.btn-lg {
  padding: .875rem 2rem;
  font-size: 1rem;
}

.btn-destructive {
  color: var(--primary);
}

.btn-destructive:hover {
  background: rgba(192, 57, 43, .1);
}

.btn-w-full {
  width: 100%;
  justify-content: center;
}

/* ── Navbar ────────────────────────────────────────── */
.navbar {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, .85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(232, 232, 232, .6);
}

.navbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 5rem;
}

.navbar-brand {
  display: flex;
  align-items: center;
  gap: .75rem;
}

.navbar-brand img {
  height: 3rem;
  width: auto;
}

.navbar-brand-text .name {
  font-size: .875rem;
  font-weight: 700;
}

.navbar-brand-text .sub {
  font-size: .625rem;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--muted-fg);
}

.navbar-links {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.navbar-links nav {
  display: flex;
  gap: .25rem;
}

.navbar-links nav a {
  padding: .5rem 1rem;
  border-radius: var(--radius);
  font-size: .875rem;
  font-weight: 500;
  color: rgba(26, 26, 26, .8);
  transition: all .2s;
}

.navbar-links nav a:hover,
.navbar-links nav a.active {
  background: var(--accent);
  color: var(--primary);
}

.navbar-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: .5rem;
}

.navbar-mobile {
  display: none;
  border-top: 1px solid var(--border);
  background: var(--background);
  padding: 1rem;
}

.navbar-mobile a {
  display: block;
  padding: .75rem 1rem;
  border-radius: var(--radius);
  font-weight: 500;
}

.navbar-mobile a:hover {
  background: var(--muted);
}

/* ── Footer ────────────────────────────────────────── */
.footer {
  background: var(--secondary);
  color: var(--secondary-fg);
  padding: 4rem 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.5rem;
}

.footer-brand img {
  height: 2.5rem;
}

.footer-brand p {
  margin-top: 1rem;
  font-size: .875rem;
  color: rgba(249, 249, 249, .7);
  line-height: 1.7;
}

.footer h4 {
  font-size: .75rem;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--primary);
  font-weight: 600;
}

.footer ul {
  list-style: none;
  margin-top: 1rem;
  display: flex;
  flex-direction: column;
  gap: .5rem;
}

.footer ul li,
.footer ul a {
  font-size: .875rem;
  color: rgba(249, 249, 249, .7);
}

.footer ul a:hover {
  color: var(--primary);
}

.footer-contact-item {
  display: flex;
  gap: .5rem;
  align-items: flex-start;
}

/* ── Footer Kontak — Mobile Layout ──────────────────── */
@media (max-width: 768px) {
  .footer-kontak-list {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: wrap !important;
    gap: .75rem !important;
  }

  /* Address: full-width baris pertama */
  .footer-kontak-list .footer-contact-item:first-child {
    width: 100%;
  }

  /* Phone & Email: sejajar di baris kedua */
  .footer-kontak-list .footer-contact-phone,
  .footer-kontak-list .footer-contact-email {
    flex: 1 1 0;
    min-width: 0;
  }

  /* Kolom Kontak memenuhi lebar footer */
  .footer-grid > div:last-child {
    grid-column: 1 / -1;
  }
}

.footer-bottom {
  margin-top: 3rem;
  border-top: 1px solid rgba(249, 249, 249, .1);
  padding: 1.5rem 0;
  text-align: center;
  font-size: .75rem;
  color: rgba(249, 249, 249, .4);
}

/* ── Card ──────────────────────────────────────────── */
.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: calc(var(--radius)*2);
  box-shadow: var(--shadow-card);
}

.card-body {
  padding: 1.5rem;
}

/* ── Hero Section ──────────────────────────────────── */
.hero {
  position: relative;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
}

.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: var(--gradient-hero);
  opacity: .5;
}

.hero-content {
  position: relative;
  max-width: 1280px;
  margin: 0 auto;
  padding: 7rem 1.5rem 11rem;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  border: 1px solid rgba(255, 255, 255, .2);
  background: rgba(255, 255, 255, .1);
  padding: .375rem 1rem;
  border-radius: 999px;
  font-size: .75rem;
  font-weight: 500;
  color: #fff;
  backdrop-filter: blur(4px);
}

.hero h1 {
  margin-top: 1.5rem;
  font-size: clamp(2rem, 5vw, 3.75rem);
  font-weight: 800;
  line-height: 1.15;
  color: #fff;
}

.hero p {
  margin-top: 1.5rem;
  max-width: 40rem;
  font-size: 1.125rem;
  color: rgba(255, 255, 255, .8);
}

.hero-btns {
  margin-top: 2.5rem;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

/* ── Stats Bar ─────────────────────────────────────── */
.stats-bar {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: var(--card);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  padding: 3rem 0;
  text-align: center;
}

.stat-value {
  font-size: 2rem;
  font-weight: 800;
  color: var(--primary);
}

.stat-label {
  margin-top: .25rem;
  font-size: .875rem;
  color: var(--muted-fg);
}

/* ── Section Header ────────────────────────────────── */
.section-tag {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  font-size: 2rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .05em;
  color: var(--primary);
  margin-bottom: 1rem;
}

.section-tag::before,
.section-tag::after {
  content: "";
  display: block;
  height: 4px;
  width: 40px;
  background: var(--primary);
  border-radius: 2px;
}

.section-title {
  margin-top: .75rem;
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  font-weight: 800;
}

.section-desc {
  margin-top: 1rem;
  color: var(--muted-fg);
}

/* ── Service Cards ─────────────────────────────────── */
.services-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  margin-top: 3.5rem;
}

.service-card {
  border-radius: calc(var(--radius)*2);
  border: 1px solid var(--border);
  background: var(--card);
  padding: 1.5rem;
  box-shadow: var(--shadow-card);
  transition: all .25s;
  display: flex;
  flex-direction: column;
}

.service-card:hover {
  transform: translateY(-4px);
  border-color: rgba(192, 57, 43, .4);
  box-shadow: var(--shadow-elegant);
}

.service-icon {
  width: 3rem;
  height: 3rem;
  border-radius: var(--radius);
  background: var(--gradient-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  box-shadow: var(--shadow-elegant);
}

.service-card h3 {
  margin-top: 1.25rem;
  font-size: 1.0625rem;
  font-weight: 700;
}

.service-card p {
  margin-top: .5rem;
  font-size: .875rem;
  color: var(--muted-fg);
}

/* ── About Section ─────────────────────────────────── */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.about-img {
  position: relative;
}

.about-img img {
  border-radius: calc(var(--radius)*3);
  box-shadow: var(--shadow-elegant);
}

.about-badge-float {
  position: absolute;
  bottom: -1.5rem;
  right: -1.5rem;
  background: var(--card);
  padding: 1.25rem;
  border-radius: calc(var(--radius)*2);
  box-shadow: var(--shadow-elegant);
  display: flex;
  align-items: center;
  gap: .75rem;
}

.about-badge-float .label {
  font-size: 1.5rem;
  font-weight: 800;
}

.about-badge-float .sub {
  font-size: .75rem;
  color: var(--muted-fg);
}

.about-list {
  list-style: none;
  margin-top: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: .75rem;
}

.about-list li {
  display: flex;
  align-items: flex-start;
  gap: .75rem;
}

.check-icon {
  width: 1.25rem;
  height: 1.25rem;
  color: var(--primary);
  flex-shrink: 0;
  margin-top: .1rem;
}

/* ── CTA Section ───────────────────────────────────── */
.cta-section {
  position: relative;
  overflow: hidden;
  background: var(--gradient-dark);
  padding: 5rem 0;
}

.cta-blob {
  position: absolute;
  border-radius: 50%;
  background: var(--primary);
  filter: blur(60px);
  opacity: .2;
}

.cta-section .container {
  position: relative;
  text-align: center;
}

.cta-section h2 {
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  font-weight: 800;
  color: #fff;
  margin-top: 1.5rem;
}

.cta-section p {
  margin-top: 1rem;
  font-size: 1.125rem;
  color: rgba(255, 255, 255, .7);
}

.cta-btns {
  margin-top: 2rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
}

/* ── Page Hero ─────────────────────────────────────── */
.page-hero {
  background: var(--gradient-hero);
  padding: 3rem 0 3rem;
  text-align: left;
}

.page-hero .tag {
  font-size: 2rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .05em;
  color: #fff;
}

.page-hero h1 {
  margin-top: .75rem;
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  color: #fff;
}

.page-hero p {
  margin: 1rem 0 0;
  max-width: 40rem;
  font-size: 1.125rem;
  color: rgba(255, 255, 255, .8);
}

.breadcrumb {
  margin-top: 0.5rem;
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.7);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.breadcrumb a {
  color: #fff;
  text-decoration: none;
  font-weight: 500;
  transition: opacity 0.2s;
}

.breadcrumb a:hover {
  opacity: 0.8;
}

.breadcrumb-sep {
  color: rgba(255, 255, 255, 0.5);
}

.page-hero--layanan {
  background: linear-gradient(135deg, #1a1a1a 0%, #3d1c17 50%, #d40c1a 100%), url('../assets/hero-datacenter.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.page-hero--artikel {
  background: linear-gradient(135deg, #1a1a1a 0%, #3d1c17 50%, #d40c1a 100%), url('../assets/about-team.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.page-hero--kontak {
  background: linear-gradient(135deg, #1a1a1a 0%, #3d1c17 50%, #d40c1a 100%), url('../assets/about-team.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

/* ── Layanan Page ──────────────────────────────────── */
.layanan-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.layanan-card {
  border-radius: calc(var(--radius)*3);
  border: 1px solid var(--border);
  background: var(--card);
  padding: 2rem;
  box-shadow: var(--shadow-card);
  transition: all .25s;
  display: flex;
  flex-direction: column;
}

.layanan-card:hover {
  transform: translateY(-4px);
  border-color: rgba(192, 57, 43, .4);
  box-shadow: var(--shadow-elegant);
}

.layanan-icon {
  width: 3.5rem;
  height: 3.5rem;
  border-radius: calc(var(--radius)*1.5);
  background: var(--gradient-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  box-shadow: var(--shadow-elegant);
}

.layanan-card h3 {
  margin-top: 1.5rem;
  font-size: 1.25rem;
  font-weight: 700;
}

.layanan-card>p {
  margin-top: .75rem;
  font-size: .875rem;
  color: var(--muted-fg);
}

.layanan-features {
  list-style: none;
  margin-top: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: .5rem;
}

.layanan-features li {
  display: flex;
  align-items: center;
  gap: .5rem;
  font-size: .875rem;
}

/* ── Artikel Grid ──────────────────────────────────── */
.artikel-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.artikel-card {
  border-radius: calc(var(--radius)*3);
  border: 1px solid var(--border);
  background: var(--card);
  box-shadow: var(--shadow-card);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: all .25s;
}

.artikel-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-elegant);
}

.artikel-thumb {
  height: 11rem;
  background: var(--gradient-primary);
  position: relative;
  overflow: hidden;
}

.artikel-cat {
  position: absolute;
  bottom: 1rem;
  left: 1rem;
  background: rgba(255, 255, 255, .95);
  color: var(--primary);
  font-size: .75rem;
  font-weight: 700;
  padding: .25rem .75rem;
  border-radius: 999px;
}

.artikel-body {
  padding: 1.5rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.artikel-date {
  display: flex;
  align-items: center;
  gap: .375rem;
  font-size: .75rem;
  color: var(--muted-fg);
}

.artikel-body h2 {
  margin-top: .75rem;
  font-size: 1.0625rem;
  font-weight: 700;
  line-height: 1.4;
  transition: color .2s;
}

.artikel-card:hover h2 {
  color: var(--primary);
}

.artikel-body p {
  margin-top: .5rem;
  flex: 1;
  font-size: .875rem;
  color: var(--muted-fg);
}

.artikel-read {
  margin-top: 1.25rem;
  font-size: .875rem;
  font-weight: 700;
  color: var(--primary);
  display: inline-flex;
  align-items: center;
  gap: .25rem;
  transition: gap .2s;
  cursor: pointer;
  background: none;
  border: none;
}

.artikel-card:hover .artikel-read {
  gap: .5rem;
}

/* ── Kontak Page ───────────────────────────────────── */
.kontak-grid {
  display: grid;
  grid-template-columns: 3fr 2fr;
  gap: 3rem;
}

.kontak-form-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: calc(var(--radius)*3);
  padding: 2.5rem;
  box-shadow: var(--shadow-card);
}

.kontak-form-title {
  display: flex;
  align-items: center;
  gap: .75rem;
}

.kontak-form-title h2 {
  font-size: 1.5rem;
  font-weight: 700;
}

.kontak-info-card {
  background: var(--gradient-dark);
  border-radius: calc(var(--radius)*3);
  padding: 2.5rem;
  color: #fff;
  box-shadow: var(--shadow-elegant);
}

.kontak-info-card h3 {
  font-size: 1.25rem;
  font-weight: 700;
}

.kontak-info-item {
  display: flex;
  gap: 1rem;
}

.kontak-info-icon {
  width: 2.75rem;
  height: 2.75rem;
  border-radius: var(--radius);
  background: var(--gradient-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.kontak-info-label {
  font-size: .65rem;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: rgba(255, 255, 255, .6);
}

.kontak-info-value {
  margin-top: .125rem;
  font-size: .875rem;
  font-weight: 500;
}

/* ── Forms ─────────────────────────────────────────── */
.form-group {
  display: flex;
  flex-direction: column;
  gap: .5rem;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}

label {
  font-size: .875rem;
  font-weight: 500;
}

.form-control {
  width: 100%;
  padding: .625rem .875rem;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  font-size: .875rem;
  font-family: inherit;
  background: var(--background);
  color: var(--foreground);
  transition: border-color .2s, box-shadow .2s;
  outline: none;
}

.form-control:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(192, 57, 43, .15);
}

textarea.form-control {
  resize: vertical;
}

/* ── Alert ─────────────────────────────────────────── */
.alert {
  padding: .875rem 1.25rem;
  border-radius: var(--radius);
  margin-bottom: 1.5rem;
  font-size: .875rem;
  font-weight: 500;
}

.alert-success {
  background: rgba(16, 185, 129, .1);
  color: #065f46;
  border: 1px solid rgba(16, 185, 129, .3);
}

.alert-danger {
  background: rgba(192, 57, 43, .1);
  color: var(--primary-dark);
  border: 1px solid rgba(192, 57, 43, .3);
}

/* ── Admin Sidebar ─────────────────────────────────── */
.admin-wrap {
  display: flex;
  min-height: 100vh;
  background: var(--muted);
}

.sidebar {
  width: 16rem;
  flex-shrink: 0;
  height: 100vh;
  position: sticky;
  top: 0;
  display: flex;
  flex-direction: column;
  background: #fff;
  border-right: 1px solid var(--border);
}

.sidebar-brand {
  display: flex;
  align-items: center;
  gap: .75rem;
  padding: 1.25rem;
  border-bottom: 1px solid var(--border);
}

.sidebar-brand img {
  height: 2rem;
  width: auto;
  border-radius: .25rem;
}

.sidebar-brand .name {
  font-size: .875rem;
  font-weight: 700;
}

.sidebar-brand .sub {
  font-size: .625rem;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--muted-fg);
}

.sidebar-nav {
  flex: 1;
  overflow-y: auto;
  padding: 1rem .75rem;
  display: flex;
  flex-direction: column;
  gap: .25rem;
}

.sidebar-item {
  display: flex;
  align-items: center;
  gap: .75rem;
  padding: .625rem .75rem;
  border-radius: var(--radius);
  font-size: .875rem;
  font-weight: 500;
  color: rgba(26, 26, 26, .7);
  transition: all .2s;
}

.sidebar-item:hover {
  background: var(--muted);
  color: var(--foreground);
}

.sidebar-item.active {
  background: var(--primary);
  color: #fff;
}

.sidebar-item svg {
  width: 1rem;
  height: 1rem;
}

.sidebar-footer {
  border-top: 1px solid var(--border);
  padding: .75rem;
}

/* ── Admin Main ────────────────────────────────────── */
.admin-main {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.admin-topbar {
  position: sticky;
  top: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  gap: 1rem;
  height: 4rem;
  border-bottom: 1px solid var(--border);
  background: rgba(255, 255, 255, .85);
  backdrop-filter: blur(8px);
  padding: 0 2rem;
}

.admin-search {
  position: relative;
  flex: 1;
  max-width: 24rem;
}

.admin-search svg {
  position: absolute;
  left: .75rem;
  top: 50%;
  transform: translateY(-50%);
  width: 1rem;
  height: 1rem;
  color: var(--muted-fg);
  pointer-events: none;
}

.admin-search input {
  width: 100%;
  padding: .5rem .75rem .5rem 2.25rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: .875rem;
  background: var(--background);
  outline: none;
}

.admin-search input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 2px rgba(192, 57, 43, .15);
}

.admin-content {
  flex: 1;
  padding: 2rem;
}

.admin-page-title {
  font-size: 1.75rem;
  font-weight: 800;
}

.admin-page-sub {
  margin-top: .25rem;
  font-size: .875rem;
  color: var(--muted-fg);
}

/* ── Stats Cards ───────────────────────────────────── */
.stat-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
}

.stat-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: calc(var(--radius)*2);
  padding: 1.25rem;
}

.stat-card-inner {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
}

.stat-card-label {
  font-size: .875rem;
  color: var(--muted-fg);
}

.stat-card-val {
  margin-top: .5rem;
  font-size: 1.5rem;
  font-weight: 800;
}

.stat-card-delta {
  margin-top: .25rem;
  font-size: .75rem;
  color: #059669;
  display: flex;
  align-items: center;
  gap: .25rem;
}

.stat-card-icon {
  padding: .625rem;
  border-radius: var(--radius);
  background: var(--muted);
}

/* ── Admin Tables ──────────────────────────────────── */
.table-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: calc(var(--radius)*2);
  overflow: hidden;
}

.table-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid var(--border);
}

.table-card-title {
  font-size: 1rem;
  font-weight: 700;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: .875rem;
}

thead {
  background: rgba(245, 245, 245, .5);
}

th {
  padding: .75rem 1.25rem;
  text-align: left;
  font-size: .75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .05em;
  color: var(--muted-fg);
  border-bottom: 1px solid var(--border);
}

td {
  padding: .75rem 1.25rem;
  border-bottom: 1px solid var(--border);
}

tr:last-child td {
  border-bottom: none;
}

tr:hover td {
  background: rgba(245, 245, 245, .5);
}

/* ── Progress Bar ──────────────────────────────────── */
.progress {
  height: .5rem;
  background: var(--muted);
  border-radius: 999px;
  overflow: hidden;
  margin-top: .375rem;
}

.progress-bar {
  height: 100%;
  background: var(--gradient-primary);
  border-radius: 999px;
}

/* ── Message Cards (admin) ─────────────────────────── */
.message-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: calc(var(--radius)*2);
  padding: 1.25rem;
}

.message-card-body {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  flex-wrap: wrap;
}

.message-meta {
  display: flex;
  flex-wrap: wrap;
  gap: .25rem 1.25rem;
  margin-top: .75rem;
  font-size: .75rem;
  color: var(--muted-fg);
}

.message-meta span {
  display: flex;
  align-items: center;
  gap: .375rem;
}

/* ── Detail Pages ──────────────────────────────────── */
.layanan-features--lg li {
  font-size: 1rem;
  gap: .75rem;
  padding: .375rem 0;
}

.layanan-features--lg svg {
  flex-shrink: 0;
}

.detail-features-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: calc(var(--radius)*3);
  padding: 2rem 2.5rem;
  box-shadow: var(--shadow-card);
}

.detail-cta-box {
  background: var(--gradient-dark);
  border-radius: calc(var(--radius)*3);
  padding: 3rem;
  color: #fff;
  text-align: center;
  box-shadow: var(--shadow-elegant);
}

.detail-cta-box h2 {
  font-size: 1.75rem;
  font-weight: 800;
}

.detail-cta-box p {
  margin-top: .75rem;
  color: rgba(255, 255, 255, .8);
  font-size: 1.0625rem;
}

/* ── Artikel Detail Content (TinyMCE output) ───────── */
.artikel-detail-content {
  font-size: 1.0625rem;
  line-height: 1.85;
  color: var(--foreground);
}

.artikel-detail-content h1,
.artikel-detail-content h2,
.artikel-detail-content h3,
.artikel-detail-content h4 {
  margin: 2rem 0 1rem;
  font-weight: 700;
  line-height: 1.3;
}

.artikel-detail-content h1 {
  font-size: 2rem;
}

.artikel-detail-content h2 {
  font-size: 1.5rem;
}

.artikel-detail-content h3 {
  font-size: 1.25rem;
}

.artikel-detail-content p {
  margin-bottom: 1.25rem;
}

.artikel-detail-content ul,
.artikel-detail-content ol {
  margin: 1rem 0 1.25rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: .5rem;
}

.artikel-detail-content li {
  line-height: 1.7;
}

.artikel-detail-content blockquote {
  margin: 1.5rem 0;
  padding: 1rem 1.5rem;
  border-left: 4px solid var(--primary);
  background: var(--accent);
  border-radius: 0 var(--radius) var(--radius) 0;
  font-style: italic;
  color: var(--muted-fg);
}

.artikel-detail-content img {
  max-width: 100%;
  border-radius: var(--radius);
  margin: 1.5rem 0;
}

.artikel-detail-content a {
  color: var(--primary);
  text-decoration: underline;
}

.artikel-detail-content a:hover {
  opacity: .8;
}

.artikel-detail-content pre,
.artikel-detail-content code {
  background: #1e1e1e;
  color: #d4d4d4;
  border-radius: var(--radius);
  font-family: 'Courier New', monospace;
  font-size: .875rem;
}

.artikel-detail-content pre {
  padding: 1.25rem;
  overflow-x: auto;
  margin: 1.5rem 0;
}

.artikel-detail-content code {
  padding: .125rem .375rem;
}

.artikel-detail-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0;
}

.artikel-detail-content th,
.artikel-detail-content td {
  border: 1px solid var(--border);
  padding: .625rem 1rem;
  text-align: left;
}

.artikel-detail-content thead th {
  background: var(--muted);
  font-weight: 600;
}

/* ── SVG Icons ─────────────────────────────────────── */
svg.icon {
  display: inline-block;
  vertical-align: middle;
}

/* ── Responsive ────────────────────────────────────── */
@media (max-width: 1024px) {
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .stat-cards {
    grid-template-columns: repeat(2, 1fr);
  }

  .about-grid {
    grid-template-columns: 1fr;
  }

  .about-badge-float {
    display: none;
  }
}

@media (max-width: 768px) {
  .navbar-links {
    display: none;
  }

  .navbar-toggle {
    display: flex;
  }

  .navbar-mobile.open {
    display: block;
  }

  .layanan-grid,
  .artikel-grid {
    grid-template-columns: 1fr;
  }

  .kontak-grid {
    grid-template-columns: 1fr;
  }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .form-grid {
    grid-template-columns: 1fr;
  }

  .sidebar {
    display: none;
  }

  .stat-cards {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 480px) {
  .stats-grid {
    grid-template-columns: 1fr 1fr;
  }

  .stat-cards {
    grid-template-columns: 1fr;
  }
}

.card-img-full {
  width: calc(100% + 3rem);
  margin: -1.5rem -1.5rem 1rem -1.5rem;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: calc(var(--radius)*2) calc(var(--radius)*2) 0 0;
  display: block;
  max-width: none;
}

.layanan-card .card-img-full {
  width: calc(100% + 4rem);
  margin: -2rem -2rem 1.5rem -2rem;
  border-radius: calc(var(--radius)*3) calc(var(--radius)*3) 0 0;
}

/* Slider CSS */
.carousel-container {
  position: relative;
  width: 100%;
  padding-bottom: 2.5rem;
}

.carousel-track {
  display: flex;
  gap: 1.5rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.carousel-track::-webkit-scrollbar {
  display: none;
}

.carousel-slide {
  flex: 0 0 calc(25% - 1.125rem);
  scroll-snap-align: start;
}

@media (max-width: 1024px) {
  .carousel-slide {
    flex: 0 0 calc(33.333% - 1rem);
  }
}

@media (max-width: 768px) {
  .carousel-slide {
    flex: 0 0 calc(50% - 0.75rem);
  }
}

@media (max-width: 480px) {
  .carousel-slide {
    flex: 0 0 100%;
  }
}

.carousel-indicators {
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 0.5rem;
}

.carousel-indicator {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--border);
  border: none;
  cursor: pointer;
  padding: 0;
  transition: all 0.3s ease;
}

.carousel-indicator.active {
  background: var(--primary);
  width: 24px;
  border-radius: 4px;
}

.service-features-list {
  margin-top: 1rem;
  padding: 0;
  list-style: none;
}

.service-features-list li {
  font-size: 0.8125rem;
  color: var(--fg);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
}

/* ── Pagination ─────────────────────────────────────── */
.pagination-wrap {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: .375rem;
  flex-wrap: wrap;
  margin-top: 1.5rem;
}

.pg-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.25rem;
  height: 2.25rem;
  padding: 0 .625rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: .8125rem;
  font-weight: 500;
  text-decoration: none;
  color: var(--foreground);
  background: var(--card);
  transition: background .15s, border-color .15s, color .15s;
  cursor: pointer;
}

.pg-btn:hover {
  background: var(--muted);
  border-color: var(--primary);
  color: var(--primary);
}

.pg-btn.pg-active {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
  cursor: default;
}

.pg-btn.pg-disabled {
  opacity: .4;
  cursor: not-allowed;
  pointer-events: none;
}

.pg-btn.pg-ellipsis {
  border: none;
  background: transparent;
  cursor: default;
  color: var(--muted-fg);
}

.pagination-publik {
  justify-content: center;
  margin-top: 3rem;
  gap: .5rem;
}

.pagination-publik .pg-btn {
  min-width: 2.75rem;
  height: 2.75rem;
  font-size: .9375rem;
}