/******* Do not edit this file *******
Simple Custom CSS and JS - by Silkypress.com
Saved: Nov 18 2026 | 11:55:39 */
/* ============================================================
   HAMZA BLOG SINGLE PAGE TEMPLATE
   Nainaura blog styling — saved in Simple Custom CSS and JS
   (plugin) so it survives theme and WordPress updates.
   Sections:
     1. BLOG INDEX — Jenpharm-style card grid
     2. BLOG HERO — featured latest post (first card)
     3. SINGLE POST — Jenpharm-style article design
     4. TABLES — #9E8775 header, black bold header text
   Theme colour: #9E8775 (warm taupe)
   ============================================================ */
/* ============================================================
   1. BLOG INDEX — Jenpharm-style card grid
   Theme settings already applied in Ruza Options > Blog:
   Articles layout (no sidebar), 3 columns, author & comments
   meta off, button text "Read More".
   ============================================================ */
/* Card: white background, light border, soft shadow, rounded corners */
.blog .layout-blog .row.grid article {
  background: #fff;
  border: 1px solid #eaeaea;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.05);
  height: 100%;
  display: flex;
  flex-direction: column;
  transition: box-shadow 0.25s ease;
}
.blog .layout-blog .row.grid article:hover {
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.1);
}
/* Featured image: consistent 16:10 landscape crop */
.blog .layout-blog .entry-thumb {
  margin: 0;
  overflow: hidden;
}
.blog .layout-blog .entry-thumb .entry-thumb-content {
  aspect-ratio: 16 / 10;
  overflow: hidden;
}
.blog .layout-blog .entry-thumb a {
  display: block;
  height: 100%;
}
.blog .layout-blog .entry-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}
/* Card body */
.blog .layout-blog .entry-content {
  padding: 20px 24px 24px;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.blog .layout-blog .entry-header {
  display: flex;
  flex-direction: column;
  flex: 1;
}
/* Category label + date: small and muted */
.blog .layout-blog .entry-category {
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.blog .layout-blog .entry-meta {
  font-size: 13px;
  color: #999;
}
/* Belt and braces: never show author or comments meta on archive cards */
.blog .layout-blog .entry-meta .byline,
.blog .layout-blog .entry-meta .author,
.blog .layout-blog .entry-meta .comments-link,
.blog .layout-blog .entry-meta .entry-comments {
  display: none !important;
}
/* Title: clear and bold, under the image */
.blog .layout-blog .entry-title,
.blog .layout-blog .entry-header h3 {
  font-size: 20px;
  line-height: 1.35;
  font-weight: 700;
  margin: 8px 0 10px;
}
.blog .layout-blog .entry-title a {
  color: #1a1a1a;
}
/* Excerpt: muted grey, clamped to 3 lines */
.blog .layout-blog .entry-description,
.blog .layout-blog .entry-header p {
  color: #666;
  font-size: 15px;
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 16px;
}
/* "Read More": simple underlined text link, pinned to the card bottom */
.blog .layout-blog .entry-header .readmore,
.blog .layout-blog .entry-header .read-more,
.blog .layout-blog .entry-header a.more-link,
.blog .layout-blog .entry-header a.readmore,
.blog .layout-blog .entry-header a.read-more,
.blog .layout-blog .entry-header .entry-readmore a,
.blog .layout-blog .entry-header .readmore a,
.blog .layout-blog .entry-header .read-more a,
.blog .layout-blog .entry-header a.btn,
.blog .layout-blog .entry-header > a:last-child,
.blog .layout-blog .entry-header > :last-child a {
  display: inline-block;
  margin-top: auto;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: none;
  box-shadow: none;
  color: #111;
  font-size: 14px;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
  text-transform: none;
  letter-spacing: 0;
  line-height: 1.5;
}
/* Responsive: 2 columns on tablet, 1 column on mobile.
   The !important flags override the theme grid's own column widths. */
@media (min-width: 768px) and (max-width: 1024px) {
  .blog .layout-blog .row.grid > .post {
    flex: 0 0 50% !important;
    max-width: 50% !important;
    width: 50% !important;
  }
}
@media (max-width: 767px) {
  .blog .layout-blog .row.grid > .post {
    flex: 0 0 100% !important;
    max-width: 100% !important;
    width: 100% !important;
  }
  .blog .layout-blog .entry-content {
    padding: 18px 20px 22px;
  }
}
/* ============================================================
   2. BLOG HERO — Featured latest post (first card in the grid)
   The first card in the archive grid (the newest post) becomes
   a wide hero band: text on the left, image on the right.
   Applies automatically to whichever post is first/newest.
   The archive grid is the theme's flex row, so the hero spans
   the full width with a 100% flex-basis.
   ============================================================ */
/* First grid item spans the full width of the row */
.blog .layout-blog .row.grid > .post:first-child {
  flex: 0 0 100% !important;
  max-width: 100% !important;
  width: 100% !important;
  margin-bottom: 0;
}
/* Hero card: light tinted band, two columns */
.blog .layout-blog .row.grid > .post:first-child article {
  display: flex;
  flex-direction: row;
  align-items: stretch;
  gap: 40px;
  padding: 40px 44px;
  background: #f4efe9;
  border: 1px solid #e9dfd3;
  border-radius: 16px;
  box-shadow: none;
  overflow: hidden;
}
.blog .layout-blog .row.grid > .post:first-child article:hover {
  box-shadow: none;
  transform: none;
}
/* Text column (left) */
.blog .layout-blog .row.grid > .post:first-child article .entry-content {
  order: 1;
  flex: 1 1 0;
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 0 !important;
  margin: 0 !important;
  border: 0;
}
.blog .layout-blog .row.grid > .post:first-child article .entry-header {
  padding: 0;
  margin: 0;
  border: 0;
}
/* Hero title: large, bold, dark */
.blog .layout-blog .row.grid > .post:first-child article .entry-title {
  font-size: 32px;
  line-height: 1.2;
  color: #1a1a1a;
  margin: 10px 0 14px;
}
.blog .layout-blog .row.grid > .post:first-child article .entry-title a {
  color: #1a1a1a;
}
/* Hero excerpt: longer (4 lines), muted dark grey */
.blog .layout-blog .row.grid > .post:first-child article .entry-description {
  font-size: 17px;
  line-height: 1.7;
  color: #555555;
  margin: 0;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 4 !important;
  line-clamp: 4;
  overflow: hidden;
}
/* Hero read-more: solid pill button in the theme colour */
.blog .layout-blog .row.grid > .post:first-child article .more {
  margin-top: 20px;
}
.blog .layout-blog .row.grid > .post:first-child article .more a {
  display: inline-block;
  margin: 0;
  background: #9E8775;
  color: #ffffff !important;
  font-weight: 700;
  font-size: 15px;
  line-height: 1;
  padding: 12px 26px;
  border-radius: 999px;
  text-decoration: none !important;
  box-shadow: none;
}
.blog .layout-blog .row.grid > .post:first-child article .more a:hover,
.blog .layout-blog .row.grid > .post:first-child article .more a:focus {
  background: #8a7462;
  color: #ffffff;
  text-decoration: none;
}
.blog .layout-blog .row.grid > .post:first-child article .more a::after,
.blog .layout-blog .row.grid > .post:first-child article .more a i,
.blog .layout-blog .row.grid > .post:first-child article .more a svg {
  display: none;
}
/* Image column (right): large, rounded corners, natural landscape ratio */
.blog .layout-blog .row.grid > .post:first-child article .entry-thumb {
  order: 2;
  flex: 0 0 46%;
  margin: 0;
  display: flex;
}
.blog .layout-blog .row.grid > .post:first-child article .entry-thumb .entry-thumb-content {
  flex: 1 1 auto;
  display: flex;
  min-width: 0;
  aspect-ratio: auto !important;
  overflow: hidden;
}
.blog .layout-blog .row.grid > .post:first-child article .entry-thumb .entry-thumb-content a {
  display: block;
  width: 100%;
  height: 100%;
}
.blog .layout-blog .row.grid > .post:first-child article .entry-thumb img {
  width: 100% !important;
  height: 100% !important;
  aspect-ratio: auto !important;
  object-fit: cover;
  border-radius: 16px;
}
/* Tablet: hero stays side by side, slightly tighter */
@media (min-width: 768px) and (max-width: 1024px) {
  .blog .layout-blog .row.grid > .post:first-child article {
    padding: 32px;
    gap: 28px;
  }
  .blog .layout-blog .row.grid > .post:first-child article .entry-title {
    font-size: 28px;
  }
}
/* Mobile: hero stacks — image on top, then title, excerpt, button */
@media (max-width: 767px) {
  .blog .layout-blog .row.grid > .post:first-child article {
    flex-direction: column;
    gap: 20px;
    padding: 24px 20px;
  }
  .blog .layout-blog .row.grid > .post:first-child article .entry-thumb {
    order: 1;
    flex: none;
    width: 100%;
  }
  .blog .layout-blog .row.grid > .post:first-child article .entry-thumb img {
    height: auto !important;
    aspect-ratio: 16 / 10 !important;
  }
  .blog .layout-blog .row.grid > .post:first-child article .entry-content {
    order: 2;
  }
  .blog .layout-blog .row.grid > .post:first-child article .entry-title {
    font-size: 24px;
  }
}
/* ============================================================
   3. SINGLE POST — Jenpharm-style article design
   Theme colour: #9E8775 (warm taupe)
   Ruza setting: Single Blog layout "Main - Right Sidebar"
   Sidebar: Blog Single Sidebar holds only the
   "Recent Articles" (Ruza Recent Posts) widget, 4 posts.
   Template order: figure.entry-thumb, .entry-category,
   .entry-header (meta), h1.entry-title, then .entry-content.
   The title is overlaid on the hero with absolute positioning
   over a fixed-height hero (480px desktop), because the DOM
   puts the title after the image, category and byline.
   ============================================================ */
/* ---------- Hero: wide image, title overlaid bottom-left ---------- */
.single-post .entry-single article {
  position: relative;
}
.single-post .entry-single .entry-thumb {
  position: relative;
  height: 480px;
  margin: 0 0 22px;
  overflow: hidden;
  border-radius: 12px;
}
.single-post .entry-single .entry-thumb .entry-thumb-content,
.single-post .entry-single .entry-thumb a {
  display: block;
  height: 100%;
}
.single-post .entry-single .entry-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}
/* Dark gradient at the bottom of the hero so the white title reads */
.single-post .entry-single .entry-thumb::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.78) 0%, rgba(0, 0, 0, 0.45) 42%, rgba(0, 0, 0, 0) 72%);
  pointer-events: none;
}
/* Title overlaid on the hero, bottom-left, large bold white */
.single-post .entry-single h1.entry-title {
  position: absolute;
  top: 320px;
  left: 28px;
  right: 28px;
  z-index: 3;
  margin: 0;
  color: #fff;
  font-size: 40px;
  line-height: 1.2;
  font-weight: 700;
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.45);
}
/* ---------- Category label + byline under the hero ---------- */
.single-post .entry-single .entry-category {
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 6px;
}
.single-post .entry-single .entry-category a {
  color: #9E8775;
}
/* Byline: small muted "By Hamza on [date]" — comments hidden */
.single-post .entry-single .entry-header {
  font-size: 14px;
  color: #888;
  margin-bottom: 26px;
}
.single-post .entry-single .entry-header i,
.single-post .entry-single .entry-header svg {
  display: none;
}
.single-post .entry-single .entry-header .comments-link,
.single-post .entry-single .entry-header .entry-comments,
.single-post .entry-single .entry-header a[href*="#comments"] {
  display: none !important;
}
.single-post .entry-single .entry-header a {
  color: #888;
  text-decoration: none;
}
.single-post .entry-single .entry-header a:hover {
  color: #9E8775;
}
/* Turn the theme's "Posted on" wording into "on" (date wrapper only).
   The date itself sits inside a <time> element in the link, so the
   font-size is restored on the link's inner elements too. */
