.hs-blog-page {
  padding: 60px 40px 100px;
  max-width: 1200px;
  margin: 0 auto;
  text-align: center;
}

.hs-blog-page h1 {
  font-size: 2.5rem;
  margin-bottom: 15px;
  font-weight: 700;
  color: #c9aa71;
}

.hs-blog-intro {
  font-size: 1.1rem;
  color: #ccc;
  margin-bottom: 50px;
}

.hs-blog-filter-container {
  margin-bottom: 40px;
  display: flex;
  justify-content: center;
}

.hs-blog-select {
  padding: 12px 40px 12px 20px;
  background-color: #1a1a1a;
  background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="%23c9aa71" viewBox="0 0 16 16"><path d="M7.247 11.14L2.451 5.658C1.885 5.013 2.345 4 3.204 4h9.592a1 1 0 0 1 .753 1.659l-4.796 5.48a1 1 0 0 1-1.506 0z"/></svg>');
  background-repeat: no-repeat;
  background-position: right 15px center;
  background-size: 12px;
  border: 1px solid #333;
  border-radius: 8px;
  color: #fff;
  font-family: inherit;
  font-size: 1rem;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  cursor: pointer;
  transition: all 0.3s ease;
  min-width: 250px;
  max-width: 100%;
}

.hs-blog-select:hover,
.hs-blog-select:focus {
  border-color: #c9aa71;
  outline: none;
}

.hs-blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 30px;
}

.hs-blog-card {
  background: #1a1a1a;
  border-radius: 12px;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hs-blog-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 24px rgba(201, 170, 113, 0.18);
}

.hs-blog-card a {
  display: block;
  text-decoration: none;
  background: none;
}

.hs-blog-card-media {
  width: 100%;
  height: 200px;
  overflow: hidden;
  background: #2a2a2a;
}

.hs-blog-card-media img.hs-blog-thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hs-blog-thumb-placeholder {
  width: 100%;
  height: 100%;
  background: #2a2a2a;
}

.hs-blog-card-content {
  padding: 20px;
  text-align: left;
}

.hs-blog-date,
.hs-blog-read-time {
  display: inline-block;
  font-size: 0.85rem;
  margin-right: 15px;
  margin-bottom: 8px;
}

.hs-blog-date {
  color: #c9aa71;
}

.hs-blog-read-time {
  color: #888;
}

.hs-blog-card-title {
  font-size: 1.25rem;
  margin: 0 0 10px;
  color: #fff;
  line-height: 1.4;
}

.hs-blog-card-excerpt {
  font-size: 0.95rem;
  color: #aaa;
  margin: 0 0 15px;
  line-height: 1.5;
}

.hs-blog-card-link {
  display: inline-block;
  color: #c9aa71;
  font-weight: 500;
}

/* Single Blog Post */
.hs-blog-post {
  padding: 60px 40px 100px;
  max-width: 100%;
}

.hs-post-hero {
  text-align: center;
  padding: 40px 0 60px;
  margin-bottom: 40px;
  background: #1a1a1a;
  border-radius: 12px;
}

.hs-post-date {
  display: block;
  font-size: 1rem;
  color: #c9aa71;
  margin-bottom: 12px;
}

.hs-post-title {
  font-size: 2.5rem;
  font-weight: 700;
  color: #fff;
  margin: 0;
  max-width: 900px;
  margin: 0 auto;
  line-height: 1.2;
}

.hs-post-content {
  color: #ccc;
  font-size: 1.1rem;
  line-height: 1.7;
  max-width: 1000px;
  margin: 0 auto;
  text-align: justify;
}

.hs-post-content p {
  margin-bottom: 1.5em;
}

.hs-post-content h1,
.hs-post-content h2 {
  color: #fff;
  margin-top: 1.5em;
  margin-bottom: 1.25em;
  font-size: 1.8rem;
  text-align: center;
}

.hs-post-content h3 {
  color: #fff;
  margin-top: 1.25em;
  margin-bottom: 0.5em;
  font-size: 1.4rem;
}

.hs-post-content ul,
.hs-post-content ol,
.hs-post-content .wp-block-list {
  margin: 1.5em auto;
  padding: 0 0 0 1.5em;
  max-width: 800px;
  text-align: left;
  color: #ccc;
}

.hs-post-content .wp-block-list li {
  margin-bottom: 0.75em;
  line-height: 1.6;
  list-style-type: disc;
}

.hs-post-content .wp-block-list li::marker {
  color: #c9aa71;
}

.hs-post-content blockquote {
  border-left: 4px solid #c9aa71;
  padding-left: 20px;
  margin: 1.5em auto;
  color: #aaa;
  font-style: italic;
  max-width: 800px;
  text-align: left;
}

