/* Blog page — scoped under .page-blog */
.page-blog {
  background: var(--color-bg-white);
  font-family: var(--font-manrope);
  --font-serif: var(--font-playfair);
  --font-sans: var(--font-inter);
  --blog-banner-w: 1920px;
  --blog-banner-h: 500px;
  --blog-banner-top: 97px;
  --blog-content-width: min(1800px, 100%);
  --blog-side-space: clamp(20px, calc(60 * 100vw / 1920), 60px);
  --blog-accent: #fc4b37;
  --blog-near-black: #0b0b0b;
  --blog-grid-bg: var(--color-bg-white);
  --header-height: var(--blog-banner-top);
}

.page-blog .page {
  background: var(--color-bg-white);
}

.page-blog .header,
.page-blog .header__inner {
  height: var(--blog-banner-top);
}

.page-blog .header__inner {
  padding-block: 10px;
}

.page-blog .header__logo img {
  width: clamp(76px, calc(96 * 100vw / 1920), 96px);
  height: clamp(54px, calc(70 * 100vw / 1920), 70px);
}

.page-blog .header__nav a.is-active {
  color: #3a2418;
  font-weight: 600;
  border-bottom: 1px solid #3a2418;
  padding-bottom: 2px;
}

/* Hero banner — 1920×500, top 97px (header height) */
.page-blog .blog-hero {
  width: 100%;
  max-width: var(--blog-banner-w);
  margin-inline: auto;
  height: var(--blog-banner-h);
  min-height: 0;
  max-height: var(--blog-banner-h);
  position: relative;
  overflow: hidden;
  background: var(--blog-near-black);
  box-shadow: none;
}

.page-blog .blog-hero-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 68% center;
}

.page-blog .blog-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    rgba(11, 11, 11, 0.97) 0%,
    rgba(11, 11, 11, 0.85) 28%,
    rgba(11, 11, 11, 0.35) 50%,
    rgba(11, 11, 11, 0.05) 68%
  );
}

.page-blog .blog-hero-content {
  position: relative;
  z-index: 2;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
}

.page-blog .blog-hero-content .blog-container {
  width: 100%;
  box-sizing: border-box;
}

.page-blog .blog-hero-tag {
  display: inline-flex;
  align-self: flex-start;
  padding: 4px 14px;
  margin-bottom: clamp(8px, 0.8vw, 10px);
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.32);
  border-radius: 999px;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  color: #fff;
  font-family: var(--font-manrope);
  font-size: clamp(12px, 0.85vw, 13px);
  font-weight: 500;
  text-decoration: none;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12);
  transition: background 0.2s ease, border-color 0.2s ease;
}

.page-blog .blog-hero-tag:hover {
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.42);
  color: #fff;
}

.page-blog .blog-hero-title {
  color: #fff;
  font-family: var(--font-playfair);
  font-size: clamp(36px, calc(70 * 100vw / 1920), 70px);
  font-weight: 400;
  line-height: 1.1;
  margin: 0 0 clamp(8px, 0.8vw, 12px);
  letter-spacing: -0.02em;
}

.page-blog .blog-hero-description {
  max-width: min(360px, 90%);
  margin: 0;
  color: rgba(255, 255, 255, 0.75);
  font-family: var(--font-inter);
  font-size: clamp(12px, 0.85vw, 14px);
  font-weight: 300;
  line-height: 1.5;
}

.page-blog .blog-hero-description__break {
  display: none;
}

@media (min-width: 768px) {
  .page-blog .blog-hero-description__break {
    display: inline;
  }
}

/* Filters bar — white strip */
.page-blog .blog-main {
  width: 100%;
  background: var(--color-bg-white);
}

.page-blog .blog-filters-bar {
  width: 100%;
  background: var(--color-bg-white);
  padding: clamp(28px, 3.3vw, 48px) 0 clamp(24px, 2.5vw, 40px);
}

.page-blog .blog-container {
  width: min(var(--blog-content-width), calc(100% - var(--blog-side-space) * 2));
  margin: 0 auto;
  padding-inline: var(--blog-side-space);
  box-sizing: border-box;
}

.page-blog .filters {
  display: flex;
  flex-wrap: wrap;
  gap: clamp(8px, 0.8vw, 12px);
}