.single-post .entry-single .entry-header .entry-date,
.single-post .entry-single .entry-header .posted-on {
  font-size: 0;
}
.single-post .entry-single .entry-header .entry-date a,
.single-post .entry-single .entry-header .posted-on a,
.single-post .entry-single .entry-header .entry-date a *,
.single-post .entry-single .entry-header .posted-on a * {
  font-size: 14px;
}
.single-post .entry-single .entry-header .entry-date a::before,
.single-post .entry-single .entry-header .posted-on a::before {
  content: "on ";
}
/* ---------- Article body (Gutenberg content) ---------- */
.single-post .entry-single .entry-content {
  font-size: 17px;
  line-height: 1.8;
  color: #333;
}
.single-post .entry-single .entry-content p {
  margin-bottom: 1.4em;
}
/* H2: bold, theme colour, clearly larger than body text */
.single-post .entry-single .entry-content h2 {
  font-size: 30px;
  line-height: 1.3;
  font-weight: 700;
  color: #9E8775;
  margin: 1.6em 0 0.7em;
}
/* H3: bold, dark (FAQ questions etc. inherit this automatically) */
.single-post .entry-single .entry-content h3 {
  font-size: 22px;
  line-height: 1.4;
  font-weight: 700;
  color: #1a1a1a;
  margin: 1.5em 0 0.6em;
}
/* Links: theme accent, underlined */
.single-post .entry-single .entry-content a {
  color: #9E8775;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.single-post .entry-single .entry-content a:hover {
  color: #8a7462;
}
/* Lists keep the same comfortable rhythm */
.single-post .entry-single .entry-content ul,
.single-post .entry-single .entry-content ol {
  line-height: 1.8;
  margin-bottom: 1.4em;
  padding-left: 1.4em;
}
.single-post .entry-single .entry-content li {
  margin-bottom: 0.5em;
}
/* Content images: never stretched, full width when large, rounded */
.single-post .entry-single .entry-content img {
  max-width: 100%;
  height: auto;
  border-radius: 12px;
}
.single-post .entry-single .entry-content figure,
.single-post .entry-single .entry-content .wp-block-image {
  margin: 1.6em 0;
}
.single-post .entry-single .entry-content .wp-block-image.size-large img,
.single-post .entry-single .entry-content .wp-block-image.size-full img,
.single-post .entry-single .entry-content img.size-large,
.single-post .entry-single .entry-content img.size-full {
  width: 100%;
}
/* ---------- Sidebar: "Recent Articles" as small cards ---------- */
.single-post aside.sidebar .widget-title,
.single-post aside.sidebar .widget > h3 {
  font-size: 20px;
  font-weight: 700;
  color: #9E8775;
  margin-bottom: 18px;
}
/* Card: thumbnail on top, white, light border, rounded, soft shadow.
   NOTE: the theme lays the widget's thumb and text out side by side
   (display: table-cell) and caps the thumbnail at 88px, so those
   theme rules are overridden here to stack the card vertically. */
