/* Bezalel Digital Ventures — Blog */

.bdv-blog-intro {
  max-width: 780px;
  margin: 0 auto 40px;
  text-align: center;
}

.bdv-blog-intro p {
  color: var(--text);
  line-height: 1.75;
  margin: 0;
}

.bdv-blog-filters {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-bottom: 36px;
}

.bdv-blog-filters button {
  border: 1px solid var(--border);
  background: var(--white);
  color: var(--header);
  font-size: 13px;
  font-weight: 600;
  padding: 8px 16px;
  border-radius: 999px;
  transition: all 0.3s ease;
  cursor: pointer;
}

.bdv-blog-filters button:hover,
.bdv-blog-filters button.active {
  background: var(--theme);
  border-color: var(--theme);
  color: var(--white);
}

.bdv-blog-card {
  height: 100%;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  transition: all 0.35s ease;
  display: flex;
  flex-direction: column;
}

.bdv-blog-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--box-shadow-2);
  border-color: transparent;
}

.bdv-blog-card .bdv-blog-thumb {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
}

.bdv-blog-card .bdv-blog-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}

.bdv-blog-card:hover .bdv-blog-thumb img {
  transform: scale(1.05);
}

.bdv-blog-card .bdv-blog-date {
  position: absolute;
  top: 16px;
  left: 16px;
  background: var(--theme);
  color: var(--white);
  padding: 8px 12px;
  border-radius: 10px;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.3;
  text-align: center;
}

.bdv-blog-card .bdv-blog-body {
  padding: 22px 22px 24px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.bdv-blog-card .bdv-blog-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  list-style: none;
  margin: 0 0 12px;
  padding: 0;
  font-size: 13px;
  color: var(--text);
}

.bdv-blog-card .bdv-blog-meta i {
  color: var(--theme);
  margin-right: 4px;
}

.bdv-blog-card .bdv-blog-region {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  color: var(--theme);
  background: rgba(1, 129, 240, 0.08);
  border-radius: 999px;
  padding: 4px 10px;
  margin-bottom: 10px;
}

.bdv-blog-card h3 {
  font-size: 20px;
  line-height: 1.4;
  margin-bottom: 10px;
}

.bdv-blog-card h3 button {
  border: 0;
  background: none;
  padding: 0;
  text-align: left;
  color: var(--header);
  font: inherit;
  cursor: pointer;
  transition: color 0.3s ease;
}

.bdv-blog-card h3 button:hover {
  color: var(--theme);
}

.bdv-blog-card p {
  margin: 0 0 18px;
  color: var(--text);
  line-height: 1.65;
  font-size: 14px;
  flex: 1;
}

.bdv-blog-card .bdv-blog-read {
  align-self: flex-start;
}

/* Modal */
.bdv-blog-modal {
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.bdv-blog-modal.is-open {
  opacity: 1;
  visibility: visible;
}

.bdv-blog-modal__overlay {
  position: absolute;
  inset: 0;
  background: rgba(6, 20, 38, 0.72);
  backdrop-filter: blur(4px);
}

.bdv-blog-modal__dialog {
  position: relative;
  width: min(920px, 100%);
  max-height: min(92vh, 900px);
  background: var(--white);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.28);
  display: flex;
  flex-direction: column;
  transform: translateY(24px);
  transition: transform 0.35s ease;
}

.bdv-blog-modal.is-open .bdv-blog-modal__dialog {
  transform: translateY(0);
}

.bdv-blog-modal__close {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 3;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.95);
  color: var(--header);
  font-size: 18px;
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
  transition: all 0.3s ease;
}

.bdv-blog-modal__close:hover {
  background: var(--theme);
  color: var(--white);
}

.bdv-blog-modal__hero {
  position: relative;
  aspect-ratio: 21 / 9;
  max-height: 280px;
  overflow: hidden;
  flex-shrink: 0;
}

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

.bdv-blog-modal__hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.05) 0%, rgba(0, 0, 0, 0.35) 100%);
}

.bdv-blog-modal__content {
  padding: 28px 32px 32px;
  overflow-y: auto;
}

.bdv-blog-modal__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  list-style: none;
  margin: 0 0 14px;
  padding: 0;
  font-size: 13px;
  color: var(--text);
}

.bdv-blog-modal__meta i {
  color: var(--theme);
  margin-right: 5px;
}

.bdv-blog-modal__content h2 {
  font-size: clamp(24px, 3vw, 32px);
  line-height: 1.25;
  margin-bottom: 18px;
  color: var(--header);
}

.bdv-blog-modal__article {
  color: var(--text);
  line-height: 1.8;
  font-size: 15px;
}

.bdv-blog-modal__article h3 {
  font-size: 20px;
  margin: 24px 0 10px;
  color: var(--header);
}

.bdv-blog-modal__article p {
  margin: 0 0 14px;
}

.bdv-blog-modal__article ul {
  margin: 0 0 16px;
  padding-left: 20px;
}

.bdv-blog-modal__article li {
  margin-bottom: 8px;
}

.bdv-blog-modal__faq {
  margin-top: 24px;
  padding-top: 22px;
  border-top: 1px solid var(--border);
}

.bdv-blog-modal__faq h3 {
  font-size: 18px;
  margin-bottom: 14px;
  color: var(--header);
}

.bdv-blog-modal__faq-item + .bdv-blog-modal__faq-item {
  margin-top: 14px;
}

.bdv-blog-modal__faq-item strong {
  display: block;
  color: var(--header);
  margin-bottom: 4px;
}

.bdv-blog-modal__cta {
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
}

body.bdv-blog-modal-open {
  overflow: hidden;
}

.bdv-blog-noscript {
  margin-top: 24px;
  padding: 20px;
  background: var(--bg);
  border-radius: 12px;
}

.bdv-blog-noscript li {
  margin-bottom: 8px;
}

.bdv-blog-noscript a {
  color: var(--theme);
  font-weight: 600;
}

@media (max-width: 767px) {
  .bdv-blog-modal {
    padding: 10px;
  }

  .bdv-blog-modal__content {
    padding: 22px 20px 24px;
  }

  .bdv-blog-modal__hero {
    aspect-ratio: 16 / 10;
    max-height: 200px;
  }
}
