.blog-section {
  padding: 4rem 3%;
  color: #111;
  background: #fff;
}

.blog-card {
  background: transparent;
  border-radius: 1.2rem;
  overflow: hidden;
  position: relative;
  transition: transform .35s ease;
}
.blog-card:hover { transform: translateY(-6px); }

.card-media {
  position: relative;
  border-radius: .9rem;
  overflow: hidden;
  min-height: 18rem;
  display: block;
}
.card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  aspect-ratio: 16/11;
  transition: transform .6s ease;
}
.blog-card:hover .card-media img { transform: scale(1.03); }

.date-badge {
  position: absolute;
  left: 1.4rem;
  top: -18px;
  background: var(--main-color);
  color: #fff; font-family: var(--heading);
  padding: .6rem 1.3rem;
  border-radius: 3rem;
  font-weight: 700;
  font-size: 1.2rem;
  box-shadow: 0 6px 18px rgb(255 251 67 / 12%);
}

/*.card-media::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  height: .6rem;
  width: 0%;
  background: var(--main-color);
  transition: width .45s cubic-bezier(.2,.9,.2,1);
}
.blog-card:hover .card-media::after { width: 100%; }*/

.card-body { padding: 1.6rem 0 0; position: relative;}
h3.card-title {
  font-weight: 800;
  font-size: 2.2rem;
  line-height: 1.08;
  margin: 1.2rem 0 .8rem;
  color: #0f1724;
}
.card-title a { text-decoration: none; color: inherit; font-family: var(--heading); line-height: 1.5; font-size: 2.2rem}
.card-title a:hover { text-decoration: underline!important; }

p.card-excerpt {
  font-size: 1.4rem;
  color: #6b7280; line-height: 1.7;
  margin-bottom: 1.6rem;
}

.meta {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  padding-top: 1.4rem;
  position: relative;
}
.meta .avatar {
  width: 4.2rem;
  height: 4.2rem;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
}
.meta .avatar img { width: 100%; height: 100%; object-fit: cover; }
.meta .byline {
  font-weight: 600;
  font-size: 1.28rem;
  white-space: nowrap;
  color: #0f1724;
}

.meta::after {
  content: "";
  height: .32rem;
  flex: 1;
  margin-left: .6rem;
  background: linear-gradient(90deg, #d6d6d6 0%, #ececec 100%);
  border-radius: 1rem;
  transform: scaleX(.20);
  transform-origin: left;
  transition: transform .45s cubic-bezier(.2,.9,.2,1), background .35s;
}
.blog-card:hover .meta::after {
  transform: scaleX(1);
  background: var(--main-color);
}

.sidebar {
  background: #fbfbfb;
  border-radius: 22px;
  padding: 2rem;
/*  min-height: 100%;*/
}
@media (max-width: 991.98px) { .sidebar { margin-top: 2.4rem; } }

.search-wrap { margin-bottom: 2.6rem; }
.search-box {
  display:flex;
  align-items:center;
  background:#fff;
  border-radius:4rem;
  padding:.6rem;
  box-shadow:0 8px 24px rgba(15,23,36,0.03);
}

.search-wrap h3{
  font-size: 2.6rem!important; font-weight:700; margin-bottom:.8rem;
  font-family: var(--heading);
}

.search-box input {
  border:none; outline:none;
  flex:1; padding:.9rem 1.2rem;
  font-size:1.4rem;
  background:transparent;
}
.search-box button {
  border:none;
  background:var(--main-color);
  color:#fff;
  width:4.6rem; height:4.6rem;
  border-radius:50%;
  display:flex; align-items:center; justify-content:center;
  font-size:1.6rem;
}

.categories{display: none;}

.categories-title {
  font-size:2rem;
  font-family: var(--heading);
  font-weight:600;
  margin-bottom:1.2rem;
}
.cat-list a {
  display:flex;
  align-items:center;
  justify-content:space-between;
  background:#fff;
  padding:1.4rem 1.6rem;
  border-radius: 33px;
  margin-bottom:1rem;
  font-weight:600;
  text-decoration:none;
  color:#111827;
  box-shadow:0 6px 18px rgba(15,23,36,0.02);
  transition: transform .25s ease;
}

.cat-list a span{
  font-family: var(--heading);
  font-size: 1.8rem;
}

.cat-list a:hover { transform: translateY(-4px); }
.cat-list a .count {
  width: 4rem;
    height: 4rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgb(255 154 67 / 7%);
    font-weight: 700;
    font-size: 1.4rem;
    color: var(--main-color2);
}

/*TABLE*/
.blog-detail-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 2rem 0;
  overflow: hidden;
  background: #ffffff;
  border-radius: 12px;
/*  box-shadow: 0 6px 28px rgba(0, 0, 0, 0.07);*/
  display: block;
  overflow-x: auto;
  border: 1px solid #e5e7eb;
  white-space: nowrap;
}

