:root {
  /* Theme Colors */
  --av-color-black: #000000;
  --av-color-headings: #141b34;
  --av-color-text: #555555;
  --av-color-white: #ffffff;
  --av-color-border: #e6e6e6;
  --av-color-blue: #05aba7;

  /* Theme Font Size */
  --av-font-size-12: 12px;
  --av-font-size-14: 14px;
  --av-font-size-16: 16px;
  --av-font-size-18: 18px;
  --av-font-size-20: 20px;
  --av-font-size-22: 22px;
  --av-font-size-24: 24px;
  --av-font-size-26: 26px;
  --av-font-size-28: 28px;
  --av-font-size-30: 30px;
  --av-font-size-32: 32px;
  --av-font-size-34: 34px;
  --av-font-size-36: 36px;
  --av-font-size-38: 38px;
  --av-font-size-40: 40px;
  --av-font-size-42: 42px;
  /* Theme Font Weight */
  --av-font-weight-400: 400;
  --av-font-weight-500: 500;
  --av-font-weight-600: 600;
  --av-font-weight-700: 700;
  /* Theme Radius */
  --av-radius-500: 500px;
  --av-radius-22: 22px;
}
body {
  font-family: var(--av-font-body);
}
p,
h1,
h2,
h3,
h4,
h5,
h6 {
  margin: 0px;
}
ul {
  margin-bottom: 0px;
}
/* ***********blog-hero-section************* */
.blog-hero {
  margin-top: 100px;
}
/* Category archive hero */
.blog-hero .cat-eyebrow {
  display: inline-block;
  margin-bottom: 10px;
  padding: 5px 14px;
  background: rgba(5, 171, 167, 0.1);
  color: var(--av-color-blue);
  font-family: var(--av-font-body);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  border-radius: 20px;
}
.blog-hero .cat-desc {
  max-width: 680px;
  margin: 14px auto 0;
  font-family: var(--av-font-body);
  font-size: 15px;
  line-height: 26px;
  color: var(--av-color-text);
}
.search-container {
  max-width: 625px;
  height: 56px;
  display: flex;
  align-items: center;
  border-radius: 8px;
  border: 0.5px solid #f6f6f680;
  position: relative;
  margin: 0 auto;
  margin-top: 60px;
}
.search-container input::placeholder {
  font-family: var(--av-font-body);
  font-weight: 400;
  font-size: 14px;
  line-height: 100%;
  letter-spacing: 0%;
  color: #555555;
}
.search-container input {
  flex: 1;
  padding: 20px;
  border: none;
  outline: none;
  font-family: var(--av-font-body);
  font-weight: 400;
  font-size: 14px;
  line-height: 100%;
  letter-spacing: 0%;
  color: #555555;
  background: #f6f6f680;
}
.search-btn {
  width: 180px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border-radius: 12px;
  background: var(--av-color-blue);
  text-decoration: none;
  transition: 0.4s all;
}
.search-btn:hover {
  box-shadow: 0px 20px 25px -5px #05aba74d;
}
.search-btn span {
  font-family: var(--av-font-body);
  font-weight: 700;
  font-size: 18px;
  line-height: 28px;
  letter-spacing: 0px;
  color: var(--av-color-white);
}
/* **********blog-grid-section (AdForest-style: grid + sidebar)********** */
.bgrid-section {
    margin-bottom: 100px;
}
.blog-layout {
  display: flex;
  align-items: flex-start;
  gap: 30px;
}
.blog-main {
  flex: 1 1 0;
  min-width: 0;
}
.blog-sidebar {
  flex: 0 0 300px;
  width: 300px;
}
.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

