/* ===== BLOG STYLES ===== */
/* Matches VarnikTech design system - uses existing CSS variables */

/* Blog Page Hero */
.blog-hero {
  background: linear-gradient(135deg, #000 0%, #1a1a1a 100%);
  color: var(--white);
  padding: 50px 0 40px;
}
.blog-hero .breadcrumb { font-size: 14px; margin-bottom: 10px; }
.blog-hero .breadcrumb a { color: var(--orange); }
.blog-hero .breadcrumb span { color: rgba(255,255,255,0.6); }
.blog-hero h1 { font-size: 32px; font-weight: 700; margin-bottom: 8px; }
.blog-hero p { color: rgba(255,255,255,0.7); font-size: 16px; }

/* Blog Layout */
.blog-section { padding: 50px 0; background: var(--gray-light); min-height: 60vh; }
.blog-layout { display: grid; grid-template-columns: 1fr 320px; gap: 30px; }

/* Blog Search */
.blog-search-box { margin-bottom: 25px; }
.blog-search-box form {
  display: flex; background: var(--white); border-radius: 8px;
  box-shadow: var(--shadow); overflow: hidden;
}
.blog-search-box input {
  flex: 1; padding: 14px 18px; border: none; outline: none;
  font-family: 'Poppins', sans-serif; font-size: 15px; color: #333;
}
.blog-search-box button {
  background: var(--orange); color: var(--white); border: none;
  padding: 14px 20px; cursor: pointer; font-size: 16px;
  transition: background 0.3s;
}
.blog-search-box button:hover { background: var(--orange-dark); }

/* Category Filter */
.blog-categories { margin-bottom: 25px; display: flex; flex-wrap: wrap; gap: 8px; }
.blog-cat-tag {
  padding: 6px 16px; border-radius: 20px; font-size: 13px; font-weight: 500;
  background: var(--white); color: var(--gray); border: 1px solid #e0e0e0;
  cursor: pointer; transition: all 0.3s; text-decoration: none;
}
.blog-cat-tag:hover, .blog-cat-tag.active {
  background: var(--orange); color: var(--white); border-color: var(--orange);
}

/* Blog Cards Grid */
.blog-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 25px; }

/* Blog Card */
.blog-card {
  background: var(--white); border-radius: 12px; overflow: hidden;
  box-shadow: var(--shadow); transition: transform 0.3s, box-shadow 0.3s;
}
.blog-card:hover { transform: translateY(-5px); box-shadow: 0 8px 30px rgba(0,0,0,0.15); }
.blog-card-image {
  width: 100%; height: 200px; object-fit: cover;
  transition: transform 0.3s;
}
.blog-card:hover .blog-card-image { transform: scale(1.03); }
.blog-card-image-wrap { overflow: hidden; position: relative; }
.blog-card-category {
  position: absolute; top: 12px; left: 12px;
  background: var(--orange); color: var(--white);
  padding: 4px 12px; border-radius: 4px; font-size: 11px;
  font-weight: 600; text-transform: uppercase; letter-spacing: 0.5px;
}
.blog-card-body { padding: 20px; }
.blog-card-date {
  font-size: 13px; color: var(--gray); margin-bottom: 8px;
  display: flex; align-items: center; gap: 6px;
}
.blog-card-date i { color: var(--orange); font-size: 12px; }
.blog-card-title {
  font-size: 17px; font-weight: 600; color: var(--black);
  margin-bottom: 10px; line-height: 1.4;
  display: -webkit-box; -webkit-line-clamp: 2;
  -webkit-box-orient: vertical; overflow: hidden;
}
.blog-card-title a { color: inherit; transition: color 0.3s; }
.blog-card-title a:hover { color: var(--orange); }
.blog-card-excerpt {
  font-size: 14px; color: var(--gray); line-height: 1.6;
  margin-bottom: 15px;
  display: -webkit-box; -webkit-line-clamp: 3;
  -webkit-box-orient: vertical; overflow: hidden;
}
.blog-card-readmore {
  display: inline-flex; align-items: center; gap: 6px;
  color: var(--orange); font-size: 14px; font-weight: 600;
  transition: gap 0.3s;
}
.blog-card-readmore:hover { gap: 10px; }

