/* =========================================================
   GLOBAL
========================================================= */
body {
  font-family: 'DM Sans', system-ui, -apple-system, sans-serif;
  margin: 0;
  background: #fafafa;
  color: #222;
}

.brand-text {
  font-weight: 500;
  letter-spacing: -0.01em;
}

.container {
  max-width: 980px;
  margin: auto;
  padding: 24px;
}

.muted {
  color: #666;
}

/* =========================================================
   HEADER & NAVIGATION
========================================================= */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: #fff;
  border-bottom: 1px solid #f0f0f0;
}

.header-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

/* BRAND */
.brand-text {
  font-family: 'DM Sans', sans-serif;
  font-size: 50px;
  font-weight: 700;
  color: #B51E1E;
  text-decoration: none;
  letter-spacing: -0.01em;
}

/* NAV */
.header-right {
  display: flex;
  align-items: center;
  gap: 28px;
}

.header-right a {
  font-size: 15px;
  font-weight: 500;
  color: #333;
  text-decoration: none;
  position: relative;
}

/* Hover */
.header-right a:hover {
  color: #B51E1E;
}

/* Active state */
.header-right a.active {
  color: #B51E1E;
  font-weight: 600;
}

.header-right a.active::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 100%;
  height: 2px;
  background: #B51E1E;
  border-radius: 2px;
}

/* LOGIN BUTTON */
.btn-login {
  padding: 8px 18px;
  border: 1px solid #B51E1E;
  border-radius: 999px;
  color: #B51E1E !important;
  font-weight: 600;
}

.btn-login:hover {
  background: #B51E1E;
  color: #fff !important;
}


/* MOBILE */
@media (max-width: 768px) {
    .header-inner {
        height: 72px;
    }

    .brand img {
        height: 34px;
    }

    .nav-links {
        display: none; /* nanti bisa hamburger */
    }

    .header-wrap {
      height: 64px;
    }

    .header-right {
      gap: 18px;
    }

    .brand-text {
      font-size: 18px;
    }
}

/* =========================================================
   SEARCH BOX
========================================================= */
.search-box {
  display: flex;
  gap: 12px;
  margin: 24px 0 16px;
  background: #fff;
  padding: 16px;
  border-radius: 16px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.search-box input,
.search-box select {
  padding: 12px;
  border-radius: 8px;
  border: 1px solid #ddd;
  font-size: 14px;
}

.search-box input {
  flex: 1;
}

.search-box button {
  padding: 12px 20px;
  background: #8b0000;
  color: #fff;
  border: none;
  border-radius: 8px;
  cursor: pointer;
}

/* =========================================================
   CARD (LIST PAGE)
========================================================= */
.card {
  background: #fff;
  border-radius: 16px;
  padding: 24px;
  margin-bottom: 20px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.card h2 {
  margin: 0 0 8px;
  font-size: 22px;
}

.card h2 a {
  text-decoration: none;
  color: #222;
}

.card h2 a:hover {
  color: #8b0000;
}

.meta {
  font-size: 13px;
  color: #777;
  margin-bottom: 12px;
}

.badge {
  background: #8b0000;
  color: #fff;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 12px;
}

/* =========================================================
   CONTENT DETAIL (SHOW PAGE)
========================================================= */
.content-detail {
  max-width: 720px;
  margin: 0 auto;
}

/* Title */
.content-title {
  font-size: 38px;
  line-height: 1.25;
  margin-bottom: 16px;
}

/* Info bar */
.content-info {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  font-size: 14px;
  color: #666;
  margin-bottom: 32px;
}

.info-left,
.info-right {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.info-left .badge {
  align-self: flex-start;
}

.region {
  color: #555;
}

.info-right {
  text-align: right;
}

.info-right .author a {
  color: #8b0000;
  text-decoration: none;
  font-weight: 600;
}

.info-right .author a:hover {
  text-decoration: underline;
}

.info-right .date {
  font-size: 12px;
  color: #888;
}

/* Hero image */
.content-hero {
  margin: 32px 0;
}

.content-hero img {
  width: 100%;
  border-radius: 16px;
  display: block;
}

/* Summary */
.content-summary {
  font-size: 18px;
  line-height: 1.6;
  color: #444;
  margin-bottom: 32px;
}

/* Body */
.content-body {
  font-size: 17px;
  line-height: 1.8;
}

.content-body p {
  margin-bottom: 20px;
}

.content-body img {
  max-width: 100%;
  border-radius: 12px;
  margin: 24px 0;
}

/* =========================================================
   ABOUT PAGE
========================================================= */
.about-hero {
  margin-bottom: 48px;
}

.about-hero h1 {
  font-size: 36px;
  margin-bottom: 8px;
}

.about-hero .subtitle {
  font-size: 18px;
  color: #555;
}

.about-section {
  margin-bottom: 48px;
}

.about-section h2 {
  margin-bottom: 16px;
}

.about-section p {
  line-height: 1.7;
  margin-bottom: 12px;
}

.about-section blockquote {
  border-left: 4px solid #8b0000;
  padding-left: 16px;
  color: #555;
  font-style: italic;
  margin: 16px 0;
}

.about-list {
  margin-left: 18px;
  line-height: 1.7;
}

.about-values {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 24px;
}

.value-item h3 {
  margin-bottom: 6px;
}

.about-closing {
  text-align: center;
}

.author-profile {
  margin-bottom: 40px;
}

.author-profile h1 {
  font-size: 36px;
  margin-bottom: 8px;
}

.author-profile .muted {
  color: #666;
}

.author-articles .card {
  margin-bottom: 16px;
}

/* =========================================================
   FOOTER
========================================================= */
.site-footer {
  text-align: center;
  font-size: 13px;
  color: #888;
  padding: 24px 0;
}

.article-region {
    margin: 12px 0 24px;
    font-size: 14px;
    color: #666;
    display: flex;
    align-items: center;
    gap: 6px;
}

.article-region .region-icon {
    font-size: 14px;
}

.article-region .region-path {
    line-height: 1.4;
}

/* =========================================================
   PAGINATION
========================================================= */

.pagination {
  display: flex;
  justify-content: center;
  gap: 6px;
  margin: 48px 0 24px;
  padding: 0;
  list-style: none;
}

.page-item {
  display: inline-block;
}

.page-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 38px;
  height: 38px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid #ddd;
  color: #333;
  text-decoration: none;
  font-size: 14px;
  transition: all 0.2s ease;
  background: #fff;
}

/* Hover */
.page-link:hover {
  border-color: #B51E1E;
  color: #B51E1E;
}

/* Active */
.page-item.active .page-link,
.page-item.active span.page-link {
  background: #B51E1E;
  color: #fff;
  border-color: #B51E1E;
  font-weight: 600;
}

/* Disabled */
.page-item.disabled .page-link,
.page-item.disabled span.page-link {
  opacity: 0.4;
  cursor: not-allowed;
  background: #f5f5f5;
}

/* Prev / Next text */
.page-link[aria-label="Previous"],
.page-link[aria-label="Next"] {
  padding: 0 16px;
}

/* =========================================================
   RESPONSIVE
========================================================= */
@media (max-width: 640px) {
  .content-title {
    font-size: 28px;
  }

  .content-info {
    flex-direction: column;
    gap: 8px;
  }

  .info-right {
    align-items: flex-start;
    text-align: left;
  }
}
