.site-branding img,
.custom-logo,
header img {
  width: 110px !important;
  height: 82px !important;
  object-fit: cover !important;
  border-radius: 12px !important;
}


/* ============================================================
   LATEST POSTS BLOCK — v5
   Featured post: image LEFT, content RIGHT
   No fixed grid-row on content (auto-placement removes ghost rows)
   ============================================================ */

/* Grid */
.home .wp-block-latest-posts__list {
  list-style: none !important;
  padding: 0 !important;
  margin: 0 !important;
  display: grid !important;
  grid-template-columns: 1fr 1fr !important;
  gap: 20px !important;
}

/* ── All cards base ── */
.home .wp-block-latest-posts__list li {
  background: #ffffff !important;
  border: 1px solid #e2e8f0 !important;
  border-radius: 16px !important;
  overflow: hidden !important;
  display: flex !important;
  flex-direction: column !important;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease !important;
  margin: 0 !important;
  padding: 0 !important;
}

.home .wp-block-latest-posts__list li:hover {
  transform: translateY(-3px) !important;
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.07) !important;
  border-color: #93c5fd !important;
}

/* ── ORDER for non-featured cards (flex column) ── */
.home .wp-block-latest-posts__list li:not(:first-child) .wp-block-latest-posts__featured-image {
  order: 1 !important;
}
.home .wp-block-latest-posts__list li:not(:first-child) .wp-block-latest-posts__post-date {
  order: 2 !important;
}
.home .wp-block-latest-posts__list li:not(:first-child) > a {
  order: 3 !important;
}
.home .wp-block-latest-posts__list li:not(:first-child) .wp-block-latest-posts__post-excerpt {
  order: 4 !important;
}
.home .wp-block-latest-posts__list li:not(:first-child) .wp-block-latest-posts__read-more {
  order: 5 !important;
}

/* ── Non-featured typography ── */
.home .wp-block-latest-posts__list li:not(:first-child) .wp-block-latest-posts__post-date {
  font-size: 11px !important;
  color: #94a3b8 !important;
  display: block !important;
  padding: 18px 22px 6px 22px !important;
}
.home .wp-block-latest-posts__list li:not(:first-child) > a {
  font-size: 15px !important;
  font-weight: 700 !important;
  color: #0f172a !important;
  text-decoration: none !important;
  line-height: 1.4 !important;
  padding: 0 22px 10px 22px !important;
  display: block !important;
}
.home .wp-block-latest-posts__list li:not(:first-child) > a:hover {
  color: #1a6fc4 !important;
}
.home .wp-block-latest-posts__list li:not(:first-child) .wp-block-latest-posts__post-excerpt {
  font-size: 13px !important;
  color: #475569 !important;
  line-height: 1.7 !important;
  padding: 0 22px 10px 22px !important;
  display: block !important;
}
.home .wp-block-latest-posts__list li:not(:first-child) .wp-block-latest-posts__read-more {
  font-size: 12px !important;
  font-weight: 600 !important;
  color: #1a6fc4 !important;
  padding: 0 22px 20px 22px !important;
  display: block !important;
  text-decoration: none !important;
  margin-top: auto !important;
}

/* ── Non-featured image ── */
.home .wp-block-latest-posts__list li:not(:first-child) .wp-block-latest-posts__featured-image img {
  width: 100% !important;
  height: 180px !important;
  object-fit: cover !important;
  border-radius: 16px 16px 0 0 !important;
  display: block !important;
}

/* ══════════════════════════════════════════════
   FEATURED FIRST POST
   Internal CSS Grid: image col 1, content col 2
   Auto-row placement — no ghost rows
   ══════════════════════════════════════════════ */
.home .wp-block-latest-posts__list li:first-child {
  grid-column: 1 / -1 !important;
  display: grid !important;
  grid-template-columns: 340px 1fr !important;
  grid-auto-rows: min-content !important;   /* rows shrink to content — no empty space */
  align-items: start !important;
  flex-direction: unset !important;
}

/* Image: col 1, span all rows */
.home .wp-block-latest-posts__list li:first-child .wp-block-latest-posts__featured-image {
  grid-column: 1 !important;
  grid-row: 1 / span 99 !important;        /* span all content rows */
  align-self: stretch !important;
}

.home .wp-block-latest-posts__list li:first-child .wp-block-latest-posts__featured-image img {
  width: 100% !important;
  height: 100% !important;
  min-height: 220px !important;
  object-fit: cover !important;
  border-radius: 16px 0 0 16px !important;
  display: block !important;
}

/* All content elements: col 2, auto-placed row by row (no gaps) */
.home .wp-block-latest-posts__list li:first-child .wp-block-latest-posts__post-date,
.home .wp-block-latest-posts__list li:first-child > a,
.home .wp-block-latest-posts__list li:first-child .wp-block-latest-posts__post-excerpt,
.home .wp-block-latest-posts__list li:first-child .wp-block-latest-posts__read-more {
  grid-column: 2 !important;
  /* NO grid-row — let auto-placement stack them tightly */
  min-width: 0 !important;
}

/* Featured typography */
.home .wp-block-latest-posts__list li:first-child .wp-block-latest-posts__post-date {
  font-size: 11px !important;
  color: #94a3b8 !important;
  display: block !important;
  padding: 24px 22px 6px 22px !important;
}

