/* ========== Blog Layout ========== */
.blog-detail-container {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 30px;
    max-width: 1200px;
    margin: 30px auto;
    padding: 0 20px;
}

/* ========== Main Blog Content ========== */
.blog-content img {
    width: 100%;
    border-radius: 8px;
    margin-bottom: 20px;
}

.blog-content h1 {
    font-size: 32px;
    color: #072f10;
    margin-bottom: 10px;
    font-weight: bold;
}

.blog-meta {
    display: flex;
    gap: 15px;
    font-size: 14px;
    margin-bottom: 20px;
}

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

.blog-content p {
    font-size: 16px;
    line-height: 1.6;
    margin-bottom: 20px;
}

blockquote {
    font-size: 18px;
    font-style: italic;
    color: #008000;
    border-left: 4px solid #072f10;
    padding-left: 15px;
    margin: 20px 0;
}

/* ========== Sidebar ========== */
.blog-sidebar {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.you-may-like h3,
.categories h3 {
    font-size: 18px;
    margin-bottom: 15px;
    color: #072f10;
}

.categories {
    background: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.categories ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.categories ul li {
    font-size: 14px;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.categories ul li i {
    color: #072f10;
}

.sidebar-post {
    display: flex;
    gap: 10px;
    align-items: flex-start;
}

.sidebar-post img {
    width: 60px;
    height: 60px;
    border-radius: 6px;
    object-fit: cover;
}

.sidebar-post > div {
    display: flex;
    flex-direction: column;
}

.sidebar-post p {
    font-size: 14px;
    font-weight: 600;
    color: #072f10;
    margin: 0 0 5px 0;
}

.sidebar-post small {
    font-size: 13px;
    color: #555;
}

/* ========== Comments Section ========== */
.comments-section {
    max-width: 900px;
    margin: 20px auto;
    padding: 30px 20px;
    background: #fafafa;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    text-align: left;
}

.comments-section h3 {
    font-size: 26px;
    margin-bottom: 25px;
    padding-bottom: 20px;
    color: #072f10;
    border-bottom:none;
}


/* ========== Existing Comments ========== */
.existing-comments {
    display: flex;
    flex-direction: column;
    gap: 25px;
    margin-bottom: 30px;
}

.comment {
    background: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.comment-header {
    display: flex;
    gap: 15px;
    align-items: center;
    margin-bottom: 12px;
}

.comment-header img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
}

.comment-details h4 {
    margin: 0;
    font-size: 16px;
    color: #333;
}

.comment-details span {
    font-size: 12px;
    color: #999;
    display: block;
    margin-top: 4px;
}

.comment-content p {
    font-size: 15px;
    color: #444;
    margin: 0;
    line-height: 1.6;
}

/* ========== Add Comment Form ========== */
.add-comment {
    background: #fff;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.comment-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 14px;
    font-family: inherit;
}

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

.comment-form input[type="checkbox"] {
    width: 16px;
    height: 16px;
    margin: 0;
}

.comment-form label {
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.comment-form .submit {
    background-color: #072f10;
    color: white;
    padding: 10px 24px;
    border: none;
    border-radius: 5px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    width: auto;
}

.comment-form .submit:hover {
    background-color: #008000;
}



/* ========== Responsive ========== */
@media (max-width: 1024px) {
    .blog-detail-container {
        grid-template-columns: 1fr;
    }

    .blog-sidebar {
        margin-top: 40px;
    }
}

@media (max-width: 768px) {
    .blog-content h1 {
        font-size: 26px;
    }

    .comment-header img {
        width: 40px;
        height: 40px;
    }

    .sidebar-post img {
        width: 50px;
        height: 50px;
    }
}

@media (max-width: 480px) {
    .blog-content h1 {
        font-size: 22px;
    }

    .comment {
        padding: 15px;
    }

    .comment-details h4 {
        font-size: 14px;
    }

    .comment-details span,
    .comment-content p,
    .sidebar-post p,
    .sidebar-post small {
        font-size: 12px;
    }
}