/* Single Post GAPKI Mockup-inspired */
:root {
  --forest: #16302A;
  --forest-deep: #0E211C;
  --palm: #3F6F52;
  --gold: #C89B3C;
  --gold-soft: #E4C97A;
  --paper: #F7F5EF;
  --sage: #E9EFE7;
  --ink: #1C211D;
  --ink-soft: #4A5450;
  --line: #D8D2C4;
  --white: #FFFFFF;
}

/* Single post container */
body.single-post .wrap.post-container {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 15px;
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 48px;
  padding-top: 48px;
  padding-bottom: 80px;
  align-items: start;
}

body.single-post .post-main {
  min-width: 0;
}

body.single-post .post-breadcrumb {
  font-size: 0.85rem;
  color: var(--ink-soft);
  margin-bottom: 24px;
  font-weight: 500;
}

body.single-post .post-breadcrumb a {
  color: var(--palm);
}

body.single-post .post-title {
  font-size: 2.4rem;
  line-height: 1.25;
  margin-bottom: 16px;
  color: var(--forest-deep);
  font-family: "Fraunces", Georgia, serif;
}

body.single-post .post-meta {
  display: flex;
  gap: 16px;
  align-items: center;
  font-size: 0.85rem;
  color: var(--ink-soft);
  margin-bottom: 32px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
}

body.single-post .post-meta .author {
  font-weight: 600;
  color: var(--ink);
}

body.single-post .post-thumbnail {
  width: 100%;
  border-radius: 4px;
  margin-bottom: 32px;
  aspect-ratio: 16/9;
  object-fit: cover;
}

body.single-post .post-content {
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--ink);
}

body.single-post .post-content p {
  margin-bottom: 20px;
}

/* Sidebar */
body.single-post .post-sidebar {
  position: sticky;
  top: 100px;
}

body.single-post .sidebar-widget,
body.single-post .post-sidebar .widget {
  /*background: var(--paper);*/
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 24px;
  margin-bottom: 32px;
}

body.single-post .sidebar-widget h4,
body.single-post .post-sidebar .widget .widget-title {
  background: none !important;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.15rem;
  font-weight: 700;
  color: #000000;
  border-bottom: 1px solid var(--gold);
  padding-bottom: 6px;
  margin-bottom: 18px;
  display: inline-block;
  width: 100%;
}

body.single-post .sidebar-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

body.single-post .sidebar-list li {
  display: flex;
  gap: 14px;
  margin-bottom: 16px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
}

body.single-post .sidebar-list li:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: none;
}

body.single-post .sidebar-list .thumb {
  width: 80px;
  height: 60px;
  border-radius: 3px;
  object-fit: cover;
  flex-shrink: 0;
  background: var(--palm);
}

body.single-post .sidebar-list .details h5 {
  font-family: "IBM Plex Sans", Arial, sans-serif;
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1.35;
  margin-bottom: 6px;
}

body.single-post .sidebar-list .details span {
  font-size: 0.75rem;
  color: var(--ink-soft);
}

/* GAPKI Widgets styling */
body.single-post .post-sidebar ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

body.single-post .post-sidebar li {
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
}

body.single-post .post-sidebar li:last-child {
  border-bottom: none;
}

body.single-post .post-sidebar li a {
  color: var(--ink);
  font-size: 0.95rem;
  font-weight: 500;
}

body.single-post .post-sidebar li a:hover {
  color: var(--palm);
}

body.single-post .post-sidebar .post-date {
  display: block;
  font-size: 0.75rem;
  color: var(--ink-soft);
  margin-top: 4px;
}

body.single-post .post-sidebar .gk-pop-item,
body.single-post .post-sidebar .gk-recent-item {
  display: flex;
  gap: 12px;
  margin-bottom: 14px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
}

body.single-post .post-sidebar .gk-pop-item:last-child,
body.single-post .post-sidebar .gk-recent-item:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: none;
}

body.single-post .post-sidebar .gk-pop-media,
body.single-post .post-sidebar .gk-recent-media {
  flex-shrink: 0;
  width: 72px;
  height: 54px;
  border-radius: 3px;
  overflow: hidden;
}

body.single-post .post-sidebar .gk-pop-media img,
body.single-post .post-sidebar .gk-recent-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

body.single-post .post-sidebar .gk-pop-body,
body.single-post .post-sidebar .gk-recent-body {
  flex: 1;
  min-width: 0;
}

body.single-post .post-sidebar .gk-pop-title,
body.single-post .post-sidebar .gk-recent-title {
  font-size: 0.9rem;
  font-weight: 600;
  line-height: 1.3;
  color: var(--ink);
  display: block;
  margin-bottom: 4px;
}

body.single-post .post-sidebar .gk-pop-cat,
body.single-post .post-sidebar .gk-recent-cat {
  font-size: 0.7rem;
  color: var(--palm);
  font-weight: 600;
  text-transform: uppercase;
}

body.single-post .post-sidebar .gk-pop-meta,
body.single-post .post-sidebar .gk-recent-date {
  font-size: 0.7rem;
  color: var(--ink-soft);
  margin-top: 2px;
}

body.single-post .post-sidebar .gk-pop-num {
  display: inline-block;
  background: var(--palm);
  color: var(--white);
  font-size: 0.7rem;
  font-weight: 700;
  width: 20px;
  height: 20px;
  line-height: 20px;
  text-align: center;
  border-radius: 50%;
  margin-bottom: 6px;
}

body.single-post .post-sidebar .widget_gapki_sidebar_search form {
  display: flex;
  gap: 8px;
}

body.single-post .post-sidebar .widget_gapki_sidebar_search input[type="search"] {
  flex: 1;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: var(--white);
  color: var(--ink);
  font-family: inherit;
  font-size: 0.9rem;
}

body.single-post .post-sidebar .widget_gapki_sidebar_search button[type="submit"] {
  padding: 10px 16px;
  background: var(--palm);
  color: var(--white);
  border: none;
  border-radius: 4px;
  font-weight: 600;
  cursor: pointer;
}

body.single-post .post-sidebar .gk-tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

body.single-post .post-sidebar .gk-tag-item {
  display: inline-block;
  padding: 6px 12px;
  background: var(--sage);
  color: var(--forest);
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 500;
  border: 1px solid var(--line);
}

body.single-post .post-sidebar .gk-tag-item:hover {
  background: var(--palm);
  color: var(--white);
}

body.single-post .post-sidebar .gk-tag-count {
  display: inline-block;
  margin-left: 6px;
  font-size: 0.7rem;
  opacity: 0.8;
}

@media (max-width: 920px) {
  body.single-post .wrap.post-container {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  body.single-post .post-sidebar {
    position: static;
  }
  body.single-post .post-title {
    font-size: 1.8rem;
  }
}