.page-blog .filter-btn {
  padding: clamp(10px, 0.9vw, 14px) clamp(18px, 1.8vw, 28px);
  border: 1px solid #e4e4e4;
  border-radius: 2px;
  background: var(--color-bg-white);
  color: #2b2b2b;
  font-family: var(--font-manrope);
  font-size: clamp(12px, 0.85vw, 13px);
  font-weight: 500;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.page-blog .filter-btn:hover {
  border-color: #b5b5b5;
}

.page-blog .filter-btn.active {
  background: #f3f3f3;
  border-color: #d8d8d8;
  color: #111;
  font-weight: 600;
}

/* Blog grid — white section */
.page-blog .blog-grid-section {
  width: 100%;
  background: var(--blog-grid-bg);
  padding: clamp(8px, 1vw, 16px) 0 clamp(64px, 6vw, 120px);
}

.page-blog .blog-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  column-gap: clamp(16px, 1.5vw, 24px);
  row-gap: clamp(28px, 2.5vw, 40px);
}

.page-blog .blog-card {
  position: relative;
  aspect-ratio: 4 / 3;
  min-height: 0;
  overflow: hidden;
  background: #111;
}

.page-blog .blog-card-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform 0.4s ease;
}

.page-blog .blog-card:hover .blog-card-image {
  transform: scale(1.05);
}

.page-blog .card-overlay {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 55%;
  background: linear-gradient(
    to top,
    rgba(0, 0, 0, 0.88) 0%,
    rgba(0, 0, 0, 0.5) 45%,
    rgba(0, 0, 0, 0) 100%
  );
  pointer-events: none;
}

.page-blog .card-content {
  position: absolute;
  left: clamp(16px, 1.5vw, 24px);
  right: clamp(72px, 6vw, 90px);
  bottom: clamp(16px, 1.5vw, 24px);
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: clamp(10px, 1vw, 14px);
}

.page-blog .card-title {
  color: #fff;
  font-family: var(--font-manrope);
  font-size: clamp(16px, 1.2vw, 19px);
  font-weight: 600;
  line-height: 1.25;
  margin: 0;
}

.page-blog .card-date {
  display: inline-flex;
  align-self: flex-start;
  align-items: center;
  justify-content: center;
  padding: clamp(8px, 0.75vw, 11px) clamp(12px, 1.1vw, 17px);
  background: rgba(20, 20, 20, 0.38);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 6px;
  backdrop-filter: blur(14px) saturate(120%);
  -webkit-backdrop-filter: blur(14px) saturate(120%);
  color: #fff;
  font-family: var(--font-inter);
  font-size: clamp(11px, 0.75vw, 12px);
  font-weight: 500;
  line-height: 1;
  white-space: nowrap;
}

.page-blog .card-arrow {
  position: absolute;
  right: clamp(14px, 1.2vw, 20px);
  bottom: clamp(14px, 1.2vw, 20px);
  z-index: 3;
  width: clamp(44px, 3.5vw, 52px);
  height: clamp(44px, 3.5vw, 52px);
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--blog-accent);
  border-radius: 3px;
  color: #fff;
  font-size: clamp(16px, 1.3vw, 20px);
  line-height: 1;
  text-decoration: none;
  transition: background 0.2s ease, transform 0.2s ease;
}

.page-blog .card-arrow:hover {
  background: #e2402e;
  transform: translateY(-2px);
}

@media (max-width: 1100px) {
  .page-blog .blog-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .page-blog {
    --header-height: 64px;
    --blog-banner-top: 64px;
  }

  .page-blog .header,
  .page-blog .header__inner {
    height: 64px;
  }

  .page-blog .blog-hero {
    height: clamp(200px, calc(var(--blog-banner-h) * 100vw / var(--blog-banner-w)), 440px);
    max-height: 440px;
  }

  .page-blog .blog-hero-content {
    justify-content: center;
    padding-bottom: 0;
  }

  .page-blog .blog-hero-title {
    font-size: clamp(24px, 7vw, 32px);
  }

  .page-blog .blog-filters-bar {
    padding-top: 24px;
    padding-bottom: 20px;
  }

  .page-blog .filters {
    gap: 8px;
  }

  .page-blog .filter-btn {
    padding: 10px 16px;
    font-size: 12px;
  }

  .page-blog .blog-grid {
    grid-template-columns: 1fr;
    row-gap: 24px;
  }

  .page-blog .blog-grid-section {
    padding-bottom: 64px;
  }

  .page-blog .card-content {
    right: 68px;
  }
}
