
  .container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    padding-bottom: 60px;
  }

  /* Main Content */
  .main-content {
    flex: 3;
    min-width: 300px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    padding: 30px;
  }

  .post-image-wrapper {
    width: 100%;
    max-width: 100%;
    margin: 0 0 20px;
    overflow: hidden;
    border-radius: 12px;
  }
  
  .post-image {
    width: auto;
    height: auto;
    max-width: 100%;
    max-height: 520px;
    object-fit: contain; /* cegah gambar portrait/landscape terpotong */
    display: block;
    margin: 0 auto;
  }

  .post-image-btn {
    position: relative;
    border: 0;
    padding: 0;
    width: 100%;
    background: transparent;
    cursor: zoom-in;
    display: block;
  }
  

  .post-header img {
    border-radius: 10px;
    margin-bottom: 20px;
    object-fit: cover;
  }
  

  .post-content {
    text-align: justify;
  }

  .post-content img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 12px 0;
  }

  .image-modal {
    position: fixed;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.75);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
    z-index: 2000;
    padding: 24px;
  }

  .image-modal.is-open {
    opacity: 1;
    pointer-events: auto;
  }

  .image-modal__inner {
    position: relative;
    max-width: 92vw;
    max-height: 90vh;
  }

  .image-modal__img {
    width: 100%;
    max-height: 90vh;
    object-fit: contain;
    border-radius: 12px;
    display: block;
    background: #fff;
  }

  .image-modal__close {
    position: absolute;
    top: -12px;
    right: -12px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 0;
    background: #fff;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
  }

  .post-info {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 25px;
    font-size: 14px;
    color: #666;
  }

  .post-info span {
    display: flex;
    align-items: center;
    gap: 5px;
  }

  .post-info i {
    color: #007bff;
  }

  .post-content p {
    margin-bottom: 20px;
    text-align: justify;
    color: #555;
  }

  /* Comments Section */
  .comments-section h2 {
    font-size: 22px;
    margin-bottom: 20px;
    color: #222;
    border-bottom: 2px solid #007bff;
    padding-bottom: 10px;
  }

  .comment {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
    padding: 15px;
    background: #f5f8fa;
    border-radius: 10px;
    position: relative;
  }

  .comment:hover {
    background: #eef5fb;
    transition: all 0.3s ease;
  }

  .comment-details {
    flex: 1;
  }

  .comment-name {
    font-weight: 600;
    color: #007bff;
    font-size: 16px;
  }

  .comment-date {
    font-size: 13px;
    color: #888;
    margin: 5px 0;
  }

  .reply-btn {
    background: #007bff;
    color: white;
    border: none;
    padding: 8px 12px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    transition: background 0.3s ease;
    align-self: flex-start;
  }

  .reply-btn:hover {
    background: #0056b3;
  }

  .reply-btn i {
    margin-right: 5px;
  }

  /* Leave Comment Form */
  .leave-comment h2 {
    font-size: 22px;
    margin: 30px 0 20px;
    color: #222;
    border-bottom: 2px solid #007bff;
    padding-bottom: 10px;
  }

  .form-group {
    margin-bottom: 15px;
  }

  .form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
    color: #444;
  }

  .form-group input,
  .form-group textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 15px;
    transition: border 0.3s ease;
  }

  .form-group input:focus,
  .form-group textarea:focus {
    border-color: #007bff;
    outline: none;
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.1);
  }

  .submit-btn {
    background: #28a745;
    color: white;
    border: none;
    padding: 12px 25px;
    border-radius: 8px;
    font-size: 16px;
    cursor: pointer;
    transition: background 0.3s ease;
  }

  .submit-btn:hover {
    background: #218838;
  }

  /* Sidebar */
  .sidebar {
    flex: 1;
    min-width: 280px;
  }

  /* Recent scroll: show ~7 items, allow manual scroll */
  .recent-scroll {
    --item-height: 88px; /* approx: 60px image + paddings/margins */
    max-height: calc(var(--item-height) * 7);
    overflow-y: auto;
    padding-right: 4px;
    scroll-behavior: smooth;
  }
  .recent-post { min-height: calc(var(--item-height) - 16px); }
  .recent-scroll::-webkit-scrollbar { width: 8px; }
  .recent-scroll::-webkit-scrollbar-thumb { background: #c9d1d9; border-radius: 8px; }
  .recent-scroll:hover { scroll-behavior: auto; }

  .recent-posts h2 {
    font-size: 20px;
    margin-bottom: 15px;
    color: #222;
    border-bottom: 2px solid #007bff;
    padding-bottom: 8px;
  }

  .recent-post {
    display: flex;
    gap: 12px;
    margin-bottom: 15px;
    padding: 10px;
    background: #f8f9fa;
    border-radius: 8px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
  }

  .recent-post:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.05);
    background: #e9ecef;
  }

  .recent-post-title {
    font-size: 15px;
    font-weight: 500;
    color: #333;
    line-height: 1.4;
  }
  .post-title {
    text-align: left;
    font-size: 2.5rem;
    font-weight: 700;
    color: #009241;
    margin-bottom: 16px;
    line-height: 1.3;
    padding-left: 5px;
    border-left: 5px solid #009241;
    padding-bottom: 8px;
}

  .recent-post-date {
    font-size: 13px;
    color: #888;
  }

  /* Responsive */
  @media (max-width: 768px) {
    .container {
      flex-direction: column;
    }

    .main-content,
    .sidebar {
      width: 100%;
    }

    .comment {
      flex-direction: column;
    }

    .reply-btn {
      align-self: flex-end;
    }
  }

  @media (max-width: 480px) {
    .main-content {
      padding: 20px;
    }

    .post-info {
      flex-direction: column;
      gap: 8px;
    }
  }
