/* Blog admin editor */
#mce_0_ifr {
  min-height: 700px !important;
}

.mce-container iframe {
  min-height: 700px !important;
}

.mce-edit-area {
  min-height: 700px !important;
}

body {
  margin: 0;
  font-family: Roboto, sans-serif;
}

article.pb-blog-post {
  margin-top: 80px;
}

/* =========================================================
   ProBuilder Blog
   ========================================================= */

.pb-blog-page {
  width: 100%;
  background: #fff;
  color: #111;
}

/* =========================================================
   Hero
   ========================================================= */

.pb-blog-hero {
  position: relative;
  width: 100%;
  height: 340px;
  background-image: url("/themes/hummingbird/assets/img/faq-banner.jpg");
  background-repeat: no-repeat;
  background-position: center center;
  background-size: cover;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.pb-blog-hero__overlay {
  position: absolute;
  inset: 0;
  background-color: #555454;
  opacity: 0.5;
}

.pb-blog-hero__content {
  position: relative;
  z-index: 2;
  text-align: center;
}

.pb-blog-hero__content h1 {
  margin: 0;
  color: #fff;
  font-size: 28px;
  line-height: 1.2;
  font-weight: 700;
}

/* =========================================================
   Main Content
   ========================================================= */

.pb-blog-content {
  padding: 60px 20px 80px;
}

.pb-blog-container {
  width: 100%;
  max-width: 840px;
  margin: 0 auto;
}

/* =========================================================
   Filters
   ========================================================= */

.pb-blog-filters {
  display: grid;
  grid-template-columns: 1fr;
  gap: 30px;
  margin-bottom: 12px;
}

.pb-blog-search input {
  width: 100%;
  height: 40px;
  padding: 0 12px;
  border: 1px solid #777;
  border-radius: 2px;
  background: #fff;
  color: #111;
  font-size: 12px;
  box-sizing: border-box;
}

.pb-blog-search input:focus-visible {
    outline: none;
}

.pb-blog-search input::placeholder {
  color: #777;
}

/* =========================================================
   Filter Selects
   ========================================================= */

.pb-blog-filter-selects {
  display: flex;
  flex-direction: row;

  gap: 11px;
}

.pb-blog-filter-selects select {
  width: 100%;
  height: 32px;
  padding: 0 10px;
  border: 1px solid #d0d0d0;
  border-radius: 4px;
  background: #fff;
  color: #111;
  font-size: 15px;
}

/* =========================================================
   Search Button
   ========================================================= */

.pb-blog-search-button {
  width: 64px;
  height: 33px;
  margin-top: 0;
  border: 1px solid #ea1b25;
  border-radius: 2px;
  background: #fff;
  color: #ea1b25;
  font-size: 15px;
  cursor: pointer;
}

.pb-blog-search-button:hover {
  background: #ea1b25;
  color: #fff;
}

/* =========================================================
   Result Count
   ========================================================= */

.pb-blog-result-count {
  margin: 18px 0 22px;
  font-size: 16px;
  line-height: 1.5;
  color: #111;
}

/* =========================================================
   Blog Grid
   ========================================================= */

.pb-blog-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
}

/* =========================================================
   Blog Card
   ========================================================= */

.pb-blog-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  overflow: hidden;
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 3px 12px rgba(0, 0, 0, 0.1);
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease;
}

.pb-blog-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 7px 20px rgba(0, 0, 0, 0.14);
}

/* =========================================================
   Card Image
   ========================================================= */

.pb-blog-card__image-link {
  display: block;
  width: 100%;
  text-decoration: none;
  overflow: hidden;
}

.pb-blog-card__image {
  display: block;
  width: 100%;
  height: 260px;
  object-fit: cover;
  object-position: center;
}

/* =========================================================
   Card Content
   ========================================================= */

.pb-blog-card__content {
  padding: 24px 15px 18px;
}

/* =========================================================
   Card Title
   ========================================================= */

.pb-blog-card__title {
  margin: 0 0 10px;
  font-size: 15px;
  line-height: 1.7;
  font-weight: 700;
}

.pb-blog-card__title a {
  color: #222;
  text-decoration: none;
  font-size: 20px;
  line-height: 1, 3;
}

.pb-blog-card__title a:hover {
  color: #ea1b25;
}

/* =========================================================
   Date
   ========================================================= */

.pb-blog-card__date {
  margin-bottom: 10px;
  color: #888;
  font-size: 14px;
  line-height: 1.4;
}

/* =========================================================
   Excerpt
   ========================================================= */

.pb-blog-card__excerpt {
  color: #444;
  font-size: 15px;
  line-height: 1.7;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 10px;
}

/* =========================================================
   Read More
   ========================================================= */

.pb-blog-card__read-more {
  display: inline-block;
  color: #0073aa;
  font-size: 16px;
  font-weight: 600;
  text-decoration: none;
}

.pb-blog-card__read-more:hover {
  color: #ea1b25;
}

/* =========================================================
   Empty
   ========================================================= */

.pb-blog-empty {
  padding: 50px 20px;
  text-align: center;
  color: #666;
}

/* =========================================================
   Pagination
   ========================================================= */

.pb-blog-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 42px;
}

.pb-blog-pagination a,
.pb-blog-pagination__current {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 30px;
  height: 30px;
  padding: 0 8px;
  border: 1px solid #ddd;
  border-radius: 3px;
  color: #222;
  font-size: 15px;
  text-decoration: none;
  box-sizing: border-box;
}

.pb-blog-pagination__current {
  border-color: #ea1b25;
  background: #ea1b25;
  color: #fff;
}

.pb-blog-pagination a:hover {
  border-color: #ea1b25;
  color: #ea1b25;
}

.pb-blog-pagination__dots {
  font-size: 12px;
}

.pb-blog-pagination__next {
  margin-left: 5px;
}

/* =========================================================
   Tablet
   ========================================================= */

@media (max-width: 767px) {
  .pb-blog-hero {
    height: 200px;
  }

  .pb-blog-content {
    padding: 40px 15px 60px;
  }

  .pb-blog-container {
    max-width: 100%;
  }

  .pb-blog-filters {
    grid-template-columns: 1fr;

    gap: 15px;
  }

  .pb-blog-filter-selects {
    display: grid;

    grid-template-columns: 1fr 1fr;
  }

  .pb-blog-search-button {
    grid-column: 1 / -1;
  }

  .pb-blog-grid {
    grid-template-columns: 1fr;

    gap: 20px;
  }

  .pb-blog-card__image {
    height: auto;

    aspect-ratio: 16 / 9;
  }
}

/* =========================================================
   Mobile
   ========================================================= */

@media (max-width: 480px) {
  .pb-blog-hero {
    height: 160px;
  }

  .pb-blog-hero__content h1 {
    font-size: 28px;
  }

  .pb-blog-content {
    padding: 30px 12px 50px;
  }

  .pb-blog-filter-selects {
    grid-template-columns: 1fr;
  }

  .pb-blog-card__content {
    padding: 20px 14px 17px;
  }

  .pb-blog-card__title {
    font-size: 14px;
    line-height: 1.6;
  }

  .pb-blog-pagination {
    flex-wrap: wrap;

    gap: 5px;
  }
}

/** custom **/

.pb-blog-post__body {
    max-width: 928px;
    margin: 0 auto;
    padding: 40px 20px;
}
.pb-blog-post__back {
    max-width: 928px;
    margin: 0 auto;
    padding: 0 20px 20px;
}
.pb-blog-post__body p img {
    width: 928px;
    height: auto;
}
