.blog-card {
    border-radius: 0;
    overflow: hidden;
    /* background: #fff; */
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
    box-shadow: none !important;
}
.blog-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
}
.blog-title a {
    color: var(--theme-tertiary-color);
    text-decoration: none;
    font-size: 23px;
    display: block;
    line-height: 1.2;
    font-weight: 600;
    margin-bottom: 0px;
}
.blog-title a:hover {
    color: var(--theme-primary-color);
}
.blog-excerpt {
  color: #555;
  font-size: 16px;
  line-height: 1.4;
}
.blog-meta span {
  font-weight: 500;
}
a.page-numbers:hover {
  background: var(--theme-primary-color);
  color: #fff;
}

a.page-numbers:hover i {
  color: #fff;
}
.read-more-btn {
    font-weight: 600;
    color: var(--theme-primary-color);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 7px;
}
.read-more-btn:hover {
    color: var(--theme-primary-color);
}
.pagination-wrapper ul {
    display: flex;
    justify-content: center;
    gap: 10px;
    list-style: none;
    padding: 0;
}
.pagination-wrapper a, 
.pagination-wrapper span {
    display: inline-block;
    padding: 8px 14px;
    border: 1px solid #ddd;
    border-radius: 6px;
    color: var(--theme-tertiary-color);
}
.pagination-wrapper .current {
    background-color: var(--theme-primary-color);
    color: #fff;
    border-color: var(--theme-primary-color);
}
.blog-img img {
    aspect-ratio: 1.5/1;
    object-fit: cover;
    transition: 0.3s;
    display: block;
    width: 100%;
}
.blog-card:hover img {
    scale: 1.05;
}
.blog-img {
    overflow: hidden;
    border-radius: 10px;
}
a.page-numbers {
    display: flex;
    align-items: center;
    gap: 7px;
}
a.page-numbers i{
    color: var(--theme-primary-color);
}
.blog-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 20px 0 0 0 !important;
}
.blog-content .blog-excerpt {
    margin-top: auto;
}
.blog-category {
    position: absolute;
    top: 15px;
    left: 15px;
    background-color: var(--theme-primary-color);
    color: #fff;
    font-size: 13px;
    font-weight: 600;
    padding: 6px 12px;
    border-radius: 24px;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: background 0.3s ease;
}
.blog-category:hover {
    background-color: var(--theme-primary-color);
    color: #fff;
}

/* =======================================
   SINGLE BLOG DETAIL PAGE
   ======================================= */

/* === Banner Section === */
.blog-banner {
  background: var(--theme-light-color);
  padding: 50px 0;
  background-image: url(https://cabinetall.com/wp-content/uploads/2025/07/AW2_2-1024x683.jpg);
  position: relative;
}
.blog-banner::before {
  content: "";
  position: absolute;
  content: "";
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, var(--theme-tertiary-color) 3%, #0000004c 103%);
  top: 0;
  left: 0;
}
.blog-banner__container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
}

.blog-banner__content {
  display: flex;
  flex-wrap: wrap;
  /* align-items: center; */
  gap: 40px;
}

.blog-banner__text {
  flex: 1;
  display: grid;
  grid-template-rows: auto 1fr;
}
.blog-banner__text_main {
  /* display: flex; */
  /* flex-direction: column; */
  justify-content: flex-start;
  /* align-items: self-start; */
  /* margin-top: 0; */
  text-align: center;
}
/* === Back to Blogs Link === */
.blog-banner__back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #3a3a3a;
  text-decoration: none;
  font-weight: 500;
  font-size: 15px;
  margin-bottom: 5px;
  transition: color 0.3s ease;
}

.blog-banner__back svg {
  width: 18px;
  height: 18px;
  stroke: currentColor;
  transition: transform 0.3s ease;
}

.blog-banner__back:hover {
  color: var(--theme-primary-color);
}

.blog-banner__back:hover svg {
  transform: translateX(-4px);
}

/* === Category Tags === */
.blog-banner__categories {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 10px;
}

