/* Blog card link wrapper — makes the whole card clickable */
.blog-card-link {
  display: block;
  text-decoration: none;
  color: inherit;
}
.blog-card-link:hover,
.blog-card-link:focus {
  text-decoration: none;
  color: inherit;
}
.blog-card-link:hover .fh5co-blog .blog-text {
  box-shadow: 0px 10px 32px 0px rgba(0, 0, 0, 0.22);
  background: #f0ece6;
}
.blog-card-link:hover .fh5co-blog .blog-text h3,
.blog-card-link:hover .fh5co-blog .blog-text .stuff li:last-child {
  color: #FF9000;
}
.blog-card-link:hover .fh5co-blog .blog-bg {
  filter: brightness(1.08);
}

/* Compact card overrides */
.blog-card-link .fh5co-blog .blog-bg {
  height: 200px;
  transition: filter 0.3s;
}
.blog-card-link .fh5co-blog .blog-text {
  padding: 20px 24px;
  margin-bottom: 0;
  background: #f7f4f0;
  transition: background 0.3s, box-shadow 0.3s;
}
.blog-card-link .fh5co-blog .blog-text h3 {
  font-size: 20px;
  margin-bottom: 10px;
  line-height: 1.4;
  transition: color 0.3s;
}
.blog-card-link .fh5co-blog .blog-text p {
  font-size: 14px;
  line-height: 1.6;
  margin-bottom: 14px;
  color: #666;
}
.blog-card-link .fh5co-blog .blog-text .stuff {
  padding-top: 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.blog-card-link .fh5co-blog .blog-text .stuff li {
  display: flex;
  align-items: center;
  margin-left: 0;
  float: none;
  font-size: 13px;
  color: #666;
}
.blog-card-link .fh5co-blog .blog-text .stuff li:last-child {
  float: none;
  color: #000;
}

/* Active nav link on blog pages */
#fh5co-nav .nav-links li a.active {
  color: #FF9000 !important;
}

/* Blog listing */
#fh5co-blog-section {
  padding: 7em 0;
  background: linear-gradient(180deg, #1f1000 0%, #141414 340px);
  border-top: 3px solid #FF9000;
}
#fh5co-blog-section .fh5co-heading p {
  color: rgba(255, 255, 255, 0.5);
  white-space: nowrap;
  font-size: clamp(13px, 1.5vw, 18px);
}
@media (max-width: 768px) {
  #fh5co-blog-section .fh5co-heading p {
    white-space: normal;
    font-size: 15px;
  }
}
.fh5co-heading h2.blog-page-title {
  color: #FF9000;
}

/* Post page — header */
.blog-post-header {
  padding: 7em 0 3em;
  background: linear-gradient(180deg, #1f1000 0%, #141414 340px);
  border-top: 3px solid #FF9000;
}
.blog-post-header h1 {
  font-size: 36px;
  font-weight: 400;
  line-height: 1.4;
  margin-bottom: 15px;
  color: #FF9000;
}
.blog-post-meta {
  color: rgba(255, 255, 255, 0.5);
  font-size: 14px;
  margin-bottom: 0;
}
.blog-post-meta i {
  margin-right: 5px;
}
.blog-post-tags {
  margin-top: 14px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.blog-post-tags span {
  display: inline-block;
  background: rgba(255, 144, 0, 0.15);
  color: #FF9000;
  border: 1px solid rgba(255, 144, 0, 0.35);
  border-radius: 3px;
  font-size: 12px;
  padding: 3px 10px;
  letter-spacing: 0.03em;
}

/* Post page — cover image */
.blog-post-cover {
  width: 100%;
  max-height: 420px;
  object-fit: cover;
  display: block;
  margin: 0 auto 2em;
}

/* Post page — body */
.blog-post-body {
  padding: 4em 0 5em;
  background: #f7f4f0;
}
.blog-post-body a {
  color: inherit;
  transition: color 0.3s;
}
.blog-post-body a:hover {
  color: #FF9000;
  text-decoration: none;
}
.blog-post-body p,
.blog-post-body li {
  font-size: 17px;
  line-height: 1.9;
  color: #555;
  margin-bottom: 1.2em;
}
.blog-post-body h2 {
  font-size: 26px;
  margin: 2em 0 .8em;
}
.blog-post-body h3 {
  font-size: 21px;
  margin: 1.8em 0 .7em;
}
.blog-post-body h4 {
  font-size: 19px;
  font-weight: 700;
  margin: 1.6em 0 .4em;
  color: #333;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
.blog-post-body ul,
.blog-post-body ol {
  padding-left: 1.5em;
  margin-bottom: 1.2em;
}
.blog-post-body code {
  background: #f2f2f2;
  padding: 2px 6px;
  border-radius: 3px;
  font-size: 15px;
}
.blog-post-body pre {
  background: #1e1e1e;
  color: #d4d4d4;
  padding: 20px;
  border-radius: 6px;
  overflow-x: auto;
  margin-bottom: 1.5em;
}
.blog-post-body pre code {
  background: none;
  padding: 0;
  font-size: 14px;
  color: inherit;
}
.blog-post-body blockquote {
  border-left: 4px solid #e0e0e0;
  padding: 10px 20px;
  color: #777;
  margin: 1.5em 0;
  font-style: italic;
}
.blog-post-body blockquote.analogy-box {
  font-style: normal;
  border-left: none;
  background: #1f1000;
  border-top: 2px solid #FF9000;
  border-radius: 4px;
  padding: 24px 28px;
  margin: 2em 0;
  color: rgba(255, 255, 255, 0.75);
}
.blog-post-body blockquote.analogy-box h4 {
  color: #FF9000;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.04em;
  margin-bottom: 12px;
  margin-top: 0;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
.blog-post-body blockquote.analogy-box p {
  color: rgba(255, 255, 255, 0.75);
  font-size: 15px;
  margin-bottom: 0;
}

/* Table */
.blog-post-body table {
  width: 100%;
  border-collapse: collapse;
  border: none;
  margin: 2em 0;
}
.blog-post-body table thead tr {
  border-bottom: 2px solid #FF9000;
}
.blog-post-body table th {
  font-weight: 500;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #FF9000;
  padding: 10px 16px;
  border: none;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  background: transparent;
}
.blog-post-body table td {
  padding: 14px 16px;
  border: none;
  font-size: 15px;
  line-height: 1.7;
  vertical-align: top;
  color: #555;
}
.blog-post-body table tbody tr:nth-child(odd) td {
  background: rgba(0, 0, 0, 0.03);
}
.blog-post-body table tbody tr:nth-child(even) td {
  background: transparent;
}
.blog-post-body table td strong {
  font-weight: 500;
  color: #333;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Back link */
.blog-back-link {
  display: inline-block;
  margin-bottom: 2em;
  color: rgba(0, 0, 0, .5);
  font-size: 14px;
}
.blog-back-link:hover {
  color: #000;
}
.blog-back-link i {
  margin-right: 5px;
}