/* Pagination */
.blog-pagination {
  display: flex; justify-content: center; align-items: center;
  gap: 8px; margin-top: 40px; flex-wrap: wrap;
}
.blog-pagination a, .blog-pagination span {
  padding: 10px 16px; border-radius: 6px; font-size: 14px;
  font-weight: 500; transition: all 0.3s; text-decoration: none;
}
.blog-pagination a {
  background: var(--white); color: var(--black); border: 1px solid #e0e0e0;
}
.blog-pagination a:hover, .blog-pagination a.active {
  background: var(--orange); color: var(--white); border-color: var(--orange);
}
.blog-pagination span.dots { border: none; background: none; color: var(--gray); }

/* Sidebar */
.blog-sidebar { position: sticky; top: 90px; }

/* Sidebar Widget */
.sidebar-widget {
  background: var(--white); border-radius: 12px; padding: 24px;
  box-shadow: var(--shadow); margin-bottom: 25px;
}
.sidebar-widget h3 {
  font-size: 18px; font-weight: 600; margin-bottom: 16px;
  padding-bottom: 12px; border-bottom: 2px solid var(--orange);
  color: var(--black);
}

/* Recent Posts Widget */
.recent-post-item {
  display: flex; gap: 12px; padding: 12px 0;
  border-bottom: 1px solid #f0f0f0;
}
.recent-post-item:last-child { border-bottom: none; }
.recent-post-thumb {
  width: 70px; height: 55px; border-radius: 6px;
  object-fit: cover; flex-shrink: 0;
}
.recent-post-info h4 {
  font-size: 13px; font-weight: 500; line-height: 1.4; margin-bottom: 4px;
}
.recent-post-info h4 a { color: var(--black); transition: color 0.3s; }
.recent-post-info h4 a:hover { color: var(--orange); }
.recent-post-info span { font-size: 12px; color: var(--gray); }

/* Categories Widget */
.cat-list-item {
  display: flex; justify-content: space-between; align-items: center;
  padding: 10px 0; border-bottom: 1px solid #f0f0f0;
}
.cat-list-item:last-child { border-bottom: none; }
.cat-list-item a {
  font-size: 14px; color: var(--black); transition: color 0.3s;
  display: flex; align-items: center; gap: 8px;
}
.cat-list-item a:hover { color: var(--orange); }
.cat-list-item a::before { content: "\f105"; font-family: "Font Awesome 6 Free"; font-weight: 900; color: var(--orange); font-size: 12px; }
.cat-list-item .cat-count {
  background: var(--gray-light); color: var(--gray);
  padding: 2px 10px; border-radius: 12px; font-size: 12px; font-weight: 500;
}