/* ---- Post card ---- */
.blog {
  position: relative;
  background: var(--av-color-white);
  padding: 7px;
  border: 1px solid #f0f0f0;
  border-radius: 4px;
  transition: box-shadow 0.3s ease-in-out;
}
/* Category badge on the post thumbnail — links to the category archive */
.blog-cat {
  position: absolute;
  top: 15px;
  left: 15px;
  z-index: 2;
  display: inline-block;
  max-width: calc(100% - 30px);
  padding: 5px 12px;
  background: var(--av-color-blue);
  color: #fff;
  font-family: var(--av-font-body);
  font-size: 12px;
  font-weight: 600;
  line-height: 1;
  letter-spacing: 0.2px;
  border-radius: 3px;
  text-decoration: none;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: background 0.25s ease;
}
.blog-cat:hover {
  background: var(--av-color-headings);
  color: #fff;
}
.blog:hover {
  box-shadow: 0 0 30px 0 rgba(0, 0, 0, 0.12);
}
.blog-img {
  display: block;
  height: 190px;
  overflow: hidden;
  border-radius: 4px;
  background-color: #eef6f6;
}
.blog-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 4px;
  display: block;
}
.blog-content {
  padding: 18px 13px 12px;
}
.blog-content a {
  text-decoration: none;
}
.blog-time {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 8px;
  color: #6d6d6d;
}
.blog-time img,
.blog-time .cal-icon {
  width: 16px;
  height: 16px;
}
.blog-time span {
  font-family: var(--av-font-body);
  font-weight: 400;
  font-size: 12px;
  line-height: 100%;
  color: #6d6d6d;
}
.blog-head {
  font-family: var(--av-font-heading);
  font-weight: 500;
  font-size: 16px;
  line-height: 26px;
  color: var(--av-color-headings);
  margin: 0;
  word-wrap: break-word;
}
.no-posts,
.no-recent {
  color: var(--av-color-text);
  list-style: none;
}

/* ---- Sidebar widgets ---- */
.blog-sidebar .sidebar-widget {
  background: var(--av-color-white);
  border: 1px solid #f0f0f0;
  border-radius: 4px;
  padding: 20px;
  margin-bottom: 24px;
}
.blog-sidebar .sidebar-widget h4 {
  font-family: var(--av-font-heading);
  font-weight: 600;
  font-size: 18px;
  color: var(--av-color-headings);
  margin: 0 0 18px;
}

/* Search widget */
.blog-search-form {
  position: relative;
}
.blog-search-form input {
  width: 100%;
  height: 46px;
  padding: 12px 56px 12px 16px;
  font-family: var(--av-font-body);
  font-size: 14px;
  color: var(--av-color-text);
  background: #f6f8f8;
  border: 1px solid var(--av-color-border);
  border-radius: 4px;
}
.blog-search-form input:focus {
  outline: none;
  border-color: var(--av-color-blue);
}
.blog-search-form button {
  position: absolute;
  top: 0;
  right: 0;
  width: 46px;
  height: 46px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 0 4px 4px 0;
  color: #fff;
  background: var(--av-color-blue);
  cursor: pointer;
}

/* Recent posts widget */
.recent-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.recent-list li {
  padding-bottom: 15px;
  margin-bottom: 15px;
  border-bottom: 1px solid var(--av-color-border);
}
.recent-list li:last-child {
  padding-bottom: 0;
  margin-bottom: 0;
  border-bottom: 0;
}
.recent-item {
  display: flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
}
.recent-img {
  flex: 0 0 60px;
  width: 60px;
  height: 60px;
}
.recent-img img {
  width: 60px;
  height: 60px;
  object-fit: cover;
  border-radius: 4px;
  display: block;
}
.recent-meta {
  min-width: 0;
}
.recent-title {
  display: block;
  font-family: var(--av-font-heading);
  font-weight: 500;
  font-size: 14px;
  line-height: 1.4;
  color: var(--av-color-headings);
  margin-bottom: 6px;
}
.recent-date {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 12px;
  color: #6d6d6d;
}
.recent-date .cal-icon {
  width: 14px;
  height: 14px;
}

