.blog-detail {
  max-width: 800px;
  margin: 40px auto;
  line-height: 1.6;
}

.blog-title {
  font-size: 2.5rem;
  font-weight: bold;
  margin-bottom: 10px;
}

.blog-meta {
  display: flex;
  gap: 20px;
  margin: 15px 0;
  font-size: 14px;
  color: #777;
}

.blog-meta .meta-item {
  display: flex;
  align-items: center;
  gap: 6px;
}

.blog-meta i {
  color: #f39c12; /* bisa ganti sesuai tema */
  font-size: 14px;
}

.blog-image {
  display: flex;
  justify-content: center;
  margin: 20px 0;
}

.blog-image img {
  max-width: 800px;   /* batas lebar */
  max-height: 400px;  /* batas tinggi */
  width: auto;
  height: auto;
  border-radius: 8px;
}

.blog-content {
  font-size: 1.1rem;
  margin-bottom: 40px;
}

.blog-share {
  position: fixed;
  right: 20px;
  top: 40%;
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 0.9rem;
}

.blog-share a {
  text-decoration: none;
  color: #333;
}

.blog-share a:hover {
  color: #941515;
}

/* Comment */
.comments-section {
  margin-top: 40px;
}

.comment {
  padding: 10px;
  margin-bottom: 15px;
  border-bottom: 1px solid #ddd;
}

.comment strong {
  color: #333;
}

/* Comment form */
.comment-form {
  margin-top: 20px;
}

.comment-form .form-group {
  margin-bottom: 15px;
  display: flex;
  flex-direction: column;
}

.comment-form label {
  font-weight: bold;
  margin-bottom: 5px;
  color: #333;
}

.comment-form input,
.comment-form textarea {
  width: 100%;
  padding: 10px;
  border: 1px solid #ddd;
  border-radius: 6px;
  font-size: 14px;
}

.comment-form textarea {
  min-height: 120px;
  resize: vertical;
}

.comment-form button {
  padding: 10px 20px;
  background: #941515;
  color: #fff;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.3s;
}

.comment-form button:hover {
  background: #f00000;
}


/* Line separator */
.section-divider {
  border: none;            
  border-top: 2px solid #000;
  margin: 40px 0;       
}

/* Breadcrumbs */
.breadcrumbs {
  display: flex;
  gap: 1rem; /* spacing between links */
  align-items: center;
}

.breadcrumb-link {
  display: flex;
  flex-direction: column; /* image on top, text below */
  align-items: center;
  text-decoration: none;
  color: #333;
}

.breadcrumb-link span:hover{
    color: #941515;
}

.breadcrumb-img {
  width: 80px;   /* adjust size */
  height: 80px;
  object-fit: cover;
  border-radius: 50%; /* makes image round */
  margin-bottom: 5px;
}

.breadcrumb-link span {
  font-size: 0.9rem;
}

.title-breadcrums {
    margin-bottom: 40px;
}

/* Like Section */
.like-section {
  margin-top: 20px;
}

.like-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border: 1px solid #ccc;
  background: #fff;
  cursor: pointer;
  border-radius: 6px;
  font-size: 14px;
  color: #333;
  transition: all 0.2s ease;
}

.like-btn i {
  color: #1877f2;
}

.like-btn:hover {
  background: #f5f5f5;
  border-color: #999;
}

.like-btn span {
  margin-left: 4px;
  font-weight: bold;
}

/* Reply button styling */
.show-reply-btn {
    background-color: #941515;
    color: #fff;
    border: none;
    border-radius: 5px;
    padding: 6px 12px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: background-color 0.3s ease, transform 0.2s ease;
    margin-top: 8px;
}

.show-reply-btn:hover {
    background-color: #f00000;
    transform: translateY(-2px);
}


/* Optional: add spacing for the reply form */
.reply-form-container {
    margin-top: 8px;
    border-left: 2px solid #ddd;
    padding-left: 12px;
    background-color: #f9f9f9;
    border-radius: 5px;
}

/* Reply List */
.reply {
    background-color: #e4e2e2;
    padding: 10px;
    margin: 8px 0 8px 20px;
    border-radius: 6px;
    border-left: 3px solid #ccc;
}

/* Reply Form */
.reply-form-container {
    overflow: hidden;
    max-height: 0;
    transition: max-height 0.3s ease, padding 0.3s ease;
    padding: 0;
    margin-top: 8px;
    border-left: 2px solid #ffffff;
    background-color: #ffffff;
    border-radius: 5px;
}

.reply-form .form-group {
    margin-bottom: 8px; /* tighter spacing between fields */
}

.reply-form .form-group label {
    font-weight: bold;
    margin-bottom: 2px;
    font-size: 0.8rem;
    display: block;
    color: #333;
}

.reply-form .form-group input,
.reply-form .form-group textarea {
    width: 100%;
    padding: 2px 4px;   /* very small padding to expose more background */
    font-size: 0.8rem;  /* smaller text */
    border: 1px solid #ccc;
    border-radius: 4px;
    box-sizing: border-box;
    background-color: #ffffff; 
}

.reply-form .form-group textarea {
    height: 50px;  /* compact textarea */
    resize: vertical; /* optional for user adjustment */
}


/* Buttons aligned horizontally */
.reply-form-buttons {
    display: flex;
    gap: 8px;
}

.btn-submit, .btn-cancel {
    padding: 6px 12px;
    font-size: 0.9rem;
    border-radius: 5px;
    border: none;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.btn-submit {
    background-color: #941515;
    color: #fff;
}

.btn-submit:hover {
    background-color: #f00000;
}

.btn-cancel {
    background-color: #6c757d;
    color: #fff;
}

.btn-cancel:hover {
    background-color: #5a6268;
}

.toggle-replies-btn {
    display: block;           /* bikin satu baris penuh */
    margin-left: 20px;        /* sejajar indentasi reply */
    margin-top: 5px;
    background: none;
    border: none;
    color: #fa8080;  
    cursor: pointer;
    padding: 0;
    font-size: 14px;
    text-decoration: underline;
}
.toggle-replies-btn:hover {
    color: #941515;
}
