.page-hero {
  position: relative;
  background:
    linear-gradient(
      to right,
      rgba(122, 18, 20, 0.85) 60%,
      rgba(18, 1, 3, 0.65) 100%
    ),
    url("../images/banner-2.jpg") center/cover no-repeat;
  padding: 52px 0 44px;
}

.page-hero h1 {
  font-size: clamp(28px, 4vw, 48px);
  font-weight: 900;
  color: #fff;
  line-height: 1.1;
  text-transform: uppercase;
}

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.7);
  margin-top: 10px;
  flex-wrap: wrap;
}

.breadcrumb a {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
}

.breadcrumb a:hover {
  color: var(--accent);
}

.breadcrumb span {
  color: rgba(255, 255, 255, 0.45);
}

.breadcrumb .current {
  color: var(--accent);
  font-weight: 600;
}

.archive-wrap {
  background: var(--light-bg);
}

.archive-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 40px 20px 60px;
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 32px;
}

.posts-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
  flex-wrap: wrap;
  gap: 10px;
}

.posts-header h2 {
  font-size: 18px;
  font-weight: 900;
  color: var(--primary);
  display: flex;
  align-items: center;
  gap: 10px;
  text-transform: uppercase;
}

.posts-header h2::after {
  content: "";
  display: block;
  width: 36px;
  height: 3px;
  background: var(--accent);
  border-radius: 2px;
  margin-left: 4px;
}

.post-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
}

.post-card {
  background: #fff;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
  transition:
    transform 0.25s,
    box-shadow 0.25s;
  display: flex;
  flex-direction: column;
}

.post-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 32px rgba(0, 0, 0, 0.11);
}

.post-card-thumb {
  position: relative;
  overflow: hidden;
  display: block;
}

.post-card-thumb img {
  transition: transform 0.4s;
  display: block;
}

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

.date-badge {
  position: absolute;
  bottom: 0;
  left: 16px;
  background: var(--accent);
  color: #fff;
  border-radius: 6px 6px 0 0;
  padding: 4px 10px;
  text-align: center;
  line-height: 1.2;
  min-width: 44px;
}

.date-badge .day {
  font-size: 20px;
  font-weight: 900;
}

.date-badge .month {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.5px;
}

.post-card-body {
  padding: 16px 18px 20px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.post-cat {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.5px;
  color: var(--accent);
  text-transform: uppercase;
  margin-bottom: 8px;
}

.post-card-body h3 {
  font-size: 15px;
  font-weight: 800;
  color: var(--primary);
  line-height: 1.5;
  margin-bottom: 8px;
  flex: 1;
}

.post-card-body h3 a {
  color: inherit;
  text-decoration: none;
}

.post-card-body h3 a:hover {
  color: var(--accent);
}

.post-excerpt {
  font-size: 13px;
  color: #666;
  line-height: 1.65;
  margin-bottom: 14px;
}

.post-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
}

.post-read-more {
  font-size: 13px;
  font-weight: 700;
  color: var(--accent);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 4px;
  transition: gap 0.2s;
}

.post-read-more:hover {
  gap: 8px;
}

.post-views {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 12px;
  color: #aaa;
}

.pagination {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  margin-top: 36px;
}

.page-btn {
  width: 38px;
  height: 38px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 600;
  border: 1.5px solid var(--border);
  color: var(--primary);
  background: #fff;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.2s;
}

.page-btn:hover,
.page-btn.active {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}

.page-btn.active {
  background: var(--accent);
  border-color: var(--accent);
}

.page-dots {
  color: #aaa;
  padding: 0 4px 8px;
  font-weight: 700;
  align-self: flex-end;
}

.archive-empty {
  background: #fff;
  border-radius: 10px;
  padding: 28px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
}

.archive-empty h3 {
  color: var(--primary);
  font-weight: 900;
  margin-bottom: 8px;
}

.archive-empty p {
  color: #666;
  font-size: 14px;
}

.sidebar {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.sidebar-widget {
  background: #fff;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
}

.widget-title {
  font-size: 14px;
  font-weight: 800;
  color: var(--primary);
  padding: 14px 20px;
  border-bottom: 2px solid var(--accent);
  letter-spacing: 0.3px;
  text-transform: uppercase;
}

.widget-body {
  padding: 16px 20px;
}

.search-box {
  display: flex;
  gap: 0;
}

.search-box input {
  flex: 1;
  min-width: 0;
  padding: 10px 14px;
  border: 1.5px solid var(--border);
  border-right: none;
  border-radius: 8px 0 0 8px;
  font-size: 13px;
  font-family: inherit;
  outline: none;
  color: var(--text);
}

.search-box input:focus {
  border-color: var(--primary);
}

.search-box button {
  background: var(--primary);
  border: none;
  border-radius: 0 8px 8px 0;
  padding: 0 16px;
  cursor: pointer;
  transition: background 0.2s;
}

.search-box button:hover {
  background: var(--accent);
}

.cat-list {
  list-style: none;
}

.cat-list li {
  border-bottom: 1px solid var(--border);
}

.cat-list li:last-child {
  border-bottom: none;
}

.cat-list a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 0;
  font-size: 14px;
  color: var(--primary);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s;
}

.cat-list a:hover {
  color: var(--accent);
}

.cat-list a:hover .cat-count {
  background: var(--accent);
  color: #fff;
}

.cat-count {
  background: var(--light-bg);
  color: var(--primary);
  border-radius: 20px;
  padding: 2px 10px;
  font-size: 12px;
  font-weight: 700;
  transition:
    background 0.2s,
    color 0.2s;
}

.cta-widget {
  background: var(--primary);
  border-radius: 10px;
  padding: 24px 20px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.1);
}

.cta-widget h3 {
  color: #fff;
  font-size: 17px;
  font-weight: 900;
  line-height: 1.3;
  margin-bottom: 10px;
  text-transform: uppercase;
}

.cta-widget p {
  color: rgba(255, 255, 255, 0.75);
  font-size: 13px;
  margin-bottom: 14px;
  line-height: 1.6;
}

.cta-check {
  display: flex;
  align-items: center;
  gap: 8px;
  color: rgba(255, 255, 255, 0.85);
  font-size: 13px;
  margin-bottom: 8px;
}

.related-post {
  display: flex;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
}

.related-post:last-child {
  border-bottom: none;
}

.related-post img {
  width: 70px;
  height: 58px;
  object-fit: cover;
  border-radius: 6px;
  flex-shrink: 0;
}

.related-post-info h4 {
  font-size: 13px;
  font-weight: 700;
  color: var(--primary);
  line-height: 1.45;
}

.related-post-info h4 a {
  color: inherit;
  text-decoration: none;
}

.related-post-info h4 a:hover {
  color: var(--accent);
}

.related-post-info .rp-date {
  font-size: 11px;
  color: #aaa;
  margin-top: 4px;
}

@media (max-width: 1024px) {
  .archive-inner {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .post-grid {
    grid-template-columns: 1fr;
  }
}
