/* ══════════════════════════════════════════════════════════════
   BLOG-ARCHIVE.CSS
   ══════════════════════════════════════════════════════════════ */

/* PAGE HERO OVERRIDE (blog uses grid layout inside .phi) */
.phi {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 48px;
  align-items: center;
}
.blog-search {
  display: flex;
  background: #fff;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}
.blog-search input {
  flex: 1;
  padding: 13px 16px;
  font-size: 14px;
  border: none;
  outline: none;
  font-family: "DM Sans", sans-serif;
  color: #1a1a1a;
}
.blog-search input::placeholder {
  color: #9b9b9b;
}
.blog-search button {
  background: #e67817;
  color: #fff;
  border: none;
  padding: 13px 20px;
  font-size: 13px;
  font-weight: 600;
  font-family: "DM Sans", sans-serif;
  cursor: pointer;
}

/* CATEGORY TABS */
.cat-tabs {
  background: #fff;
  border-bottom: 2px solid #e4e0d8;
  padding: 0;
  position: sticky;
  top: 68px;
  z-index: 400;
  overflow-x: auto;
}
.cat-tabs-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  gap: 0;
  min-width: max-content;
}
.cat-tab {
  padding: 14px 20px;
  font-size: 13px;
  font-weight: 500;
  color: #6b6b6b;
  text-decoration: none;
  white-space: nowrap;
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
  transition: all 0.15s;
  display: flex;
  align-items: center;
  gap: 6px;
}
.cat-tab:hover,
.cat-tab.active {
  color: #2d6a4f;
  border-bottom-color: #e67817;
}

/* FEATURED POST */
.featured-post {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid #e4e0d8;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.07);
  margin-bottom: 48px;
}
.fp-img {
  background: linear-gradient(160deg, #1a3d2b, #2d6a4f);
  min-height: 320px;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 10px;
  color: rgba(255, 255, 255, 0.4);
  font-size: 12px;
}
.fp-img img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.fp-badge {
  position: absolute;
  top: 16px;
  left: 16px;
  background: #e67817;
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 20px;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  z-index: 1;
}
.fp-content {
  background: #fff;
  padding: 36px;
  display: flex;
  flex-direction: column;
}
.fp-cat {
  font-size: 11px;
  font-weight: 700;
  color: #e67817;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 8px;
}
.fp-title {
  font-family: "Playfair Display", serif;
  font-size: 24px;
  font-weight: 700;
  color: #1a1a1a;
  line-height: 1.3;
  margin-bottom: 12px;
}
.fp-excerpt {
  font-size: 14px;
  color: #6b6b6b;
  line-height: 1.78;
  margin-bottom: 20px;
  flex: 1;
}
.fp-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}
.fp-author {
  display: flex;
  align-items: center;
  gap: 8px;
}
.fp-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #e67817;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: "Playfair Display", serif;
  font-size: 11px;
  font-weight: 700;
  color: #fff;
  flex-shrink: 0;
}
.fp-author-name {
  font-size: 13px;
  font-weight: 600;
  color: #1a1a1a;
}
.fp-date {
  font-size: 12px;
  color: #9b9b9b;
}
.fp-reading {
  font-size: 12px;
  color: #9b9b9b;
  display: flex;
  align-items: center;
  gap: 4px;
}
.fp-reading::before {
  content: "·";
}

/* BLOG LAYOUT */
.blog-layout {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 48px;
  align-items: start;
}