.hs-post-content strong {
  color: #c9aa71;
}

.hs-post-content em {
  color: #bbb;
}

.hs-post-content .wp-block-math {
  display: flex;
  justify-content: center;
  align-items: center;
  max-width: 800px;
  margin: 1.5em auto;
  overflow: visible;
}

.hs-post-content a {
  color: #c9aa71;
  text-decoration: underline;
  background: none !important;
  padding: 0 !important;
  border-radius: 0 !important;
  display: inline !important;
}

.hs-post-content a:hover {
  color: #e6c487;
}

.hs-post-content img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  margin: 1em auto;
  display: block;
}

.hs-post-content figure {
  margin: 1.5em auto;
  max-width: 100%;
}

.hs-post-content figure figcaption {
  font-size: 0.9em;
  color: #888;
  margin-top: 0.5em;
}

.hs-post-content pre,
.hs-post-content code {
  background: #2a2a2a;
  border-radius: 4px;
  font-family: 'Consolas', 'Monaco', monospace;
  font-size: 0.95em;
}

.hs-post-content pre {
  padding: 1em;
  overflow-x: auto;
  margin: 1.5em auto;
  max-width: 800px;
  text-align: left;
}

.hs-post-content code {
  padding: 0.2em 0.4em;
}

.hs-post-content table {
  border-collapse: collapse;
  margin: 1.5em auto;
  max-width: 100%;
  width: auto;
}

.hs-post-content table th,
.hs-post-content table td {
  border: 1px solid #444;
  padding: 0.75em 1em;
  text-align: left;
}

.hs-post-content table th {
  background: #2a2a2a;
  color: #fff;
}

.hs-post-cta {
  max-width: 800px;
  margin: 50px auto 0;
  text-align: center;
  padding: 40px 30px;
  background: #1a1a1a;
  border-radius: 12px;
  border: 1px solid #333;
}

.hs-cta-text {
  font-size: 1.3rem;
  color: #fff;
  margin-bottom: 20px;
  line-height: 1.5;
}

.hs-post-cta .hs-cta-button {
  background: #c9aa71;
  color: #111;
  padding: 14px 28px;
  font-weight: 700;
  font-size: 0.95rem;
  border-radius: 6px;
  text-decoration: none;
  display: inline-block;
  transition: all 0.3s ease;
  max-width: 100%;
  box-sizing: border-box;
  overflow-wrap: break-word;
  word-wrap: break-word;
  hyphens: auto;
}

.hs-post-cta .hs-cta-button:hover {
  background: #e6c487;
  transform: translateY(-2px);
}

.hs-post-footer {
  margin-top: 40px;
  text-align: center;
  padding-top: 30px;
  border-top: 1px solid #333;
  display: flex;
  justify-content: center;
}

.hs-post-back.cta-button {
  background: #c9aa71 !important;
  color: #111 !important;
  padding: 10px 24px !important;
  font-weight: 700 !important;
  font-size: 1rem !important;
  border-radius: 4px !important;
  text-decoration: none !important;
  display: inline-block !important;
  width: auto !important;
  transition: all 0.3s ease;
}

.hs-post-back.cta-button:hover {
  background: #e6c487;
}

@media (max-width: 768px) {
  .hs-blog-post {
    padding: 40px 20px 60px;
  }

  .hs-post-hero {
    padding: 30px 20px 40px;
    margin-bottom: 30px;
  }

  .hs-post-title {
    font-size: 1.8rem;
  }

  .hs-post-content {
    font-size: 1rem;
    padding: 0 10px;
  }

  .hs-post-content h1,
  .hs-post-content h2 {
    font-size: 1.5rem;
  }

  .hs-post-content h3 {
    font-size: 1.2rem;
  }

  .hs-post-footer {
    padding: 20px 10px;
  }

  .hs-post-cta {
    padding: 30px 20px;
  }

  .hs-cta-text {
    font-size: 1.1rem;
  }

  .hs-cta-button,
  .hs-post-back.cta-button {
    width: 100%;
    text-align: center;
    padding: 14px 20px;
  }

  .hs-post-back.cta-button {
    display: block;
    margin-top: 15px;
  }

  .hs-blog-page {
    padding: 40px 20px 60px;
  }

  .hs-blog-grid {
    grid-template-columns: 1fr;
  }

  .hs-post-content .wp-block-math {
    display: flex;
    justify-content: center;
    align-items: center;
    max-width: 100%;
    padding: 0;
    margin: 1.5em auto;
    box-sizing: border-box;
    overflow: visible;
  }
}