/* Newsletter Widget */
.newsletter-widget p { font-size: 14px; color: var(--gray); margin-bottom: 15px; line-height: 1.6; }
.newsletter-form input {
  width: 100%; padding: 12px 14px; border: 1px solid #ddd;
  border-radius: 6px; font-family: 'Poppins', sans-serif; font-size: 14px;
  margin-bottom: 10px; outline: none; transition: border-color 0.3s;
}
.newsletter-form input:focus { border-color: var(--orange); }
.newsletter-form button {
  width: 100%; padding: 12px; background: var(--orange);
  color: var(--white); border: none; border-radius: 6px;
  font-family: 'Poppins', sans-serif; font-size: 14px; font-weight: 600;
  cursor: pointer; transition: background 0.3s;
}
.newsletter-form button:hover { background: var(--orange-dark); }
.newsletter-msg { font-size: 13px; margin-top: 8px; }
.newsletter-msg.success { color: #10b981; }
.newsletter-msg.error { color: #ef4444; }

/* No Results */
.blog-no-results {
  text-align: center; padding: 60px 20px; background: var(--white);
  border-radius: 12px; box-shadow: var(--shadow);
}
.blog-no-results i { font-size: 48px; color: #ddd; margin-bottom: 15px; }
.blog-no-results h3 { font-size: 20px; margin-bottom: 8px; color: var(--black); }
.blog-no-results p { color: var(--gray); font-size: 15px; }

/* ===== SINGLE BLOG POST ===== */
.post-hero {
  background: linear-gradient(135deg, #000 0%, #1a1a1a 100%);
  color: var(--white); padding: 40px 0 30px;
}
.post-hero .breadcrumb { font-size: 14px; margin-bottom: 12px; }
.post-hero .breadcrumb a { color: var(--orange); }
.post-hero .breadcrumb span { color: rgba(255,255,255,0.6); }
.post-meta-top { display: flex; align-items: center; gap: 15px; margin-bottom: 12px; flex-wrap: wrap; }
.post-meta-cat {
  background: var(--orange); color: var(--white);
  padding: 4px 14px; border-radius: 4px; font-size: 12px;
  font-weight: 600; text-transform: uppercase;
}
.post-meta-date { font-size: 14px; color: rgba(255,255,255,0.7); display: flex; align-items: center; gap: 6px; }
.post-meta-date i { color: var(--orange); }
.post-hero h1 { font-size: 30px; font-weight: 700; line-height: 1.3; margin-bottom: 10px; }
.post-hero .post-excerpt { font-size: 16px; color: rgba(255,255,255,0.7); line-height: 1.6; }

/* Post Featured Image */
.post-featured-image { width: 100%; max-height: 450px; object-fit: cover; border-radius: 0; }
.post-featured-wrap { margin: 0; }

/* Post Content Layout */
.post-section { padding: 40px 0; background: var(--gray-light); }
.post-layout { display: grid; grid-template-columns: 1fr 320px; gap: 30px; }

/* Post Content */
.post-content {
  background: var(--white); border-radius: 12px; padding: 35px;
  box-shadow: var(--shadow);
}
.post-content h2 { font-size: 24px; font-weight: 600; margin: 30px 0 15px; color: var(--black); }
.post-content h2:first-child { margin-top: 0; }
.post-content h3 { font-size: 20px; font-weight: 600; margin: 25px 0 12px; color: var(--black); }
.post-content h4 { font-size: 17px; font-weight: 600; margin: 20px 0 10px; color: var(--black); }
.post-content p { font-size: 15px; line-height: 1.8; color: #444; margin-bottom: 16px; }
.post-content ul, .post-content ol { margin: 15px 0; padding-left: 25px; }
.post-content li { font-size: 15px; line-height: 1.8; color: #444; margin-bottom: 6px; }
.post-content ul li { list-style: disc; }
.post-content ol li { list-style: decimal; }
.post-content img {
  max-width: 100%; height: auto; border-radius: 8px;
  margin: 20px 0;
}
.post-content a { color: var(--orange); text-decoration: underline; }
.post-content a:hover { color: var(--orange-dark); }
.post-content strong { font-weight: 600; color: var(--black); }
.post-content table {
  width: 100%; border-collapse: collapse; margin: 20px 0;
  font-size: 14px;
}
.post-content table th, .post-content table td {
  padding: 10px 14px; border: 1px solid #e0e0e0; text-align: left;
}
.post-content table th { background: var(--black); color: var(--white); font-weight: 600; }
.post-content table tr:nth-child(even) { background: #f9f9f9; }
.post-content blockquote {
  border-left: 4px solid var(--orange); padding: 15px 20px;
  margin: 20px 0; background: #fef9ef; border-radius: 0 8px 8px 0;
  font-style: italic; color: #555;
}
.post-content code {
  background: #f5f5f5; padding: 2px 6px; border-radius: 4px;
  font-size: 14px; color: #e83e8c;
}
.post-content pre {
  background: #1a1a1a; color: #f8f8f2; padding: 20px;
  border-radius: 8px; overflow-x: auto; margin: 20px 0;
  font-size: 14px; line-height: 1.5;
}
.post-content pre code { background: none; color: inherit; padding: 0; }

/* Social Sharing */
.social-share {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  padding: 20px 0; margin-top: 25px; border-top: 1px solid #eee;
}
.social-share span { font-size: 15px; font-weight: 600; color: var(--black); }
.share-btn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 16px; border-radius: 6px; font-size: 13px;
  font-weight: 500; color: var(--white); text-decoration: none;
  transition: opacity 0.3s;
}
.share-btn:hover { opacity: 0.85; }
.share-btn.facebook { background: #1877f2; }
.share-btn.linkedin { background: #0a66c2; }
.share-btn.twitter { background: #000; }
.share-btn.whatsapp { background: #25D366; }

/* Related Posts */
.related-posts { margin-top: 40px; }
.related-posts h3 {
  font-size: 22px; font-weight: 600; margin-bottom: 20px;
  color: var(--black);
}
.related-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.related-card {
  background: var(--white); border-radius: 10px; overflow: hidden;
  box-shadow: var(--shadow); transition: transform 0.3s;
}
.related-card:hover { transform: translateY(-3px); }
.related-card img { width: 100%; height: 140px; object-fit: cover; }
.related-card-body { padding: 15px; }
.related-card-body h4 { font-size: 14px; font-weight: 500; line-height: 1.4; }
.related-card-body h4 a { color: var(--black); transition: color 0.3s; }
.related-card-body h4 a:hover { color: var(--orange); }
.related-card-body span { font-size: 12px; color: var(--gray); margin-top: 6px; display: block; }

/* =========================================================================
   ELEMENTOR CONTENT COMPATIBILITY LAYER
   -------------------------------------------------------------------------
   Blog posts were imported from a WordPress/Elementor site. The exported
   HTML keeps Elementor's markup (inline SVG font-icons, nested containers,
   button widgets, nested accordions, icon lists, dividers) but none of
   Elementor's stylesheets were migrated.

   Without those stylesheets an inline <svg> has no intrinsic size, so it
   stretches to fill its flex/block parent -- which is why icons rendered
   as giant full-width WhatsApp / pencil / plus-minus graphics.

   Everything below is scoped to .post-content so it cannot leak into the
   site chrome (navbar, footer, floating WhatsApp button).
   ========================================================================= */

/* ---- 1. THE CORE FIX: constrain inline font icons to text size ---- */
.post-content svg.e-font-icon-svg,
.post-content .elementor-button-icon svg,
.post-content .elementor-icon-list-icon svg,
.post-content .e-n-accordion-item-title-icon svg {
  width: 1em;
  height: 1em;
  min-width: 1em;      /* stops flex containers from squashing it */
  max-width: 1em;
  flex: 0 0 auto;       /* stops flex-grow from stretching it */
  display: inline-block;
  vertical-align: -0.125em;
  fill: currentColor;   /* inherit colour from the button/list text */
  margin: 0;
}

/* Belt-and-braces: any stray Elementor icon anywhere on the page */
svg.e-font-icon-svg { width: 1em; height: 1em; fill: currentColor; }

/* ---- 2. Elementor layout containers ---- */
.post-content .e-con,
.post-content .e-con-inner {
  display: flex;
  flex-direction: column;   /* Elementor's default container direction */
  max-width: 100%;
  min-width: 0;             /* allow shrinking inside grid */
}
.post-content .e-con > .elementor-widget,
.post-content .e-con-inner > .elementor-widget { max-width: 100%; min-width: 0; }
.post-content .elementor-widget-container > *:last-child { margin-bottom: 0; }

/* Groups of CTA buttons should sit in a row and wrap on small screens */
.post-content .e-con:has(> .elementor-widget-button),
.post-content .e-con:has(> .e-con > .elementor-widget-button) {
  flex-direction: row;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin: 18px 0;
}
.post-content .e-con:has(> .elementor-widget-button) > .elementor-widget-button,
.post-content .e-con:has(> .e-con > .elementor-widget-button) > .e-con { width: auto; }

/* ---- 3. Button widgets ---- */
.post-content .elementor-button-wrapper { margin: 0; }
.post-content a.elementor-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--orange);
  color: var(--white);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.2;
  padding: 11px 22px;
  border-radius: 6px;
  text-decoration: none;      /* .post-content a underlines by default */
  transition: background 0.3s, transform 0.3s, box-shadow 0.3s;
}
.post-content a.elementor-button:hover {
  background: var(--orange-dark);
  color: var(--white);
  text-decoration: none;
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(232,154,12,0.35);
}
.post-content .elementor-button-content-wrapper {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.post-content .elementor-button-icon {
  display: inline-flex;
  align-items: center;
  font-size: 15px;
  line-height: 1;
}
.post-content .elementor-button-text { display: inline-block; }
.post-content .elementor-size-sm { font-size: 14px; }

/* WhatsApp buttons get WhatsApp green, phone buttons get black */
.post-content a.elementor-button[href*="api.whatsapp.com"],
.post-content a.elementor-button[href*="wa.me"] { background: var(--green); }
.post-content a.elementor-button[href*="api.whatsapp.com"]:hover,
.post-content a.elementor-button[href*="wa.me"]:hover {
  background: var(--green-dark);
  box-shadow: 0 6px 18px rgba(37,211,102,0.35);
}
.post-content a.elementor-button[href^="tel:"] { background: var(--black); }
.post-content a.elementor-button[href^="tel:"]:hover {
  background: #222;
  box-shadow: 0 6px 18px rgba(0,0,0,0.3);
}

/* "elementor-align-justify" stretched buttons full width in Elementor;
   keep them content-sized here so CTA rows stay tidy. */
.post-content .elementor-align-justify a.elementor-button,
.post-content .elementor-align-center  a.elementor-button,
.post-content .elementor-align-start   a.elementor-button { width: auto; }
.post-content .elementor-align-center { text-align: center; }

/* The imported theme's custom icon font was not migrated, so the phone
   glyph would render as an empty box. Substitute the Font Awesome phone. */
.post-content .elementor-button-icon i.icon-phone-call1 { display: inline-flex; }
.post-content .elementor-button-icon i.icon-phone-call1::before {
  content: "\f095";                      /* fa-phone */
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  font-style: normal;
  font-size: 14px;
  line-height: 1;
}

/* ---- 4. Nested accordion (FAQ blocks) ---- */
.post-content .e-n-accordion { margin: 20px 0; display: block; }
.post-content details.e-n-accordion-item {
  border: 1px solid #eaeaea;
  border-radius: 8px;
  margin-bottom: 10px;
  background: var(--white);
  overflow: hidden;
}
.post-content details.e-n-accordion-item[open] {
  border-color: rgba(232,154,12,0.45);
  box-shadow: 0 2px 12px rgba(0,0,0,0.05);
}
.post-content summary.e-n-accordion-item-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 15px 18px;
  cursor: pointer;
  background: #fafafa;
  font-weight: 600;
  font-size: 15px;
  color: var(--black);
  list-style: none;             /* remove native disclosure triangle */
  transition: background 0.25s, color 0.25s;
}
.post-content summary.e-n-accordion-item-title::-webkit-details-marker { display: none; }
.post-content summary.e-n-accordion-item-title::marker { content: ""; }
.post-content summary.e-n-accordion-item-title:hover { background: #f3f3f3; color: var(--orange); }
.post-content details.e-n-accordion-item[open] > summary.e-n-accordion-item-title {
  background: #fff8ec;
  color: var(--orange);
  border-bottom: 1px solid rgba(232,154,12,0.25);
}
.post-content .e-n-accordion-item-title-header { flex: 1 1 auto; min-width: 0; }
.post-content .e-n-accordion-item-title-header .e-n-accordion-item-title-text {
  display: block;
  line-height: 1.5;
}
.post-content .e-n-accordion-item-title-icon {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  font-size: 13px;
  color: var(--orange);
}
/* Show only the icon matching the open/closed state */
.post-content details.e-n-accordion-item[open]  .e-n-accordion-item-title-icon .e-closed { display: none; }
.post-content details.e-n-accordion-item:not([open]) .e-n-accordion-item-title-icon .e-opened { display: none; }
.post-content .e-n-accordion-item-title-icon > span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
/* Accordion answer body */
.post-content details.e-n-accordion-item > [role="region"] { padding: 16px 18px 4px; display: block; }
.post-content details.e-n-accordion-item > [role="region"] p:last-child { margin-bottom: 12px; }

/* ---- 5. Icon lists ---- */
.post-content ul.elementor-icon-list-items {
  list-style: none;
  margin: 15px 0;
  padding-left: 0;
}
.post-content ul.elementor-icon-list-items > li.elementor-icon-list-item {
  list-style: none;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 10px;
  font-size: 15px;
  line-height: 1.7;
  color: #444;
}
.post-content .elementor-icon-list-icon {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1em;
  height: 1em;
  margin-top: 0.35em;
  font-size: 14px;
  color: var(--orange);
}
.post-content .elementor-icon-list-text { flex: 1 1 auto; min-width: 0; }

/* ---- 6. Dividers ---- */
.post-content .elementor-divider {
  display: flex;
  align-items: center;
  margin: 22px 0;
}
.post-content .elementor-divider-separator {
  display: block;
  width: 100%;
  height: 0;
  border-top: 2px solid #ececec;
}
.post-content .elementor-widget-divider--view-line .elementor-divider-separator {
  border-top-color: rgba(232,154,12,0.5);
}

/* ---- 7. Headings imported inside content ---- */
.post-content .elementor-heading-title { margin: 0; line-height: 1.35; }
.post-content h2.elementor-heading-title { font-size: 24px; font-weight: 600; margin: 28px 0 14px; }
.post-content h3.elementor-heading-title { font-size: 20px; font-weight: 600; margin: 24px 0 12px; }
.post-content h4.elementor-heading-title { font-size: 17px; font-weight: 600; margin: 20px 0 10px; }
/* Imported content sometimes carries its own <h1>; demote it visually so
   the real page <h1> in the hero stays the dominant heading. */
.post-content h1,
.post-content h1.elementor-heading-title {
  font-size: 25px;
  font-weight: 700;
  line-height: 1.3;
  margin: 28px 0 14px;
  color: var(--black);
}
.post-content h1:first-child,
.post-content .e-con:first-child h1 { margin-top: 0; }

/* ---- 8. Imported images ---- */
.post-content .elementor-widget-image img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
}
.post-content figure { margin: 20px 0; max-width: 100%; }

/* ---- 9. Elementor responsive visibility helpers ---- */
@media (max-width: 767px) {
  .post-content .elementor-hidden-mobile { display: none !important; }
}
@media (min-width: 768px) and (max-width: 1024px) {
  .post-content .elementor-hidden-tablet { display: none !important; }
}
@media (min-width: 1025px) {
  .post-content .elementor-hidden-desktop { display: none !important; }
}

/* ---- 10. Safety net: never let imported content break the layout ----
   .post-main / .blog-main are CSS grid items, whose default `min-width:auto`
   refuses to shrink below the min-content width of the imported markup.
   On narrow screens that pushed the article wider than the viewport.
   `min-width:0` lets the grid column shrink correctly. */
.post-layout > .post-main,
.post-layout > .blog-sidebar,
.blog-layout > .blog-main,
.blog-layout > .blog-sidebar { min-width: 0; }

.post-content { overflow-wrap: break-word; }
.post-content iframe,
.post-content video { max-width: 100%; }

/* Wide imported tables scroll horizontally instead of stretching the page */
.post-content table {
  display: block;
  width: 100%;
  max-width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
/* min-width:100% (not max-content) so cells still wrap text and only
   genuinely-too-wide tables get a scrollbar. */
.post-content table > tbody,
.post-content table > thead { display: table; width: 100%; min-width: 100%; }

/* ===== RESPONSIVE ===== */
@media (max-width: 992px) {
  .blog-layout, .post-layout { grid-template-columns: 1fr; }
  .blog-sidebar { position: static; }
  .blog-grid { grid-template-columns: repeat(2, 1fr); }
  .related-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
  .blog-grid { grid-template-columns: 1fr; }
  .blog-hero h1 { font-size: 26px; }
  .post-hero h1 { font-size: 24px; }
  .post-content { padding: 20px; }
  .related-grid { grid-template-columns: 1fr; }
}
@media (max-width: 576px) {
  .blog-hero { padding: 30px 0 25px; }
  .blog-hero h1 { font-size: 22px; }
  .post-hero h1 { font-size: 20px; }
  .social-share { gap: 8px; }
  .share-btn { padding: 6px 12px; font-size: 12px; }

  /* Imported Elementor content on small screens */
  .post-content h1, .post-content h1.elementor-heading-title { font-size: 21px; }
  .post-content h2.elementor-heading-title { font-size: 20px; }
  .post-content h3.elementor-heading-title { font-size: 18px; }
  .post-content a.elementor-button { padding: 10px 16px; font-size: 13px; }
  .post-content .e-con:has(> .elementor-widget-button),
  .post-content .e-con:has(> .e-con > .elementor-widget-button) { gap: 9px; }
  .post-content summary.e-n-accordion-item-title { padding: 13px 14px; font-size: 14px; }
  .post-content details.e-n-accordion-item > [role="region"] { padding: 14px 14px 2px; }
}
