/* =========================================================
   THEME ROOT (KITE CAREERS STYLE)
========================================================= */
:root {
  --primary: #7E00A7;
  --primary-dark: #864c9a;
  --primary-light: #FCF5FF;

  --text-dark: #37436B;
  --text-body: #454C63;
  --text-muted: #959BAC;

  --border: rgba(126,0,167,0.2);

  --bg-white: #ffffff;
  --bg-light: linear-gradient(to bottom, #ffffff, #f4d6ff);

  --shadow-sm: 0 2px 8px rgba(126,0,167,0.08);
  --shadow-md: 0 6px 20px rgba(126,0,167,0.12);
  --shadow-lg: 0 12px 36px rgba(126,0,167,0.18);

  --transition: all 0.25s ease;
}

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

body {
  background: var(--bg-light);
  font-family: 'Istok Web', sans-serif;
  color: var(--text-dark);
}

/* =========================================================
   NAVBAR
========================================================= */
/* .navbar {
  background: #fff;
  border-bottom: 1px solid rgba(126,0,167,0.15);
  box-shadow: var(--shadow-sm);
  padding: 1rem 0;
}

.navbar-brand {
  font-weight: 800;
  font-size: 1.5rem;
  color: var(--text-dark);
}

.navbar-brand span {
  color: var(--primary);
} */

/* =========================================================
   BACK BUTTON
========================================================= */
.back-button {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  border: 1px solid rgba(126,0,167,0.3);
  color: var(--text-body);
  padding: 0.5rem 1.2rem;
  border-radius: 8px;
  font-size: 0.85rem;
  font-weight: 500;
  transition: var(--transition);
  text-decoration: none;
}

.back-button:hover {
  border-color: var(--primary);
  color: var(--primary);
  background: rgba(126,0,167,0.06);
}

/* =========================================================
   DETAIL CONTAINER
========================================================= */
.detail-container {
  max-width: 1000px;
  margin: 0 auto;
  padding: 2rem 1.5rem;
}

/* =========================================================
   HEADER
========================================================= */
.detail-category {
  display: inline-block;
  background: var(--primary);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.3rem 1rem;
  border-radius: 100px;
  margin-bottom: 1rem;
}

.detail-title {
  font-size: clamp(1.8rem, 5vw, 2.8rem);
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 1rem;
}

.detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  color: var(--text-muted);
  font-size: 0.85rem;
  border-bottom: 1px solid var(--border);
  padding-bottom: 1.5rem;
  margin-bottom: 1.5rem;
}

.detail-meta span i {
  color: var(--primary);
}

/* =========================================================
   IMAGE SECTION
========================================================= */
.detail-img-wrapper {
  background: var(--primary-light);
  border-radius: 14px;
  border: 1px solid var(--border);
  padding: 1rem;
  margin-bottom: 2rem;
}

.detail-img {
  border-radius: 12px;
  overflow: hidden;
}

.detail-img img {
  width: 100%;
  max-height: 500px;
  object-fit: cover;
}

/* =========================================================
   CONTENT
========================================================= */
.detail-content {
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--text-body);
}

.detail-content p {
  margin-bottom: 1.2rem;
}

/* =========================================================
   LOADING / ERROR
========================================================= */
.loading-state,
.error-state {
  text-align: center;
  padding: 4rem 2rem;
}

.error-state i {
  font-size: 4rem;
  color: var(--primary);
}

/* =========================================================
   RELATED POSTS
========================================================= */
.related-section {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
}

.related-title {
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
}

.related-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 1.5rem;
}

.related-card {
  background: #fff;
  border-radius: 14px;
  border: 1px solid rgba(126,0,167,0.25);
  overflow: hidden;
  transition: var(--transition);
  cursor: pointer;
  box-shadow: var(--shadow-sm);
}

.related-card:hover {
  transform: translateY(-5px);
  border-color: var(--primary);
  box-shadow: var(--shadow-lg);
}

.related-card-img {
  width: 100%;
  height: 160px;
  object-fit: cover;
}

.related-card-content {
  padding: 1rem;
}

.related-card-title {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text-dark);
}

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

/* =========================================================
   FOOTER
========================================================= */
.footer {
  background: #fff;
  border-top: 1px solid rgba(126,0,167,0.15);
  padding: 1.5rem;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.85rem;
  margin-top: 2rem;
}

/* =========================================================
   RESPONSIVE
========================================================= */
@media (max-width: 768px) {
  .detail-container {
    padding: 1.5rem 1rem;
  }

  .detail-img img {
    max-height: 320px;
  }

  .related-grid {
    grid-template-columns: 1fr;
  }
}