.single-post aside.sidebar .post-widget ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
.single-post aside.sidebar .post-widget li.post {
  background: #fff;
  border: 1px solid #eaeaea;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  margin-bottom: 22px;
  padding: 0;
}
.single-post aside.sidebar .post-widget li.post > div {
  display: block;
}
.single-post aside.sidebar .post-widget li.post .entry-thumb {
  margin: 0;
  padding-right: 0;
  overflow: hidden;
}
.single-post aside.sidebar .post-widget li.post .entry-thumb a.entry-image {
  display: block;
  aspect-ratio: 16 / 10;
  overflow: hidden;
}
.single-post aside.sidebar .post-widget li.post .entry-thumb img {
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  object-position: center;
  display: block;
}
.single-post aside.sidebar .post-widget li.post .entry-content {
  padding: 16px 18px 18px;
}
.single-post aside.sidebar .post-widget li.post h3.entry-title {
  font-size: 16px;
  line-height: 1.4;
  font-weight: 700;
  margin: 0 0 8px;
}
.single-post aside.sidebar .post-widget li.post h3.entry-title a {
  color: #1a1a1a;
  text-decoration: none;
}
.single-post aside.sidebar .post-widget li.post h3.entry-title a:hover {
  color: #9E8775;
}
.single-post aside.sidebar .post-widget li.post .entry-meta-list {
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 13px;
  color: #999;
}
.single-post aside.sidebar .post-widget li.post .entry-meta-list a {
  color: #999;
  text-decoration: none;
}
/* "READ MORE" label at the foot of each card (thumbnail + title link to the post) */
.single-post aside.sidebar .post-widget li.post::after {
  content: "READ MORE";
  display: block;
  padding: 0 18px 16px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: #9E8775;
  text-decoration: underline;
  text-underline-offset: 3px;
}
/* ---------- Single post: tablet + mobile ----------
   Hero heights are deliberately generous so the overlaid title
   (up to 5–6 lines on narrow screens) always stays on the image. */
