@import url("https://fonts.googleapis.com/css2?family=Bebas+Neue:wght@400&family=Lora:wght@400;500;600;700&family=Montserrat:wght@400;500;600&display=swap");

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Lora", serif;
  line-height: 1.6;
  color: #0c2340;
  background: #f5f5f5;
}

.archive-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 20px;
  position: relative;
}

/* Military-inspired section divider */
.archive-container::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #9d2235 0%, #d4af37 50%, #0c2340 100%);
}

.archive-navigation {
  margin-bottom: 30px;
}

.breadcrumb {
  font-family: "Montserrat", sans-serif;
  font-size: 0.9rem;
  color: #b0b0b0;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 500;
}

.breadcrumb a {
  color: #9d2235;
  text-decoration: none;
  transition: color 0.3s ease;
}

.breadcrumb a:hover {
  color: #d4af37;
}

.breadcrumb span {
  margin: 0 10px;
  color: #b0b0b0;
}

.archive-header {
  background: white;
  border-radius: 8px;
  padding: 60px 40px;
  margin-bottom: 40px;
  box-shadow: 0 4px 20px rgba(12, 35, 64, 0.1);
  border-top: 4px solid #9d2235;
  text-align: center;
}

.archive-type-badge {
  display: inline-block;
  background: rgba(12, 35, 64, 0.9);
  color: white;
  padding: 8px 20px;
  border-radius: 4px;
  font-family: "Montserrat", sans-serif;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 25px;
  border-left: 4px solid #d4af37;
}

.archive-title {
  font-family: "Bebas Neue", sans-serif;
  font-size: 3.5rem;
  font-weight: 400;
  color: #0c2340;
  margin-bottom: 20px;
  letter-spacing: 2px;
  text-transform: uppercase;
  line-height: 1.2;
}

.archive-description {
  font-family: "Lora", serif;
  font-size: 1.2rem;
  color: #b0b0b0;
  max-width: 600px;
  margin: 0 auto 25px;
  font-style: italic;
  line-height: 1.6;
}

.archive-stats {
  font-family: "Montserrat", sans-serif;
  color: #0c2340;
  font-weight: 600;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.archive-filters {
  background: white;
  border-radius: 8px;
  padding: 30px 40px;
  margin-bottom: 40px;
  box-shadow: 0 4px 20px rgba(12, 35, 64, 0.1);
  border-left: 4px solid #d4af37;
}

.filters-title {
  font-family: "Bebas Neue", sans-serif;
  font-size: 1.5rem;
  color: #0c2340;
  margin-bottom: 20px;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.filter-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.filter-btn {
  font-family: "Montserrat", sans-serif;
  padding: 10px 20px;
  border: 2px solid #b0b0b0;
  background: white;
  color: #0c2340;
  border-radius: 6px;
  text-decoration: none;
  transition: all 0.3s ease;
  font-weight: 600;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  display: inline-block;
}

.filter-btn:hover {
  border-color: #9d2235;
  color: #9d2235;
  text-decoration: none;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(157, 34, 53, 0.2);
}

.filter-btn.active {
  background: #9d2235;
  border-color: #9d2235;
  color: white;
  box-shadow: 0 4px 12px rgba(157, 34, 53, 0.3);
}

.posts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 30px;
  margin-bottom: 50px;
}

.post-card {
  background: white;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(12, 35, 64, 0.1);
  transition: all 0.3s ease;
  border: 1px solid #b0b0b0;
  text-decoration: none;
  color: inherit;
  border-top: 4px solid transparent;
}

.post-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 8px 30px rgba(12, 35, 64, 0.2);
  text-decoration: none;
  color: inherit;
  border-top-color: #d4af37;
}

.post-card.featured {
  grid-column: span 2;
  border-top-color: #9d2235;
}

.post-thumbnail {
  width: 100%;
  height: 240px;
  background: #f5f5f5;
  position: relative;
  overflow: hidden;
}

.post-card.featured .post-thumbnail {
  height: 300px;
}

.post-thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

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

.post-category {
  position: absolute;
  top: 16px;
  left: 16px;
  background: rgba(12, 35, 64, 0.9);
  color: white;
  padding: 8px 16px;
  border-radius: 4px;
  font-family: "Montserrat", sans-serif;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  border-left: 4px solid #d4af37;
}

.post-content {
  padding: 30px;
}

.post-meta {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 15px;
  font-family: "Montserrat", sans-serif;
  font-size: 0.85rem;
  color: #b0b0b0;
  font-weight: 500;
  flex-wrap: wrap;
}

.meta-item {
  display: flex;
  align-items: center;
  gap: 6px;
}

