/* ===== Urdu News Point Archive – PRO+ Edition ===== */
.unp-archive {
  padding: 25px 0 50px;
  direction: rtl;
  font-family: 'Jameel Noori';
  background: #f9fafc;
}

.archive-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 40px;
  max-width: 1200px;
  margin: auto;
}

.archive-sidebar {
  position: sticky;
  top: 110px;
  align-self: start;
}

@media(max-width: 992px) {
  .archive-grid { grid-template-columns: 1fr; gap: 20px; }
  .archive-sidebar { display: none; }
}

/* ===== Archive Header ===== */
.archive-title {
  font-size: 28px;
  font-weight: 800;
  color: var(--color-primary);
  text-align: right;
  margin-bottom: 20px;
  border-right: 6px solid var(--color-primary);
  padding-right: 10px;
}

/* ===== Featured Post ===== */
.arch-featured {
  position: relative;
  overflow: hidden;
  border-radius: 14px;
  margin-bottom: 15px;
  width: 100%;
}

.arch-featured .thumb img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform .5s ease;
}

.arch-featured:hover .thumb img {
  transform: scale(1.06);
}

.arch-featured .overlay {
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 20px 20px 20px;
  background: linear-gradient(#000000ad 50%, rgba(0, 0, 0, .8));
  transition: background .3s ease;
  align-items: center;
}

.arch-featured .title {
  color: #fff;
  font-size: 28px;
  font-weight: 700;
  line-height: 1.5;
  margin: 0 0 5px;
}

.arch-featured .meta {
  color: rgba(255,255,255,.85);
  font-size: 15px;
}

/* ===== Grid Layout (2 columns) ===== */
#post-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 28px;
}

.arch-grid {
  background: #fff;
  border-radius: 12px;
  width: 48%;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0,0,0,.05);
  transition: transform .3s ease, box-shadow .3s ease;
}

.arch-grid:hover {
  transform: translateY(-6px);
  box-shadow: 0 8px 18px rgba(0,0,0,.1);
}

.arch-grid .thumb img {
  width: 100%;
  height: 180px;
  object-fit: fill;
  border-radius: 12px 12px 0 0;
}

.arch-grid .title {
  font-size: 22px;
  line-height: 1.6;
  padding: 10px 14px 0;
  margin: 0;
  color: #0f172a;
  text-align: right;
}

.arch-grid .meta {
  font-size: 15px;
  color: #6b7b91;
  padding: 6px 14px 12px;
  display: block;
  text-align: right;
}

/* ===== List Layout (3 posts section, image + text side by side, center aligned) ===== */
.arch-list {
  display: flex;
  align-items: center;              /* vertical center */
  justify-content: flex-start;
  gap: 20px;
  background: #fff;
  padding: 10px;
  border-radius: 12px;
  box-shadow: 0 2px 10px rgba(0,0,0,.05);
  width: 100%;
  transition: transform .3s ease, box-shadow .3s ease, background .3s ease;
  direction: rtl;
}

.arch-list:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 18px rgba(0,0,0,.08);
  background: #f3f6fb;
}
.arch-list a {
    display: flex;
}
/* Thumbnail */
.arch-list .thumb {
  flex-shrink: 0;
  width: 140px;
  height: 90px;
  overflow: hidden;
  position: relative;
}

.arch-list .thumb img {
  width: 100%;
  height: 100%;
  object-fit: fill;
  transition: transform .4s ease;
}

.arch-list:hover .thumb img {
  transform: scale(1.05);
}

/* Info block next to image */
.arch-list .info {
  flex: 1;
  text-align: right;
  display: flex;
  flex-direction: column;
  justify-content: center;          /* center vertically */
  margin-right: 15px;
}

.arch-list .title {
  font-size: 20px;
  font-weight: 600;
  color: #0f172a;
  margin: 0 0 6px;
  line-height: 1.5;
}

.arch-list .meta {
  font-size: 13px;
  color: #6b7b91;
}

/* Keep same side-by-side alignment on mobile too */
@media(max-width: 768px) {
  .arch-list {
    flex-direction: row;
    align-items: center;
    gap: 14px;
    padding: 10px 14px;
  }
  .arch-list .thumb {
    width: 120px;
    height: 80px;
  }
  .arch-list .title {
    font-size: 16px;
    line-height: 1.4;
  }
  .arch-list .meta {
    font-size: 12px;
  }
}
/* ===== Load More Button ===== */
.loadmore-wrap {
  text-align: center;
  margin-top: 35px;
}

.loadmore-btn {
  background: #0077b6;
  color: #fff;
  padding: 14px 36px;
  border: none;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: background .3s, transform .2s;
}

.loadmore-btn:hover {
  background: #005f8a;
  transform: translateY(-2px);
}

/* ===== Fade-in Animation for Load More ===== */
#post-container article {
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInUp .5s ease forwards;
}

@keyframes fadeInUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ===== Responsive ===== */
@media(max-width: 768px) {
  .arch-grid {
    width: 100%;
  }
  .arch-featured .title {
    font-size: 20px;
  }
  .arch-grid .title {
    font-size: 17px;
  }
}