/* ================================================================
   PHONESDUKAN BLOG
   Design System: #111 | #f7cf04 | #fff | #f5f5f5
   ================================================================ */

body {
  background: #f5f5f5;
  color: #111;
  font-family: "Inter", Arial, sans-serif;
}

/* ================================================================
   HERO
   ================================================================ */
.blog-hero {
  background: #111111;
  padding: 44px 0 40px;
}

.blog-shell {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 24px;
  text-align: center;
}

.blog-hero-label {
  margin: 0 0 12px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 2px;
  color: #f7cf04;
  text-transform: uppercase;
}

.blog-hero-title {
  margin: 0;
  color: #fff;
  font-size: clamp(28px, 4vw, 44px);
  line-height: 1.15;
  font-weight: 800;
  font-family: "Poppins", "Inter", sans-serif;
  letter-spacing: -0.02em;
}

.blog-hero-title span {
  color: #f7cf04;
}

.blog-hero-subtitle {
  margin: 14px auto 0;
  max-width: 680px;
  color: rgba(255, 255, 255, 0.75);
  line-height: 1.7;
  font-size: 15px;
}

/* ================================================================
   FILTER TABS
   ================================================================ */
.blog-filter-bar {
  background: #fff;
  border-top: 1px solid #ebebeb;
  border-bottom: 1px solid #ebebeb;
}

.blog-filter-inner {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.blog-filter-inner::-webkit-scrollbar {
  display: none;
}

.blog-tab {
  flex-shrink: 0;
  padding: 14px 22px;
  border: none;
  background: transparent;
  font-family: "Inter", Arial, sans-serif;
  font-size: 14px;
  font-weight: 500;
  color: #888;
  cursor: pointer;
  position: relative;
  white-space: nowrap;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  outline: none;
  transition: color 0.2s;
}

.blog-tab::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0;
  right: 0;
  height: 2px;
  background: #f7cf04;
  transform: scaleX(0);
  transition: transform 0.2s ease;
  border-radius: 2px 2px 0 0;
}

.blog-tab:hover {
  color: #111;
}

.blog-tab.active {
  color: #111;
  font-weight: 700;
}

.blog-tab.active::after {
  transform: scaleX(1);
}

/* ================================================================
   POSTS GRID
   ================================================================ */
.posts-page-wrapper {
  max-width: 1240px;
  margin: 0 auto;
  padding: 40px 24px 60px;
}

.posts-grid-wrapper {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

/* ================================================================
   POST CARD — matches homepage .home-blog-card
   ================================================================ */
.post-card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid #e5e5e5;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  text-decoration: none;
}

.post-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
}

/* ── Image ─────────────────────────────── */
.post-thumb {
  position: relative;
  display: block;
  text-decoration: none;
  -webkit-tap-highlight-color: transparent;
}

.post-thumb:focus,
.post-thumb:active {
  outline: none;
}

.post-img-wrapper {
  height: 200px;
  overflow: hidden;
  background: #f6f7f8;
}

.post-img-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.35s ease;
}

.post-card:hover .post-img-wrapper img {
  transform: scale(1.05);
}

/* ── Card body ────────────────────────── */
.post-content {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 14px 16px 16px;
  flex: 1;
}

/* ── Meta row ─────────────────────────── */
.post-meta {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 0;
  flex-wrap: wrap;
}

.post-meta-item {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-family: "Inter", Arial, sans-serif;
  font-size: 12px;
  font-weight: 400;
  font-style: normal;
  color: #777777;
  line-height: 1;
}

.post-meta-icon {
  flex-shrink: 0;
}

.post-date {
  font-size: 12px;
  font-style: normal;
  color: #777777;
  white-space: nowrap;
}

/* ── Title ────────────────────────────── */
.post-title {
  margin: 0;
  font-family: "Inter", Arial, sans-serif;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.35;
  color: #111111;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.post-title a,
.post-title a:link,
.post-title a:visited {
  color: #111;
  text-decoration: none;
}

.post-title a:hover {
  color: #111;
}

.post-title a:focus,
.post-title a:active {
  outline: none;
  color: #111;
  text-decoration: none;
}

/* ── Excerpt ──────────────────────────── */
.post-excerpt {
  margin: 0;
  font-family: "Inter", Arial, sans-serif;
  font-size: 13px;
  color: #555555;
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  flex: 1;
}

/* ── READ MORE button ─────────────────── */
.post-readmore,
.post-readmore:link,
.post-readmore:visited {
  margin-top: auto;
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 36px;
  padding: 0 16px;
  border: 1.5px solid #cccccc;
  border-radius: 4px;
  font-family: "Inter", Arial, sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.5px;
  color: #f7d117;
  text-decoration: none;
  background: #fff;
  text-transform: uppercase;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
  -webkit-tap-highlight-color: transparent;
}

.post-readmore:hover {
  background: #f7d117;
  border-color: #f7d117;
  color: #111111;
  text-decoration: none;
}

.post-readmore-arrow {
  font-style: normal;
}

.post-readmore:focus,
.post-readmore:active {
  outline: none !important;
  box-shadow: none !important;
  color: #f7cf04 !important;
  background: #fff !important;
  border-color: #cfcfcf !important;
  text-decoration: none;
}

.post-readmore:focus-visible {
  outline: none !important;
  border-color: #f7cf04 !important;
}

/* ================================================================
   EMPTY / NO POSTS
   ================================================================ */
.no-posts,
.blog-no-results {
  margin: 48px 0 0;
  color: #888;
  font-size: 15px;
  text-align: center;
}

/* ================================================================
   RESPONSIVE
   ================================================================ */

@media (max-width: 920px) {
  .posts-grid-wrapper {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
  }

  .blog-hero {
    padding: 36px 0 30px;
  }
}

@media (max-width: 560px) {
  .blog-shell,
  .posts-page-wrapper {
    padding-left: 14px;
    padding-right: 14px;
  }

  .blog-filter-inner {
    padding: 0 14px;
  }

  .blog-hero {
    padding: 28px 0 24px;
  }

  .blog-hero-subtitle {
    font-size: 14px;
  }

  .posts-grid-wrapper {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .blog-tab {
    padding: 12px 14px;
    font-size: 13px;
  }

  .post-img-wrapper {
    height: 180px;
  }

  .post-content {
    padding: 14px 16px 16px;
  }

  .post-title {
    font-size: 15px;
  }

  .post-excerpt {
    font-size: 12px;
    line-height: 1.55;
  }

  .post-readmore {
    width: 100%;
    justify-content: center;
  }

  .posts-page-wrapper {
    padding-top: 20px;
    padding-bottom: 36px;
  }
}
