/* ===== vd-blog-cards.css ===== */
/* "From Our Blog" homepage section (reference-matched light band) + the
   [vd_blog_cards] card grid rendered by mu-plugin vd-blog-cards.php.
   Scoped to .vd-blog-home (the section) and .vd-bh-* / .vd-bc-* (its parts).
   Class names deliberately avoid the blog listing page's .vd-blog-title /
   .vd-blog-sub / .vd-blog-cat family so the two surfaces can never fight. */

.vd-blog-home {
  position: relative;
  overflow: hidden;
  background: linear-gradient(180deg, #FFFFFF 0%, #F3F8FE 48%, #EAF3FC 100%);
}

/* Content paints above the decorations. */
.vd-blog-home .elementor-container { position: relative; z-index: 1; }

/* Dubai skyline silhouette, right edge (decorative, non-interactive). */
.vd-blog-home::before {
  content: "";
  position: absolute;
  right: 0;
  bottom: 0;
  width: min(46%, 560px);
  aspect-ratio: 520 / 240;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 520 240'%3E%3Cg fill='%23D9E9FA'%3E%3Crect x='20' y='150' width='26' height='90'/%3E%3Crect x='52' y='120' width='22' height='120'/%3E%3Cpolygon points='80,240 80,140 92,118 104,140 104,240'/%3E%3Crect x='112' y='160' width='30' height='80'/%3E%3Crect x='150' y='100' width='18' height='140'/%3E%3Crect x='174' y='130' width='24' height='110'/%3E%3Crect x='240' y='170' width='6' height='70'/%3E%3Crect x='244' y='140' width='32' height='100'/%3E%3Crect x='252' y='80' width='16' height='70'/%3E%3Crect x='256' y='36' width='8' height='50'/%3E%3Crect x='258' y='8' width='4' height='30'/%3E%3Crect x='274' y='170' width='6' height='70'/%3E%3Cpolygon points='300,240 300,150 314,126 328,150 328,240'/%3E%3Crect x='336' y='110' width='20' height='130'/%3E%3Crect x='362' y='140' width='26' height='100'/%3E%3Crect x='396' y='90' width='16' height='150'/%3E%3Crect x='418' y='125' width='28' height='115'/%3E%3Crect x='452' y='145' width='22' height='95'/%3E%3Crect x='480' y='115' width='20' height='125'/%3E%3C/g%3E%3C/svg%3E") no-repeat right bottom / contain;
  opacity: .55;
  pointer-events: none;
}

/* Soft layered wave, bottom left. */
.vd-blog-home::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: min(64%, 720px);
  aspect-ratio: 700 / 220;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 700 220'%3E%3Cpath fill='%23E4F1FD' d='M0,90 C120,40 240,130 380,95 C480,70 580,95 700,70 L700,220 L0,220 Z'/%3E%3Cpath fill='%23D3E8FB' d='M0,140 C140,100 300,170 460,130 C560,105 640,120 700,105 L700,220 L0,220 Z'/%3E%3C/svg%3E") no-repeat left bottom / contain;
  opacity: .9;
  pointer-events: none;
}

/* ---- section head --------------------------------------------------------- */

.vd-blog-home .elementor-widget.vd-bh-kicker { text-align: center; }
.vd-blog-home .vd-bh-kicker .elementor-heading-title {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: #2F80ED;
  font-family: var(--vd-font-h, "Sora", sans-serif);
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
}
.vd-blog-home .vd-bh-kicker .elementor-heading-title::before,
.vd-blog-home .vd-bh-kicker .elementor-heading-title::after {
  content: "";
  width: 34px;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
  opacity: .6;
}

.vd-blog-home .elementor-widget.vd-bh-title { text-align: center; }
.vd-blog-home .vd-bh-title .elementor-heading-title {
  color: #102A43;
  font-family: var(--vd-font-h, "Sora", sans-serif);
  font-size: clamp(26px, 3.2vw, 40px);
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 10px;
}
.vd-blog-home .vd-bh-title .elementor-heading-title em {
  font-style: normal;
  color: #2F80ED;
}
/* blog.css's signature `.entry-content h2::after` violet dash fires under every
   h2 in the content area, including this one. The reference head has no
   underline, so drop it here only. */
.vd-blog-home .vd-bh-title .elementor-heading-title::before,
.vd-blog-home .vd-bh-title .elementor-heading-title::after { display: none; }

.vd-blog-home .vd-bh-sub { text-align: center; }
.vd-blog-home .vd-bh-sub p {
  color: #64748B;
  font-size: 16px;
  line-height: 1.6;
  margin: 0;
}

.vd-blog-home .vd-bh-cards-wrap { margin-top: 14px; }

/* ---- card grid ------------------------------------------------------------ */

.vd-blog-home .vd-bc-grid {
  display: grid;
  gap: 26px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
.vd-blog-home .vd-bc-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.vd-blog-home .vd-bc-grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.vd-blog-home .vd-bc-grid--1 { grid-template-columns: minmax(0, 1fr); }

/* ---- card ----------------------------------------------------------------- */

.vd-blog-home .vd-bc-card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid #E3EDF9;
  border-radius: 16px;
  box-shadow: 0 8px 26px rgba(16, 42, 84, .06);
  overflow: hidden;
  transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}
.vd-blog-home .vd-bc-card:hover {
  transform: translateY(-6px);
  border-color: transparent;
  box-shadow: 0 22px 48px rgba(16, 42, 84, .14);
}

