/* ==============================
  Blog listing (blog.php)
============================== */

.blog-grid {
  display: flex;
  flex-wrap: wrap;
}
.blog-grid > [class*="col-"] {
  display: flex;
  margin-bottom: 30px;
}
.blog-card {
  display: flex;
  flex-direction: column;
  width: 100%;
  background: #fff;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.12);
  transition: box-shadow .3s ease, transform .3s ease;
}
.blog-card:hover {
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
  transform: translateY(-4px);
}
.blog-card .card-img {
  position: relative;
  display: block;
  height: 230px;
  overflow: hidden;
}
.blog-card .card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .4s ease;
}
.blog-card:hover .card-img img {
  transform: scale(1.05);
}
.blog-card .card-badge {
  position: absolute;
  left: 14px;
  bottom: 14px;
  background: #FBB12F;
  color: #fff;
  font-size: 13px;
  padding: 3px 14px;
  border-radius: 3px;
}
.blog-card .card-body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 25px 24px 22px;
}
.blog-card .card-body h3 {
  font-size: 18px;
  font-weight: 600;
  line-height: 1.4;
  text-transform: none;
  margin: 0 0 15px;
}
.blog-card .card-body h3 a {
  color: #363636;
}
.blog-card .card-body h3 a:hover {
  color: #1FB5C7;
}
/* no focus box when a card link is clicked with the mouse (still shown for keyboard navigation) */
.blog-card a:focus:not(:focus-visible) {
  outline: none;
}
.blog-card .card-desc {
  color: #666;
  font-size: 14px;
  line-height: 1.6;
  margin: 0;
  /* keep the description short: max 3 lines, rest is cut with "..." */
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.blog-card .card-body > div:last-child {
  margin-top: auto;
}
.blog-card .card-meta {
  margin-top: auto;
  color: #777;
  font-size: 13px;
}
.blog-card .card-meta i {
  color: #FBB12F;
  margin-right: 6px;
}
.blog-card .card-meta .sep {
  margin: 0 12px;
  color: #ccc;
}
.blog-card a.read-more {
  display: inline-block;
  margin-top: 15px;
  text-transform: uppercase;
  color: #08ADD0;
  font-size: 12px;
  font-weight: 600;
}
.blog-card a.read-more:after {
  content: '\f178';
  font-family: 'FontAwesome';
  margin-left: 10px;
}
.blog-card a.read-more:hover {
  color: #FBB12F;
}

/* ==============================
  Blog post (blog-detail.php)
============================== */

.single-post-page .image-box img {
  width: 100%;
}
.single-post-page .blog-post-content h3 {
  color: #242424;
  font-size: 20px;
  font-weight: 600;
  text-transform: none;
  margin: 30px 0 12px;
}
.single-post-page .blog-post-content ol {
  padding-left: 20px;
  margin-bottom: 20px;
}
.single-post-page .blog-post-content ol li {
  margin-bottom: 8px;
}
.single-post-page .post-date {
  color: #A1A1A1;
  margin: 15px 0 5px;
}
.single-post-page .post-date i {
  color: #FBB12F;
  margin-right: 8px;
}
.single-post-page .back-to-blog {
  display: inline-block;
  margin-bottom: 20px;
  color: #08ADD0;
  font-weight: 600;
  text-transform: uppercase;
  font-size: 12px;
}
.single-post-page .back-to-blog:hover {
  color: #FBB12F;
}
.single-post-page .post-navigation {
  border-top: 1px solid #e6e6e6;
  margin-top: 40px;
  padding-top: 25px;
}
.single-post-page .post-navigation a {
  display: block;
  color: #363636;
  font-weight: 600;
}
.single-post-page .post-navigation a span {
  display: block;
  color: #08ADD0;
  font-size: 12px;
  text-transform: uppercase;
  margin-bottom: 5px;
}
.single-post-page .post-navigation a:hover {
  color: #1FB5C7;
}
.single-post-page .post-navigation .next-post {
  text-align: right;
}
@media (max-width: 767px) {
  .single-post-page .post-navigation .next-post {
    text-align: left;
    margin-top: 20px;
  }
}
