:root {
  --bg: #ffffff;
  --fg: #1b1b1b;
  --muted: #6b7280;
  --brand: #DF2161;
  --brand-2: #df004a;
  --brand-contrast: #0b57d0;
  --surface: #f7f7f8;
  --card: #ffffff;
  --radius: 14px;
  --shadow: 0 6px 24px rgba(0, 0, 0, 0.08);
  --focus: 2px solid #1a73e8;
  --maxw: 1200px;
}
.blogmain {
  background: #f2f2f2;
  padding: 50px 0;
}
/* Controls */
.controls {
  margin: 1rem;
  border-radius: var(--radius);
  padding: 1rem;
  box-shadow: var(--shadow);
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}
@media (min-width: 768px) {
  .controls {
    grid-template-columns: 2fr 2fr 1fr;
    align-items: end;
    max-width: 80%;
    margin: 1rem auto;
  }
}
.controls .control {
  display: flex;
  flex-direction: column;
  gap: 0.375rem;
}
.controls .control label {
  font-weight: 600;
}
.controls .categories {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.controls .categories .chip {
  appearance: none;
  border: 1px solid #e5e7eb;
  background: #fff;
  padding: 0.5rem 0.75rem;
  border-radius: 999px;
  cursor: pointer;
}
.controls .categories .chip[aria-pressed="true"] {
  background: var(--brand);
  color: #fff;
  border-color: var(--brand);
}
.controls .select {
  display: flex;
  gap: 0.5rem;
}
.controls .select select {
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  padding: 0.6rem 0.8rem;
  flex: 1;
  background: #fff;
}
.controls .view-toggle {
  display: flex;
  gap: 0.5rem;
}
.controls .view-toggle button {
  border: 1px solid #e5e7eb;
  background: #fff;
  padding: 0.5rem 0.75rem;
  border-radius: 10px;
  cursor: pointer;
}
.controls .view-toggle button[aria-pressed="true"] {
  background: var(--brand);
  color: #fff;
  border-color: var(--brand);
}
.controls .status {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-block: 0.5rem;
  color: var(--muted);
}
.grid {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
}
[hidden] {
  display: none !important;
}
article.card {
  background: var(--card);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid #eef0f2;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
}
article.card .thumb {
  aspect-ratio: 16/9;
  background: #e5e7eb;
  overflow: hidden;
}
article.card .thumb img {
  inline-size: 100%;
  block-size: 100%;
  object-fit: cover;
  display: block;
}
article.card .content {
  padding: 1rem;
}
article.card .content .meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
  font-size: 0.9rem;
  color: var(--muted);
}
article.card .content .meta time {
  white-space: nowrap;
}
article.card .content .cats {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 0.5rem 0;
}
article.card .content .cats .badge {
  font-size: 0.75rem;
  line-height: 1;
  border: 1px solid #e5e7eb;
  padding: 0.35rem 0.5rem;
  border-radius: 999px;
  color: #374151;
  background: #fff;
}
article.card .content .excerpt {
  margin: 0.5rem 0 0;
}
article.card .content h2 {
  margin-bottom: 12px;
}
article.card .content h2 a {
  color: var(--brand);
}
nav.pager {
  display: flex;
  gap: 0.5rem;
  justify-content: center;
  margin-block: 1.25rem;
}
nav.pager button {
  border: 1px solid #e5e7eb;
  background: #fff;
  border-radius: 8px;
  padding: 0.5rem 0.8rem;
  cursor: pointer;
}
nav.pager button[disabled] {
  opacity: 0.5;
  cursor: not-allowed;
}
.post {
  background: var(--bg);
  border: 1px solid #eceff3;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.post header {
  padding: 1.25rem 1.25rem 0.5rem;
  height: auto !important;
}
.post header .meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
  color: var(--muted);
  font-size: 0.95rem;
}
.post header h1 {
  font-size: clamp(1.7rem, 3.5vw, 2.4rem);
  margin: 0.35rem 0 1.25rem;
}
.post .hero-media {
  margin: 0;
  padding: 0;
}
.post .hero-media img {
  display: block;
  border-radius: 0 0 var(--radius) var(--radius);
}
.post .contentBlog {
  padding: 1.25rem;
}
.post .contentBlog h2 {
  margin-top: 3rem;
  font-size: clamp(1.25rem, 2.5vw, 1.6rem);
}
.post .contentBlog h3 {
  margin-top: 1.25rem;
  font-size: 1.125rem;
}
.post .contentBlog p {
  margin-bottom: 16px;
}
.post .contentBlog ul {
  list-style: none;
  margin: 1.2em 0;
  padding: 0 0 0 0.2rem;
  position: relative;
}
.post .contentBlog ul li {
  position: relative;
  padding: 0.35rem 0.2rem 0.35rem 1.6rem;
  border-radius: 8px;
}
.post .contentBlog ul li::before {
  content: "";
  position: absolute;
  left: 0.2rem;
  top: 1.3rem;
  transform: translateY(-50%);
  width: 0.65rem;
  height: 0.65rem;
  border-radius: 50%;
  background: var(--brand);
  box-shadow: 0 0 0 3px #e9f2ff;
}
.post .contentBlog ul::before {
  content: "";
  position: absolute;
  left: 0.6rem;
  top: 0.2rem;
  bottom: 0.2rem;
  width: 2px;
  background: linear-gradient(#e9edf2, #e9edf2);
}
.post .contentBlog pre {
  overflow: auto;
  background: #0f172a;
  color: #e5e7eb;
  padding: 1rem;
  border-radius: 10px;
}
.post .contentBlog pre code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}
.post .contentBlog blockquote {
  border-left: 4px solid var(--brand);
  padding: 0.5rem 1rem;
  background: #f3f7ff;
  border-radius: 8px;
}
@media (max-width: 576px) {
  .post .contentBlog blockquote {
    margin: 10px 15px;
  }
}
.post .contentBlog figure {
  margin: 1.5rem 0;
}
.post .contentBlog figure figcaption {
  font-size: 0.9rem;
  color: var(--muted);
}
.post .contentBlog .author {
  display: flex;
  gap: 0.75rem;
  align-items: center;
}
.post .contentBlog .author img {
  width: 56px;
  height: 56px;
  border-radius: 50%;
}
.post footer {
  background: #fff;
}
.post .tags {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  justify-content: center;
}
.post .tags .tag {
  border: 1px solid var(--brand);
  color: var(--brand);
  border-radius: 999px;
  padding: 0.35rem 0.6rem;
  background: #fff;
  font-size: 16px;
  font-family: "Canada", Verdana, Arial, sans-serif;
}
aside .toc {
  position: sticky;
  top: 1rem;
  padding: 10px 20px 25px;
}
aside .toc h2 {
  font-size: 1rem;
  margin: 0.25rem 0 0.5rem;
}
aside .toc nav a {
  display: block;
  padding: 0.25rem 0;
  color: var(--fg);
}
aside .toc nav a:hover {
  color: var(--brand);
}
aside .toc nav a[aria-current="true"] {
  color: var(--brand);
}
aside.sidebar {
  position: relative;
}
@media (min-width: 992px) {
  aside.sidebar {
    height: 100%;
  }
}
aside.sidebar .card {
  background: var(--bg);
  border: 1px solid #eceff3;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1rem;
  margin-bottom: 30px;
}
aside.sidebar .card.short {
  background: linear-gradient(135deg, #0BB1DE, #532DEB);
}
aside.sidebar .card.short h2,
aside.sidebar .card.short p {
  color: #fff;
}
@media (max-width: 767px) {
  aside.sidebar .card.short {
    margin-top: 50px;
  }
}
aside.sidebar .card.not-show-mobil {
  position: sticky;
  top: 150px;
}
@media (max-width: 991px) {
  aside.sidebar .card.not-show-mobil {
    display: none;
  }
}
.post-nav {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}
.post-nav a {
  flex: 1 1 280px;
  border: 1px solid #eceff3;
  border-radius: 12px;
  background: #fff;
  padding: 0.75rem 1rem;
  text-decoration: none;
}
.progress {
  position: fixed;
  inset: 0 0 auto 0;
  height: 4px;
  background: #e5e7eb;
  top: 150px;
  z-index: 998;
}
.progress .progress__bar {
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, var(--brand), var(--brand-2));
}
@media (max-width: 767px) {
  .progress {
    top: 144px;
  }
}
@media (max-width: 576px) {
  .progress {
    top: 120px;
  }
}
@media (max-width: 460px) {
  .progress {
    top: 78px;
  }
}
