/* Blog listing + blog details additions on top of the Diskovar theme */

.tp-blog-alert {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 20px;
  border-radius: 12px;
  font-weight: 500;
  font-size: 15px;
}

.tp-blog-alert i {
  font-size: 20px;
}

.tp-blog-alert-success {
  background: #ecf8f1;
  color: #146c43;
}

.tp-blog-alert-error {
  background: #fdecea;
  color: var(--tp-common-red);
}

/* Featured story on blog listing */
.tp-blog-featured {
  border-radius: 24px;
  min-height: 420px;
}

.tp-blog-featured img {
  position: absolute;
  inset: 0;
  transition: transform 0.6s ease;
}

.tp-blog-featured:hover img {
  transform: scale(1.05);
}

.tp-blog-featured.postbox-details-thumb-overly::before {
  z-index: 1;
}

.tp-blog-featured .postbox-details-thumb-content {
  z-index: 2;
  left: 40px;
  right: 40px;
}

.tp-blog-featured-badge {
  background: var(--tp-common-white);
  border-color: var(--tp-common-white);
}

.tp-blog-featured-title {
  color: var(--tp-common-white);
  font-size: 34px;
  line-height: 1.25;
  margin-bottom: 12px;
}

.tp-blog-featured-list {
  padding: 36px 32px;
  border-radius: 24px;
  background: var(--tp-grey-3);
}

.tp-blog-featured-list .rc-post-thumb img,
.tp-blog-sidebar .rc-post-thumb img {
  width: 90px;
  height: 90px;
}

.tp-blog-featured-list .rc-post-thumb {
  margin-right: 20px;
}

.tp-blog-author-avatar {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  object-fit: cover;
}

@media (max-width: 767px) {
  .tp-blog-featured {
    min-height: 320px;
  }

  .tp-blog-featured .postbox-details-thumb-content {
    left: 20px;
    right: 20px;
    bottom: 20px;
  }

  .tp-blog-featured-title {
    font-size: 24px;
  }

  .tp-blog-featured-list {
    padding: 28px 20px;
  }
}

/* Blog details */
.tp-blog-details-photo {
  max-height: 520px;
}

.tp-blog-details-title {
  font-size: 44px;
}

@media (max-width: 991px) {
  .tp-blog-details-title {
    font-size: 34px;
  }
}

@media (max-width: 575px) {
  .tp-blog-details-title {
    font-size: 28px;
  }
}

.tp-blog-meta i {
  color: var(--tp-theme-1);
  margin-right: 3px;
}

.tp-blog-author-avatar-md {
  width: 52px;
  height: 52px;
  margin-right: 14px;
  border: 2px solid var(--tp-theme-1);
}

.tp-blog-details-byline-name {
  display: block;
  font-weight: 600;
  font-size: 17px;
  color: var(--tp-common-black);
}

.tp-blog-details-byline-role {
  display: block;
  font-size: 14px;
  color: var(--tp-grey-1);
}

.tp-blog-quote-icon {
  font-size: 40px;
  line-height: 1;
  color: var(--tp-theme-1);
}

.postbox-details-quote .tp-blog-excerpt {
  font-size: 22px;
  line-height: 1.5;
}

.tp-blog-body-text p {
  margin-bottom: 20px;
  color: var(--tp-grey-1);
}

.postbox-details-author-img img {
  object-fit: cover;
}

.tp-blog-review-initials {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 18px;
  color: var(--tp-theme-1);
  background: rgba(253, 70, 33, 0.1);
}

.tp-review-rating-progress .tp-review-rating-bar-item {
  min-width: 0;
}

.tp-review-rating-progress .tp-review-rating-bar-text {
  min-width: 42px;
  text-align: right;
}

.tp-blog-review-form-box {
  padding: 40px;
  border-radius: 16px;
  border: 1px solid var(--tp-border-1);
}

@media (max-width: 575px) {
  .tp-blog-review-form-box {
    padding: 28px 20px;
  }
}

.tp-review-input .tp-blog-select {
  width: 100%;
  padding: 0 14px;
  appearance: auto;
}

.tp-review-input .tp-textarea {
  padding-top: 14px;
  resize: vertical;
}

.tp-blog-field-error {
  display: block;
  margin-top: 6px;
  font-size: 13px;
  color: var(--tp-common-red);
}

.tp-blog-login-prompt {
  padding: 24px 28px;
  border-radius: 16px;
  background: var(--tp-grey-3);
}

.tp-blog-login-prompt p {
  font-weight: 500;
  color: var(--tp-common-black);
}

.tp-blog-login-prompt i {
  color: var(--tp-theme-1);
  margin-right: 4px;
}

/* Sidebar */
.tp-blog-sidebar-widget {
  padding: 32px 30px;
  border-radius: 20px;
  border: 1px solid var(--tp-border-1);
  background: var(--tp-common-white);
}

.tp-blog-sidebar .rc-post-thumb {
  margin-right: 18px;
}

.tp-blog-sidebar .rc-post-title {
  font-size: 16px;
}

.tp-blog-sidebar .rc-post-meta span {
  font-size: 13px;
}

.tp-blog-sidebar-empty {
  color: var(--tp-grey-1);
}

.tp-blog-sidebar-cta {
  position: relative;
  overflow: hidden;
  border: 0;
  background-size: cover;
  background-position: center;
  text-align: center;
  padding: 50px 30px;
}

.tp-blog-sidebar-cta::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(7, 21, 22, 0.6);
}

.tp-blog-sidebar-cta > * {
  position: relative;
}

.tp-blog-sidebar-cta-sub {
  display: block;
  margin-bottom: 10px;
  font-family: var(--tp-ff-dancing);
  font-size: 24px;
  color: var(--tp-common-white);
}

.tp-blog-sidebar-cta-title {
  margin-bottom: 25px;
  font-size: 26px;
  line-height: 1.3;
  color: var(--tp-common-white);
}