.vd-blog-home .vd-bc-thumb {
  position: relative;
  display: block;
  margin: 12px 12px 0;
  border-radius: 12px;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  background: #EAF2FC;
}
.vd-blog-home .vd-bc-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border: 0 !important;
  border-radius: 0 !important;
  margin: 0;
  transition: transform .4s ease;
}
.vd-blog-home .vd-bc-card:hover .vd-bc-thumb img { transform: scale(1.05); }
.vd-blog-home .vd-bc-thumb-fallback {
  display: block;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #DCEBFB, #EFF6FE);
}

.vd-blog-home .vd-bc-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 11px;
  border-radius: 8px;
  background: #2F80ED;
  color: #fff;
  font-family: var(--vd-font-h, "Sora", sans-serif);
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: .09em;
  text-transform: uppercase;
  box-shadow: 0 6px 16px rgba(47, 128, 237, .35);
}
.vd-blog-home .vd-bc-badge svg { width: 13px; height: 13px; flex: 0 0 auto; }

.vd-blog-home .vd-bc-body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 14px 16px 18px;
}

.vd-blog-home .vd-bc-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px 14px;
  color: #64748B;
  font-size: 12.5px;
}
.vd-blog-home .vd-bc-meta span { display: inline-flex; align-items: center; gap: 6px; }
.vd-blog-home .vd-bc-meta svg { width: 14px; height: 14px; opacity: .75; flex: 0 0 auto; }

.vd-blog-home .vd-bc-title {
  margin: 10px 0 8px;
  font-family: var(--vd-font-h, "Sora", sans-serif);
  font-size: 16.5px;
  line-height: 1.35;
  font-weight: 800;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
/* Scoped one level up and one notch above `.entry-content a` (blog.css): that
   rule paints every content link violet with a border-bottom underline, and on
   equal specificity it loads later and wins the tie. Base and hover are both
   re-asserted so the card keeps its navy/blue design. */
.vd-blog-home .vd-bc-title a {
  color: #102A43;
  text-decoration: none;
  border-bottom: 0;
  box-shadow: none;
  transition: color .18s ease;
}
.vd-blog-home .vd-bc-title a:hover { color: #2F80ED; border-bottom: 0; }
/* `.ast-single-post .entry-content a` (Astra inline) is (0,2,1) and paints both
   card links with a propagating underline that class-only rules cannot strip;
   the same fight was settled on the blog page with a scoped !important. */
.vd-blog-home .vd-bc-title a,
.vd-blog-home .vd-bc-more { text-decoration: none !important; }

.vd-blog-home .vd-bc-excerpt {
  margin: 0;
  color: #64748B;
  font-size: 13.5px;
  line-height: 1.65;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.vd-blog-home .vd-bc-more {
  margin-top: auto;
  padding-top: 14px;
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: #2F80ED;
  font-size: 13.5px;
  font-weight: 700;
  text-decoration: none;
  border-bottom: 0;
  box-shadow: none;
}
.vd-blog-home .vd-bc-more svg { width: 15px; height: 15px; flex: 0 0 auto; transition: transform .2s ease; }
.vd-blog-home .vd-bc-more:hover { color: #1B66D2; border-bottom: 0; }
.vd-blog-home .vd-bc-more:hover svg { transform: translateX(4px); }

/* ---- View All button ------------------------------------------------------ */

.vd-blog-home .vd-bh-viewall { text-align: center; margin-top: 14px; }
.vd-blog-home .vd-bh-viewall .elementor-button {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: #fff;
  color: #2F80ED;
  border: 1.5px solid #BFD9F9;
  border-radius: 999px;
  padding: 12px 30px;
  font-family: var(--vd-font-h, "Sora", sans-serif);
  font-size: 14px;
  font-weight: 700;
  box-shadow: 0 8px 22px rgba(47, 128, 237, .10);
  transition: background .2s ease, color .2s ease, border-color .2s ease, transform .2s ease, box-shadow .2s ease;
}
.vd-blog-home .vd-bh-viewall .elementor-button::after {
  content: "";
  width: 16px;
  height: 12px;
  flex: 0 0 auto;
  background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cline x1='4' y1='12' x2='19' y2='12'/%3E%3Cpolyline points='13 6 19 12 13 18'/%3E%3C/svg%3E") no-repeat center / contain;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cline x1='4' y1='12' x2='19' y2='12'/%3E%3Cpolyline points='13 6 19 12 13 18'/%3E%3C/svg%3E") no-repeat center / contain;
  transition: transform .2s ease;
}
.vd-blog-home .vd-bh-viewall .elementor-button:hover {
  background: #2F80ED;
  color: #fff;
  border-color: #2F80ED;
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(47, 128, 237, .35);
}
.vd-blog-home .vd-bh-viewall .elementor-button:hover::after { transform: translateX(3px); }

/* ---- responsive ------------------------------------------------------------ */

@media (max-width: 1024px) {
  .vd-blog-home::before { display: none; }
  .vd-blog-home .vd-bc-grid,
  .vd-blog-home .vd-bc-grid--4,
  .vd-blog-home .vd-bc-grid--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
}
@media (max-width: 600px) {
  .vd-blog-home::after { opacity: .55; width: 100%; }
  .vd-blog-home .vd-bc-grid,
  .vd-blog-home .vd-bc-grid--4,
  .vd-blog-home .vd-bc-grid--3,
  .vd-blog-home .vd-bc-grid--2 { grid-template-columns: minmax(0, 1fr); gap: 16px; }
}

@media (prefers-reduced-motion: reduce) {
  .vd-blog-home .vd-bc-card,
  .vd-blog-home .vd-bc-thumb img,
  .vd-blog-home .vd-bc-more svg,
  .vd-blog-home .vd-bh-viewall .elementor-button { transition: none; }
  .vd-blog-home .vd-bc-card:hover { transform: none; }
}