.blog-banner__category {
  display: inline-block;
  background: var(--theme-primary-color);
  color: #fff;
  font-size: 13px;
  padding: 5px 12px;
  border-radius: 20px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transition: all 0.3s ease;
}

.blog-banner__category:hover {
  background: #4f493b;
  color: #fff;
}

/* === Title & Meta === */
.blog-banner__title {
  font-size: 36px;
  margin: 10px 0 10px;
  line-height: 1.3;
  color: #fff;
  font-weight: 600;
  text-align: center;
}

.blog-banner__meta {
  color: #666;
  font-size: 15px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

/* === Banner Image === */
.blog-banner__image {
  width: 100%;
  margin-bottom: 30px;
}

.blog-banner__image img {
  width: 100%;
  /* aspect-ratio: 1.4 / 1; */
  border-radius: 10px;
  object-fit: cover;
}
.blog-card-wrap {
  margin-bottom: 40px;
}
/* === Responsive Adjustments === */
@media (max-width: 991px) {
  .blog-banner__content {
    flex-direction: column;
    text-align: center;
  }

  .blog-banner__text {
    flex: none;
    width: 100%;
  }

  .blog-banner__title {
    font-size: 30px;
  }
  .blog-card-wrap {
    margin-bottom: 30px;
  }
}

@media (min-width: 575px) and (max-width: 991px) {
  .blog-main {
    max-width: 600px;
    margin: auto;
  }
}
@media (max-width: 575px) {
  .blog-banner {
    padding: 40px 0;
  }

  .blog-banner__title {
    font-size: 26px;
  }

  .blog-banner__back {
    font-size: 14px;
  }
  .blog-title a {
    font-size: 19px;
  }
  .blog-meta span {
    font-size: 14px;
  }

}


/* === Blog Content === */
.blog-content {
  padding: 60px 0;
}
.blog-content__container {
  width: 100%;
  max-width: 900px;
  margin: 0 auto;
}
.blog-content__body {
  font-size: 17px;
  color: var(--theme-tertiary-color);
  line-height: 1.8;
}
.blog-content__body img {
  max-width: 100%;
  border-radius: 8px;
  margin: 30px 0;
}

/* === Tags === */
.blog-tags {
  margin-top: 50px;
  border-top: 1px solid #eee;
  padding-top: 20px;
}
.blog-tags__label {
  font-weight: 600;
  margin-right: 10px;
}
.blog-tags__item {
  display: inline-block;
  margin-right: 8px;
  background: #f0f0f0;
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 14px;
  color: var(--theme-tertiary-color);
  text-decoration: none;
  transition: 0.3s;
}
.blog-tags__item:hover {
  background: var(--theme-primary-color);
  color: #fff;
}

/* === Share Section === */
.blog-share {
  margin-top: 40px;
}
.blog-share__label {
  font-weight: 600;
  display: block;
  margin-bottom: 10px;
}
.blog-share__icons {
  display: flex;
  gap: 15px;
}
.blog-share__icon {
  font-size: 18px;
  color: var(--theme-tertiary-color);
  transition: 0.3s;
}
.blog-share__icon:hover {
  color: var(--theme-primary-color);
}

/* === Navigation === */
.blog-nav {
  display: flex;
  justify-content: space-between;
  margin-top: 60px;
  font-weight: 600;
}
.blog-nav a {
  color: var(--theme-primary-color);
  text-decoration: none;
}
.blog-nav a:hover {
  text-decoration: underline;
}

/* === Related Posts === */
.related-posts {
  background: #fafafa;
  padding: 60px 0;
}
.related-posts__container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
}
.related-posts__heading {
  text-align: center;
  font-size: 30px;
  margin-bottom: 50px;
  color: #111;
  font-weight: 700;
}
.related-posts__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 30px;
}
.related-posts__item {
  background: #fff;
  border-radius: 8px;
  overflow: hidden;
  transition: 0.3s;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}
