.blog-hero {
  background-size: cover;
  background-position: center;
}

.blog-hero__card {
  display: flex;
  align-items: center;
  text-align: center;
}

.blog-hero__content {
  max-width: 980px;
  margin: 0 auto;
  padding: 42px 0 36px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  gap: 12px;
}

.blog-hero .blog-hero__kicker {
  color: var(--primary, #52b2e1);
  font-size: 0.80rem;
  font-weight: 700;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  display: block;
  margin-bottom: 4px;
}

.blog-hero .blog-hero__heading {
  margin: 0 0 10px;
  font-size: clamp(30px, 3vw, 48px);
  line-height: 1.15;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--primary, #52b2e1);
}

.blog-layout {
  display: flex;
  gap: 32px;
  padding-top: 40px;
  padding-bottom: 60px;
  width: 100%;
}

.blog-main {
  flex: 1;
  min-width: 0;
}

.blog-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}


.blog-card {
  position: relative;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 18px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  min-width: 200px;
  max-width: 260px;
  flex: 1 1 220px;
  height: 420px;
  transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.blog-card:hover {
  box-shadow: 0 8px 25px rgba(56, 62, 66, 0.08);
  transform: translateY(-5px);
}

.blog-card__image-link {
  display: block;
  width: 100%;
  height: 60%;
}

.blog-card__badge {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 2;
  background: var(--primary, #52b2e1);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .10em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 6px;
  line-height: 1;
  transition: background .2s ease;
}

.blog-card__badge a {
  color: inherit;
  text-decoration: none;
}

.blog-card__badge a:hover {
  text-decoration: underline;
}

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

.blog-card__placeholder {
  display: block;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, var(--bg-ref, #f4f6f8) 0%, #e5e7eb 100%);
}

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

.blog-card__body {
  padding: 12px 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex: 1;
}

.blog-card__title {
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1.3;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.blog-card__title a {
  color: var(--text-dark, #383e42);
  text-decoration: none;
}

.blog-card__title a:hover {
  color: var(--primary, #52b2e1);
}

.blog-card__excerpt {
  margin: 0;
  font-size: 0.8rem;
  color: var(--text-muted, #6b7280);
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  font-weight: 300;
  height: 2.4rem;
}

.blog-card__link {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-top: auto;
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--primary, #52b2e1);
  text-decoration: none;
  z-index: 0;
}

.blog-card__link .material-symbols-outlined {
  font-size: 1rem;
  transform: translateY(3px);
}

.blog-sidebar {
  width: 300px;
  flex-shrink: 0;
}

.blog-sidebar .widget {
  margin-bottom: 24px;
  padding: 28px;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
}

.blog-sidebar .widget:last-child {
  margin-bottom: 0;
}

.blog-sidebar .widget-title {
  margin: 0 0 20px;
  padding-bottom: 12px;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--text-dark, #383e42);
  border-bottom: 2px solid var(--primary, #52b2e1);
}

.blog-sidebar .widget ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.blog-sidebar .widget ul li {
  padding: 8px 0;
  border-bottom: 1px solid #f1f5f9;
}

.blog-sidebar .widget ul li:last-child {
  border-bottom: none;
}

.blog-sidebar .widget a {
  color: var(--text-muted, #6b7280);
  text-decoration: none;
  font-size: 0.85rem;
  transition: color 0.2s ease, padding-left 0.2s ease;
  display: inline-block;
}

.blog-sidebar .widget a:hover {
  color: var(--primary, #52b2e1);
  padding-left: 4px;
}


.blog-filter-toggle,
.blog-filter-overlay,
.blog-filter-close {
  display: none;
}

.blog-sidebar .widget.widget_search form,
.blog-sidebar .widget_search form {
  display: flex;
  align-items: center;
  gap: 6px;
}

.blog-sidebar .widget_search input[type="search"],
.blog-sidebar .widget_search .search-field {
  flex: 1;
  min-width: 0;
  width: 100%;
  padding: 0 20px;
  height: 36px;
  border: 1px solid #e5e7eb;
  border-radius: 999px;
  font-size: 0.75rem;
  font-family: inherit;
  background: var(--bg-ref, #f4f6f8);
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  box-sizing: border-box;
}

.blog-sidebar .widget_search input[type="search"]:focus,
.blog-sidebar .widget_search .search-field:focus {
  border-color: var(--primary, #52b2e1);
  box-shadow: 0 0 0 3px rgba(82, 178, 225, 0.12);
}

.blog-sidebar .widget_search input[type="search"]::placeholder,
.blog-sidebar .widget_search .search-field::placeholder {
  color: #9ca3af;
  font-weight: 300;
}

.blog-sidebar .widget_search input[type="submit"],
.blog-sidebar .widget_search .search-submit {
  flex-shrink: 0;
  height: 36px;
  padding: 0 12px;
  border: none;
  border-radius: 999px;
  background: var(--primary, #52b2e1);
  color: #fff;
  font-size: 0.6rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  cursor: pointer;
  transition: background 0.2s ease;
  white-space: nowrap;
}

.blog-sidebar .widget_search input[type="submit"]:hover,
.blog-sidebar .widget_search .search-submit:hover {
  background: #3da0d1;
}

.blog-main .pagination,
.blog-main .navigation.pagination {
  margin-top: 48px;
}

.blog-main .nav-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.blog-main .nav-links a,
.blog-main .nav-links span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  height: 36px;
  padding: 0 10px;
  border: 1px solid #e5e7eb;
  border-radius: 4px;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--text-dark, #383e42);
  text-decoration: none;
  transition: all 0.2s ease;
}

.blog-main .nav-links a:hover {
  border-color: var(--primary, #52b2e1);
  color: var(--primary, #52b2e1);
}

.blog-main .nav-links .current {
  background: var(--primary, #52b2e1);
  border-color: var(--primary, #52b2e1);
  color: #fff;
}

.blog-main .nav-links .dots {
  border: none;
  padding: 0;
}

.blog-empty {
  text-align: center;
  padding: 48px 16px;
  color: var(--text-muted, #6b7280);
}

.blog-hero__description {
  margin: 0 auto;
  color: var(--text-muted, #6b7280);
  font-size: 16px;
  line-height: 1.7;
  font-weight: 300;
  max-width: 980px;
}


@media (max-width: 1100px) {
  .blog-sidebar {
    width: 260px;
  }
}

@media (max-width: 899px) {
  .blog-layout {
    flex-direction: column;
    gap: 48px;
  }
}

@media (max-width: 768px) {
  .blog-hero__content {
    padding: 32px 20px;
  }

  .blog-hero .blog-hero__heading {
    font-size: clamp(24px, 5vw, 30px);
  }

  .blog-hero__description {
    font-size: 14px;
  }

  .blog-card {
    min-width: 170px;
    flex: 1 1 170px;
  }
}

@media (max-width: 899px) {
  .blog-sidebar {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    width: 100%;
    z-index: 1001;
    background: #fff;
    padding: 24px 20px;
    overflow-y: auto;
    transform: translateX(-100%);
    transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
    height: auto;
    flex-shrink: 0;
  }

  .blog-sidebar.is-open {
    transform: translateX(0);
  }

  .blog-filter-overlay {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 1000;
    background: rgba(0, 0, 0, 0.4);
    opacity: 0;
    transition: opacity 0.35s ease;
  }

  .blog-filter-overlay.is-visible {
    display: block;
    opacity: 1;
  }

  .blog-filter-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    position: fixed;
    bottom: 80px;
    right: 24px;
    z-index: 999;
    padding: 12px 20px;
    border: none;
    border-radius: 999px;
    background: var(--primary, #52b2e1);
    color: #fff;
    font-size: 0.85rem;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    box-shadow: 0 4px 16px rgba(82, 178, 225, 0.35);
    transition: opacity 0.2s ease, transform 0.2s ease;
  }

  .blog-filter-toggle:hover {
    opacity: 0.9;
    transform: translateY(-2px);
  }

  .blog-filter-toggle .material-symbols-outlined {
    font-size: 1.2rem;
  }

  .blog-filter-close {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    padding: 0;
    border: none;
    border-radius: 50%;
    background: #f1f5f9;
    color: #6b7280;
    cursor: pointer;
    position: absolute;
    top: 12px;
    right: 12px;
    transition: background 0.2s ease, color 0.2s ease;
  }

  .blog-filter-close:hover {
    background: var(--primary, #52b2e1);
    color: #fff;
  }

  .blog-filter-close .material-symbols-outlined {
    font-size: 1.1rem;
  }
}

@media (max-width: 480px) {
  .blog-grid {
    gap: 12px;
  }

  .blog-card {
    min-width: 140px;
    flex: 1 1 140px;
  }
}