/* Table Head */
.blog-detail-content table thead {
      background: #fff;
    color: #6b7280;
}

.blog-detail-content table th {
  padding: 1.1rem 1rem;
  text-align: left;
  font-size:  1.8rem;
  font-weight: 500;
  border-bottom: 1px solid #f3f4f6;
  font-family: var(--heading);
  background: #f5f5f5;
}

/* Table Body */
.blog-detail-content table td {
  padding: 1.8rem 1rem;
  font-size: 1.4rem;
  letter-spacing: .3px;
  color: #4b5563;
  border-bottom: 1px solid #eef2ff;
}

/* Zebra Row Effect */
/*.blog-detail-content table tbody tr:nth-child(even) {
  background: #f8faff;
}*/

/* Hover Effect */
.blog-detail-content table tbody tr:hover {
  background: #f5f5f5;
  transition: 0.25s;
}

/* Responsive Scrollbar */
.blog-detail-content table::-webkit-scrollbar {
  height: 6px;
}
.blog-detail-content table::-webkit-scrollbar-thumb {
  background: #e0e4f2;
  border-radius: 5px;
}
.blog-detail-content table::-webkit-scrollbar-track {
  background: #fff;
}


.blog-detail-section {
      padding: 4rem 3rem;
      background: linear-gradient(135deg, #f5f7fa 0%, #ffffff 100%); background: #fbfbfb;
      min-height: 100vh; border-radius: 22px;
  }

  .blog-detail-container {
      max-width: 120rem;
      margin: 0 auto;
  }

  .blog-detail-section-latest-post {
        background: #fff;
        padding: 30px;
        border-radius: 22px;
        margin-top: 2rem;
    }

    .blog-detail-section-latest-post h3 {
        font-size: 2rem;
        font-family: var(--heading);
        font-weight: 600;
        margin-bottom: 1.2rem;
    }

    .post-item {
        display: flex;
        gap: 20px;
        padding: 20px 0;
        border-bottom: 1px solid #e5e5e5;
        text-decoration: none;
        color: inherit;
        transition: transform 0.2s ease;
    }

    .post-item:hover {
        transform: translateX(5px);
    }

    .post-item:last-child {
        border-bottom: none;
    }

    .post-image {
        flex-shrink: 0;
        width: 80px;
        height: 80px;
        border-radius: 8px;
        overflow: hidden;
    }

    .post-image img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        object-position: center;
    }

    .post-content {
        flex: 1;
        display: flex;
        flex-direction: column;
        justify-content: center;
    }

    .post-date {
        font-size: 1.4rem;
        color: #666;
        margin-bottom: 8px;
    }

    .post-title {
        font-size: 1.8rem;
        font-family: var(--heading);
        font-weight: 600;
        color: #1a1a1a;
        line-height: 1.4;
    }

  .blog-detail-hero-img {
      width: 100%;
      height: 50rem;
      object-fit: cover;
      border-radius: 1.5rem;
      box-shadow: 0 1rem 3rem rgba(0, 0, 0, 0.1);
      margin-bottom: 3rem;
  }

  .blog-detail-meta {
      display: flex;
      align-items: center;
      gap: 3rem;
      margin-bottom: 3rem;
      flex-wrap: wrap;
  }

  .blog-detail-meta-item {
      display: flex;
      align-items: center;
      gap: 1rem;
      font-size: 1.8rem;
      color: #666;
      font-family: var(--heading); 
  }

  .blog-detail-meta-item span{
    font-family: var(--heading); 
  }

  .blog-detail-meta-icon {
      font-size: 2rem;
      color: var(--main-color2);
  }

  .blog-detail-heading {
      font-size: 5rem;
      font-weight: 700;
      color: #1a1a1a;
      margin-bottom: 3rem;
      line-height: 1.2;
      font-family: var(--heading);
  }

  .blog-detail-content {
      background: #ffffff;
      padding: 4rem;
      border-radius: 1.5rem;
/*      box-shadow: 0 0.5rem 2rem rgba(0, 0, 0, 0.05);*/
      box-shadow: 0 2rem 6rem rgba(0, 0, 0, 0.08);
  }

  .blog-detail-paragraph {
      font-size: 1.7rem;
      color: #555;
      margin-bottom: 2.5rem;
      line-height: 1.8;
      text-align: justify;
      letter-spacing: .3px;
  }

  .blog-detail-subheading {
      font-size: 3.5rem;
      font-family: var(--heading);
      font-weight: 700;
      color: #2c3e50;
      margin-top: 4rem;
      margin-bottom: 2rem;
  }

  .blog-detail-list {
      list-style: none;
      margin-bottom: 3rem;
  }

  .blog-detail-list-item {
      font-size: 1.6rem;
      color: #555;
      margin-bottom: 1.5rem;
      position: relative;
      line-height: 1.6;
      display: flex; align-items: flex-start;
      gap: 8px; letter-spacing: .3px;
  }

  .blog-detail-list-item img{
    width: 22px;
  }