@media (max-width: 1024px) {
  .single-post .entry-single .entry-thumb {
    height: 420px;
  }
  .single-post .entry-single h1.entry-title {
    top: 220px;
    left: 22px;
    right: 22px;
    font-size: 30px;
  }
  .single-post .entry-single .entry-content h2 {
    font-size: 26px;
  }
}
@media (max-width: 767px) {
  .single-post .entry-single .entry-thumb {
    height: 320px;
    border-radius: 10px;
  }
  .single-post .entry-single h1.entry-title {
    top: 130px;
    left: 16px;
    right: 16px;
    font-size: 23px;
  }
  .single-post .entry-single .entry-content {
    font-size: 16px;
  }
  .single-post .entry-single .entry-content h2 {
    font-size: 24px;
  }
  .single-post .entry-single .entry-content h3 {
    font-size: 20px;
  }
  /* Sidebar stacks below the article on small screens */
  .single-post aside.sidebar {
    margin-top: 40px;
  }
}
/* ============================================================
   4. TABLES — taupe header, black bold header text
   Applies to Gutenberg table blocks and standard tables
   inside single-post content.
   ============================================================ */
.single-post .entry-single .entry-content table,
.single-post .entry-single .entry-content .wp-block-table table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.6em 0;
  font-size: 15px;
  line-height: 1.55;
}
.single-post .entry-single .entry-content .wp-block-table {
  width: 100%;
  overflow-x: auto;
}
.single-post .entry-single .entry-content table th,
.single-post .entry-single .entry-content .wp-block-table table th,
.single-post .entry-single .entry-content table thead th {
  background-color: #9E8775 !important;
  color: #000 !important;
  font-weight: 700;
  text-align: left;
  padding: 12px 14px;
  border: 1px solid #8a7462;
}
.single-post .entry-single .entry-content table td {
  padding: 10px 14px;
  border: 1px solid #e5ded5;
  vertical-align: top;
}
.single-post .entry-single .entry-content table tbody tr:nth-child(even) td {
  background: #faf8f5;
}

