.blogs-page {
  font-family: "Montserrat", sans-serif;
  color: #111;
  padding: 40px 20px 80px;
}

.blogs-hero {
  background: linear-gradient(135deg, rgba(40, 164, 250, 0.14), rgba(56, 48, 121, 0.08));
  margin: 0 auto 40px;
  border-radius: 28px;
  padding: 60px 30px;
  max-width: 1200px;
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.05);
}

.hero-copy {
  max-width: 760px;
}

.hero-label {
  display: inline-block;
  color: #1e7fdb;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 18px;
}

.blogs-hero h1 {
  font-size: clamp(2.6rem, 4vw, 4rem);
  line-height: 1.05;
  margin-bottom: 18px;
}

.blogs-hero p {
  font-size: 1rem;
  line-height: 1.8;
  color: #444;
  max-width: 680px;
}

.hero-actions {
  margin-top: 28px;
}

.hero-button,
.blog-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 24px;
  border-radius: 999px;
  font-weight: 600;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  text-decoration: none;
}

.hero-button:hover,
.blog-button:hover {
  transform: translateY(-2px);
}

.hero-button-outline {
  border: 1px solid rgba(40, 164, 250, 0.9);
  color: #1d6fbc;
  background: transparent;
}

.categories-nav {
  margin: 0 auto 34px;
  max-width: 1200px;
}

.categories-inner {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.category-tab {
  border: 1px solid rgba(33, 45, 68, 0.12);
  border-radius: 999px;
  padding: 10px 18px;
  background: #fff;
  color: #1d2938;
  cursor: pointer;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.category-tab:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 24px rgba(40, 164, 250, 0.12);
}

.category-block {
  max-width: 1200px;
  margin: 0 auto 46px;
}

.category-header {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 18px;
  margin-bottom: 18px;
}

.category-header h2 {
  font-size: 1.8rem;
  margin-bottom: 8px;
}

.category-header p {
  color: #556;
  max-width: 620px;
}

.slider-controls {
  display: flex;
  gap: 10px;
}

.slider-btn {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 1px solid rgba(33, 45, 68, 0.12);
  background: #fff;
  color: #1d2938;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease, transform 0.2s ease;
}

.slider-btn:hover {
  background: rgba(40, 164, 250, 0.08);
  transform: translateY(-1px);
}

.category-slider-wrapper {
  overflow: hidden;
}

.category-slider {
  display: flex;
  gap: 18px;
  overflow-x: auto;
  scroll-behavior: smooth;
  padding-bottom: 8px;
}

.category-slider::-webkit-scrollbar {
  height: 10px;
}

.category-slider::-webkit-scrollbar-thumb {
  background: rgba(40, 164, 250, 0.45);
  border-radius: 999px;
}

.post-card {
  min-width: 300px;
  max-width: 320px;
  background: #fff;
  border-radius: 22px;
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.06);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.post-card:hover {
  transform: translateY(-6px);
}

.post-card-link {
  display: grid;
  grid-template-rows: auto 1fr;
  color: inherit;
  text-decoration: none;
}

.post-card-media {
  width: 100%;
  min-height: 190px;
  overflow: hidden;
  border-top-left-radius: 22px;
  border-top-right-radius: 22px;
}

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

.post-card-body {
  padding: 18px;
}

.post-card-body h3 {
  font-size: 1.1rem;
  margin-bottom: 10px;
  line-height: 1.35;
}

.post-card-body p {
  color: #505050;
  line-height: 1.7;
  font-size: 0.95rem;
  margin-bottom: 16px;
}

.post-card-footer {
  display: flex;
  justify-content: space-between;
  font-size: 0.9rem;
  color: #5d6d7b;
}

.post-card-footer span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.empty-state {
  max-width: 780px;
  margin: 40px auto;
  text-align: center;
  color: #4d4d4d;
  font-size: 1.1rem;
}

@media (max-width: 940px) {
  .category-header {
    flex-direction: column;
    align-items: flex-start;
  }
  .slider-controls {
    order: 2;
  }
}

@media (max-width: 720px) {
  .blogs-hero,
  .categories-nav,
  .category-block {
    padding: 24px 16px;
  }

  .post-card {
    min-width: 260px;
    max-width: 260px;
  }

  .hero-label {
    font-size: 0.75rem;
  }

  .blogs-hero h1 {
    font-size: 2.3rem;
  }
}