.post-title {
  font-family: "Bebas Neue", sans-serif;
  font-size: 1.4rem;
  font-weight: 400;
  color: #0c2340;
  margin-bottom: 15px;
  line-height: 1.3;
  letter-spacing: 1px;
  text-transform: uppercase;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.post-card.featured .post-title {
  font-size: 1.8rem;
}

.post-excerpt {
  font-family: "Lora", serif;
  color: #0c2340;
  line-height: 1.7;
  margin-bottom: 20px;
  font-size: 0.95rem;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.post-card.featured .post-excerpt {
  -webkit-line-clamp: 4;
  font-size: 1rem;
}

.post-author {
  display: flex;
  align-items: center;
  gap: 15px;
  padding-top: 20px;
  border-top: 1px solid #b0b0b0;
}

.author-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, #0c2340 0%, #9d2235 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-family: "Bebas Neue", sans-serif;
  font-weight: 400;
  font-size: 0.9rem;
  letter-spacing: 1px;
  flex-shrink: 0;
}

.author-info {
  flex: 1;
}

.author-name {
  font-family: "Montserrat", sans-serif;
  font-weight: 600;
  color: #0c2340;
  font-size: 0.9rem;
}

.author-title {
  font-family: "Lora", serif;
  font-size: 0.8rem;
  color: #b0b0b0;
  font-style: italic;
}

.read-more {
  color: #9d2235;
  font-family: "Montserrat", sans-serif;
  font-weight: 600;
  font-size: 0.85rem;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: color 0.3s ease;
  margin-top: 15px;
  display: inline-block;
}

.read-more:hover {
  color: #d4af37;
}

.read-more::after {
  content: " →";
  margin-left: 5px;
  transition: margin-left 0.3s ease;
}

.read-more:hover::after {
  margin-left: 10px;
}

.no-posts {
  background: white;
  border-radius: 8px;
  padding: 80px 40px;
  text-align: center;
  box-shadow: 0 4px 20px rgba(12, 35, 64, 0.1);
  border-top: 4px solid #9d2235;
}

.no-posts-title {
  font-family: "Bebas Neue", sans-serif;
  font-size: 2.5rem;
  color: #0c2340;
  margin-bottom: 20px;
  letter-spacing: 2px;
  text-transform: uppercase;
}

.no-posts-text {
  font-family: "Lora", serif;
  font-size: 1.1rem;
  color: #b0b0b0;
  margin-bottom: 30px;
  line-height: 1.6;
}

.back-to-blog {
  display: inline-block;
  background: #9d2235;
  color: white;
  padding: 15px 30px;
  border-radius: 6px;
  font-family: "Montserrat", sans-serif;
  font-weight: 600;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  text-decoration: none;
  transition: all 0.3s ease;
}

.back-to-blog:hover {
  background: #d4af37;
  color: #0c2340;
  text-decoration: none;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(212, 175, 55, 0.3);
}

.archive-pagination {
  background: white;
  border-radius: 8px;
  padding: 40px;
  text-align: center;
  box-shadow: 0 4px 20px rgba(12, 35, 64, 0.1);
  border-top: 4px solid #0c2340;
}

.pagination-title {
  font-family: "Bebas Neue", sans-serif;
  font-size: 1.5rem;
  color: #0c2340;
  margin-bottom: 25px;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.pagination-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 15px;
  flex-wrap: wrap;
}

.page-numbers {
  display: inline-block;
  padding: 12px 18px;
  background: white;
  color: #0c2340;
  border: 2px solid #b0b0b0;
  border-radius: 6px;
  text-decoration: none;
  font-family: "Montserrat", sans-serif;
  font-weight: 600;
  font-size: 0.9rem;
  transition: all 0.3s ease;
  min-width: 50px;
  text-align: center;
}

.page-numbers:hover {
  border-color: #9d2235;
  color: #9d2235;
  text-decoration: none;
  transform: translateY(-2px);
}

.page-numbers.current {
  background: #9d2235;
  border-color: #9d2235;
  color: white;
}

.page-numbers.prev,
.page-numbers.next {
  padding: 12px 25px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

@media (max-width: 768px) {
  .archive-container {
    padding: 20px 15px;
  }

  .archive-header {
    padding: 40px 25px;
  }

  .archive-title {
    font-size: 2.5rem;
  }

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

  .post-card.featured {
    grid-column: span 1;
  }

  .post-card.featured .post-title {
    font-size: 1.6rem;
  }

  .archive-filters {
    padding: 25px 20px;
  }

  .filter-buttons {
    gap: 8px;
  }

  .filter-btn {
    padding: 8px 16px;
    font-size: 0.8rem;
  }

  .post-content {
    padding: 25px;
  }

  .post-meta {
    gap: 15px;
  }

  .pagination-wrapper {
    gap: 8px;
  }

  .page-numbers {
    padding: 10px 15px;
    font-size: 0.85rem;
  }
}