/* ============================================================
   BLOG HERO — CORRECTED (robust first-item selectors)
   This section supersedes the earlier hero rules above that
   used .post:first-child (the theme does not put a .post
   element as the direct first child of the grid, so those
   rules never matched). These selectors target the first
   grid item whatever its wrapper class is, so the hero
   applies automatically to whichever post is newest.
   ============================================================ */

/* First grid item spans the full width of the row */
.blog .layout-blog .row.grid > :first-child {
  flex: 0 0 100% !important;
  max-width: 100% !important;
  width: 100% !important;
  margin-bottom: 0;
}

/* Hero card: the article inside the first grid item, or the
   article itself when it is the first grid item */
.blog .layout-blog .row.grid > :first-child article,
.blog .layout-blog .row.grid > article:first-child {
  display: flex;
  flex-direction: row;
  align-items: stretch;
  gap: 40px;
  padding: 40px 44px;
  background: #f4efe9;
  border: 1px solid #e9dfd3;
  border-radius: 16px;
  box-shadow: none;
  overflow: hidden;
}

/* Hero text column on the left */
.blog .layout-blog .row.grid > :first-child article .entry-content,
.blog .layout-blog .row.grid > article:first-child .entry-content {
  flex: 1 1 auto;
  min-width: 0;
  order: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 0;
}