/*  .blog-detail-list-item::before {
      content: '\f058';
      font-family: 'Font Awesome 6 Free';
      font-weight: 900;
      position: absolute;
      left: 0;
      color: #27ae60;
      font-size: 2rem;
  }*/

  .blog-detail-quote {
      background: #fefbf5;
      padding: 3rem;
      border-left: 0.5rem solid var(--main-color2);
      margin: 3rem 0;
      color: #141515;
      position: relative;
  }

  .blog-detail-quote-icon{
    color: var(--main-color2);
    position: absolute;
    opacity: .4;
    right: 30px;
    bottom: 30px;
  }

  .blog-detail-quote-text {
      font-size: 1.8rem;
      font-style: italic;
      line-height: 1.8;
      font-family: var(--heading);
      margin: 0;
  }

  .blog-detail-image-grid {
      display: grid;
      grid-template-columns: repeat(2, 1fr);
      gap: 2rem;
      margin: 3rem 0;
  }

  .blog-detail-grid-img {
      width: 100%;
      height: 30rem;
      object-fit: cover;
      border-radius: 1rem;
      box-shadow: 0 0.5rem 1.5rem rgba(0, 0, 0, 0.1);
      transition: transform 0.3s ease;
  }

  .blog-detail-grid-img:hover {
      transform: scale(1.05);
  }

  .blog-detail-highlight {
      background: #fff3cd;
      padding: 2.5rem;
      border-radius: 1rem;
      margin: 3rem 0;
      border-left: 0.4rem solid #ffc107;
  }

  .blog-detail-highlight-title {
      font-size: 2.2rem;
      font-weight: 600;
      color: #856404;
      margin-bottom: 1.5rem;
  }

  .blog-detail-highlight-text {
      font-size: 1.6rem;
      color: #856404;
      line-height: 1.6;
  }

 @media (max-width: 992px) {
    html {
        font-size: 58%;
    }

    .blog-detail-section {
        padding: 4rem 4%;
    }

    .blog-detail-hero-img {
        height: 40rem;
    }

    .blog-detail-heading {
        font-size: 3.8rem;
    }

    .blog-detail-content {
        padding: 3rem;
    }
}

@media (max-width: 768px) {
    html {
        font-size: 55%;
    }

    .blog-detail-section {
        padding: 3rem 4%;
    }

    .blog-detail-hero-img {
        height: 30rem;
    }

    .blog-detail-heading {
        font-size: 3.2rem;
    }

    .blog-detail-meta {
        gap: 2rem;
    }

    .blog-detail-content {
        padding: 2.5rem;
    }

    .blog-detail-image-grid {
        grid-template-columns: 1fr;
    }

    .blog-detail-grid-img {
        height: 25rem;
    }
}

@media (max-width: 576px) {
    html {
        font-size: 52%;
    }

    .blog-detail-section {
        padding: 2rem 3%;
    }

    .blog-detail-hero-img {
        height: 25rem;
        border-radius: 1rem;
    }

    .blog-detail-heading {
        font-size: 2.8rem;
    }

    .blog-detail-meta {
        gap: 1.5rem;
    }

    .blog-detail-content {
        padding: 2rem;
    }

    .blog-detail-subheading {
        font-size: 2.4rem;
    }

    .blog-detail-list-item {
        padding-left: 2.5rem;
    }
}

@media (max-width: 768px){
  .blog-detail-section-latest-post {
        padding: 20px;
    }

    .blog-detail-section-latest-post h1 {
        font-size: 28px;
        margin-bottom: 20px;
    }

    .post-item {
        gap: 15px;
        padding: 15px 0;
        flex-direction: column;
    }

    .post-image {
        width: 50px;
        height: 50px;
    }

    .post-title {
        font-size: 18px;
    }
}