/* Blog Archive Page Styles */

.hero {
  position: relative;
  background: #0b1d32;
  color: #fff;
  min-height: 480px;
  display: flex;
  align-items: center;
}

.hero .bg {
  position: absolute;
  inset: 0;
}

.hero .bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  opacity: 0.85;
  filter: saturate(0.92) contrast(1.05);
}

.hero .overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(8, 16, 28, 0.78), rgba(8, 16, 28, 0.52) 42%, rgba(8, 16, 28, 0.78));
}

.hero .wrap {
  position: relative;
  z-index: 1;
  padding-top: 80px;
  padding-bottom: 80px;
}

.kicker {
  display: inline-block;
  font-weight: 700;
  letter-spacing: 0.08em;
  font-size: 0.85rem;
  text-transform: uppercase;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.35);
  color: #fff;
  padding: 6px 10px;
  border-radius: 999px;
  margin-bottom: 12px;
}

.hero h1 {
/*   font: 700 clamp(34px, 5vw, 52px)/1.08 ui-serif, Georgia, "Times New Roman", serif; */
  font-size: clamp(34px, 5vw, 60px);
  color: #fff;
  margin: 0 0 12px;
}

.lead {
  font-size: clamp(17px, 2.2vw, 20px);
  line-height: 1.5;
  margin: 0;
}

/* Filters section */
.section--filters {
  padding: 32px 0 24px;
  border-bottom: 1px solid var(--line, #e6e9ee);
}

.filters-wrap {
  display: flex;
  gap: 16px;
  align-items: center;
  flex-wrap: wrap;
}

.filters {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.chip {
  display: inline-block;
  border: 1px solid rgba(14, 42, 71, 0.25);
  border-radius: 999px;
  padding: 8px 16px;
  font-weight: 700;
  color: var(--ink, #0E2A47);
  background: #fff;
  font-size: 0.95rem;
  transition: all 0.2s ease;
  cursor: pointer;
  text-decoration: none;
}

.chip:hover {
  border-color: var(--ink, #0E2A47);
  background: var(--foam, #F6F8FA);
}

.chip.is-active {
  background: var(--ink, #0E2A47);
  color: #fff;
  border-color: var(--ink, #0E2A47);
}

/* Posts grid */
.section--posts {
  padding: 48px 0 88px;
}

.grid.posts {
  display: grid;
  grid-template-columns: repeat(3, 1fr) !important;
  gap: 24px;
}

.card {
  background: #fff;
  border: 1px solid var(--line, #e9edf4);
  border-radius: var(--radius, 16px);
  box-shadow: 0 8px 26px rgba(17, 24, 39, 0.06);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.card:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 36px rgba(17, 24, 39, 0.12);
  border-color: #dfe4ea;
}

.card-link {
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.imgwrap {
  position: relative;
  overflow: hidden;
  background: #f2f4f7;
  aspect-ratio: 16/9;
}

.imgwrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.label {
  position: absolute;
  left: 12px;
  top: 12px;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(3px);
  color: #0b1d32;
  border: 1px solid rgba(14, 42, 71, 0.15);
  font-weight: 700;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 0.9rem;
}

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

.card .title {
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1.3;
  margin: 0 0 10px;
  color: var(--ink, #0E2A47);
}

.card .meta {
  display: flex;
  gap: 8px;
  align-items: center;
  color: var(--muted, #5b6472);
  font-size: 0.95rem;
  margin-bottom: 10px;
}

.dot {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--muted, #5b6472);
  display: inline-block;
}

.excerpt {
  color: var(--text, #111827);
  font-size: 1rem;
  line-height: 1.6;
  margin: 0;
  flex: 1;
}

/* Responsive */
@media (max-width: 980px) {
  .grid.posts {
    grid-template-columns: repeat(2, 1fr) !important;
  }
  
  .section--posts {
    padding: 40px 0 72px;
  }
}

@media (max-width: 640px) {
  .grid.posts {
    grid-template-columns: 1fr !important;
  }
  
  .hero {
    min-height: 360px;
  }
  
  .section--filters {
    padding: 24px 0 20px;
  }
  
  .section--posts {
    padding: 32px 0 56px;
  }
}

/* Pagination */
.pagination {
  margin-top: 48px;
  text-align: center;
}

.navigation {
  display: flex;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
}

.page-numbers {
  display: inline-block;
  padding: 8px 12px;
  border: 1px solid var(--line, #e6e9ee);
  border-radius: 8px;
  color: var(--ink, #0E2A47);
  text-decoration: none;
  min-width: 42px;
  text-align: center;
}

.page-numbers.current {
  background: var(--ink, #0E2A47);
  color: #fff;
  border-color: var(--ink, #0E2A47);
}

.page-numbers:hover:not(.current) {
  border-color: var(--ink, #0E2A47);
  background: var(--foam, #F6F8FA);
}

/* ========================================
   LANDSCAPE ORIENTATION FIX
   ======================================== */

/* Mobile landscape: Reduce hero height for better visibility */
@media (max-height: 500px) and (orientation: landscape) {
  .hero {
    min-height: 200px !important;
  }
  
  .hero .wrap {
    padding-top: 40px !important;
    padding-bottom: 40px !important;
  }
  
  .hero h1 {
    font-size: clamp(1.8rem, 5vw, 2.5rem) !important;
    margin-bottom: 12px !important;
  }
  
  .hero .lead {
    font-size: 1rem !important;
  }
  
  .hero .kicker {
    margin-bottom: 10px !important;
  }
}

/* Tablet landscape: Moderate reduction */
@media (max-height: 700px) and (min-width: 768px) and (orientation: landscape) {
  .hero {
    min-height: 300px !important;
  }
  
  .hero .wrap {
    padding-top: 60px !important;
    padding-bottom: 60px !important;
  }
}