/* Hero image on the right */
.blog .layout-blog .row.grid > :first-child article .entry-thumb,
.blog .layout-blog .row.grid > article:first-child .entry-thumb {
  flex: 0 0 46%;
  max-width: 46%;
  order: 2;
  margin: 0;
}
.blog .layout-blog .row.grid > :first-child article .entry-thumb .entry-thumb-content,
.blog .layout-blog .row.grid > article:first-child .entry-thumb .entry-thumb-content {
  aspect-ratio: auto;
  height: 100%;
  border-radius: 16px;
  overflow: hidden;
}
.blog .layout-blog .row.grid > :first-child article .entry-thumb img,
.blog .layout-blog .row.grid > article:first-child .entry-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 16px;
}

/* Hero title: large and bold, dark */
.blog .layout-blog .row.grid > :first-child article .entry-content .entry-title,
.blog .layout-blog .row.grid > article:first-child .entry-content .entry-title {
  font-size: 32px;
  line-height: 1.2;
  font-weight: 700;
  color: #1a1a1a;
  margin: 0 0 14px;
}
.blog .layout-blog .row.grid > :first-child article .entry-content .entry-title a,
.blog .layout-blog .row.grid > article:first-child .entry-content .entry-title a {
  color: #1a1a1a;
}

/* Hero excerpt: longer, muted dark grey, about 4 lines */
.blog .layout-blog .row.grid > :first-child article .entry-content .entry-description,
.blog .layout-blog .row.grid > article:first-child .entry-content .entry-description {
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
  font-size: 16px;
  line-height: 1.65;
  color: #555;
  margin: 0 0 22px;
}

/* Hero read-more: solid pill button (hero only) */
.blog .layout-blog .row.grid > :first-child article .entry-content .more,
.blog .layout-blog .row.grid > article:first-child .entry-content .more {
  margin-top: auto;
}
.blog .layout-blog .row.grid > :first-child article .entry-content .more a,
.blog .layout-blog .row.grid > article:first-child .entry-content .more a {
  display: inline-block;
  background: #9E8775;
  color: #fff;
  font-weight: 700;
  padding: 12px 26px;
  border-radius: 999px;
  text-decoration: none;
  border: none;
}
.blog .layout-blog .row.grid > :first-child article .entry-content .more a:hover,
.blog .layout-blog .row.grid > article:first-child .entry-content .more a:hover {
  background: #8a7462;
  color: #fff;
  text-decoration: none;
}

/* Tablet: title 28px, tighter padding/gap */
@media (min-width: 768px) and (max-width: 1024px) {
  .blog .layout-blog .row.grid > :first-child article,
  .blog .layout-blog .row.grid > article:first-child {
    gap: 28px;
    padding: 32px;
  }
  .blog .layout-blog .row.grid > :first-child article .entry-content .entry-title,
  .blog .layout-blog .row.grid > article:first-child .entry-content .entry-title {
    font-size: 28px;
  }
}

