/* ---------- ARCHIVE HERO SLIDER ---------- */
.archive-hero {
  position: relative;
  width: 100%;
  height: 80vh;
  min-height: 600px;
  overflow: hidden;
  background: var(--ink);
}

.hero-slide {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  opacity: 0;
  visibility: hidden;
  transition: opacity 1s ease-in-out, visibility 1s ease-in-out;
  display: flex;
  align-items: center;
}

.hero-slide.active {
  opacity: 1;
  visibility: visible;
  z-index: 2;
}

.hero-bg-video {
  position: absolute;
  top: 50%; left: 50%;
  min-width: 100%; min-height: 100%;
  width: auto; height: auto;
  transform: translateX(-50%) translateY(-50%);
  object-fit: cover;
  z-index: 1;
}

.hero-overlay {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: linear-gradient(rgba(14,27,42,0.8), rgba(14,27,42,0.95));
  z-index: 2;
}

.hero-content {
  position: relative;
  z-index: 3;
  max-width: 800px;
}

/* ---------- ARCHIVE LAYOUT ---------- */
.archive-main {
  background: #f8fafc;
  padding: 80px 0;
}

.archive-layout {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 40px;
  align-items: start;
}

/* ---------- SIDEBAR ---------- */
.sidebar-widget {
  background: #fff;
  padding: 30px;
  margin-bottom: 30px;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.03);
}

.widget-title {
  font-size: 18px;
  color: var(--ink);
  margin-bottom: 24px;
  font-weight: 600;
}

/* Search */
.custom-search-form {
  display: flex;
}
.custom-search-form input {
  flex: 1;
  padding: 12px 16px;
  border: 1px solid #eee;
  border-right: none;
  border-radius: 4px 0 0 4px;
  outline: none;
}
.custom-search-form button {
  background: #E81A5F; /* Pink accent from reference */
  color: #fff;
  border: none;
  padding: 0 20px;
  border-radius: 0 4px 4px 0;
  cursor: pointer;
  font-weight: 600;
}

/* Recent Posts */
.recent-posts-list { list-style: none; padding: 0; margin: 0; }
.recent-posts-list li {
  display: flex;
  gap: 16px;
  margin-bottom: 20px;
}
.recent-posts-list li:last-child { margin-bottom: 0; }
.rp-thumb {
  width: 70px; height: 70px;
  background-size: cover; background-position: center;
  border-radius: 4px;
  flex-shrink: 0;
}
.rp-info h5 {
  font-size: 14px; line-height: 1.4; margin-bottom: 6px;
}
.rp-info h5 a { color: var(--ink); text-decoration: none; }
.rp-meta { font-size: 11px; color: #888; }

/* Categories */
.category-list { list-style: none; padding: 0; margin: 0; }
.category-list li { margin-bottom: 12px; }
.category-list li a { color: #555; text-decoration: none; font-size: 15px; }
.category-list li a:hover { color: #E81A5F; }

/* Tags */
.tags-grid { display: flex; flex-wrap: wrap; gap: 8px; }
.tag-badge {
  background: #f4f4f4;
  color: #555;
  padding: 8px 14px;
  font-size: 12px;
  border-radius: 4px;
  text-decoration: none;
  transition: background 0.2s;
}
.tag-badge:hover { background: #E81A5F; color: #fff; }

/* ---------- BLOG GRID ---------- */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
}

.grid-card {
  background: #fff;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0,0,0,0.03);
}

.gc-image {
  display: block; width: 100%; height: 240px;
  background-size: cover; background-position: center;
}

.gc-content { padding: 24px; }
.gc-cat { font-size: 12px; color: #888; margin-bottom: 10px; display: block; }
.gc-title { font-size: 20px; line-height: 1.4; margin-bottom: 20px; }
.gc-title a { color: var(--ink); text-decoration: none; }
.gc-title a:hover { color: var(--blog-cyan); }

.gc-meta { display: flex; flex-direction: column; gap: 6px; }
.gc-author { display: flex; align-items: center; gap: 10px; font-size: 14px; font-weight: 600; }
.gc-author img { border-radius: 50%; }
.gc-date { font-size: 12px; color: #999; padding-left: 42px; }

/* Pagination */
.archive-pagination {
  margin-top: 50px;
  display: flex;
  justify-content: center;
  gap: 10px;
}
.archive-pagination .page-numbers {
  display: inline-flex; justify-content: center; align-items: center;
  width: 40px; height: 40px;
  background: #fff; color: var(--ink);
  text-decoration: none; border-radius: 4px; font-weight: 600;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}
.archive-pagination .page-numbers.current { background: #E81A5F; color: #fff; }

/* Responsive */
@media (max-width: 960px) {
  .archive-layout { grid-template-columns: 1fr; }
}
@media (max-width: 700px) {
  .blog-grid { grid-template-columns: 1fr; }
}