.related-posts__item:hover {
  transform: translateY(-5px);
}
.related-posts__image img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}
.related-posts__content {
  padding: 20px;
}
.related-posts__title {
  font-size: 18px;
  color: #111;
  margin-bottom: 8px;
  transition: 0.3s;
}
.related-posts__title:hover {
  color: var(--theme-primary-color);
}
.related-posts__date {
  color: #777;
  font-size: 14px;
}
.blog-share__icons {
  display: flex;
  gap: 14px;
  margin-top: 10px;
}

.blog-share__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #f3f3f3;
  color: var(--theme-tertiary-color);
  transition: all 0.3s ease;
}

.blog-share__icon svg {
  width: 24px;
  height: 24px;
  aspect-ratio: 1;
}

.blog-share__icon:hover {
  transform: translateY(-3px);
  color: #fff;
}
a.blog-share__icon.x svg {
  width: 16px;
}
.banner-inner.blg_banner {
  flex-direction: column;
  justify-content: center;
  align-items: self-start;
}
/* Individual Brand Colors */
.blog-share__icon.fb:hover { background: #1877F2; }
.blog-share__icon.x:hover  { background: #000000; }
.blog-share__icon.ln:hover { background: #0077B5; }
.blog-share__icon.wa:hover { background: #25D366; }

/* ======================================================
   BLOG CONTENT AREA (ID = #Content)
   ====================================================== */
#Content {
  color: var(--theme-tertiary-color);
  line-height: 1.8;
  font-size: 17px;
  word-wrap: break-word;
}

/* Headings ------------------------------------------------ */
#Content h1,
#Content h2,
#Content h3,
#Content h4,
#Content h5,
#Content h6 {
  font-weight: 700;
  line-height: 1.3;
  margin-top: 2em;
  margin-bottom: 1em;
  color: #111;
}

#Content h1 { font-size: 2rem; }
#Content h2 { font-size: 1.75rem; border-left: 4px solid var(--theme-primary-color); padding-left: 10px; }
#Content h3 { font-size: 1.5rem; }
#Content h4 { font-size: 1.25rem; }
#Content h5 { font-size: 1.1rem; color: var(--theme-tertiary-color); }
#Content h6 { font-size: 1rem; color: #555; }

/* Paragraphs --------------------------------------------- */
#Content p {
  margin-bottom: 1.5em;
  color: var(--theme-tertiary-color);
  font-size: 16px;
  line-height: 1.5;
}

/* Links --------------------------------------------------- */
#Content a {
  color: var(--theme-primary-color);
  text-decoration: none;
  transition: 0.3s;
}
#Content a:hover {
  text-decoration: underline;
}

/* Images -------------------------------------------------- */
#Content img {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 2em auto;
  border-radius: 10px;
}

/* Lists --------------------------------------------------- */
#Content ul,
#Content ol {
  margin: 1.5em 0 1.5em 2em;
  padding: 0;
}
#Content ul li,
#Content ol li {
  margin-bottom: 0.5em;
  line-height: 1.4;
  color: var(--theme-tertiary-color);
  font-size: 16px;
}
#Content ul li::marker {
  color: var(--theme-primary-color);
}
#Content ol {
  list-style: decimal;
}
#Content ul {
  list-style: disc;
}
/* === Breadcrumb === */
.breadcrumb {
  font-size: 16px;
  color: #fff;
  margin-top: 8px;
  text-align: left;
  display: block;
  text-align: center;
}
.breadcrumb a {
  color: #fff;
  text-decoration: none;
  font-weight: 600;
}
.breadcrumb a:hover {
  text-decoration: underline;
}
.breadcrumb-sep {
  margin: 0 6px;
  color: #fff;
}
.breadcrumb-current {
  color: #fff;
  font-weight: 500;
}

