@import '../components/navbar.css';
@import '../components/footer.css';
@import '../components/backtop.css';

.single-blog {
  background: white;
  padding-bottom: 20px;
}

/* Hero */
.blog-hero{
    margin: 0 auto;
    width: 98%;
    margin-top: 5rem;
}
.blog-hero img {
  width: 100%;
  margin: 0 auto;
  height: auto;
  object-fit: cover;
  border-radius: 0 0 20px 20px;
}

/* Layout */
.blog-wrapper {
  width: 100%;
  margin: -120px auto 0;
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 40px;
  padding: 0 20px;
  margin-top: 1rem;
}

/* Author Card */
.author-card {
  background: #fff;
  border-radius: 16px;
  padding: 20px;
  height: fit-content;
  box-shadow: 0 8px 20px rgba(0,0,0,0.08);
  text-align: left;
}

.author-info img {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  margin-bottom: 10px;
}

.user{
display: flex;
align-items: center;
text-align: center;
gap: 14px;
margin: 0 auto;

}

.author-info h4 {
  font-size: 18px;
  margin-bottom: 6px;
}
.author-info h4 a{
    color: black;
}
.author-info p {
  font-size: 14px;
  font-weight: 600;
  color: black;
  line-height: 1.4;
}

.follow-btn {
  width: 100%;
  background: darksalmon !important;
  border: 0 !important;
  padding: 6px;
  border-radius: 8px;
  font-weight: bold;
  margin-top: 10px;
  cursor: pointer;
}
.follow-btn:hover{
    background: black !important;
    color: darksalmon !important;
}
.notify-btn {
  width: 100%;
  background: black !important;
  color: darksalmon !important;
  border: 0 !important;
  padding: 6px;
  border-radius: 8px;
  margin-top: 10px;
  cursor: pointer;
}
.notify-btn:hover{
     background: darksalmon !important;
    color: black !important;
}
/* Blog Content */
.blog-content {
  background: #fff;
  border-radius: 20px;
  padding: 40px;
  box-shadow: 0 10px 25px rgba(0,0,0,0.08);
}

.blog-content h1 {
  font-size: 28px;
  font-weight: 600;
  color: #0e172a;
  margin-bottom: 20px;
}

.blog-content .intro {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 15px;
}

.blog-content p {
  font-size: 15px;
  color: #444;
  line-height: 1.7;
  margin-bottom: 15px;
}

.blog-content h3 {
  font-size: 18px;
  margin-top: 25px;
  color: #0e172a;
}

.solution {
  background: #f1fdfc;
  border-left: 4px solid #01c2be;
  padding: 10px 15px;
  font-size: 14px;
}

/* Responsive */
@media (max-width: 900px) {
  .blog-wrapper {
    grid-template-columns: 1fr;
  }

  .author-card {
    order: 2;
  }
}