.home .wp-block-latest-posts__list li:first-child > a {
  font-size: 18px !important;
  font-weight: 700 !important;
  color: #0f172a !important;
  text-decoration: none !important;
  line-height: 1.4 !important;
  padding: 0 22px 10px 22px !important;
  display: block !important;
}

.home .wp-block-latest-posts__list li:first-child > a:hover {
  color: #1a6fc4 !important;
}

.home .wp-block-latest-posts__list li:first-child .wp-block-latest-posts__post-excerpt {
  font-size: 13px !important;
  color: #475569 !important;
  line-height: 1.7 !important;
  padding: 0 22px 10px 22px !important;
  display: block !important;
}

.home .wp-block-latest-posts__list li:first-child .wp-block-latest-posts__read-more {
  font-size: 12px !important;
  font-weight: 600 !important;
  color: #1a6fc4 !important;
  padding: 0 22px 20px 22px !important;
  display: block !important;
  text-decoration: none !important;
}

/* ── MOBILE ── */
@media (max-width: 640px) {
  .home .wp-block-latest-posts__list {
    grid-template-columns: 1fr !important;
  }

  .home .wp-block-latest-posts__list li:first-child {
    grid-template-columns: 1fr !important;
    grid-auto-rows: min-content !important;
  }

  .home .wp-block-latest-posts__list li:first-child .wp-block-latest-posts__featured-image {
    grid-column: 1 !important;
    grid-row: 1 !important;
  }

  .home .wp-block-latest-posts__list li:first-child .wp-block-latest-posts__featured-image img {
    border-radius: 16px 16px 0 0 !important;
    min-height: 180px !important;
    height: 180px !important;
  }

  .home .wp-block-latest-posts__list li:first-child .wp-block-latest-posts__post-date,
  .home .wp-block-latest-posts__list li:first-child > a,
  .home .wp-block-latest-posts__list li:first-child .wp-block-latest-posts__post-excerpt,
  .home .wp-block-latest-posts__list li:first-child .wp-block-latest-posts__read-more {
    grid-column: 1 !important;
  }
}

/* ===== BLOG PAGE LAYOUT ===== */

.single-post .site-content,
.single-post .content-area {
    max-width: 1180px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ===== FEATURE IMAGE FIX ===== */

.single-post .post-thumbnail img,
.single-post .wp-post-image {
    width: 100%;
    max-height: 500px;
    object-fit: cover;
    border-radius: 12px;
    margin-bottom: 35px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.12);
}

/* ===== BLOG CONTENT WRAPPER ===== */

.single-post article {
    background: #ffffff;
    padding: 40px;
    border-radius: 14px;
    box-shadow: 0 2px 20px rgba(0,0,0,0.05);
}

/* ===== TITLE ===== */

.single-post h1.entry-title {
    font-size: 42px;
    line-height: 1.2;
    font-weight: 700;
    margin-bottom: 25px;
    color: #111;
    text-align: center;
}

/* ===== CONTENT TYPOGRAPHY ===== */

.single-post .entry-content {
    font-size: 18px;
    line-height: 1.9;
    color: #444;
}

.single-post .entry-content p {
    margin-bottom: 24px;
}

/* ===== HEADINGS ===== */

.single-post .entry-content h2 {
    font-size: 32px;
    line-height: 1.3;
    margin-top: 50px;
    margin-bottom: 20px;
    color: #111;
    position: relative;
    padding-bottom: 10px;
}

.single-post .entry-content h2:after {
    content: "";
    width: 70px;
    height: 4px;
    background: #0d6efd;
    position: absolute;
    left: 0;
    bottom: 0;
    border-radius: 50px;
}

.single-post .entry-content h3 {
    font-size: 24px;
    margin-top: 35px;
    margin-bottom: 15px;
    color: #222;
}

/* ===== BLOCKQUOTE ===== */

.single-post blockquote {
    background: #f4f8fb;
    border-left: 5px solid #0d6efd;
    padding: 25px;
    margin: 35px 0;
    border-radius: 8px;
    font-size: 20px;
    line-height: 1.7;
    color: #333;
}

/* ===== LISTS ===== */

.single-post .entry-content ul,
.single-post .entry-content ol {
    padding-left: 25px;
    margin-bottom: 25px;
}

.single-post .entry-content li {
    margin-bottom: 12px;
}

/* ===== FAQ SECTION ===== */

.single-post .entry-content strong {
    color: #111;
}

/* ===== TABLES ===== */

.single-post table {
    width: 100%;
    border-collapse: collapse;
    margin: 30px 0;
}

.single-post table td,
.single-post table th {
    border: 1px solid #ddd;
    padding: 12px;
}

.single-post table th {
    background: #f5f5f5;
}

/* ===== SHARE / META ===== */

.single-post .entry-meta,
.single-post .post-navigation,
.single-post .comments-area {
    margin-top: 40px;
}

/* ===== MOBILE ===== */

@media (max-width: 768px) {

    .single-post article {
        padding: 25px;
    }

    .single-post h1.entry-title {
        font-size: 30px;
    }

    .single-post .entry-content {
        font-size: 16px;
        line-height: 1.8;
    }

    .single-post .entry-content h2 {
        font-size: 26px;
    }

    .single-post .post-thumbnail img,
    .single-post .wp-post-image {
        max-height: 280px;
    }
}