/* ---- Generic widgets added via Appearance → Widgets ---- */
.blog-sidebar .widget_search form,
.blog-sidebar .wp-block-search__inside-wrapper {
  position: relative;
  display: flex;
}
.blog-sidebar .search-field,
.blog-sidebar input[type="search"],
.blog-sidebar .wp-block-search__input {
  width: 100%;
  height: 46px;
  padding: 12px 56px 12px 16px;
  font-family: var(--av-font-body);
  font-size: 14px;
  color: var(--av-color-text);
  background: #f6f8f8;
  border: 1px solid var(--av-color-border);
  border-radius: 4px;
}
.blog-sidebar .search-submit,
.blog-sidebar .wp-block-search__button {
  position: absolute;
  top: 0;
  right: 0;
  height: 46px;
  min-width: 46px;
  margin: 0;
  padding: 0 14px;
  border: 0;
  border-radius: 0 4px 4px 0;
  color: #fff;
  background: var(--av-color-blue);
  cursor: pointer;
  font-size: 13px;
}
.blog-sidebar .sidebar-widget ul:not(.recent-list) {
  list-style: none;
  margin: 0;
  padding: 0;
}
.blog-sidebar .sidebar-widget ul:not(.recent-list) li {
  padding: 8px 0;
  border-bottom: 1px solid var(--av-color-border);
  font-size: 14px;
}
.blog-sidebar .sidebar-widget ul:not(.recent-list) li:last-child {
  border-bottom: 0;
}
.blog-sidebar .sidebar-widget a {
  text-decoration: none;
  color: var(--av-color-headings);
}
.blog-sidebar .sidebar-widget a:hover {
  color: var(--av-color-blue);
}

/* ---- Blog detail (single post) ---- */
.blog-detail-section {
  margin-top: 30px;
}
.blog-detail-content {
  padding: 30px;
  background: var(--av-color-white);
  border: 1px solid #f0f0f0;
  border-radius: 4px;
  margin-bottom: 30px;
}
.blog-detail-content .detail-meta {
  list-style: none;
  margin: 0 0 6px;
  padding: 0;
}
.blog-detail-content .detail-meta li {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: #6d6d6d;
  margin-right: 24px;
}
.blog-detail-content .detail-meta li:last-child {
  margin-right: 0;
}
.blog-detail-content .detail-meta svg {
  width: 16px;
  height: 16px;
}
.blog-detail-content .detail-meta .detail-cats a {
  color: var(--av-color-blue);
  text-decoration: none;
}
.blog-detail-content .detail-title {
  font-family: var(--av-font-heading);
  font-size: 30px;
  font-weight: 600;
  line-height: 1.3;
  color: var(--av-color-headings);
  margin: 10px 0 24px;
  word-wrap: break-word;
}
.blog-detail-content .img-box {
  margin-bottom: 28px;
  border-radius: 6px;
  overflow: hidden;
}
.blog-detail-content .img-box img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 6px;
}
.blog-detail-content .detail-body {
  font-family: var(--av-font-body);
  font-size: 16px;
  line-height: 30px;
  color: var(--av-color-text);
}
.blog-detail-content .detail-body p {
  margin-bottom: 20px;
}
.blog-detail-content .detail-body h2,
.blog-detail-content .detail-body h3,
.blog-detail-content .detail-body h4 {
  font-family: var(--av-font-heading);
  color: var(--av-color-headings);
  margin: 28px 0 14px;
}
.blog-detail-content .detail-body img {
  max-width: 100%;
  height: auto;
  border-radius: 6px;
}
.blog-detail-content .detail-body ul,
.blog-detail-content .detail-body ol {
  margin: 0 0 20px 20px;
}
.blog-detail-content .detail-body a {
  color: var(--av-color-blue);
}
.blog-detail-content .detail-body blockquote {
  margin: 0 0 24px;
  padding: 22px 28px;
  background: #f6f8f8;
  border-left: 5px solid var(--av-color-blue);
  border-radius: 0 4px 4px 0;
  font-size: 18px;
  font-weight: 500;
  line-height: 1.6;
  color: var(--av-color-headings);
}
/* tags + social share */
.social-tags-box {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px 20px;
  flex-wrap: wrap;
  padding: 16px 20px;
  background: #f6f8f8;
  border: 1px solid var(--av-color-border);
  border-radius: 4px;
}
.social-tags-box .tags-list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.social-tags-box .tags-list .tag-ico svg {
  width: 20px;
  height: 20px;
  color: #6d6d6d;
  display: block;
}
.social-tags-box .tags-list li a,
.social-tags-box .tags-list li span {
  font-size: 15px;
  color: #6d6d6d;
  text-decoration: none;
  transition: color 0.3s ease;
}
.social-tags-box .tags-list li a:hover {
  color: var(--av-color-blue);
}
.social-tags-box .social-links {
  display: flex;
  align-items: center;
  gap: 8px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.social-tags-box .social-links li a {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--av-color-headings);
  color: #fff;
  border-radius: 4px;
  transition: background 0.3s ease;
}
.social-tags-box .social-links li a svg {
  fill: currentColor;
}
.social-tags-box .social-links li a:hover {
  background: var(--av-color-blue);
}
/* comments */
.blog-detail-section .comment-box {
  padding: 30px;
  background: var(--av-color-white);
  border: 1px solid #f0f0f0;
  border-radius: 4px;
}
.blog-detail-section .comment-box input:not([type="submit"]),
.blog-detail-section .comment-box textarea {
  width: 100%;
  padding: 12px 16px;
  font-family: var(--av-font-body);
  font-size: 14px;
  background: #f6f8f8;
  border: 1px solid var(--av-color-border);
  border-radius: 4px;
}
.blog-detail-section .comment-box textarea {
  min-height: 130px;
}