/* POSTS GRID */
.posts-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
.post-card {
  background: #fff;
  border: 1px solid #e4e0d8;
  border-radius: 14px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition:
    box-shadow 0.2s,
    transform 0.18s;
  text-decoration: none;
}
.post-card:hover {
  box-shadow: 0 6px 28px rgba(0, 0, 0, 0.1);
  transform: translateY(-3px);
}
.pc-img {
  height: 180px;
  background: linear-gradient(160deg, #1a3d2b, #2d6a4f);
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 36px;
}
.pc-img img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.pc-cat {
  position: absolute;
  top: 10px;
  left: 10px;
  font-size: 9px;
  font-weight: 700;
  text-transform: uppercase;
  padding: 3px 9px;
  border-radius: 20px;
  letter-spacing: 0.06em;
  z-index: 1;
}
.cat-eye {
  background: #1a3d2b;
  color: #fff;
}
.cat-pk {
  background: #e67817;
  color: #fff;
}
.cat-life {
  background: #4338ca;
  color: #fff;
}
.cat-story {
  background: #7b3fa0;
  color: #fff;
}
.cat-diet {
  background: #2d6a4f;
  color: #fff;
}
.pc-body {
  padding: 18px;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.pc-cat-label {
  font-size: 10px;
  font-weight: 700;
  color: #e67817;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  margin-bottom: 6px;
}
.pc-title {
  font-family: "Playfair Display", serif;
  font-size: 17px;
  font-weight: 600;
  color: #1a1a1a;
  line-height: 1.35;
  margin-bottom: 8px;
}
.pc-excerpt {
  font-size: 12px;
  color: #6b6b6b;
  line-height: 1.65;
  margin-bottom: 12px;
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.pc-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: auto;
}
.pc-author {
  display: flex;
  align-items: center;
  gap: 7px;
}
.pc-avatar {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: #2d6a4f;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  font-weight: 700;
  color: #fff;
  flex-shrink: 0;
}
.pc-author-name {
  font-size: 11px;
  font-weight: 600;
  color: #1a1a1a;
}
.pc-date {
  font-size: 10px;
  color: #9b9b9b;
  margin-top: 1px;
}
.pc-read {
  font-size: 11px;
  font-weight: 600;
  color: #e67817;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 3px;
}
.pc-read::after {
  content: "→";
}

/* SIDEBAR */
.blog-sidebar {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.widget {
  background: #fff;
  border: 1px solid #e4e0d8;
  border-radius: 14px;
  padding: 20px;
}
.wt {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #2d6a4f;
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid #e4e0d8;
}
.rp-item {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 10px 0;
  border-bottom: 1px solid #f5f3ef;
  text-decoration: none;
  transition: all 0.15s;
}
.rp-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}
.rp-item:hover .rp-title {
  color: #e67817;
}
.rp-thumb {
  width: 52px;
  height: 52px;
  min-width: 52px;
  border-radius: 8px;
  background: linear-gradient(160deg, #1a3d2b, #2d6a4f);
  overflow: hidden;
}
.rp-cat {
  font-size: 9px;
  font-weight: 700;
  color: #e67817;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  margin-bottom: 3px;
}
.rp-title {
  font-size: 12px;
  font-weight: 600;
  color: #1a1a1a;
  line-height: 1.35;
  transition: color 0.15s;
}
.rp-date {
  font-size: 10px;
  color: #9b9b9b;
  margin-top: 3px;
}
.cat-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 0;
  border-bottom: 1px solid #f5f3ef;
  text-decoration: none;
  font-size: 13px;
  color: #3d3d2a;
  transition: all 0.15s;
}
.cat-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}
.cat-item:hover {
  color: #e67817;
  padding-left: 4px;
}
.cat-count {
  background: #f0faf3;
  border: 1px solid #b7e4c7;
  border-radius: 20px;
  padding: 2px 8px;
  font-size: 10px;
  font-weight: 600;
  color: #2d6a4f;
}
.newsletter-widget {
  background: linear-gradient(135deg, #1a3d2b, #2d6a4f);
  border-color: transparent;
}
.newsletter-widget .wt {
  color: rgba(255, 255, 255, 0.6);
  border-bottom-color: rgba(255, 255, 255, 0.12);
}
.newsletter-widget h4 {
  font-family: "Playfair Display", serif;
  font-size: 17px;
  color: #fff;
  margin-bottom: 6px;
}
.newsletter-widget p {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.75);
  margin-bottom: 14px;
  line-height: 1.6;
}
.nl-form {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.nl-form input {
  padding: 11px 14px;
  border-radius: 7px;
  border: none;
  font-size: 13px;
  font-family: "DM Sans", sans-serif;
  color: #1a1a1a;
  outline: none;
}
.nl-form button {
  background: #e67817;
  color: #fff;
  border: none;
  padding: 11px;
  border-radius: 7px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  font-family: "DM Sans", sans-serif;
}
.cta-sb {
  background: linear-gradient(135deg, #e67817, #c45f0a);
  border-color: transparent;
}
.cta-sb .wt {
  color: rgba(255, 255, 255, 0.65);
  border-bottom-color: rgba(255, 255, 255, 0.2);
}
.cta-sb h4 {
  font-family: "Playfair Display", serif;
  font-size: 17px;
  color: #fff;
  margin-bottom: 6px;
}
.cta-sb p {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 14px;
  line-height: 1.6;
}
.cta-sb-btn {
  display: block;
  background: #fff;
  color: #e67817;
  text-align: center;
  padding: 11px;
  border-radius: 7px;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  margin-bottom: 8px;
}
.cta-sb-wa {
  display: block;
  background: rgba(255, 255, 255, 0.18);
  color: #fff;
  text-align: center;
  padding: 11px;
  border-radius: 7px;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
}

/* PAGINATION */
.pag {
  display: flex;
  gap: 6px;
  align-items: center;
  justify-content: center;
  padding: 40px 0 0;
  flex-wrap: wrap;
}
.pb {
  min-width: 36px;
  height: 36px;
  padding: 0 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 7px;
  border: 1.5px solid #e4e0d8;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  color: #6b6b6b;
  background: #fff;
  text-decoration: none;
  transition: all 0.15s;
}
.pb:hover,
.pb.active {
  background: #e67817;
  border-color: #e67817;
  color: #fff;
}

/* RESPONSIVE */
@media (max-width: 1000px) {
  .blog-layout {
    grid-template-columns: 1fr;
  }
  .blog-sidebar {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
  }
  .blog-sidebar .newsletter-widget,
  .blog-sidebar .cta-sb {
    grid-column: 1/-1;
  }
}
@media (max-width: 900px) {
  .featured-post {
    grid-template-columns: 1fr;
  }
  .phi {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 600px) {
  .posts-grid {
    grid-template-columns: 1fr;
  }
  .blog-sidebar {
    grid-template-columns: 1fr;
  }
}

/* Paginate links list reset */
.pag ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  justify-content: center;
}
.pag ul li {
  display: flex;
}
.pag ul li a,
.pag ul li span {
  min-width: 36px;
  height: 36px;
  padding: 0 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 7px;
  border: 1.5px solid #e4e0d8;
  font-size: 13px;
  font-weight: 500;
  color: #6b6b6b;
  background: #fff;
  text-decoration: none;
  transition: all 0.15s;
}
.pag ul li a:hover,
.pag ul li span.current {
  background: #e67817;
  border-color: #e67817;
  color: #fff;
}
