/* Blog post layout — matches live /blog/*.html template (Best Class Helper) */

.blog-post-hero {
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  min-height: 450px;
  padding: 120px 0 80px;
  color: white;
  text-align: center;
  position: relative;
  display: flex;
  align-items: center;
}

.blog-post-hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(103, 64, 203, 0.92) 0%, rgba(139, 92, 246, 0.92) 100%);
  z-index: 1;
}

.blog-post-hero .container {
  position: relative;
  z-index: 2;
}

.blog-post-hero h1 {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 20px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.2;
  color: white;
}

.blog-post-meta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 30px;
  margin-top: 20px;
  opacity: 0.9;
  flex-wrap: wrap;
}

.blog-post-meta span {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.95rem;
}

.blog-post-content {
  padding: 0 0 80px;
  margin-top: -50px;
  position: relative;
  z-index: 2;
}

.blog-post-article {
  background: white;
  border-radius: 15px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  margin-bottom: 50px;
  margin-top: 0;
}

.blog-post-body {
  padding: 40px 50px;
  font-family: 'Roboto', sans-serif;
  background: #f8f9fa;
}

.blog-post-body .lead {
  font-size: 1.25rem;
  font-weight: 400;
  color: #444;
  line-height: 1.7;
  margin-bottom: 35px;
  padding: 25px;
  background: linear-gradient(135deg, #f8f9ff 0%, #e8f2ff 100%);
  border-radius: 10px;
  border-left: 5px solid #6740cb;
}

.content-section {
  background: white;
  margin: 30px 0;
  padding: 35px;
  border-radius: 12px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
  border-left: 4px solid #6740cb;
}

.blog-post-body h2 {
  color: #2c3e50;
  font-size: 1.6rem;
  font-weight: 700;
  margin: 0 0 20px 0;
  line-height: 1.4;
}

.blog-post-body h3 {
  color: #34495e;
  font-size: 1.3rem;
  font-weight: 600;
  margin: 25px 0 15px 0;
  line-height: 1.4;
}

.blog-post-body p {
  color: #555;
  line-height: 1.7;
  margin-bottom: 18px;
  font-size: 1.05rem;
  text-align: left;
}

.blog-post-body ul,
.blog-post-body ol {
  margin: 25px 0;
  padding-left: 35px;
}

.blog-post-body li {
  color: #555;
  line-height: 1.8;
  margin-bottom: 12px;
  font-size: 1.05rem;
}

.blog-post-body a {
  color: #6740cb;
  text-decoration: none;
}

.blog-post-body a:hover {
  text-decoration: underline;
}

.time-tip {
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  border-radius: 12px;
  padding: 30px;
  margin: 30px 0;
  border-left: 5px solid #6740cb;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
}

.time-tip h4 {
  color: #6740cb;
  font-weight: 700;
  margin-bottom: 18px;
  font-size: 1.2rem;
}

.time-tip .time-tip-cta {
  text-align: center;
  margin-top: 15px;
}

.time-tip .time-tip-cta a {
  display: inline-block;
  background: #6740cb;
  color: white;
  padding: 8px 20px;
  border-radius: 5px;
  text-decoration: none;
}

.time-tip .time-tip-cta a:hover {
  background: #5634ad;
  text-decoration: none;
}

.pro-tip,
.common-pitfall {
  padding: 20px;
  margin: 25px 0;
  border-radius: 8px;
}

.pro-tip {
  background: #f0ebff;
  border-left: 4px solid #6740cb;
}

.common-pitfall {
  background: #fff5f5;
  border-left: 4px solid #e53e3e;
}

.content-section .pro-tip,
.content-section .common-pitfall {
  margin-left: 0;
  margin-right: 0;
}

.faq-item {
  border-bottom: 1px solid #e9ecef;
}

.faq-question {
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  padding: 18px 0;
  font-size: 1.05rem;
  font-weight: 600;
  color: #2c3e50;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.faq-answer {
  padding-bottom: 18px;
  color: #555;
}

.faq-answer p {
  margin-bottom: 12px;
}

.related-posts {
  background: #f8f9fa;
  padding: 50px 0;
}

.related-post-card {
  background: white;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
  height: 100%;
}

.related-post-card:hover {
  transform: translateY(-4px);
}

.related-post-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.related-post-card .related-post-body {
  padding: 20px;
}

.related-post-card h4 {
  font-size: 1.1rem;
  margin-bottom: 10px;
}

.related-post-card h4 a {
  color: #333;
  text-decoration: none;
  transition: color 0.3s ease;
}

.related-post-card h4 a:hover {
  color: #6740cb;
}

.related-post-card p {
  color: #666;
  font-size: 0.9rem;
  line-height: 1.6;
  margin: 0;
}

@media (max-width: 768px) {
  .blog-post-hero h1 {
    font-size: 1.75rem;
  }

  .blog-post-body {
    padding: 24px 20px;
  }

  .content-section {
    padding: 24px 20px;
  }
}