/* ---- Responsive ---- */
@media (max-width: 1199.98px) {
  .blog-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 991.98px) {
  .blog-layout {
    flex-direction: column;
  }
  .blog-sidebar {
    flex: none;
    width: 100%;
  }
}
@media (max-width: 767.98px) {
  .blog-hero {
    margin-top: 70px;
  }
}
@media (max-width: 575.98px) {
  .blog-grid {
    grid-template-columns: repeat(1, 1fr);
  }
}
@media (max-width: 499.98px) {
    .search-container {
        flex-direction: column;
        gap: 20px;
        height: unset;
        align-items: start;
    }
    .search-container input {
        width: 100%;
    }
}

/* ============================================================
   BLOG CATEGORY BAR  (prepcourse_blog_category_bar)
   Pills under the Blog heading / on category archives.
   ============================================================ */
.blog-cats {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 0 0 28px;
}
.blog-cats__pill {
    display: inline-flex;
    align-items: center;
    padding: 9px 18px;
    border-radius: 999px;
    font-size: 14px;
    font-weight: 600;
    line-height: 1;
    color: #141b34;
    background: #eef6f6;
    border: 1px solid #d7e9e9;
    text-decoration: none;
    white-space: nowrap;
    transition: background-color .2s ease, color .2s ease, border-color .2s ease;
}
.blog-cats__pill:hover,
.blog-cats__pill:focus-visible {
    background: #d7f0ef;
    color: #05aba7;
}
.blog-cats__pill.is-active {
    background: #05aba7;
    border-color: #05aba7;
    color: #fff;
}
@media (max-width: 640px) {
    .blog-cats {
        flex-wrap: nowrap;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        padding-bottom: 6px;
        margin-bottom: 20px;
    }
    .blog-cats::-webkit-scrollbar { height: 4px; }
    .blog-cats::-webkit-scrollbar-thumb { background: #d7e9e9; border-radius: 999px; }
}

/* Blog index H1: present for SEO/screen readers, hidden visually
   (breadcrumb already labels the page; no visible "Blog" heading). */
.blog-sr-title {
    position: absolute !important;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Blog index: restore top spacing lost when the visible "Blog" hero heading was
   removed, so the category bar isn't cramped against the breadcrumb. (Blog index
   only — category archives keep their own hero heading + spacing.) */
body.blog .bgrid-section,
body.category .bgrid-section {
    padding-top: 45px;
}
@media (max-width: 640px) {
    body.blog .bgrid-section,
    body.category .bgrid-section {
        padding-top: 28px;
    }
}