/* === Blog Main Layout === */
.blog-main__container {
  display: grid;
  gap: 40px;
  grid-template-columns: 2.5fr 370px;
  align-items: self-start;
}
section.blog-main {
  padding: 80px 0;
}
.blog-main__content {
  flex: 0 0 70%;
}
/* === Sidebar === */
.sidebar-heading {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 20px;
  color: #111;
}
.sidebar-post {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}
.sidebar-post__thumb img {
  width: 80px;
  height: 80px;
  border-radius: 6px;
  object-fit: cover;
}
.sidebar-post__title {
  font-size: 15px;
  font-weight: 500;
  color: var(--theme-tertiary-color);
  display: block;
  line-height: 1.4;
  text-decoration: none;
}
.sidebar-post__title:hover {
  color: var(--theme-primary-color);
}
.sidebar-post__date {
  display: block;
  font-size: 13px;
  color: #777;
  margin-top: 4px;
}
/* Categories */
.blog_sidebar_categories {
  margin-top: 30px;
}

.sidebar-categories {
  list-style: none;
  padding: 0;
  margin: 0;
}

.sidebar-category {
  margin-bottom: 10px;
}

.sidebar-category__link {
  display: flex;
  justify-content: space-between;
  text-decoration: none;
  color: var(--theme-tertiary-color);
  font-size: 15px;
  transition: color 0.3s;
}

.sidebar-category__link:hover {
  color: var(--theme-primary-color);
}

.sidebar-category__count {
  color: var(--theme-tertiary-color);
  font-size: 14px;
}
aside.blog-sidebar {
  position: sticky;
  top: 140px;
}
.blog_sidebar_itm {
  padding: 20px 15px;
  box-shadow: rgba(149, 157, 165, 0.2) 0px 8px 24px;
  border-radius: 10px;
}

.sidebar-post:last-child {
  margin-bottom: 0;
}

.sidebar-category:last-child {
  margin-bottom: 0;
}
/* === Responsive === */
@media (max-width: 991px) {
  .blog-main__container {
    grid-template-columns: 1fr;
  }
  .blog-main__content,
  .blog-sidebar {
    flex: 100%;
  }
}

/* Blockquotes --------------------------------------------- */
#Content blockquote {
  margin: 2em 0;
  padding: 1.2em 1.5em;
  border-left: 5px solid var(--theme-primary-color);
  background: #f8f9fa;
  border-radius: 6px;
  color: var(--theme-tertiary-color);
  font-style: italic;
}

/* Tables --------------------------------------------------- */
#Content table {
  width: 100%;
  border-collapse: collapse;
  margin: 2em 0;
}
#Content th,
#Content td {
  border: 1px solid #ddd;
  padding: 12px 15px;
  text-align: left;
}
#Content th {
  background: #f2f2f2;
  font-weight: 600;
}

/* Code Blocks ---------------------------------------------- */
#Content pre,
#Content code {
  background: #f4f4f4;
  border-radius: 6px;
  padding: 0.4em 0.6em;
  font-family: "Courier New", monospace;
  font-size: 15px;
}
#Content pre {
  overflow-x: auto;
  padding: 1em;
}

/* Responsive Embeds ---------------------------------------- */
#Content iframe,
#Content video,
#Content embed {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 2em 0;
}

/* Horizontal Rule ------------------------------------------ */
#Content hr {
  border: none;
  border-top: 2px solid #eee;
  margin: 2em 0;
}

#Content h1:first-child, #Content h2:first-child, #Content h3:first-child, #Content h4:first-child, #Content h5:first-child, #Content h6:first-child{
  margin-top: 0;
}

/* Responsive Typography ------------------------------------ */
@media (max-width: 991px) {
  .blog-banner__title {
    font-size: 30px;
  }
}
@media (max-width: 767px) {
  #Content h1 { font-size: 1.75rem; }
  #Content h2 { font-size: 1.5rem; }
  #Content h3 { font-size: 1.3rem; }
  #Content h4 { font-size: 1.1rem; }
  #Content p,
  #Content li {
    font-size: 16px;
  }
}

/* === Responsive === */
@media (max-width: 767px) {
  .blog-banner__content {
    flex-direction: column;
  }
  .blog-banner__title {
    font-size: 28px;
  }
  section.blog-main {
    padding: 60px 0;
  }
}