/* Blog List (e.g., index.php) */
.blog-list {
    max-width: 1200px;
    margin: 20px auto;
    padding: 20px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.blog-card {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    padding: 20px;
    transition: transform 0.2s;
}

.blog-card:hover {
    transform: translateY(-5px);
}

.blog-card h2 {
    font-size: 20px;
    margin: 0 0 10px;
    color: #333;
}

.blog-card .meta {
    font-size: 14px;
    color: #666;
    margin-bottom: 10px;
}

.blog-card .excerpt {
    font-size: 16px;
    color: #555;
    margin-bottom: 15px;
}

.blog-card a {
    color: #007bff;
    text-decoration: none;
    font-weight: bold;
}

.blog-card a:hover {
    text-decoration: underline;
}

/* Blog View (e.g., blog-view.php) */
.blog-container {
    max-width: 800px;
    margin: 20px auto;
    padding: 20px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.blog-container h1 {
    font-size: 28px;
    color: #333;
    margin-bottom: 15px;
}

.blog-container .meta {
    font-size: 14px;
    color: #666;
    margin-bottom: 20px;
}

.blog-container .content {
    font-size: 16px;
    line-height: 1.6;
    color: #555;
    margin-bottom: 20px;
}

.blog-actions {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
}

.blog-actions button {
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    background: #007bff;
    color: #fff;
    cursor: pointer;
    font-size: 14px;
}

.blog-actions button:hover {
    background: #0056b3;
}

/* Comment Section */
.comment-section {
    margin-top: 30px;
}

.comment-section h2 {
    font-size: 22px;
    color: #333;
    margin-bottom: 20px;
}

.comment-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 30px;
}

.comment-form .form-group {
    display: flex;
    flex-direction: column;
}

.comment-form label {
    font-weight: bold;
    margin-bottom: 5px;
}

.comment-form input,
.comment-form textarea {
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 14px;
}

.comment-form textarea {
    min-height: 100px;
    resize: vertical;
}

.comment-form button {
    padding: 10px 20px;
    background: #007bff;
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

.comment-form button:hover {
    background: #0056b3;
}

.comments-list {
    margin-top: 20px;
}

.comment {
    border-bottom: 1px solid #ddd;
    padding: 15px 0;
}

.comment.admin-comment {
    background: #e6f3ff;
    border-left: 4px solid #007bff;
}

.comment .comment-meta {
    font-size: 14px;
    color: #666;
    margin-bottom: 10px;
}

.comment .comment-meta .admin-label {
    color: #007bff;
    font-weight: bold;
}

.comment .comment-content {
    font-size: 16px;
    color: #555;
    margin-bottom: 10px;
}

.comment .comment-actions {
    display: flex;
    gap: 10px;
}

.comment .comment-actions button {
    padding: 8px 16px;
    background: #28a745;
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
}

.comment .comment-actions button:hover {
    background: #218838;
}

.reply {
    margin-left: 40px;
    padding: 10px 0;
    border-bottom: 1px solid #eee;
}

/* Recommendations Section */
.recommendations {
    margin-top: 30px;
}

.recommendations h2 {
    font-size: 22px;
    color: #333;
    margin-bottom: 20px;
}

.recommendation-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 15px;
}

.recommendation-card {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    padding: 15px;
}

.recommendation-card h3 {
    font-size: 18px;
    color: #333;
    margin: 0 0 10px;
}

.recommendation-card p {
    font-size: 14px;
    color: #555;
    margin-bottom: 10px;
}

.recommendation-card a {
    color: #007bff;
    text-decoration: none;
    font-weight: bold;
}

.recommendation-card a:hover {
    text-decoration: underline;
}

/* Responsive Design */
@media (max-width: 768px) {
    .blog-list {
        grid-template-columns: 1fr;
        padding: 10px;
    }

    .blog-container {
        padding: 15px;
        margin: 10px;
    }

    .blog-container h1 {
        font-size: 24px;
    }

    .blog-actions {
        flex-direction: column;
        gap: 10px;
    }

    .comment-form input,
    .comment-form textarea {
        font-size: 13px;
    }

    .reply {
        margin-left: 20px;
    }

    .recommendation-list {
        grid-template-columns: 1fr;
    }
}