/* Shell and head */
.article-shell {
  width: 100%;
}

.article-head {
  margin-bottom: 32px;
}

blockquote.wp-block-quote {
  padding: 52px 40px 40px 72px !important;
  margin: 34px 0 !important;
  border: 0 !important;
  text-align: left !important;
  max-width: 680px !important;
  position: relative !important;
}

.wp-block-embed.is-type-video .wp-block-embed__wrapper {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
}

.theme-breadcrumb__Wrapper.theme-breacrumb-area {
  margin-top: 0 !important;
}

body.page .main-container {
  padding-top: 0 !important;
}

#main-content.bloglayout__One .article-head .entry-header {
  padding-right: 25px !important;
}

.theme-breacrumb-title {
  display: none !important;
}

.theme-breadcrumb__Wrapper.theme-breacrumb-area {
  margin-top: 0 !important;
}

body.page .main-container {
  padding-top: 0 !important;
}

.wp-block-separator {
  border: 0 !important;
  border-top: 1px solid #e3e3e3 !important;
  background: none !important;
  color: transparent !important;
}

/* ---------------------------------
   Author and sharing
--------------------------------- */

.post-author-name-item {
  font-size: 14px !important;
  line-height: 1.4 !important;
  color: #7a7a7a !important;
}

.slider-meta-left-author {
  display: none !important;
} 

.post-author-name-item span {
  color: #9a9a9a !important;
  margin-right: 0.35em;
}

.post-meta-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-top: 18px;
  margin-bottom: 36px;
}

.blog-post-meta-items {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.post-cat-box.post-block-meta-cat,
.post-block-meta-date {
  flex: 1 1 300px;
  min-width: 0;
}

.a2a_kit.a2a_kit_size_32 {
  display: flex !important;
  gap: 8px !important;
  align-items: center !important;
  line-height: 1 !important;
}

.a2a_kit.a2a_kit_size_32 a {
  width: 34px !important;
  height: 34px !important;
  padding: 0 !important;
  border: 1px solid #d8d8d8 !important;
  background: #fff !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  border-radius: 999px !important;
}

.a2a_kit.a2a_kit_size_32 .a2a_svg {
  width: 16px !important;
  height: 16px !important;
  background: transparent !important;
  border-radius: 0 !important;
  filter: grayscale(1) brightness(0.2) !important;
}

.a2a_kit.a2a_kit_size_32 .a2a_label {
  display: none !important;
}

.author_bio__Wrapper {
  display: none !important;
}

.theme_blog_navigation__Wrap {
  padding-top: 150px !important;
}

#main-content {
  padding-bottom: 100px !important;
}

.author-bio-title {
  margin: 0 0 0.5rem;
  font-size: 1.05rem;
  font-weight: 700;
}

.author-bio-text {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.55;
  color: #444;
}

/* Ensure tags block is self-contained and cleared */
.theme-tag-list-wrapp,
.post-footer.theme-tag-list-wrapp {
    clear: both;
    overflow: hidden; /* or auto */
    margin-bottom: 1.5rem;
}

/* Ensure author bio box starts below tags and meta */
.author-bio {
    clear: both;
    display: block;
    margin: 2rem auto 2.5rem; /* centered by default */
    padding: 1.25rem 1rem;
    border: 1px solid #e5e5e5;
    border-radius: 8px;
    background: #fafafa;
    position: relative;

    width: 90%;
    max-width: 640px;
    box-sizing: border-box;
}

/* If the theme uses absolute positioning on tag items, contain them */
.theme-tag-list-wrapp .post-tag,
.theme-tag-list-wrapp a {
    position: relative;
}

/* Desktop / large screens */
@media (min-width: 992px) {
  .article-grid {
    display: grid;
  }

  .theme-blog-details {
    display: grid;
    grid-template-columns: 280px minmax(0, 1fr);
    column-gap: 20px;
    align-items: flex-start;
    margin-top: 0;
  }

  .theme-blog-details-meta-wrap {
    grid-column: 1;
    grid-row: 1;
    width: 100%;
    margin-left: 0;
    padding-left: 0;
  }

  .theme-blog-details-meta-wrap .slider-meta-left {
    display: flex;
    align-items: center;
    margin-bottom: 12px;
  }

  .theme-blog-details-meta-wrap .slider-meta-right {
    display: block !important;
    margin-top: 12px;
    width: 100%;
  }

  .theme-blog-details .post-body.clearfix.single-blog-header.single-blog-inner.blog-single-block.blog-details-content,
  .theme-blog-details .article-content.post-body.clearfix.single-blog-header.single-blog-inner.blog-single-block.blog-details-content {
    grid-column: 2;
    grid-row: 1;
    margin: 0;
    padding: 0;
    padding-right: 55px;
    max-width: 100%;
  }

  .theme-blog-details .entry-content {
    margin-top: 0;
  }

  #main-content.bloglayout__One .row.single-blog-content > .col-lg-9.col-md-12 {
    padding-left: 42px;
    padding-right: 0;
  }

  #main-content.bloglayout__One .container {
    padding-left: 16px;
    padding-right: 16px;
  }

  #main-content.bloglayout__One .article-head,
  #main-content.bloglayout__One .article-head .entry-header,
  #main-content.bloglayout__One .theme-blog-details,
  #main-content.bloglayout__One .theme-blog-details-meta-wrap {
    margin-left: 0;
    padding-left: 0;
  }

  .author-bio {
    margin-left: 0;
    margin-right: 0;
    width: 80%;      /* or 100% if you prefer it to fill the column */
    max-width: none; /* optional: remove cap on desktop */
  }
}

/* Global mobile layout and typography */
@media (max-width: 767px) {
  .theme-news-post-block.post-block-item.post-block-item-one.post-block-item-four h3.post-title {
    font-size: 18px !important;
    line-height: 1.15 !important;
  }
}

/* Tablet and down: stack article grid */
@media (max-width: 991px) {
  .article-grid {
    display: block;
  }

  .article-rail {
    margin-bottom: 24px;
  }

  .article-rail-ad {
    min-height: 0;
    border: none;
    padding: 0;
  }

  /* Make the grid wrapper full-width */
  .theme-news-post-block-wrapper, 
  .theme-news-post-block-wrapper.theme-post-grid-style.theme-post-grid-design-one,
  .news-post-grid-thumbnail,
  .theme_related_posts_Wrapper .post-block-item-one.grid-style-one-inner .news-post-grid-thumbnail a img {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
    padding: 0 !important;
    margin: 0 !important;
    object-fit: cover !important;
  }
}

@media (max-width: 640px) {
  .single-one-bwrap h1.post-title.single_blog_inner__Title {
    white-space: normal;      /* allow wrap on very small screens if desired */
    overflow: visible;
    text-overflow: clip;
  }
}