/* Mobile: stack — image on top, then title, excerpt, button */
@media (max-width: 767px) {
  .blog .layout-blog .row.grid > :first-child article,
  .blog .layout-blog .row.grid > article:first-child {
    flex-direction: column;
    gap: 20px;
    padding: 24px 20px;
  }
  .blog .layout-blog .row.grid > :first-child article .entry-thumb,
  .blog .layout-blog .row.grid > article:first-child .entry-thumb {
    flex: 0 0 auto;
    max-width: 100%;
    order: 0;
  }
  .blog .layout-blog .row.grid > :first-child article .entry-content,
  .blog .layout-blog .row.grid > article:first-child .entry-content {
    order: 1;
  }
  .blog .layout-blog .row.grid > :first-child article .entry-content .entry-title,
  .blog .layout-blog .row.grid > article:first-child .entry-content .entry-title {
    font-size: 24px;
  }
}

/* ============================================================
   5. CONTENT IMAGES — uniform 1200 x 644
   Every image inside the article body renders in the same
   wide 1200 x 644 frame, whatever the uploaded file's own
   dimensions. object-fit: cover centre-crops (never distorts),
   so portrait photos are cropped to the landscape frame —
   that is expected and desired.
   Applies only to images inside .entry-content (the article
   body). It does NOT touch the hero featured image (which has
   its own 480px treatment in section 3), the blog index cards,
   or the Recent Articles sidebar thumbnails.
   ============================================================ */
.single-post .entry-single .entry-content img {
  width: 100%;
  aspect-ratio: 1200 / 644;
  object-fit: cover;
  height: auto;
  display: block;
  border-radius: 12px;
}
/* Images wrapped in figure elements get the same frame, and
   the figure itself is full content width */
.single-post .entry-single .entry-content figure {
  width: 100%;
  margin-left: 0;
  margin-right: 0;
}
.single-post .entry-single .entry-content figure img {
  width: 100%;
  aspect-ratio: 1200 / 644;
  object-fit: cover;
  height: auto;
  display: block;
  border-radius: 12px;
}
/* Safeguard: tiny inline images (emoji / smileys) keep their
   natural size and are not forced into the frame */
.single-post .entry-single .entry-content img.emoji,
.single-post .entry-single .entry-content img.wp-smiley {
  width: auto;
  aspect-ratio: auto;
  object-fit: none;
  display: inline;
  border-radius: 0;
}

/* ============================================================
   5b. CONTENT IMAGES — landscape banner frame (hardening)
   Guarantees every image in the article body presents as a
   wide, short landscape banner (1200 x 644). This catches
   images that escape the base rule in section 5: portrait
   stock/product photos, images with portrait attachment or
   size classes, and images inside figure / gallery / link
   markup. !important is used deliberately here so no theme
   or block rule can restore a tall rendering. Emoji / smileys
   stay exempt (see the section 5 safeguard).
   ============================================================ */
.single-post .entry-single .entry-content img:not(.emoji):not(.wp-smiley),
.single-post .entry-single .entry-content figure img:not(.emoji):not(.wp-smiley),
.single-post .entry-single .entry-content .wp-block-image img:not(.emoji):not(.wp-smiley),
.single-post .entry-single .entry-content .wp-block-gallery img:not(.emoji):not(.wp-smiley),
.single-post .entry-single .entry-content a img:not(.emoji):not(.wp-smiley) {
  width: 100% !important;
  aspect-ratio: 1200 / 644 !important;
  object-fit: cover !important;
  object-position: center !important;
  height: auto !important;
  display: block !important;
  border-radius: 12px !important;
  max-width: 100% !important;
}
/* Wrappers are full content width so the image frame spans the column */
.single-post .entry-single .entry-content figure,
.single-post .entry-single .entry-content .wp-block-image,
.single-post .entry-single .entry-content .wp-block-gallery {
  width: 100% !important;
  max-width: 100% !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
}
.single-post .entry-single .entry-content figure a,
.single-post .entry-single .entry-content .wp-block-image a {
  display: block !important;
}